astryx-dracula 0.5.0 → 0.6.2
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 +3 -3
- package/README.md +7 -4
- package/USAGE.md +49 -49
- package/astryx-dracula.d.ts +2 -2
- package/astryx-dracula.js +25 -9
- package/astryx-dracula.variants.d.ts +2 -2
- package/astryx.integration.mjs +1 -1
- package/icons.mjs +21 -17
- package/icons.tsx +69 -62
- package/package.json +125 -120
- package/shared/auth-chrome-config.ts +6 -6
- package/shared/auth-chrome.tsx +143 -144
- package/shared/auth-copy.ts +14 -14
- package/shared/chaptered-doc-config.ts +48 -51
- package/shared/chaptered-doc.tsx +267 -289
- package/shared/chart-hues.ts +25 -10
- package/shared/chart-labels.tsx +31 -30
- package/shared/chart-legend.tsx +55 -56
- package/shared/chart-panel-style.ts +3 -3
- package/shared/data-bar.tsx +97 -102
- package/shared/format-money.ts +1 -1
- package/shared/gallery-image.ts +6 -6
- package/shared/login-demo.ts +1 -1
- package/shared/metric-card.tsx +101 -105
- package/shared/metric-delta.tsx +28 -27
- package/shared/order-desk.tsx +205 -216
- package/shared/revenue-chart.tsx +145 -165
- package/shared/scene-castle.tsx +206 -291
- package/shared/scene-frame.tsx +33 -32
- package/shared/scene-hues.ts +17 -17
- package/shared/scene-tile.tsx +88 -92
- package/shared/settings-data.ts +119 -125
- package/shared/settings-rows.tsx +122 -159
- package/shared/sparkline.tsx +75 -88
- package/shared/sso-icons.tsx +10 -22
- package/shared/stars.tsx +16 -25
- package/templates/ai-chat-landing.template.mjs +5 -4
- package/templates/ai-chat-landing.tsx +473 -460
- package/templates/ai-chat.template.mjs +5 -4
- package/templates/ai-chat.tsx +543 -612
- package/templates/blank.template.mjs +5 -4
- package/templates/blank.tsx +18 -14
- package/templates/centered-hero.template.mjs +5 -4
- package/templates/centered-hero.tsx +55 -68
- package/templates/classic-gallery.template.mjs +5 -4
- package/templates/classic-gallery.tsx +97 -104
- package/templates/contact-form.template.mjs +5 -4
- package/templates/contact-form.tsx +247 -282
- package/templates/dashboard-portfolio.template.mjs +5 -4
- package/templates/dashboard-portfolio.tsx +717 -548
- package/templates/dashboard.template.mjs +5 -4
- package/templates/dashboard.tsx +596 -567
- package/templates/detail-page.template.mjs +5 -4
- package/templates/detail-page.tsx +546 -603
- package/templates/documentation-design.template.mjs +5 -4
- package/templates/documentation-design.tsx +231 -243
- package/templates/documentation-technical.template.mjs +5 -4
- package/templates/documentation-technical.tsx +236 -239
- package/templates/documentation.template.mjs +5 -4
- package/templates/documentation.tsx +267 -279
- package/templates/editor.template.mjs +5 -4
- package/templates/editor.tsx +844 -877
- package/templates/file-explorer.template.mjs +5 -4
- package/templates/file-explorer.tsx +566 -590
- package/templates/form-two-column.template.mjs +5 -4
- package/templates/form-two-column.tsx +195 -210
- package/templates/gallery-hero.template.mjs +5 -4
- package/templates/gallery-hero.tsx +93 -114
- package/templates/ide.template.mjs +5 -4
- package/templates/ide.tsx +407 -453
- package/templates/incident-console.template.mjs +5 -4
- package/templates/incident-console.tsx +593 -575
- package/templates/kanban-board.template.mjs +5 -4
- package/templates/kanban-board.tsx +665 -683
- package/templates/library.template.mjs +5 -4
- package/templates/library.tsx +409 -430
- package/templates/login-card.template.mjs +5 -4
- package/templates/login-card.tsx +63 -72
- package/templates/login-split.template.mjs +5 -4
- package/templates/login-split.tsx +192 -193
- package/templates/login-sso.template.mjs +5 -4
- package/templates/login-sso.tsx +257 -258
- package/templates/login.template.mjs +5 -4
- package/templates/login.tsx +53 -49
- package/templates/messaging-shell.template.mjs +5 -4
- package/templates/messaging-shell.tsx +556 -574
- package/templates/mixed-gallery.template.mjs +5 -4
- package/templates/mixed-gallery.tsx +60 -58
- package/templates/payment-form.template.mjs +5 -4
- package/templates/payment-form.tsx +882 -991
- package/templates/product-detail.template.mjs +5 -4
- package/templates/product-detail.tsx +261 -272
- package/templates/product-gallery.template.mjs +5 -4
- package/templates/product-gallery.tsx +126 -137
- package/templates/product-tour.template.mjs +5 -4
- package/templates/product-tour.tsx +741 -773
- package/templates/settings-dialog.template.mjs +5 -4
- package/templates/settings-dialog.tsx +688 -717
- package/templates/settings-sidebar.template.mjs +5 -4
- package/templates/settings-sidebar.tsx +762 -807
- package/templates/settings.template.mjs +5 -4
- package/templates/settings.tsx +289 -304
- package/templates/shell-nav.template.mjs +5 -4
- package/templates/shell-nav.tsx +212 -219
- package/templates/shell-side-nav.template.mjs +5 -4
- package/templates/shell-side-nav.tsx +135 -157
- package/templates/shell-top-nav.template.mjs +5 -4
- package/templates/shell-top-nav.tsx +182 -203
- package/templates/side-gallery.template.mjs +5 -4
- package/templates/side-gallery.tsx +85 -90
- package/templates/table-grouped.template.mjs +5 -4
- package/templates/table-grouped.tsx +1000 -1053
- package/templates/table-page-chart.template.mjs +5 -4
- package/templates/table-page-chart.tsx +400 -398
- package/templates/table-page-heatmap-status.template.mjs +5 -4
- package/templates/table-page-heatmap-status.tsx +483 -512
- package/templates/table-page-shoe-store-heatmap.template.mjs +5 -4
- package/templates/table-page-shoe-store-heatmap.tsx +748 -746
- package/templates/table-page.template.mjs +5 -4
- package/templates/table-page.tsx +396 -405
- package/templates/table.template.mjs +5 -4
- package/templates/table.tsx +92 -93
- package/templates/tech-report.template.mjs +5 -4
- package/templates/tech-report.tsx +1316 -1304
- package/templates/theme-showcase.template.mjs +5 -4
- package/templates/theme-showcase.tsx +871 -951
- package/theme.css +35 -77
- package/theme.css.d.ts +9 -0
- package/tokens.css +373 -380
|
@@ -1,69 +1,66 @@
|
|
|
1
1
|
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
// XLE (canonical structure
|
|
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):
|
|
3
5
|
// AR*9 is the live count: SCENE_TILE_ALTS has 9 entries and a bare .map renders
|
|
4
6
|
// all 9, with no slice.
|
|
5
|
-
// L > LC[p=6] > G[c={min:280}
|
|
7
|
+
// L[h=fill mw=1400] > LC[p=6] > G[c={min:280} g=8 a=center] > (V[g=6 a=center] > (V[g=3] > Tx"AFTER DARK"[t=supporting] + Hd"Make every night"[level=1] + Tx"The smallest rituals"[t=body]) + B.primary"Explore the night" + (V[g=4] > D + (H[g=6] > (V[g=0] > Tx"12k+"[t=display-3] + Tx"Night shots"[t=supporting])*3))) + (G[c=3 g=3] > AR[ratio=1]*9)
|
|
6
8
|
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import type {
|
|
9
|
+
import { AspectRatio } from "@astryxdesign/core/AspectRatio";
|
|
10
|
+
import { Button } from "@astryxdesign/core/Button";
|
|
11
|
+
import { Divider } from "@astryxdesign/core/Divider";
|
|
12
|
+
import { Grid } from "@astryxdesign/core/Grid";
|
|
13
|
+
import { HStack, Layout, LayoutContent, VStack } from "@astryxdesign/core/Layout";
|
|
14
|
+
import { Heading, Text } from "@astryxdesign/core/Text";
|
|
15
|
+
import { galleryImageClip } from "astryx-dracula/shared/gallery-image";
|
|
16
|
+
import type { SceneHue } from "astryx-dracula/shared/scene-hues";
|
|
17
|
+
import { SCENE_TILE_ALTS } from "astryx-dracula/shared/scene-hues";
|
|
18
|
+
import { SceneTile } from "astryx-dracula/shared/scene-tile";
|
|
19
|
+
import type { CSSProperties } from "react";
|
|
18
20
|
|
|
19
21
|
// ─── Gallery Data ─────────────────────────────────────────────────────────────
|
|
20
22
|
|
|
21
23
|
// One Dracula accent per tile from the fixed categorical vocabulary; alts come
|
|
22
24
|
// straight from SCENE_TILE_ALTS, shared with classic-gallery.
|
|
23
25
|
const GALLERY_HUES: SceneHue[] = [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
"var(--dracula-cyan)",
|
|
27
|
+
"var(--dracula-pink)",
|
|
28
|
+
"var(--dracula-yellow)",
|
|
29
|
+
"var(--dracula-green)",
|
|
30
|
+
"var(--dracula-pink)",
|
|
31
|
+
"var(--dracula-orange)",
|
|
32
|
+
"var(--dracula-cyan)",
|
|
33
|
+
"var(--dracula-yellow)",
|
|
34
|
+
"var(--dracula-green)",
|
|
33
35
|
];
|
|
34
36
|
|
|
35
37
|
// ─── Stat Block ─────────────────────────────────────────────────────────────
|
|
36
38
|
|
|
37
|
-
function StatBlock({value, label}: {value: string; label: string}) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
function StatBlock({ value, label }: { value: string; label: string }) {
|
|
40
|
+
return (
|
|
41
|
+
<VStack gap={0}>
|
|
42
|
+
<Text type="display-3" weight="semibold" hasTabularNumbers>
|
|
43
|
+
{value}
|
|
44
|
+
</Text>
|
|
45
|
+
<Text type="supporting" color="secondary">
|
|
46
|
+
{label}
|
|
47
|
+
</Text>
|
|
48
|
+
</VStack>
|
|
49
|
+
);
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
// ─── Image Grid ─────────────────────────────────────────────────────────────
|
|
51
53
|
|
|
52
54
|
function ImageGrid() {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
/>
|
|
63
|
-
</AspectRatio>
|
|
64
|
-
))}
|
|
65
|
-
</Grid>
|
|
66
|
-
);
|
|
55
|
+
return (
|
|
56
|
+
<Grid columns={3} gap={3}>
|
|
57
|
+
{SCENE_TILE_ALTS.map((alt, index) => (
|
|
58
|
+
<AspectRatio key={alt} ratio={1} style={galleryImageClip}>
|
|
59
|
+
<SceneTile label={alt} hue={GALLERY_HUES[index]} size="sm" index={index} />
|
|
60
|
+
</AspectRatio>
|
|
61
|
+
))}
|
|
62
|
+
</Grid>
|
|
63
|
+
);
|
|
67
64
|
}
|
|
68
65
|
|
|
69
66
|
// ─── Main Page ──────────────────────────────────────────────────────────────
|
|
@@ -74,52 +71,50 @@ function ImageGrid() {
|
|
|
74
71
|
// the scroll. LayoutContent is overflow:auto, so the definite height lands as a
|
|
75
72
|
// content-pane scroller rather than a clip. Same shape as dashboard.tsx and
|
|
76
73
|
// editor.tsx:302.
|
|
77
|
-
const pageStyle: CSSProperties = {height:
|
|
74
|
+
const pageStyle: CSSProperties = { height: "100dvh" };
|
|
78
75
|
|
|
79
76
|
export default function SideGallery() {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
</Text>
|
|
104
|
-
</VStack>
|
|
77
|
+
return (
|
|
78
|
+
<Layout
|
|
79
|
+
style={pageStyle}
|
|
80
|
+
height="fill"
|
|
81
|
+
contentWidth={1400}
|
|
82
|
+
content={
|
|
83
|
+
<LayoutContent padding={6}>
|
|
84
|
+
<Grid columns={{ minWidth: 280, repeat: "fit" }} gap={8} align="center">
|
|
85
|
+
{/* Left side: Text + CTA */}
|
|
86
|
+
<VStack gap={6} vAlign="center">
|
|
87
|
+
<VStack gap={3}>
|
|
88
|
+
<Text type="supporting" color="secondary">
|
|
89
|
+
AFTER DARK
|
|
90
|
+
</Text>
|
|
91
|
+
<Heading level={1}>
|
|
92
|
+
Make every night a little more spellbinding, one small ritual at a time.
|
|
93
|
+
</Heading>
|
|
94
|
+
<Text type="body" color="secondary">
|
|
95
|
+
The smallest rituals are the ones that matter most. A little lamplight that
|
|
96
|
+
catches your eye and makes you pause; that's what turns an ordinary evening
|
|
97
|
+
into something worth remembering.
|
|
98
|
+
</Text>
|
|
99
|
+
</VStack>
|
|
105
100
|
|
|
106
|
-
|
|
101
|
+
<Button label="Explore the night" variant="primary" />
|
|
107
102
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
103
|
+
<VStack gap={4}>
|
|
104
|
+
<Divider />
|
|
105
|
+
<HStack gap={6}>
|
|
106
|
+
<StatBlock value="12k+" label="Night shots" />
|
|
107
|
+
<StatBlock value="350+" label="Dark builds" />
|
|
108
|
+
<StatBlock value="8yrs" label="Years prowling" />
|
|
109
|
+
</HStack>
|
|
110
|
+
</VStack>
|
|
111
|
+
</VStack>
|
|
117
112
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
113
|
+
{/* Right side: Image Grid */}
|
|
114
|
+
<ImageGrid />
|
|
115
|
+
</Grid>
|
|
116
|
+
</LayoutContent>
|
|
117
|
+
}
|
|
118
|
+
/>
|
|
119
|
+
);
|
|
125
120
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
type: "page",
|
|
3
|
+
name: "Grouped Table",
|
|
4
|
+
description: "Collapsible status sections with detail panel",
|
|
5
|
+
keywords: ["table", "grouped", "rows", "sections", "data", "grouping"],
|
|
6
|
+
category: "data",
|
|
6
7
|
};
|