@designa8/vibedesign-v6 1.12.17 → 1.15.1

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
@@ -35,6 +35,7 @@
35
35
  --container-5xl: 64rem;
36
36
  --font-weight-medium: 500;
37
37
  --tracking-wide: 0.025em;
38
+ --tracking-widest: 0.1em;
38
39
  --leading-relaxed: 1.625;
39
40
  --radius-xs: 4px;
40
41
  --radius-sm: 8px;
@@ -44,6 +45,7 @@
44
45
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
45
46
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
46
47
  --animate-spin: spin 1s linear infinite;
48
+ --animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
47
49
  --default-transition-duration: 150ms;
48
50
  --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
49
51
  --default-font-family: var(--font-body);
@@ -91,6 +93,15 @@
91
93
  --color-kind-template-bg: #FEF3C7;
92
94
  --color-kind-template-text: #B45309;
93
95
  --color-kind-template-border: #FBD98A;
96
+ --color-semantic-info-soft: #EAE8FB;
97
+ --color-syntax-keyword: #0000FF;
98
+ --color-syntax-string: #A31515;
99
+ --color-syntax-number: #098658;
100
+ --color-syntax-comment: #008000;
101
+ --color-syntax-function: #795E26;
102
+ --color-syntax-type: #267F99;
103
+ --color-syntax-tag: #800000;
104
+ --color-syntax-property: #001080;
94
105
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
95
106
  --text-display-lg: 48px;
96
107
  --text-display-lg--font-weight: 700;
@@ -319,6 +330,9 @@
319
330
  .relative {
320
331
  position: relative;
321
332
  }
333
+ .static {
334
+ position: static;
335
+ }
322
336
  .inset-0 {
323
337
  inset: 0;
324
338
  }
@@ -379,6 +393,9 @@
379
393
  max-width: 96rem;
380
394
  }
381
395
  }
396
+ .m-0 {
397
+ margin: 0;
398
+ }
382
399
  .mx-auto {
383
400
  margin-inline: auto;
384
401
  }
@@ -471,6 +488,9 @@
471
488
  .inline-flex {
472
489
  display: inline-flex;
473
490
  }
491
+ .aspect-square {
492
+ aspect-ratio: 1 / 1;
493
+ }
474
494
  .size-3 {
475
495
  width: calc(var(--spacing) * 3);
476
496
  height: calc(var(--spacing) * 3);
@@ -493,9 +513,15 @@
493
513
  .\!h-5 {
494
514
  height: calc(var(--spacing) * 5) !important;
495
515
  }
516
+ .\!h-6 {
517
+ height: calc(var(--spacing) * 6) !important;
518
+ }
496
519
  .\!h-8 {
497
520
  height: calc(var(--spacing) * 8) !important;
498
521
  }
522
+ .\!h-auto {
523
+ height: auto !important;
524
+ }
499
525
  .\!h-full {
500
526
  height: 100% !important;
501
527
  }
@@ -541,6 +567,9 @@
541
567
  .h-full {
542
568
  height: 100%;
543
569
  }
570
+ .h-lg {
571
+ height: var(--spacing-lg);
572
+ }
544
573
  .h-md {
545
574
  height: var(--spacing-md);
546
575
  }
@@ -559,12 +588,18 @@
559
588
  .min-h-8 {
560
589
  min-height: calc(var(--spacing) * 8);
561
590
  }
591
+ .min-h-full {
592
+ min-height: 100%;
593
+ }
562
594
  .\!w-4 {
563
595
  width: calc(var(--spacing) * 4) !important;
564
596
  }
565
597
  .\!w-5 {
566
598
  width: calc(var(--spacing) * 5) !important;
567
599
  }
600
+ .\!w-6 {
601
+ width: calc(var(--spacing) * 6) !important;
602
+ }
568
603
  .\!w-8 {
569
604
  width: calc(var(--spacing) * 8) !important;
570
605
  }
@@ -616,6 +651,9 @@
616
651
  .w-16 {
617
652
  width: calc(var(--spacing) * 16);
618
653
  }
654
+ .w-56 {
655
+ width: calc(var(--spacing) * 56);
656
+ }
619
657
  .w-64 {
620
658
  width: calc(var(--spacing) * 64);
621
659
  }
@@ -705,6 +743,9 @@
705
743
  --tw-scale-y: 100%;
706
744
  scale: var(--tw-scale-x) var(--tw-scale-y);
707
745
  }
746
+ .-rotate-90 {
747
+ rotate: calc(90deg * -1);
748
+ }
708
749
  .rotate-0 {
709
750
  rotate: 0deg;
710
751
  }
@@ -717,6 +758,9 @@
717
758
  .transform {
718
759
  transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
719
760
  }
761
+ .animate-ping {
762
+ animation: var(--animate-ping);
763
+ }
720
764
  .animate-spin {
721
765
  animation: var(--animate-spin);
722
766
  }
@@ -747,6 +791,9 @@
747
791
  .grid-cols-2 {
748
792
  grid-template-columns: repeat(2, minmax(0, 1fr));
749
793
  }
794
+ .grid-cols-4 {
795
+ grid-template-columns: repeat(4, minmax(0, 1fr));
796
+ }
750
797
  .flex-col {
751
798
  flex-direction: column;
752
799
  }
@@ -756,6 +803,9 @@
756
803
  .\!items-center {
757
804
  align-items: center !important;
758
805
  }
806
+ .items-baseline {
807
+ align-items: baseline;
808
+ }
759
809
  .items-center {
760
810
  align-items: center;
761
811
  }
@@ -878,6 +928,12 @@
878
928
  margin-block-end: calc(var(--spacing-xxs) * calc(1 - var(--tw-space-y-reverse)));
879
929
  }
880
930
  }
931
+ .gap-x-sm {
932
+ column-gap: var(--spacing-sm);
933
+ }
934
+ .gap-y-xxs {
935
+ row-gap: var(--spacing-xxs);
936
+ }
881
937
  .truncate {
882
938
  overflow: hidden;
883
939
  text-overflow: ellipsis;
@@ -1003,6 +1059,9 @@
1003
1059
  .border-semantic-success {
1004
1060
  border-color: var(--color-semantic-success);
1005
1061
  }
1062
+ .border-semantic-warning {
1063
+ border-color: var(--color-semantic-warning);
1064
+ }
1006
1065
  .border-transparent {
1007
1066
  border-color: transparent;
1008
1067
  }
@@ -1057,6 +1116,24 @@
1057
1116
  .bg-semantic-error {
1058
1117
  background-color: var(--color-semantic-error);
1059
1118
  }
1119
+ .bg-semantic-error-soft {
1120
+ background-color: var(--color-semantic-error-soft);
1121
+ }
1122
+ .bg-semantic-info-soft {
1123
+ background-color: var(--color-semantic-info-soft);
1124
+ }
1125
+ .bg-semantic-success {
1126
+ background-color: var(--color-semantic-success);
1127
+ }
1128
+ .bg-semantic-success-soft {
1129
+ background-color: var(--color-semantic-success-soft);
1130
+ }
1131
+ .bg-semantic-warning {
1132
+ background-color: var(--color-semantic-warning);
1133
+ }
1134
+ .bg-semantic-warning-soft {
1135
+ background-color: var(--color-semantic-warning-soft);
1136
+ }
1060
1137
  .bg-surface {
1061
1138
  background-color: var(--color-surface);
1062
1139
  }
@@ -1135,6 +1212,9 @@
1135
1212
  .px-xs {
1136
1213
  padding-inline: var(--spacing-xs);
1137
1214
  }
1215
+ .px-xxs {
1216
+ padding-inline: var(--spacing-xxs);
1217
+ }
1138
1218
  .\!py-0 {
1139
1219
  padding-block: 0 !important;
1140
1220
  }
@@ -1189,6 +1269,12 @@
1189
1269
  .pr-9 {
1190
1270
  padding-right: calc(var(--spacing) * 9);
1191
1271
  }
1272
+ .pr-sm {
1273
+ padding-right: var(--spacing-sm);
1274
+ }
1275
+ .pr-xl {
1276
+ padding-right: var(--spacing-xl);
1277
+ }
1192
1278
  .pb-lg {
1193
1279
  padding-bottom: var(--spacing-lg);
1194
1280
  }
@@ -1201,6 +1287,9 @@
1201
1287
  .pl-9 {
1202
1288
  padding-left: calc(var(--spacing) * 9);
1203
1289
  }
1290
+ .pl-lg {
1291
+ padding-left: var(--spacing-lg);
1292
+ }
1204
1293
  .pl-sm {
1205
1294
  padding-left: var(--spacing-sm);
1206
1295
  }
@@ -1295,9 +1384,16 @@
1295
1384
  --tw-tracking: var(--tracking-wide);
1296
1385
  letter-spacing: var(--tracking-wide);
1297
1386
  }
1387
+ .tracking-widest {
1388
+ --tw-tracking: var(--tracking-widest);
1389
+ letter-spacing: var(--tracking-widest);
1390
+ }
1298
1391
  .whitespace-nowrap {
1299
1392
  white-space: nowrap;
1300
1393
  }
1394
+ .whitespace-pre {
1395
+ white-space: pre;
1396
+ }
1301
1397
  .\!text-body {
1302
1398
  color: var(--color-body) !important;
1303
1399
  }
@@ -1343,6 +1439,30 @@
1343
1439
  .text-semantic-warning {
1344
1440
  color: var(--color-semantic-warning);
1345
1441
  }
1442
+ .text-syntax-comment {
1443
+ color: var(--color-syntax-comment);
1444
+ }
1445
+ .text-syntax-function {
1446
+ color: var(--color-syntax-function);
1447
+ }
1448
+ .text-syntax-keyword {
1449
+ color: var(--color-syntax-keyword);
1450
+ }
1451
+ .text-syntax-number {
1452
+ color: var(--color-syntax-number);
1453
+ }
1454
+ .text-syntax-property {
1455
+ color: var(--color-syntax-property);
1456
+ }
1457
+ .text-syntax-string {
1458
+ color: var(--color-syntax-string);
1459
+ }
1460
+ .text-syntax-tag {
1461
+ color: var(--color-syntax-tag);
1462
+ }
1463
+ .text-syntax-type {
1464
+ color: var(--color-syntax-type);
1465
+ }
1346
1466
  .capitalize {
1347
1467
  text-transform: capitalize;
1348
1468
  }
@@ -1404,6 +1524,10 @@
1404
1524
  --tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgba(0,0,0,0.05));
1405
1525
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1406
1526
  }
1527
+ .ring {
1528
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1529
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1530
+ }
1407
1531
  .ring-0 {
1408
1532
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1409
1533
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -1541,6 +1665,13 @@
1541
1665
  }
1542
1666
  }
1543
1667
  }
1668
+ .hover\:bg-transparent {
1669
+ &:hover {
1670
+ @media (hover: hover) {
1671
+ background-color: transparent;
1672
+ }
1673
+ }
1674
+ }
1544
1675
  .hover\:\!text-ink {
1545
1676
  &:hover {
1546
1677
  @media (hover: hover) {
@@ -1569,6 +1700,13 @@
1569
1700
  }
1570
1701
  }
1571
1702
  }
1703
+ .hover\:no-underline {
1704
+ &:hover {
1705
+ @media (hover: hover) {
1706
+ text-decoration-line: none;
1707
+ }
1708
+ }
1709
+ }
1572
1710
  .hover\:underline {
1573
1711
  &:hover {
1574
1712
  @media (hover: hover) {
@@ -1669,6 +1807,11 @@
1669
1807
  background-color: var(--color-surface-strong);
1670
1808
  }
1671
1809
  }
1810
+ .active\:bg-transparent {
1811
+ &:active {
1812
+ background-color: transparent;
1813
+ }
1814
+ }
1672
1815
  .active\:brightness-75 {
1673
1816
  &:active {
1674
1817
  --tw-brightness: brightness(75%);
@@ -1785,6 +1928,18 @@
1785
1928
  --color-hairline-soft: #242432;
1786
1929
  --color-hairline-strong: #3C3C50;
1787
1930
  --color-primary-disabled: #3D3870;
1931
+ --color-semantic-success-soft: #123321;
1932
+ --color-semantic-warning-soft: #3A2A0A;
1933
+ --color-semantic-error-soft: #3A1414;
1934
+ --color-semantic-info-soft: #28234F;
1935
+ --color-syntax-keyword: #569CD6;
1936
+ --color-syntax-string: #CE9178;
1937
+ --color-syntax-number: #B5CEA8;
1938
+ --color-syntax-comment: #6A9955;
1939
+ --color-syntax-function: #DCDCAA;
1940
+ --color-syntax-type: #4EC9B0;
1941
+ --color-syntax-tag: #569CD6;
1942
+ --color-syntax-property: #9CDCFE;
1788
1943
  }
1789
1944
  @property --tw-translate-x {
1790
1945
  syntax: "*";
@@ -1989,6 +2144,12 @@
1989
2144
  transform: rotate(360deg);
1990
2145
  }
1991
2146
  }
2147
+ @keyframes ping {
2148
+ 75%, 100% {
2149
+ transform: scale(2);
2150
+ opacity: 0;
2151
+ }
2152
+ }
1992
2153
  @layer properties {
1993
2154
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
1994
2155
  *, ::before, ::after, ::backdrop {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "1.12.17",
3
+ "version": "1.15.1",
4
4
  "description": "Design system \"Plasma Design System\" generated by atom-server.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -69,6 +69,11 @@
69
69
  "kind": "Atom",
70
70
  "description": null
71
71
  },
72
+ {
73
+ "name": "CodeEditor",
74
+ "kind": "Organism",
75
+ "description": null
76
+ },
72
77
  {
73
78
  "name": "ComponentCard",
74
79
  "kind": "Atom",
@@ -89,6 +94,11 @@
89
94
  "kind": "Template",
90
95
  "description": null
91
96
  },
97
+ {
98
+ "name": "Icon",
99
+ "kind": "Atom",
100
+ "description": null
101
+ },
92
102
  {
93
103
  "name": "Input",
94
104
  "kind": "Atom",
@@ -119,6 +129,11 @@
119
129
  "kind": "Organism",
120
130
  "description": null
121
131
  },
132
+ {
133
+ "name": "StatusBar",
134
+ "kind": "Molecule",
135
+ "description": null
136
+ },
122
137
  {
123
138
  "name": "TopNavbar",
124
139
  "kind": "Organism",
@@ -19,6 +19,8 @@ const COLLAPSED_RAIL_WIDTH = 12;
19
19
  const PANEL_GAP_RIGHT = CURVE_R;
20
20
  /** Tailwind md breakpoint — 768px */
21
21
  const MOBILE_BREAKPOINT = 768;
22
+ /** Fixed fallback height when rendered outside a real viewport (e.g. in a small iframe preview). */
23
+ const FALLBACK_HEIGHT = 640;
22
24
 
23
25
  // ─── Types ────────────────────────────────────────────────────────────────────
24
26
 
@@ -41,6 +43,14 @@ export interface AppLayoutProps {
41
43
  defaultMobilePanel?: MobilePanel;
42
44
  /** When true, hides the entire left-hand identity/navigation cluster in the top bar — the avatar nav (avatar initials, chevron, and its dropdown menu) and the project/workspace name control (desktop WorkspaceMenu and mobile project name) — while keeping the rest of the top bar (tabs, actions) visible. Useful for a distraction-free fullscreen preview overlay. Defaults to false. */
43
45
  hideProjectName?: boolean;
46
+ /**
47
+ * Fills the real viewport (100vh) when true. Defaults to true so the
48
+ * layout behaves like a full app page in production. Set to false (the
49
+ * design-system preview does this) to size to a fixed content height
50
+ * instead — required inside iframed contexts where 100vh would resolve
51
+ * against the iframe rather than the browser window.
52
+ */
53
+ fillViewport?: boolean;
44
54
  className?: string;
45
55
  }
46
56
 
@@ -179,7 +189,7 @@ const AvatarNav: React.FC<AvatarNavProps> = ({ initials, onBackToProjects, onHom
179
189
  <div
180
190
  role="menu"
181
191
  aria-label="Navigation"
182
- className="absolute left-0 mt-xs rounded-xl bg-canvas border border-hairline-soft shadow-card py-xs"
192
+ className="absolute left-0 mt-xs rounded-xl bg-canvas border border-hairline-soft shadow-card py-xs overflow-hidden"
183
193
  style={{ minWidth: 200, zIndex: 1000, top: "100%" }}
184
194
  >
185
195
  <Button
@@ -403,11 +413,13 @@ export const AppLayout = React.forwardRef<HTMLDivElement, AppLayoutProps>(
403
413
  avatarInitials = "A",
404
414
  defaultMobilePanel = "chat",
405
415
  hideProjectName = false,
416
+ fillViewport = true,
406
417
  className,
407
418
  },
408
419
  ref,
409
420
  ) => {
410
421
  const isMobile = useIsMobile();
422
+ const rootHeight = fillViewport ? "100vh" : `${FALLBACK_HEIGHT}px`;
411
423
 
412
424
  // Desktop state
413
425
  const [activeTab, setActiveTab] = React.useState(rightPanelActiveTab);
@@ -491,7 +503,7 @@ export const AppLayout = React.forwardRef<HTMLDivElement, AppLayoutProps>(
491
503
  <div
492
504
  ref={ref}
493
505
  className={["w-full flex flex-col overflow-hidden bg-canvas", className].filter(Boolean).join(" ")}
494
- style={{ height: "100vh" }}
506
+ style={{ height: rootHeight }}
495
507
  >
496
508
  <MobileTopBar
497
509
  projectName={projectName}
@@ -553,7 +565,7 @@ export const AppLayout = React.forwardRef<HTMLDivElement, AppLayoutProps>(
553
565
  <div
554
566
  ref={ref}
555
567
  className={["w-full flex flex-col overflow-hidden", className].filter(Boolean).join(" ")}
556
- style={{ height: "100vh", background: "var(--color-surface-soft)" }}
568
+ style={{ height: rootHeight, background: "var(--color-surface-soft)" }}
557
569
  >
558
570
  {/* TOP BAR */}
559
571
  <div
@@ -39,12 +39,13 @@ const sampleMessages: ChatMessage[] = [
39
39
 
40
40
  export default function AppLayoutPreview() {
41
41
  return (
42
- <div className="w-full" style={{ height: "100vh" }}>
42
+ <div className="w-full">
43
43
  {/*
44
- Variant A: consumer passes explicit tabs — nav renders as expected.
45
- Variant B (below, commented out): no tabs passed — nav is hidden.
44
+ fillViewport=false renders the layout at a fixed content height instead
45
+ of 100vh — required inside this iframed preview.
46
46
  */}
47
47
  <AppLayout
48
+ fillViewport={false}
48
49
  navbarProps={{
49
50
  avatarInitials: "OF",
50
51
  version: "Latest",