lynx-console 0.1.0 → 0.2.0
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/index.cjs +205 -953
- package/dist/index.css +1248 -461
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +79 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +79 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +205 -953
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -4
- package/src/components/BottomSheet.css +91 -0
- package/src/components/BottomSheet.tsx +10 -10
- package/src/components/ConsolePanel.css +402 -0
- package/src/components/ConsolePanel.tsx +62 -28
- package/src/components/FadeList.tsx +31 -0
- package/{dist/assets/src/components/FloatingButton.css.ts.vanilla-BaG0OI6p.css → src/components/FloatingButton.css} +22 -16
- package/src/components/FloatingButton.tsx +22 -19
- package/src/components/LogPanel.tsx +61 -79
- package/src/components/NetworkDetailSection.tsx +13 -13
- package/src/components/NetworkPanel.css +280 -0
- package/src/components/NetworkPanel.tsx +32 -52
- package/src/components/PerformancePanel.css +249 -0
- package/src/components/PerformancePanel.tsx +42 -42
- package/src/components/Tabs.css +78 -0
- package/src/components/Tabs.tsx +13 -11
- package/src/globals.d.ts +0 -5
- package/src/hooks/useLongPressDrag.ts +3 -3
- package/src/index.tsx +9 -6
- package/src/styles/global.css +8 -0
- package/src/styles/vars/color.ts +26 -213
- package/src/styles/vars/dimension.ts +5 -74
- package/src/styles/vars/index.css +65 -457
- package/src/styles/vars/index.ts +5 -9
- package/src/styles/vars/radius.ts +1 -11
- package/src/types.ts +8 -0
- package/dist/assets/src/components/BottomSheet.css.ts.vanilla-CulwSDhG.css +0 -83
- package/dist/assets/src/components/ConsolePanel.css.ts.vanilla-DFvHPEyg.css +0 -340
- package/dist/assets/src/components/NetworkPanel.css.ts.vanilla-DFMduT0T.css +0 -247
- package/dist/assets/src/components/PerformancePanel.css.ts.vanilla-D35LuXlW.css +0 -216
- package/dist/assets/src/components/Tabs.css.ts.vanilla-DD7L2oXt.css +0 -50
- package/src/components/BottomSheet.css.ts +0 -93
- package/src/components/ConsolePanel.css.ts +0 -354
- package/src/components/FloatingButton.css.ts +0 -73
- package/src/components/NetworkPanel.css.ts +0 -280
- package/src/components/PerformancePanel.css.ts +0 -224
- package/src/components/Tabs.css.ts +0 -66
- package/src/styles/global.css.ts +0 -10
- package/src/styles/typography.ts +0 -25
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
.tabs-root {
|
|
2
|
+
flex: 1;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.tabs-header {
|
|
8
|
+
display: flex;
|
|
9
|
+
box-shadow: inset 0 -1px 0 0 var(--lynx-console-color-stroke-neutral-subtle);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.tabs-triggerButton {
|
|
13
|
+
flex: 1;
|
|
14
|
+
color: var(--lynx-console-color-fg-neutral-subtle);
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: center;
|
|
18
|
+
padding: 12px 0 10px 0;
|
|
19
|
+
position: relative;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.tabs-triggerButtonText {
|
|
23
|
+
font-size: 1rem;
|
|
24
|
+
line-height: 1.375rem;
|
|
25
|
+
font-weight: var(--lynx-console-font-weight-bold);
|
|
26
|
+
color: var(--lynx-console-color-fg-neutral-subtle);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.tabs-triggerButtonText--active {
|
|
30
|
+
color: var(--lynx-console-color-fg-neutral);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.tabs-triggerButtonText--t4 {
|
|
34
|
+
font-size: 0.875rem;
|
|
35
|
+
line-height: 1.1875rem;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.tabs-triggerButtonText--t3 {
|
|
39
|
+
font-size: 0.8125rem;
|
|
40
|
+
line-height: 1.125rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.tabs-triggerButtonText--t2 {
|
|
44
|
+
font-size: 0.75rem;
|
|
45
|
+
line-height: 1rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.tabs-triggerButtonText--t1 {
|
|
49
|
+
font-size: 0.6875rem;
|
|
50
|
+
line-height: 0.9375rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.tabs-triggerIndicator {
|
|
54
|
+
position: absolute;
|
|
55
|
+
bottom: 0;
|
|
56
|
+
left: 0;
|
|
57
|
+
padding: 0 16px;
|
|
58
|
+
width: 100%;
|
|
59
|
+
transition: 200ms;
|
|
60
|
+
transition-timing-function: cubic-bezier(.35, 0, .35, 1);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.tabs-triggerIndicatorLine {
|
|
64
|
+
background-color: var(--lynx-console-color-fg-neutral);
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 2px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.tabs-contents {
|
|
70
|
+
flex: 1;
|
|
71
|
+
width: 100%;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.tabs-content {
|
|
75
|
+
width: 100%;
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
}
|
package/src/components/Tabs.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode, useRef, useState } from "@lynx-js/react";
|
|
2
2
|
import type { ListSnapEvent, NodesRef } from "@lynx-js/types";
|
|
3
|
-
import
|
|
3
|
+
import "./Tabs.css";
|
|
4
4
|
|
|
5
5
|
type TabsProps = {
|
|
6
6
|
items: Array<{
|
|
@@ -14,14 +14,18 @@ type TabsProps = {
|
|
|
14
14
|
export default function Tabs(props: TabsProps) {
|
|
15
15
|
const tabContentsRef = useRef<NodesRef>(null);
|
|
16
16
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
17
|
+
const tabSize =
|
|
18
|
+
props.items.length < 4
|
|
19
|
+
? undefined
|
|
20
|
+
: (`t${Math.max(1, 5 - (props.items.length - 3))}`);
|
|
17
21
|
|
|
18
22
|
return (
|
|
19
|
-
<view className={
|
|
20
|
-
<view className={
|
|
23
|
+
<view className={"tabs-root"}>
|
|
24
|
+
<view className={"tabs-header"}>
|
|
21
25
|
{props.items.map((item, i) => (
|
|
22
26
|
<view
|
|
23
27
|
key={item.key}
|
|
24
|
-
className={
|
|
28
|
+
className={"tabs-triggerButton"}
|
|
25
29
|
bindtap={() => {
|
|
26
30
|
setActiveIndex(i);
|
|
27
31
|
props.onTabChange?.();
|
|
@@ -38,18 +42,16 @@ export default function Tabs(props: TabsProps) {
|
|
|
38
42
|
}}
|
|
39
43
|
>
|
|
40
44
|
<text
|
|
41
|
-
className={
|
|
42
|
-
active: i === activeIndex,
|
|
43
|
-
})}
|
|
45
|
+
className={`tabs-triggerButtonText${i === activeIndex ? " tabs-triggerButtonText--active" : ""}${tabSize ? ` tabs-triggerButtonText--${tabSize}` : ""}`}
|
|
44
46
|
>
|
|
45
47
|
{item.label}
|
|
46
48
|
</text>
|
|
47
49
|
{i === 0 && (
|
|
48
50
|
<view
|
|
49
|
-
className={
|
|
51
|
+
className={"tabs-triggerIndicator"}
|
|
50
52
|
style={{ transform: `translateX(${activeIndex * 100}%)` }}
|
|
51
53
|
>
|
|
52
|
-
<view className={
|
|
54
|
+
<view className={"tabs-triggerIndicatorLine"} />
|
|
53
55
|
</view>
|
|
54
56
|
)}
|
|
55
57
|
</view>
|
|
@@ -58,7 +60,7 @@ export default function Tabs(props: TabsProps) {
|
|
|
58
60
|
|
|
59
61
|
<list
|
|
60
62
|
ref={tabContentsRef}
|
|
61
|
-
className={
|
|
63
|
+
className={"tabs-contents"}
|
|
62
64
|
scroll-orientation="horizontal"
|
|
63
65
|
item-snap={{ factor: 0, offset: 0 }}
|
|
64
66
|
bindscroll={() => props.onTabChange?.()}
|
|
@@ -73,7 +75,7 @@ export default function Tabs(props: TabsProps) {
|
|
|
73
75
|
key={item.key}
|
|
74
76
|
item-key={item.key}
|
|
75
77
|
recyclable={false}
|
|
76
|
-
className={
|
|
78
|
+
className={"tabs-content"}
|
|
77
79
|
>
|
|
78
80
|
{item.renderContent()}
|
|
79
81
|
</list-item>
|
package/src/globals.d.ts
CHANGED
|
@@ -87,9 +87,9 @@ export function useLongPressDrag(onTap: () => void) {
|
|
|
87
87
|
bottom: isDragging ? tempBottom : bottom,
|
|
88
88
|
clearTimer,
|
|
89
89
|
handlers: {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
catchtouchstart: handleTouchStart,
|
|
91
|
+
catchtouchmove: handleTouchMove,
|
|
92
|
+
catchtouchend: handleTouchEnd,
|
|
93
93
|
},
|
|
94
94
|
};
|
|
95
95
|
}
|
package/src/index.tsx
CHANGED
|
@@ -8,9 +8,10 @@ import {
|
|
|
8
8
|
} from "@lynx-js/react";
|
|
9
9
|
import BottomSheet from "./components/BottomSheet.jsx";
|
|
10
10
|
import { ConsolePanel } from "./components/ConsolePanel.jsx";
|
|
11
|
-
import
|
|
11
|
+
import "./components/FloatingButton.css";
|
|
12
12
|
import { FloatingButton } from "./components/FloatingButton.jsx";
|
|
13
13
|
import { usePerformance } from "./hooks/usePerformance";
|
|
14
|
+
import type { CustomTab } from "./types";
|
|
14
15
|
|
|
15
16
|
export interface LynxConsoleHandle {
|
|
16
17
|
open: () => void;
|
|
@@ -21,6 +22,7 @@ export interface LynxConsoleHandle {
|
|
|
21
22
|
export interface LynxConsoleProps {
|
|
22
23
|
theme?: "light" | "dark";
|
|
23
24
|
safeAreaInsetBottom?: string;
|
|
25
|
+
customTabs?: CustomTab[];
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
interface FcpMetric {
|
|
@@ -36,7 +38,7 @@ interface MetricFcpEntry {
|
|
|
36
38
|
|
|
37
39
|
const LynxConsole = forwardRef<LynxConsoleHandle, LynxConsoleProps>(
|
|
38
40
|
(
|
|
39
|
-
{ theme = "light", safeAreaInsetBottom = "50px" },
|
|
41
|
+
{ theme = "light", safeAreaInsetBottom = "50px", customTabs },
|
|
40
42
|
ref: ForwardedRef<LynxConsoleHandle>,
|
|
41
43
|
) => {
|
|
42
44
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -81,13 +83,13 @@ const LynxConsole = forwardRef<LynxConsoleHandle, LynxConsoleProps>(
|
|
|
81
83
|
setShouldClose(false);
|
|
82
84
|
};
|
|
83
85
|
|
|
84
|
-
const themeClass = `data-
|
|
86
|
+
const themeClass = `data-lynx-console-color-mode__${theme}-only`;
|
|
85
87
|
|
|
86
88
|
return (
|
|
87
89
|
<view className={themeClass}>
|
|
88
90
|
<FloatingButton bindtap={handleOpenBottomSheet}>
|
|
89
|
-
<text className=
|
|
90
|
-
<text className=
|
|
91
|
+
<text className="fb-title">LynxConsole</text>
|
|
92
|
+
<text className="fb-subtitle">
|
|
91
93
|
{`${latestFcp?.name ?? "FCP"}: ${latestFcp?.duration ? latestFcp.duration.toFixed(2) : "--"}ms`}
|
|
92
94
|
</text>
|
|
93
95
|
</FloatingButton>
|
|
@@ -99,7 +101,7 @@ const LynxConsole = forwardRef<LynxConsoleHandle, LynxConsoleProps>(
|
|
|
99
101
|
title="Lynx Console"
|
|
100
102
|
safeAreaInsetBottom={safeAreaInsetBottom}
|
|
101
103
|
>
|
|
102
|
-
<ConsolePanel />
|
|
104
|
+
<ConsolePanel customTabs={customTabs} />
|
|
103
105
|
</BottomSheet>
|
|
104
106
|
)}
|
|
105
107
|
</view>
|
|
@@ -107,4 +109,5 @@ const LynxConsole = forwardRef<LynxConsoleHandle, LynxConsoleProps>(
|
|
|
107
109
|
},
|
|
108
110
|
);
|
|
109
111
|
|
|
112
|
+
export type { CustomTab } from "./types";
|
|
110
113
|
export default LynxConsole;
|
package/src/styles/vars/color.ts
CHANGED
|
@@ -1,228 +1,41 @@
|
|
|
1
1
|
// Color Palette
|
|
2
2
|
export const palette = {
|
|
3
|
-
blue100: "var(--
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
carrot500: "var(--seed-color-palette-carrot-500)",
|
|
19
|
-
carrot600: "var(--seed-color-palette-carrot-600)",
|
|
20
|
-
carrot700: "var(--seed-color-palette-carrot-700)",
|
|
21
|
-
carrot800: "var(--seed-color-palette-carrot-800)",
|
|
22
|
-
carrot900: "var(--seed-color-palette-carrot-900)",
|
|
23
|
-
carrot1000: "var(--seed-color-palette-carrot-1000)",
|
|
24
|
-
|
|
25
|
-
gray00: "var(--seed-color-palette-gray-00)",
|
|
26
|
-
gray100: "var(--seed-color-palette-gray-100)",
|
|
27
|
-
gray200: "var(--seed-color-palette-gray-200)",
|
|
28
|
-
gray300: "var(--seed-color-palette-gray-300)",
|
|
29
|
-
gray400: "var(--seed-color-palette-gray-400)",
|
|
30
|
-
gray500: "var(--seed-color-palette-gray-500)",
|
|
31
|
-
gray600: "var(--seed-color-palette-gray-600)",
|
|
32
|
-
gray700: "var(--seed-color-palette-gray-700)",
|
|
33
|
-
gray800: "var(--seed-color-palette-gray-800)",
|
|
34
|
-
gray900: "var(--seed-color-palette-gray-900)",
|
|
35
|
-
gray1000: "var(--seed-color-palette-gray-1000)",
|
|
36
|
-
|
|
37
|
-
green100: "var(--seed-color-palette-green-100)",
|
|
38
|
-
green200: "var(--seed-color-palette-green-200)",
|
|
39
|
-
green300: "var(--seed-color-palette-green-300)",
|
|
40
|
-
green400: "var(--seed-color-palette-green-400)",
|
|
41
|
-
green500: "var(--seed-color-palette-green-500)",
|
|
42
|
-
green600: "var(--seed-color-palette-green-600)",
|
|
43
|
-
green700: "var(--seed-color-palette-green-700)",
|
|
44
|
-
green800: "var(--seed-color-palette-green-800)",
|
|
45
|
-
green900: "var(--seed-color-palette-green-900)",
|
|
46
|
-
green1000: "var(--seed-color-palette-green-1000)",
|
|
47
|
-
|
|
48
|
-
purple100: "var(--seed-color-palette-purple-100)",
|
|
49
|
-
purple200: "var(--seed-color-palette-purple-200)",
|
|
50
|
-
purple300: "var(--seed-color-palette-purple-300)",
|
|
51
|
-
purple400: "var(--seed-color-palette-purple-400)",
|
|
52
|
-
purple500: "var(--seed-color-palette-purple-500)",
|
|
53
|
-
purple600: "var(--seed-color-palette-purple-600)",
|
|
54
|
-
purple700: "var(--seed-color-palette-purple-700)",
|
|
55
|
-
purple800: "var(--seed-color-palette-purple-800)",
|
|
56
|
-
purple900: "var(--seed-color-palette-purple-900)",
|
|
57
|
-
purple1000: "var(--seed-color-palette-purple-1000)",
|
|
58
|
-
|
|
59
|
-
red100: "var(--seed-color-palette-red-100)",
|
|
60
|
-
red200: "var(--seed-color-palette-red-200)",
|
|
61
|
-
red300: "var(--seed-color-palette-red-300)",
|
|
62
|
-
red400: "var(--seed-color-palette-red-400)",
|
|
63
|
-
red500: "var(--seed-color-palette-red-500)",
|
|
64
|
-
red600: "var(--seed-color-palette-red-600)",
|
|
65
|
-
red700: "var(--seed-color-palette-red-700)",
|
|
66
|
-
red800: "var(--seed-color-palette-red-800)",
|
|
67
|
-
red900: "var(--seed-color-palette-red-900)",
|
|
68
|
-
red1000: "var(--seed-color-palette-red-1000)",
|
|
69
|
-
|
|
70
|
-
staticBlack: "var(--seed-color-palette-static-black)",
|
|
71
|
-
staticWhite: "var(--seed-color-palette-static-white)",
|
|
72
|
-
staticBlackAlpha100: "var(--seed-color-palette-static-black-alpha-100)",
|
|
73
|
-
staticBlackAlpha200: "var(--seed-color-palette-static-black-alpha-200)",
|
|
74
|
-
staticBlackAlpha300: "var(--seed-color-palette-static-black-alpha-300)",
|
|
75
|
-
staticBlackAlpha400: "var(--seed-color-palette-static-black-alpha-400)",
|
|
76
|
-
staticBlackAlpha500: "var(--seed-color-palette-static-black-alpha-500)",
|
|
77
|
-
staticBlackAlpha600: "var(--seed-color-palette-static-black-alpha-600)",
|
|
78
|
-
staticBlackAlpha700: "var(--seed-color-palette-static-black-alpha-700)",
|
|
79
|
-
staticBlackAlpha800: "var(--seed-color-palette-static-black-alpha-800)",
|
|
80
|
-
staticBlackAlpha900: "var(--seed-color-palette-static-black-alpha-900)",
|
|
81
|
-
staticBlackAlpha1000: "var(--seed-color-palette-static-black-alpha-1000)",
|
|
82
|
-
staticWhiteAlpha50: "var(--seed-color-palette-static-white-alpha-50)",
|
|
83
|
-
staticWhiteAlpha100: "var(--seed-color-palette-static-white-alpha-100)",
|
|
84
|
-
staticWhiteAlpha200: "var(--seed-color-palette-static-white-alpha-200)",
|
|
85
|
-
staticWhiteAlpha300: "var(--seed-color-palette-static-white-alpha-300)",
|
|
86
|
-
staticWhiteAlpha400: "var(--seed-color-palette-static-white-alpha-400)",
|
|
87
|
-
staticWhiteAlpha500: "var(--seed-color-palette-static-white-alpha-500)",
|
|
88
|
-
staticWhiteAlpha600: "var(--seed-color-palette-static-white-alpha-600)",
|
|
89
|
-
staticWhiteAlpha700: "var(--seed-color-palette-static-white-alpha-700)",
|
|
90
|
-
staticWhiteAlpha800: "var(--seed-color-palette-static-white-alpha-800)",
|
|
91
|
-
staticWhiteAlpha900: "var(--seed-color-palette-static-white-alpha-900)",
|
|
92
|
-
staticWhiteAlpha1000: "var(--seed-color-palette-static-white-alpha-1000)",
|
|
93
|
-
|
|
94
|
-
yellow100: "var(--seed-color-palette-yellow-100)",
|
|
95
|
-
yellow200: "var(--seed-color-palette-yellow-200)",
|
|
96
|
-
yellow300: "var(--seed-color-palette-yellow-300)",
|
|
97
|
-
yellow400: "var(--seed-color-palette-yellow-400)",
|
|
98
|
-
yellow500: "var(--seed-color-palette-yellow-500)",
|
|
99
|
-
yellow600: "var(--seed-color-palette-yellow-600)",
|
|
100
|
-
yellow700: "var(--seed-color-palette-yellow-700)",
|
|
101
|
-
yellow800: "var(--seed-color-palette-yellow-800)",
|
|
102
|
-
yellow900: "var(--seed-color-palette-yellow-900)",
|
|
103
|
-
yellow1000: "var(--seed-color-palette-yellow-1000)",
|
|
3
|
+
blue100: "var(--lynx-console-color-palette-blue-100)",
|
|
4
|
+
blue600: "var(--lynx-console-color-palette-blue-600)",
|
|
5
|
+
gray100: "var(--lynx-console-color-palette-gray-100)",
|
|
6
|
+
gray400: "var(--lynx-console-color-palette-gray-400)",
|
|
7
|
+
green100: "var(--lynx-console-color-palette-green-100)",
|
|
8
|
+
green600: "var(--lynx-console-color-palette-green-600)",
|
|
9
|
+
purple100: "var(--lynx-console-color-palette-purple-100)",
|
|
10
|
+
purple600: "var(--lynx-console-color-palette-purple-600)",
|
|
11
|
+
red100: "var(--lynx-console-color-palette-red-100)",
|
|
12
|
+
red600: "var(--lynx-console-color-palette-red-600)",
|
|
13
|
+
red900: "var(--lynx-console-color-palette-red-900)",
|
|
14
|
+
staticWhite: "var(--lynx-console-color-palette-static-white)",
|
|
15
|
+
yellow100: "var(--lynx-console-color-palette-yellow-100)",
|
|
16
|
+
yellow600: "var(--lynx-console-color-palette-yellow-600)",
|
|
17
|
+
yellow900: "var(--lynx-console-color-palette-yellow-900)",
|
|
104
18
|
};
|
|
105
19
|
|
|
106
20
|
// Foreground Colors
|
|
107
21
|
export const fg = {
|
|
108
|
-
neutral: "var(--
|
|
109
|
-
placeholder: "var(--
|
|
110
|
-
disabled: "var(--
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
critical: "var(--seed-color-fg-critical)",
|
|
114
|
-
positive: "var(--seed-color-fg-positive)",
|
|
115
|
-
warning: "var(--seed-color-fg-warning)",
|
|
116
|
-
brandContrast: "var(--seed-color-fg-brand-contrast)",
|
|
117
|
-
criticalContrast: "var(--seed-color-fg-critical-contrast)",
|
|
118
|
-
informativeContrast: "var(--seed-color-fg-informative-contrast)",
|
|
119
|
-
neutralMuted: "var(--seed-color-fg-neutral-muted)",
|
|
120
|
-
neutralSubtle: "var(--seed-color-fg-neutral-subtle)",
|
|
121
|
-
neutralInverted: "var(--seed-color-fg-neutral-inverted)",
|
|
122
|
-
positiveContrast: "var(--seed-color-fg-positive-contrast)",
|
|
123
|
-
warningContrast: "var(--seed-color-fg-warning-contrast)",
|
|
22
|
+
neutral: "var(--lynx-console-color-fg-neutral)",
|
|
23
|
+
placeholder: "var(--lynx-console-color-fg-placeholder)",
|
|
24
|
+
disabled: "var(--lynx-console-color-fg-disabled)",
|
|
25
|
+
neutralMuted: "var(--lynx-console-color-fg-neutral-muted)",
|
|
26
|
+
neutralSubtle: "var(--lynx-console-color-fg-neutral-subtle)",
|
|
124
27
|
};
|
|
125
28
|
|
|
126
29
|
// Background Colors
|
|
127
30
|
export const bg = {
|
|
128
|
-
overlay: "var(--
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
brandSolidPressed: "var(--seed-color-bg-brand-solid-pressed)",
|
|
133
|
-
brandWeakPressed: "var(--seed-color-bg-brand-weak-pressed)",
|
|
134
|
-
criticalWeak: "var(--seed-color-bg-critical-weak)",
|
|
135
|
-
criticalSolid: "var(--seed-color-bg-critical-solid)",
|
|
136
|
-
criticalSolidPressed: "var(--seed-color-bg-critical-solid-pressed)",
|
|
137
|
-
criticalWeakPressed: "var(--seed-color-bg-critical-weak-pressed)",
|
|
138
|
-
informativeWeak: "var(--seed-color-bg-informative-weak)",
|
|
139
|
-
informativeSolid: "var(--seed-color-bg-informative-solid)",
|
|
140
|
-
informativeSolidPressed: "var(--seed-color-bg-informative-solid-pressed)",
|
|
141
|
-
informativeWeakPressed: "var(--seed-color-bg-informative-weak-pressed)",
|
|
142
|
-
layerBasement: "var(--seed-color-bg-layer-basement)",
|
|
143
|
-
layerDefault: "var(--seed-color-bg-layer-default)",
|
|
144
|
-
layerFill: "var(--seed-color-bg-layer-fill)",
|
|
145
|
-
layerFloating: "var(--seed-color-bg-layer-floating)",
|
|
146
|
-
layerDefaultPressed: "var(--seed-color-bg-layer-default-pressed)",
|
|
147
|
-
layerFloatingPressed: "var(--seed-color-bg-layer-floating-pressed)",
|
|
148
|
-
magicWeak: "var(--seed-color-bg-magic-weak)",
|
|
149
|
-
neutralWeak: "var(--seed-color-bg-neutral-weak)",
|
|
150
|
-
neutralInverted: "var(--seed-color-bg-neutral-inverted)",
|
|
151
|
-
neutralSolid: "var(--seed-color-bg-neutral-solid)",
|
|
152
|
-
neutralInvertedPressed: "var(--seed-color-bg-neutral-inverted-pressed)",
|
|
153
|
-
neutralSolidMuted: "var(--seed-color-bg-neutral-solid-muted)",
|
|
154
|
-
neutralSolidMutedPressed: "var(--seed-color-bg-neutral-solid-muted-pressed)",
|
|
155
|
-
neutralWeakPressed: "var(--seed-color-bg-neutral-weak-pressed)",
|
|
156
|
-
overlayMuted: "var(--seed-color-bg-overlay-muted)",
|
|
157
|
-
positiveWeak: "var(--seed-color-bg-positive-weak)",
|
|
158
|
-
positiveSolid: "var(--seed-color-bg-positive-solid)",
|
|
159
|
-
positiveSolidPressed: "var(--seed-color-bg-positive-solid-pressed)",
|
|
160
|
-
positiveWeakPressed: "var(--seed-color-bg-positive-weak-pressed)",
|
|
161
|
-
warningWeak: "var(--seed-color-bg-warning-weak)",
|
|
162
|
-
warningSolid: "var(--seed-color-bg-warning-solid)",
|
|
163
|
-
warningSolidPressed: "var(--seed-color-bg-warning-solid-pressed)",
|
|
164
|
-
warningWeakPressed: "var(--seed-color-bg-warning-weak-pressed)",
|
|
31
|
+
overlay: "var(--lynx-console-color-bg-overlay)",
|
|
32
|
+
layerDefault: "var(--lynx-console-color-bg-layer-default)",
|
|
33
|
+
layerFloating: "var(--lynx-console-color-bg-layer-floating)",
|
|
34
|
+
neutralWeak: "var(--lynx-console-color-bg-neutral-weak)",
|
|
165
35
|
};
|
|
166
36
|
|
|
167
37
|
// Stroke Colors
|
|
168
38
|
export const stroke = {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
criticalWeak: "var(--seed-color-stroke-critical-weak)",
|
|
172
|
-
criticalSolid: "var(--seed-color-stroke-critical-solid)",
|
|
173
|
-
informativeWeak: "var(--seed-color-stroke-informative-weak)",
|
|
174
|
-
informativeSolid: "var(--seed-color-stroke-informative-solid)",
|
|
175
|
-
neutralContrast: "var(--seed-color-stroke-neutral-contrast)",
|
|
176
|
-
neutralSolid: "var(--seed-color-stroke-neutral-solid)",
|
|
177
|
-
neutralWeak: "var(--seed-color-stroke-neutral-weak)",
|
|
178
|
-
neutralMuted: "var(--seed-color-stroke-neutral-muted)",
|
|
179
|
-
neutralSubtle: "var(--seed-color-stroke-neutral-subtle)",
|
|
180
|
-
positiveWeak: "var(--seed-color-stroke-positive-weak)",
|
|
181
|
-
positiveSolid: "var(--seed-color-stroke-positive-solid)",
|
|
182
|
-
warningWeak: "var(--seed-color-stroke-warning-weak)",
|
|
183
|
-
warningSolid: "var(--seed-color-stroke-warning-solid)",
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
// Manner Temp Colors
|
|
187
|
-
export const mannerTemp = {
|
|
188
|
-
l1: {
|
|
189
|
-
text: "var(--seed-color-manner-temp-l1-text)",
|
|
190
|
-
bg: "var(--seed-color-manner-temp-l1-bg)",
|
|
191
|
-
},
|
|
192
|
-
l2: {
|
|
193
|
-
text: "var(--seed-color-manner-temp-l2-text)",
|
|
194
|
-
bg: "var(--seed-color-manner-temp-l2-bg)",
|
|
195
|
-
},
|
|
196
|
-
l3: {
|
|
197
|
-
text: "var(--seed-color-manner-temp-l3-text)",
|
|
198
|
-
bg: "var(--seed-color-manner-temp-l3-bg)",
|
|
199
|
-
},
|
|
200
|
-
l4: {
|
|
201
|
-
text: "var(--seed-color-manner-temp-l4-text)",
|
|
202
|
-
bg: "var(--seed-color-manner-temp-l4-bg)",
|
|
203
|
-
},
|
|
204
|
-
l5: {
|
|
205
|
-
text: "var(--seed-color-manner-temp-l5-text)",
|
|
206
|
-
bg: "var(--seed-color-manner-temp-l5-bg)",
|
|
207
|
-
},
|
|
208
|
-
l6: {
|
|
209
|
-
text: "var(--seed-color-manner-temp-l6-text)",
|
|
210
|
-
bg: "var(--seed-color-manner-temp-l6-bg)",
|
|
211
|
-
},
|
|
212
|
-
l7: {
|
|
213
|
-
text: "var(--seed-color-manner-temp-l7-text)",
|
|
214
|
-
bg: "var(--seed-color-manner-temp-l7-bg)",
|
|
215
|
-
},
|
|
216
|
-
l8: {
|
|
217
|
-
text: "var(--seed-color-manner-temp-l8-text)",
|
|
218
|
-
bg: "var(--seed-color-manner-temp-l8-bg)",
|
|
219
|
-
},
|
|
220
|
-
l9: {
|
|
221
|
-
text: "var(--seed-color-manner-temp-l9-text)",
|
|
222
|
-
bg: "var(--seed-color-manner-temp-l9-bg)",
|
|
223
|
-
},
|
|
224
|
-
l10: {
|
|
225
|
-
text: "var(--seed-color-manner-temp-l10-text)",
|
|
226
|
-
bg: "var(--seed-color-manner-temp-l10-bg)",
|
|
227
|
-
},
|
|
39
|
+
neutralSubtle: "var(--lynx-console-color-stroke-neutral-subtle)",
|
|
40
|
+
neutralWeak: "var(--lynx-console-color-stroke-neutral-weak)",
|
|
228
41
|
};
|
|
@@ -1,79 +1,10 @@
|
|
|
1
1
|
// Dimensions
|
|
2
|
-
export const
|
|
3
|
-
export const
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const x2_5 = "var(--seed-dimension-x2_5)";
|
|
7
|
-
export const x3 = "var(--seed-dimension-x3)";
|
|
8
|
-
export const x3_5 = "var(--seed-dimension-x3_5)";
|
|
9
|
-
export const x4 = "var(--seed-dimension-x4)";
|
|
10
|
-
export const x4_5 = "var(--seed-dimension-x4_5)";
|
|
11
|
-
export const x5 = "var(--seed-dimension-x5)";
|
|
12
|
-
export const x6 = "var(--seed-dimension-x6)";
|
|
13
|
-
export const x7 = "var(--seed-dimension-x7)";
|
|
14
|
-
export const x8 = "var(--seed-dimension-x8)";
|
|
15
|
-
export const x9 = "var(--seed-dimension-x9)";
|
|
16
|
-
export const x10 = "var(--seed-dimension-x10)";
|
|
17
|
-
export const x12 = "var(--seed-dimension-x12)";
|
|
18
|
-
export const x13 = "var(--seed-dimension-x13)";
|
|
19
|
-
export const x14 = "var(--seed-dimension-x14)";
|
|
20
|
-
export const x16 = "var(--seed-dimension-x16)";
|
|
2
|
+
export const x2 = "var(--lynx-console-dimension-x2)";
|
|
3
|
+
export const x3 = "var(--lynx-console-dimension-x3)";
|
|
4
|
+
export const x4 = "var(--lynx-console-dimension-x4)";
|
|
5
|
+
export const x6 = "var(--lynx-console-dimension-x6)";
|
|
21
6
|
|
|
22
7
|
// Spacing
|
|
23
8
|
export const spacingX = {
|
|
24
|
-
|
|
25
|
-
globalGutter: "var(--seed-dimension-spacing-x-global-gutter)",
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export const spacingY = {
|
|
29
|
-
componentDefault: "var(--seed-dimension-spacing-y-component-default)",
|
|
30
|
-
navToTitle: "var(--seed-dimension-spacing-y-nav-to-title)",
|
|
31
|
-
screenBottom: "var(--seed-dimension-spacing-y-screen-bottom)",
|
|
32
|
-
betweenText: "var(--seed-dimension-spacing-y-between-text)",
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
// Font Sizes
|
|
36
|
-
export const t1 = "var(--seed-font-size-t1)";
|
|
37
|
-
export const t2 = "var(--seed-font-size-t2)";
|
|
38
|
-
export const t3 = "var(--seed-font-size-t3)";
|
|
39
|
-
export const t4 = "var(--seed-font-size-t4)";
|
|
40
|
-
export const t5 = "var(--seed-font-size-t5)";
|
|
41
|
-
export const t6 = "var(--seed-font-size-t6)";
|
|
42
|
-
export const t7 = "var(--seed-font-size-t7)";
|
|
43
|
-
export const t8 = "var(--seed-font-size-t8)";
|
|
44
|
-
export const t9 = "var(--seed-font-size-t9)";
|
|
45
|
-
export const t10 = "var(--seed-font-size-t10)";
|
|
46
|
-
export const t1Static = "var(--seed-font-size-t1-static)";
|
|
47
|
-
export const t2Static = "var(--seed-font-size-t2-static)";
|
|
48
|
-
export const t3Static = "var(--seed-font-size-t3-static)";
|
|
49
|
-
export const t4Static = "var(--seed-font-size-t4-static)";
|
|
50
|
-
export const t5Static = "var(--seed-font-size-t5-static)";
|
|
51
|
-
export const t6Static = "var(--seed-font-size-t6-static)";
|
|
52
|
-
export const t7Static = "var(--seed-font-size-t7-static)";
|
|
53
|
-
export const t8Static = "var(--seed-font-size-t8-static)";
|
|
54
|
-
export const t9Static = "var(--seed-font-size-t9-static)";
|
|
55
|
-
export const t10Static = "var(--seed-font-size-t10-static)";
|
|
56
|
-
|
|
57
|
-
// Line Heights
|
|
58
|
-
export const lineHeight = {
|
|
59
|
-
t1: "var(--seed-line-height-t1)",
|
|
60
|
-
t2: "var(--seed-line-height-t2)",
|
|
61
|
-
t3: "var(--seed-line-height-t3)",
|
|
62
|
-
t4: "var(--seed-line-height-t4)",
|
|
63
|
-
t5: "var(--seed-line-height-t5)",
|
|
64
|
-
t6: "var(--seed-line-height-t6)",
|
|
65
|
-
t7: "var(--seed-line-height-t7)",
|
|
66
|
-
t8: "var(--seed-line-height-t8)",
|
|
67
|
-
t9: "var(--seed-line-height-t9)",
|
|
68
|
-
t10: "var(--seed-line-height-t10)",
|
|
69
|
-
t1Static: "var(--seed-line-height-t1-static)",
|
|
70
|
-
t2Static: "var(--seed-line-height-t2-static)",
|
|
71
|
-
t3Static: "var(--seed-line-height-t3-static)",
|
|
72
|
-
t4Static: "var(--seed-line-height-t4-static)",
|
|
73
|
-
t5Static: "var(--seed-line-height-t5-static)",
|
|
74
|
-
t6Static: "var(--seed-line-height-t6-static)",
|
|
75
|
-
t7Static: "var(--seed-line-height-t7-static)",
|
|
76
|
-
t8Static: "var(--seed-line-height-t8-static)",
|
|
77
|
-
t9Static: "var(--seed-line-height-t9-static)",
|
|
78
|
-
t10Static: "var(--seed-line-height-t10-static)",
|
|
9
|
+
globalGutter: "var(--lynx-console-dimension-spacing-x-global-gutter)",
|
|
79
10
|
};
|