@nodeblocks/frontend-how-to-use-block 0.2.0 → 0.3.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.
- package/dist/HowToUse.d.ts +36 -36
- package/dist/HowToUse.d.ts.map +1 -1
- package/dist/context.d.ts +13 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/index.cjs.js +144 -40781
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +144 -40763
- package/dist/index.esm.js.map +1 -1
- package/package.json +9 -8
- package/dist/blocks.d.ts +0 -16
- package/dist/blocks.d.ts.map +0 -1
package/dist/HowToUse.d.ts
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import '@
|
|
2
|
-
import {
|
|
3
|
-
import '
|
|
1
|
+
import { SvgIconComponent } from '@mui/icons-material';
|
|
2
|
+
import { CardProps, StackProps } from '@mui/material';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import { HowToUseContextValue } from './context';
|
|
4
5
|
import { BlocksOverride } from './lib';
|
|
5
6
|
declare const HowToUse: {
|
|
6
|
-
<CustomBlocks extends Record<string, ReactNode> = {}>({ className, children, ...props }: Omit<
|
|
7
|
+
<CustomBlocks extends Record<string, ReactNode> = {}>({ className, children, subtitle, headerContent, message, linkHref, linkContent, sx, ...props }: Omit<StackProps, "children"> & {
|
|
7
8
|
children?: BlocksOverride<typeof defaultHowToUseBlocks, CustomBlocks>;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
Header: ({ className, children,
|
|
10
|
-
|
|
9
|
+
} & Required<Pick<HowToUseContextValue, "subtitle" | "headerContent" | "message" | "linkHref" | "linkContent">>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
Header: ({ className, children, sx, ...props }: StackProps & Required<Pick<HowToUseContextValue, "subtitle">> & {
|
|
11
|
+
children: ReactNode;
|
|
11
12
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
CardList: ({ children, className, ...props }:
|
|
13
|
-
|
|
14
|
-
icon: import("@basaldev/blocks-frontend-framework").IconType;
|
|
15
|
-
headerContent: ReactNode;
|
|
16
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
Footer: ({ children, className, message, linkHref, linkContent, ...props }: ComponentProps<"div"> & {
|
|
18
|
-
message: ReactNode;
|
|
19
|
-
linkHref: string;
|
|
20
|
-
linkContent: ReactNode;
|
|
13
|
+
CardList: ({ children, className, sx, ...props }: StackProps & {
|
|
14
|
+
children: ReactNode;
|
|
21
15
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
Card: ({ children, className, icon: Icon, sx, ...props }: CardProps & {
|
|
17
|
+
icon: SvgIconComponent;
|
|
18
|
+
} & Required<Pick<HowToUseContextValue, "headerContent">>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
Footer: ({ children, className, sx, ...props }: StackProps & Required<Pick<HowToUseContextValue, "message" | "linkHref" | "linkContent">>) => import("react/jsx-runtime").JSX.Element;
|
|
22
20
|
};
|
|
23
21
|
declare const defaultHowToUseBlocks: {
|
|
24
|
-
header: import("react").ReactElement<import("
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
card: import("react").ReactElement<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
31
|
-
icon: import("@basaldev/blocks-frontend-framework").IconType;
|
|
32
|
-
headerContent: ReactNode;
|
|
33
|
-
}, ({ children, className, icon, headerContent, ...props }: ComponentProps<"div"> & {
|
|
34
|
-
icon: import("@basaldev/blocks-frontend-framework").IconType;
|
|
35
|
-
headerContent: ReactNode;
|
|
22
|
+
header: import("react").ReactElement<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & {
|
|
23
|
+
component?: React.ElementType;
|
|
24
|
+
} & Required<Pick<HowToUseContextValue, "subtitle">> & {
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
}, ({ className, children, sx, ...props }: StackProps & Required<Pick<HowToUseContextValue, "subtitle">> & {
|
|
27
|
+
children: ReactNode;
|
|
36
28
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}, ({ children, className,
|
|
42
|
-
|
|
43
|
-
linkHref: string;
|
|
44
|
-
linkContent: ReactNode;
|
|
29
|
+
cardList: import("react").ReactElement<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & {
|
|
30
|
+
component?: React.ElementType;
|
|
31
|
+
} & {
|
|
32
|
+
children: ReactNode;
|
|
33
|
+
}, ({ children, className, sx, ...props }: StackProps & {
|
|
34
|
+
children: ReactNode;
|
|
45
35
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
36
|
+
card: import("react").ReactElement<import("@mui/material").CardOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "style" | "square" | "className" | "classes" | "elevation" | "sx" | "variant" | "raised"> & {
|
|
37
|
+
component?: React.ElementType;
|
|
38
|
+
} & {
|
|
39
|
+
icon: SvgIconComponent;
|
|
40
|
+
} & Required<Pick<HowToUseContextValue, "headerContent">>, ({ children, className, icon: Icon, sx, ...props }: CardProps & {
|
|
41
|
+
icon: SvgIconComponent;
|
|
42
|
+
} & Required<Pick<HowToUseContextValue, "headerContent">>) => import("react/jsx-runtime").JSX.Element>;
|
|
43
|
+
footer: import("react").ReactElement<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & {
|
|
44
|
+
component?: React.ElementType;
|
|
45
|
+
} & Required<Pick<HowToUseContextValue, "message" | "linkHref" | "linkContent">>, ({ children, className, sx, ...props }: StackProps & Required<Pick<HowToUseContextValue, "message" | "linkHref" | "linkContent">>) => import("react/jsx-runtime").JSX.Element>;
|
|
46
46
|
};
|
|
47
47
|
export default HowToUse;
|
|
48
48
|
//# sourceMappingURL=HowToUse.d.ts.map
|
package/dist/HowToUse.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HowToUse.d.ts","sourceRoot":"","sources":["../src/HowToUse.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"HowToUse.d.ts","sourceRoot":"","sources":["../src/HowToUse.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAuB,SAAS,EAA0B,UAAU,EAAc,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAwC,MAAM,WAAW,CAAC;AACvF,OAAO,EAAE,cAAc,EAAuE,MAAM,OAAO,CAAC;AAoO5G,QAAA,MAAM,QAAQ;KAAI,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,uGAU7D,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG;QAChC,QAAQ,CAAC,EAAE,cAAc,CAAC,OAAO,qBAAqB,EAAE,YAAY,CAAC,CAAC;KACvE,GAAG,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,eAAe,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC,CAAC;oDA3J5G,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAC,GAAG;QAAE,QAAQ,EAAE,SAAS,CAAA;KAAE;sDA6FjC,UAAU,GAAG;QAAE,QAAQ,EAAE,SAAS,CAAA;KAAE;8DA1K1F,SAAS,GAAG;QAAE,IAAI,EAAE,gBAAgB,CAAA;KAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE,eAAe,CAAC,CAAC;oDA2H9F,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC,CAAC;CAwJ3F,CAAC;AAOF,QAAA,MAAM,qBAAqB;;;;kBA7MoD,SAAS;+CAArF,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAC,GAAG;QAAE,QAAQ,EAAE,SAAS,CAAA;KAAE;;;;kBA6FR,SAAS;+CAAlC,UAAU,GAAG;QAAE,QAAQ,EAAE,SAAS,CAAA;KAAE;;;;cA1KtE,gBAAgB;mHAApC,SAAS,GAAG;QAAE,IAAI,EAAE,gBAAgB,CAAA;KAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE,eAAe,CAAC,CAAC;;;8HA2H9F,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC,CAAC;CAoK1F,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type HowToUseContextValue = {
|
|
3
|
+
subtitle: ReactNode;
|
|
4
|
+
headerContent: ReactNode;
|
|
5
|
+
message: ReactNode;
|
|
6
|
+
linkHref: string;
|
|
7
|
+
linkContent: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const HowToUseProvider: ({ children, ...value }: HowToUseContextValue & {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const useHowToUseContext: () => HowToUseContextValue;
|
|
13
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAc,MAAM,OAAO,CAAC;AAE7D,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,SAAS,CAAC;IACpB,aAAa,EAAE,SAAS,CAAC;IACzB,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,SAAS,CAAC;CACxB,CAAC;AAIF,eAAO,MAAM,gBAAgB,GAAI,wBAG9B,oBAAoB,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB,4CAEA,CAAC;AAEF,eAAO,MAAM,kBAAkB,4BAO9B,CAAC"}
|