@crossmint/client-sdk-react-ui 0.2.7-alpha.6 → 0.2.7-alpha.8

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.
@@ -1,50 +1,50 @@
1
- import { createUseStyles } from "react-jss";
2
-
3
- const DARK_BG = "#1e1e1e";
4
-
5
- interface CustomStylingProps {
6
- buttonBgColor?: string;
7
- paragraphColor?: string;
8
- }
9
-
10
- const themeIsLight = (theme: string) => theme === "light";
11
- export const formatProps = (theme: string): CustomStylingProps => ({
12
- buttonBgColor: themeIsLight(theme) ? "white" : DARK_BG,
13
- paragraphColor: themeIsLight(theme) ? "black" : "white",
14
- });
15
-
16
- export const useStyles = createUseStyles({
17
- "@global": {
18
- "@import":
19
- "url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap')",
20
- },
21
- crossmintButton: {
22
- display: "flex",
23
- "flex-direction": "row",
24
- "align-items": "center",
25
- padding: "0.875rem 0.875rem",
26
- "font-weight": "900",
27
- transition: "opacity ease-in-out 0.25s",
28
- "border-radius": "0.5rem",
29
- "font-family": `"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif`,
30
- outline: "none",
31
- border: "none",
32
- "box-shadow": "0px 8px 15px rgba(0, 0, 0, 0.1)",
33
- "justify-content": "center",
34
- background: ({ buttonBgColor }: CustomStylingProps) => buttonBgColor,
35
-
36
- "&:hover:enabled": {
37
- opacity: "0.6",
38
- cursor: "pointer",
39
- },
40
- },
41
- crossmintImg: {
42
- width: "21px",
43
- height: "21px",
44
- "margin-right": "0.875rem",
45
- },
46
- crossmintParagraph: {
47
- color: ({ paragraphColor }: CustomStylingProps) => paragraphColor,
48
- margin: "0",
49
- },
50
- });
1
+ import { createUseStyles } from "react-jss";
2
+
3
+ const DARK_BG = "#1e1e1e";
4
+
5
+ interface CustomStylingProps {
6
+ buttonBgColor?: string;
7
+ paragraphColor?: string;
8
+ }
9
+
10
+ const themeIsLight = (theme: string) => theme === "light";
11
+ export const formatProps = (theme: string): CustomStylingProps => ({
12
+ buttonBgColor: themeIsLight(theme) ? "white" : DARK_BG,
13
+ paragraphColor: themeIsLight(theme) ? "black" : "white",
14
+ });
15
+
16
+ export const useStyles = createUseStyles({
17
+ "@global": {
18
+ "@import":
19
+ "url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap')",
20
+ },
21
+ crossmintButton: {
22
+ display: "flex",
23
+ "flex-direction": "row",
24
+ "align-items": "center",
25
+ padding: "0.875rem 0.875rem",
26
+ "font-weight": "900",
27
+ transition: "opacity ease-in-out 0.25s",
28
+ "border-radius": "0.5rem",
29
+ "font-family": `"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif`,
30
+ outline: "none",
31
+ border: "none",
32
+ "box-shadow": "0px 8px 15px rgba(0, 0, 0, 0.1)",
33
+ "justify-content": "center",
34
+ background: ({ buttonBgColor }: CustomStylingProps) => buttonBgColor,
35
+
36
+ "&:hover:enabled": {
37
+ opacity: "0.6",
38
+ cursor: "pointer",
39
+ },
40
+ },
41
+ crossmintImg: {
42
+ width: "21px",
43
+ height: "21px",
44
+ "margin-right": "0.875rem",
45
+ },
46
+ crossmintParagraph: {
47
+ color: ({ paragraphColor }: CustomStylingProps) => paragraphColor,
48
+ margin: "0",
49
+ },
50
+ });
package/src/types.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { CSSProperties, MouseEvent } from "react";
2
- import { CrossmintPayButtonProps, BaseButtonProps } from "@crossmint/client-sdk-base";
3
-
4
- export interface CrossmintPayButtonReactProps extends CrossmintPayButtonProps {
5
- onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
6
- style?: CSSProperties;
7
- }
8
-
9
- export interface CrossmintStatusButtonReactProps extends BaseButtonProps {
10
- onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
11
- style?: CSSProperties;
12
- }
1
+ import { CSSProperties, MouseEvent } from "react";
2
+ import { CrossmintPayButtonProps, BaseButtonProps } from "@crossmint/client-sdk-base";
3
+
4
+ export interface CrossmintPayButtonReactProps extends CrossmintPayButtonProps {
5
+ onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
6
+ style?: CSSProperties;
7
+ }
8
+
9
+ export interface CrossmintStatusButtonReactProps extends BaseButtonProps {
10
+ onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
11
+ style?: CSSProperties;
12
+ }
@@ -1,10 +1,10 @@
1
- import { useEffect, useState } from "react";
2
-
3
- export default function useEnvironment() {
4
- const [isServerSideRendering, setIsServerSideRendering] = useState(true);
5
- useEffect(() => {
6
- setIsServerSideRendering(false);
7
- }, []);
8
-
9
- return { isServerSideRendering };
10
- }
1
+ import { useEffect, useState } from "react";
2
+
3
+ export default function useEnvironment() {
4
+ const [isServerSideRendering, setIsServerSideRendering] = useState(true);
5
+ useEffect(() => {
6
+ setIsServerSideRendering(false);
7
+ }, []);
8
+
9
+ return { isServerSideRendering };
10
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const LIB_VERSION = "0.2.7-alpha.6";
1
+ export const LIB_VERSION = "0.2.7-alpha.8";