@hanzo/ui 1.0.15 → 2.0.0
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/blocks/components/card-block.tsx +1 -1
- package/package.json +1 -1
- package/primitives/icons/index.ts +18 -0
- package/primitives/index.ts +1 -0
- package/primitives/toggle-group.tsx +1 -1
- package/primitives/youtube-embed.tsx +1 -1
- package/style/hanzo-default-colors.css +2 -2
- package/{context-providers → style}/theme-provider.tsx +2 -2
- package/tailwind/fontFamily.tailwind.ts +7 -0
- package/tailwind/{fonts.tailwind.ts → fontSize.tailwind.ts} +1 -19
- package/tailwind/index.ts +8 -5
- package/tailwind/{tailwind.config.base.js → tailwind.config.hanzo-preset.js} +3 -2
- package/tailwind/typo-plugin/get-plugin-styles.js +42 -42
- package/tailwind/typography-test.mdx +1 -1
- package/types/index.ts +5 -15
- package/assets/lux-site-icons/android-chrome-192x192.png +0 -0
- package/assets/lux-site-icons/android-chrome-512x512.png +0 -0
- package/assets/lux-site-icons/apple-touch-icon.png +0 -0
- package/assets/lux-site-icons/favicon-16x16.png +0 -0
- package/assets/lux-site-icons/favicon-32x32.png +0 -0
- package/assets/lux-site-icons/favicon.ico +0 -0
- package/assets/standard-docs/LUX-NFT-Terms-and-Conditions.pdf +0 -0
- package/assets/standard-docs/LUX-Privacy-Policy.pdf +0 -0
- package/common/chat-widget.tsx +0 -75
- package/common/contact-dialog/contact-form.tsx +0 -111
- package/common/contact-dialog/disclaimer.tsx +0 -13
- package/common/contact-dialog/index.tsx +0 -48
- package/common/copyright.tsx +0 -21
- package/common/drawer-menu.tsx +0 -54
- package/common/footer.tsx +0 -77
- package/common/head-metadata/from-next/metadata-types.ts +0 -158
- package/common/head-metadata/from-next/opengraph-types.ts +0 -267
- package/common/head-metadata/from-next/twitter-types.ts +0 -92
- package/common/head-metadata/index.tsx +0 -208
- package/common/header/index.tsx +0 -66
- package/common/header/mobile-nav.tsx +0 -72
- package/common/header/theme-toggle.tsx +0 -26
- package/common/icons/index.tsx +0 -34
- package/common/icons/lux-logo.tsx +0 -10
- package/common/icons/secure-delivery.tsx +0 -13
- package/common/icons/social-icon.tsx +0 -35
- package/common/index.ts +0 -14
- package/common/logo.tsx +0 -71
- package/common/mini-chart/index.tsx +0 -8
- package/common/mini-chart/mini-chart-props.ts +0 -44
- package/common/mini-chart/mini-chart.tsx +0 -76
- package/common/mini-chart/wrapper.tsx +0 -23
- package/context-providers/index.ts +0 -1
- package/next/README.md +0 -11
- package/next/analytics/fpixel.ts +0 -18
- package/next/analytics/pixel-analytics.tsx +0 -55
- package/next/determine-device-middleware.ts +0 -16
- package/next/fonts/DrukTextWide-Bold-Trial.otf +0 -0
- package/next/fonts/DrukTextWide-Heavy-Trial.otf +0 -0
- package/next/fonts/DrukTextWide-Medium-Trial.otf +0 -0
- package/next/fonts/DrukWide-Bold-Trial.otf +0 -0
- package/next/fonts/DrukWide-Heavy-Trial.otf +0 -0
- package/next/fonts/DrukWide-Medium-Trial.otf +0 -0
- package/next/get-app-router-font-classes.ts +0 -12
- package/next/load-and-return-lux-next-fonts-on-import.ts +0 -94
- package/next/next-font-desc.ts +0 -28
- package/next/not-found-content.mdx +0 -5
- package/next/not-found.tsx +0 -23
- package/next/pages-router-font-vars.tsx +0 -18
- package/next/root-layout.tsx +0 -62
- package/siteDef/footer/community.tsx +0 -67
- package/siteDef/footer/company.ts +0 -37
- package/siteDef/footer/ecosystem.ts +0 -37
- package/siteDef/footer/index.tsx +0 -26
- package/siteDef/footer/legal.ts +0 -28
- package/siteDef/footer/network.ts +0 -37
- package/siteDef/footer/svg/warpcast-logo.svg +0 -12
- package/siteDef/main-nav.ts +0 -35
- package/style/social-svg.css +0 -3
- package/tailwind/lux-tw-fonts.ts +0 -37
- package/types/site-def.ts +0 -36
- /package/{common → primitives}/icons/github.tsx +0 -0
- /package/{common → primitives}/icons/youtube-logo.tsx +0 -0
package/siteDef/footer/index.tsx
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { LinkDef } from '../../types'
|
|
2
|
-
|
|
3
|
-
import ecosystem from './ecosystem'
|
|
4
|
-
import network from './network'
|
|
5
|
-
import company from './company'
|
|
6
|
-
import community from './community'
|
|
7
|
-
import { legal, legalColumn } from './legal'
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const common = [
|
|
11
|
-
ecosystem,
|
|
12
|
-
network,
|
|
13
|
-
company,
|
|
14
|
-
community,
|
|
15
|
-
] satisfies LinkDef[][]
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
ecosystem,
|
|
19
|
-
network,
|
|
20
|
-
company,
|
|
21
|
-
community,
|
|
22
|
-
legal,
|
|
23
|
-
legalColumn,
|
|
24
|
-
common as default
|
|
25
|
-
}
|
|
26
|
-
|
package/siteDef/footer/legal.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { LinkDef } from '../../types'
|
|
2
|
-
|
|
3
|
-
const legal: LinkDef[] = [
|
|
4
|
-
{
|
|
5
|
-
title: 'Terms and Conditions',
|
|
6
|
-
href: '/terms',
|
|
7
|
-
newTab: true,
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
title: 'Privacy Policy',
|
|
11
|
-
href: '/privacy',
|
|
12
|
-
newTab: true,
|
|
13
|
-
},
|
|
14
|
-
]
|
|
15
|
-
|
|
16
|
-
const title: LinkDef =
|
|
17
|
-
{
|
|
18
|
-
title: 'Legal',
|
|
19
|
-
href: '',
|
|
20
|
-
variant: 'linkFG',
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const legalColumn: LinkDef[] = [title, ...legal]
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
legal,
|
|
27
|
-
legalColumn
|
|
28
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { LinkDef } from '../../types'
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
{
|
|
5
|
-
title: 'Network',
|
|
6
|
-
href: "https://lux.network/",
|
|
7
|
-
variant: 'linkFG'
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
title: 'Lux Bridge',
|
|
11
|
-
href: "https://bridge.lux.network/",
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
title: 'Lux Explorer',
|
|
15
|
-
href: "https://explore.lux.network/",
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
title: 'Lux Wallet',
|
|
19
|
-
href: "https://wallet.lux.network/",
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
title: 'Lux Safe',
|
|
23
|
-
href: "https://safe.lux.network/",
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
title: 'Lux Validator',
|
|
27
|
-
href: "https://lux.market/validator/",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
title: 'Open Source',
|
|
31
|
-
href: 'https://github.com/luxdefi',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
title: 'Launch Subnet',
|
|
35
|
-
href: 'https://docs.lux.network/build/subnet/hello-subnet',
|
|
36
|
-
},
|
|
37
|
-
] satisfies LinkDef[]
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 1260 1260" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g clip-path="url(#clip0_1_2)">
|
|
3
|
-
<!-- path d="M947.747 1259.61H311.861C139.901 1259.61 0 1119.72 0 947.752V311.871C0 139.907 139.901 0.00541362 311.861 0.00541362H947.747C1119.71 0.00541362 1259.61 139.907 1259.61 311.871V947.752C1259.61 1119.72 1119.71 1259.61 947.747 1259.61Z" fill="#472A91"></path -->
|
|
4
|
-
<path d="M826.513 398.633L764.404 631.889L702.093 398.633H558.697L495.789 633.607L433.087 398.633H269.764L421.528 914.36H562.431L629.807 674.876L697.181 914.36H838.388L989.819 398.633H826.513Z" fill="currentColor">
|
|
5
|
-
</path>
|
|
6
|
-
</g>
|
|
7
|
-
<defs>
|
|
8
|
-
<clipPath id="clip0_1_2">
|
|
9
|
-
<rect width="1259.61" height="1259.61" fill="white"></rect>
|
|
10
|
-
</clipPath>
|
|
11
|
-
</defs>
|
|
12
|
-
</svg>
|
package/siteDef/main-nav.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { LinkDef } from '../types'
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
{
|
|
5
|
-
title: "AI",
|
|
6
|
-
href: "https://lux.chat",
|
|
7
|
-
newTab: false,
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
title: "Credit",
|
|
11
|
-
href: "https://lux.credit",
|
|
12
|
-
newTab: false,
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
title: "Exchange",
|
|
16
|
-
href: "https://lux.exchange",
|
|
17
|
-
newTab: false,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
title: "Finance",
|
|
21
|
-
href: "https://lux.finance",
|
|
22
|
-
newTab: false,
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
title: "Market",
|
|
26
|
-
href: "https://lux.market",
|
|
27
|
-
newTab: false,
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
title: "Network",
|
|
31
|
-
href: "https://lux.network",
|
|
32
|
-
newTab: false,
|
|
33
|
-
},
|
|
34
|
-
] satisfies LinkDef[]
|
|
35
|
-
|
package/style/social-svg.css
DELETED
package/tailwind/lux-tw-fonts.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type TwFontDesc from './tw-font-desc'
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
{
|
|
5
|
-
fontFamily: ['var(--font-inter)'], // do not provide fall-backs due to next bug
|
|
6
|
-
cssVar: '--font-inter',
|
|
7
|
-
twName: 'sans'
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
fontFamily: ['var(--font-druk-text-wide)'], // do not provide fall-backs due to next bug
|
|
11
|
-
cssVar: '--font-druk-text-wide',
|
|
12
|
-
twName: 'nav'
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
fontFamily: ['var(--font-druk-wide)'], // do not provide fall-backs due to next bug
|
|
16
|
-
cssVar: '--font-druk-wide',
|
|
17
|
-
twName: 'heading'
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
twName: 'serif',
|
|
21
|
-
fontFamily: ['ui-serif', 'Georgia', 'Cambria', '"Times New Roman"', 'Times']
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
twName: 'mono',
|
|
25
|
-
fontFamily: [
|
|
26
|
-
'ui-monospace',
|
|
27
|
-
'SFMono-Regular',
|
|
28
|
-
'Menlo',
|
|
29
|
-
'Monaco',
|
|
30
|
-
'Consolas',
|
|
31
|
-
'"Liberation Mono"',
|
|
32
|
-
'"Courier New"',
|
|
33
|
-
'monospace',
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
] as TwFontDesc[]
|
package/types/site-def.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type LinkDef from './link-def'
|
|
2
|
-
|
|
3
|
-
interface SiteDef {
|
|
4
|
-
/** url of this site. All nav links in the system will show it in 'current' state */
|
|
5
|
-
currentAs?: string
|
|
6
|
-
nav: {
|
|
7
|
-
/** common elements (will auto-select currentAs if it's provide) */
|
|
8
|
-
/** optional feature element. right-most after 'elements' (any min-w is ignored) */
|
|
9
|
-
common: LinkDef[]
|
|
10
|
-
featured?: LinkDef[]
|
|
11
|
-
auth?: boolean
|
|
12
|
-
cart?: React.ReactNode
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Array of columns, each of which itself is an array of links
|
|
17
|
-
* (or "title defs" where href='' and variant='linkFG')
|
|
18
|
-
* Common use case: To render a site-specific first column:
|
|
19
|
-
* {
|
|
20
|
-
* footer[myColumn, ...commonColumnsFromUi]
|
|
21
|
-
* }
|
|
22
|
-
* see: @hanzo/ui/siteDef/footer (default export)
|
|
23
|
-
* or @hanzo/ui/siteDef/footer/common
|
|
24
|
-
*/
|
|
25
|
-
footer: LinkDef[][]
|
|
26
|
-
|
|
27
|
-
/** optional override of default 'above copyright' horizantal links */
|
|
28
|
-
/** default (undefined or absent): @ui/sideDef/footer/legal are rendered */
|
|
29
|
-
/** [] renders nothing above the copyright */
|
|
30
|
-
aboveCopyright?: LinkDef[]
|
|
31
|
-
|
|
32
|
-
/** any site-specific stuff we'd like access to (link urls, etc) */
|
|
33
|
-
ext?: any
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { type SiteDef as default }
|
|
File without changes
|
|
File without changes
|