astryx-dracula 0.5.1 → 0.7.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/BRAND.md +57 -6
- package/README.md +16 -6
- package/USAGE.md +50 -50
- package/astryx-dracula.d.ts +2 -2
- package/astryx-dracula.js +49 -11
- package/astryx-dracula.variants.d.ts +2 -2
- package/icons.mjs +4 -0
- package/icons.tsx +8 -0
- package/package.json +23 -18
- package/shared/auth-chrome-config.ts +0 -4
- package/shared/auth-chrome.tsx +2 -3
- package/shared/chaptered-doc-config.ts +3 -2
- package/shared/chaptered-doc.tsx +1 -2
- package/shared/chart-hues.ts +21 -6
- package/shared/chart-legend.tsx +2 -2
- package/shared/data-bar.tsx +2 -2
- package/shared/order-desk.tsx +52 -54
- package/shared/revenue-chart.tsx +1 -1
- package/shared/scene-castle.tsx +21 -13
- package/shared/settings-data.ts +0 -6
- package/shared/settings-rows.tsx +1 -23
- package/templates/ai-chat-landing.template.mjs +1 -0
- package/templates/ai-chat-landing.tsx +30 -11
- package/templates/ai-chat.template.mjs +1 -0
- package/templates/ai-chat.tsx +9 -3
- package/templates/blank.template.mjs +1 -0
- package/templates/blank.tsx +4 -2
- package/templates/centered-hero.template.mjs +1 -0
- package/templates/centered-hero.tsx +5 -3
- package/templates/classic-gallery.template.mjs +1 -0
- package/templates/classic-gallery.tsx +9 -2
- package/templates/contact-form.template.mjs +1 -0
- package/templates/contact-form.tsx +13 -2
- package/templates/dashboard-portfolio.template.mjs +1 -0
- package/templates/dashboard-portfolio.tsx +21 -6
- package/templates/dashboard.template.mjs +1 -0
- package/templates/dashboard.tsx +9 -7
- package/templates/detail-page.template.mjs +1 -0
- package/templates/detail-page.tsx +28 -36
- package/templates/documentation-design.template.mjs +1 -0
- package/templates/documentation-design.tsx +8 -3
- package/templates/documentation-technical.template.mjs +1 -0
- package/templates/documentation-technical.tsx +11 -6
- package/templates/documentation.template.mjs +1 -0
- package/templates/documentation.tsx +16 -7
- package/templates/editor.template.mjs +1 -0
- package/templates/editor.tsx +4 -2
- package/templates/file-explorer.template.mjs +1 -0
- package/templates/file-explorer.tsx +4 -2
- package/templates/form-two-column.template.mjs +1 -0
- package/templates/form-two-column.tsx +19 -4
- package/templates/form-wizard.template.mjs +15 -0
- package/templates/form-wizard.tsx +878 -0
- package/templates/gallery-hero.template.mjs +1 -0
- package/templates/gallery-hero.tsx +14 -6
- package/templates/ide.template.mjs +1 -0
- package/templates/ide.tsx +187 -101
- package/templates/incident-console.template.mjs +1 -0
- package/templates/incident-console.tsx +137 -85
- package/templates/kanban-board.template.mjs +1 -0
- package/templates/kanban-board.tsx +51 -7
- package/templates/library.template.mjs +1 -0
- package/templates/library.tsx +15 -4
- package/templates/login-card.template.mjs +1 -0
- package/templates/login-card.tsx +4 -2
- package/templates/login-split.template.mjs +1 -0
- package/templates/login-split.tsx +8 -5
- package/templates/login-sso.template.mjs +1 -0
- package/templates/login-sso.tsx +13 -19
- package/templates/login.template.mjs +1 -0
- package/templates/login.tsx +4 -2
- package/templates/messaging-shell.template.mjs +1 -0
- package/templates/messaging-shell.tsx +114 -47
- package/templates/mixed-gallery.template.mjs +1 -0
- package/templates/mixed-gallery.tsx +10 -2
- package/templates/payment-form.template.mjs +1 -0
- package/templates/payment-form.tsx +34 -31
- package/templates/product-detail.template.mjs +1 -0
- package/templates/product-detail.tsx +21 -5
- package/templates/product-gallery.template.mjs +1 -0
- package/templates/product-gallery.tsx +12 -5
- package/templates/product-tour.template.mjs +1 -0
- package/templates/product-tour.tsx +21 -14
- package/templates/settings-dialog.template.mjs +1 -0
- package/templates/settings-dialog.tsx +10 -3
- package/templates/settings-sidebar.template.mjs +1 -0
- package/templates/settings-sidebar.tsx +609 -588
- package/templates/settings.template.mjs +1 -0
- package/templates/settings.tsx +11 -12
- package/templates/shell-nav.template.mjs +1 -0
- package/templates/shell-nav.tsx +47 -29
- package/templates/shell-side-nav.template.mjs +1 -0
- package/templates/shell-side-nav.tsx +88 -70
- package/templates/shell-top-nav.template.mjs +1 -0
- package/templates/shell-top-nav.tsx +102 -88
- package/templates/side-gallery.template.mjs +1 -0
- package/templates/side-gallery.tsx +4 -2
- package/templates/table-grouped.template.mjs +1 -0
- package/templates/table-grouped.tsx +150 -134
- package/templates/table-page-chart.template.mjs +1 -0
- package/templates/table-page-chart.tsx +4 -2
- package/templates/table-page-heatmap-status.template.mjs +1 -0
- package/templates/table-page-heatmap-status.tsx +4 -2
- package/templates/{table-page-shoe-store-heatmap.template.mjs → table-page-shoe-store.template.mjs} +1 -0
- package/templates/{table-page-shoe-store-heatmap.tsx → table-page-shoe-store.tsx} +5 -3
- package/templates/table-page.template.mjs +1 -0
- package/templates/table-page.tsx +12 -2
- package/templates/table-tree.template.mjs +16 -0
- package/templates/table-tree.tsx +707 -0
- package/templates/table.template.mjs +1 -0
- package/templates/table.tsx +4 -2
- package/templates/tech-report.template.mjs +1 -0
- package/templates/tech-report.tsx +18 -13
- package/templates/theme-showcase.template.mjs +1 -0
- package/templates/theme-showcase.tsx +41 -28
- package/templates/work-item-detail.template.mjs +8 -0
- package/templates/work-item-detail.tsx +1049 -0
- package/theme.css +71 -78
- package/theme.css.d.ts +9 -0
- package/tokens.css +79 -46
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
// XLE (canonical structure
|
|
3
|
-
//
|
|
2
|
+
// XLE (canonical structure of the tree below; the CLI had no XLE validator
|
|
3
|
+
// after `astryx layout` was removed in 0.7.0, so this is a reading aid and a
|
|
4
|
+
// human drift check — update it with the file, never alone):
|
|
5
|
+
// Ctr > S.transparent[mw=1100 w=100% p=10] > V[g=10] > (G[c={min:280,max:2} g=10 a=center] > (V[g=6] > (V[g=3] > Hd"Let's conjure together"[level=1 t=display-1] + Tx"Tell us what you're brewing"[t=body]) + (AR[ratio=4/3] > Scene{SceneCastle})) + (C[p=4] > V[g=4] > Hd"Your details"[level=2] + TI"Full name"[req] + (G[c={min:180} g=3] > TI"Email"[req] + TI"Company name") + (G[c={min:180} g=3] > TI"Job title" + TI"Phone number") + (V[g=2] > Tx"What are you reaching out about?"[t=label] + (H[g=2] > Tk"Reason"*7)) + SE"Budget range" + TA"Project details" + Bn.success"Sent into the night" + (V[a=stretch] > B.primary"Send it into the night"))) + (V[g=6] > D + (G[c={min:200} g=6] > (V[g=1 a=center] > Tx"General"[t=supporting] + Lk"hello@castle.dracula")*3))
|
|
4
6
|
|
|
5
7
|
import { AspectRatio } from "@astryxdesign/core/AspectRatio";
|
|
6
8
|
import { Banner } from "@astryxdesign/core/Banner";
|
|
@@ -119,6 +121,7 @@ export default function TwoColumnForm() {
|
|
|
119
121
|
label="Full name"
|
|
120
122
|
isRequired
|
|
121
123
|
placeholder="Full name"
|
|
124
|
+
autoComplete="name"
|
|
122
125
|
value={fullName}
|
|
123
126
|
onChange={setFullName}
|
|
124
127
|
status={errors.fullName ? { type: "error", message: errors.fullName } : undefined}
|
|
@@ -127,7 +130,9 @@ export default function TwoColumnForm() {
|
|
|
127
130
|
<TextInput
|
|
128
131
|
label="Email"
|
|
129
132
|
isRequired
|
|
133
|
+
type="email"
|
|
130
134
|
placeholder="Email"
|
|
135
|
+
autoComplete="email"
|
|
131
136
|
value={email}
|
|
132
137
|
onChange={setEmail}
|
|
133
138
|
status={errors.email ? { type: "error", message: errors.email } : undefined}
|
|
@@ -135,6 +140,7 @@ export default function TwoColumnForm() {
|
|
|
135
140
|
<TextInput
|
|
136
141
|
label="Company name"
|
|
137
142
|
placeholder="Company name"
|
|
143
|
+
autoComplete="organization"
|
|
138
144
|
value={company}
|
|
139
145
|
onChange={setCompany}
|
|
140
146
|
/>
|
|
@@ -143,20 +149,25 @@ export default function TwoColumnForm() {
|
|
|
143
149
|
<TextInput
|
|
144
150
|
label="Job title"
|
|
145
151
|
placeholder="Job title"
|
|
152
|
+
autoComplete="organization-title"
|
|
146
153
|
value={jobTitle}
|
|
147
154
|
onChange={setJobTitle}
|
|
148
155
|
/>
|
|
149
156
|
<TextInput
|
|
150
157
|
label="Phone number"
|
|
158
|
+
type="tel"
|
|
151
159
|
placeholder="Phone number"
|
|
160
|
+
autoComplete="tel"
|
|
152
161
|
value={phone}
|
|
153
162
|
onChange={setPhone}
|
|
154
163
|
/>
|
|
155
164
|
</Grid>
|
|
156
165
|
|
|
157
166
|
<VStack gap={2}>
|
|
158
|
-
<Text type="label"
|
|
159
|
-
|
|
167
|
+
<Text type="label" id="inquiry-reasons-label">
|
|
168
|
+
What are you reaching out about?
|
|
169
|
+
</Text>
|
|
170
|
+
<HStack gap={2} wrap="wrap" role="group" aria-labelledby="inquiry-reasons-label">
|
|
160
171
|
{INQUIRY_REASONS.map((reason) => {
|
|
161
172
|
const isSelected = inquiryReason === reason;
|
|
162
173
|
return (
|
|
@@ -196,6 +207,10 @@ export default function TwoColumnForm() {
|
|
|
196
207
|
{submitted && isValid && (
|
|
197
208
|
<Banner
|
|
198
209
|
status="success"
|
|
210
|
+
// Core 0.7.0 stopped deriving the live-region role from
|
|
211
|
+
// `status`, so this banner states its own. It mirrors the
|
|
212
|
+
// submit result, and a screen reader must hear it.
|
|
213
|
+
role="status"
|
|
199
214
|
title="Sent into the night"
|
|
200
215
|
description="The coven received your message and will answer after dark."
|
|
201
216
|
/>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
type: "page",
|
|
3
|
+
name: "Form Wizard",
|
|
4
|
+
description: "Four-step workspace setup with a stepper, per-step validation, and a review",
|
|
5
|
+
keywords: [
|
|
6
|
+
"wizard",
|
|
7
|
+
"stepper",
|
|
8
|
+
"multi-step form",
|
|
9
|
+
"onboarding",
|
|
10
|
+
"validation",
|
|
11
|
+
"review step",
|
|
12
|
+
"workspace setup",
|
|
13
|
+
],
|
|
14
|
+
category: "forms",
|
|
15
|
+
};
|