@pradip1995/layout-default 0.2.6 → 0.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pradip1995/layout-default",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -14,6 +14,7 @@
14
14
  "./shell": "./src/shell.tsx",
15
15
  "./store": "./src/store-layout.tsx",
16
16
  "./cart": "./src/cart-layout.tsx",
17
+ "./store-beauty": "./src/beauty-store-layout.tsx",
17
18
  "./wishlist": "./src/wishlist-layout.tsx",
18
19
  "./manifest": "./src/manifest.ts"
19
20
  },
@@ -22,11 +23,11 @@
22
23
  "react": ">=19"
23
24
  },
24
25
  "dependencies": {
25
- "@pradip1995/segment-footer": "0.2.5",
26
- "@pradip1995/segment-nav": "0.2.7",
27
- "@pradip1995/segment-promo-bar": "0.2.4",
26
+ "@pradip1995/segment-footer": "0.2.6",
27
+ "@pradip1995/segment-nav": "0.2.9",
28
+ "@pradip1995/segment-promo-bar": "0.2.5",
28
29
  "@pradip1995/segment-primitives": "0.3.0",
29
- "@pradip1995/segment-tokens": "0.3.1"
30
+ "@pradip1995/segment-tokens": "0.3.2"
30
31
  },
31
32
  "devDependencies": {
32
33
  "@pradip1995/plugin-sdk": "^0.2.0",
@@ -0,0 +1,30 @@
1
+ import type { ReactNode } from "react"
2
+ import { Children } from "react"
3
+ import { StorefrontShell } from "./shell"
4
+
5
+ type LayoutProps = {
6
+ data: Record<string, unknown>
7
+ children: ReactNode
8
+ }
9
+
10
+ /** Lumière beauty PLP shell — filters + infinite shop grid */
11
+ export default function LayoutBeautyStore({ data, children }: LayoutProps) {
12
+ const segments = Children.toArray(children)
13
+ const [mobileFilters, sidebar, grid] = segments
14
+
15
+ return (
16
+ <StorefrontShell data={data}>
17
+ <div
18
+ className="store-page store-page--beauty mx-auto px-4 sm:px-6 py-6 lg:py-10"
19
+ style={{ maxWidth: "var(--container-max)" }}
20
+ data-testid="store-container"
21
+ >
22
+ <div className="store-page__layout">
23
+ <div className="store-page__filters-mobile">{mobileFilters}</div>
24
+ <div className="store-page__sidebar">{sidebar}</div>
25
+ <div className="store-page__main">{grid}</div>
26
+ </div>
27
+ </div>
28
+ </StorefrontShell>
29
+ )
30
+ }
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from "react"
2
+ import { Children } from "react"
2
3
  import { StorefrontShell } from "./shell"
3
4
 
4
5
  type LayoutProps = {
@@ -7,11 +8,22 @@ type LayoutProps = {
7
8
  }
8
9
 
9
10
  export default function LayoutCart({ data, children }: LayoutProps) {
11
+ const segments = Children.toArray(children)
12
+ const [items, summary] = segments
13
+
10
14
  return (
11
15
  <StorefrontShell data={data} contained>
12
- <div className="py-10 lg:py-14">
13
- <h1 className="section-heading mb-8">Your cart</h1>
14
- <div className="grid grid-cols-1 lg:grid-cols-3 gap-8 lg:gap-10">{children}</div>
16
+ <div className="cart-page" data-testid="cart-container">
17
+ <header className="cart-page__header">
18
+ <p className="cart-page__eyebrow">Shopping bag</p>
19
+ <h1 className="cart-page__title">Your bag</h1>
20
+ <p className="cart-page__subtitle">Review your picks before checkout · Free shipping over ₹599</p>
21
+ </header>
22
+
23
+ <div className="cart-page__grid">
24
+ <div className="cart-page__items">{items}</div>
25
+ <div className="cart-page__summary">{summary}</div>
26
+ </div>
15
27
  </div>
16
28
  </StorefrontShell>
17
29
  )