@astryxdesign/cli 0.6.5-vanilla-poc.6e25cfc → 0.6.6
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 +84 -0
- package/README.md +1 -34
- package/api/build/_adapter.d.mts +14 -0
- package/api/build/_adapter.mjs +58 -1
- package/api/build/build.test.mjs +74 -1
- package/api/build/kit/kit.mjs +39 -7
- package/api/build/kit/rank.d.mts +8 -0
- package/api/build/kit/rank.mjs +14 -0
- package/api/build/kit/weights.d.mts +82 -0
- package/api/build/kit/weights.json +1 -0
- package/api/build/kit/weights.mjs +305 -0
- package/api/build/kit/weights.test.mjs +190 -0
- package/api/component/_adapter.d.mts +1 -51
- package/api/component/_adapter.mjs +3 -110
- package/api/component/component.d.mts +1 -9
- package/api/component/component.doc.mjs +7 -52
- package/api/component/component.mjs +3 -276
- package/api/component/component.type.d.mts +1 -28
- package/api/component/component.type.mjs +1 -20
- package/api/docs/docs.d.mts +6 -0
- package/api/docs/docs.depth.test.mjs +132 -0
- package/api/docs/docs.doc.mjs +31 -2
- package/api/docs/docs.mjs +44 -1
- package/api/docs/docs.type.d.mts +38 -1
- package/api/docs/docs.type.mjs +18 -1
- package/api/docs/node/node.d.mts +28 -3
- package/api/docs/node/node.mjs +146 -23
- package/api/hook/list/list.d.mts +1 -1
- package/api/index.d.mts +0 -8
- package/api/index.mjs +0 -8
- package/api/integration/add-theme.mjs +93 -3
- package/api/integration/add-theme.test.mjs +100 -0
- package/api/integration/integrationAddTheme.doc.mjs +1 -1
- package/api/search/search.d.mts +8 -1
- package/api/search/search.doc.mjs +3 -3
- package/api/search/search.mjs +58 -73
- package/api/search/search.test.mjs +122 -21
- package/api/search/search.type.d.mts +0 -10
- package/api/search/search.type.mjs +0 -1
- package/api/template/cdn/cdn.test.mjs +2 -50
- package/api/template/template.d.mts +0 -6
- package/api/template/template.doc.mjs +4 -56
- package/api/template/template.mjs +0 -82
- package/api/template/template.type.d.mts +0 -12
- package/api/template/template.type.mjs +0 -7
- package/assets/cdn.template.html +5 -19
- package/assets/docs/tokens.doc.mjs +3 -3
- package/assets/docs/tree/add-a-theme.doc.mjs +4 -0
- package/assets/docs/tree/troubleshooting.doc.mjs +4 -4
- package/clients/cli/commands/component/index.mjs +9 -66
- package/clients/cli/commands/component.doc.mjs +4 -26
- package/clients/cli/commands/docs.depth.test.mjs +219 -0
- package/clients/cli/commands/docs.doc.mjs +15 -2
- package/clients/cli/commands/docs.mjs +222 -5
- package/clients/cli/commands/integration-add.doc.mjs +1 -1
- package/clients/cli/commands/search.doc.mjs +2 -3
- package/clients/cli/commands/search.mjs +11 -8
- package/clients/cli/commands/search.test.mjs +35 -40
- package/clients/cli/commands/template.doc.mjs +3 -31
- package/clients/cli/commands/template.mjs +2 -37
- package/foundation/discovery/theme-discovery.d.mts +6 -0
- package/foundation/discovery/theme-discovery.mjs +9 -0
- package/foundation/response/response-types.doc.mjs +0 -38
- package/package.json +5 -9
- package/api/_vanilla-assets.d.mts +0 -10
- package/api/_vanilla-assets.mjs +0 -59
- package/api/component/html/html.d.mts +0 -12
- package/api/component/html/html.doc.d.mts +0 -5
- package/api/component/html/html.doc.mjs +0 -66
- package/api/component/html/html.mjs +0 -25
- package/api/component/html/html.test.mjs +0 -61
- package/api/component/html/html.type.d.mts +0 -23
- package/api/component/html/html.type.mjs +0 -27
- package/api/component/web-components/web-components.d.mts +0 -12
- package/api/component/web-components/web-components.doc.d.mts +0 -5
- package/api/component/web-components/web-components.doc.mjs +0 -70
- package/api/component/web-components/web-components.mjs +0 -32
- package/api/component/web-components/web-components.test.mjs +0 -50
- package/api/component/web-components/web-components.type.d.mts +0 -23
- package/api/component/web-components/web-components.type.mjs +0 -27
- package/api/template/_adapter.d.mts +0 -38
- package/api/template/_adapter.mjs +0 -90
- package/api/template/html/html.d.mts +0 -17
- package/api/template/html/html.doc.d.mts +0 -5
- package/api/template/html/html.doc.mjs +0 -72
- package/api/template/html/html.mjs +0 -61
- package/api/template/html/html.test.mjs +0 -71
- package/api/template/html/html.type.d.mts +0 -26
- package/api/template/html/html.type.mjs +0 -28
- package/api/template/web-components/web-components.d.mts +0 -13
- package/api/template/web-components/web-components.doc.d.mts +0 -5
- package/api/template/web-components/web-components.doc.mjs +0 -69
- package/api/template/web-components/web-components.mjs +0 -51
- package/api/template/web-components/web-components.test.mjs +0 -73
- package/api/template/web-components/web-components.type.d.mts +0 -26
- package/api/template/web-components/web-components.type.mjs +0 -28
- package/assets/generated/core-component-docs.json +0 -1
- package/assets/vanilla/elements-markup/Avatar.html +0 -27
- package/assets/vanilla/elements-markup/Badge.html +0 -16
- package/assets/vanilla/elements-markup/Banner.html +0 -32
- package/assets/vanilla/elements-markup/Breadcrumbs.html +0 -23
- package/assets/vanilla/elements-markup/Button.html +0 -37
- package/assets/vanilla/elements-markup/Card.html +0 -24
- package/assets/vanilla/elements-markup/CheckboxInput.html +0 -28
- package/assets/vanilla/elements-markup/Collapsible.html +0 -26
- package/assets/vanilla/elements-markup/DateInput.html +0 -28
- package/assets/vanilla/elements-markup/Dialog.html +0 -33
- package/assets/vanilla/elements-markup/Divider.html +0 -20
- package/assets/vanilla/elements-markup/DropdownMenu.html +0 -26
- package/assets/vanilla/elements-markup/EmptyState.html +0 -27
- package/assets/vanilla/elements-markup/Heading.html +0 -18
- package/assets/vanilla/elements-markup/HoverCard.html +0 -39
- package/assets/vanilla/elements-markup/Layout.html +0 -28
- package/assets/vanilla/elements-markup/Lightbox.html +0 -33
- package/assets/vanilla/elements-markup/Link.html +0 -23
- package/assets/vanilla/elements-markup/NumberInput.html +0 -34
- package/assets/vanilla/elements-markup/ProgressBar.html +0 -47
- package/assets/vanilla/elements-markup/RadioList.html +0 -28
- package/assets/vanilla/elements-markup/Selector.html +0 -34
- package/assets/vanilla/elements-markup/SideNav.html +0 -32
- package/assets/vanilla/elements-markup/Skeleton.html +0 -18
- package/assets/vanilla/elements-markup/Slider.html +0 -31
- package/assets/vanilla/elements-markup/Stack.html +0 -33
- package/assets/vanilla/elements-markup/StatusDot.html +0 -19
- package/assets/vanilla/elements-markup/Switch.html +0 -28
- package/assets/vanilla/elements-markup/Tab.html +0 -18
- package/assets/vanilla/elements-markup/TabList.html +0 -31
- package/assets/vanilla/elements-markup/Table.html +0 -31
- package/assets/vanilla/elements-markup/Text.html +0 -24
- package/assets/vanilla/elements-markup/TextArea.html +0 -32
- package/assets/vanilla/elements-markup/TextInput.html +0 -92
- package/assets/vanilla/elements-markup/Theme.html +0 -16
- package/assets/vanilla/elements-markup/TimeInput.html +0 -29
- package/assets/vanilla/elements-markup/Toast.html +0 -22
- package/assets/vanilla/elements-markup/Tooltip.html +0 -30
- package/assets/vanilla/elements-markup/TopNav.html +0 -85
- package/assets/vanilla/elements-markup/Typeahead.html +0 -31
- package/assets/vanilla/elements-templates/dashboard.html +0 -167
- package/assets/vanilla/elements-templates/detail-page.html +0 -145
- package/assets/vanilla/elements-templates/form-two-column.html +0 -135
- package/assets/vanilla/elements-templates/kanban-board.html +0 -141
- package/assets/vanilla/elements-templates/login.html +0 -100
- package/assets/vanilla/elements-templates/product-detail.html +0 -128
- package/assets/vanilla/elements-templates/settings.html +0 -130
- package/assets/vanilla/elements-templates/shell-side-nav.html +0 -160
- package/assets/vanilla/elements-templates/table-filter.html +0 -154
- package/assets/vanilla/markup/Avatar.html +0 -24
- package/assets/vanilla/markup/Badge.html +0 -12
- package/assets/vanilla/markup/Banner.html +0 -49
- package/assets/vanilla/markup/Breadcrumbs.html +0 -38
- package/assets/vanilla/markup/Button.html +0 -37
- package/assets/vanilla/markup/Card.html +0 -16
- package/assets/vanilla/markup/CheckboxInput.html +0 -45
- package/assets/vanilla/markup/Collapsible.html +0 -9
- package/assets/vanilla/markup/DateInput.html +0 -42
- package/assets/vanilla/markup/Dialog.html +0 -45
- package/assets/vanilla/markup/Divider.html +0 -9
- package/assets/vanilla/markup/DropdownMenu.html +0 -30
- package/assets/vanilla/markup/EmptyState.html +0 -41
- package/assets/vanilla/markup/Heading.html +0 -9
- package/assets/vanilla/markup/HoverCard.html +0 -85
- package/assets/vanilla/markup/Layout.html +0 -35
- package/assets/vanilla/markup/Lightbox.html +0 -107
- package/assets/vanilla/markup/Link.html +0 -6
- package/assets/vanilla/markup/NumberInput.html +0 -55
- package/assets/vanilla/markup/ProgressBar.html +0 -101
- package/assets/vanilla/markup/RadioList.html +0 -90
- package/assets/vanilla/markup/Selector.html +0 -92
- package/assets/vanilla/markup/SideNav.html +0 -82
- package/assets/vanilla/markup/Skeleton.html +0 -26
- package/assets/vanilla/markup/Slider.html +0 -65
- package/assets/vanilla/markup/Stack.html +0 -13
- package/assets/vanilla/markup/StatusDot.html +0 -22
- package/assets/vanilla/markup/Switch.html +0 -47
- package/assets/vanilla/markup/TabList.html +0 -56
- package/assets/vanilla/markup/Table.html +0 -75
- package/assets/vanilla/markup/Text.html +0 -9
- package/assets/vanilla/markup/TextArea.html +0 -37
- package/assets/vanilla/markup/TextInput.html +0 -80
- package/assets/vanilla/markup/Theme.html +0 -48
- package/assets/vanilla/markup/TimeInput.html +0 -43
- package/assets/vanilla/markup/Toast.html +0 -42
- package/assets/vanilla/markup/Tooltip.html +0 -18
- package/assets/vanilla/markup/TopNav.html +0 -81
- package/assets/vanilla/markup/Typeahead.html +0 -60
- package/assets/vanilla/templates/dashboard.html +0 -462
- package/assets/vanilla/templates/detail-page.html +0 -536
- package/assets/vanilla/templates/form-two-column.html +0 -438
- package/assets/vanilla/templates/kanban-board.html +0 -443
- package/assets/vanilla/templates/login.html +0 -199
- package/assets/vanilla/templates/product-detail.html +0 -335
- package/assets/vanilla/templates/settings.html +0 -374
- package/assets/vanilla/templates/shell-side-nav.html +0 -440
- package/assets/vanilla/templates/table-filter.html +0 -514
- package/clients/cli/commands/vanilla-html.test.mjs +0 -245
- package/foundation/discovery/bundled-component-docs.d.mts +0 -39
- package/foundation/discovery/bundled-component-docs.mjs +0 -92
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<!-- docs: Represent a person or team with an image, initials, or fallback mark and optional status. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
src:str|—|Primary profile image URL.
|
|
4
|
-
fallback-src:str|—|Image URL used if the primary source fails.
|
|
5
|
-
name:str|—|Person or team name used for initials and accessible text.
|
|
6
|
-
alt:str|—|Accessible name override; defaults to name.
|
|
7
|
-
size:str|md|Named avatar size or CSS length.
|
|
8
|
-
shape:circle,rounded,square|circle|Circle, rounded, or square silhouette.
|
|
9
|
-
href:str|—|Optional profile destination.
|
|
10
|
-
target:str|—|Native link browsing context.
|
|
11
|
-
rel:str|—|Native link relationship tokens.
|
|
12
|
-
tooltip:str|—|Native tooltip text; omit to avoid duplicate tooltips.
|
|
13
|
-
-->
|
|
14
|
-
<!-- slots:
|
|
15
|
-
default:Custom fallback initials or mark when no image is available.
|
|
16
|
-
status:Optional status indicator in the avatar corner.
|
|
17
|
-
-->
|
|
18
|
-
<!-- events:
|
|
19
|
-
click:Native activation event when href is present.
|
|
20
|
-
-->
|
|
21
|
-
<!-- properties:attrs→camelCase -->
|
|
22
|
-
<!-- variant: initials-status -->
|
|
23
|
-
<ax-avatar src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==" name="Ada Lovelace" alt="Ada Lovelace, Online">
|
|
24
|
-
<ax-status-dot slot="status" variant="success" label="Online"></ax-status-dot>
|
|
25
|
-
</ax-avatar>
|
|
26
|
-
<!-- variant: linked-image -->
|
|
27
|
-
<ax-avatar href="#profile" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==" name="Grace Hopper" size="lg" shape="rounded"></ax-avatar>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<!-- docs: Label status or category with compact semantic color. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
label*:str|—|Visible badge label when no child content is authored.
|
|
4
|
-
variant:neutral,info,success,warning,error,blue,cyan,green,orange,pink,purple,red,teal,yellow|neutral|Semantic status or category color.
|
|
5
|
-
-->
|
|
6
|
-
<!-- slots:
|
|
7
|
-
default*:Short status or category label.
|
|
8
|
-
-->
|
|
9
|
-
<!-- events:
|
|
10
|
-
none
|
|
11
|
-
-->
|
|
12
|
-
<!-- properties:attrs→camelCase -->
|
|
13
|
-
<!-- variant: neutral -->
|
|
14
|
-
<ax-badge>Draft</ax-badge>
|
|
15
|
-
<!-- variant: success-label -->
|
|
16
|
-
<ax-badge label="Ready" variant="success"></ax-badge>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<!-- docs: Present a persistent page or section message with semantic status and optional detail. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
status:info,warning,error,success|info|Semantic message status.
|
|
4
|
-
title*/data-ax-title:str|—|Required visible title; consumed so the host never shows a native title tooltip.
|
|
5
|
-
description:str|—|Optional supporting message.
|
|
6
|
-
is-dismissable:bool|false|Shows a dismiss control.
|
|
7
|
-
dismiss-label:str|Dismiss banner|Accessible label for the dismiss control.
|
|
8
|
-
container:card,section|card|Card or full-width section presentation.
|
|
9
|
-
elevation:none,low,med,high|none|Resting shadow depth.
|
|
10
|
-
collapsible:bool|false|Places supporting content behind a disclosure control.
|
|
11
|
-
is-open/open:bool|false|Current supporting-content disclosure state.
|
|
12
|
-
-->
|
|
13
|
-
<!-- slots:
|
|
14
|
-
title*:Required title; overrides the title attribute.
|
|
15
|
-
description:Supporting message.
|
|
16
|
-
icon:Status icon override.
|
|
17
|
-
end-content:End-aligned action.
|
|
18
|
-
default:Optional detailed content below the status surface.
|
|
19
|
-
-->
|
|
20
|
-
<!-- events:
|
|
21
|
-
astryx:dismiss:Emitted after the banner is dismissed.
|
|
22
|
-
astryx:open-change:Emitted after disclosure state changes with detail.isOpen.
|
|
23
|
-
-->
|
|
24
|
-
<!-- properties:attrs→camelCase -->
|
|
25
|
-
<!-- variant: information -->
|
|
26
|
-
<ax-banner status="info" title="Your trial ends in 5 days">
|
|
27
|
-
<ax-button slot="end-content" variant="primary" size="sm">View plans</ax-button>
|
|
28
|
-
</ax-banner>
|
|
29
|
-
<!-- variant: error-detail -->
|
|
30
|
-
<ax-banner status="error" title="3 fields need attention" description="Fix the highlighted fields." collapsible is-open>
|
|
31
|
-
<ul><li>Project owner is required</li></ul>
|
|
32
|
-
</ax-banner>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<!-- docs: Show a short navigation trail above the page heading and mark the current location. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
separator:str|/|Visible separator between authored breadcrumb items.
|
|
4
|
-
variant:default,supporting|default|Default or supporting visual treatment.
|
|
5
|
-
label:str|Breadcrumb|Accessible label for the navigation landmark.
|
|
6
|
-
-->
|
|
7
|
-
<!-- slots:
|
|
8
|
-
default*:Plain link and current-page children; Breadcrumbs generates list items, separators, and BEM classes.
|
|
9
|
-
-->
|
|
10
|
-
<!-- events:
|
|
11
|
-
none
|
|
12
|
-
-->
|
|
13
|
-
<!-- properties:attrs→camelCase -->
|
|
14
|
-
<!-- variant: default -->
|
|
15
|
-
<ax-breadcrumbs>
|
|
16
|
-
<a href="#home">Home</a>
|
|
17
|
-
<span>Projects</span>
|
|
18
|
-
</ax-breadcrumbs>
|
|
19
|
-
<!-- variant: supporting -->
|
|
20
|
-
<ax-breadcrumbs variant="supporting" label="Settings breadcrumb" separator="›">
|
|
21
|
-
<a href="#settings">Settings</a>
|
|
22
|
-
<strong>Notifications</strong>
|
|
23
|
-
</ax-breadcrumbs>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<!-- docs: Trigger an action with primary, secondary, ghost, or destructive emphasis. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
label*:str|—|Visible button label when no child content is authored.
|
|
4
|
-
variant:primary,secondary,ghost,destructive|secondary|Visual emphasis matching Button variant.
|
|
5
|
-
size:sm,md,lg|md|Control size matching Button size.
|
|
6
|
-
type:button,submit,reset|button|Native button type.
|
|
7
|
-
is-disabled/disabled:bool|false|Disables native activation.
|
|
8
|
-
name:str|—|Native form field name.
|
|
9
|
-
value:str|—|Native form submission value.
|
|
10
|
-
form:str|—|ID of the associated form.
|
|
11
|
-
href:str|—|Optional native link destination.
|
|
12
|
-
-->
|
|
13
|
-
<!-- slots:
|
|
14
|
-
default*:Visible button label and inline content.
|
|
15
|
-
-->
|
|
16
|
-
<!-- events:
|
|
17
|
-
click:Native activation event from the inner button or link.
|
|
18
|
-
-->
|
|
19
|
-
<!-- properties:attrs→camelCase;readonly:validity,validationMessage,willValidate -->
|
|
20
|
-
<!-- variant: primary -->
|
|
21
|
-
<ax-button variant="primary">
|
|
22
|
-
Continue
|
|
23
|
-
</ax-button>
|
|
24
|
-
<!-- variant: disabled-label -->
|
|
25
|
-
<ax-button label="Continue" variant="primary" is-disabled></ax-button>
|
|
26
|
-
<!-- state-recipes:start -->
|
|
27
|
-
<!-- variant: state-loading -->
|
|
28
|
-
<div>
|
|
29
|
-
<ax-button is-disabled aria-busy="true">Saving…</ax-button>
|
|
30
|
-
<p role="status" aria-live="polite">Saving changes…</p>
|
|
31
|
-
</div>
|
|
32
|
-
<!-- variant: state-success -->
|
|
33
|
-
<div>
|
|
34
|
-
<ax-button>Saved</ax-button>
|
|
35
|
-
<p role="status" aria-live="polite">Changes saved successfully.</p>
|
|
36
|
-
</div>
|
|
37
|
-
<!-- state-recipes:end -->
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!-- docs: Group related content in a bordered or elevated surface. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
variant:default,transparent,muted,blue,cyan,gray,green,orange,pink,purple,red,teal,yellow|default|Card surface variant.
|
|
4
|
-
elevation:none,low,med,high|none|Resting shadow depth.
|
|
5
|
-
-->
|
|
6
|
-
<!-- slots:
|
|
7
|
-
header:Optional heading content.
|
|
8
|
-
default:Card body content.
|
|
9
|
-
footer:Optional actions or supporting content.
|
|
10
|
-
-->
|
|
11
|
-
<!-- events:
|
|
12
|
-
none
|
|
13
|
-
-->
|
|
14
|
-
<!-- properties:attrs→camelCase -->
|
|
15
|
-
<!-- variant: default -->
|
|
16
|
-
<ax-card>
|
|
17
|
-
<h2 slot="header">Card title</h2>
|
|
18
|
-
<p>Card content</p>
|
|
19
|
-
</ax-card>
|
|
20
|
-
<!-- variant: elevated -->
|
|
21
|
-
<ax-card elevation="low">
|
|
22
|
-
<p>Elevated card</p>
|
|
23
|
-
<ax-button slot="footer" variant="primary">Action</ax-button>
|
|
24
|
-
</ax-card>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!-- docs: Collect a native checkbox value with validation, indeterminate, and form semantics. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
label*:str|—|Visible field label.
|
|
4
|
-
value/checked:bool|false|Current checked state.
|
|
5
|
-
is-indeterminate:bool|false|Current mixed state.
|
|
6
|
-
description:str|—|Supporting help text.
|
|
7
|
-
size:sm,md|md|Visual checkbox size.
|
|
8
|
-
status:none,error,warning,success|none|Current validation state.
|
|
9
|
-
status-message:str|—|Displayed validation message.
|
|
10
|
-
is-disabled/disabled:bool|false|Disables the native control.
|
|
11
|
-
is-read-only/readonly:bool|false|Prevents user changes.
|
|
12
|
-
is-required/required:bool|false|Marks the control required.
|
|
13
|
-
html-name/name:str|—|Native form name.
|
|
14
|
-
html-value:str|on|Submitted native form value.
|
|
15
|
-
-->
|
|
16
|
-
<!-- slots:
|
|
17
|
-
label*:Visible field label.
|
|
18
|
-
description:Supporting help text.
|
|
19
|
-
status-message:Displayed validation message.
|
|
20
|
-
-->
|
|
21
|
-
<!-- events:
|
|
22
|
-
change:native
|
|
23
|
-
-->
|
|
24
|
-
<!-- properties:attrs→camelCase;readonly:form,validity,validationMessage,willValidate -->
|
|
25
|
-
<!-- variant: default -->
|
|
26
|
-
<ax-checkbox-input label="Updates"></ax-checkbox-input>
|
|
27
|
-
<!-- variant: checked -->
|
|
28
|
-
<ax-checkbox-input label="Usage" value></ax-checkbox-input>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<!-- docs: Show and hide authored content with a native details disclosure. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
trigger*:str|—|Always-visible disclosure trigger.
|
|
4
|
-
is-open/open:bool|false|Current disclosure state.
|
|
5
|
-
default-is-open:bool|false|Initial uncontrolled open state.
|
|
6
|
-
is-disabled/disabled:bool|false|Prevents disclosure interaction.
|
|
7
|
-
chevron-position:start,end|end|Logical chevron position.
|
|
8
|
-
value:str|—|Optional disclosure group value.
|
|
9
|
-
-->
|
|
10
|
-
<!-- slots:
|
|
11
|
-
trigger*:Always-visible disclosure trigger.
|
|
12
|
-
default:Collapsible body content.
|
|
13
|
-
-->
|
|
14
|
-
<!-- events:
|
|
15
|
-
toggle:Native details toggle event.
|
|
16
|
-
astryx:open-change:Emitted with {isOpen} after the disclosure changes.
|
|
17
|
-
-->
|
|
18
|
-
<!-- methods:
|
|
19
|
-
show():Open disclosure.
|
|
20
|
-
close():Close disclosure.
|
|
21
|
-
-->
|
|
22
|
-
<!-- properties:attrs→camelCase -->
|
|
23
|
-
<!-- variant: default -->
|
|
24
|
-
<ax-collapsible trigger="Details"><span>Content</span></ax-collapsible>
|
|
25
|
-
<!-- variant: open -->
|
|
26
|
-
<ax-collapsible trigger="More" is-open><span>Open</span></ax-collapsible>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!-- docs: Collect an ISO date with native picker, constraints, and form validation. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
label*:str|—|Visible field label.
|
|
4
|
-
value:str|—|Selected ISO date.
|
|
5
|
-
description:str|—|Supporting help text.
|
|
6
|
-
min:str|—|Minimum ISO date.
|
|
7
|
-
max:str|—|Maximum ISO date.
|
|
8
|
-
size:sm,md,lg|md|Visual input size.
|
|
9
|
-
status:none,error,warning,success|none|Current validation state.
|
|
10
|
-
status-message:str|—|Displayed validation message.
|
|
11
|
-
is-required/required:bool|false|Marks the input required.
|
|
12
|
-
is-disabled/disabled:bool|false|Disables the native input.
|
|
13
|
-
html-name/name:str|—|Native form name.
|
|
14
|
-
-->
|
|
15
|
-
<!-- slots:
|
|
16
|
-
label*:Visible field label.
|
|
17
|
-
description:Supporting help text.
|
|
18
|
-
status-message:Displayed validation message.
|
|
19
|
-
-->
|
|
20
|
-
<!-- events:
|
|
21
|
-
input:native
|
|
22
|
-
change:native
|
|
23
|
-
-->
|
|
24
|
-
<!-- properties:attrs→camelCase;readonly:form,validity,validationMessage,valueAsDate,willValidate -->
|
|
25
|
-
<!-- variant: default -->
|
|
26
|
-
<ax-date-input label="Launch date"></ax-date-input>
|
|
27
|
-
<!-- variant: error -->
|
|
28
|
-
<ax-date-input label="Renewal" status="error"></ax-date-input>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<!-- docs: Present a focused task in a native modal dialog with managed focus return; call show()/close() or use is-open. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
title*/data-ax-title:str|—|Visible dialog heading; consumed so the host never shows a native title tooltip.
|
|
4
|
-
is-open/open:bool|false|Open state reflected from the native dialog.
|
|
5
|
-
variant:standard,fullscreen|standard|Standard or fullscreen presentation.
|
|
6
|
-
purpose:info,form,required|info|Dismissal policy for info, form, or required tasks.
|
|
7
|
-
dialog-id:str|—|ID placed on the inner native dialog for trigger wiring.
|
|
8
|
-
-->
|
|
9
|
-
<!-- slots:
|
|
10
|
-
title*:Required dialog heading.
|
|
11
|
-
default:Dialog body content.
|
|
12
|
-
footer:Optional dialog actions.
|
|
13
|
-
-->
|
|
14
|
-
<!-- events:
|
|
15
|
-
close:Native dialog close event after is-open is reflected false.
|
|
16
|
-
cancel:Native cancel event; prevented for purpose="required".
|
|
17
|
-
-->
|
|
18
|
-
<!-- methods:
|
|
19
|
-
show():Open the native modal dialog and move focus to its title.
|
|
20
|
-
close():Close the native dialog and restore focus to its opener.
|
|
21
|
-
-->
|
|
22
|
-
<!-- properties:attrs→camelCase;readonly:returnValue -->
|
|
23
|
-
<!-- variant: open-and-close -->
|
|
24
|
-
<ax-button data-ax-dialog-open="confirm-dialog">Open dialog</ax-button>
|
|
25
|
-
<ax-dialog dialog-id="confirm-dialog">
|
|
26
|
-
<span slot="title">Archive project?</span>
|
|
27
|
-
<p>You can restore this project later.</p>
|
|
28
|
-
<ax-button slot="footer" data-ax-dialog-close>Cancel</ax-button>
|
|
29
|
-
</ax-dialog>
|
|
30
|
-
<!-- variant: required -->
|
|
31
|
-
<ax-dialog purpose="required" title="Accept terms" is-open>
|
|
32
|
-
<p>Review and accept to continue.</p>
|
|
33
|
-
</ax-dialog>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!-- docs: Separate adjacent regions with a horizontal or vertical themed rule. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
orientation:horizontal,vertical|horizontal|Horizontal or vertical separator orientation.
|
|
4
|
-
label:str|—|Visible divider label when no slotted label is authored.
|
|
5
|
-
variant:subtle,strong|subtle|Subtle or strong line treatment.
|
|
6
|
-
is-full-bleed:bool|false|Extends the separator to its container edges.
|
|
7
|
-
-->
|
|
8
|
-
<!-- slots:
|
|
9
|
-
default:Optional visible divider label.
|
|
10
|
-
-->
|
|
11
|
-
<!-- events:
|
|
12
|
-
none
|
|
13
|
-
-->
|
|
14
|
-
<!-- properties:attrs→camelCase -->
|
|
15
|
-
<!-- variant: horizontal -->
|
|
16
|
-
<ax-divider></ax-divider>
|
|
17
|
-
<!-- variant: strong -->
|
|
18
|
-
<ax-divider variant="strong"></ax-divider>
|
|
19
|
-
<!-- variant: labeled -->
|
|
20
|
-
<ax-divider label="Or"></ax-divider>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<!-- docs: Open an accessible action menu with keyboard navigation and selection events. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
button-label:str|Menu|Visible trigger label.
|
|
4
|
-
is-menu-open/open:bool|false|Controlled menu open state.
|
|
5
|
-
placement:above,below,start,end|below|Logical surface placement.
|
|
6
|
-
alignment:start,center,end|start|Logical surface alignment.
|
|
7
|
-
menu-id:str|—|Menu element identifier.
|
|
8
|
-
is-disabled/disabled:bool|false|Disables trigger interaction.
|
|
9
|
-
-->
|
|
10
|
-
<!-- slots:
|
|
11
|
-
button:Trigger button content; the component supplies the native button.
|
|
12
|
-
default*:Native menu item controls.
|
|
13
|
-
-->
|
|
14
|
-
<!-- events:
|
|
15
|
-
astryx:open-change:Emitted with {isOpen} whenever the menu opens or closes.
|
|
16
|
-
astryx:select:Emitted with {value,label} from the activated menu item.
|
|
17
|
-
-->
|
|
18
|
-
<!-- methods:
|
|
19
|
-
show():Open menu.
|
|
20
|
-
close():Close menu.
|
|
21
|
-
-->
|
|
22
|
-
<!-- properties:attrs→camelCase -->
|
|
23
|
-
<!-- variant: actions -->
|
|
24
|
-
<ax-dropdown-menu button-label="Actions"><button type=button>Edit</button><button type=button>Archive</button></ax-dropdown-menu>
|
|
25
|
-
<!-- variant: compact -->
|
|
26
|
-
<ax-dropdown-menu button-label="More"><button type=button>Move</button><a href="#share">Share</a></ax-dropdown-menu>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<!-- docs: Explain an empty result or first-run state with a specific title and useful next actions. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
title*/data-ax-title:str|—|Required primary message; consumed so the host never shows a native title tooltip.
|
|
4
|
-
description:str|—|Optional explanatory text.
|
|
5
|
-
heading-level:1,2,3,4,5,6|3|Semantic heading level for the title.
|
|
6
|
-
is-compact:bool|false|Uses reduced spacing for constrained surfaces.
|
|
7
|
-
-->
|
|
8
|
-
<!-- slots:
|
|
9
|
-
title*:Primary message; overrides the title attribute.
|
|
10
|
-
description:Supporting explanation.
|
|
11
|
-
icon:Decorative icon or illustration.
|
|
12
|
-
actions:One or two useful next actions.
|
|
13
|
-
default:Optional additional supporting content.
|
|
14
|
-
-->
|
|
15
|
-
<!-- events:
|
|
16
|
-
none
|
|
17
|
-
-->
|
|
18
|
-
<!-- properties:attrs→camelCase -->
|
|
19
|
-
<!-- variant: default -->
|
|
20
|
-
<ax-empty-state title="No projects yet">
|
|
21
|
-
<span slot="icon">+</span>
|
|
22
|
-
<ax-button slot="actions" variant="primary">Create project</ax-button>
|
|
23
|
-
</ax-empty-state>
|
|
24
|
-
<!-- variant: compact -->
|
|
25
|
-
<ax-empty-state title="No matching results" description="Try a broader search." is-compact>
|
|
26
|
-
<ax-button slot="actions">Clear filters</ax-button>
|
|
27
|
-
</ax-empty-state>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!-- docs: Render a semantic h1 through h6 with Astryx heading typography. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
level:1,2,3,4,5,6|2|Semantic heading level from 1 through 6.
|
|
4
|
-
accessibility-level:1,2,3,4,5,6|—|ARIA heading level when it differs from the element level.
|
|
5
|
-
color:primary,secondary,disabled,placeholder,accent,inherit|primary|Semantic text color.
|
|
6
|
-
weight:normal,medium,semibold,bold|—|Explicit font-weight override.
|
|
7
|
-
-->
|
|
8
|
-
<!-- slots:
|
|
9
|
-
default*:Heading text and inline content.
|
|
10
|
-
-->
|
|
11
|
-
<!-- events:
|
|
12
|
-
none
|
|
13
|
-
-->
|
|
14
|
-
<!-- properties:attrs→camelCase -->
|
|
15
|
-
<!-- variant: page-title -->
|
|
16
|
-
<ax-heading level="1">Page title</ax-heading>
|
|
17
|
-
<!-- variant: section-title -->
|
|
18
|
-
<ax-heading level="2" color="secondary">Section title</ax-heading>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<!-- docs: Reveal rich supplementary content from hover or keyboard focus. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
content*:str|—|Rich hover-card content.
|
|
4
|
-
label:str|—|Accessible dialog name; without one the surface is a group.
|
|
5
|
-
placement:above,below,start,end|above|Logical surface placement.
|
|
6
|
-
alignment:start,center,end|center|Logical surface alignment.
|
|
7
|
-
delay:str|300|Opening delay in milliseconds.
|
|
8
|
-
hide-delay:str|200|Closing delay in milliseconds.
|
|
9
|
-
focus-trigger:auto,always,never|auto|Keyboard focus trigger policy.
|
|
10
|
-
touch-trigger:auto,tap,none|auto|Touch activation policy.
|
|
11
|
-
is-enabled:bool|true|Enabled by default; set false to disable.
|
|
12
|
-
is-open/open:bool|false|Controlled open state.
|
|
13
|
-
-->
|
|
14
|
-
<!-- slots:
|
|
15
|
-
default*:Hoverable focusable trigger.
|
|
16
|
-
content*:Rich supplementary content.
|
|
17
|
-
-->
|
|
18
|
-
<!-- events:
|
|
19
|
-
astryx:open-change:Emitted with {isOpen} whenever the hover card opens or closes.
|
|
20
|
-
-->
|
|
21
|
-
<!-- methods:
|
|
22
|
-
show():Show hover.
|
|
23
|
-
close():Hide hover.
|
|
24
|
-
-->
|
|
25
|
-
<!-- properties:attrs→camelCase -->
|
|
26
|
-
<!-- variant: profile -->
|
|
27
|
-
<ax-hover-card content="Designer"><button type="button">Jordan</button></ax-hover-card>
|
|
28
|
-
<!-- variant: link -->
|
|
29
|
-
<ax-hover-card content="Roadmap" placement="below"><a href="#roadmap">View</a></ax-hover-card>
|
|
30
|
-
<!-- state-recipes:start -->
|
|
31
|
-
<!-- variant: state-open -->
|
|
32
|
-
<ax-hover-card label="Jordan Lee profile preview" is-open>
|
|
33
|
-
<button type="button">Jordan Lee</button>
|
|
34
|
-
<span slot="content">
|
|
35
|
-
<strong>Jordan Lee</strong>
|
|
36
|
-
<span>Product designer · New York</span>
|
|
37
|
-
</span>
|
|
38
|
-
</ax-hover-card>
|
|
39
|
-
<!-- state-recipes:end -->
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!-- docs: Arrange header, panels, content, and footer without implying a page landmark. Set is-main-region only for the page's single main region. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
height:fill,auto|fill|Fill the available container or grow with content.
|
|
4
|
-
is-main-region:bool|false|Makes content the page's main landmark. Omit for bounded or nested layouts.
|
|
5
|
-
-->
|
|
6
|
-
<!-- slots:
|
|
7
|
-
header:Optional header region.
|
|
8
|
-
start:Optional logical-start panel region.
|
|
9
|
-
default:Primary content region.
|
|
10
|
-
end:Optional logical-end panel region.
|
|
11
|
-
footer:Optional footer region.
|
|
12
|
-
-->
|
|
13
|
-
<!-- events:
|
|
14
|
-
none
|
|
15
|
-
-->
|
|
16
|
-
<!-- properties:attrs→camelCase -->
|
|
17
|
-
<!-- variant: page-main -->
|
|
18
|
-
<ax-layout is-main-region>
|
|
19
|
-
<h1 slot="header">Page title</h1>
|
|
20
|
-
<p>Page content</p>
|
|
21
|
-
<small slot="footer">Footer</small>
|
|
22
|
-
</ax-layout>
|
|
23
|
-
<!-- variant: bounded-regions -->
|
|
24
|
-
<ax-layout>
|
|
25
|
-
<nav slot="start" aria-label="Workspace navigation">Navigation</nav>
|
|
26
|
-
<a href="#details">Main content</a>
|
|
27
|
-
<aside slot="end">Inspector</aside>
|
|
28
|
-
</ax-layout>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<!-- docs: Open authored images in a modal viewer with gallery navigation and focus restoration. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
src*:str|—|Primary image source.
|
|
4
|
-
alt:str|—|Primary image alternative text.
|
|
5
|
-
caption:str|—|Visible image caption.
|
|
6
|
-
thumbnail-src:str|—|Trigger thumbnail source.
|
|
7
|
-
trigger-label:str|Open image viewer|Accessible trigger name.
|
|
8
|
-
label:str|Image viewer|Accessible dialog name.
|
|
9
|
-
lightbox-id:str|—|Native dialog identifier.
|
|
10
|
-
is-open/open:bool|false|Controlled viewer open state.
|
|
11
|
-
index:str|0|Current zero-based image index.
|
|
12
|
-
has-zoom:bool|false|Reserved image zoom capability.
|
|
13
|
-
-->
|
|
14
|
-
<!-- slots:
|
|
15
|
-
thumbnail:Trigger thumbnail content.
|
|
16
|
-
default*:Authored gallery media figures.
|
|
17
|
-
caption:Caption for generated single-image media.
|
|
18
|
-
-->
|
|
19
|
-
<!-- events:
|
|
20
|
-
astryx:open-change:Emitted with {isOpen} whenever the modal viewer opens or closes.
|
|
21
|
-
astryx:index-change:Emitted with {index} after gallery navigation changes the image.
|
|
22
|
-
-->
|
|
23
|
-
<!-- methods:
|
|
24
|
-
show():Open modal.
|
|
25
|
-
close():Close modal.
|
|
26
|
-
next():Move next.
|
|
27
|
-
previous():Move previous.
|
|
28
|
-
-->
|
|
29
|
-
<!-- properties:attrs→camelCase -->
|
|
30
|
-
<!-- variant: single -->
|
|
31
|
-
<ax-lightbox src="data:image/svg+xml,%3Csvg/%3E" alt="Launch"></ax-lightbox>
|
|
32
|
-
<!-- variant: gallery -->
|
|
33
|
-
<ax-lightbox><figure><img src="data:image/svg+xml,%3Csvg/%3E" alt="One" /></figure><figure><img src="data:image/svg+xml,%3Csvg/%3E" alt="Two" /></figure></ax-lightbox>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<!-- docs: Navigate with a themed native anchor while preserving disabled and external-link semantics. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
href:str|—|Destination URL for navigation.
|
|
4
|
-
label:str|—|Accessible label for icon-only content.
|
|
5
|
-
has-underline:bool|false|Always shows an underline.
|
|
6
|
-
is-disabled/disabled:bool|false|Disables navigation and activation.
|
|
7
|
-
is-external-link:bool|false|Opens in a new tab with safe rel tokens.
|
|
8
|
-
target:str|—|Native link browsing context.
|
|
9
|
-
rel:str|—|Native link relationship tokens.
|
|
10
|
-
download:str|—|Native download filename; an empty value requests download.
|
|
11
|
-
referrer-policy:str|—|Native referrer policy.
|
|
12
|
-
-->
|
|
13
|
-
<!-- slots:
|
|
14
|
-
default*:Visible descriptive link content.
|
|
15
|
-
-->
|
|
16
|
-
<!-- events:
|
|
17
|
-
click:Native click event from the inner anchor.
|
|
18
|
-
-->
|
|
19
|
-
<!-- properties:attrs→camelCase -->
|
|
20
|
-
<!-- variant: default -->
|
|
21
|
-
<ax-link href="#destination">Learn more</ax-link>
|
|
22
|
-
<!-- variant: disabled -->
|
|
23
|
-
<ax-link is-disabled>Unavailable</ax-link>
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<!-- docs: Collect a numeric value with native limits, steppers, units, and validation. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
label*:str|—|Visible field label.
|
|
4
|
-
value:str|—|Current input value.
|
|
5
|
-
description:str|—|Supporting help text.
|
|
6
|
-
units:str|—|Visible unit suffix.
|
|
7
|
-
min:str|—|Native minimum value.
|
|
8
|
-
max:str|—|Native maximum value.
|
|
9
|
-
step:str|1|Native step interval.
|
|
10
|
-
placeholder:str|—|Native placeholder text.
|
|
11
|
-
size:sm,md,lg|md|Visual input size.
|
|
12
|
-
status:none,error,warning,success|none|Current validation state.
|
|
13
|
-
status-message:str|—|Displayed validation message.
|
|
14
|
-
is-required/required:bool|false|Marks the input required.
|
|
15
|
-
is-disabled/disabled:bool|false|Disables the native input.
|
|
16
|
-
is-read-only/readonly:bool|false|Makes the input read-only.
|
|
17
|
-
html-name/name:str|—|Native form name.
|
|
18
|
-
auto-complete/autocomplete:str|—|Native autocomplete hint.
|
|
19
|
-
-->
|
|
20
|
-
<!-- slots:
|
|
21
|
-
label*:Visible field label.
|
|
22
|
-
description:Supporting help text.
|
|
23
|
-
units:Visible units suffix.
|
|
24
|
-
status-message:Displayed validation message.
|
|
25
|
-
-->
|
|
26
|
-
<!-- events:
|
|
27
|
-
input:native
|
|
28
|
-
change:native
|
|
29
|
-
-->
|
|
30
|
-
<!-- properties:attrs→camelCase;readonly:form,validity,validationMessage,valueAsNumber,willValidate -->
|
|
31
|
-
<!-- variant: default -->
|
|
32
|
-
<ax-number-input label="Seats" value="12"></ax-number-input>
|
|
33
|
-
<!-- variant: error -->
|
|
34
|
-
<ax-number-input label="Days" status="error"></ax-number-input>
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<!-- docs: Communicate determinate or indeterminate task progress with native progressbar semantics. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
label*:str|—|Required accessible operation label.
|
|
4
|
-
value:str|0|Current determinate value.
|
|
5
|
-
max:str|100|Maximum determinate value.
|
|
6
|
-
is-label-hidden:bool|false|Visually hides the label while preserving its accessible name.
|
|
7
|
-
has-value-label:bool|false|Shows a percentage value next to the label.
|
|
8
|
-
variant:accent,success,warning,error,neutral|accent|Semantic progress color.
|
|
9
|
-
is-indeterminate:bool|false|Shows progress when completion cannot be measured.
|
|
10
|
-
is-disabled/disabled:bool|false|Uses disabled visual treatment.
|
|
11
|
-
-->
|
|
12
|
-
<!-- slots:
|
|
13
|
-
label:Visible operation label; overrides the label attribute.
|
|
14
|
-
-->
|
|
15
|
-
<!-- events:
|
|
16
|
-
none
|
|
17
|
-
-->
|
|
18
|
-
<!-- properties:attrs→camelCase -->
|
|
19
|
-
<!-- variant: determinate -->
|
|
20
|
-
<ax-progress-bar label="Uploading files" value="72" variant="success" has-value-label></ax-progress-bar>
|
|
21
|
-
<!-- variant: indeterminate -->
|
|
22
|
-
<ax-progress-bar label="Processing report" is-indeterminate></ax-progress-bar>
|
|
23
|
-
<!-- state-recipes:start -->
|
|
24
|
-
<!-- variant: upload-in-progress -->
|
|
25
|
-
<ax-progress-bar
|
|
26
|
-
label="Uploading files"
|
|
27
|
-
value="64"
|
|
28
|
-
max="100"
|
|
29
|
-
has-value-label
|
|
30
|
-
></ax-progress-bar>
|
|
31
|
-
<!-- variant: upload-done -->
|
|
32
|
-
<ax-progress-bar
|
|
33
|
-
label="Upload complete"
|
|
34
|
-
value="100"
|
|
35
|
-
max="100"
|
|
36
|
-
variant="success"
|
|
37
|
-
has-value-label
|
|
38
|
-
></ax-progress-bar>
|
|
39
|
-
<!-- variant: upload-error -->
|
|
40
|
-
<ax-progress-bar
|
|
41
|
-
label="Upload failed"
|
|
42
|
-
value="64"
|
|
43
|
-
max="100"
|
|
44
|
-
variant="error"
|
|
45
|
-
has-value-label
|
|
46
|
-
></ax-progress-bar>
|
|
47
|
-
<!-- state-recipes:end -->
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!-- docs: Choose one value from a native radio group with shared form semantics. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
label*:str|—|Visible field label.
|
|
4
|
-
value:str|—|Currently selected radio value.
|
|
5
|
-
description:str|—|Supporting help text.
|
|
6
|
-
orientation:vertical,horizontal|vertical|Radio group orientation.
|
|
7
|
-
size:sm,md|md|Visual radio size.
|
|
8
|
-
status:none,error,warning,success|none|Current validation state.
|
|
9
|
-
status-message:str|—|Displayed validation message.
|
|
10
|
-
is-disabled/disabled:bool|false|Disables every radio option.
|
|
11
|
-
is-required/required:bool|false|Marks the radio group required.
|
|
12
|
-
html-name/name:str|—|Shared native radio name.
|
|
13
|
-
-->
|
|
14
|
-
<!-- slots:
|
|
15
|
-
label*:Visible radio group label.
|
|
16
|
-
description:Supporting help text.
|
|
17
|
-
default*:Native radio options.
|
|
18
|
-
status-message:Displayed validation message.
|
|
19
|
-
-->
|
|
20
|
-
<!-- events:
|
|
21
|
-
change:Native event from the selected radio.
|
|
22
|
-
astryx:change:Emitted with {value} after radio selection changes.
|
|
23
|
-
-->
|
|
24
|
-
<!-- properties:attrs→camelCase;readonly:form,validity,validationMessage,willValidate -->
|
|
25
|
-
<!-- variant: default -->
|
|
26
|
-
<ax-radio-list label="Plan"><label><input type=radio value=a>A</label><label><input type=radio value=b>B</label></ax-radio-list>
|
|
27
|
-
<!-- variant: horizontal -->
|
|
28
|
-
<ax-radio-list label="Plan" orientation="horizontal"><label><input type=radio value=a>A</label><label><input type=radio value=b>B</label></ax-radio-list>
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<!-- docs: Choose one value from a moderate list with a native select control. -->
|
|
2
|
-
<!-- attributes:
|
|
3
|
-
label*:str|—|Visible and accessible field label.
|
|
4
|
-
value:str|—|Selected option value, reflected after native change events.
|
|
5
|
-
size:sm,md,lg|md|Control size matching Selector size.
|
|
6
|
-
variant:input,ghost|input|Bordered input or ghost toolbar presentation.
|
|
7
|
-
status:none,error,success|none|Current validation state.
|
|
8
|
-
description:str|—|Supporting field description.
|
|
9
|
-
status-message:str|—|Validation message associated with the native select.
|
|
10
|
-
is-required/required:bool|false|Marks the native select required.
|
|
11
|
-
is-disabled/disabled:bool|false|Disables the native select.
|
|
12
|
-
is-read-only/readonly:bool|false|Prevents value changes while preserving focus and submission.
|
|
13
|
-
html-name/name:str|—|Native form field name.
|
|
14
|
-
-->
|
|
15
|
-
<!-- slots:
|
|
16
|
-
label*:Visible field label.
|
|
17
|
-
default*:Native option and optgroup children.
|
|
18
|
-
description:Supporting field description.
|
|
19
|
-
status-message:Validation message.
|
|
20
|
-
-->
|
|
21
|
-
<!-- events:
|
|
22
|
-
change:Native selection event; value is reflected to the host.
|
|
23
|
-
-->
|
|
24
|
-
<!-- properties:attrs→camelCase;readonly:form,validity,validationMessage,willValidate -->
|
|
25
|
-
<!-- variant: default -->
|
|
26
|
-
<ax-selector label="Workspace" html-name="workspace">
|
|
27
|
-
<option value="design">Design systems</option>
|
|
28
|
-
<option value="tools">Developer tools</option>
|
|
29
|
-
</ax-selector>
|
|
30
|
-
<!-- variant: compact -->
|
|
31
|
-
<ax-selector label="Status" size="sm">
|
|
32
|
-
<option>Active</option>
|
|
33
|
-
<option>Paused</option>
|
|
34
|
-
</ax-selector>
|