@luxfi/ui 6.1.2 → 6.1.3
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/LICENSE +122 -0
- package/package.json +30 -24
- package/src/index.ts +139 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
Lux Ecosystem License
|
|
2
|
+
Version 1.2, December 2025
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2020-2025 Lux Industries Inc.
|
|
5
|
+
All rights reserved.
|
|
6
|
+
|
|
7
|
+
TECHNOLOGY PORTFOLIO - PATENT APPLICATIONS PLANNED
|
|
8
|
+
Contact: licensing@lux.network
|
|
9
|
+
|
|
10
|
+
================================================================================
|
|
11
|
+
TERMS AND CONDITIONS
|
|
12
|
+
================================================================================
|
|
13
|
+
|
|
14
|
+
1. DEFINITIONS
|
|
15
|
+
|
|
16
|
+
"Lux Primary Network" means the official Lux blockchain with Network ID=1
|
|
17
|
+
and EVM Chain ID=96369.
|
|
18
|
+
|
|
19
|
+
"Authorized Network" means the Lux Primary Network, official testnets/devnets,
|
|
20
|
+
and any L1/L2/L3 chain descending from the Lux Primary Network.
|
|
21
|
+
|
|
22
|
+
"Descending Chain" means an L1/L2/L3 chain built on, anchored to, or deriving
|
|
23
|
+
security from the Lux Primary Network or its authorized testnets.
|
|
24
|
+
|
|
25
|
+
"Research Use" means non-commercial academic research, education, personal
|
|
26
|
+
study, or evaluation purposes.
|
|
27
|
+
|
|
28
|
+
"Commercial Use" means any use in connection with a product or service
|
|
29
|
+
offered for sale or fee, internal use by a for-profit entity, or any use
|
|
30
|
+
to generate revenue.
|
|
31
|
+
|
|
32
|
+
2. GRANT OF LICENSE
|
|
33
|
+
|
|
34
|
+
Subject to these terms, Lux Industries Inc grants you a non-exclusive,
|
|
35
|
+
royalty-free license to:
|
|
36
|
+
|
|
37
|
+
(a) Use for Research Use without restriction;
|
|
38
|
+
|
|
39
|
+
(b) Operate on the Lux Primary Network (Network ID=1, EVM Chain ID=96369);
|
|
40
|
+
|
|
41
|
+
(c) Operate on official Lux testnets and devnets;
|
|
42
|
+
|
|
43
|
+
(d) Operate L1/L2/L3 chains descending from the Lux Primary Network;
|
|
44
|
+
|
|
45
|
+
(e) Build applications within the Lux ecosystem;
|
|
46
|
+
|
|
47
|
+
(f) Contribute improvements back to the original repositories.
|
|
48
|
+
|
|
49
|
+
3. RESTRICTIONS
|
|
50
|
+
|
|
51
|
+
Without a commercial license from Lux Industries Inc, you may NOT:
|
|
52
|
+
|
|
53
|
+
(a) Fork the Lux Network or any Lux software;
|
|
54
|
+
|
|
55
|
+
(b) Create competing networks not descending from Lux Primary Network;
|
|
56
|
+
|
|
57
|
+
(c) Use for Commercial Use outside the Lux ecosystem;
|
|
58
|
+
|
|
59
|
+
(d) Sublicense or transfer rights outside the Lux ecosystem;
|
|
60
|
+
|
|
61
|
+
(e) Use to create competing blockchain networks, exchanges, custody
|
|
62
|
+
services, or cryptographic systems outside the Lux ecosystem.
|
|
63
|
+
|
|
64
|
+
4. NO FORKS POLICY
|
|
65
|
+
|
|
66
|
+
Lux Industries Inc maintains ZERO TOLERANCE for unauthorized forks.
|
|
67
|
+
Any fork or deployment on an unauthorized network constitutes:
|
|
68
|
+
|
|
69
|
+
(a) Breach of this license;
|
|
70
|
+
(b) Grounds for immediate legal action.
|
|
71
|
+
|
|
72
|
+
5. RIGHTS RESERVATION
|
|
73
|
+
|
|
74
|
+
All rights not explicitly granted are reserved by Lux Industries Inc.
|
|
75
|
+
|
|
76
|
+
We plan to apply for patent protection for the technology in this
|
|
77
|
+
repository. Any implementation outside the Lux ecosystem may require
|
|
78
|
+
a separate commercial license.
|
|
79
|
+
|
|
80
|
+
6. DISCLAIMER OF WARRANTY
|
|
81
|
+
|
|
82
|
+
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
83
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
84
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
85
|
+
|
|
86
|
+
7. LIMITATION OF LIABILITY
|
|
87
|
+
|
|
88
|
+
IN NO EVENT SHALL LUX INDUSTRIES INC BE LIABLE FOR ANY CLAIM, DAMAGES
|
|
89
|
+
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
90
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE.
|
|
91
|
+
|
|
92
|
+
8. TERMINATION
|
|
93
|
+
|
|
94
|
+
This license terminates immediately upon any breach, including but not
|
|
95
|
+
limited to deployment on unauthorized networks or creation of forks.
|
|
96
|
+
|
|
97
|
+
9. GOVERNING LAW
|
|
98
|
+
|
|
99
|
+
This License shall be governed by the laws of the State of Delaware.
|
|
100
|
+
|
|
101
|
+
10. COMMERCIAL LICENSING
|
|
102
|
+
|
|
103
|
+
For commercial use outside the Lux ecosystem:
|
|
104
|
+
|
|
105
|
+
Lux Industries Inc.
|
|
106
|
+
Email: licensing@lux.network
|
|
107
|
+
Subject: Commercial License Request
|
|
108
|
+
|
|
109
|
+
================================================================================
|
|
110
|
+
TL;DR
|
|
111
|
+
================================================================================
|
|
112
|
+
|
|
113
|
+
- Research/academic use = OK
|
|
114
|
+
- Lux Primary Network (Network ID=1, Chain ID=96369) = OK
|
|
115
|
+
- L1/L2/L3 chains descending from Lux Primary Network = OK
|
|
116
|
+
- Commercial products outside Lux ecosystem = Contact licensing@lux.network
|
|
117
|
+
- Forks = Absolutely not
|
|
118
|
+
|
|
119
|
+
================================================================================
|
|
120
|
+
|
|
121
|
+
See LP-0012 for full licensing documentation:
|
|
122
|
+
https://github.com/luxfi/lps/blob/main/LPs/lp-0012-ecosystem-licensing.md
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxfi/ui",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.3",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@gorhom/bottom-sheet": "4.6.4",
|
|
6
6
|
"@react-native-masked-view/masked-view": "0.3.2",
|
|
7
7
|
"@shopify/flash-list": "1.7.6",
|
|
8
8
|
"@shopify/react-native-skia": "2.2.20",
|
|
9
9
|
"@storybook/react": "8.5.2",
|
|
10
|
-
"@hanzogui/adapt": "
|
|
11
|
-
"@hanzogui/animations-css": "
|
|
12
|
-
"@hanzogui/animations-react-native": "
|
|
13
|
-
"@hanzogui/font-geist-sans": "
|
|
14
|
-
"@hanzogui/helpers-icon": "
|
|
15
|
-
"@hanzogui/portal": "
|
|
16
|
-
"@hanzogui/react-native-media-driver": "
|
|
17
|
-
"@hanzogui/remove-scroll": "
|
|
18
|
-
"@hanzogui/theme-base": "
|
|
10
|
+
"@hanzogui/adapt": "3.0.2",
|
|
11
|
+
"@hanzogui/animations-css": "3.0.2",
|
|
12
|
+
"@hanzogui/animations-react-native": "3.0.2",
|
|
13
|
+
"@hanzogui/font-geist-sans": "3.0.2",
|
|
14
|
+
"@hanzogui/helpers-icon": "3.0.2",
|
|
15
|
+
"@hanzogui/portal": "3.0.2",
|
|
16
|
+
"@hanzogui/react-native-media-driver": "3.0.2",
|
|
17
|
+
"@hanzogui/remove-scroll": "3.0.2",
|
|
18
|
+
"@hanzogui/theme-base": "3.0.2",
|
|
19
19
|
"@tanstack/react-query": "5.90.20",
|
|
20
20
|
"@testing-library/react": "16.3.0",
|
|
21
21
|
"ethers": "5.7.2",
|
|
@@ -35,21 +35,26 @@
|
|
|
35
35
|
"react-native-svg": "15.13.0",
|
|
36
36
|
"react-native-webview": "13.13.5",
|
|
37
37
|
"react-remove-scroll": "2.7.2",
|
|
38
|
-
"tamagui": "1.136.1",
|
|
39
38
|
"uuid": "9.0.0",
|
|
40
39
|
"wcag-contrast": "3.0.0",
|
|
41
|
-
"@
|
|
40
|
+
"@hanzogui/dialog": "3.0.2",
|
|
41
|
+
"@hanzogui/sheet": "3.0.2",
|
|
42
|
+
"@hanzogui/visually-hidden": "3.0.2",
|
|
43
|
+
"@hanzo/gui": "2.0.6",
|
|
44
|
+
"@hanzogui/stacks": "3.0.2",
|
|
45
|
+
"@hanzogui/web": "3.0.2",
|
|
46
|
+
"@hanzogui/spacer": "3.0.2",
|
|
47
|
+
"@luxfi/utilities": "^1.0.6"
|
|
42
48
|
},
|
|
43
49
|
"devDependencies": {
|
|
44
50
|
"@storybook/test": "8.5.2",
|
|
45
|
-
"@hanzogui/animations-moti": "
|
|
46
|
-
"@hanzogui/core": "
|
|
51
|
+
"@hanzogui/animations-moti": "3.0.2",
|
|
52
|
+
"@hanzogui/core": "3.0.2",
|
|
47
53
|
"@types/chrome": "0.0.304",
|
|
48
54
|
"@types/fs-extra": "11.0.2",
|
|
49
55
|
"@types/node": "22.13.1",
|
|
50
56
|
"@types/qrcode": "1.5.5",
|
|
51
57
|
"@typescript/native-preview": "7.0.0-dev.20260311.1",
|
|
52
|
-
"@luxfi/eslint-config": "workspace:^",
|
|
53
58
|
"@vitejs/plugin-react": "4.7.0",
|
|
54
59
|
"camelcase": "6.3.0",
|
|
55
60
|
"cheerio": "1.0.0-rc.12",
|
|
@@ -60,7 +65,8 @@
|
|
|
60
65
|
"typescript": "5.8.3",
|
|
61
66
|
"uppercamelcase": "3.0.0",
|
|
62
67
|
"vitest": "3.2.1",
|
|
63
|
-
"
|
|
68
|
+
"@luxfi/eslint-config": "^1.0.6",
|
|
69
|
+
"vitest-presets": "^0.0.0"
|
|
64
70
|
},
|
|
65
71
|
"files": [
|
|
66
72
|
"types",
|
|
@@ -69,6 +75,13 @@
|
|
|
69
75
|
"main": "./src/index.ts",
|
|
70
76
|
"module:jsx": "src",
|
|
71
77
|
"private": false,
|
|
78
|
+
"nx": {
|
|
79
|
+
"includedScripts": []
|
|
80
|
+
},
|
|
81
|
+
"sideEffects": [
|
|
82
|
+
"*.css"
|
|
83
|
+
],
|
|
84
|
+
"types": "./types/index",
|
|
72
85
|
"scripts": {
|
|
73
86
|
"build:icons": "nx build:icons ui",
|
|
74
87
|
"build:icons:missing": "nx build:icons:missing ui",
|
|
@@ -83,12 +96,5 @@
|
|
|
83
96
|
"typecheck": "nx typecheck ui",
|
|
84
97
|
"typecheck:tsgo": "nx typecheck:tsgo ui",
|
|
85
98
|
"watch": "nx watch ui"
|
|
86
|
-
}
|
|
87
|
-
"nx": {
|
|
88
|
-
"includedScripts": []
|
|
89
|
-
},
|
|
90
|
-
"sideEffects": [
|
|
91
|
-
"*.css"
|
|
92
|
-
],
|
|
93
|
-
"types": "./types/index"
|
|
99
|
+
}
|
|
94
100
|
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
export { PortalProvider } from '@hanzogui/portal'
|
|
2
|
+
export type {
|
|
3
|
+
Adapt,
|
|
4
|
+
AnchorProps,
|
|
5
|
+
CircleProps,
|
|
6
|
+
ColorTokens,
|
|
7
|
+
GetProps,
|
|
8
|
+
GetRef,
|
|
9
|
+
GetThemeValueForKey,
|
|
10
|
+
ImageProps,
|
|
11
|
+
PopperProps,
|
|
12
|
+
SpaceTokens,
|
|
13
|
+
TabLayout,
|
|
14
|
+
TabsTabProps,
|
|
15
|
+
TamaguiElement as GuiElement,
|
|
16
|
+
TamaguiProviderProps as GuiProviderProps,
|
|
17
|
+
TextStyle,
|
|
18
|
+
ThemeKeys,
|
|
19
|
+
ThemeName,
|
|
20
|
+
Tokens,
|
|
21
|
+
ViewProps,
|
|
22
|
+
} from '@hanzo/gui'
|
|
23
|
+
export {
|
|
24
|
+
Accordion,
|
|
25
|
+
Anchor,
|
|
26
|
+
AnimatePresence,
|
|
27
|
+
Avatar,
|
|
28
|
+
Circle,
|
|
29
|
+
createGui,
|
|
30
|
+
getToken,
|
|
31
|
+
getTokenValue,
|
|
32
|
+
Image,
|
|
33
|
+
isTouchable,
|
|
34
|
+
ListItem,
|
|
35
|
+
Main,
|
|
36
|
+
Nav,
|
|
37
|
+
Paragraph,
|
|
38
|
+
Popover,
|
|
39
|
+
Portal,
|
|
40
|
+
Progress,
|
|
41
|
+
RadioGroup,
|
|
42
|
+
ScrollView,
|
|
43
|
+
Select,
|
|
44
|
+
Sheet,
|
|
45
|
+
Slider,
|
|
46
|
+
Spacer,
|
|
47
|
+
Square,
|
|
48
|
+
styled,
|
|
49
|
+
Tabs,
|
|
50
|
+
TamaguiProvider as GuiProvider,
|
|
51
|
+
Theme,
|
|
52
|
+
useComposedRefs,
|
|
53
|
+
useIsTouchDevice,
|
|
54
|
+
useMedia,
|
|
55
|
+
usePropsAndStyle,
|
|
56
|
+
useWindowDimensions,
|
|
57
|
+
View,
|
|
58
|
+
VisuallyHidden,
|
|
59
|
+
YGroup,
|
|
60
|
+
} from '@hanzo/gui'
|
|
61
|
+
// linear-gradient is native-only, not needed for web SPA build
|
|
62
|
+
export * from '@luxfi/ui/src/animations'
|
|
63
|
+
export * from './components/AnimatableCopyIcon/AnimatableCopyIcon'
|
|
64
|
+
export * from './components/AnimatedCopyLabel/AnimatedCopyLabel'
|
|
65
|
+
export { Button } from './components/buttons/Button/Button'
|
|
66
|
+
export { CustomButtonFrame } from './components/buttons/Button/components/CustomButtonFrame/CustomButtonFrame'
|
|
67
|
+
export { ThemedSpinningLoader } from './components/buttons/Button/components/ThemedSpinnerLoader'
|
|
68
|
+
export type { ButtonEmphasis, ButtonProps, ButtonVariant } from './components/buttons/Button/types'
|
|
69
|
+
export { DropdownButton } from './components/buttons/DropdownButton/DropdownButton'
|
|
70
|
+
export type { DropdownButtonProps } from './components/buttons/DropdownButton/types'
|
|
71
|
+
export { IconButton, type IconButtonProps } from './components/buttons/IconButton/IconButton'
|
|
72
|
+
export * from './components/buttons/PlusMinusButton'
|
|
73
|
+
export * from './components/checkbox'
|
|
74
|
+
export * from './components/dropdownMenuSheet/DropdownMenuSheetItem'
|
|
75
|
+
export { getMenuItemColor } from './components/dropdownMenuSheet/utils'
|
|
76
|
+
export type { GeneratedIcon, IconProps } from './components/factories/createIcon'
|
|
77
|
+
export * from './components/InlineCard/InlineCard'
|
|
78
|
+
// Re-export Input from gui
|
|
79
|
+
export { Input, type InputProps, type InputRef } from './components/input/Input'
|
|
80
|
+
export * from './components/input/utils'
|
|
81
|
+
export { type AnimatedScrollView, Flex, type FlexProps, flexStyles, Inset, Separator } from './components/layout'
|
|
82
|
+
export { HorizontalDottedLineSeparator } from './components/lines/HorizontalDottedLineSeparator'
|
|
83
|
+
export { VerticalDottedLineSeparator } from './components/lines/VerticalDottedLineSeparator'
|
|
84
|
+
export { ModalCloseIcon, WebBottomSheet } from './components/modal/AdaptiveWebModal'
|
|
85
|
+
export * from './components/OverKeyboardContent/OverKeyboardContent'
|
|
86
|
+
export { AdaptiveWebPopoverContent } from './components/popover/AdaptiveWebPopoverContent'
|
|
87
|
+
export { QRCodeDisplay } from './components/QRCode/QRCodeDisplay'
|
|
88
|
+
export { RefreshButton } from './components/RefreshButton/RefreshButton'
|
|
89
|
+
export * from './components/RemoveScroll/RemoveScroll'
|
|
90
|
+
export * from './components/radio/Radio'
|
|
91
|
+
export * from './components/SegmentedControl/SegmentedControl'
|
|
92
|
+
export { ClickableWithinGesture } from './components/swipeablecards/ClickableWithinGesture'
|
|
93
|
+
export { SwipeableCardStack } from './components/swipeablecards/SwipeableCardStack'
|
|
94
|
+
export { Switch } from './components/switch/Switch'
|
|
95
|
+
export type { SwitchProps } from './components/switch/types'
|
|
96
|
+
export * from './components/text'
|
|
97
|
+
export { Tooltip } from './components/tooltip/Tooltip'
|
|
98
|
+
export * from './components/touchable'
|
|
99
|
+
export { Unicon } from './components/Unicon'
|
|
100
|
+
export * from './components/Unicon/utils'
|
|
101
|
+
export * from './components/UniversalImage/ImageSettingsContext'
|
|
102
|
+
export * from './components/UniversalImage/types'
|
|
103
|
+
export * from './components/UniversalImage/UniversalImage'
|
|
104
|
+
export * from './components/UniversalImage/utils'
|
|
105
|
+
export { MobileDeviceHeight } from './hooks/constants'
|
|
106
|
+
export { useIsDarkMode } from './hooks/useIsDarkMode'
|
|
107
|
+
export { useIsShortMobileDevice } from './hooks/useIsShortMobileDevice'
|
|
108
|
+
export { type DynamicColor, useSporeColors } from './hooks/useSporeColors'
|
|
109
|
+
// Loaders
|
|
110
|
+
export * from './loading/FlexLoader'
|
|
111
|
+
export * from './loading/Loader'
|
|
112
|
+
export * from './loading/NftCardLoader'
|
|
113
|
+
export { PulseRipple } from './loading/PulseRipple'
|
|
114
|
+
export * from './loading/RefreshIcon'
|
|
115
|
+
export * from './loading/Shine'
|
|
116
|
+
export * from './loading/Skeleton'
|
|
117
|
+
export * from './loading/SpinningLoader'
|
|
118
|
+
export * from './loading/TransactionLoader'
|
|
119
|
+
// Trading components (white-label primitives)
|
|
120
|
+
export { tradingColors, type TradingSide } from './components/trading/theme'
|
|
121
|
+
export { ActionButton, type ActionButtonProps } from './components/trading/ActionButton'
|
|
122
|
+
export { BuySellToggle as BuySellToggleWidget, type BuySellToggleProps } from './components/trading/BuySellToggle'
|
|
123
|
+
export { StatBar, type StatBarProps, type StatItem } from './components/trading/StatBar'
|
|
124
|
+
export { SwapArrow, type SwapArrowProps } from './components/trading/SwapArrow'
|
|
125
|
+
export { TokenInput, type TokenInputProps } from './components/trading/TokenInput'
|
|
126
|
+
export { TokenPill as TokenPillWidget, type TokenPillProps } from './components/trading/TokenPill'
|
|
127
|
+
export { TradeRow as TradeRowWidget, type TradeRowProps } from './components/trading/TradeRow'
|
|
128
|
+
// Chart theme (shared lightweight-charts config generators)
|
|
129
|
+
export { chartColors, getChartOptions, getCandlestickOptions, getVolumeOptions } from './components/charts/theme'
|
|
130
|
+
// Theme
|
|
131
|
+
export * from './styles/ScrollbarStyles'
|
|
132
|
+
export * from './theme/shadows'
|
|
133
|
+
export * from './utils/colors'
|
|
134
|
+
export { EM_DASH } from './utils/constants'
|
|
135
|
+
export * from './utils/gui'
|
|
136
|
+
export { DEXText } from './components/text/DEXText'
|
|
137
|
+
export { DEXGeneric } from './components/icons/DEXGeneric'
|
|
138
|
+
|
|
139
|
+
export { assertWebElement } from '@luxfi/ui/src/utils/gui'
|