@skipleague/design 0.4.7 → 0.4.9
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/AppLogo.d.ts +1 -1
- package/dist/AppLogo.js +4 -0
- package/dist/BottomNav.js +6 -1
- package/dist/apps.js +1 -0
- package/package.json +1 -1
- package/src/AppLogo.tsx +11 -1
- package/src/BottomNav.tsx +5 -1
- package/src/apps.ts +1 -0
package/dist/AppLogo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** A SkipLeague app's logo glyph (monoline, drawn on the brand tile). */
|
|
2
|
-
export type AppGlyph = "lists" | "racquetball" | "trips" | "gifts" | "reading" | "today";
|
|
2
|
+
export type AppGlyph = "lists" | "racquetball" | "trips" | "gifts" | "reading" | "today" | "flow";
|
|
3
3
|
/**
|
|
4
4
|
* The per-app logo mark — a brand-green rounded tile holding a white monoline
|
|
5
5
|
* glyph. Replaces the single-letter {@link AppBadge}; gives each SkipLeague app a
|
package/dist/AppLogo.js
CHANGED
|
@@ -18,6 +18,10 @@ function glyphPaths(app, color) {
|
|
|
18
18
|
case "today":
|
|
19
19
|
// Sun = "today" / the day.
|
|
20
20
|
return (_jsxs(_Fragment, { children: [_jsx("circle", { cx: "12", cy: "12", r: "3.8" }), _jsx("path", { d: "M12 2.6V5" }), _jsx("path", { d: "M12 19V21.4" }), _jsx("path", { d: "M2.6 12H5" }), _jsx("path", { d: "M19 12H21.4" }), _jsx("path", { d: "M5.2 5.2 6.9 6.9" }), _jsx("path", { d: "M17.1 17.1 18.8 18.8" }), _jsx("path", { d: "M18.8 5.2 17.1 6.9" }), _jsx("path", { d: "M6.9 17.1 5.2 18.8" })] }));
|
|
21
|
+
case "flow":
|
|
22
|
+
// Two workflow nodes joined by an elbow connector — orchestration
|
|
23
|
+
// ("when X happens, do Y").
|
|
24
|
+
return (_jsxs(_Fragment, { children: [_jsx("rect", { x: "3", y: "3", width: "8", height: "8", rx: "2" }), _jsx("rect", { x: "13", y: "13", width: "8", height: "8", rx: "2" }), _jsx("path", { d: "M7 11v3.5a2 2 0 0 0 2 2h3.5" })] }));
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
27
|
/**
|
package/dist/BottomNav.js
CHANGED
|
@@ -97,7 +97,12 @@ export function BottomNav({ tabs, action, groups }) {
|
|
|
97
97
|
const glow = activeTab?.color
|
|
98
98
|
? `0 0 22px 4px color-mix(in srgb, ${activeTab.color} 55%, transparent), 0 10px 22px color-mix(in srgb, ${activeTab.color} 30%, transparent)`
|
|
99
99
|
: ACTION_GLOW;
|
|
100
|
-
return (
|
|
100
|
+
return (
|
|
101
|
+
// `display: block` is set explicitly (not left to the nav default) so a host
|
|
102
|
+
// app's global `nav { display: grid/flex }` rule can't override it and
|
|
103
|
+
// collapse the full-width bar — the children below rely on normal block flow
|
|
104
|
+
// (the bar fills the width; the floating "+" is absolutely positioned).
|
|
105
|
+
_jsxs("nav", { style: { display: "block", position: "relative", flex: "none" }, children: [_jsxs("div", { style: {
|
|
101
106
|
background: "var(--skl-color-surface)",
|
|
102
107
|
borderTop: "1px solid var(--skl-color-border)",
|
|
103
108
|
position: "relative",
|
package/dist/apps.js
CHANGED
|
@@ -12,6 +12,7 @@ export const SKIPLEAGUE_APPS = [
|
|
|
12
12
|
{ slug: "skipreading", name: "SkipReading", url: "https://reading.skipleague.com" },
|
|
13
13
|
{ slug: "skipgifts", name: "SkipGifts", url: "https://gifts.skipleague.com" },
|
|
14
14
|
{ slug: "skiptoday", name: "SkipToday", url: "https://today.skipleague.com" },
|
|
15
|
+
{ slug: "skipflow", name: "SkipFlow", url: "https://flow.skipleague.com" },
|
|
15
16
|
];
|
|
16
17
|
/** Default target for the menu's "Manage account" link (the platform account page). */
|
|
17
18
|
export const SKIPLEAGUE_ACCOUNT_URL = "https://skipleague.com/account";
|
package/package.json
CHANGED
package/src/AppLogo.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from "react";
|
|
2
2
|
|
|
3
3
|
/** A SkipLeague app's logo glyph (monoline, drawn on the brand tile). */
|
|
4
|
-
export type AppGlyph = "lists" | "racquetball" | "trips" | "gifts" | "reading" | "today";
|
|
4
|
+
export type AppGlyph = "lists" | "racquetball" | "trips" | "gifts" | "reading" | "today" | "flow";
|
|
5
5
|
|
|
6
6
|
// Exact 24×24 glyph paths (design_handoff_top_bar). `color` only matters for the
|
|
7
7
|
// racquetball ball, which is filled rather than stroked.
|
|
@@ -65,6 +65,16 @@ function glyphPaths(app: AppGlyph, color: string): ReactNode {
|
|
|
65
65
|
<path d="M6.9 17.1 5.2 18.8" />
|
|
66
66
|
</>
|
|
67
67
|
);
|
|
68
|
+
case "flow":
|
|
69
|
+
// Two workflow nodes joined by an elbow connector — orchestration
|
|
70
|
+
// ("when X happens, do Y").
|
|
71
|
+
return (
|
|
72
|
+
<>
|
|
73
|
+
<rect x="3" y="3" width="8" height="8" rx="2" />
|
|
74
|
+
<rect x="13" y="13" width="8" height="8" rx="2" />
|
|
75
|
+
<path d="M7 11v3.5a2 2 0 0 0 2 2h3.5" />
|
|
76
|
+
</>
|
|
77
|
+
);
|
|
68
78
|
}
|
|
69
79
|
}
|
|
70
80
|
|
package/src/BottomNav.tsx
CHANGED
|
@@ -168,7 +168,11 @@ export function BottomNav({ tabs, action, groups }: BottomNavProps) {
|
|
|
168
168
|
: ACTION_GLOW;
|
|
169
169
|
|
|
170
170
|
return (
|
|
171
|
-
|
|
171
|
+
// `display: block` is set explicitly (not left to the nav default) so a host
|
|
172
|
+
// app's global `nav { display: grid/flex }` rule can't override it and
|
|
173
|
+
// collapse the full-width bar — the children below rely on normal block flow
|
|
174
|
+
// (the bar fills the width; the floating "+" is absolutely positioned).
|
|
175
|
+
<nav style={{ display: "block", position: "relative", flex: "none" }}>
|
|
172
176
|
{/* Bar — clips the glow at its top edge ("the line"). */}
|
|
173
177
|
<div
|
|
174
178
|
style={{
|
package/src/apps.ts
CHANGED
|
@@ -22,6 +22,7 @@ export const SKIPLEAGUE_APPS: AppLink[] = [
|
|
|
22
22
|
{ slug: "skipreading", name: "SkipReading", url: "https://reading.skipleague.com" },
|
|
23
23
|
{ slug: "skipgifts", name: "SkipGifts", url: "https://gifts.skipleague.com" },
|
|
24
24
|
{ slug: "skiptoday", name: "SkipToday", url: "https://today.skipleague.com" },
|
|
25
|
+
{ slug: "skipflow", name: "SkipFlow", url: "https://flow.skipleague.com" },
|
|
25
26
|
];
|
|
26
27
|
|
|
27
28
|
/** Default target for the menu's "Manage account" link (the platform account page). */
|