@luxfi/ui 8.2.9 → 8.2.11
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/site/components/copyright.cjs +3 -9
- package/dist/site/components/copyright.d.ts +1 -0
- package/dist/site/components/copyright.d.ts.map +1 -1
- package/dist/site/components/copyright.js +4 -10
- package/dist/site/components/footer.cjs +2 -2
- package/dist/site/components/footer.js +2 -2
- package/dist/site/site-def/footer/company.d.ts +3 -3
- package/dist/site/types/site-def.d.ts +6 -0
- package/dist/site/types/site-def.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/site/components/copyright.tsx +5 -5
- package/src/site/components/footer.tsx +2 -2
- package/src/site/types/site-def.ts +7 -0
|
@@ -6,18 +6,12 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
// src/site/components/copyright.tsx
|
|
7
7
|
var FIRST = 2020;
|
|
8
8
|
var Copyright = ({
|
|
9
|
+
entity = "Lux Industries Inc.",
|
|
9
10
|
className = ""
|
|
10
11
|
}) => {
|
|
11
12
|
const year = (/* @__PURE__ */ new Date()).getFullYear();
|
|
12
|
-
const
|
|
13
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
14
|
-
`Copyright \xA9 ${yearString}`,
|
|
15
|
-
"\xA0",
|
|
16
|
-
/* @__PURE__ */ jsxRuntime.jsx("br", { className: "sm:hidden" }),
|
|
17
|
-
"Lux Industries Inc.\xA0",
|
|
18
|
-
/* @__PURE__ */ jsxRuntime.jsx("br", { className: "md:hidden" }),
|
|
19
|
-
"\xA0All rights reserved."
|
|
20
|
-
] });
|
|
13
|
+
const span = year > FIRST ? `${FIRST} - ${year}` : FIRST.toString();
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className, children: `Copyright \xA9 ${span} ${entity} All rights reserved.` });
|
|
21
15
|
};
|
|
22
16
|
var copyright_default = Copyright;
|
|
23
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copyright.d.ts","sourceRoot":"","sources":["../../../src/site/components/copyright.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,
|
|
1
|
+
{"version":3,"file":"copyright.d.ts","sourceRoot":"","sources":["../../../src/site/components/copyright.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAWA,CAAA;eAEc,SAAS"}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import { Box } from '@hanzo/ui';
|
|
2
|
-
import {
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
// src/site/components/copyright.tsx
|
|
5
5
|
var FIRST = 2020;
|
|
6
6
|
var Copyright = ({
|
|
7
|
+
entity = "Lux Industries Inc.",
|
|
7
8
|
className = ""
|
|
8
9
|
}) => {
|
|
9
10
|
const year = (/* @__PURE__ */ new Date()).getFullYear();
|
|
10
|
-
const
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
`Copyright \xA9 ${yearString}`,
|
|
13
|
-
"\xA0",
|
|
14
|
-
/* @__PURE__ */ jsx("br", { className: "sm:hidden" }),
|
|
15
|
-
"Lux Industries Inc.\xA0",
|
|
16
|
-
/* @__PURE__ */ jsx("br", { className: "md:hidden" }),
|
|
17
|
-
"\xA0All rights reserved."
|
|
18
|
-
] });
|
|
11
|
+
const span = year > FIRST ? `${FIRST} - ${year}` : FIRST.toString();
|
|
12
|
+
return /* @__PURE__ */ jsx(Box, { className, children: `Copyright \xA9 ${span} ${entity} All rights reserved.` });
|
|
19
13
|
};
|
|
20
14
|
var copyright_default = Copyright;
|
|
21
15
|
|
|
@@ -20,7 +20,7 @@ var Footer = ({
|
|
|
20
20
|
className = "",
|
|
21
21
|
noHorizPadding = false
|
|
22
22
|
}) => {
|
|
23
|
-
const { footer, aboveCopyright } = siteDef;
|
|
23
|
+
const { footer, aboveCopyright, entity } = siteDef;
|
|
24
24
|
const smGridCols = Math.floor(footer.length / 2);
|
|
25
25
|
const smGridColsClx = `sm:grid-cols-${smGridCols} `;
|
|
26
26
|
const _aboveCopyright = typeof aboveCopyright === "undefined" ? legal_cjs.legal : aboveCopyright;
|
|
@@ -53,7 +53,7 @@ var Footer = ({
|
|
|
53
53
|
itemClx: "text-sm text-center text-muted-2 underline hover:text-foreground"
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
|
-
/* @__PURE__ */ jsxRuntime.jsx(Copyright__default.default, { className: "text-sm text-center text-muted-3" })
|
|
56
|
+
/* @__PURE__ */ jsxRuntime.jsx(Copyright__default.default, { entity, className: "text-sm text-center text-muted-3" })
|
|
57
57
|
] })
|
|
58
58
|
] });
|
|
59
59
|
};
|
|
@@ -12,7 +12,7 @@ var Footer = ({
|
|
|
12
12
|
className = "",
|
|
13
13
|
noHorizPadding = false
|
|
14
14
|
}) => {
|
|
15
|
-
const { footer, aboveCopyright } = siteDef;
|
|
15
|
+
const { footer, aboveCopyright, entity } = siteDef;
|
|
16
16
|
const smGridCols = Math.floor(footer.length / 2);
|
|
17
17
|
const smGridColsClx = `sm:grid-cols-${smGridCols} `;
|
|
18
18
|
const _aboveCopyright = typeof aboveCopyright === "undefined" ? legal : aboveCopyright;
|
|
@@ -45,7 +45,7 @@ var Footer = ({
|
|
|
45
45
|
itemClx: "text-sm text-center text-muted-2 underline hover:text-foreground"
|
|
46
46
|
}
|
|
47
47
|
),
|
|
48
|
-
/* @__PURE__ */ jsx(Copyright, { className: "text-sm text-center text-muted-3" })
|
|
48
|
+
/* @__PURE__ */ jsx(Copyright, { entity, className: "text-sm text-center text-muted-3" })
|
|
49
49
|
] })
|
|
50
50
|
] });
|
|
51
51
|
};
|
|
@@ -4,20 +4,20 @@ declare const _default: ({
|
|
|
4
4
|
variant: "linkFG";
|
|
5
5
|
newTab: false;
|
|
6
6
|
} | {
|
|
7
|
+
variant?: undefined;
|
|
7
8
|
title: string;
|
|
8
9
|
href: string;
|
|
9
10
|
newTab: false;
|
|
10
|
-
variant?: undefined;
|
|
11
11
|
} | {
|
|
12
|
+
variant?: undefined;
|
|
12
13
|
title: string;
|
|
13
14
|
href: string;
|
|
14
15
|
newTab?: undefined;
|
|
15
|
-
variant?: undefined;
|
|
16
16
|
} | {
|
|
17
|
+
variant?: undefined;
|
|
17
18
|
title: string;
|
|
18
19
|
href: string;
|
|
19
20
|
newTab: true;
|
|
20
|
-
variant?: undefined;
|
|
21
21
|
})[];
|
|
22
22
|
export default _default;
|
|
23
23
|
//# sourceMappingURL=company.d.ts.map
|
|
@@ -33,6 +33,12 @@ interface SiteDef {
|
|
|
33
33
|
[] renders nothing above the copyright
|
|
34
34
|
*/
|
|
35
35
|
aboveCopyright?: LinkDef[];
|
|
36
|
+
/**
|
|
37
|
+
* The legal person the copyright line names. Sites under one brand are not
|
|
38
|
+
* always one company, and swapping the component at the bundler to change
|
|
39
|
+
* a string leaves the site unable to say who it is in its own terms.
|
|
40
|
+
*/
|
|
41
|
+
entity?: string;
|
|
36
42
|
commerce?: CommerceConfig;
|
|
37
43
|
chatbot?: ChatbotConfig;
|
|
38
44
|
noAuth?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-def.d.ts","sourceRoot":"","sources":["../../../src/site/types/site-def.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAO,uBAAuB,CAAA;AAE5D,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAA;AAEjD,UAAU,OAAO;IAEb;;;;OAIG;IACL,GAAG,EAAE,MAAM,CAAA;IAET,qFAAqF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,GAAG,EAAE;QACD,mEAAmE;QACnE,mFAAmF;QACrF,MAAM,EAAE,OAAO,EAAE,CAAA;QACjB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;KACrB,CAAA;IAEC;;;;;;;;;OASG;IACL,MAAM,EAAE,OAAO,EAAE,EAAE,CAAA;IAEjB;;;;MAIE;IACJ,cAAc,CAAC,EAAE,OAAO,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"site-def.d.ts","sourceRoot":"","sources":["../../../src/site/types/site-def.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAO,uBAAuB,CAAA;AAE5D,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAA;AAEjD,UAAU,OAAO;IAEb;;;;OAIG;IACL,GAAG,EAAE,MAAM,CAAA;IAET,qFAAqF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,GAAG,EAAE;QACD,mEAAmE;QACnE,mFAAmF;QACrF,MAAM,EAAE,OAAO,EAAE,CAAA;QACjB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;KACrB,CAAA;IAEC;;;;;;;;;OASG;IACL,MAAM,EAAE,OAAO,EAAE,EAAE,CAAA;IAEjB;;;;MAIE;IACJ,cAAc,CAAC,EAAE,OAAO,EAAE,CAAA;IAExB;;;;OAIG;IACL,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB,OAAO,CAAC,EAAE,aAAa,CAAA;IAGvB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,OAAO,EAAE,KAAK,OAAO,IAAI,OAAO,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxfi/ui",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.11",
|
|
4
4
|
"description": "Cross-platform UI components on @hanzo/gui. Native mobile + web.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
"@dnd-kit/core": "^6.3.1",
|
|
1027
1027
|
"@dnd-kit/sortable": "^10.0.0",
|
|
1028
1028
|
"@hanzo/commerce": "7.7.5",
|
|
1029
|
-
"@hanzo/ui": "8.25.
|
|
1029
|
+
"@hanzo/ui": "8.25.2",
|
|
1030
1030
|
"@hanzogui/config": "^8.1.1",
|
|
1031
1031
|
"@hookform/resolvers": "5.2.2",
|
|
1032
1032
|
"@luxfi/logo": "1.0.10",
|
|
@@ -1064,7 +1064,7 @@
|
|
|
1064
1064
|
"@hanzo/appearance": ">=0.2.2",
|
|
1065
1065
|
"@hanzo/design": ">=0.5.24",
|
|
1066
1066
|
"@hanzo/gui": ">=8.3.0",
|
|
1067
|
-
"@hanzo/ui": ">=8.25.
|
|
1067
|
+
"@hanzo/ui": ">=8.25.2",
|
|
1068
1068
|
"@hanzogui/colors": "^8.1.1",
|
|
1069
1069
|
"@hanzogui/core": "^8.1.1",
|
|
1070
1070
|
"@hanzogui/lucide-icons-2": "^8.1.1",
|
|
@@ -1099,7 +1099,7 @@
|
|
|
1099
1099
|
"@hanzo/design": "0.5.24",
|
|
1100
1100
|
"@hanzo/gui": "8.3.0",
|
|
1101
1101
|
"@hanzo/iam": "0.21.17",
|
|
1102
|
-
"@hanzo/ui": "8.25.
|
|
1102
|
+
"@hanzo/ui": "8.25.2",
|
|
1103
1103
|
"@hanzogui/colors": "8.1.1",
|
|
1104
1104
|
"@hanzogui/config": "8.1.1",
|
|
1105
1105
|
"@hanzogui/core": "8.1.1",
|
|
@@ -4,18 +4,18 @@ import { Box } from '@hanzo/ui'
|
|
|
4
4
|
const FIRST = 2020
|
|
5
5
|
|
|
6
6
|
const Copyright: React.FC<{
|
|
7
|
+
entity?: string
|
|
7
8
|
className?: string
|
|
8
9
|
}> = ({
|
|
9
|
-
|
|
10
|
+
entity = 'Lux Industries Inc.',
|
|
11
|
+
className = '',
|
|
10
12
|
}) => {
|
|
11
13
|
|
|
12
14
|
const year = new Date().getFullYear()
|
|
13
|
-
const
|
|
15
|
+
const span = (year > FIRST) ? `${FIRST} - ${year}` : FIRST.toString()
|
|
14
16
|
|
|
15
17
|
return (
|
|
16
|
-
<Box className={className}>
|
|
17
|
-
{`Copyright © ${yearString}`} <br className='sm:hidden'/>Lux Industries Inc. <br className='md:hidden'/> All rights reserved.
|
|
18
|
-
</Box>
|
|
18
|
+
<Box className={className}>{`Copyright © ${span} ${entity} All rights reserved.`}</Box>
|
|
19
19
|
)
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -19,7 +19,7 @@ const Footer: React.FC<{
|
|
|
19
19
|
noHorizPadding=false
|
|
20
20
|
}) => {
|
|
21
21
|
|
|
22
|
-
const { footer, aboveCopyright } = siteDef
|
|
22
|
+
const { footer, aboveCopyright, entity } = siteDef
|
|
23
23
|
const smGridCols = Math.floor(footer.length/2)
|
|
24
24
|
const smGridColsClx = `sm:grid-cols-${smGridCols} `
|
|
25
25
|
const _aboveCopyright = (typeof aboveCopyright === 'undefined') ? legal : aboveCopyright
|
|
@@ -62,7 +62,7 @@ const Footer: React.FC<{
|
|
|
62
62
|
itemClx={'text-sm text-center text-muted-2 underline hover:text-foreground'}
|
|
63
63
|
/>
|
|
64
64
|
)}
|
|
65
|
-
<Copyright className='text-sm text-center text-muted-3'/>
|
|
65
|
+
<Copyright entity={entity} className='text-sm text-center text-muted-3'/>
|
|
66
66
|
</div>
|
|
67
67
|
</Box>
|
|
68
68
|
)
|
|
@@ -43,6 +43,13 @@ interface SiteDef {
|
|
|
43
43
|
*/
|
|
44
44
|
aboveCopyright?: LinkDef[]
|
|
45
45
|
|
|
46
|
+
/**
|
|
47
|
+
* The legal person the copyright line names. Sites under one brand are not
|
|
48
|
+
* always one company, and swapping the component at the bundler to change
|
|
49
|
+
* a string leaves the site unable to say who it is in its own terms.
|
|
50
|
+
*/
|
|
51
|
+
entity?: string
|
|
52
|
+
|
|
46
53
|
commerce?: CommerceConfig
|
|
47
54
|
chatbot?: ChatbotConfig
|
|
48
55
|
|