novaux-game-make-kit 1.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.
Binary file
Binary file
Binary file
package/dist/icon.svg ADDED
@@ -0,0 +1,26 @@
1
+ <svg width="180" height="180" viewBox="0 0 180 180" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <style>
3
+ @media (prefers-color-scheme: light) {
4
+ .background { fill: black; }
5
+ .foreground { fill: white; }
6
+ }
7
+ @media (prefers-color-scheme: dark) {
8
+ .background { fill: white; }
9
+ .foreground { fill: black; }
10
+ }
11
+ </style>
12
+ <g clip-path="url(#clip0_7960_43945)">
13
+ <rect class="background" width="180" height="180" rx="37" />
14
+ <g style="transform: scale(95%); transform-origin: center">
15
+ <path class="foreground"
16
+ d="M101.141 53H136.632C151.023 53 162.689 64.6662 162.689 79.0573V112.904H148.112V79.0573C148.112 78.7105 148.098 78.3662 148.072 78.0251L112.581 112.898C112.701 112.902 112.821 112.904 112.941 112.904H148.112V126.672H112.941C98.5504 126.672 86.5638 114.891 86.5638 100.5V66.7434H101.141V100.5C101.141 101.15 101.191 101.792 101.289 102.422L137.56 66.7816C137.255 66.7563 136.945 66.7434 136.632 66.7434H101.141V53Z" />
17
+ <path class="foreground"
18
+ d="M65.2926 124.136L14 66.7372H34.6355L64.7495 100.436V66.7372H80.1365V118.47C80.1365 126.278 70.4953 129.958 65.2926 124.136Z" />
19
+ </g>
20
+ </g>
21
+ <defs>
22
+ <clipPath id="clip0_7960_43945">
23
+ <rect width="180" height="180" fill="white" />
24
+ </clipPath>
25
+ </defs>
26
+ </svg>
@@ -0,0 +1,259 @@
1
+ import { default as default_2 } from 'react';
2
+
3
+ declare type ButtonState = 'normal' | 'pressed' | 'disable' | 'disabled';
4
+
5
+ declare type ButtonType = 'button' | 'submit' | 'reset';
6
+
7
+ declare type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
8
+
9
+ declare type CheckBoxState = 'on' | 'off' | 'disable' | 'disabled';
10
+
11
+ declare type CircleButtonState = 'normal' | 'pressed' | 'disable' | 'disabled';
12
+
13
+ declare type CircleButtonType = 'button' | 'submit' | 'reset';
14
+
15
+ export declare interface DropdownOption {
16
+ value: string;
17
+ label: string;
18
+ icon?: default_2.ReactNode;
19
+ param?: string | number;
20
+ }
21
+
22
+ export declare type DropdownVariant = 'icon' | 'icon-text' | 'text' | 'text-param';
23
+
24
+ export declare const GameBackground: default_2.FC<GameBackgroundProps>;
25
+
26
+ declare interface GameBackgroundProps {
27
+ children?: default_2.ReactNode;
28
+ }
29
+
30
+ export declare const GameBottomTabs: default_2.FC<GameBottomTabsProps>;
31
+
32
+ declare interface GameBottomTabsProps {
33
+ tabs?: string[];
34
+ activeIndex?: number;
35
+ defaultActiveIndex?: number;
36
+ onChange?: (index: number, label: string) => void;
37
+ }
38
+
39
+ export declare const GameButton: default_2.FC<GameButtonProps>;
40
+
41
+ declare interface GameButtonProps {
42
+ children: default_2.ReactNode;
43
+ variant?: ButtonVariant;
44
+ onClick?: () => void;
45
+ disabled?: boolean;
46
+ type?: ButtonType;
47
+ state?: ButtonState;
48
+ }
49
+
50
+ export declare const GameButtonStatesDemo: default_2.FC;
51
+
52
+ export declare const GameCheckBox: default_2.FC<GameCheckBoxProps>;
53
+
54
+ declare interface GameCheckBoxProps {
55
+ checked?: boolean;
56
+ defaultChecked?: boolean;
57
+ disabled?: boolean;
58
+ state?: CheckBoxState;
59
+ label?: string;
60
+ onChange?: (checked: boolean) => void;
61
+ ariaLabel?: string;
62
+ }
63
+
64
+ export declare const GameCircleButton: default_2.FC<GameCircleButtonProps>;
65
+
66
+ declare interface GameCircleButtonProps {
67
+ children?: default_2.ReactNode;
68
+ state?: CircleButtonState;
69
+ disabled?: boolean;
70
+ type?: CircleButtonType;
71
+ onClick?: () => void;
72
+ ariaLabel?: string;
73
+ }
74
+
75
+ export declare const GameDropdown: default_2.FC<GameDropdownProps>;
76
+
77
+ declare interface GameDropdownProps {
78
+ variant?: DropdownVariant;
79
+ options: DropdownOption[];
80
+ value?: string;
81
+ defaultValue?: string;
82
+ onChange?: (value: string, option: DropdownOption) => void;
83
+ placeholder?: string;
84
+ width?: number;
85
+ }
86
+
87
+ export declare const GameHeaderTabs: default_2.FC<GameHeaderTabsProps>;
88
+
89
+ declare interface GameHeaderTabsProps {
90
+ tabs?: string[];
91
+ activeIndex?: number;
92
+ defaultActiveIndex?: number;
93
+ onChange?: (index: number, label: string) => void;
94
+ }
95
+
96
+ export declare const GameIcon: default_2.FC<GameIconProps>;
97
+
98
+ declare interface GameIconProps {
99
+ children?: default_2.ReactNode;
100
+ }
101
+
102
+ export declare const GameIconSidebarTabs: default_2.FC<GameIconSidebarTabsProps>;
103
+
104
+ declare interface GameIconSidebarTabsProps {
105
+ tabs?: string[];
106
+ activeIndex?: number;
107
+ defaultActiveIndex?: number;
108
+ onChange?: (index: number, label: string) => void;
109
+ }
110
+
111
+ export declare const GameLoading: default_2.FC<GameLoadingProps>;
112
+
113
+ declare interface GameLoadingProps {
114
+ className?: string;
115
+ text?: string;
116
+ imageUrl?: string;
117
+ }
118
+
119
+ export declare const GameNavigationTabs: default_2.FC<GameNavigationTabsProps>;
120
+
121
+ declare interface GameNavigationTabsProps {
122
+ tabs?: string[];
123
+ activeIndex?: number;
124
+ defaultActiveIndex?: number;
125
+ onChange?: (index: number, label: string) => void;
126
+ }
127
+
128
+ export declare const GamePanel: default_2.FC<GamePanelProps>;
129
+
130
+ declare interface GamePanelProps {
131
+ children?: default_2.ReactNode;
132
+ title?: string;
133
+ footer?: default_2.ReactNode;
134
+ className?: string;
135
+ }
136
+
137
+ export declare const GamePrimaryPurchaseButton: default_2.FC<GamePrimaryPurchaseButtonProps>;
138
+
139
+ declare interface GamePrimaryPurchaseButtonProps {
140
+ actionText?: string;
141
+ amountText?: string;
142
+ state?: PurchaseButtonState;
143
+ disabled?: boolean;
144
+ type?: PurchaseButtonType;
145
+ onClick?: () => void;
146
+ }
147
+
148
+ export declare const GameProgressBar: default_2.FC<GameProgressBarProps>;
149
+
150
+ declare interface GameProgressBarProps {
151
+ label?: string;
152
+ value?: number;
153
+ max?: number;
154
+ showValue?: boolean;
155
+ width?: number;
156
+ }
157
+
158
+ export declare const GameResourceBar: default_2.FC<GameResourceBarProps>;
159
+
160
+ declare interface GameResourceBarProps {
161
+ children: default_2.ReactNode;
162
+ }
163
+
164
+ export declare const GameSecondaryPurchaseButton: default_2.FC<GameSecondaryPurchaseButtonProps>;
165
+
166
+ declare interface GameSecondaryPurchaseButtonProps {
167
+ actionText?: string;
168
+ amountText?: string;
169
+ state?: PurchaseButtonState_2;
170
+ disabled?: boolean;
171
+ type?: PurchaseButtonType_2;
172
+ onClick?: () => void;
173
+ }
174
+
175
+ export declare const GameSliderBar: default_2.FC<GameSliderBarProps>;
176
+
177
+ declare interface GameSliderBarProps {
178
+ label?: string;
179
+ min?: number;
180
+ max?: number;
181
+ step?: number;
182
+ value?: number;
183
+ defaultValue?: number;
184
+ showValue?: boolean;
185
+ width?: number;
186
+ disabled?: boolean;
187
+ onChange?: (value: number) => void;
188
+ }
189
+
190
+ export declare const GameTab: default_2.FC<GameTabProps>;
191
+
192
+ /** 游戏Tab组件入参 */
193
+ declare interface GameTabProps {
194
+ children: default_2.ReactNode;
195
+ isActive?: boolean;
196
+ onClick?: () => void;
197
+ }
198
+
199
+ export declare const GameTertiaryPurchaseButton: default_2.FC<GameTertiaryPurchaseButtonProps>;
200
+
201
+ declare interface GameTertiaryPurchaseButtonProps {
202
+ actionText?: string;
203
+ amountText?: string;
204
+ state?: PurchaseButtonState_3;
205
+ disabled?: boolean;
206
+ type?: PurchaseButtonType_3;
207
+ onClick?: () => void;
208
+ }
209
+
210
+ export declare const GameToggleButton: default_2.FC<GameToggleButtonProps>;
211
+
212
+ declare interface GameToggleButtonProps {
213
+ checked?: boolean;
214
+ defaultChecked?: boolean;
215
+ disabled?: boolean;
216
+ state?: ToggleState;
217
+ onChange?: (checked: boolean) => void;
218
+ ariaLabel?: string;
219
+ }
220
+
221
+ export declare const GameTopBar: default_2.FC<GameTopBarProps>;
222
+
223
+ declare interface GameTopBarProps {
224
+ pageTitle?: string[];
225
+ notificationCount?: number;
226
+ fpAmount?: string;
227
+ coinsAmount?: string;
228
+ onBack?: () => void;
229
+ onAdd?: () => void;
230
+ onSettings?: () => void;
231
+ onMenuTop?: () => void;
232
+ onMenuBottom?: () => void;
233
+ }
234
+
235
+ export declare const PlayerCard: default_2.FC<PlayerCardProps>;
236
+
237
+ declare interface PlayerCardProps {
238
+ frontImageUrl?: string;
239
+ backImageUrl?: string;
240
+ alt?: string;
241
+ className?: string;
242
+ size?: 'default' | '504' | '252';
243
+ }
244
+
245
+ declare type PurchaseButtonState = 'normal' | 'pressed' | 'disable' | 'disabled';
246
+
247
+ declare type PurchaseButtonState_2 = 'normal' | 'pressed' | 'disable' | 'disabled';
248
+
249
+ declare type PurchaseButtonState_3 = 'normal' | 'pressed' | 'disable' | 'disabled';
250
+
251
+ declare type PurchaseButtonType = 'button' | 'submit' | 'reset';
252
+
253
+ declare type PurchaseButtonType_2 = 'button' | 'submit' | 'reset';
254
+
255
+ declare type PurchaseButtonType_3 = 'button' | 'submit' | 'reset';
256
+
257
+ declare type ToggleState = 'on' | 'off' | 'disable' | 'disabled';
258
+
259
+ export { }