@windrun-huaiin/third-ui 13.1.3 → 13.1.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/dist/main/footer.js +2 -1
- package/dist/main/footer.mjs +4 -3
- package/package.json +1 -1
- package/src/main/footer.tsx +4 -1
package/dist/main/footer.js
CHANGED
|
@@ -8,6 +8,7 @@ var Link = require('next/link');
|
|
|
8
8
|
var footerEmail = require('./footer-email.js');
|
|
9
9
|
var tIntl = require('../lib/t-intl.js');
|
|
10
10
|
var lib = require('@windrun-huaiin/lib');
|
|
11
|
+
var lib$1 = require('@windrun-huaiin/base-ui/lib');
|
|
11
12
|
|
|
12
13
|
function Footer(_a) {
|
|
13
14
|
return tslib_es6.__awaiter(this, arguments, void 0, function* ({ locale, localePrefixAsNeeded = true, defaultLocale = 'en' }) {
|
|
@@ -22,7 +23,7 @@ function Footer(_a) {
|
|
|
22
23
|
clickToCopyText: tIntl.safeT(tFooter, 'clickToCopy', 'Click to copy'),
|
|
23
24
|
copiedText: tIntl.safeT(tFooter, 'copied', 'Copied!'),
|
|
24
25
|
};
|
|
25
|
-
return (jsxRuntime.
|
|
26
|
+
return (jsxRuntime.jsxs("div", { className: "mb-10 w-full mx-auto", children: [jsxRuntime.jsx("div", { className: lib.cn("w-full border-current border-t", lib$1.themeIconColor) }), jsxRuntime.jsx("footer", { children: jsxRuntime.jsxs("div", { className: "w-full flex flex-col items-center justify-center px-4 py-8 space-y-3", children: [jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center justify-center gap-x-2 gap-y-2 text-xs sm:text-sm sm:gap-x-6", children: [jsxRuntime.jsxs(Link, { href: lib.getAsNeededLocalizedUrl(locale, "/legal/terms", localePrefixAsNeeded, defaultLocale), className: "flex items-center space-x-1 hover:underline", children: [jsxRuntime.jsx(server$1.globalLucideIcons.ReceiptText, { className: "h-3.5 w-3.5" }), jsxRuntime.jsx("span", { children: data.terms })] }), jsxRuntime.jsxs(Link, { href: lib.getAsNeededLocalizedUrl(locale, "/legal/privacy", localePrefixAsNeeded, defaultLocale), className: "flex items-center space-x-1 hover:underline", children: [jsxRuntime.jsx(server$1.globalLucideIcons.ShieldUser, { className: "h-3.5 w-3.5" }), jsxRuntime.jsx("span", { children: data.privacy })] }), jsxRuntime.jsxs(footerEmail.FooterEmail, { email: data.email, clickToCopyText: data.clickToCopyText, copiedText: data.copiedText, children: [jsxRuntime.jsx(server$1.globalLucideIcons.Mail, { className: "h-3.5 w-3.5" }), jsxRuntime.jsx("span", { children: data.contactUs })] })] }), jsxRuntime.jsx("div", { className: "text-xs sm:text-sm text-center", children: jsxRuntime.jsx("span", { children: data.copyright }) })] }) })] }));
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
29
|
|
package/dist/main/footer.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { __awaiter } from '../node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.46.2_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { getTranslations } from 'next-intl/server';
|
|
4
4
|
import { globalLucideIcons } from '@windrun-huaiin/base-ui/components/server';
|
|
5
5
|
import Link from 'next/link';
|
|
6
6
|
import { FooterEmail } from './footer-email.mjs';
|
|
7
7
|
import { safeT } from '../lib/t-intl.mjs';
|
|
8
|
-
import { getAsNeededLocalizedUrl } from '@windrun-huaiin/lib';
|
|
8
|
+
import { cn, getAsNeededLocalizedUrl } from '@windrun-huaiin/lib';
|
|
9
|
+
import { themeIconColor } from '@windrun-huaiin/base-ui/lib';
|
|
9
10
|
|
|
10
11
|
function Footer(_a) {
|
|
11
12
|
return __awaiter(this, arguments, void 0, function* ({ locale, localePrefixAsNeeded = true, defaultLocale = 'en' }) {
|
|
@@ -20,7 +21,7 @@ function Footer(_a) {
|
|
|
20
21
|
clickToCopyText: safeT(tFooter, 'clickToCopy', 'Click to copy'),
|
|
21
22
|
copiedText: safeT(tFooter, 'copied', 'Copied!'),
|
|
22
23
|
};
|
|
23
|
-
return (
|
|
24
|
+
return (jsxs("div", { className: "mb-10 w-full mx-auto", children: [jsx("div", { className: cn("w-full border-current border-t", themeIconColor) }), jsx("footer", { children: jsxs("div", { className: "w-full flex flex-col items-center justify-center px-4 py-8 space-y-3", children: [jsxs("div", { className: "flex flex-wrap items-center justify-center gap-x-2 gap-y-2 text-xs sm:text-sm sm:gap-x-6", children: [jsxs(Link, { href: getAsNeededLocalizedUrl(locale, "/legal/terms", localePrefixAsNeeded, defaultLocale), className: "flex items-center space-x-1 hover:underline", children: [jsx(globalLucideIcons.ReceiptText, { className: "h-3.5 w-3.5" }), jsx("span", { children: data.terms })] }), jsxs(Link, { href: getAsNeededLocalizedUrl(locale, "/legal/privacy", localePrefixAsNeeded, defaultLocale), className: "flex items-center space-x-1 hover:underline", children: [jsx(globalLucideIcons.ShieldUser, { className: "h-3.5 w-3.5" }), jsx("span", { children: data.privacy })] }), jsxs(FooterEmail, { email: data.email, clickToCopyText: data.clickToCopyText, copiedText: data.copiedText, children: [jsx(globalLucideIcons.Mail, { className: "h-3.5 w-3.5" }), jsx("span", { children: data.contactUs })] })] }), jsx("div", { className: "text-xs sm:text-sm text-center", children: jsx("span", { children: data.copyright }) })] }) })] }));
|
|
24
25
|
});
|
|
25
26
|
}
|
|
26
27
|
|
package/package.json
CHANGED
package/src/main/footer.tsx
CHANGED
|
@@ -4,6 +4,8 @@ import Link from "next/link";
|
|
|
4
4
|
import { FooterEmail } from './footer-email';
|
|
5
5
|
import { safeT } from '../lib/t-intl';
|
|
6
6
|
import { getAsNeededLocalizedUrl } from '@windrun-huaiin/lib';
|
|
7
|
+
import { themeIconColor } from '@windrun-huaiin/base-ui/lib';
|
|
8
|
+
import { cn } from '@windrun-huaiin/lib';
|
|
7
9
|
|
|
8
10
|
interface FooterData {
|
|
9
11
|
terms: string;
|
|
@@ -39,7 +41,8 @@ export async function Footer({ locale, localePrefixAsNeeded = true, defaultLocal
|
|
|
39
41
|
};
|
|
40
42
|
|
|
41
43
|
return (
|
|
42
|
-
<div className="mb-10 w-full mx-auto
|
|
44
|
+
<div className="mb-10 w-full mx-auto">
|
|
45
|
+
<div className={cn("w-full border-current border-t", themeIconColor)}></div>
|
|
43
46
|
<footer>
|
|
44
47
|
<div className="w-full flex flex-col items-center justify-center px-4 py-8 space-y-3">
|
|
45
48
|
<div className="flex flex-wrap items-center justify-center gap-x-2 gap-y-2 text-xs sm:text-sm sm:gap-x-6">
|