@designa8/vibedesign-linear-internal-v1-b737 0.13.4 → 0.13.5

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-b737
2
2
 
3
- Complete design system generated by Atoms Design, version **0.13.4**.
3
+ Complete design system generated by Atoms Design, version **0.13.5**.
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
@@ -423,7 +423,7 @@ var variants = {
423
423
  soft: "border-transparent bg-surface-soft text-ink ring-1 ring-hairline ring-inset shadow-none enabled:hover:bg-surface-strong enabled:hover:ring-hairline-strong enabled:active:bg-surface-strong aria-pressed:bg-surface-strong disabled:ring-hairline-soft",
424
424
  tint: "border-hairline bg-surface-soft text-muted shadow-none enabled:hover:bg-surface-strong enabled:hover:text-ink enabled:active:bg-surface-strong aria-checked:border-primary aria-checked:bg-primary-soft aria-checked:text-primary aria-checked:enabled:hover:bg-primary-soft aria-checked:enabled:hover:text-primary",
425
425
  inverse: "border-transparent bg-inverse-canvas text-inverse-ink shadow-sm enabled:hover:opacity-90 enabled:active:opacity-80",
426
- neutral: "border-transparent bg-muted text-on-primary shadow-sm enabled:hover:bg-muted enabled:active:bg-muted",
426
+ neutral: "border-transparent bg-muted text-on-primary shadow-sm enabled:hover:bg-body enabled:active:bg-ink",
427
427
  media: "border-transparent bg-transparent p-0 focus-visible:ring-inset enabled:hover:bg-surface-soft enabled:active:bg-surface-strong"
428
428
  };
429
429
  var sizes = {
package/dist/index.js CHANGED
@@ -277,7 +277,7 @@ var variants = {
277
277
  soft: "border-transparent bg-surface-soft text-ink ring-1 ring-hairline ring-inset shadow-none enabled:hover:bg-surface-strong enabled:hover:ring-hairline-strong enabled:active:bg-surface-strong aria-pressed:bg-surface-strong disabled:ring-hairline-soft",
278
278
  tint: "border-hairline bg-surface-soft text-muted shadow-none enabled:hover:bg-surface-strong enabled:hover:text-ink enabled:active:bg-surface-strong aria-checked:border-primary aria-checked:bg-primary-soft aria-checked:text-primary aria-checked:enabled:hover:bg-primary-soft aria-checked:enabled:hover:text-primary",
279
279
  inverse: "border-transparent bg-inverse-canvas text-inverse-ink shadow-sm enabled:hover:opacity-90 enabled:active:opacity-80",
280
- neutral: "border-transparent bg-muted text-on-primary shadow-sm enabled:hover:bg-muted enabled:active:bg-muted",
280
+ neutral: "border-transparent bg-muted text-on-primary shadow-sm enabled:hover:bg-body enabled:active:bg-ink",
281
281
  media: "border-transparent bg-transparent p-0 focus-visible:ring-inset enabled:hover:bg-surface-soft enabled:active:bg-surface-strong"
282
282
  };
283
283
  var sizes = {
package/dist/styles.css CHANGED
@@ -2570,23 +2570,23 @@
2570
2570
  }
2571
2571
  }
2572
2572
  }
2573
- .enabled\:hover\:bg-inverse-ink\/10 {
2573
+ .enabled\:hover\:bg-body {
2574
2574
  &:enabled {
2575
2575
  &:hover {
2576
2576
  @media (hover: hover) {
2577
- background-color: color-mix(in srgb, #F7F8F8 10%, transparent);
2578
- @supports (color: color-mix(in lab, red, red)) {
2579
- background-color: color-mix(in oklab, var(--color-inverse-ink) 10%, transparent);
2580
- }
2577
+ background-color: var(--color-body);
2581
2578
  }
2582
2579
  }
2583
2580
  }
2584
2581
  }
2585
- .enabled\:hover\:bg-muted {
2582
+ .enabled\:hover\:bg-inverse-ink\/10 {
2586
2583
  &:enabled {
2587
2584
  &:hover {
2588
2585
  @media (hover: hover) {
2589
- background-color: var(--color-muted);
2586
+ background-color: color-mix(in srgb, #F7F8F8 10%, transparent);
2587
+ @supports (color: color-mix(in lab, red, red)) {
2588
+ background-color: color-mix(in oklab, var(--color-inverse-ink) 10%, transparent);
2589
+ }
2590
2590
  }
2591
2591
  }
2592
2592
  }
@@ -2685,10 +2685,10 @@
2685
2685
  }
2686
2686
  }
2687
2687
  }
2688
- .enabled\:active\:bg-muted {
2688
+ .enabled\:active\:bg-ink {
2689
2689
  &:enabled {
2690
2690
  &:active {
2691
- background-color: var(--color-muted);
2691
+ background-color: var(--color-ink);
2692
2692
  }
2693
2693
  }
2694
2694
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-linear-internal-v1-b737",
3
- "version": "0.13.4",
3
+ "version": "0.13.5",
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",
@@ -18,8 +18,9 @@ import { Icon } from "../Icon";
18
18
  * darkens on hover, and a brand-tinted `aria-checked` state — a pill-shaped
19
19
  * toggle (a switch-styled toolbar chip).
20
20
  * `inverse` is a filled ink surface with inverse text, for a solid neutral
21
- * action that must not read as brand primary. `neutral` is a muted grey fill
22
- * with an on-primary glyph, for a control that is inert until it has content.
21
+ * action that must not read as brand primary. `neutral` is a solid muted fill
22
+ * with an inverse glyph that deepens one step on hover and one more on press —
23
+ * a control that looks inert until it has content.
23
24
  * `media` is a borderless, full-width block trigger that wraps a thumbnail or
24
25
  * other media (no fixed height, no padding); clicking it opens a larger view.
25
26
  */
@@ -93,7 +94,7 @@ const variants: Record<ButtonVariant, string> = {
93
94
  inverse:
94
95
  "border-transparent bg-inverse-canvas text-inverse-ink shadow-sm enabled:hover:opacity-90 enabled:active:opacity-80",
95
96
  neutral:
96
- "border-transparent bg-muted text-on-primary shadow-sm enabled:hover:bg-muted enabled:active:bg-muted",
97
+ "border-transparent bg-muted text-on-primary shadow-sm enabled:hover:bg-body enabled:active:bg-ink",
97
98
  media:
98
99
  "border-transparent bg-transparent p-0 focus-visible:ring-inset enabled:hover:bg-surface-soft enabled:active:bg-surface-strong",
99
100
  };
@@ -4,10 +4,16 @@ import type { ButtonProps } from "../Button";
4
4
  import { Icon } from "../Icon";
5
5
  import type { IconName } from "../Icon";
6
6
 
7
+ /**
8
+ * `neutral` is a solid muted-grey fill with an inverse glyph — quiet and
9
+ * inactive-looking, so a send / submit control can sit greyed out until there
10
+ * is something to send and flip to `primary` when there is.
11
+ */
7
12
  export type IconButtonVariant =
8
13
  | "secondary"
9
14
  | "ghost"
10
15
  | "primary"
16
+ | "neutral"
11
17
  | "soft"
12
18
  | "inverse";
13
19
  export type IconButtonSize = "sm" | "md" | "lg";
@@ -1,9 +1,11 @@
1
1
  import * as React from "react";
2
+ import { Button } from "../Button";
2
3
  import { IconButton } from "./IconButton";
3
4
 
4
5
  export default function IconButtonPreview() {
5
6
  const [count, setCount] = React.useState(0);
6
7
  const [starred, setStarred] = React.useState(false);
8
+ const [hasText, setHasText] = React.useState(false);
7
9
 
8
10
  return (
9
11
  <div className="w-full max-w-3xl mx-auto p-lg space-y-lg text-ink">
@@ -25,11 +27,49 @@ export default function IconButtonPreview() {
25
27
  <IconButton icon="plus" disabled aria-label="Create issue (disabled)" />
26
28
  <span className="text-body-sm text-muted">Created {count}</span>
27
29
  </div>
30
+
28
31
  <div className="flex flex-wrap items-center gap-lg">
29
32
  <IconButton icon="plus" size="sm" aria-label="Small" />
30
33
  <IconButton icon="plus" size="md" aria-label="Medium" />
31
34
  <IconButton icon="plus" size="lg" aria-label="Large" />
32
35
  </div>
36
+
37
+ <div className="space-y-sm">
38
+ <p className="text-body-sm text-muted">
39
+ Neutral reads as inert until there is something to send.
40
+ </p>
41
+ <div className="flex flex-wrap items-center gap-lg">
42
+ <IconButton
43
+ icon="arrow-up"
44
+ variant={hasText ? "primary" : "neutral"}
45
+ aria-label={
46
+ hasText ? "Send message" : "Send message (nothing to send)"
47
+ }
48
+ onClick={() => setHasText((v) => !v)}
49
+ />
50
+ <IconButton
51
+ icon="arrow-up"
52
+ variant="neutral"
53
+ size="sm"
54
+ aria-label="Neutral small"
55
+ />
56
+ <IconButton
57
+ icon="arrow-up"
58
+ variant="neutral"
59
+ size="lg"
60
+ aria-label="Neutral large"
61
+ />
62
+ <IconButton
63
+ icon="arrow-up"
64
+ variant="neutral"
65
+ disabled
66
+ aria-label="Neutral disabled"
67
+ />
68
+ <Button variant="secondary" size="sm" onClick={() => setHasText((v) => !v)}>
69
+ {hasText ? "Clear draft" : "Type a draft"}
70
+ </Button>
71
+ </div>
72
+ </div>
33
73
  </div>
34
74
  );
35
75
  }