@burdenoff/fe-libs 2026.1021.9 → 2026.1021.10
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/chrome/AppShellLayout.d.ts +14 -0
- package/dist/chrome/AppShellLayout.js +40 -34
- package/dist/shared/components/SkipToContent.d.ts +95 -0
- package/dist/shared/components/SkipToContent.js +61 -0
- package/dist/shared/components/index.d.ts +2 -0
- package/dist/shared/pages/AiPage.js +49 -48
- package/dist/shared-components.js +23 -22
- package/dist/shared.js +98 -97
- package/dist/ui/modern-landing.d.ts +4 -0
- package/dist/ui/modern-landing.js +129 -125
- package/dist/ui/native-welcome.js +56 -55
- package/package.json +1 -1
|
@@ -3,20 +3,21 @@ import { useAppShell as t } from "../shared/providers/shell/AppShellContext.js";
|
|
|
3
3
|
import { cn as n } from "../shared-utils.js";
|
|
4
4
|
import { Button as r } from "./button.js";
|
|
5
5
|
import { nativeImpact as i, nativeOpenUrl as a } from "../shared/native/consumers.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { MainLandmark as o } from "../shared/components/SkipToContent.js";
|
|
7
|
+
import { SafeAreaView as s } from "../shared/native/SafeAreaView.js";
|
|
8
|
+
import { useCallback as c, useRef as l, useState as u } from "react";
|
|
9
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
10
|
//#region src/ui/native-welcome.tsx
|
|
10
|
-
function
|
|
11
|
+
function p({ domain: e }) {
|
|
11
12
|
let t = (t) => () => {
|
|
12
13
|
a(`https://${e}/${t}`);
|
|
13
14
|
};
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ f("p", {
|
|
15
16
|
className: "text-center text-xs leading-relaxed text-text-muted",
|
|
16
17
|
children: [
|
|
17
18
|
"By continuing you agree to our",
|
|
18
19
|
" ",
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ d("button", {
|
|
20
21
|
type: "button",
|
|
21
22
|
onClick: t("terms"),
|
|
22
23
|
className: "text-text-link underline underline-offset-2 hover:text-text-linkHover",
|
|
@@ -25,7 +26,7 @@ function f({ domain: e }) {
|
|
|
25
26
|
" ",
|
|
26
27
|
"and",
|
|
27
28
|
" ",
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ d("button", {
|
|
29
30
|
type: "button",
|
|
30
31
|
onClick: t("privacy"),
|
|
31
32
|
className: "text-text-link underline underline-offset-2 hover:text-text-linkHover",
|
|
@@ -35,113 +36,113 @@ function f({ domain: e }) {
|
|
|
35
36
|
]
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
let
|
|
40
|
-
let e =
|
|
39
|
+
function m({ productName: a, tagline: m, headline: h, features: g = [], primaryCtaLabel: _ = "Sign in", secondaryCtaLabel: v = "Create account", onSignIn: y, onCreateAccount: b, legal: x, logoSrc: S = "/icons/icon.svg", className: C }) {
|
|
40
|
+
let w = t(), T = a ?? w.productName, E = m ?? w.tagline, [D, O] = u(!1), [k, A] = u(0), j = l(null), M = e(), N = c(() => {
|
|
41
|
+
let e = j.current;
|
|
41
42
|
if (!e) return;
|
|
42
43
|
let t = e.clientWidth || 1;
|
|
43
|
-
|
|
44
|
-
}, []),
|
|
45
|
-
let t =
|
|
44
|
+
A(Math.round(e.scrollLeft / t));
|
|
45
|
+
}, []), P = c((e) => {
|
|
46
|
+
let t = j.current;
|
|
46
47
|
t && t.scrollTo({
|
|
47
48
|
left: e * t.clientWidth,
|
|
48
49
|
behavior: "smooth"
|
|
49
50
|
});
|
|
50
|
-
}, []),
|
|
51
|
+
}, []), F = (e) => () => {
|
|
51
52
|
e && (i("light"), e());
|
|
52
|
-
},
|
|
53
|
-
return /* @__PURE__ */
|
|
53
|
+
}, I = x === void 0 ? w.domain ? /* @__PURE__ */ d(p, { domain: w.domain }) : null : x;
|
|
54
|
+
return /* @__PURE__ */ d(s, {
|
|
54
55
|
"data-native-welcome": "",
|
|
55
|
-
className: n("flex min-h-[100dvh] flex-col bg-bg-canvas text-text-primary",
|
|
56
|
-
children: /* @__PURE__ */
|
|
57
|
-
className: n("flex flex-1 flex-col",
|
|
56
|
+
className: n("flex min-h-[100dvh] flex-col bg-bg-canvas text-text-primary", M && "items-center justify-center", C),
|
|
57
|
+
children: /* @__PURE__ */ f(o, {
|
|
58
|
+
className: n("flex flex-1 flex-col", M && "my-auto w-full max-w-[480px] rounded-card border border-border-subtle bg-bg-surface shadow-elevation-3"),
|
|
58
59
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ f("header", {
|
|
60
61
|
"data-shell-chrome": "",
|
|
61
62
|
className: "flex flex-col items-center gap-4 px-6 pb-6 pt-12 text-center",
|
|
62
63
|
children: [
|
|
63
|
-
|
|
64
|
+
D ? /* @__PURE__ */ d("span", {
|
|
64
65
|
"aria-hidden": "true",
|
|
65
66
|
className: "flex size-16 items-center justify-center rounded-2xl bg-action-primary-bg text-2xl font-semibold text-action-primary-text shadow-elevation-1",
|
|
66
|
-
children:
|
|
67
|
-
}) : /* @__PURE__ */
|
|
68
|
-
src:
|
|
67
|
+
children: w.brandInitial
|
|
68
|
+
}) : /* @__PURE__ */ d("img", {
|
|
69
|
+
src: S,
|
|
69
70
|
alt: "",
|
|
70
71
|
"aria-hidden": "true",
|
|
71
|
-
onError: () =>
|
|
72
|
+
onError: () => O(!0),
|
|
72
73
|
className: "size-16 rounded-2xl object-contain"
|
|
73
74
|
}),
|
|
74
|
-
|
|
75
|
+
h && /* @__PURE__ */ d("p", {
|
|
75
76
|
className: "text-sm font-medium uppercase tracking-wide text-text-muted",
|
|
76
|
-
children:
|
|
77
|
+
children: h
|
|
77
78
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ d("h1", {
|
|
79
80
|
className: "text-3xl font-bold tracking-tight text-text-primary",
|
|
80
|
-
children:
|
|
81
|
+
children: T
|
|
81
82
|
}),
|
|
82
|
-
|
|
83
|
+
E && /* @__PURE__ */ d("p", {
|
|
83
84
|
className: "max-w-sm text-base leading-relaxed text-text-secondary",
|
|
84
|
-
children:
|
|
85
|
+
children: E
|
|
85
86
|
})
|
|
86
87
|
]
|
|
87
88
|
}),
|
|
88
|
-
|
|
89
|
+
g.length > 0 && /* @__PURE__ */ f("section", {
|
|
89
90
|
className: "flex flex-1 flex-col justify-center gap-4 py-2",
|
|
90
|
-
children: [/* @__PURE__ */
|
|
91
|
-
ref:
|
|
91
|
+
children: [/* @__PURE__ */ d("div", {
|
|
92
|
+
ref: j,
|
|
92
93
|
"data-native-welcome-carousel": "",
|
|
93
94
|
"data-swipe-ignore": "",
|
|
94
|
-
onScroll:
|
|
95
|
+
onScroll: N,
|
|
95
96
|
className: "flex snap-x snap-mandatory overflow-x-auto scroll-smooth",
|
|
96
|
-
children:
|
|
97
|
+
children: g.map((e) => {
|
|
97
98
|
let t = e.icon;
|
|
98
|
-
return /* @__PURE__ */
|
|
99
|
+
return /* @__PURE__ */ f("article", {
|
|
99
100
|
className: "flex w-full shrink-0 snap-center flex-col items-center gap-3 px-8 text-center",
|
|
100
101
|
children: [
|
|
101
|
-
t && /* @__PURE__ */
|
|
102
|
+
t && /* @__PURE__ */ d("span", {
|
|
102
103
|
className: "flex size-12 items-center justify-center rounded-xl bg-bg-accentSubtle text-action-primary-bg",
|
|
103
|
-
children: /* @__PURE__ */
|
|
104
|
+
children: /* @__PURE__ */ d(t, { className: "size-6" })
|
|
104
105
|
}),
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ d("h2", {
|
|
106
107
|
className: "text-lg font-semibold text-text-primary",
|
|
107
108
|
children: e.title
|
|
108
109
|
}),
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ d("p", {
|
|
110
111
|
className: "max-w-sm text-sm leading-relaxed text-text-secondary",
|
|
111
112
|
children: e.description
|
|
112
113
|
})
|
|
113
114
|
]
|
|
114
115
|
}, e.title);
|
|
115
116
|
})
|
|
116
|
-
}),
|
|
117
|
+
}), g.length > 1 && /* @__PURE__ */ d("div", {
|
|
117
118
|
className: "flex items-center justify-center gap-2",
|
|
118
|
-
children:
|
|
119
|
+
children: g.map((e, t) => /* @__PURE__ */ d("button", {
|
|
119
120
|
type: "button",
|
|
120
|
-
"aria-current": t ===
|
|
121
|
+
"aria-current": t === k ? "true" : void 0,
|
|
121
122
|
"aria-label": `Show highlight: ${e.title}`,
|
|
122
|
-
onClick: () =>
|
|
123
|
-
className: n("size-2 rounded-full transition-colors", t ===
|
|
123
|
+
onClick: () => P(t),
|
|
124
|
+
className: n("size-2 rounded-full transition-colors", t === k ? "bg-action-primary-bg" : "bg-border-strong")
|
|
124
125
|
}, e.title))
|
|
125
126
|
})]
|
|
126
127
|
}),
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
+
/* @__PURE__ */ f("footer", {
|
|
128
129
|
"data-shell-chrome": "",
|
|
129
130
|
className: "mt-auto flex flex-col gap-3 border-t border-border-subtle bg-bg-canvas px-6 pb-6 pt-4",
|
|
130
131
|
children: [
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ d(r, {
|
|
132
133
|
size: "lg",
|
|
133
134
|
className: "w-full",
|
|
134
|
-
onClick:
|
|
135
|
-
children:
|
|
135
|
+
onClick: F(y),
|
|
136
|
+
children: _
|
|
136
137
|
}),
|
|
137
|
-
|
|
138
|
+
b && /* @__PURE__ */ d(r, {
|
|
138
139
|
size: "lg",
|
|
139
140
|
variant: "ghost",
|
|
140
141
|
className: "w-full",
|
|
141
|
-
onClick:
|
|
142
|
-
children:
|
|
142
|
+
onClick: F(b),
|
|
143
|
+
children: v
|
|
143
144
|
}),
|
|
144
|
-
|
|
145
|
+
I
|
|
145
146
|
]
|
|
146
147
|
})
|
|
147
148
|
]
|
|
@@ -149,4 +150,4 @@ function p({ productName: a, tagline: p, headline: m, features: h = [], primaryC
|
|
|
149
150
|
});
|
|
150
151
|
}
|
|
151
152
|
//#endregion
|
|
152
|
-
export {
|
|
153
|
+
export { m as NativeWelcome };
|