@pradip1995/layout-account 0.2.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/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@pradip1995/layout-account",
3
+ "version": "0.2.0",
4
+ "license": "MIT",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "sideEffects": false,
9
+ "files": [
10
+ "src"
11
+ ],
12
+ "exports": {
13
+ ".": "./src/index.ts",
14
+ "./manifest": "./src/manifest.ts"
15
+ },
16
+ "peerDependencies": {
17
+ "@pradip1995/plugin-sdk": "^0.2.0",
18
+ "react": ">=19"
19
+ },
20
+ "dependencies": {
21
+ "@pradip1995/layout-default": "0.2.0",
22
+ "@pradip1995/segment-primitives": "0.2.0",
23
+ "@pradip1995/segment-tokens": "0.2.0"
24
+ },
25
+ "devDependencies": {
26
+ "@pradip1995/plugin-sdk": "^0.2.0",
27
+ "@types/react": "^19",
28
+ "react": "19.0.3",
29
+ "typescript": "^5.7.2"
30
+ },
31
+ "scripts": {
32
+ "typecheck": "tsc --noEmit",
33
+ "lint": "tsc --noEmit"
34
+ }
35
+ }
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from "./layout"
2
+ export { default as manifest } from "./manifest"
package/src/layout.tsx ADDED
@@ -0,0 +1,16 @@
1
+ import type { ReactNode } from "react"
2
+ import { StorefrontShell } from "@pradip1995/layout-default/shell"
3
+
4
+ export default function LayoutAccount({
5
+ data,
6
+ children,
7
+ }: {
8
+ data: Record<string, unknown>
9
+ children: ReactNode
10
+ }) {
11
+ return (
12
+ <StorefrontShell data={data} contained>
13
+ <div className="py-10 lg:py-14 max-w-lg mx-auto w-full">{children}</div>
14
+ </StorefrontShell>
15
+ )
16
+ }
@@ -0,0 +1,10 @@
1
+ import type { LayoutManifest } from "@pradip1995/plugin-sdk"
2
+
3
+ const manifest: LayoutManifest = {
4
+ id: "layout-account",
5
+ type: "layout",
6
+ version: "0.1.0",
7
+ compatibleFramework: ["^1.0.0"],
8
+ }
9
+
10
+ export default manifest