@designa8/vibedesign-linear-internal-v1-b737 0.14.2 → 0.14.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/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.14.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.14.4**.
|
|
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
|
@@ -379,14 +379,18 @@ var AnnouncementCard = React2.forwardRef(
|
|
|
379
379
|
),
|
|
380
380
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "relative flex min-w-0 flex-1 flex-col gap-xs", children: [
|
|
381
381
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-body-md font-weight-label text-ink", children: title }),
|
|
382
|
-
subtitle && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-caption text-ink
|
|
382
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "truncate text-caption text-ink opacity-80 dark:opacity-85", children: subtitle })
|
|
383
383
|
] }),
|
|
384
|
-
icon &&
|
|
384
|
+
icon && // `tone="default"` paints the glyph with `text-ink` and the SVG strokes with
|
|
385
|
+
// `currentColor`, so it is near-black here in light mode and near-white in
|
|
386
|
+
// dark mode. No inverse/white tone, no hard-coded stroke.
|
|
387
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
385
388
|
Icon,
|
|
386
389
|
{
|
|
387
390
|
name: icon,
|
|
388
391
|
size: 26,
|
|
389
392
|
strokeWidth: 2,
|
|
393
|
+
tone: "default",
|
|
390
394
|
className: "relative shrink-0 text-ink"
|
|
391
395
|
}
|
|
392
396
|
)
|
|
@@ -8840,20 +8844,7 @@ var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
|
8840
8844
|
var GRID = 9;
|
|
8841
8845
|
var SWEEP_MS = 2400;
|
|
8842
8846
|
var STEP_MS = 35;
|
|
8843
|
-
var SPARKLES = [
|
|
8844
|
-
{ top: "0%", left: "14%", size: 10, delay: "0ms" },
|
|
8845
|
-
{ top: "2%", left: "46%", size: 8, delay: "150ms" },
|
|
8846
|
-
{ top: "1%", left: "78%", size: 9, delay: "75ms" },
|
|
8847
|
-
{ top: "30%", left: "0%", size: 7, delay: "300ms" },
|
|
8848
|
-
{ top: "58%", left: "97%", size: 8, delay: "125ms" },
|
|
8849
|
-
{ top: "96%", left: "20%", size: 8, delay: "225ms" },
|
|
8850
|
-
{ top: "93%", left: "62%", size: 10, delay: "375ms" }
|
|
8851
|
-
];
|
|
8852
8847
|
var KEYFRAMES = `
|
|
8853
|
-
@keyframes dsl-twinkle {
|
|
8854
|
-
0%, 100% { opacity: 0.2; transform: scale(0.85); }
|
|
8855
|
-
50% { opacity: 0.9; transform: scale(1.1); }
|
|
8856
|
-
}
|
|
8857
8848
|
@keyframes dsl-cell {
|
|
8858
8849
|
0% { background-color: var(--color-primary); border-color: transparent; border-style: solid; opacity: 1; }
|
|
8859
8850
|
8% { background-color: var(--color-primary); border-color: transparent; border-style: solid; opacity: 0.8; }
|
|
@@ -8888,45 +8879,29 @@ var DesignSystemLoader = React70.forwardRef(
|
|
|
8888
8879
|
...rest,
|
|
8889
8880
|
children: [
|
|
8890
8881
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("style", { children: KEYFRAMES }),
|
|
8891
|
-
/* @__PURE__ */ (0, import_jsx_runtime70.
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
const col = index % GRID;
|
|
8915
|
-
const diagonal = row + (GRID - 1 - col);
|
|
8916
|
-
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
8917
|
-
"span",
|
|
8918
|
-
{
|
|
8919
|
-
className: "dsl-animate aspect-square rounded-xs border-2 border-transparent bg-primary",
|
|
8920
|
-
style: {
|
|
8921
|
-
animation: `dsl-cell ${SWEEP_MS}ms ease-in-out ${diagonal * STEP_MS}ms infinite both`
|
|
8922
|
-
}
|
|
8923
|
-
},
|
|
8924
|
-
index
|
|
8925
|
-
);
|
|
8926
|
-
})
|
|
8927
|
-
}
|
|
8928
|
-
)
|
|
8929
|
-
] }),
|
|
8882
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "relative mx-auto w-full max-w-drawer", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
8883
|
+
"div",
|
|
8884
|
+
{
|
|
8885
|
+
className: "relative grid gap-xxs",
|
|
8886
|
+
"aria-hidden": "true",
|
|
8887
|
+
style: { gridTemplateColumns: `repeat(${GRID}, minmax(0, 1fr))` },
|
|
8888
|
+
children: Array.from({ length: GRID * GRID }, (_, index) => {
|
|
8889
|
+
const row = Math.floor(index / GRID);
|
|
8890
|
+
const col = index % GRID;
|
|
8891
|
+
const diagonal = row + (GRID - 1 - col);
|
|
8892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
8893
|
+
"span",
|
|
8894
|
+
{
|
|
8895
|
+
className: "dsl-animate aspect-square rounded-xs border-2 border-transparent bg-primary",
|
|
8896
|
+
style: {
|
|
8897
|
+
animation: `dsl-cell ${SWEEP_MS}ms ease-in-out ${diagonal * STEP_MS}ms infinite both`
|
|
8898
|
+
}
|
|
8899
|
+
},
|
|
8900
|
+
index
|
|
8901
|
+
);
|
|
8902
|
+
})
|
|
8903
|
+
}
|
|
8904
|
+
) }),
|
|
8930
8905
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "mx-auto flex w-full max-w-drawer flex-col items-center gap-xs", children: [
|
|
8931
8906
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-heading-sm text-ink", children: label }),
|
|
8932
8907
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-body-sm text-muted", children: sublabel })
|
package/dist/index.js
CHANGED
|
@@ -233,14 +233,18 @@ var AnnouncementCard = React2.forwardRef(
|
|
|
233
233
|
),
|
|
234
234
|
/* @__PURE__ */ jsxs("span", { className: "relative flex min-w-0 flex-1 flex-col gap-xs", children: [
|
|
235
235
|
/* @__PURE__ */ jsx2("span", { className: "truncate text-body-md font-weight-label text-ink", children: title }),
|
|
236
|
-
subtitle && /* @__PURE__ */ jsx2("span", { className: "truncate text-caption text-ink
|
|
236
|
+
subtitle && /* @__PURE__ */ jsx2("span", { className: "truncate text-caption text-ink opacity-80 dark:opacity-85", children: subtitle })
|
|
237
237
|
] }),
|
|
238
|
-
icon &&
|
|
238
|
+
icon && // `tone="default"` paints the glyph with `text-ink` and the SVG strokes with
|
|
239
|
+
// `currentColor`, so it is near-black here in light mode and near-white in
|
|
240
|
+
// dark mode. No inverse/white tone, no hard-coded stroke.
|
|
241
|
+
/* @__PURE__ */ jsx2(
|
|
239
242
|
Icon,
|
|
240
243
|
{
|
|
241
244
|
name: icon,
|
|
242
245
|
size: 26,
|
|
243
246
|
strokeWidth: 2,
|
|
247
|
+
tone: "default",
|
|
244
248
|
className: "relative shrink-0 text-ink"
|
|
245
249
|
}
|
|
246
250
|
)
|
|
@@ -8694,20 +8698,7 @@ import { jsx as jsx70, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
|
8694
8698
|
var GRID = 9;
|
|
8695
8699
|
var SWEEP_MS = 2400;
|
|
8696
8700
|
var STEP_MS = 35;
|
|
8697
|
-
var SPARKLES = [
|
|
8698
|
-
{ top: "0%", left: "14%", size: 10, delay: "0ms" },
|
|
8699
|
-
{ top: "2%", left: "46%", size: 8, delay: "150ms" },
|
|
8700
|
-
{ top: "1%", left: "78%", size: 9, delay: "75ms" },
|
|
8701
|
-
{ top: "30%", left: "0%", size: 7, delay: "300ms" },
|
|
8702
|
-
{ top: "58%", left: "97%", size: 8, delay: "125ms" },
|
|
8703
|
-
{ top: "96%", left: "20%", size: 8, delay: "225ms" },
|
|
8704
|
-
{ top: "93%", left: "62%", size: 10, delay: "375ms" }
|
|
8705
|
-
];
|
|
8706
8701
|
var KEYFRAMES = `
|
|
8707
|
-
@keyframes dsl-twinkle {
|
|
8708
|
-
0%, 100% { opacity: 0.2; transform: scale(0.85); }
|
|
8709
|
-
50% { opacity: 0.9; transform: scale(1.1); }
|
|
8710
|
-
}
|
|
8711
8702
|
@keyframes dsl-cell {
|
|
8712
8703
|
0% { background-color: var(--color-primary); border-color: transparent; border-style: solid; opacity: 1; }
|
|
8713
8704
|
8% { background-color: var(--color-primary); border-color: transparent; border-style: solid; opacity: 0.8; }
|
|
@@ -8742,45 +8733,29 @@ var DesignSystemLoader = React70.forwardRef(
|
|
|
8742
8733
|
...rest,
|
|
8743
8734
|
children: [
|
|
8744
8735
|
/* @__PURE__ */ jsx70("style", { children: KEYFRAMES }),
|
|
8745
|
-
/* @__PURE__ */
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
const col = index % GRID;
|
|
8769
|
-
const diagonal = row + (GRID - 1 - col);
|
|
8770
|
-
return /* @__PURE__ */ jsx70(
|
|
8771
|
-
"span",
|
|
8772
|
-
{
|
|
8773
|
-
className: "dsl-animate aspect-square rounded-xs border-2 border-transparent bg-primary",
|
|
8774
|
-
style: {
|
|
8775
|
-
animation: `dsl-cell ${SWEEP_MS}ms ease-in-out ${diagonal * STEP_MS}ms infinite both`
|
|
8776
|
-
}
|
|
8777
|
-
},
|
|
8778
|
-
index
|
|
8779
|
-
);
|
|
8780
|
-
})
|
|
8781
|
-
}
|
|
8782
|
-
)
|
|
8783
|
-
] }),
|
|
8736
|
+
/* @__PURE__ */ jsx70("div", { className: "relative mx-auto w-full max-w-drawer", children: /* @__PURE__ */ jsx70(
|
|
8737
|
+
"div",
|
|
8738
|
+
{
|
|
8739
|
+
className: "relative grid gap-xxs",
|
|
8740
|
+
"aria-hidden": "true",
|
|
8741
|
+
style: { gridTemplateColumns: `repeat(${GRID}, minmax(0, 1fr))` },
|
|
8742
|
+
children: Array.from({ length: GRID * GRID }, (_, index) => {
|
|
8743
|
+
const row = Math.floor(index / GRID);
|
|
8744
|
+
const col = index % GRID;
|
|
8745
|
+
const diagonal = row + (GRID - 1 - col);
|
|
8746
|
+
return /* @__PURE__ */ jsx70(
|
|
8747
|
+
"span",
|
|
8748
|
+
{
|
|
8749
|
+
className: "dsl-animate aspect-square rounded-xs border-2 border-transparent bg-primary",
|
|
8750
|
+
style: {
|
|
8751
|
+
animation: `dsl-cell ${SWEEP_MS}ms ease-in-out ${diagonal * STEP_MS}ms infinite both`
|
|
8752
|
+
}
|
|
8753
|
+
},
|
|
8754
|
+
index
|
|
8755
|
+
);
|
|
8756
|
+
})
|
|
8757
|
+
}
|
|
8758
|
+
) }),
|
|
8784
8759
|
/* @__PURE__ */ jsxs62("div", { className: "mx-auto flex w-full max-w-drawer flex-col items-center gap-xs", children: [
|
|
8785
8760
|
/* @__PURE__ */ jsx70("p", { className: "text-heading-sm text-ink", children: label }),
|
|
8786
8761
|
/* @__PURE__ */ jsx70("p", { className: "text-body-sm text-muted", children: sublabel })
|
package/dist/styles.css
CHANGED
|
@@ -326,9 +326,6 @@
|
|
|
326
326
|
.-inset-1 {
|
|
327
327
|
inset: calc(var(--spacing) * -1);
|
|
328
328
|
}
|
|
329
|
-
.-inset-md {
|
|
330
|
-
inset: calc(var(--spacing-md) * -1);
|
|
331
|
-
}
|
|
332
329
|
.inset-0 {
|
|
333
330
|
inset: 0;
|
|
334
331
|
}
|
|
@@ -1903,12 +1900,6 @@
|
|
|
1903
1900
|
.text-ink {
|
|
1904
1901
|
color: var(--color-ink);
|
|
1905
1902
|
}
|
|
1906
|
-
.text-ink\/80 {
|
|
1907
|
-
color: color-mix(in srgb, #1B1C22 80%, transparent);
|
|
1908
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
1909
|
-
color: color-mix(in oklab, var(--color-ink) 80%, transparent);
|
|
1910
|
-
}
|
|
1911
|
-
}
|
|
1912
1903
|
.text-inverse-ink {
|
|
1913
1904
|
color: var(--color-inverse-ink);
|
|
1914
1905
|
}
|
|
@@ -1970,15 +1961,15 @@
|
|
|
1970
1961
|
.opacity-0 {
|
|
1971
1962
|
opacity: 0%;
|
|
1972
1963
|
}
|
|
1973
|
-
.opacity-30 {
|
|
1974
|
-
opacity: 30%;
|
|
1975
|
-
}
|
|
1976
1964
|
.opacity-50 {
|
|
1977
1965
|
opacity: 50%;
|
|
1978
1966
|
}
|
|
1979
1967
|
.opacity-70 {
|
|
1980
1968
|
opacity: 70%;
|
|
1981
1969
|
}
|
|
1970
|
+
.opacity-80 {
|
|
1971
|
+
opacity: 80%;
|
|
1972
|
+
}
|
|
1982
1973
|
.opacity-100 {
|
|
1983
1974
|
opacity: 100%;
|
|
1984
1975
|
}
|
|
@@ -3056,12 +3047,9 @@
|
|
|
3056
3047
|
background-color: var(--color-ink);
|
|
3057
3048
|
}
|
|
3058
3049
|
}
|
|
3059
|
-
.dark\:
|
|
3050
|
+
.dark\:opacity-85 {
|
|
3060
3051
|
&:where([data-theme="dark"], [data-theme="dark"] *) {
|
|
3061
|
-
|
|
3062
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
3063
|
-
color: color-mix(in oklab, var(--color-ink) 85%, transparent);
|
|
3064
|
-
}
|
|
3052
|
+
opacity: 85%;
|
|
3065
3053
|
}
|
|
3066
3054
|
}
|
|
3067
3055
|
|
package/package.json
CHANGED
|
@@ -14,8 +14,8 @@ export interface AnnouncementCardProps {
|
|
|
14
14
|
*/
|
|
15
15
|
variant?: "default" | "promo";
|
|
16
16
|
/**
|
|
17
|
-
* Large glyph drawn over the illustration. Promo only.
|
|
18
|
-
*
|
|
17
|
+
* Large glyph drawn over the illustration. Promo only. Tinted with `currentColor`
|
|
18
|
+
* from the card's ink: near-black on light, near-white on dark.
|
|
19
19
|
*/
|
|
20
20
|
icon?: IconName;
|
|
21
21
|
/** Destination. Used as the fallback when `onClick` is not supplied. */
|
|
@@ -138,16 +138,25 @@ export const AnnouncementCard = React.forwardRef<HTMLAnchorElement, Announcement
|
|
|
138
138
|
{/* Near-black on the light card, near-white on the dark one — `ink` flips
|
|
139
139
|
with the theme, so no `dark:` override is needed for the title. */}
|
|
140
140
|
<span className="truncate text-body-md font-weight-label text-ink">{title}</span>
|
|
141
|
+
{/* Same `ink` as the title, knocked back with element opacity rather than a
|
|
142
|
+
muted color: 80% of ink still reads clearly dark in light mode, 85% reads
|
|
143
|
+
as soft white in dark mode. Never `text-muted` — that washes out here. */}
|
|
141
144
|
{subtitle && (
|
|
142
|
-
<span className="truncate text-caption text-ink
|
|
145
|
+
<span className="truncate text-caption text-ink opacity-80 dark:opacity-85">
|
|
146
|
+
{subtitle}
|
|
147
|
+
</span>
|
|
143
148
|
)}
|
|
144
149
|
</span>
|
|
145
150
|
|
|
146
151
|
{icon && (
|
|
152
|
+
// `tone="default"` paints the glyph with `text-ink` and the SVG strokes with
|
|
153
|
+
// `currentColor`, so it is near-black here in light mode and near-white in
|
|
154
|
+
// dark mode. No inverse/white tone, no hard-coded stroke.
|
|
147
155
|
<Icon
|
|
148
156
|
name={icon}
|
|
149
157
|
size={26}
|
|
150
158
|
strokeWidth={2}
|
|
159
|
+
tone="default"
|
|
151
160
|
className="relative shrink-0 text-ink"
|
|
152
161
|
/>
|
|
153
162
|
)}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Icon } from "../../atoms/Icon";
|
|
3
2
|
|
|
4
3
|
export interface DesignSystemLoaderProps
|
|
5
4
|
extends React.ComponentPropsWithoutRef<"div"> {
|
|
@@ -17,33 +16,7 @@ const SWEEP_MS = 2400;
|
|
|
17
16
|
/** Delay added per step of diagonal distance from the top-right corner. */
|
|
18
17
|
const STEP_MS = 35;
|
|
19
18
|
|
|
20
|
-
interface Sparkle {
|
|
21
|
-
top: string;
|
|
22
|
-
left: string;
|
|
23
|
-
size: number;
|
|
24
|
-
delay: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Positions are percentages of the sparkle layer, which is inset past the grid
|
|
29
|
-
* on every side — so each glyph lands in the ring around the cells, never
|
|
30
|
-
* hidden beneath them.
|
|
31
|
-
*/
|
|
32
|
-
const SPARKLES: readonly Sparkle[] = [
|
|
33
|
-
{ top: "0%", left: "14%", size: 10, delay: "0ms" },
|
|
34
|
-
{ top: "2%", left: "46%", size: 8, delay: "150ms" },
|
|
35
|
-
{ top: "1%", left: "78%", size: 9, delay: "75ms" },
|
|
36
|
-
{ top: "30%", left: "0%", size: 7, delay: "300ms" },
|
|
37
|
-
{ top: "58%", left: "97%", size: 8, delay: "125ms" },
|
|
38
|
-
{ top: "96%", left: "20%", size: 8, delay: "225ms" },
|
|
39
|
-
{ top: "93%", left: "62%", size: 10, delay: "375ms" },
|
|
40
|
-
];
|
|
41
|
-
|
|
42
19
|
const KEYFRAMES = `
|
|
43
|
-
@keyframes dsl-twinkle {
|
|
44
|
-
0%, 100% { opacity: 0.2; transform: scale(0.85); }
|
|
45
|
-
50% { opacity: 0.9; transform: scale(1.1); }
|
|
46
|
-
}
|
|
47
20
|
@keyframes dsl-cell {
|
|
48
21
|
0% { background-color: var(--color-primary); border-color: transparent; border-style: solid; opacity: 1; }
|
|
49
22
|
8% { background-color: var(--color-primary); border-color: transparent; border-style: solid; opacity: 0.8; }
|
|
@@ -88,22 +61,6 @@ export const DesignSystemLoader = React.forwardRef<
|
|
|
88
61
|
<style>{KEYFRAMES}</style>
|
|
89
62
|
|
|
90
63
|
<div className="relative mx-auto w-full max-w-drawer">
|
|
91
|
-
<div className="pointer-events-none absolute -inset-md" aria-hidden="true">
|
|
92
|
-
{SPARKLES.map((sparkle) => (
|
|
93
|
-
<Icon
|
|
94
|
-
key={`${sparkle.top}-${sparkle.left}`}
|
|
95
|
-
name="sparkles"
|
|
96
|
-
size={sparkle.size}
|
|
97
|
-
className="dsl-animate absolute text-primary opacity-30"
|
|
98
|
-
style={{
|
|
99
|
-
top: sparkle.top,
|
|
100
|
-
left: sparkle.left,
|
|
101
|
-
animation: `dsl-twinkle 1.6s ease-in-out ${sparkle.delay} infinite`,
|
|
102
|
-
}}
|
|
103
|
-
/>
|
|
104
|
-
))}
|
|
105
|
-
</div>
|
|
106
|
-
|
|
107
64
|
<div
|
|
108
65
|
className="relative grid gap-xxs"
|
|
109
66
|
aria-hidden="true"
|