@luxfi/ui 8.2.3 → 8.2.5
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/index.cjs +2008 -85
- package/dist/index.css +132 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2007 -111
- package/dist/site/root-layout/index.cjs +2 -89
- package/dist/site/root-layout/index.d.ts +1 -0
- package/dist/site/root-layout/index.d.ts.map +1 -1
- package/dist/site/root-layout/index.js +2 -88
- package/dist/site/site-def/footer/company.d.ts +3 -3
- package/package.json +1 -1
- package/src/index.ts +5 -0
- package/src/site/root-layout/index.tsx +2 -3
- package/src/site/style/lux-fonts.css +1 -2
- package/dist/site/next/font/font-desc.cjs +0 -2
- package/dist/site/next/font/font-desc.d.ts +0 -19
- package/dist/site/next/font/font-desc.d.ts.map +0 -1
- package/dist/site/next/font/font-desc.js +0 -1
- package/dist/site/next/font/fonts.cjs +0 -42
- package/dist/site/next/font/fonts.d.ts +0 -4
- package/dist/site/next/font/fonts.d.ts.map +0 -1
- package/dist/site/next/font/fonts.js +0 -40
- package/dist/site/next/font/get-app-router-font-classes.cjs +0 -96
- package/dist/site/next/font/get-app-router-font-classes.d.ts +0 -15
- package/dist/site/next/font/get-app-router-font-classes.d.ts.map +0 -1
- package/dist/site/next/font/get-app-router-font-classes.js +0 -90
- package/dist/site/next/font/load-and-return-lux-next-fonts-on-import.cjs +0 -90
- package/dist/site/next/font/load-and-return-lux-next-fonts-on-import.d.ts +0 -8
- package/dist/site/next/font/load-and-return-lux-next-fonts-on-import.d.ts.map +0 -1
- package/dist/site/next/font/load-and-return-lux-next-fonts-on-import.js +0 -84
- package/dist/site/next/font/local/InterVariable-Italic.ttf +0 -0
- package/dist/site/next/font/local/InterVariable-Italic.woff2 +0 -0
- package/dist/site/next/font/local/InterVariable.ttf +0 -0
- package/dist/site/next/font/local/InterVariable.woff2 +0 -0
- package/dist/site/next/font/local/Zen-Variable.woff2 +0 -0
- package/dist/site/next/font/next-font-desc.cjs +0 -2
- package/dist/site/next/font/next-font-desc.d.ts +0 -20
- package/dist/site/next/font/next-font-desc.d.ts.map +0 -1
- package/dist/site/next/font/next-font-desc.js +0 -1
- package/dist/site/next/font/pages-router-font-vars.cjs +0 -100
- package/dist/site/next/font/pages-router-font-vars.d.ts +0 -3
- package/dist/site/next/font/pages-router-font-vars.d.ts.map +0 -1
- package/dist/site/next/font/pages-router-font-vars.js +0 -94
- package/src/site/next/font/font-desc.ts +0 -18
- package/src/site/next/font/fonts.ts +0 -40
- package/src/site/next/font/get-app-router-font-classes.ts +0 -19
- package/src/site/next/font/load-and-return-lux-next-fonts-on-import.ts +0 -60
- package/src/site/next/font/local/InterVariable-Italic.ttf +0 -0
- package/src/site/next/font/local/InterVariable-Italic.woff2 +0 -0
- package/src/site/next/font/local/InterVariable.ttf +0 -0
- package/src/site/next/font/local/InterVariable.woff2 +0 -0
- package/src/site/next/font/local/Zen-Variable.woff2 +0 -0
- package/src/site/next/font/next-font-desc.ts +0 -29
- package/src/site/next/font/pages-router-font-vars.tsx +0 -18
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type localFont from 'next/font/local'
|
|
2
|
-
|
|
3
|
-
import type { FontDesc } from './font-desc'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* What a next/font loader hands back, DERIVED from the loader.
|
|
7
|
-
*
|
|
8
|
-
* These were two hand-copied declarations marked "from next repo" — a copy of a
|
|
9
|
-
* type that keeps moving, which is how the OpenGraph types in ../head-metadata
|
|
10
|
-
* went stale and failed as "two different types with this name exist, but they
|
|
11
|
-
* are unrelated". `ReturnType` names the position and lets Next say what lives
|
|
12
|
-
* there. The loader answers with a union — a font is only given a variable
|
|
13
|
-
* when it was asked for one — so `Extract` picks the half that has it.
|
|
14
|
-
*/
|
|
15
|
-
export type NextFontWithVariable = Extract<ReturnType<typeof localFont>, { variable: string }>
|
|
16
|
-
|
|
17
|
-
/*
|
|
18
|
-
NextFontDesc and FontDesc have to be seperate because they are needed
|
|
19
|
-
at different times during the next compile / build. Otherwise a nasty
|
|
20
|
-
race condition happens! That's why they are in different files.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
interface NextFontDesc extends FontDesc {
|
|
24
|
-
nextFont: NextFontWithVariable
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
type NextFontDesc as default,
|
|
29
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import nextFonts from './load-and-return-lux-next-fonts-on-import'
|
|
3
|
-
import type NextFontDesc from './next-font-desc'
|
|
4
|
-
|
|
5
|
-
const PagesRouterFontVars: React.FC = () => {
|
|
6
|
-
|
|
7
|
-
const fontVars = nextFonts.map((fd: NextFontDesc) => (
|
|
8
|
-
`${fd.cssVar}: ${fd.nextFont.style.fontFamily};`
|
|
9
|
-
)).join('\n')
|
|
10
|
-
|
|
11
|
-
return <style jsx global>{`
|
|
12
|
-
html {
|
|
13
|
-
${fontVars}
|
|
14
|
-
}
|
|
15
|
-
`}</style>
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export default PagesRouterFontVars
|