@designa8/vibedesign-linear-internal-v1-b737 0.15.1 → 0.15.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/README.md +1 -1
- package/package.json +1 -1
- package/src/organisms/SidebarMobile/preview.tsx +28 -13
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-linear-internal-v1-b737
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.15.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.15.2**.
|
|
4
4
|
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
5
|
never hardcode visual values in consumer code.
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -60,6 +60,20 @@ const MOBILE_ACTIONS = (
|
|
|
60
60
|
</>
|
|
61
61
|
);
|
|
62
62
|
|
|
63
|
+
/**
|
|
64
|
+
* A stand-in for what a consumer app drops into the announcement's `artwork` slot.
|
|
65
|
+
* Nothing here ships with the Sidebar — the card owns the box and the mask.
|
|
66
|
+
*/
|
|
67
|
+
const ARTWORK = (
|
|
68
|
+
<div
|
|
69
|
+
className="h-full w-full"
|
|
70
|
+
style={{
|
|
71
|
+
backgroundImage:
|
|
72
|
+
"linear-gradient(135deg, var(--color-promo-glow) 0%, var(--color-promo-glow-pink) 46%, var(--color-promo-violet) 100%)",
|
|
73
|
+
}}
|
|
74
|
+
/>
|
|
75
|
+
);
|
|
76
|
+
|
|
63
77
|
export default function SidebarMobilePreview() {
|
|
64
78
|
const [open, setOpen] = React.useState(false);
|
|
65
79
|
const [active, setActive] = React.useState("issues");
|
|
@@ -83,7 +97,16 @@ export default function SidebarMobilePreview() {
|
|
|
83
97
|
onNavigate={navigate}
|
|
84
98
|
workspaceName="AS Mobbin"
|
|
85
99
|
userName="AS Mobbin"
|
|
86
|
-
announcement={{
|
|
100
|
+
announcement={{
|
|
101
|
+
eyebrow: "Plan",
|
|
102
|
+
title: "Upgrade to Pro",
|
|
103
|
+
subtitle: "Unlock more features",
|
|
104
|
+
variant: "promo",
|
|
105
|
+
icon: "crown",
|
|
106
|
+
artwork: ARTWORK,
|
|
107
|
+
href: "#upgrade",
|
|
108
|
+
onClick: () => setUpgrades((n) => n + 1),
|
|
109
|
+
}}
|
|
87
110
|
mobileActions={MOBILE_ACTIONS}
|
|
88
111
|
onHelpClick={() => undefined}
|
|
89
112
|
onSettingsClick={() => undefined}
|
|
@@ -93,7 +116,7 @@ export default function SidebarMobilePreview() {
|
|
|
93
116
|
<div className="bg-surface p-base">
|
|
94
117
|
<h1 className="text-heading-sm text-ink">Issues</h1>
|
|
95
118
|
<p className="mt-xs text-body-sm text-muted">
|
|
96
|
-
|
|
119
|
+
The promo card takes an artwork slot ({upgrades} clicks). Open the drawer to see it above the footer.
|
|
97
120
|
</p>
|
|
98
121
|
</div>
|
|
99
122
|
</SidebarMobile>
|
|
@@ -110,21 +133,13 @@ export default function SidebarMobilePreview() {
|
|
|
110
133
|
onNavigate={navigate}
|
|
111
134
|
workspaceName="AS Mobbin"
|
|
112
135
|
userName="AS Mobbin"
|
|
113
|
-
announcement={{
|
|
114
|
-
eyebrow: "Plan",
|
|
115
|
-
title: "Upgrade to Pro",
|
|
116
|
-
subtitle: "Unlock more features",
|
|
117
|
-
variant: "promo",
|
|
118
|
-
icon: "crown",
|
|
119
|
-
href: "#upgrade",
|
|
120
|
-
onClick: () => setUpgrades((n) => n + 1),
|
|
121
|
-
}}
|
|
136
|
+
announcement={{ eyebrow: "What's new", title: "Web forms for intake requests" }}
|
|
122
137
|
onSettingsClick={() => undefined}
|
|
123
138
|
>
|
|
124
139
|
<div className="bg-surface p-base">
|
|
125
|
-
<h1 className="text-heading-sm text-ink">
|
|
140
|
+
<h1 className="text-heading-sm text-ink">Default announcement</h1>
|
|
126
141
|
<p className="mt-xs text-body-sm text-muted">
|
|
127
|
-
The
|
|
142
|
+
The plain "what's new" note is unchanged — no art area, no icon.
|
|
128
143
|
</p>
|
|
129
144
|
</div>
|
|
130
145
|
</SidebarMobile>
|