@luxfi/ui 8.2.10 → 8.2.12

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.
@@ -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 yearString = year > FIRST ? `${FIRST} - ${year}` : FIRST.toString();
13
- return /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className, children: [
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,5 +1,6 @@
1
1
  import React from 'react';
2
2
  declare const Copyright: React.FC<{
3
+ entity?: string;
3
4
  className?: string;
4
5
  }>;
5
6
  export default Copyright;
@@ -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,CAYA,CAAA;eAEc,SAAS"}
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 { jsxs, jsx } from 'react/jsx-runtime';
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 yearString = year > FIRST ? `${FIRST} - ${year}` : FIRST.toString();
11
- return /* @__PURE__ */ jsxs(Box, { className, children: [
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;IAE1B,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"}
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.10",
3
+ "version": "8.2.12",
4
4
  "description": "Cross-platform UI components on @hanzo/gui. Native mobile + web.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -52,8 +52,10 @@
52
52
  "require": "./dist/vite.cjs"
53
53
  },
54
54
  "./provider": {
55
- "import": "./src/provider.tsx",
56
- "types": "./src/provider.tsx"
55
+ "types": "./dist/provider.d.ts",
56
+ "import": "./dist/provider.js",
57
+ "require": "./dist/provider.cjs",
58
+ "default": "./dist/provider.js"
57
59
  },
58
60
  "./utils": {
59
61
  "types": "./dist/utils.d.ts",
@@ -1026,7 +1028,7 @@
1026
1028
  "@dnd-kit/core": "^6.3.1",
1027
1029
  "@dnd-kit/sortable": "^10.0.0",
1028
1030
  "@hanzo/commerce": "7.7.5",
1029
- "@hanzo/ui": "8.25.2",
1031
+ "@hanzo/ui": "8.25.5",
1030
1032
  "@hanzogui/config": "^8.1.1",
1031
1033
  "@hookform/resolvers": "5.2.2",
1032
1034
  "@luxfi/logo": "1.0.10",
@@ -1064,7 +1066,7 @@
1064
1066
  "@hanzo/appearance": ">=0.2.2",
1065
1067
  "@hanzo/design": ">=0.5.24",
1066
1068
  "@hanzo/gui": ">=8.3.0",
1067
- "@hanzo/ui": ">=8.25.2",
1069
+ "@hanzo/ui": ">=8.25.5",
1068
1070
  "@hanzogui/colors": "^8.1.1",
1069
1071
  "@hanzogui/core": "^8.1.1",
1070
1072
  "@hanzogui/lucide-icons-2": "^8.1.1",
@@ -1099,7 +1101,7 @@
1099
1101
  "@hanzo/design": "0.5.24",
1100
1102
  "@hanzo/gui": "8.3.0",
1101
1103
  "@hanzo/iam": "0.21.17",
1102
- "@hanzo/ui": "8.25.2",
1104
+ "@hanzo/ui": "8.25.5",
1103
1105
  "@hanzogui/colors": "8.1.1",
1104
1106
  "@hanzogui/config": "8.1.1",
1105
1107
  "@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
- className=''
10
+ entity = 'Lux Industries Inc.',
11
+ className = '',
10
12
  }) => {
11
13
 
12
14
  const year = new Date().getFullYear()
13
- const yearString = (year > FIRST) ? `${FIRST} - ${year}` : FIRST.toString()
15
+ const span = (year > FIRST) ? `${FIRST} - ${year}` : FIRST.toString()
14
16
 
15
17
  return (
16
- <Box className={className}>
17
- {`Copyright © ${yearString}`}&nbsp;<br className='sm:hidden'/>Lux Industries Inc.&nbsp;<br className='md:hidden'/>&nbsp;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