@designa8/vibedesign-openai-internal-v1-2-176b 0.1.3 → 0.1.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @designa8/vibedesign-openai-internal-v1-2-176b
2
2
 
3
- Complete design system generated by Atoms Design, version **0.1.3**.
3
+ Complete design system generated by Atoms Design, version **0.1.4**.
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
@@ -7953,6 +7953,7 @@ var SidebarDesktop = React72.forwardRef(
7953
7953
  folded: foldedProp,
7954
7954
  defaultFolded = false,
7955
7955
  onFoldedChange,
7956
+ surface = "card",
7956
7957
  className,
7957
7958
  ...props
7958
7959
  }, ref) => {
@@ -7974,9 +7975,11 @@ var SidebarDesktop = React72.forwardRef(
7974
7975
  {
7975
7976
  ref,
7976
7977
  "data-state": folded ? "folded" : "unfolded",
7978
+ "data-surface": surface,
7977
7979
  "aria-label": "Sidebar",
7978
7980
  className: cn64(
7979
- "flex h-full shrink-0 flex-col overflow-hidden rounded-lg border border-hairline bg-canvas text-ink",
7981
+ "flex h-full shrink-0 flex-col overflow-hidden bg-canvas text-ink",
7982
+ surface === "card" ? "rounded-lg border border-hairline" : "border-r border-hairline",
7980
7983
  "transition-[width] duration-200 ease-out",
7981
7984
  folded ? "w-16" : "w-64",
7982
7985
  className
package/dist/index.js CHANGED
@@ -7828,6 +7828,7 @@ var SidebarDesktop = React72.forwardRef(
7828
7828
  folded: foldedProp,
7829
7829
  defaultFolded = false,
7830
7830
  onFoldedChange,
7831
+ surface = "card",
7831
7832
  className,
7832
7833
  ...props
7833
7834
  }, ref) => {
@@ -7849,9 +7850,11 @@ var SidebarDesktop = React72.forwardRef(
7849
7850
  {
7850
7851
  ref,
7851
7852
  "data-state": folded ? "folded" : "unfolded",
7853
+ "data-surface": surface,
7852
7854
  "aria-label": "Sidebar",
7853
7855
  className: cn64(
7854
- "flex h-full shrink-0 flex-col overflow-hidden rounded-lg border border-hairline bg-canvas text-ink",
7856
+ "flex h-full shrink-0 flex-col overflow-hidden bg-canvas text-ink",
7857
+ surface === "card" ? "rounded-lg border border-hairline" : "border-r border-hairline",
7855
7858
  "transition-[width] duration-200 ease-out",
7856
7859
  folded ? "w-16" : "w-64",
7857
7860
  className
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-openai-internal-v1-2-176b",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Complete design system \"My Project openai-internal-v1\" generated by Atoms Design.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -29,6 +29,13 @@ export interface SidebarPromo {
29
29
  icon?: IconName;
30
30
  }
31
31
 
32
+ /**
33
+ * `card` — today's floating panel: rounded corners and a full four-sided border.
34
+ * `flat` — an app-shell rail: square corners and a single right hairline divider,
35
+ * so it sits flush against the page edge at full viewport height.
36
+ */
37
+ export type SidebarSurface = "card" | "flat";
38
+
32
39
  export interface SidebarDesktopProps extends React.HTMLAttributes<HTMLElement> {
33
40
  brandName?: string;
34
41
  brandHref?: string;
@@ -52,6 +59,8 @@ export interface SidebarDesktopProps extends React.HTMLAttributes<HTMLElement> {
52
59
  folded?: boolean;
53
60
  defaultFolded?: boolean;
54
61
  onFoldedChange?: (folded: boolean) => void;
62
+ /** Chrome around the rail. Defaults to `"card"`. */
63
+ surface?: SidebarSurface;
55
64
  }
56
65
 
57
66
  const cn = (...parts: Array<string | false | null | undefined>) =>
@@ -125,6 +134,7 @@ export const SidebarDesktop = React.forwardRef<HTMLElement, SidebarDesktopProps>
125
134
  folded: foldedProp,
126
135
  defaultFolded = false,
127
136
  onFoldedChange,
137
+ surface = "card",
128
138
  className,
129
139
  ...props
130
140
  },
@@ -150,9 +160,11 @@ export const SidebarDesktop = React.forwardRef<HTMLElement, SidebarDesktopProps>
150
160
  <aside
151
161
  ref={ref}
152
162
  data-state={folded ? "folded" : "unfolded"}
163
+ data-surface={surface}
153
164
  aria-label="Sidebar"
154
165
  className={cn(
155
- "flex h-full shrink-0 flex-col overflow-hidden rounded-lg border border-hairline bg-canvas text-ink",
166
+ "flex h-full shrink-0 flex-col overflow-hidden bg-canvas text-ink",
167
+ surface === "card" ? "rounded-lg border border-hairline" : "border-r border-hairline",
156
168
  "transition-[width] duration-200 ease-out",
157
169
  folded ? "w-16" : "w-64",
158
170
  className,
@@ -9,4 +9,5 @@ export type {
9
9
  SidebarNavItem,
10
10
  SidebarNavSection,
11
11
  SidebarPromo,
12
+ SidebarSurface,
12
13
  } from "./SidebarDesktop";
@@ -2,18 +2,51 @@ import * as React from "react";
2
2
  import { SidebarDesktop } from "./SidebarDesktop";
3
3
 
4
4
  export default function SidebarDesktopPreview() {
5
- const [folded, setFolded] = React.useState(false);
5
+ const [cardFolded, setCardFolded] = React.useState(false);
6
+ const [flatFolded, setFlatFolded] = React.useState(false);
6
7
  const [org, setOrg] = React.useState("personal");
8
+
7
9
  return (
8
- <div className="w-full max-w-4xl mx-auto p-lg">
9
- <div className="flex h-[640px] gap-base rounded-xl bg-surface-soft p-sm">
10
- <SidebarDesktop folded={folded} onFoldedChange={setFolded} organization={org} onOrganizationChange={setOrg} />
11
- <div className="flex min-w-0 flex-1 flex-col gap-xs rounded-lg border border-hairline bg-canvas p-lg">
12
- <span className="text-heading-sm text-ink">Dashboard</span>
13
- <span className="text-body-md text-muted">
14
- The sidebar is {folded ? "folded to an icon rail" : "unfolded"}. Use the panel button to toggle it.
15
- </span>
16
- </div>
10
+ <div className="w-full max-w-4xl mx-auto p-lg space-y-md">
11
+ <div className="flex flex-wrap items-start gap-base">
12
+ {/* Default chrome: the floating rounded card. */}
13
+ <section className="flex min-w-0 flex-col gap-xs">
14
+ <span className="text-caption text-muted">surface=&quot;card&quot; (default)</span>
15
+ <div className="flex h-[520px] gap-sm rounded-xl bg-surface-soft p-xs">
16
+ <SidebarDesktop
17
+ folded={cardFolded}
18
+ onFoldedChange={setCardFolded}
19
+ organization={org}
20
+ onOrganizationChange={setOrg}
21
+ />
22
+ <div className="flex w-40 min-w-0 flex-col gap-xxs rounded-lg bg-canvas p-sm">
23
+ <span className="text-body-md text-ink">Dashboard</span>
24
+ <span className="text-caption text-muted">
25
+ {cardFolded ? "Folded to an icon rail." : "Unfolded."}
26
+ </span>
27
+ </div>
28
+ </div>
29
+ </section>
30
+
31
+ {/* App-shell chrome: flush to the page edge, one right hairline. */}
32
+ <section className="flex min-w-0 flex-col gap-xs">
33
+ <span className="text-caption text-muted">surface=&quot;flat&quot; (app-shell rail)</span>
34
+ <div className="flex h-[520px] overflow-hidden rounded-xl border border-hairline bg-canvas">
35
+ <SidebarDesktop
36
+ surface="flat"
37
+ folded={flatFolded}
38
+ onFoldedChange={setFlatFolded}
39
+ organization={org}
40
+ onOrganizationChange={setOrg}
41
+ />
42
+ <div className="flex w-40 min-w-0 flex-col gap-xxs p-sm">
43
+ <span className="text-body-md text-ink">Console</span>
44
+ <span className="text-caption text-muted">
45
+ {flatFolded ? "Folded to an icon rail." : "One right hairline, square corners."}
46
+ </span>
47
+ </div>
48
+ </div>
49
+ </section>
17
50
  </div>
18
51
  </div>
19
52
  );