@designa8/vibedesign-v6 1.6.9 → 1.8.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/dist/styles.css CHANGED
@@ -80,6 +80,14 @@
80
80
  --color-semantic-warning-soft: #fef9c3;
81
81
  --color-semantic-error-soft: #fee2e2;
82
82
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
83
+ --text-display-lg: 48px;
84
+ --text-display-lg--font-weight: 700;
85
+ --text-display-lg--line-height: 1.1;
86
+ --text-display-lg--letter-spacing: -0.5px;
87
+ --text-heading-lg: 32px;
88
+ --text-heading-lg--font-weight: 700;
89
+ --text-heading-lg--line-height: 1.2;
90
+ --text-heading-lg--letter-spacing: -0.25px;
83
91
  --text-heading-md: 24px;
84
92
  --text-heading-md--font-weight: 600;
85
93
  --text-heading-md--line-height: 1.3;
@@ -356,6 +364,9 @@
356
364
  .mx-xs {
357
365
  margin-inline: var(--spacing-xs);
358
366
  }
367
+ .mx-xxs {
368
+ margin-inline: var(--spacing-xxs);
369
+ }
359
370
  .my-xl {
360
371
  margin-block: var(--spacing-xl);
361
372
  }
@@ -430,9 +441,6 @@
430
441
  .inline-flex {
431
442
  display: inline-flex;
432
443
  }
433
- .aspect-square {
434
- aspect-ratio: 1 / 1;
435
- }
436
444
  .size-2\.5 {
437
445
  width: calc(var(--spacing) * 2.5);
438
446
  height: calc(var(--spacing) * 2.5);
@@ -459,6 +467,9 @@
459
467
  .\!h-5 {
460
468
  height: calc(var(--spacing) * 5) !important;
461
469
  }
470
+ .\!h-8 {
471
+ height: calc(var(--spacing) * 8) !important;
472
+ }
462
473
  .h-1\.5 {
463
474
  height: calc(var(--spacing) * 1.5);
464
475
  }
@@ -516,6 +527,9 @@
516
527
  .\!w-5 {
517
528
  width: calc(var(--spacing) * 5) !important;
518
529
  }
530
+ .\!w-8 {
531
+ width: calc(var(--spacing) * 8) !important;
532
+ }
519
533
  .\!w-full {
520
534
  width: 100% !important;
521
535
  }
@@ -558,6 +572,9 @@
558
572
  .w-full {
559
573
  width: 100%;
560
574
  }
575
+ .w-px {
576
+ width: 1px;
577
+ }
561
578
  .max-w-2xl {
562
579
  max-width: var(--container-2xl);
563
580
  }
@@ -766,6 +783,13 @@
766
783
  margin-block-end: calc(var(--spacing-xl) * calc(1 - var(--tw-space-y-reverse)));
767
784
  }
768
785
  }
786
+ .space-y-xs {
787
+ :where(& > :not(:last-child)) {
788
+ --tw-space-y-reverse: 0;
789
+ margin-block-start: calc(var(--spacing-xs) * var(--tw-space-y-reverse));
790
+ margin-block-end: calc(var(--spacing-xs) * calc(1 - var(--tw-space-y-reverse)));
791
+ }
792
+ }
769
793
  .space-y-xxl {
770
794
  :where(& > :not(:last-child)) {
771
795
  --tw-space-y-reverse: 0;
@@ -899,6 +923,9 @@
899
923
  .border-primary {
900
924
  border-color: var(--color-primary);
901
925
  }
926
+ .border-primary-disabled {
927
+ border-color: var(--color-primary-disabled);
928
+ }
902
929
  .border-semantic-error {
903
930
  border-color: var(--color-semantic-error);
904
931
  }
@@ -932,9 +959,6 @@
932
959
  .bg-primary {
933
960
  background-color: var(--color-primary);
934
961
  }
935
- .bg-primary-active {
936
- background-color: var(--color-primary-active);
937
- }
938
962
  .bg-primary-disabled {
939
963
  background-color: var(--color-primary-disabled);
940
964
  }
@@ -983,6 +1007,9 @@
983
1007
  .p-xs {
984
1008
  padding: var(--spacing-xs);
985
1009
  }
1010
+ .p-xxs {
1011
+ padding: var(--spacing-xxs);
1012
+ }
986
1013
  .\!px-0 {
987
1014
  padding-inline: 0 !important;
988
1015
  }
@@ -1115,6 +1142,18 @@
1115
1142
  letter-spacing: var(--tw-tracking, var(--text-caption--letter-spacing));
1116
1143
  font-weight: var(--tw-font-weight, var(--text-caption--font-weight));
1117
1144
  }
1145
+ .text-display-lg {
1146
+ font-size: var(--text-display-lg);
1147
+ line-height: var(--tw-leading, var(--text-display-lg--line-height));
1148
+ letter-spacing: var(--tw-tracking, var(--text-display-lg--letter-spacing));
1149
+ font-weight: var(--tw-font-weight, var(--text-display-lg--font-weight));
1150
+ }
1151
+ .text-heading-lg {
1152
+ font-size: var(--text-heading-lg);
1153
+ line-height: var(--tw-leading, var(--text-heading-lg--line-height));
1154
+ letter-spacing: var(--tw-tracking, var(--text-heading-lg--letter-spacing));
1155
+ font-weight: var(--tw-font-weight, var(--text-heading-lg--font-weight));
1156
+ }
1118
1157
  .text-heading-md {
1119
1158
  font-size: var(--text-heading-md);
1120
1159
  line-height: var(--tw-leading, var(--text-heading-md--line-height));
@@ -1161,6 +1200,9 @@
1161
1200
  .text-body {
1162
1201
  color: var(--color-body);
1163
1202
  }
1203
+ .text-canvas {
1204
+ color: var(--color-canvas);
1205
+ }
1164
1206
  .text-hairline-strong {
1165
1207
  color: var(--color-hairline-strong);
1166
1208
  }
@@ -1185,6 +1227,9 @@
1185
1227
  .text-semantic-success {
1186
1228
  color: var(--color-semantic-success);
1187
1229
  }
1230
+ .text-semantic-warning {
1231
+ color: var(--color-semantic-warning);
1232
+ }
1188
1233
  .uppercase {
1189
1234
  text-transform: uppercase;
1190
1235
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "1.6.9",
3
+ "version": "1.8.4",
4
4
  "description": "Design system \"Plasma Design System\" generated by atom-server.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -84,6 +84,11 @@
84
84
  "kind": "Atom",
85
85
  "description": null
86
86
  },
87
+ {
88
+ "name": "PreviewToolbar",
89
+ "kind": "Atom",
90
+ "description": null
91
+ },
87
92
  {
88
93
  "name": "PromptInputBar",
89
94
  "kind": "Molecule",
@@ -94,6 +99,11 @@
94
99
  "kind": "Organism",
95
100
  "description": null
96
101
  },
102
+ {
103
+ "name": "Typography",
104
+ "kind": "Atom",
105
+ "description": null
106
+ },
97
107
  {
98
108
  "name": "UpgradeCard",
99
109
  "kind": "Molecule",
@@ -4,19 +4,18 @@ import { Button } from "../Button";
4
4
  export interface FilterTab {
5
5
  /** Unique identifier for this tab */
6
6
  value: string;
7
- /** Display label — optional when icon is provided */
7
+ /** Display label */
8
8
  label?: string;
9
- /** Icon rendered before the label (or alone when no label is given) */
10
- icon?: React.ReactNode;
11
9
  /** Optional count badge */
12
10
  count?: number;
13
- /** Accessible label required when the tab is icon-only */
14
- "aria-label"?: string;
11
+ /** Optional icon rendered before the label */
12
+ icon?: React.ReactNode;
15
13
  }
16
14
 
17
15
  export interface FilterTabBarProps
18
16
  extends Omit<React.ComponentPropsWithoutRef<"div">, "onChange"> {
19
17
  tabs: FilterTab[];
18
+ /** Currently active tab value */
20
19
  value: string;
21
20
  onChange: (value: string) => void;
22
21
  }
@@ -30,7 +29,7 @@ export const FilterTabBar = React.forwardRef<HTMLDivElement, FilterTabBarProps>(
30
29
  aria-label="Filter tabs"
31
30
  className={[
32
31
  "inline-flex items-center gap-xs p-xs",
33
- "bg-surface border border-hairline rounded-xl shadow-sm",
32
+ "bg-canvas border border-hairline rounded-xl shadow-sm",
34
33
  className,
35
34
  ]
36
35
  .filter(Boolean)
@@ -39,27 +38,20 @@ export const FilterTabBar = React.forwardRef<HTMLDivElement, FilterTabBarProps>(
39
38
  >
40
39
  {tabs.map((tab) => {
41
40
  const isActive = tab.value === value;
42
- const iconOnly = !!tab.icon && !tab.label;
43
41
 
44
42
  return (
45
43
  <Button
46
44
  key={tab.value}
47
45
  role="tab"
48
46
  aria-selected={isActive}
49
- aria-label={tab["aria-label"]}
47
+ aria-label={tab.label ?? tab.value}
50
48
  variant={isActive ? "primary" : "ghost"}
51
49
  size="sm"
52
50
  onClick={() => onChange(tab.value)}
53
- // Square padding for icon-only tabs
54
- className={[
55
- "transition-[background-color,color,box-shadow] duration-200 ease-in-out",
56
- iconOnly ? "!px-xs aspect-square" : "",
57
- ]
58
- .filter(Boolean)
59
- .join(" ")}
51
+ className="gap-xs"
60
52
  >
61
53
  {tab.icon && (
62
- <span className="inline-flex items-center justify-center size-4 shrink-0">
54
+ <span className="inline-flex items-center justify-center shrink-0" aria-hidden="true">
63
55
  {tab.icon}
64
56
  </span>
65
57
  )}
@@ -74,7 +66,7 @@ export const FilterTabBar = React.forwardRef<HTMLDivElement, FilterTabBarProps>(
74
66
  "text-caption leading-none",
75
67
  "transition-[background-color,color] duration-200 ease-in-out",
76
68
  isActive
77
- ? "bg-primary-active text-on-primary"
69
+ ? "bg-ink text-canvas"
78
70
  : "bg-surface-strong text-muted",
79
71
  ]
80
72
  .filter(Boolean)
@@ -1,92 +1,113 @@
1
1
  import React, { useState } from "react";
2
- import { FilterTabBar, FilterTab } from "./FilterTabBar";
2
+ import { FilterTabBar } from "./FilterTabBar";
3
3
 
4
- /* ── Inline SVG icons ─────────────────────────────────────── */
4
+ /* Minimal inline SVG icons — no external deps */
5
5
  const IconGrid = () => (
6
- <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.5" className="size-4">
7
- <rect x="1" y="1" width="6" height="6" rx="1" />
8
- <rect x="9" y="1" width="6" height="6" rx="1" />
9
- <rect x="1" y="9" width="6" height="6" rx="1" />
10
- <rect x="9" y="9" width="6" height="6" rx="1" />
6
+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" aria-hidden="true">
7
+ <rect x="1" y="1" width="6" height="6" rx="1.5" fill="currentColor" />
8
+ <rect x="9" y="1" width="6" height="6" rx="1.5" fill="currentColor" />
9
+ <rect x="1" y="9" width="6" height="6" rx="1.5" fill="currentColor" />
10
+ <rect x="9" y="9" width="6" height="6" rx="1.5" fill="currentColor" />
11
11
  </svg>
12
12
  );
13
- const IconList = () => (
14
- <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.5" className="size-4">
15
- <line x1="3" y1="4" x2="13" y2="4" />
16
- <line x1="3" y1="8" x2="13" y2="8" />
17
- <line x1="3" y1="12" x2="13" y2="12" />
13
+
14
+ const IconAtom = () => (
15
+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" aria-hidden="true">
16
+ <circle cx="8" cy="8" r="2" fill="currentColor" />
17
+ <ellipse cx="8" cy="8" rx="7" ry="3" stroke="currentColor" strokeWidth="1.25" fill="none" />
18
+ <ellipse cx="8" cy="8" rx="7" ry="3" stroke="currentColor" strokeWidth="1.25" fill="none" transform="rotate(60 8 8)" />
19
+ <ellipse cx="8" cy="8" rx="7" ry="3" stroke="currentColor" strokeWidth="1.25" fill="none" transform="rotate(120 8 8)" />
18
20
  </svg>
19
21
  );
20
- const IconColumns = () => (
21
- <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.5" className="size-4">
22
- <rect x="1" y="2" width="4" height="12" rx="1" />
23
- <rect x="6" y="2" width="4" height="12" rx="1" />
24
- <rect x="11" y="2" width="4" height="12" rx="1" />
22
+
23
+ const IconLayers = () => (
24
+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" aria-hidden="true">
25
+ <path d="M8 1L15 5L8 9L1 5L8 1Z" fill="currentColor" opacity="0.4" />
26
+ <path d="M1 8L8 12L15 8" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" fill="none" />
27
+ <path d="M1 11L8 15L15 11" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" fill="none" />
25
28
  </svg>
26
29
  );
30
+
27
31
  const IconStar = () => (
28
- <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.5" className="size-4">
29
- <polygon points="8,1 10,6 15,6 11,9.5 12.5,15 8,12 3.5,15 5,9.5 1,6 6,6" />
30
- </svg>
31
- );
32
- const IconClock = () => (
33
- <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.5" className="size-4">
34
- <circle cx="8" cy="8" r="6.5" />
35
- <polyline points="8,4 8,8 11,10" />
32
+ <svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
33
+ <path d="M8 1l1.854 4.146H14l-3.427 2.708 1.31 4.146L8 9.764l-3.883 2.236 1.31-4.146L2 5.146h4.146L8 1z" />
36
34
  </svg>
37
35
  );
36
+
38
37
  const IconArchive = () => (
39
- <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.5" className="size-4">
40
- <rect x="1" y="3" width="14" height="3" rx="1" />
41
- <path d="M2 6v7a1 1 0 001 1h10a1 1 0 001-1V6" />
42
- <line x1="6" y1="9" x2="10" y2="9" />
38
+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" aria-hidden="true">
39
+ <rect x="1" y="1" width="14" height="3" rx="1" fill="currentColor" opacity="0.5" />
40
+ <path d="M2 5h12v8a1 1 0 01-1 1H3a1 1 0 01-1-1V5z" fill="currentColor" opacity="0.3" />
41
+ <path d="M6 8h4" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" />
43
42
  </svg>
44
43
  );
45
44
 
46
- /* ── Tab data ─────────────────────────────────────────────── */
47
- const iconOnlyTabs: FilterTab[] = [
48
- { value: "grid", icon: <IconGrid />, "aria-label": "Grid view" },
49
- { value: "list", icon: <IconList />, "aria-label": "List view" },
50
- { value: "columns", icon: <IconColumns />, "aria-label": "Columns view" },
45
+ const tabsWithCounts = [
46
+ { value: "all", label: "All", count: 15 },
47
+ { value: "atoms", label: "Atoms", count: 8 },
48
+ { value: "molecules", label: "Molecules", count: 2 },
49
+ { value: "organisms", label: "Organisms", count: 5 },
51
50
  ];
52
51
 
53
- const iconLabelTabs: FilterTab[] = [
54
- { value: "starred", icon: <IconStar />, label: "Starred", count: 4 },
55
- { value: "recent", icon: <IconClock />, label: "Recent", count: 12 },
56
- { value: "archived", icon: <IconArchive />, label: "Archived", count: 2 },
52
+ const tabsWithIcons = [
53
+ { value: "all", label: "All", icon: <IconGrid /> },
54
+ { value: "atoms", label: "Atoms", icon: <IconAtom />, count: 8 },
55
+ { value: "molecules", label: "Molecules", icon: <IconLayers />, count: 2 },
57
56
  ];
58
57
 
59
- const labelOnlyTabs: FilterTab[] = [
60
- { value: "all", label: "All", count: 11 },
61
- { value: "atoms", label: "Atoms", count: 5 },
62
- { value: "molecules", label: "Molecules", count: 2 },
63
- { value: "organisms", label: "Organisms", count: 4 },
64
- { value: "icons", label: "Icons", count: 0 },
58
+ const tabsIconOnly = [
59
+ { value: "all", icon: <IconGrid />, label: "All" },
60
+ { value: "starred", icon: <IconStar />, label: "Starred" },
61
+ { value: "archived", icon: <IconArchive />, label: "Archived" },
65
62
  ];
66
63
 
67
64
  export default function FilterTabBarPreview() {
68
- const [view, setView] = useState("grid");
69
- const [scope, setScope] = useState("starred");
70
- const [kind, setKind] = useState("all");
65
+ const [active1, setActive1] = useState("all");
66
+ const [active2, setActive2] = useState("all");
67
+ const [active3, setActive3] = useState("all");
68
+ const [active4, setActive4] = useState("all");
71
69
 
72
70
  return (
73
- <div className="w-full max-w-3xl mx-auto p-lg space-y-xl">
74
-
75
- <div>
76
- <p className="text-caption text-muted uppercase tracking-wide mb-sm">Icon only</p>
77
- <FilterTabBar tabs={iconOnlyTabs} value={view} onChange={setView} />
71
+ <div className="w-full max-w-3xl mx-auto p-xl flex flex-col items-start gap-xl bg-canvas py-xxl">
72
+ {/* Label + count (existing behavior) */}
73
+ <div className="flex flex-col gap-sm w-full">
74
+ <p className="text-caption text-muted uppercase tracking-wide">Label + count</p>
75
+ <FilterTabBar tabs={tabsWithCounts} value={active1} onChange={setActive1} />
78
76
  </div>
79
77
 
80
- <div>
81
- <p className="text-caption text-muted uppercase tracking-wide mb-sm">Icon + label + count</p>
82
- <FilterTabBar tabs={iconLabelTabs} value={scope} onChange={setScope} />
78
+ {/* Icon + label (new) */}
79
+ <div className="flex flex-col gap-sm w-full">
80
+ <p className="text-caption text-muted uppercase tracking-wide">Icon + label</p>
81
+ <FilterTabBar tabs={tabsWithIcons} value={active2} onChange={setActive2} />
83
82
  </div>
84
83
 
85
- <div>
86
- <p className="text-caption text-muted uppercase tracking-wide mb-sm">Label + count (original)</p>
87
- <FilterTabBar tabs={labelOnlyTabs} value={kind} onChange={setKind} />
84
+ {/* Icon + label + count (new) */}
85
+ <div className="flex flex-col gap-sm w-full">
86
+ <p className="text-caption text-muted uppercase tracking-wide">Icon + label + count</p>
87
+ <FilterTabBar
88
+ tabs={[
89
+ { value: "all", label: "All", icon: <IconGrid />, count: 15 },
90
+ { value: "atoms", label: "Atoms", icon: <IconAtom />, count: 8 },
91
+ { value: "molecules", label: "Molecules", icon: <IconLayers />, count: 2 },
92
+ ]}
93
+ value={active3}
94
+ onChange={setActive3}
95
+ />
88
96
  </div>
89
97
 
98
+ {/* Label only (no count or icon) */}
99
+ <div className="flex flex-col gap-sm w-full">
100
+ <p className="text-caption text-muted uppercase tracking-wide">Label only</p>
101
+ <FilterTabBar
102
+ tabs={[
103
+ { value: "recent", label: "Recent" },
104
+ { value: "starred", label: "Starred" },
105
+ { value: "archived", label: "Archived" },
106
+ ]}
107
+ value={active4}
108
+ onChange={setActive4}
109
+ />
110
+ </div>
90
111
  </div>
91
112
  );
92
113
  }