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.
Files changed (120) hide show
  1. package/BRAND.md +57 -6
  2. package/README.md +16 -6
  3. package/USAGE.md +50 -50
  4. package/astryx-dracula.d.ts +2 -2
  5. package/astryx-dracula.js +49 -11
  6. package/astryx-dracula.variants.d.ts +2 -2
  7. package/icons.mjs +4 -0
  8. package/icons.tsx +8 -0
  9. package/package.json +23 -18
  10. package/shared/auth-chrome-config.ts +0 -4
  11. package/shared/auth-chrome.tsx +2 -3
  12. package/shared/chaptered-doc-config.ts +3 -2
  13. package/shared/chaptered-doc.tsx +1 -2
  14. package/shared/chart-hues.ts +21 -6
  15. package/shared/chart-legend.tsx +2 -2
  16. package/shared/data-bar.tsx +2 -2
  17. package/shared/order-desk.tsx +52 -54
  18. package/shared/revenue-chart.tsx +1 -1
  19. package/shared/scene-castle.tsx +21 -13
  20. package/shared/settings-data.ts +0 -6
  21. package/shared/settings-rows.tsx +1 -23
  22. package/templates/ai-chat-landing.template.mjs +1 -0
  23. package/templates/ai-chat-landing.tsx +30 -11
  24. package/templates/ai-chat.template.mjs +1 -0
  25. package/templates/ai-chat.tsx +9 -3
  26. package/templates/blank.template.mjs +1 -0
  27. package/templates/blank.tsx +4 -2
  28. package/templates/centered-hero.template.mjs +1 -0
  29. package/templates/centered-hero.tsx +5 -3
  30. package/templates/classic-gallery.template.mjs +1 -0
  31. package/templates/classic-gallery.tsx +9 -2
  32. package/templates/contact-form.template.mjs +1 -0
  33. package/templates/contact-form.tsx +13 -2
  34. package/templates/dashboard-portfolio.template.mjs +1 -0
  35. package/templates/dashboard-portfolio.tsx +21 -6
  36. package/templates/dashboard.template.mjs +1 -0
  37. package/templates/dashboard.tsx +9 -7
  38. package/templates/detail-page.template.mjs +1 -0
  39. package/templates/detail-page.tsx +28 -36
  40. package/templates/documentation-design.template.mjs +1 -0
  41. package/templates/documentation-design.tsx +8 -3
  42. package/templates/documentation-technical.template.mjs +1 -0
  43. package/templates/documentation-technical.tsx +11 -6
  44. package/templates/documentation.template.mjs +1 -0
  45. package/templates/documentation.tsx +16 -7
  46. package/templates/editor.template.mjs +1 -0
  47. package/templates/editor.tsx +4 -2
  48. package/templates/file-explorer.template.mjs +1 -0
  49. package/templates/file-explorer.tsx +4 -2
  50. package/templates/form-two-column.template.mjs +1 -0
  51. package/templates/form-two-column.tsx +19 -4
  52. package/templates/form-wizard.template.mjs +15 -0
  53. package/templates/form-wizard.tsx +878 -0
  54. package/templates/gallery-hero.template.mjs +1 -0
  55. package/templates/gallery-hero.tsx +14 -6
  56. package/templates/ide.template.mjs +1 -0
  57. package/templates/ide.tsx +187 -101
  58. package/templates/incident-console.template.mjs +1 -0
  59. package/templates/incident-console.tsx +137 -85
  60. package/templates/kanban-board.template.mjs +1 -0
  61. package/templates/kanban-board.tsx +51 -7
  62. package/templates/library.template.mjs +1 -0
  63. package/templates/library.tsx +15 -4
  64. package/templates/login-card.template.mjs +1 -0
  65. package/templates/login-card.tsx +4 -2
  66. package/templates/login-split.template.mjs +1 -0
  67. package/templates/login-split.tsx +8 -5
  68. package/templates/login-sso.template.mjs +1 -0
  69. package/templates/login-sso.tsx +13 -19
  70. package/templates/login.template.mjs +1 -0
  71. package/templates/login.tsx +4 -2
  72. package/templates/messaging-shell.template.mjs +1 -0
  73. package/templates/messaging-shell.tsx +114 -47
  74. package/templates/mixed-gallery.template.mjs +1 -0
  75. package/templates/mixed-gallery.tsx +10 -2
  76. package/templates/payment-form.template.mjs +1 -0
  77. package/templates/payment-form.tsx +34 -31
  78. package/templates/product-detail.template.mjs +1 -0
  79. package/templates/product-detail.tsx +21 -5
  80. package/templates/product-gallery.template.mjs +1 -0
  81. package/templates/product-gallery.tsx +12 -5
  82. package/templates/product-tour.template.mjs +1 -0
  83. package/templates/product-tour.tsx +21 -14
  84. package/templates/settings-dialog.template.mjs +1 -0
  85. package/templates/settings-dialog.tsx +10 -3
  86. package/templates/settings-sidebar.template.mjs +1 -0
  87. package/templates/settings-sidebar.tsx +609 -588
  88. package/templates/settings.template.mjs +1 -0
  89. package/templates/settings.tsx +11 -12
  90. package/templates/shell-nav.template.mjs +1 -0
  91. package/templates/shell-nav.tsx +47 -29
  92. package/templates/shell-side-nav.template.mjs +1 -0
  93. package/templates/shell-side-nav.tsx +88 -70
  94. package/templates/shell-top-nav.template.mjs +1 -0
  95. package/templates/shell-top-nav.tsx +102 -88
  96. package/templates/side-gallery.template.mjs +1 -0
  97. package/templates/side-gallery.tsx +4 -2
  98. package/templates/table-grouped.template.mjs +1 -0
  99. package/templates/table-grouped.tsx +150 -134
  100. package/templates/table-page-chart.template.mjs +1 -0
  101. package/templates/table-page-chart.tsx +4 -2
  102. package/templates/table-page-heatmap-status.template.mjs +1 -0
  103. package/templates/table-page-heatmap-status.tsx +4 -2
  104. package/templates/{table-page-shoe-store-heatmap.template.mjs → table-page-shoe-store.template.mjs} +1 -0
  105. package/templates/{table-page-shoe-store-heatmap.tsx → table-page-shoe-store.tsx} +5 -3
  106. package/templates/table-page.template.mjs +1 -0
  107. package/templates/table-page.tsx +12 -2
  108. package/templates/table-tree.template.mjs +16 -0
  109. package/templates/table-tree.tsx +707 -0
  110. package/templates/table.template.mjs +1 -0
  111. package/templates/table.tsx +4 -2
  112. package/templates/tech-report.template.mjs +1 -0
  113. package/templates/tech-report.tsx +18 -13
  114. package/templates/theme-showcase.template.mjs +1 -0
  115. package/templates/theme-showcase.tsx +41 -28
  116. package/templates/work-item-detail.template.mjs +8 -0
  117. package/templates/work-item-detail.tsx +1049 -0
  118. package/theme.css +71 -78
  119. package/theme.css.d.ts +9 -0
  120. package/tokens.css +79 -46
@@ -1,6 +1,8 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
- // XLE (canonical structure, validated with `bunx astryx layout check`):
3
- // Ctr > S.transparent[p=10] > V[g=10] > (G[c={min:280,max:2} g=10] > (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) + (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") + (G[c={min:180} g=3] > TI"Job title" + TI"Phone") + (V[g=2] > Tx"Reason"[t=label] + (H[g=2] > Tk"Reason"*7)) + SE"Budget" + TA"Project details" + 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))
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">What are you reaching out about?</Text>
159
- <HStack gap={2} wrap="wrap">
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
+ };