@designa8/vibedesign-attio-internal-v1-2-176b 0.1.13 → 0.1.14
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/dist/index.cjs +11 -12
- package/dist/index.js +11 -12
- package/package.json +1 -1
- package/src/organisms/SidebarDesktop/SidebarDesktop.tsx +13 -14
- package/src/organisms/SidebarDesktop/preview.tsx +20 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-attio-internal-v1-2-176b
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.1.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.1.14**.
|
|
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/dist/index.cjs
CHANGED
|
@@ -8284,24 +8284,23 @@ var surfaceStyle = {
|
|
|
8284
8284
|
};
|
|
8285
8285
|
var DEFAULT_SIDEBAR_ITEMS = [
|
|
8286
8286
|
{ label: "Home", href: "#home", icon: "house" },
|
|
8287
|
+
{ label: "Conversations", href: "#conversations", icon: "mail" },
|
|
8288
|
+
{ label: "Customers", href: "#customers", icon: "user" },
|
|
8289
|
+
{ label: "Articles", href: "#articles", icon: "file" },
|
|
8290
|
+
{ label: "Reports", href: "#reports", icon: "chart-column" },
|
|
8287
8291
|
{ label: "Tasks", href: "#tasks", icon: "circle-check" },
|
|
8288
|
-
{ label: "Notes", href: "#notes", icon: "file" },
|
|
8289
|
-
{ label: "Emails", href: "#emails", icon: "mail" },
|
|
8290
8292
|
{ label: "Calls", href: "#calls", icon: "phone" },
|
|
8291
|
-
{ label: "Reports", href: "#reports", icon: "chart-column" },
|
|
8292
|
-
{ label: "Sequences", href: "#sequences", icon: "route" },
|
|
8293
8293
|
{ label: "Workflows", href: "#workflows", icon: "zap" }
|
|
8294
8294
|
];
|
|
8295
8295
|
var DEFAULT_SIDEBAR_SECTIONS = [
|
|
8296
8296
|
{
|
|
8297
|
-
id: "
|
|
8298
|
-
title: "
|
|
8297
|
+
id: "shared-views",
|
|
8298
|
+
title: "Shared with me",
|
|
8299
8299
|
items: [
|
|
8300
|
-
{ label: "
|
|
8301
|
-
{ label: "
|
|
8302
|
-
{ label: "
|
|
8303
|
-
{ label: "
|
|
8304
|
-
{ label: "Workspaces", href: "#workspaces", icon: "layout-grid", tile: "violet" }
|
|
8300
|
+
{ label: "Inbox triage", href: "#views/inbox-triage", icon: "mail", tile: "blue" },
|
|
8301
|
+
{ label: "Escalation queue", href: "#views/escalation-queue", icon: "zap", tile: "orange" },
|
|
8302
|
+
{ label: "Help articles", href: "#views/help-articles", icon: "file", tile: "cyan" },
|
|
8303
|
+
{ label: "Team reports", href: "#views/team-reports", icon: "chart-column", tile: "green" }
|
|
8305
8304
|
]
|
|
8306
8305
|
}
|
|
8307
8306
|
];
|
|
@@ -8319,7 +8318,7 @@ var SidebarDesktop = React77.forwardRef(
|
|
|
8319
8318
|
collapsed: collapsedProp,
|
|
8320
8319
|
defaultCollapsed = false,
|
|
8321
8320
|
onCollapsedChange,
|
|
8322
|
-
workspace = { name: "
|
|
8321
|
+
workspace = { name: "Linden Supply", initials: "LS" },
|
|
8323
8322
|
onWorkspaceClick,
|
|
8324
8323
|
onSearchClick,
|
|
8325
8324
|
searchShortcut = "\u2318K",
|
package/dist/index.js
CHANGED
|
@@ -8165,24 +8165,23 @@ var surfaceStyle = {
|
|
|
8165
8165
|
};
|
|
8166
8166
|
var DEFAULT_SIDEBAR_ITEMS = [
|
|
8167
8167
|
{ label: "Home", href: "#home", icon: "house" },
|
|
8168
|
+
{ label: "Conversations", href: "#conversations", icon: "mail" },
|
|
8169
|
+
{ label: "Customers", href: "#customers", icon: "user" },
|
|
8170
|
+
{ label: "Articles", href: "#articles", icon: "file" },
|
|
8171
|
+
{ label: "Reports", href: "#reports", icon: "chart-column" },
|
|
8168
8172
|
{ label: "Tasks", href: "#tasks", icon: "circle-check" },
|
|
8169
|
-
{ label: "Notes", href: "#notes", icon: "file" },
|
|
8170
|
-
{ label: "Emails", href: "#emails", icon: "mail" },
|
|
8171
8173
|
{ label: "Calls", href: "#calls", icon: "phone" },
|
|
8172
|
-
{ label: "Reports", href: "#reports", icon: "chart-column" },
|
|
8173
|
-
{ label: "Sequences", href: "#sequences", icon: "route" },
|
|
8174
8174
|
{ label: "Workflows", href: "#workflows", icon: "zap" }
|
|
8175
8175
|
];
|
|
8176
8176
|
var DEFAULT_SIDEBAR_SECTIONS = [
|
|
8177
8177
|
{
|
|
8178
|
-
id: "
|
|
8179
|
-
title: "
|
|
8178
|
+
id: "shared-views",
|
|
8179
|
+
title: "Shared with me",
|
|
8180
8180
|
items: [
|
|
8181
|
-
{ label: "
|
|
8182
|
-
{ label: "
|
|
8183
|
-
{ label: "
|
|
8184
|
-
{ label: "
|
|
8185
|
-
{ label: "Workspaces", href: "#workspaces", icon: "layout-grid", tile: "violet" }
|
|
8181
|
+
{ label: "Inbox triage", href: "#views/inbox-triage", icon: "mail", tile: "blue" },
|
|
8182
|
+
{ label: "Escalation queue", href: "#views/escalation-queue", icon: "zap", tile: "orange" },
|
|
8183
|
+
{ label: "Help articles", href: "#views/help-articles", icon: "file", tile: "cyan" },
|
|
8184
|
+
{ label: "Team reports", href: "#views/team-reports", icon: "chart-column", tile: "green" }
|
|
8186
8185
|
]
|
|
8187
8186
|
}
|
|
8188
8187
|
];
|
|
@@ -8200,7 +8199,7 @@ var SidebarDesktop = React77.forwardRef(
|
|
|
8200
8199
|
collapsed: collapsedProp,
|
|
8201
8200
|
defaultCollapsed = false,
|
|
8202
8201
|
onCollapsedChange,
|
|
8203
|
-
workspace = { name: "
|
|
8202
|
+
workspace = { name: "Linden Supply", initials: "LS" },
|
|
8204
8203
|
onWorkspaceClick,
|
|
8205
8204
|
onSearchClick,
|
|
8206
8205
|
searchShortcut = "\u2318K",
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@ export interface SidebarItem {
|
|
|
22
22
|
label: string;
|
|
23
23
|
href: string;
|
|
24
24
|
icon: IconName;
|
|
25
|
-
/** Render the glyph on a colored tile (
|
|
25
|
+
/** Render the glyph on a colored tile (shared views and lists). */
|
|
26
26
|
tile?: SidebarTileTone;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -62,7 +62,7 @@ export interface SidebarDesktopProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
62
62
|
searchShortcut?: string;
|
|
63
63
|
/** Top-level nav items. */
|
|
64
64
|
items?: SidebarItem[];
|
|
65
|
-
/** Grouped items under a foldable caption (e.g.
|
|
65
|
+
/** Grouped items under a foldable caption (e.g. Saved views). */
|
|
66
66
|
sections?: SidebarSection[];
|
|
67
67
|
/** `href` of the current page. */
|
|
68
68
|
activeHref?: string;
|
|
@@ -87,25 +87,24 @@ const surfaceStyle: Record<SidebarSurface, string> = {
|
|
|
87
87
|
|
|
88
88
|
export const DEFAULT_SIDEBAR_ITEMS: SidebarItem[] = [
|
|
89
89
|
{ label: "Home", href: "#home", icon: "house" },
|
|
90
|
+
{ label: "Conversations", href: "#conversations", icon: "mail" },
|
|
91
|
+
{ label: "Customers", href: "#customers", icon: "user" },
|
|
92
|
+
{ label: "Articles", href: "#articles", icon: "file" },
|
|
93
|
+
{ label: "Reports", href: "#reports", icon: "chart-column" },
|
|
90
94
|
{ label: "Tasks", href: "#tasks", icon: "circle-check" },
|
|
91
|
-
{ label: "Notes", href: "#notes", icon: "file" },
|
|
92
|
-
{ label: "Emails", href: "#emails", icon: "mail" },
|
|
93
95
|
{ label: "Calls", href: "#calls", icon: "phone" },
|
|
94
|
-
{ label: "Reports", href: "#reports", icon: "chart-column" },
|
|
95
|
-
{ label: "Sequences", href: "#sequences", icon: "route" },
|
|
96
96
|
{ label: "Workflows", href: "#workflows", icon: "zap" },
|
|
97
97
|
];
|
|
98
98
|
|
|
99
99
|
export const DEFAULT_SIDEBAR_SECTIONS: SidebarSection[] = [
|
|
100
100
|
{
|
|
101
|
-
id: "
|
|
102
|
-
title: "
|
|
101
|
+
id: "shared-views",
|
|
102
|
+
title: "Shared with me",
|
|
103
103
|
items: [
|
|
104
|
-
{ label: "
|
|
105
|
-
{ label: "
|
|
106
|
-
{ label: "
|
|
107
|
-
{ label: "
|
|
108
|
-
{ label: "Workspaces", href: "#workspaces", icon: "layout-grid", tile: "violet" },
|
|
104
|
+
{ label: "Inbox triage", href: "#views/inbox-triage", icon: "mail", tile: "blue" },
|
|
105
|
+
{ label: "Escalation queue", href: "#views/escalation-queue", icon: "zap", tile: "orange" },
|
|
106
|
+
{ label: "Help articles", href: "#views/help-articles", icon: "file", tile: "cyan" },
|
|
107
|
+
{ label: "Team reports", href: "#views/team-reports", icon: "chart-column", tile: "green" },
|
|
109
108
|
],
|
|
110
109
|
},
|
|
111
110
|
];
|
|
@@ -130,7 +129,7 @@ export const SidebarDesktop = React.forwardRef<HTMLElement, SidebarDesktopProps>
|
|
|
130
129
|
collapsed: collapsedProp,
|
|
131
130
|
defaultCollapsed = false,
|
|
132
131
|
onCollapsedChange,
|
|
133
|
-
workspace = { name: "
|
|
132
|
+
workspace = { name: "Linden Supply", initials: "LS" },
|
|
134
133
|
onWorkspaceClick,
|
|
135
134
|
onSearchClick,
|
|
136
135
|
searchShortcut = "⌘K",
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { SidebarDesktop } from "./SidebarDesktop";
|
|
3
3
|
import { Button } from "../../atoms/Button";
|
|
4
|
+
import { Avatar } from "../../atoms/Avatar";
|
|
4
5
|
import type { SidebarSurface } from "./SidebarDesktop";
|
|
5
6
|
|
|
6
7
|
export default function SidebarDesktopPreview() {
|
|
7
8
|
const [collapsed, setCollapsed] = React.useState(false);
|
|
8
9
|
const [surface, setSurface] = React.useState<SidebarSurface>("card");
|
|
9
|
-
const [active, setActive] = React.useState("#
|
|
10
|
+
const [active, setActive] = React.useState("#conversations");
|
|
10
11
|
const [last, setLast] = React.useState("—");
|
|
11
12
|
|
|
13
|
+
const teammates = [
|
|
14
|
+
{ name: "Maya Chen", initials: "MC" },
|
|
15
|
+
{ name: "Theo Alvarez", initials: "TA" },
|
|
16
|
+
{ name: "Priya Raman", initials: "PR" },
|
|
17
|
+
];
|
|
18
|
+
|
|
12
19
|
return (
|
|
13
20
|
<div className="w-full max-w-3xl mx-auto p-lg">
|
|
14
21
|
<div className="mb-sm flex flex-wrap items-center gap-xs">
|
|
@@ -36,15 +43,26 @@ export default function SidebarDesktopPreview() {
|
|
|
36
43
|
e.preventDefault();
|
|
37
44
|
setActive(item.href);
|
|
38
45
|
}}
|
|
39
|
-
workspace={{ name: "
|
|
46
|
+
workspace={{ name: "Linden Supply", initials: "LS" }}
|
|
40
47
|
onWorkspaceClick={() => setLast("Workspace switcher")}
|
|
41
48
|
onSearchClick={() => setLast("Search")}
|
|
49
|
+
footer={
|
|
50
|
+
<ul className="flex flex-col gap-xs">
|
|
51
|
+
{teammates.map((person) => (
|
|
52
|
+
<li key={person.name} className="flex items-center gap-sm">
|
|
53
|
+
<Avatar name={person.name} initials={person.initials} size="sm" />
|
|
54
|
+
<span className="truncate text-body-sm text-body">{person.name}</span>
|
|
55
|
+
</li>
|
|
56
|
+
))}
|
|
57
|
+
</ul>
|
|
58
|
+
}
|
|
42
59
|
/>
|
|
43
60
|
<div className="flex min-w-0 flex-1 flex-col gap-xs pt-base">
|
|
44
61
|
<p className="text-heading-xs text-ink">Current page: {active.replace("#", "")}</p>
|
|
45
62
|
<p className="text-body-sm text-muted">
|
|
46
63
|
Sidebar is {collapsed ? "folded" : "unfolded"} · surface: {surface} · Last action: {last}
|
|
47
64
|
</p>
|
|
65
|
+
<p className="text-body-sm text-muted">Workspace: Linden Supply — customer questions inbox</p>
|
|
48
66
|
</div>
|
|
49
67
|
</div>
|
|
50
68
|
</div>
|