novaux-game-make-kit 1.0.0 → 1.0.2
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.d.ts +71 -0
- package/dist/index.js +1769 -733
- package/dist/index.umd.cjs +10 -10
- package/dist/popup-close-icon.svg +3 -0
- package/dist/popup-large-bg.png +0 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
2
|
|
|
3
|
+
declare type AmountButtonState = 'normal' | 'disable' | 'disabled';
|
|
4
|
+
|
|
3
5
|
declare type ButtonState = 'normal' | 'pressed' | 'disable' | 'disabled';
|
|
4
6
|
|
|
5
7
|
declare type ButtonType = 'button' | 'submit' | 'reset';
|
|
@@ -21,6 +23,20 @@ export declare interface DropdownOption {
|
|
|
21
23
|
|
|
22
24
|
export declare type DropdownVariant = 'icon' | 'icon-text' | 'text' | 'text-param';
|
|
23
25
|
|
|
26
|
+
export declare const GameAmountButton: default_2.FC<GameAmountButtonProps>;
|
|
27
|
+
|
|
28
|
+
declare interface GameAmountButtonProps {
|
|
29
|
+
value?: number;
|
|
30
|
+
defaultValue?: number;
|
|
31
|
+
min?: number;
|
|
32
|
+
max?: number;
|
|
33
|
+
step?: number;
|
|
34
|
+
state?: AmountButtonState;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
onChange?: (value: number) => void;
|
|
37
|
+
ariaLabel?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
24
40
|
export declare const GameBackground: default_2.FC<GameBackgroundProps>;
|
|
25
41
|
|
|
26
42
|
declare interface GameBackgroundProps {
|
|
@@ -108,6 +124,14 @@ declare interface GameIconSidebarTabsProps {
|
|
|
108
124
|
onChange?: (index: number, label: string) => void;
|
|
109
125
|
}
|
|
110
126
|
|
|
127
|
+
export declare const GameLimitedTime: default_2.FC<GameLimitedTimeProps>;
|
|
128
|
+
|
|
129
|
+
declare interface GameLimitedTimeProps {
|
|
130
|
+
value?: string;
|
|
131
|
+
className?: string;
|
|
132
|
+
icon?: default_2.ReactNode;
|
|
133
|
+
}
|
|
134
|
+
|
|
111
135
|
export declare const GameLoading: default_2.FC<GameLoadingProps>;
|
|
112
136
|
|
|
113
137
|
declare interface GameLoadingProps {
|
|
@@ -134,6 +158,30 @@ declare interface GamePanelProps {
|
|
|
134
158
|
className?: string;
|
|
135
159
|
}
|
|
136
160
|
|
|
161
|
+
export declare const GamePopup: default_2.FC<GamePopupProps>;
|
|
162
|
+
|
|
163
|
+
export declare const GamePopupLarge: default_2.FC<GamePopupLargeProps>;
|
|
164
|
+
|
|
165
|
+
declare interface GamePopupLargeProps {
|
|
166
|
+
isOpen: boolean;
|
|
167
|
+
onClose: () => void;
|
|
168
|
+
title?: string;
|
|
169
|
+
children?: default_2.ReactNode;
|
|
170
|
+
className?: string;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
declare interface GamePopupProps {
|
|
174
|
+
isOpen: boolean;
|
|
175
|
+
onClose: () => void;
|
|
176
|
+
title?: string;
|
|
177
|
+
children?: default_2.ReactNode;
|
|
178
|
+
primaryButtonText?: string;
|
|
179
|
+
onPrimaryClick?: () => void;
|
|
180
|
+
secondaryButtonText?: string;
|
|
181
|
+
onSecondaryClick?: () => void;
|
|
182
|
+
className?: string;
|
|
183
|
+
}
|
|
184
|
+
|
|
137
185
|
export declare const GamePrimaryPurchaseButton: default_2.FC<GamePrimaryPurchaseButtonProps>;
|
|
138
186
|
|
|
139
187
|
declare interface GamePrimaryPurchaseButtonProps {
|
|
@@ -187,6 +235,17 @@ declare interface GameSliderBarProps {
|
|
|
187
235
|
onChange?: (value: number) => void;
|
|
188
236
|
}
|
|
189
237
|
|
|
238
|
+
export declare const GameSwitchButton: default_2.FC<GameSwitchButtonProps>;
|
|
239
|
+
|
|
240
|
+
declare interface GameSwitchButtonProps {
|
|
241
|
+
value?: SwitchValue;
|
|
242
|
+
defaultValue?: SwitchValue;
|
|
243
|
+
state?: SwitchState;
|
|
244
|
+
disabled?: boolean;
|
|
245
|
+
onChange?: (value: SwitchValue) => void;
|
|
246
|
+
ariaLabel?: string;
|
|
247
|
+
}
|
|
248
|
+
|
|
190
249
|
export declare const GameTab: default_2.FC<GameTabProps>;
|
|
191
250
|
|
|
192
251
|
/** 游戏Tab组件入参 */
|
|
@@ -196,6 +255,14 @@ declare interface GameTabProps {
|
|
|
196
255
|
onClick?: () => void;
|
|
197
256
|
}
|
|
198
257
|
|
|
258
|
+
export declare const GameTag: default_2.FC<GameTagProps>;
|
|
259
|
+
|
|
260
|
+
declare interface GameTagProps {
|
|
261
|
+
label?: string;
|
|
262
|
+
icon?: default_2.ReactNode;
|
|
263
|
+
className?: string;
|
|
264
|
+
}
|
|
265
|
+
|
|
199
266
|
export declare const GameTertiaryPurchaseButton: default_2.FC<GameTertiaryPurchaseButtonProps>;
|
|
200
267
|
|
|
201
268
|
declare interface GameTertiaryPurchaseButtonProps {
|
|
@@ -254,6 +321,10 @@ declare type PurchaseButtonType_2 = 'button' | 'submit' | 'reset';
|
|
|
254
321
|
|
|
255
322
|
declare type PurchaseButtonType_3 = 'button' | 'submit' | 'reset';
|
|
256
323
|
|
|
324
|
+
declare type SwitchState = 'normal' | 'disable' | 'disabled';
|
|
325
|
+
|
|
326
|
+
declare type SwitchValue = 'content' | 'odds';
|
|
327
|
+
|
|
257
328
|
declare type ToggleState = 'on' | 'off' | 'disable' | 'disabled';
|
|
258
329
|
|
|
259
330
|
export { }
|