@designa8/vibedesign-openai-internal-v1-2-176b 0.1.13 → 0.1.15

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.13**.
3
+ Complete design system generated by Atoms Design, version **0.1.15**.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-openai-internal-v1-2-176b",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "Design system generated by Atoms Design.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -13,7 +13,7 @@ export interface AvatarProps extends React.HTMLAttributes<HTMLSpanElement> {
13
13
  /** Override the computed initials. */
14
14
  initials?: string;
15
15
  size?: AvatarSize;
16
- /** `circle` for people; `square` is a bordered rounded tile for an app, workspace, or assistant mark. */
16
+ /** `circle` for people; `square` is a bordered rounded tile for a workspace, project, or company. */
17
17
  shape?: AvatarShape;
18
18
  /** Presence dot at the bottom-right. */
19
19
  status?: AvatarStatus;
@@ -2,8 +2,6 @@ import * as React from "react";
2
2
  import { Avatar } from "./Avatar";
3
3
  import { Icon } from "../Icon";
4
4
 
5
- const PHOTO = "https://i.pravatar.cc/160?img=47";
6
-
7
5
  function Cell({ caption, children }: { caption: string; children: React.ReactNode }) {
8
6
  return (
9
7
  <div className="flex flex-col items-center gap-sm">
@@ -17,34 +15,55 @@ export default function AvatarPreview() {
17
15
  return (
18
16
  <div className="w-full max-w-3xl mx-auto p-lg space-y-lg bg-canvas text-ink">
19
17
  <div className="flex flex-wrap items-start gap-lg">
20
- <Cell caption="Logo">
21
- <Avatar shape="square" size="lg" name="Assistant" icon={<Icon name="sparkles" size={20} />} />
22
- </Cell>
23
- <Cell caption="Photo">
24
- <Avatar src={PHOTO} name="Alex Smith" size="lg" status="online" />
18
+ <Cell caption="Workspace tile">
19
+ <Avatar
20
+ shape="square"
21
+ size="lg"
22
+ name="Workspace"
23
+ icon={<Icon name="layout-grid" size={20} />}
24
+ />
25
25
  </Cell>
26
26
  <Cell caption="Initials">
27
- <Avatar name="Alex Smith" size="lg" />
27
+ <Avatar name="Maya Chen" size="lg" status="online" />
28
+ </Cell>
29
+ <Cell caption="Company">
30
+ <Avatar name="Northwind" size="lg" />
28
31
  </Cell>
29
32
  <Cell caption="Placeholder">
30
33
  <Avatar size="lg" />
31
34
  </Cell>
32
35
  <Cell caption="With status">
33
36
  <div className="flex items-center gap-sm">
34
- <Avatar name="Alex Smith" size="md" status="online" />
37
+ <Avatar name="Priya Raman" size="md" status="online" />
35
38
  <div className="flex flex-col">
36
- <span className="text-body-md text-ink">Alex Smith</span>
39
+ <span className="text-body-md text-ink">Priya Raman</span>
37
40
  <span className="text-body-sm text-muted">Online</span>
38
41
  </div>
39
42
  </div>
40
43
  </Cell>
41
44
  </div>
45
+
42
46
  <div className="flex flex-wrap items-end gap-md">
43
- <Avatar src={PHOTO} name="Alex Smith" size="xs" />
44
- <Avatar src={PHOTO} name="Alex Smith" size="sm" />
45
- <Avatar src={PHOTO} name="Alex Smith" size="md" />
46
- <Avatar src={PHOTO} name="Alex Smith" size="lg" />
47
- <Avatar src={PHOTO} name="Alex Smith" size="xl" status="away" />
47
+ <Avatar name="Tom Okafor" size="xs" />
48
+ <Avatar name="Lena Varga" size="sm" />
49
+ <Avatar name="Maya Chen" size="md" />
50
+ <Avatar name="Priya Raman" size="lg" />
51
+ <Avatar name="Fieldstone" size="xl" status="away" />
52
+ </div>
53
+
54
+ <div className="flex flex-wrap items-center gap-md">
55
+ <Avatar name="Tom Okafor" size="md" status="online" />
56
+ <Avatar name="Lena Varga" size="md" status="away" />
57
+ <Avatar name="Maya Chen" size="md" status="busy" />
58
+ <Avatar name="Priya Raman" size="md" status="offline" />
59
+ <Avatar
60
+ shape="square"
61
+ size="md"
62
+ name="Workspace"
63
+ icon={<Icon name="layout-grid" size={16} />}
64
+ />
65
+ <Avatar shape="square" size="md" name="Northwind" />
66
+ <Avatar shape="square" size="xl" name="Fieldstone" />
48
67
  </div>
49
68
  </div>
50
69
  );
@@ -38,6 +38,16 @@ const heights: Record<InputSize, string> = {
38
38
  lg: "h-11 px-md gap-sm text-body-lg",
39
39
  };
40
40
 
41
+ /**
42
+ * Single-stroke text field. Use it anywhere a workspace member types a value:
43
+ * a person's name, a project name, a company, or a search query.
44
+ *
45
+ * <Input aria-label="Project name" placeholder="Marketing site" />
46
+ * <Input aria-label="Search projects" leading={<Icon name="search" />} />
47
+ *
48
+ * The outer wrapper owns the one border and the focus treatment; the inner
49
+ * <input> is borderless, so there is never a box inside a box.
50
+ */
41
51
  export const Input = React.forwardRef<HTMLInputElement, InputProps>(
42
52
  (
43
53
  {
@@ -107,8 +117,8 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
107
117
  id={inputId}
108
118
  disabled={disabled}
109
119
  aria-label={ariaLabel}
110
- aria-labelledby={ariaLabelledBy}
111
- aria-invalid={hasError || undefined}
120
+ aria-labelledby={ariaLabelledBy}
121
+ aria-invalid={hasError || undefined}
112
122
  aria-describedby={describedByIds}
113
123
  className={cn(bare, "h-full", className)}
114
124
  {...props}
@@ -13,16 +13,16 @@ function Cell({ caption, children }: { caption: string; children: React.ReactNod
13
13
 
14
14
  export default function InputPreview() {
15
15
  const [empty, setEmpty] = React.useState("");
16
- const [name, setName] = React.useState("Alex Smith");
17
- const [bad, setBad] = React.useState("Alex Smith");
16
+ const [name, setName] = React.useState("Maya Chen");
17
+ const [bad, setBad] = React.useState("Maya Chen");
18
18
  const [query, setQuery] = React.useState("");
19
- const invalid = bad.trim().split(/\s+/).length < 3 ? "Invalid name" : false;
19
+ const invalid = bad.trim().split(/\s+/).length < 3 ? "Enter a full name" : false;
20
20
 
21
21
  return (
22
22
  <div className="w-full max-w-3xl mx-auto p-lg space-y-lg bg-canvas text-ink">
23
23
  <div className="grid grid-cols-2 gap-base sm:grid-cols-4">
24
24
  <Cell caption="Empty">
25
- <Input aria-label="Full name" value={empty} onChange={(e) => setEmpty(e.target.value)} />
25
+ <Input aria-label="Full name" placeholder="Maya Chen" value={empty} onChange={(e) => setEmpty(e.target.value)} />
26
26
  </Cell>
27
27
  <Cell caption="Filled">
28
28
  <Input aria-label="Full name" value={name} onChange={(e) => setName(e.target.value)} />
@@ -31,16 +31,23 @@ export default function InputPreview() {
31
31
  <Input aria-label="Full name" value={bad} error={invalid} onChange={(e) => setBad(e.target.value)} />
32
32
  </Cell>
33
33
  <Cell caption="Disabled">
34
- <Input aria-label="Full name" value="Alex Smith" disabled readOnly />
34
+ <Input aria-label="Full name" value="Maya Chen" disabled readOnly />
35
35
  </Cell>
36
36
  </div>
37
- <Input
38
- aria-label="Search chats"
39
- placeholder="Search chats"
40
- value={query}
41
- onChange={(e) => setQuery(e.target.value)}
42
- leading={<Icon name="search" size={16} />}
43
- />
37
+ <div className="grid grid-cols-1 gap-base sm:grid-cols-2">
38
+ <Input
39
+ aria-label="Project name"
40
+ placeholder="Marketing site"
41
+ defaultValue="Docs portal"
42
+ />
43
+ <Input
44
+ aria-label="Search projects"
45
+ placeholder="Search projects"
46
+ value={query}
47
+ onChange={(e) => setQuery(e.target.value)}
48
+ leading={<Icon name="search" size={16} />}
49
+ />
50
+ </div>
44
51
  </div>
45
52
  );
46
53
  }