@anker-in/headless-ui 1.0.19-temp-092903 → 1.0.19-temp-100901
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/cjs/biz-components/AplusDesc/index.d.ts +22 -0
- package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrap.d.ts +1 -0
- package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrap.js +1 -1
- package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrap.js.map +3 -3
- package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrapItem.d.ts +2 -1
- package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrapItem.js +1 -1
- package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrapItem.js.map +3 -3
- package/dist/cjs/biz-components/CollectionsFilters/FilterHeader.js +1 -1
- package/dist/cjs/biz-components/CollectionsFilters/FilterHeader.js.map +2 -2
- package/dist/cjs/biz-components/CollectionsFilters/FilterList.js +1 -1
- package/dist/cjs/biz-components/CollectionsFilters/FilterList.js.map +3 -3
- package/dist/cjs/biz-components/CollectionsFilters/index.js +1 -1
- package/dist/cjs/biz-components/CollectionsFilters/index.js.map +3 -3
- package/dist/cjs/biz-components/DownLoad/index.d.ts +17 -0
- package/dist/cjs/biz-components/Features/index.d.ts +26 -0
- package/dist/cjs/biz-components/FootCharger/index.d.ts +12 -0
- package/dist/cjs/biz-components/GiftBox/index.d.ts +17 -0
- package/dist/cjs/biz-components/GraphicMore/index.d.ts +22 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +1 -2
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +1 -1
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/types.d.ts +1 -11
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +1 -2
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGridBox.d.ts +6 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/types.d.ts +0 -8
- package/dist/cjs/biz-components/Listing/types/product.d.ts +2 -0
- package/dist/cjs/biz-components/SelectStore/index.d.ts +26 -0
- package/dist/cjs/stories/aplusdesc.stories.d.ts +27 -0
- package/dist/cjs/stories/download.stories.d.ts +23 -0
- package/dist/cjs/stories/features.stories.d.ts +21 -0
- package/dist/cjs/stories/footcharger.stories.d.ts +19 -0
- package/dist/cjs/stories/giftbox.stories.d.ts +18 -0
- package/dist/cjs/stories/graphicMore.stories.d.ts +19 -0
- package/dist/cjs/stories/selectstore.stories.d.ts +18 -0
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/biz-components/AplusDesc/index.d.ts +22 -0
- package/dist/esm/biz-components/CollectionsFilters/FilterCardWrap.d.ts +1 -0
- package/dist/esm/biz-components/CollectionsFilters/FilterCardWrap.js +1 -1
- package/dist/esm/biz-components/CollectionsFilters/FilterCardWrap.js.map +3 -3
- package/dist/esm/biz-components/CollectionsFilters/FilterCardWrapItem.d.ts +2 -1
- package/dist/esm/biz-components/CollectionsFilters/FilterCardWrapItem.js +1 -1
- package/dist/esm/biz-components/CollectionsFilters/FilterCardWrapItem.js.map +3 -3
- package/dist/esm/biz-components/CollectionsFilters/FilterHeader.js +1 -1
- package/dist/esm/biz-components/CollectionsFilters/FilterHeader.js.map +2 -2
- package/dist/esm/biz-components/CollectionsFilters/FilterList.js +1 -1
- package/dist/esm/biz-components/CollectionsFilters/FilterList.js.map +3 -3
- package/dist/esm/biz-components/CollectionsFilters/index.js +1 -1
- package/dist/esm/biz-components/CollectionsFilters/index.js.map +3 -3
- package/dist/esm/biz-components/DownLoad/index.d.ts +17 -0
- package/dist/esm/biz-components/Features/index.d.ts +26 -0
- package/dist/esm/biz-components/FootCharger/index.d.ts +12 -0
- package/dist/esm/biz-components/GiftBox/index.d.ts +17 -0
- package/dist/esm/biz-components/GraphicMore/index.d.ts +22 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +1 -2
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +1 -1
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/types.d.ts +1 -11
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +1 -2
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.d.ts +6 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/types.d.ts +0 -8
- package/dist/esm/biz-components/Listing/types/product.d.ts +2 -0
- package/dist/esm/biz-components/SelectStore/index.d.ts +26 -0
- package/dist/esm/stories/aplusdesc.stories.d.ts +27 -0
- package/dist/esm/stories/download.stories.d.ts +23 -0
- package/dist/esm/stories/features.stories.d.ts +21 -0
- package/dist/esm/stories/footcharger.stories.d.ts +19 -0
- package/dist/esm/stories/giftbox.stories.d.ts +18 -0
- package/dist/esm/stories/graphicMore.stories.d.ts +19 -0
- package/dist/esm/stories/selectstore.stories.d.ts +18 -0
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/biz-components/CollectionsFilters/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import FilterList from './FilterList'\nimport FilterHeader from './FilterHeader'\nimport FilterCardWrap from './FilterCardWrap'\nimport { withLayout } from '../../shared/Styles.js'\nimport TabFilter from './component/TabFilter'\nimport { useState, useMemo } from 'react'\nimport { handleSortKeyAndReverse, handleFilters } from './component/filtersFun'\n\ntype CollectionsFiltersProps = {\n metafields: any\n result: any\n allResult: any\n pageSize?: number\n filterPrice: any\n isLoading?: boolean\n loadMore?: React.ReactNode\n data?: any\n onNextPage?: (v: string) => void\n onPrevPage?: (v: string) => void\n onFilteredChange?: (filtered: any) => void\n onSortAndReverseChange?: (sortKey: string, reverse: boolean) => void\n onPrimaryChange?: (item: any, sku: string) => void\n onSecondaryChange?: (item: any, sku: string) => void\n}\nfunction CollectionsFilters(props: CollectionsFiltersProps) {\n const {\n data,\n result = {},\n allResult = {},\n loadMore = null,\n metafields = {},\n filterPrice = {},\n isLoading = false,\n onFilteredChange,\n onSortAndReverseChange,\n onPrimaryChange,\n onSecondaryChange,\n onNextPage,\n onPrevPage,\n } = props\n\n const { shop_filters_pair } = metafields\n\n const [closeFilter, setCloseFilter] = useState<boolean>(false)\n const [mobileDrawerVisible, setMobileDrawerVisible] = useState<boolean>(false) // \u79FB\u52A8\u7AEF\u7B5B\u9009\u9009\u9879\u5C55\u793A\u72B6\u6001\n const [openOptions, setOpenOptions] = useState<any[]>([]) // \u5C55\u5F00\u7684\u7B5B\u9009\u9879\n const [filtered, setFiltered] = useState<any>({}) // \u9009\u62E9\u7684\u7B5B\u9009\u9009\u9879\n const [sortKeyIndx, setSortKeyIndx] = useState<number>(0) // \u6392\u5E8F\u65B9\u5F0F\n const [currentPage, setCurrentPage] = useState<number>(1)\n\n // \u5904\u7406\u6392\u5E8F\u6570\u636E\n useMemo(() => {\n const sortList = shop_filters_pair?.filter_txt?.sortList\n const [sortKey, reverse] = handleSortKeyAndReverse(sortList, sortKeyIndx)\n onSortAndReverseChange?.(sortKey, reverse)\n }, [shop_filters_pair?.filter_txt?.sortList, filtered, sortKeyIndx])\n\n // // \u6570\u91CF\n // useMemo(() => {\n // onChunkNumberChange?.(handleChunkNumber(filtered))\n // }, [filtered])\n const hasNoIndex = (product: { metafields: { seoSetting: { noindex: any } } }) => {\n return !product?.metafields?.seoSetting?.noindex\n }\n const totalCount = useMemo(() => {\n return allResult?.products?.filter(hasNoIndex)?.length || 0\n }, [allResult?.products])\n\n return (\n <div className=\"size-full box-border\">\n {/* \u5934\u90E8 */}\n <div className=\"laptop:mb-12 mb-6\">\n <TabFilter tabs={data?.tabItems} />\n </div>\n <FilterHeader\n total={totalCount || 0}\n metafields={metafields}\n closeFilter={closeFilter}\n sortKeyIndx={sortKeyIndx}\n shopifyData={data}\n onSortChange={setSortKeyIndx}\n onCloseFilter={setCloseFilter}\n onClearFiltered={() => {\n setFiltered?.({})\n onFilteredChange?.(handleFilters({}))\n }}\n onMobileOpenDrawer={setMobileDrawerVisible}\n />\n {/* PC\u7B5B\u9009\u9009\u9879 */}\n <div className=\"flex-1 overflow-hidden tablet:flex desktop:gap-x-16 tablet:gap-x-8\">\n {!closeFilter && (\n <FilterList\n result={result}\n filtered={filtered}\n filterPrice={filterPrice}\n openOptions={openOptions}\n closeFilter={closeFilter}\n shopifyData={data}\n metafields={metafields}\n mobileDrawerVisible={mobileDrawerVisible}\n onFilteredChange={v => {\n setFiltered(v)\n setCurrentPage(1)\n onFilteredChange?.(handleFilters(v))\n }}\n onClearFiltered={() => {\n setFiltered?.({})\n setCurrentPage(1)\n onFilteredChange?.(handleFilters({}))\n }}\n onOpenOptions={setOpenOptions}\n onCloseDrawer={setMobileDrawerVisible}\n />\n )}\n <div className=\"flex-1 overflow-y-auto relative\">\n <FilterCardWrap\n page={currentPage}\n result={result}\n shopifyData={data}\n total={totalCount}\n metafields={metafields}\n closeFilter={closeFilter}\n onNextPage={v => {\n setCurrentPage(currentPage + 1)\n onNextPage?.(v)\n }}\n onPrevPage={v => {\n setCurrentPage(currentPage - 1)\n onPrevPage?.(v)\n }}\n onPrimaryChange={(e, data) => onPrimaryChange?.(e, data)}\n onSecondaryChange={(e, data) => onSecondaryChange?.(e, data)}\n />\n {isLoading ? loadMore || null : null}\n </div>\n </div>\n </div>\n )\n}\n\nexport default withLayout(CollectionsFilters)"],
|
|
5
|
-
"mappings": "0jBAAA,IAAAA,
|
|
6
|
-
"names": ["CollectionsFilters_exports", "__export", "CollectionsFilters_default", "__toCommonJS", "import_jsx_runtime", "import_FilterList", "import_FilterHeader", "import_FilterCardWrap", "import_Styles", "import_TabFilter", "import_react", "import_filtersFun", "CollectionsFilters", "props", "data", "result", "allResult", "loadMore", "metafields", "filterPrice", "isLoading", "onFilteredChange", "onSortAndReverseChange", "onPrimaryChange", "onSecondaryChange", "onNextPage", "onPrevPage", "shop_filters_pair", "closeFilter", "setCloseFilter", "mobileDrawerVisible", "setMobileDrawerVisible", "openOptions", "setOpenOptions", "filtered", "setFiltered", "sortKeyIndx", "setSortKeyIndx", "currentPage", "setCurrentPage", "sortList", "sortKey", "reverse", "hasNoIndex", "product", "totalCount", "TabFilter", "FilterHeader", "FilterList", "v", "FilterCardWrap", "e"]
|
|
4
|
+
"sourcesContent": ["import FilterList from './FilterList'\nimport FilterHeader from './FilterHeader'\nimport FilterCardWrap from './FilterCardWrap'\nimport { withLayout } from '../../shared/Styles.js'\nimport TabFilter from './component/TabFilter'\nimport { useState, useMemo, useEffect } from 'react'\nimport { handleSortKeyAndReverse, handleFilters } from './component/filtersFun'\n\ntype CollectionsFiltersProps = {\n metafields: any\n result: any\n allResult: any\n pageSize?: number\n filterPrice: any\n isLoading?: boolean\n loadMore?: React.ReactNode\n data?: any\n onNextPage?: (v: string) => void\n onPrevPage?: (v: string) => void\n onFilteredChange?: (filtered: any) => void\n onSortAndReverseChange?: (sortKey: string, reverse: boolean) => void\n onPrimaryChange?: (item: any, sku: string) => void\n onSecondaryChange?: (item: any, sku: string) => void\n}\nfunction CollectionsFilters(props: CollectionsFiltersProps) {\n const {\n data,\n result = {},\n allResult = {},\n loadMore = null,\n metafields = {},\n filterPrice = {},\n isLoading = false,\n onFilteredChange,\n onSortAndReverseChange,\n onPrimaryChange,\n onSecondaryChange,\n onNextPage,\n onPrevPage,\n } = props\n\n const { shop_filters_pair } = metafields\n\n const [closeFilter, setCloseFilter] = useState<boolean>(false)\n const [mobileDrawerVisible, setMobileDrawerVisible] = useState<boolean>(false) // \u79FB\u52A8\u7AEF\u7B5B\u9009\u9009\u9879\u5C55\u793A\u72B6\u6001\n const [openOptions, setOpenOptions] = useState<any[]>([]) // \u5C55\u5F00\u7684\u7B5B\u9009\u9879\n const [filtered, setFiltered] = useState<any>({}) // \u9009\u62E9\u7684\u7B5B\u9009\u9009\u9879\n const [sortKeyIndx, setSortKeyIndx] = useState<number>(0) // \u6392\u5E8F\u65B9\u5F0F\n const [currentPage, setCurrentPage] = useState<number>(1)\n const [isSale, setIsSale] = useState<boolean>(false)\n\n // \u5904\u7406\u6392\u5E8F\u6570\u636E\n useMemo(() => {\n const sortList = shop_filters_pair?.filter_txt?.sortList\n const [sortKey, reverse] = handleSortKeyAndReverse(sortList, sortKeyIndx)\n onSortAndReverseChange?.(sortKey, reverse)\n }, [shop_filters_pair?.filter_txt?.sortList, filtered, sortKeyIndx])\n\n // // \u6570\u91CF\n // useMemo(() => {\n // onChunkNumberChange?.(handleChunkNumber(filtered))\n // }, [filtered])\n const hasNoIndex = (product: { metafields: { seoSetting: { noindex: any } } }) => {\n return !product?.metafields?.seoSetting?.noindex\n }\n const totalCount = useMemo(() => {\n return allResult?.products?.filter(hasNoIndex)?.length || 0\n }, [allResult?.products])\n\n useEffect(() => {\n const offers = filtered?.offers || []\n const isShowSale = offers?.includes?.('onsale')\n setIsSale(isShowSale)\n }, [filtered])\n\n return (\n <div className=\"size-full box-border\">\n {/* \u5934\u90E8 */}\n <div className=\"laptop:mb-12 mb-6\">\n <TabFilter tabs={data?.tabItems} />\n </div>\n <FilterHeader\n total={totalCount || 0}\n metafields={metafields}\n closeFilter={closeFilter}\n sortKeyIndx={sortKeyIndx}\n shopifyData={data}\n onSortChange={setSortKeyIndx}\n onCloseFilter={setCloseFilter}\n onClearFiltered={() => {\n setFiltered?.({})\n onFilteredChange?.(handleFilters({}))\n }}\n onMobileOpenDrawer={setMobileDrawerVisible}\n />\n {/* PC\u7B5B\u9009\u9009\u9879 */}\n <div className=\"flex-1 overflow-hidden tablet:flex desktop:gap-x-16 tablet:gap-x-8\">\n {!closeFilter && (\n <FilterList\n result={result}\n filtered={filtered}\n filterPrice={filterPrice}\n openOptions={openOptions}\n closeFilter={closeFilter}\n shopifyData={data}\n metafields={metafields}\n mobileDrawerVisible={mobileDrawerVisible}\n onFilteredChange={(v) => {\n setFiltered(v)\n setCurrentPage(1)\n onFilteredChange?.(handleFilters(v))\n }}\n onClearFiltered={() => {\n setFiltered?.({})\n setCurrentPage(1)\n onFilteredChange?.(handleFilters({}))\n }}\n onOpenOptions={setOpenOptions}\n onCloseDrawer={setMobileDrawerVisible}\n />\n )}\n <div className=\"flex-1 overflow-y-auto relative\">\n <FilterCardWrap\n page={currentPage}\n result={result}\n shopifyData={data}\n total={totalCount}\n isSale={isSale}\n metafields={metafields}\n closeFilter={closeFilter}\n onNextPage={v => {\n setCurrentPage(currentPage + 1)\n onNextPage?.(v)\n }}\n onPrevPage={v => {\n setCurrentPage(currentPage - 1)\n onPrevPage?.(v)\n }}\n onPrimaryChange={(e, data) => onPrimaryChange?.(e, data)}\n onSecondaryChange={(e, data) => onSecondaryChange?.(e, data)}\n />\n {isLoading ? loadMore || null : null}\n </div>\n </div>\n </div>\n )\n}\n\nexport default withLayout(CollectionsFilters)"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["CollectionsFilters_exports", "__export", "CollectionsFilters_default", "__toCommonJS", "import_jsx_runtime", "import_FilterList", "import_FilterHeader", "import_FilterCardWrap", "import_Styles", "import_TabFilter", "import_react", "import_filtersFun", "CollectionsFilters", "props", "data", "result", "allResult", "loadMore", "metafields", "filterPrice", "isLoading", "onFilteredChange", "onSortAndReverseChange", "onPrimaryChange", "onSecondaryChange", "onNextPage", "onPrevPage", "shop_filters_pair", "closeFilter", "setCloseFilter", "mobileDrawerVisible", "setMobileDrawerVisible", "openOptions", "setOpenOptions", "filtered", "setFiltered", "sortKeyIndx", "setSortKeyIndx", "currentPage", "setCurrentPage", "isSale", "setIsSale", "sortList", "sortKey", "reverse", "hasNoIndex", "product", "totalCount", "isShowSale", "TabFilter", "FilterHeader", "FilterList", "v", "FilterCardWrap", "e"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Img } from '../../types/props.js';
|
|
2
|
+
type DownLoadType = {
|
|
3
|
+
data: {
|
|
4
|
+
title: string;
|
|
5
|
+
text: string;
|
|
6
|
+
time: string;
|
|
7
|
+
link: string;
|
|
8
|
+
line: Img;
|
|
9
|
+
icon: Img;
|
|
10
|
+
};
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<DownLoadType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
14
|
+
className?: string;
|
|
15
|
+
data?: Record<string, any>;
|
|
16
|
+
} & import("react").RefAttributes<any>>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Img } from '../../types/props.js';
|
|
2
|
+
export type FeaturesDataType = {
|
|
3
|
+
img: Img;
|
|
4
|
+
mobileImg: Img;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
numberOne: string;
|
|
8
|
+
textOne: string;
|
|
9
|
+
numberTwo: string;
|
|
10
|
+
textTwo: string;
|
|
11
|
+
icon: Img;
|
|
12
|
+
};
|
|
13
|
+
type FeaturesType = {
|
|
14
|
+
data: {
|
|
15
|
+
title: string;
|
|
16
|
+
img: Img;
|
|
17
|
+
mobileImg: Img;
|
|
18
|
+
list: FeaturesDataType[];
|
|
19
|
+
};
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<FeaturesType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
23
|
+
className?: string;
|
|
24
|
+
data?: Record<string, any>;
|
|
25
|
+
} & import("react").RefAttributes<any>>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type FootChargerType = {
|
|
2
|
+
data: {
|
|
3
|
+
title: string;
|
|
4
|
+
text: string;
|
|
5
|
+
};
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<FootChargerType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
9
|
+
className?: string;
|
|
10
|
+
data?: Record<string, any>;
|
|
11
|
+
} & import("react").RefAttributes<any>>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Img } from '../../types/props.js';
|
|
2
|
+
export type GiftBoxDataType = {
|
|
3
|
+
img: Img;
|
|
4
|
+
mobileImg: Img;
|
|
5
|
+
title: string;
|
|
6
|
+
};
|
|
7
|
+
type GiftBoxType = {
|
|
8
|
+
data: {
|
|
9
|
+
list: GiftBoxDataType[];
|
|
10
|
+
};
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<GiftBoxType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
14
|
+
className?: string;
|
|
15
|
+
data?: Record<string, any>;
|
|
16
|
+
} & import("react").RefAttributes<any>>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Img } from '../../types/props.js';
|
|
2
|
+
export type GraphicMoreDataType = {
|
|
3
|
+
img: Img;
|
|
4
|
+
mobileImg: Img;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
theme: 'light' | 'dark';
|
|
8
|
+
fullWidth: 'true' | 'false';
|
|
9
|
+
span: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
10
|
+
};
|
|
11
|
+
type GraphicMoreType = {
|
|
12
|
+
data: {
|
|
13
|
+
shape?: 'rounded' | 'square';
|
|
14
|
+
productsTab: GraphicMoreDataType[];
|
|
15
|
+
};
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<GraphicMoreType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
19
|
+
className?: string;
|
|
20
|
+
data?: Record<string, any>;
|
|
21
|
+
} & import("react").RefAttributes<any>>;
|
|
22
|
+
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ProductHighlight: ({ data: { highlight } }: HighlightProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
1
|
+
declare const ProductHighlight: () => import("react/jsx-runtime").JSX.Element | null;
|
|
3
2
|
export default ProductHighlight;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const ProductDetail: () => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
declare const ProductDetail: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default ProductDetail;
|
|
@@ -32,17 +32,7 @@ export interface ProductBenefitsTabCouponProps {
|
|
|
32
32
|
coupons?: BenefitsTabCouponProps[];
|
|
33
33
|
}
|
|
34
34
|
export interface HighlightProps {
|
|
35
|
-
data:
|
|
36
|
-
highlight: {
|
|
37
|
-
title: string;
|
|
38
|
-
view: string;
|
|
39
|
-
ksp: {
|
|
40
|
-
label: string;
|
|
41
|
-
description: string;
|
|
42
|
-
image: Img;
|
|
43
|
-
}[];
|
|
44
|
-
};
|
|
45
|
-
};
|
|
35
|
+
data: any;
|
|
46
36
|
}
|
|
47
37
|
export interface ProductOptionsProps {
|
|
48
38
|
option: ProductOption;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ProductGallery: ({ data }: ProductGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
declare const ProductGallery: () => import("react/jsx-runtime").JSX.Element;
|
|
3
2
|
export default ProductGallery;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const ProductGridBox: ({ BoxLeftGallery, BoxRightDetail, BoxBottomSummary, }: {
|
|
2
|
+
BoxLeftGallery: React.ReactNode;
|
|
3
|
+
BoxRightDetail: React.ReactNode;
|
|
4
|
+
BoxBottomSummary: React.ReactNode;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default ProductGridBox;
|
|
@@ -23,6 +23,7 @@ export type ProductVariant = {
|
|
|
23
23
|
product: Product;
|
|
24
24
|
coupons: VariantCoupon[];
|
|
25
25
|
weight?: number;
|
|
26
|
+
payload?: any;
|
|
26
27
|
} & Omit<ShopifyProductVariant, 'options' | 'metafields' | 'price'>;
|
|
27
28
|
export type Product = {
|
|
28
29
|
path?: string;
|
|
@@ -35,6 +36,7 @@ export type Product = {
|
|
|
35
36
|
[key: string]: any;
|
|
36
37
|
};
|
|
37
38
|
slug: string;
|
|
39
|
+
payload?: any;
|
|
38
40
|
} & Omit<ShopifyProduct, 'metafields' | 'images' | 'variants' | 'price' | 'options' | 'media'>;
|
|
39
41
|
export type GetProductBody = {
|
|
40
42
|
handles: string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Img } from '../../types/props.js';
|
|
2
|
+
export type SelectStoreDataType = {
|
|
3
|
+
title: string;
|
|
4
|
+
desc: string;
|
|
5
|
+
pay: {
|
|
6
|
+
img: Img;
|
|
7
|
+
}[];
|
|
8
|
+
delivery: {
|
|
9
|
+
img: Img;
|
|
10
|
+
}[];
|
|
11
|
+
service: {
|
|
12
|
+
title: string;
|
|
13
|
+
img: Img;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
type SelectStoreType = {
|
|
17
|
+
data: {
|
|
18
|
+
list: SelectStoreDataType[];
|
|
19
|
+
};
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<SelectStoreType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
23
|
+
className?: string;
|
|
24
|
+
data?: Record<string, any>;
|
|
25
|
+
} & import("react").RefAttributes<any>>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<Omit<{
|
|
4
|
+
data: {
|
|
5
|
+
title: string;
|
|
6
|
+
img: import("../types/props.js").Img;
|
|
7
|
+
mobileImg: import("../types/props.js").Img;
|
|
8
|
+
list: {
|
|
9
|
+
img: import("../types/props.js").Img;
|
|
10
|
+
mobileImg: import("../types/props.js").Img;
|
|
11
|
+
title: string;
|
|
12
|
+
desc: string;
|
|
13
|
+
theme: "light" | "dark";
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
className?: string;
|
|
17
|
+
}, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps & import("../shared/Styles.js").ContainerProps> & {
|
|
18
|
+
className?: string;
|
|
19
|
+
data?: Record<string, any>;
|
|
20
|
+
} & import("react").RefAttributes<any>>;
|
|
21
|
+
tags: string[];
|
|
22
|
+
parameters: {
|
|
23
|
+
layout: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default meta;
|
|
27
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<Omit<{
|
|
4
|
+
data: {
|
|
5
|
+
title: string;
|
|
6
|
+
text: string;
|
|
7
|
+
time: string;
|
|
8
|
+
link: string;
|
|
9
|
+
line: import("../types/props.js").Img;
|
|
10
|
+
icon: import("../types/props.js").Img;
|
|
11
|
+
};
|
|
12
|
+
className?: string;
|
|
13
|
+
}, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps & import("../shared/Styles.js").ContainerProps> & {
|
|
14
|
+
className?: string;
|
|
15
|
+
data?: Record<string, any>;
|
|
16
|
+
} & import("react").RefAttributes<any>>;
|
|
17
|
+
tags: string[];
|
|
18
|
+
parameters: {
|
|
19
|
+
layout: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<Omit<{
|
|
4
|
+
data: {
|
|
5
|
+
title: string;
|
|
6
|
+
img: import("../types/props.js").Img;
|
|
7
|
+
mobileImg: import("../types/props.js").Img;
|
|
8
|
+
list: import("../biz-components/Features/index.js").FeaturesDataType[];
|
|
9
|
+
};
|
|
10
|
+
className?: string;
|
|
11
|
+
}, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps & import("../shared/Styles.js").ContainerProps> & {
|
|
12
|
+
className?: string;
|
|
13
|
+
data?: Record<string, any>;
|
|
14
|
+
} & import("react").RefAttributes<any>>;
|
|
15
|
+
tags: string[];
|
|
16
|
+
parameters: {
|
|
17
|
+
layout: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<Omit<{
|
|
4
|
+
data: {
|
|
5
|
+
title: string;
|
|
6
|
+
text: string;
|
|
7
|
+
};
|
|
8
|
+
className?: string;
|
|
9
|
+
}, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps & import("../shared/Styles.js").ContainerProps> & {
|
|
10
|
+
className?: string;
|
|
11
|
+
data?: Record<string, any>;
|
|
12
|
+
} & import("react").RefAttributes<any>>;
|
|
13
|
+
tags: string[];
|
|
14
|
+
parameters: {
|
|
15
|
+
layout: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<Omit<{
|
|
4
|
+
data: {
|
|
5
|
+
list: import("../biz-components/GiftBox/index.js").GiftBoxDataType[];
|
|
6
|
+
};
|
|
7
|
+
className?: string;
|
|
8
|
+
}, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps & import("../shared/Styles.js").ContainerProps> & {
|
|
9
|
+
className?: string;
|
|
10
|
+
data?: Record<string, any>;
|
|
11
|
+
} & import("react").RefAttributes<any>>;
|
|
12
|
+
tags: string[];
|
|
13
|
+
parameters: {
|
|
14
|
+
layout: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<Omit<{
|
|
4
|
+
data: {
|
|
5
|
+
shape?: "rounded" | "square";
|
|
6
|
+
productsTab: import("../biz-components/GraphicMore/index.js").GraphicMoreDataType[];
|
|
7
|
+
};
|
|
8
|
+
className?: string;
|
|
9
|
+
}, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps & import("../shared/Styles.js").ContainerProps> & {
|
|
10
|
+
className?: string;
|
|
11
|
+
data?: Record<string, any>;
|
|
12
|
+
} & import("react").RefAttributes<any>>;
|
|
13
|
+
tags: string[];
|
|
14
|
+
parameters: {
|
|
15
|
+
layout: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<Omit<{
|
|
4
|
+
data: {
|
|
5
|
+
list: import("../biz-components/SelectStore/index.js").SelectStoreDataType[];
|
|
6
|
+
};
|
|
7
|
+
className?: string;
|
|
8
|
+
}, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps & import("../shared/Styles.js").ContainerProps> & {
|
|
9
|
+
className?: string;
|
|
10
|
+
data?: Record<string, any>;
|
|
11
|
+
} & import("react").RefAttributes<any>>;
|
|
12
|
+
tags: string[];
|
|
13
|
+
parameters: {
|
|
14
|
+
layout: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|