@janbox/storefront-builder 2.0.22 → 2.0.24

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,6 +1,6 @@
1
1
  import { jsx as i } from "@emotion/react/jsx-runtime";
2
2
  import { useMemo as m, useEffect as f } from "react";
3
- import { u as c, C as v, D as p, a as N, d as h, N as E, g as b, r as D, b as y, B as l } from "./toaster-Bls2Iq-H.js";
3
+ import { u as c, C as v, D as p, a as N, d as h, N as E, g as b, r as D, b as y, B as l } from "./toaster-DMjFxzB_.js";
4
4
  import { isNil as u, isString as d } from "lodash-es";
5
5
  import "flat";
6
6
  const k = ({ children: t, data: e }) => {
@@ -0,0 +1,4 @@
1
+ import { W as p } from "./toaster-DMjFxzB_.js";
2
+ export {
3
+ p as WbTooltip
4
+ };
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { N as n, c as t } from "./toaster-Bls2Iq-H.js";
2
- import { A as C, e as L, f as T, h as x, i as S, j as A, k as E, l as w, m as R, n as h, F, o as k, p as q, G as B, H as G, q as H, I as M, s as U, t as y, v as V, L as j, w as D, M as z, x as J, y as K, P as O, R as Q, S as X, z as Y, T as Z, E as _, J as $, K as W, O as ee, U as oe, Q as se, V as ae, X as re, Y as de, Z as te, _ as ne, $ as Ne, g as ue, a0 as ie, a1 as pe, a2 as me, a3 as Pe, a4 as ce, a5 as le, a6 as ge, a7 as be, a8 as fe, a9 as ve, u as Ie, aa as Ce, ab as Le, ac as Te, ad as xe, ae as Se, af as Ae, ag as Ee, ah as we, ai as Re, aj as he, ak as Fe, al as ke, am as qe, an as Be, ao as Ge, ap as He, aq as Me } from "./toaster-Bls2Iq-H.js";
1
+ import { N as n, c as t } from "./toaster-DMjFxzB_.js";
2
+ import { A as C, e as L, f as T, h as x, i as S, j as A, k as E, l as w, m as R, n as h, F, o as k, p as q, G as B, H as G, q as H, I as M, s as U, t as y, v as V, L as j, w as D, M as z, x as J, y as K, P as O, R as Q, S as X, z as Y, T as Z, E as _, J as $, K as W, O as ee, U as oe, Q as se, V as ae, X as re, Y as de, Z as te, _ as ne, $ as Ne, g as ue, a0 as ie, a1 as pe, a2 as me, a3 as Pe, a4 as ce, a5 as le, a6 as ge, a7 as be, a8 as fe, a9 as ve, u as Ie, aa as Ce, ab as Le, ac as Te, ad as xe, ae as Se, af as Ae, ag as Ee, ah as we, ai as Re, aj as he, ak as Fe, al as ke, am as qe, an as Be, ao as Ge, ap as He, aq as Me } from "./toaster-DMjFxzB_.js";
3
3
  import "lodash-es";
4
4
  import { useRef as N, useEffect as u } from "react";
5
5
  import { getTabPanelProps as i, getListItemProps as p } from "@janbox/storefront-ui";
6
- import { C as ye, a as Ve } from "./index-CCWut9qY.js";
6
+ import { C as ye, a as Ve } from "./index-BBoR6Gy_.js";
7
7
  const g = ({ enabled: a, onChange: r }) => {
8
8
  const { dom: e } = n((s) => ({ dom: s.dom })), o = N(void 0);
9
9
  u(() => {
@@ -8,6 +8,14 @@ Block container đa năng (render ra `div`). Là canvas node — chứa bất k
8
8
 
9
9
  ## Configurable props
10
10
 
11
+ ### Top-level props
12
+
13
+ | Prop | Type | Description |
14
+ | --- | --- | --- |
15
+ | `hidden` | `boolean` | Ẩn node ở breakpoint `xs` (mặc định). Hỗ trợ responsive qua `sm`, `md`, `lg` |
16
+
17
+ `hidden` hỗ trợ responsive: `hidden={true}` ẩn trên mobile, `md={{ hidden: false }}` hiện lại trên desktop.
18
+
11
19
  ### `sx` props
12
20
 
13
21
  ```ts
@@ -13,8 +13,9 @@ Một ô (column) trong `GridNode`. Hỗ trợ `colSpan` để chiếm nhiều c
13
13
  | Prop | Type | Description |
14
14
  | --- | --- | --- |
15
15
  | `colSpan` | `number` | Số cột mà cell chiếm (`grid-column: span colSpan`) |
16
+ | `hidden` | `boolean` | Ẩn node ở breakpoint `xs` (mặc định). Hỗ trợ responsive qua `sm`, `md`, `lg` |
16
17
 
17
- `colSpan` hỗ trợ responsive: `colSpan={1}` cho mobile, `md={{ colSpan: 2 }}` cho desktop.
18
+ `colSpan` và `hidden` hỗ trợ responsive: `colSpan={1}` cho mobile, `md={{ colSpan: 2 }}` cho desktop. `hidden={true}` ẩn trên mobile, `md={{ hidden: false }}` hiện lại trên desktop.
18
19
 
19
20
  ### `sx` props
20
21
 
@@ -8,6 +8,14 @@ Block container có max-width cố định, căn giữa theo chiều ngang. Dùn
8
8
 
9
9
  ## Configurable props
10
10
 
11
+ ### Top-level props
12
+
13
+ | Prop | Type | Description |
14
+ | --- | --- | --- |
15
+ | `hidden` | `boolean` | Ẩn node ở breakpoint `xs` (mặc định). Hỗ trợ responsive qua `sm`, `md`, `lg` |
16
+
17
+ `hidden` hỗ trợ responsive: `hidden={true}` ẩn trên mobile, `md={{ hidden: false }}` hiện lại trên desktop.
18
+
11
19
  ### `sx` props
12
20
 
13
21
  ```ts
@@ -8,7 +8,13 @@ Một item trong `FlexboxNode`. Kiểm soát kích thước, grow/shrink, thứ
8
8
 
9
9
  ## Configurable props
10
10
 
11
- Tất cả props nằm trong `sx`. Không có top-level prop riêng.
11
+ ### Top-level props
12
+
13
+ | Prop | Type | Description |
14
+ | --- | --- | --- |
15
+ | `hidden` | `boolean` | Ẩn node ở breakpoint `xs` (mặc định). Hỗ trợ responsive qua `sm`, `md`, `lg` |
16
+
17
+ `hidden` hỗ trợ responsive: `hidden={true}` ẩn trên mobile, `md={{ hidden: false }}` hiện lại trên desktop.
12
18
 
13
19
  ### `sx` props
14
20
 
@@ -8,6 +8,14 @@ Flex container node (`display: flex`). Chỉ chấp nhận `FlexItemNode` làm c
8
8
 
9
9
  ## Configurable props
10
10
 
11
+ ### Top-level props
12
+
13
+ | Prop | Type | Description |
14
+ | --- | --- | --- |
15
+ | `hidden` | `boolean` | Ẩn node ở breakpoint `xs` (mặc định). Hỗ trợ responsive qua `sm`, `md`, `lg` |
16
+
17
+ `hidden` hỗ trợ responsive: `hidden={true}` ẩn trên mobile, `md={{ hidden: false }}` hiện lại trên desktop.
18
+
11
19
  ### `sx` props
12
20
 
13
21
  ```ts
@@ -15,9 +15,10 @@ Props mà user có thể chỉnh trong editor inspector.
15
15
  | Prop | Type | Description |
16
16
  | --- | --- | --- |
17
17
  | `cols` | `number` | Số cột — generates `grid-template-columns: repeat(cols, minmax(0, 1fr))` |
18
- | `sm` | `{ cols?: number }` | Override `cols` tại breakpoint sm |
19
- | `md` | `{ cols?: number }` | Override `cols` tại breakpoint md |
20
- | `lg` | `{ cols?: number }` | Override `cols` tại breakpoint lg |
18
+ | `hidden` | `boolean` | Ẩn node breakpoint `xs` (mặc định). Hỗ trợ responsive qua `sm`, `md`, `lg` |
19
+ | `sm` | `{ cols?: number, hidden?: boolean }` | Override tại breakpoint sm |
20
+ | `md` | `{ cols?: number, hidden?: boolean }` | Override tại breakpoint md |
21
+ | `lg` | `{ cols?: number, hidden?: boolean }` | Override tại breakpoint lg |
21
22
 
22
23
  ### `sx` props
23
24
 
@@ -0,0 +1,2 @@
1
+ import { InsertTemplateGroup } from '../../../editor';
2
+ export declare const ABOUT_SECTION_GROUP: InsertTemplateGroup;
@@ -0,0 +1,2 @@
1
+ import { InsertTemplateGroup } from '../../../editor';
2
+ export declare const BRAND_STORY_SECTION_GROUP: InsertTemplateGroup;
@@ -1,3 +1,5 @@
1
1
  export * from './hero';
2
2
  export * from './faqs';
3
3
  export * from './guarantee';
4
+ export * from './brand-story';
5
+ export * from './about';