novaux-game-make-kit 1.0.1 → 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 +55 -0
- package/dist/index.js +1054 -828
- 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 {
|
|
@@ -142,6 +158,30 @@ declare interface GamePanelProps {
|
|
|
142
158
|
className?: string;
|
|
143
159
|
}
|
|
144
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
|
+
|
|
145
185
|
export declare const GamePrimaryPurchaseButton: default_2.FC<GamePrimaryPurchaseButtonProps>;
|
|
146
186
|
|
|
147
187
|
declare interface GamePrimaryPurchaseButtonProps {
|
|
@@ -195,6 +235,17 @@ declare interface GameSliderBarProps {
|
|
|
195
235
|
onChange?: (value: number) => void;
|
|
196
236
|
}
|
|
197
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
|
+
|
|
198
249
|
export declare const GameTab: default_2.FC<GameTabProps>;
|
|
199
250
|
|
|
200
251
|
/** 游戏Tab组件入参 */
|
|
@@ -270,6 +321,10 @@ declare type PurchaseButtonType_2 = 'button' | 'submit' | 'reset';
|
|
|
270
321
|
|
|
271
322
|
declare type PurchaseButtonType_3 = 'button' | 'submit' | 'reset';
|
|
272
323
|
|
|
324
|
+
declare type SwitchState = 'normal' | 'disable' | 'disabled';
|
|
325
|
+
|
|
326
|
+
declare type SwitchValue = 'content' | 'odds';
|
|
327
|
+
|
|
273
328
|
declare type ToggleState = 'on' | 'off' | 'disable' | 'disabled';
|
|
274
329
|
|
|
275
330
|
export { }
|