@xsolla/xui-store-badge-native 0.64.0-pr56.1768348754

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/index.d.mts ADDED
@@ -0,0 +1,36 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+
3
+ type StoreType = "google-play" | "app-gallery" | "app-store";
4
+ type StoreBadgePalette = "dark" | "light";
5
+ interface StoreProps extends HTMLAttributes<SVGSVGElement> {
6
+ width?: number;
7
+ height?: number;
8
+ palette: StoreBadgePalette;
9
+ }
10
+ interface StoreBadgeProps {
11
+ /**
12
+ * Parameter with type store. 'google-play', 'app-gallery' or 'app-store'
13
+ */
14
+ type?: StoreType;
15
+ /**
16
+ * Parameter with palette: 'dark' - black background, 'light' - white background
17
+ */
18
+ palette: StoreBadgePalette;
19
+ /**
20
+ * Parameter with function for click
21
+ */
22
+ onPress?: () => void;
23
+ /**
24
+ * Test ID for testing
25
+ */
26
+ "data-testid"?: string;
27
+ /**
28
+ * Additional className
29
+ */
30
+ className?: string;
31
+ style?: any;
32
+ }
33
+
34
+ declare const StoreBadge: React.ForwardRefExoticComponent<StoreBadgeProps & React.RefAttributes<any>>;
35
+
36
+ export { StoreBadge, type StoreBadgePalette, type StoreBadgeProps, type StoreProps, type StoreType };
package/index.d.ts ADDED
@@ -0,0 +1,36 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+
3
+ type StoreType = "google-play" | "app-gallery" | "app-store";
4
+ type StoreBadgePalette = "dark" | "light";
5
+ interface StoreProps extends HTMLAttributes<SVGSVGElement> {
6
+ width?: number;
7
+ height?: number;
8
+ palette: StoreBadgePalette;
9
+ }
10
+ interface StoreBadgeProps {
11
+ /**
12
+ * Parameter with type store. 'google-play', 'app-gallery' or 'app-store'
13
+ */
14
+ type?: StoreType;
15
+ /**
16
+ * Parameter with palette: 'dark' - black background, 'light' - white background
17
+ */
18
+ palette: StoreBadgePalette;
19
+ /**
20
+ * Parameter with function for click
21
+ */
22
+ onPress?: () => void;
23
+ /**
24
+ * Test ID for testing
25
+ */
26
+ "data-testid"?: string;
27
+ /**
28
+ * Additional className
29
+ */
30
+ className?: string;
31
+ style?: any;
32
+ }
33
+
34
+ declare const StoreBadge: React.ForwardRefExoticComponent<StoreBadgeProps & React.RefAttributes<any>>;
35
+
36
+ export { StoreBadge, type StoreBadgePalette, type StoreBadgeProps, type StoreProps, type StoreType };