@designa8/vibedesign-linear-internal-v1-2-176b 0.2.0 → 0.2.2

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-linear-internal-v1-2-176b
2
2
 
3
- Complete design system generated by Atoms Design, version **0.2.0**.
3
+ Complete design system generated by Atoms Design, version **0.2.2**.
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
@@ -5267,11 +5267,27 @@ var React49 = __toESM(require("react"));
5267
5267
  var import_jsx_runtime49 = require("react/jsx-runtime");
5268
5268
  var cn38 = (...parts) => parts.filter(Boolean).join(" ");
5269
5269
  var HeroSectionDesktop = React49.forwardRef(
5270
- ({ title, description, primaryAction, secondaryAction, media, proof, className, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5270
+ ({
5271
+ title,
5272
+ description,
5273
+ primaryAction,
5274
+ secondaryAction,
5275
+ media,
5276
+ proof,
5277
+ surface = "canvas",
5278
+ inset = true,
5279
+ className,
5280
+ ...rest
5281
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5271
5282
  "section",
5272
5283
  {
5273
5284
  ref,
5274
- className: cn38("w-full bg-canvas px-xxl py-section text-ink", className),
5285
+ className: cn38(
5286
+ "w-full py-section text-ink",
5287
+ inset && "px-xxl",
5288
+ surface === "canvas" ? "bg-canvas" : "bg-transparent",
5289
+ className
5290
+ ),
5275
5291
  ...rest,
5276
5292
  children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
5277
5293
  "div",
@@ -5307,11 +5323,27 @@ var React50 = __toESM(require("react"));
5307
5323
  var import_jsx_runtime50 = require("react/jsx-runtime");
5308
5324
  var cn39 = (...parts) => parts.filter(Boolean).join(" ");
5309
5325
  var HeroSectionMobile = React50.forwardRef(
5310
- ({ title, description, primaryAction, secondaryAction, media, proof, className, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
5326
+ ({
5327
+ title,
5328
+ description,
5329
+ primaryAction,
5330
+ secondaryAction,
5331
+ media,
5332
+ proof,
5333
+ surface = "canvas",
5334
+ inset = true,
5335
+ className,
5336
+ ...rest
5337
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
5311
5338
  "section",
5312
5339
  {
5313
5340
  ref,
5314
- className: cn39("flex w-full flex-col bg-canvas px-base py-xl text-ink", className),
5341
+ className: cn39(
5342
+ "flex w-full flex-col py-xl text-ink",
5343
+ inset && "px-base",
5344
+ surface === "canvas" ? "bg-canvas" : "bg-transparent",
5345
+ className
5346
+ ),
5315
5347
  ...rest,
5316
5348
  children: [
5317
5349
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("h1", { className: "text-heading-md text-ink", children: title }),
@@ -5334,9 +5366,9 @@ HeroSectionMobile.displayName = "HeroSectionMobile";
5334
5366
  // virtual-pkg:src/atoms/HeroSection/HeroSection.tsx
5335
5367
  var import_jsx_runtime51 = require("react/jsx-runtime");
5336
5368
  var HeroSection = React51.forwardRef(
5337
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { ref, className: ["w-full", className].filter(Boolean).join(" "), children: [
5338
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(HeroSectionDesktop, { ...props }) }),
5339
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(HeroSectionMobile, { ...props }) })
5369
+ ({ className, surface = "canvas", inset = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { ref, className: ["w-full", className].filter(Boolean).join(" "), children: [
5370
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(HeroSectionDesktop, { surface, inset, ...props }) }),
5371
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(HeroSectionMobile, { surface, inset, ...props }) })
5340
5372
  ] })
5341
5373
  );
5342
5374
  HeroSection.displayName = "HeroSection";
package/dist/index.js CHANGED
@@ -5143,11 +5143,27 @@ import * as React49 from "react";
5143
5143
  import { jsx as jsx49, jsxs as jsxs43 } from "react/jsx-runtime";
5144
5144
  var cn38 = (...parts) => parts.filter(Boolean).join(" ");
5145
5145
  var HeroSectionDesktop = React49.forwardRef(
5146
- ({ title, description, primaryAction, secondaryAction, media, proof, className, ...rest }, ref) => /* @__PURE__ */ jsx49(
5146
+ ({
5147
+ title,
5148
+ description,
5149
+ primaryAction,
5150
+ secondaryAction,
5151
+ media,
5152
+ proof,
5153
+ surface = "canvas",
5154
+ inset = true,
5155
+ className,
5156
+ ...rest
5157
+ }, ref) => /* @__PURE__ */ jsx49(
5147
5158
  "section",
5148
5159
  {
5149
5160
  ref,
5150
- className: cn38("w-full bg-canvas px-xxl py-section text-ink", className),
5161
+ className: cn38(
5162
+ "w-full py-section text-ink",
5163
+ inset && "px-xxl",
5164
+ surface === "canvas" ? "bg-canvas" : "bg-transparent",
5165
+ className
5166
+ ),
5151
5167
  ...rest,
5152
5168
  children: /* @__PURE__ */ jsxs43(
5153
5169
  "div",
@@ -5183,11 +5199,27 @@ import * as React50 from "react";
5183
5199
  import { jsx as jsx50, jsxs as jsxs44 } from "react/jsx-runtime";
5184
5200
  var cn39 = (...parts) => parts.filter(Boolean).join(" ");
5185
5201
  var HeroSectionMobile = React50.forwardRef(
5186
- ({ title, description, primaryAction, secondaryAction, media, proof, className, ...rest }, ref) => /* @__PURE__ */ jsxs44(
5202
+ ({
5203
+ title,
5204
+ description,
5205
+ primaryAction,
5206
+ secondaryAction,
5207
+ media,
5208
+ proof,
5209
+ surface = "canvas",
5210
+ inset = true,
5211
+ className,
5212
+ ...rest
5213
+ }, ref) => /* @__PURE__ */ jsxs44(
5187
5214
  "section",
5188
5215
  {
5189
5216
  ref,
5190
- className: cn39("flex w-full flex-col bg-canvas px-base py-xl text-ink", className),
5217
+ className: cn39(
5218
+ "flex w-full flex-col py-xl text-ink",
5219
+ inset && "px-base",
5220
+ surface === "canvas" ? "bg-canvas" : "bg-transparent",
5221
+ className
5222
+ ),
5191
5223
  ...rest,
5192
5224
  children: [
5193
5225
  /* @__PURE__ */ jsx50("h1", { className: "text-heading-md text-ink", children: title }),
@@ -5210,9 +5242,9 @@ HeroSectionMobile.displayName = "HeroSectionMobile";
5210
5242
  // virtual-pkg:src/atoms/HeroSection/HeroSection.tsx
5211
5243
  import { jsx as jsx51, jsxs as jsxs45 } from "react/jsx-runtime";
5212
5244
  var HeroSection = React51.forwardRef(
5213
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxs45("div", { ref, className: ["w-full", className].filter(Boolean).join(" "), children: [
5214
- /* @__PURE__ */ jsx51("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx51(HeroSectionDesktop, { ...props }) }),
5215
- /* @__PURE__ */ jsx51("div", { className: "md:hidden", children: /* @__PURE__ */ jsx51(HeroSectionMobile, { ...props }) })
5245
+ ({ className, surface = "canvas", inset = true, ...props }, ref) => /* @__PURE__ */ jsxs45("div", { ref, className: ["w-full", className].filter(Boolean).join(" "), children: [
5246
+ /* @__PURE__ */ jsx51("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx51(HeroSectionDesktop, { surface, inset, ...props }) }),
5247
+ /* @__PURE__ */ jsx51("div", { className: "md:hidden", children: /* @__PURE__ */ jsx51(HeroSectionMobile, { surface, inset, ...props }) })
5216
5248
  ] })
5217
5249
  );
5218
5250
  HeroSection.displayName = "HeroSection";
package/dist/styles.css CHANGED
@@ -1117,6 +1117,13 @@
1117
1117
  margin-block-end: calc(var(--spacing-xs) * calc(1 - var(--tw-space-y-reverse)));
1118
1118
  }
1119
1119
  }
1120
+ .space-y-xxl {
1121
+ :where(& > :not(:last-child)) {
1122
+ --tw-space-y-reverse: 0;
1123
+ margin-block-start: calc(var(--spacing-xxl) * var(--tw-space-y-reverse));
1124
+ margin-block-end: calc(var(--spacing-xxl) * calc(1 - var(--tw-space-y-reverse)));
1125
+ }
1126
+ }
1120
1127
  .space-y-xxs {
1121
1128
  :where(& > :not(:last-child)) {
1122
1129
  --tw-space-y-reverse: 0;
@@ -1503,6 +1510,9 @@
1503
1510
  .py-base {
1504
1511
  padding-block: var(--spacing-base);
1505
1512
  }
1513
+ .py-lg {
1514
+ padding-block: var(--spacing-lg);
1515
+ }
1506
1516
  .py-md {
1507
1517
  padding-block: var(--spacing-md);
1508
1518
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-linear-internal-v1-2-176b",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Complete design system \"My Project linear-internal-v1\" generated by Atoms Design.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -1,19 +1,33 @@
1
1
  import * as React from "react";
2
2
  import { HeroSectionDesktop } from "../HeroSectionDesktop";
3
- import type { HeroSectionDesktopProps } from "../HeroSectionDesktop";
3
+ import type { HeroSectionDesktopProps, HeroSurface } from "../HeroSectionDesktop";
4
4
  import { HeroSectionMobile } from "../HeroSectionMobile";
5
5
 
6
- export type HeroSectionProps = HeroSectionDesktopProps;
6
+ export interface HeroSectionProps extends HeroSectionDesktopProps {
7
+ /**
8
+ * `"canvas"` (default) paints the canvas surface behind the hero.
9
+ * `"transparent"` drops it so a page-level ambient gradient shows through.
10
+ */
11
+ surface?: HeroSurface;
12
+ /**
13
+ * `true` (default) keeps the section's own horizontal gutters.
14
+ * `false` removes them so the hero aligns with a page container that is already inset.
15
+ */
16
+ inset?: boolean;
17
+ }
7
18
 
8
- /** Responsive hero: the desktop layout from `md` up, the stacked mobile layout below. */
19
+ /**
20
+ * Responsive hero: the desktop layout from `md` up, the stacked mobile layout below.
21
+ * `surface` and `inset` are forwarded to whichever variant renders.
22
+ */
9
23
  export const HeroSection = React.forwardRef<HTMLDivElement, HeroSectionProps>(
10
- ({ className, ...props }, ref) => (
24
+ ({ className, surface = "canvas", inset = true, ...props }, ref) => (
11
25
  <div ref={ref} className={["w-full", className].filter(Boolean).join(" ")}>
12
26
  <div className="hidden md:block">
13
- <HeroSectionDesktop {...props} />
27
+ <HeroSectionDesktop surface={surface} inset={inset} {...props} />
14
28
  </div>
15
29
  <div className="md:hidden">
16
- <HeroSectionMobile {...props} />
30
+ <HeroSectionMobile surface={surface} inset={inset} {...props} />
17
31
  </div>
18
32
  </div>
19
33
  ),
@@ -4,7 +4,7 @@ import { Skeleton } from "../Skeleton";
4
4
 
5
5
  function ProductShot() {
6
6
  return (
7
- <div className="aspect-[16/10] w-full rounded-lg border-2 border-primary bg-surface p-md shadow-lg">
7
+ <div className="aspect-[16/10] w-full rounded-lg border border-hairline bg-surface p-md shadow-lg">
8
8
  <div className="flex h-full gap-md">
9
9
  <div className="flex w-1/5 flex-col gap-sm">
10
10
  <Skeleton variant="text" animated={false} />
@@ -25,18 +25,64 @@ const FACES = [
25
25
  { name: "Omar Diaz", src: "https://i.pravatar.cc/80?img=15" },
26
26
  ];
27
27
 
28
+ const AMBIENT_GLOW: React.CSSProperties = {
29
+ backgroundImage:
30
+ "radial-gradient(70% 70% at 50% 0%, color-mix(in srgb, var(--color-primary) 22%, transparent) 0%, transparent 70%)",
31
+ };
32
+
33
+ function SectionLabel({ children }: { children: React.ReactNode }) {
34
+ return <p className="mb-sm text-caption text-muted">{children}</p>;
35
+ }
36
+
28
37
  export default function HeroSectionPreview() {
29
38
  const [started, setStarted] = React.useState(false);
39
+
30
40
  return (
31
- <div className="w-full">
32
- <HeroSection
33
- title="The issue tracking tool for high-performing teams."
34
- description="Plan, build, and ship software in one place."
35
- primaryAction={{ label: started ? "Let's go" : "Get started", onClick: () => setStarted(true) }}
36
- secondaryAction={{ label: "Request a trial" }}
37
- media={<ProductShot />}
38
- proof={{ avatars: FACES, text: <>Trusted by <strong>10,000+</strong> teams</> }}
39
- />
41
+ <div className="mx-auto w-full max-w-4xl space-y-xxl p-lg">
42
+ <div>
43
+ <SectionLabel>Default — surface="canvas", inset</SectionLabel>
44
+ <div className="overflow-hidden rounded-xl border border-hairline">
45
+ <HeroSection
46
+ title="The issue tracking tool for high-performing teams."
47
+ description="Plan, build, and ship software in one place."
48
+ primaryAction={{
49
+ label: started ? "Let's go" : "Get started",
50
+ onClick: () => setStarted(true),
51
+ }}
52
+ secondaryAction={{ label: "Request a trial" }}
53
+ media={<ProductShot />}
54
+ proof={{ avatars: FACES, text: <>Trusted by <strong>10,000+</strong> teams</> }}
55
+ />
56
+ </div>
57
+ </div>
58
+
59
+ <div>
60
+ <SectionLabel>
61
+ surface="transparent" — the page paints the ambient glow, the hero drops its fill
62
+ </SectionLabel>
63
+ <div className="overflow-hidden rounded-xl border border-hairline" style={AMBIENT_GLOW}>
64
+ <HeroSection
65
+ surface="transparent"
66
+ title="Your roadmap, lit from behind."
67
+ description="The soft brand glow is ambient page scenery, not hero background."
68
+ media={<ProductShot />}
69
+ primaryAction={{ label: "Start free", onClick: () => setStarted(true) }}
70
+ secondaryAction={{ label: "See pricing" }}
71
+ />
72
+ </div>
73
+ </div>
74
+
75
+ <div>
76
+ <SectionLabel>inset={false} — inside a page container that already has gutters</SectionLabel>
77
+ <div className="rounded-xl border border-hairline bg-canvas px-xxl py-lg">
78
+ <HeroSection
79
+ inset={false}
80
+ title="Aligns with your page container."
81
+ description="The hero drops its own horizontal padding, so it lines up with the gutter above it."
82
+ primaryAction={{ label: "Read the docs" }}
83
+ />
84
+ </div>
85
+ </div>
40
86
  </div>
41
87
  );
42
88
  }
@@ -15,6 +15,9 @@ export interface HeroProof {
15
15
  text: React.ReactNode;
16
16
  }
17
17
 
18
+ /** Background treatment of the hero section. */
19
+ export type HeroSurface = "canvas" | "transparent";
20
+
18
21
  export interface HeroSectionDesktopProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
19
22
  title: React.ReactNode;
20
23
  description?: React.ReactNode;
@@ -24,16 +27,45 @@ export interface HeroSectionDesktopProps extends Omit<React.HTMLAttributes<HTMLE
24
27
  media?: React.ReactNode;
25
28
  /** Social proof row under the actions. */
26
29
  proof?: HeroProof;
30
+ /**
31
+ * `"canvas"` (default) paints the canvas surface behind the hero.
32
+ * `"transparent"` drops it so a page-level ambient gradient shows through.
33
+ */
34
+ surface?: HeroSurface;
35
+ /**
36
+ * `true` (default) keeps the section's own horizontal gutters.
37
+ * `false` removes them so the hero aligns with a page container that is already inset.
38
+ */
39
+ inset?: boolean;
27
40
  }
28
41
 
29
42
  const cn = (...parts: Array<string | false | null | undefined>) =>
30
43
  parts.filter(Boolean).join(" ");
31
44
 
32
45
  export const HeroSectionDesktop = React.forwardRef<HTMLElement, HeroSectionDesktopProps>(
33
- ({ title, description, primaryAction, secondaryAction, media, proof, className, ...rest }, ref) => (
46
+ (
47
+ {
48
+ title,
49
+ description,
50
+ primaryAction,
51
+ secondaryAction,
52
+ media,
53
+ proof,
54
+ surface = "canvas",
55
+ inset = true,
56
+ className,
57
+ ...rest
58
+ },
59
+ ref,
60
+ ) => (
34
61
  <section
35
62
  ref={ref}
36
- className={cn("w-full bg-canvas px-xxl py-section text-ink", className)}
63
+ className={cn(
64
+ "w-full py-section text-ink",
65
+ inset && "px-xxl",
66
+ surface === "canvas" ? "bg-canvas" : "bg-transparent",
67
+ className,
68
+ )}
37
69
  {...rest}
38
70
  >
39
71
  <div
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { Button } from "../Button";
3
3
  import { AvatarGroup } from "../AvatarGroup";
4
- import type { HeroAction, HeroProof } from "../HeroSectionDesktop";
4
+ import type { HeroAction, HeroProof, HeroSurface } from "../HeroSectionDesktop";
5
5
 
6
6
  export interface HeroSectionMobileProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
7
7
  title: React.ReactNode;
@@ -12,16 +12,45 @@ export interface HeroSectionMobileProps extends Omit<React.HTMLAttributes<HTMLEl
12
12
  media?: React.ReactNode;
13
13
  /** Social proof row at the bottom. */
14
14
  proof?: HeroProof;
15
+ /**
16
+ * `"canvas"` (default) paints the canvas surface behind the hero.
17
+ * `"transparent"` drops it so a page-level ambient gradient shows through.
18
+ */
19
+ surface?: HeroSurface;
20
+ /**
21
+ * `true` (default) keeps the section's own horizontal gutters.
22
+ * `false` removes them so the hero aligns with a page container that is already inset.
23
+ */
24
+ inset?: boolean;
15
25
  }
16
26
 
17
27
  const cn = (...parts: Array<string | false | null | undefined>) =>
18
28
  parts.filter(Boolean).join(" ");
19
29
 
20
30
  export const HeroSectionMobile = React.forwardRef<HTMLElement, HeroSectionMobileProps>(
21
- ({ title, description, primaryAction, secondaryAction, media, proof, className, ...rest }, ref) => (
31
+ (
32
+ {
33
+ title,
34
+ description,
35
+ primaryAction,
36
+ secondaryAction,
37
+ media,
38
+ proof,
39
+ surface = "canvas",
40
+ inset = true,
41
+ className,
42
+ ...rest
43
+ },
44
+ ref,
45
+ ) => (
22
46
  <section
23
47
  ref={ref}
24
- className={cn("flex w-full flex-col bg-canvas px-base py-xl text-ink", className)}
48
+ className={cn(
49
+ "flex w-full flex-col py-xl text-ink",
50
+ inset && "px-base",
51
+ surface === "canvas" ? "bg-canvas" : "bg-transparent",
52
+ className,
53
+ )}
25
54
  {...rest}
26
55
  >
27
56
  <h1 className="text-heading-md text-ink">{title}</h1>
@@ -14,7 +14,7 @@ export interface IssueCardAssignee {
14
14
  }
15
15
 
16
16
  export interface IssueCardProps
17
- extends Omit<React.HTMLAttributes<HTMLDivElement>, "onClick"> {
17
+ extends Omit<React.HTMLAttributes<HTMLDivElement>, "onClick" | "title"> {
18
18
  /** Issue key, e.g. "ENG-412". Rendered muted with tabular numerals. */
19
19
  id: string;
20
20
  /** Issue title. Wraps to at most two lines. */