@anker-in/headless-ui 1.1.85 → 1.1.87

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.
Files changed (167) hide show
  1. package/dist/cjs/biz-components/AccordionCards/index.d.ts +38 -1
  2. package/dist/cjs/biz-components/ActiveShelf/index.d.ts +4 -1
  3. package/dist/cjs/biz-components/ActivitySchedule/index.d.ts +5 -1
  4. package/dist/cjs/biz-components/AnchorNavigation/index.d.ts +3 -1
  5. package/dist/cjs/biz-components/AplusDesc/index.d.ts +17 -1
  6. package/dist/cjs/biz-components/BrandCardLink/BrandCardLink.d.ts +4 -1
  7. package/dist/cjs/biz-components/BrandEquity/BrandEquity.d.ts +4 -1
  8. package/dist/cjs/biz-components/Category/index.d.ts +3 -1
  9. package/dist/cjs/biz-components/CreativeModule/index.d.ts +7 -1
  10. package/dist/cjs/biz-components/DownLoad/index.d.ts +6 -1
  11. package/dist/cjs/biz-components/Evaluate/index.d.ts +3 -1
  12. package/dist/cjs/biz-components/EventSchedule/index.d.ts +3 -1
  13. package/dist/cjs/biz-components/Faq/Faq.d.ts +5 -2
  14. package/dist/cjs/biz-components/FeatureCards/FeatureCards.d.ts +5 -1
  15. package/dist/cjs/biz-components/FeatureShowcase/FeatureShowcase.d.ts +5 -1
  16. package/dist/cjs/biz-components/FeaturedBlogPosts/index.d.ts +3 -1
  17. package/dist/cjs/biz-components/Features/index.d.ts +8 -1
  18. package/dist/cjs/biz-components/FootCharger/index.d.ts +7 -1
  19. package/dist/cjs/biz-components/FooterNavigation/index.d.ts +2 -1
  20. package/dist/cjs/biz-components/GiftBox/index.d.ts +3 -1
  21. package/dist/cjs/biz-components/GiftShelf/index.d.ts +5 -1
  22. package/dist/cjs/biz-components/GiftTierShelf/index.d.ts +5 -1
  23. package/dist/cjs/biz-components/Graphic/index.d.ts +3 -1
  24. package/dist/cjs/biz-components/GraphicAttractionBlock/index.d.ts +3 -1
  25. package/dist/cjs/biz-components/GraphicMore/index.d.ts +7 -1
  26. package/dist/cjs/biz-components/GraphicOverlay/GraphicOverlay.d.ts +12 -2
  27. package/dist/cjs/biz-components/HeaderNavigation/index.d.ts +5 -1
  28. package/dist/cjs/biz-components/HeroBanner/HeroBanner.d.ts +7 -1
  29. package/dist/cjs/biz-components/ImageOverlayShelf/index.d.ts +4 -1
  30. package/dist/cjs/biz-components/ImageTextFeature/ImageTextFeature.d.ts +5 -1
  31. package/dist/cjs/biz-components/ImageWithText/ImageWithText.d.ts +5 -1
  32. package/dist/cjs/biz-components/Ksp/index.d.ts +1 -1
  33. package/dist/cjs/biz-components/Listing/components/PaidShipping/index.d.ts +11 -1
  34. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +26 -1
  35. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +1 -1
  36. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +1 -1
  37. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +1 -1
  38. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +1 -1
  39. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +1 -1
  40. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +1 -1
  41. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductPaidShipping/index.d.ts +11 -1
  42. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +1 -1
  43. package/dist/cjs/biz-components/Listing/components/PurchaseBar/index.d.ts +2 -1
  44. package/dist/cjs/biz-components/Marquee/Marquee.d.ts +5 -2
  45. package/dist/cjs/biz-components/MarqueeReview/index.d.ts +1 -1
  46. package/dist/cjs/biz-components/MediaEndorsement/index.d.ts +4 -1
  47. package/dist/cjs/biz-components/MediaPlayerBase/index.d.ts +4 -1
  48. package/dist/cjs/biz-components/MediaPlayerMulti/index.d.ts +4 -1
  49. package/dist/cjs/biz-components/MediaPlayerSticky/index.d.ts +7 -1
  50. package/dist/cjs/biz-components/MediaSceneSwitcher/MediaSceneSwitcher.d.ts +4 -1
  51. package/dist/cjs/biz-components/MediaSceneSwitcherV2/index.d.ts +3 -1
  52. package/dist/cjs/biz-components/MediaShelf/index.d.ts +4 -1
  53. package/dist/cjs/biz-components/MemberEquity/index.d.ts +3 -1
  54. package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.d.ts +19 -2
  55. package/dist/cjs/biz-components/NavigationSearch/index.d.ts +4 -1
  56. package/dist/cjs/biz-components/ProductCompare/index.d.ts +1 -1
  57. package/dist/cjs/biz-components/ProductHero/ProductHero.d.ts +5 -1
  58. package/dist/cjs/biz-components/ProductLottery/index.d.ts +3 -1
  59. package/dist/cjs/biz-components/ProductNav/ProductNav.d.ts +4 -1
  60. package/dist/cjs/biz-components/PromotionalBar/index.d.ts +3 -1
  61. package/dist/cjs/biz-components/SecondaryBanner/index.d.ts +3 -1
  62. package/dist/cjs/biz-components/SelectStore/index.d.ts +7 -1
  63. package/dist/cjs/biz-components/ShelfDisplay/index.d.ts +5 -1
  64. package/dist/cjs/biz-components/Slogan/index.d.ts +5 -1
  65. package/dist/cjs/biz-components/Spacer/index.d.ts +5 -1
  66. package/dist/cjs/biz-components/Specs/index.d.ts +3 -1
  67. package/dist/cjs/biz-components/SpecsComparison/SpecsComparison.d.ts +5 -1
  68. package/dist/cjs/biz-components/Subscribe/index.js +2 -2
  69. package/dist/cjs/biz-components/Subscribe/index.js.map +2 -2
  70. package/dist/cjs/biz-components/TabWithImage/TabWithImage.d.ts +5 -1
  71. package/dist/cjs/biz-components/Tabs/Tabs.d.ts +5 -1
  72. package/dist/cjs/biz-components/Tabs/Tabs.js +1 -1
  73. package/dist/cjs/biz-components/Tabs/Tabs.js.map +2 -2
  74. package/dist/cjs/biz-components/TabsGroup/index.d.ts +5 -1
  75. package/dist/cjs/biz-components/TabsWithMedia/TabsWithMedia.d.ts +5 -1
  76. package/dist/cjs/biz-components/ThreeDCarousel/ThreeDCarousel.d.ts +5 -1
  77. package/dist/cjs/biz-components/Title/index.d.ts +3 -1
  78. package/dist/cjs/biz-components/VideoFeature/VideoFeature.d.ts +5 -1
  79. package/dist/cjs/biz-components/WheelLottery/index.d.ts +3 -1
  80. package/dist/cjs/biz-components/WhyChoose/WhyChoose.d.ts +5 -2
  81. package/dist/cjs/shared/Styles.d.ts +7 -21
  82. package/dist/cjs/shared/Styles.js +1 -1
  83. package/dist/cjs/shared/Styles.js.map +3 -3
  84. package/dist/esm/biz-components/AccordionCards/index.d.ts +38 -1
  85. package/dist/esm/biz-components/ActiveShelf/index.d.ts +4 -1
  86. package/dist/esm/biz-components/ActivitySchedule/index.d.ts +5 -1
  87. package/dist/esm/biz-components/AnchorNavigation/index.d.ts +3 -1
  88. package/dist/esm/biz-components/AplusDesc/index.d.ts +17 -1
  89. package/dist/esm/biz-components/BrandCardLink/BrandCardLink.d.ts +4 -1
  90. package/dist/esm/biz-components/BrandEquity/BrandEquity.d.ts +4 -1
  91. package/dist/esm/biz-components/Category/index.d.ts +3 -1
  92. package/dist/esm/biz-components/CreativeModule/index.d.ts +7 -1
  93. package/dist/esm/biz-components/DownLoad/index.d.ts +6 -1
  94. package/dist/esm/biz-components/Evaluate/index.d.ts +3 -1
  95. package/dist/esm/biz-components/EventSchedule/index.d.ts +3 -1
  96. package/dist/esm/biz-components/Faq/Faq.d.ts +5 -2
  97. package/dist/esm/biz-components/FeatureCards/FeatureCards.d.ts +5 -1
  98. package/dist/esm/biz-components/FeatureShowcase/FeatureShowcase.d.ts +5 -1
  99. package/dist/esm/biz-components/FeaturedBlogPosts/index.d.ts +3 -1
  100. package/dist/esm/biz-components/Features/index.d.ts +8 -1
  101. package/dist/esm/biz-components/FootCharger/index.d.ts +7 -1
  102. package/dist/esm/biz-components/FooterNavigation/index.d.ts +2 -1
  103. package/dist/esm/biz-components/GiftBox/index.d.ts +3 -1
  104. package/dist/esm/biz-components/GiftShelf/index.d.ts +5 -1
  105. package/dist/esm/biz-components/GiftTierShelf/index.d.ts +5 -1
  106. package/dist/esm/biz-components/Graphic/index.d.ts +3 -1
  107. package/dist/esm/biz-components/GraphicAttractionBlock/index.d.ts +3 -1
  108. package/dist/esm/biz-components/GraphicMore/index.d.ts +7 -1
  109. package/dist/esm/biz-components/GraphicOverlay/GraphicOverlay.d.ts +12 -2
  110. package/dist/esm/biz-components/HeaderNavigation/index.d.ts +5 -1
  111. package/dist/esm/biz-components/HeroBanner/HeroBanner.d.ts +7 -1
  112. package/dist/esm/biz-components/ImageOverlayShelf/index.d.ts +4 -1
  113. package/dist/esm/biz-components/ImageTextFeature/ImageTextFeature.d.ts +5 -1
  114. package/dist/esm/biz-components/ImageWithText/ImageWithText.d.ts +5 -1
  115. package/dist/esm/biz-components/Ksp/index.d.ts +1 -1
  116. package/dist/esm/biz-components/Listing/components/PaidShipping/index.d.ts +11 -1
  117. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +26 -1
  118. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +1 -1
  119. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +1 -1
  120. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +1 -1
  121. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +1 -1
  122. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +1 -1
  123. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +1 -1
  124. package/dist/esm/biz-components/Listing/components/ProductCard/ProductPaidShipping/index.d.ts +11 -1
  125. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +1 -1
  126. package/dist/esm/biz-components/Listing/components/PurchaseBar/index.d.ts +2 -1
  127. package/dist/esm/biz-components/Marquee/Marquee.d.ts +5 -2
  128. package/dist/esm/biz-components/MarqueeReview/index.d.ts +1 -1
  129. package/dist/esm/biz-components/MediaEndorsement/index.d.ts +4 -1
  130. package/dist/esm/biz-components/MediaPlayerBase/index.d.ts +4 -1
  131. package/dist/esm/biz-components/MediaPlayerMulti/index.d.ts +4 -1
  132. package/dist/esm/biz-components/MediaPlayerSticky/index.d.ts +7 -1
  133. package/dist/esm/biz-components/MediaSceneSwitcher/MediaSceneSwitcher.d.ts +4 -1
  134. package/dist/esm/biz-components/MediaSceneSwitcherV2/index.d.ts +3 -1
  135. package/dist/esm/biz-components/MediaShelf/index.d.ts +4 -1
  136. package/dist/esm/biz-components/MemberEquity/index.d.ts +3 -1
  137. package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.d.ts +19 -2
  138. package/dist/esm/biz-components/NavigationSearch/index.d.ts +4 -1
  139. package/dist/esm/biz-components/ProductCompare/index.d.ts +1 -1
  140. package/dist/esm/biz-components/ProductHero/ProductHero.d.ts +5 -1
  141. package/dist/esm/biz-components/ProductLottery/index.d.ts +3 -1
  142. package/dist/esm/biz-components/ProductNav/ProductNav.d.ts +4 -1
  143. package/dist/esm/biz-components/PromotionalBar/index.d.ts +3 -1
  144. package/dist/esm/biz-components/SecondaryBanner/index.d.ts +3 -1
  145. package/dist/esm/biz-components/SelectStore/index.d.ts +7 -1
  146. package/dist/esm/biz-components/ShelfDisplay/index.d.ts +5 -1
  147. package/dist/esm/biz-components/Slogan/index.d.ts +5 -1
  148. package/dist/esm/biz-components/Spacer/index.d.ts +5 -1
  149. package/dist/esm/biz-components/Specs/index.d.ts +3 -1
  150. package/dist/esm/biz-components/SpecsComparison/SpecsComparison.d.ts +5 -1
  151. package/dist/esm/biz-components/Subscribe/index.js +2 -2
  152. package/dist/esm/biz-components/Subscribe/index.js.map +2 -2
  153. package/dist/esm/biz-components/TabWithImage/TabWithImage.d.ts +5 -1
  154. package/dist/esm/biz-components/Tabs/Tabs.d.ts +5 -1
  155. package/dist/esm/biz-components/Tabs/Tabs.js +1 -1
  156. package/dist/esm/biz-components/Tabs/Tabs.js.map +2 -2
  157. package/dist/esm/biz-components/TabsGroup/index.d.ts +5 -1
  158. package/dist/esm/biz-components/TabsWithMedia/TabsWithMedia.d.ts +5 -1
  159. package/dist/esm/biz-components/ThreeDCarousel/ThreeDCarousel.d.ts +5 -1
  160. package/dist/esm/biz-components/Title/index.d.ts +3 -1
  161. package/dist/esm/biz-components/VideoFeature/VideoFeature.d.ts +5 -1
  162. package/dist/esm/biz-components/WheelLottery/index.d.ts +3 -1
  163. package/dist/esm/biz-components/WhyChoose/WhyChoose.d.ts +5 -2
  164. package/dist/esm/shared/Styles.d.ts +7 -21
  165. package/dist/esm/shared/Styles.js +1 -1
  166. package/dist/esm/shared/Styles.js.map +3 -3
  167. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/shared/Styles.tsx"],
4
- "sourcesContent": ["import React, { useMemo } from 'react'\nimport { simpleHash } from './simpleHash.js'\nimport getKeyPropsString from './getKeyPropsString.js'\nimport { Grid, GridItem } from '../components/grid.js'\nimport { Container } from '../components/container.js'\nimport ErrorBoundary from './ErrorBoundary.js'\n\nconst colContentClasses: Record<number, string> = {\n 12: 'col-start-1 col-end-13',\n 10: 'col-start-2 col-end-12',\n 8: 'col-start-3 col-end-11',\n 6: 'col-start-4 col-end-10',\n 4: 'col-start-5 col-end-9',\n} as const\n\n// \u9884\u5B9A\u4E49\u5E26 tablet \u524D\u7F00\u7684\u7C7B\u540D\uFF0C\u786E\u4FDD Tailwind \u53EF\u4EE5\u8BC6\u522B\nconst colContentClassesTablet: Record<number, string> = {\n 12: 'tablet:col-start-1 tablet:col-end-13',\n 10: 'tablet:col-start-2 tablet:col-end-12',\n 8: 'tablet:col-start-3 tablet:col-end-11',\n 6: 'tablet:col-start-4 tablet:col-end-10',\n 4: 'tablet:col-start-5 tablet:col-end-9',\n} as const\n\nexport interface ContainerProps {\n container?: {\n /** \u684C\u9762\u7AEF\u5217\u5185\u5BB9\u5BBD\u5EA6 */\n desktopSpan: number\n /** \u79FB\u52A8\u7AEF\u5217\u5185\u5BB9\u5BBD\u5EA6 */\n mobileSpan: number\n }\n}\n\nexport interface StylesProps {\n /** \u81EA\u5B9A\u4E49\u6837\u5F0F\u5B57\u7B26\u4E32\u6216\u5BF9\u8C61 */\n style?: string | React.CSSProperties\n /** \u552F\u4E00\u6807\u8BC6\u7B26 */\n uid?: string\n /** \u662F\u5426\u7981\u7528 */\n disabled?: boolean\n}\n\n/**\n * \u6839\u636E props \u751F\u6210\u786E\u5B9A\u6027 uid\n */\nconst generateUID = (props: Record<string, any>) => {\n const keyString = getKeyPropsString(props)\n return `style_${simpleHash(keyString)}`\n}\n\n/**\n * \u4ECE\u7EC4\u4EF6 props \u4E2D\u63D0\u53D6\u6837\u5F0F\u76F8\u5173\u5C5E\u6027\n */\nexport const getStylesProps = <T extends Record<string, unknown>>(props: T & StylesProps): StylesProps => {\n const { style, uid, disabled } = props\n return { style, uid, disabled }\n}\n\n/**\n * \u6837\u5F0F\u6CE8\u5165\u7EC4\u4EF6\n */\nconst Styles: React.FC<StylesProps> = ({ style, uid = generateUID({}), disabled = false }) => {\n if (!style || disabled) {\n return null\n }\n\n return (\n <style\n suppressHydrationWarning\n data-style-id={uid}\n dangerouslySetInnerHTML={{ __html: `.block-${uid} { ${style} }` }}\n />\n )\n}\n\n/**\n * \u6837\u5F0F Hook\uFF0C\u8FD4\u56DE\u6837\u5F0F\u7C7B\u540D\u548C\u6837\u5F0F\u7EC4\u4EF6\n * @param styleProps - \u6837\u5F0F\u5C5E\u6027\n */\nexport const useStyles = (styleProps: Partial<StylesProps>, data?: Record<string, any>) => {\n const uid = useMemo(() => styleProps?.uid || generateUID({ ...styleProps, data }), [data, styleProps])\n\n const StyleComponent = useMemo(() => <Styles {...styleProps} uid={uid} />, [styleProps, uid])\n\n return {\n className: `block-${uid} `,\n StyleComponent,\n uid,\n } as const\n}\n\nconst getContainerClassName = (props?: Partial<StylesProps & ContainerProps>) => {\n const { desktopSpan, mobileSpan } = props?.container || {}\n const mobileClasses = mobileSpan ? colContentClasses[mobileSpan] : ''\n const desktopClasses = desktopSpan ? colContentClassesTablet[desktopSpan] : ''\n return `${mobileClasses} ${desktopClasses}`.trim()\n}\n\n/**\n * \u6807\u8BB0\u7EC4\u4EF6\u662F\u5426\u5DF2\u88AB withLayout \u5305\u88C5\n */\nconst WRAPPED_COMPONENT_SYMBOL = Symbol('withLayoutWrapped')\n\n/**\n * \u9AD8\u9636\u7EC4\u4EF6\u901A\u8FC7 withLayout \u5305\u88C5\u7EC4\u4EF6\uFF0C\u81EA\u52A8\u5E94\u7528\u6837\u5F0F\u548C\u5BB9\u5668\u5E03\u5C40\n *\n * @param WrappedComponent - \u9700\u8981\u5305\u88C5\u7684\u7EC4\u4EF6\n * @param defaultLayoutProps - \u9ED8\u8BA4\u6837\u5F0F\u5C5E\u6027\n */\nexport function withLayout<P>(\n WrappedComponent: React.ComponentType<P>,\n defaultLayoutProps?: Partial<StylesProps & ContainerProps>\n) {\n // \u9632\u6B62\u91CD\u590D\u5305\u88C5\n if ((WrappedComponent as any)[WRAPPED_COMPONENT_SYMBOL]) {\n return WrappedComponent as any\n }\n // \u4F7F\u7528\u60A8\u7684\u7B80\u6D01\u65B9\u6CD5\uFF1A\u76F4\u63A5\u7528\u6CDB\u578B\u4FDD\u7559\u7C7B\u578B\n const withLayout = React.forwardRef<\n any,\n P & { style?: string | React.CSSProperties; container?: ContainerProps['container'] }\n >((props, ref) => {\n const propsStyleProps = getStylesProps(props)\n\n // \u5C06 style \u5BF9\u8C61\u8F6C\u6362\u4E3A\u5B57\u7B26\u4E32\n const styleToString = (style?: string | React.CSSProperties): string => {\n if (!style) return ''\n if (typeof style === 'string') return style\n if (typeof style === 'object' && Object.entries(style).length <= 0) return ''\n return (\n Object.entries(style)\n .map(([key, value]) => {\n const cssKey = key.replace(/([A-Z])/g, '-$1').toLowerCase()\n return `${cssKey}: ${value}`\n })\n .join('; ') + ';'\n )\n }\n\n // \u5408\u5E76 style \u5B57\u6BB5\uFF0C\u907F\u514D\u8986\u76D6\uFF0C\u786E\u4FDD\u6BCF\u4E2A\u6837\u5F0F\u90FD\u4EE5\u5206\u53F7\u7ED3\u5C3E\n const mergedStyle = [defaultLayoutProps?.style, propsStyleProps?.style]\n .map(styleToString)\n .filter((style): style is string => Boolean(style))\n .map(style => (style.trim().endsWith(';') ? style : `${style};`))\n .join(' ')\n\n const finalStyleProps = {\n ...defaultLayoutProps,\n ...propsStyleProps,\n ...(mergedStyle && { style: mergedStyle }),\n }\n\n const { className, StyleComponent } = useStyles(finalStyleProps, (props as any)?.data)\n\n const WithContainerWrapper = (props: any) => {\n return (\n <Container className={`${className} ${(props as any)?.className || ''}`.trim()}>\n <Grid className=\"container_grid\">\n <GridItem className={getContainerClassName(props)}>\n <WrappedComponent {...props} ref={ref} />\n </GridItem>\n </Grid>\n </Container>\n )\n }\n\n const WithoutContainerWrapper = (props: any) => {\n return <WrappedComponent {...props} className={`${className} ${props?.className || '' || ''}`.trim()} ref={ref} />\n }\n\n // @ts-ignore\n // eslint-disable-next-line no-unused-vars\n const { style: _style, ...withOutStyleProps } = props\n\n return (\n <>\n <ErrorBoundary>\n {StyleComponent}\n {Reflect.ownKeys((withOutStyleProps as any)?.container || {})?.length > 0\n ? WithContainerWrapper(withOutStyleProps)\n : WithoutContainerWrapper(withOutStyleProps)}\n </ErrorBoundary>\n </>\n )\n })\n\n withLayout.displayName = `WithLayout${WrappedComponent.displayName || WrappedComponent.name || 'Component'}`\n\n // \u6807\u8BB0\u7EC4\u4EF6\u5DF2\u88AB\u5305\u88C5\n ;(withLayout as any)[WRAPPED_COMPONENT_SYMBOL] = true\n return withLayout\n}\n"],
5
- "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,EAAA,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mB,EAAK,EACzC,EACF,EACF,EAIES,EAA2B5B,MACxB,OAACgB,EAAA,CAAkB,GAAGhB,EAAO,UAAW,GAAG0B,CAAS,IAAI1B,GAAO,WAAa,IAAM,EAAE,GAAG,KAAK,EAAG,IAAKmB,EAAK,EAK5G,CAAE,MAAOU,EAAQ,GAAGC,CAAkB,EAAI9B,EAEhD,SACE,mBACE,oBAAC,EAAA+B,QAAA,CACE,UAAAtB,EACA,QAAQ,QAASqB,GAA2B,WAAa,CAAC,CAAC,GAAG,OAAS,EACpEH,EAAqBG,CAAiB,EACtCF,EAAwBE,CAAiB,GAC/C,EACF,CAEJ,CAAC,EAED,OAAA1C,EAAW,YAAc,aAAa4B,EAAiB,aAAeA,EAAiB,MAAQ,WAAW,GAGxG5B,EAAmB2B,CAAwB,EAAI,GAC1C3B,CACT",
6
- "names": ["Styles_exports", "__export", "getStylesProps", "useStyles", "withLayout", "__toCommonJS", "import_jsx_runtime", "import_react", "import_simpleHash", "import_getKeyPropsString", "import_grid", "import_container", "import_ErrorBoundary", "colContentClasses", "colContentClassesTablet", "generateUID", "props", "keyString", "getKeyPropsString", "style", "uid", "disabled", "Styles", "styleProps", "data", "StyleComponent", "getContainerClassName", "desktopSpan", "mobileSpan", "mobileClasses", "desktopClasses", "WRAPPED_COMPONENT_SYMBOL", "WrappedComponent", "defaultLayoutProps", "React", "ref", "propsStyleProps", "styleToString", "key", "value", "mergedStyle", "finalStyleProps", "className", "WithContainerWrapper", "WithoutContainerWrapper", "_style", "withOutStyleProps", "ErrorBoundary"]
4
+ "sourcesContent": ["import React, { useMemo } from 'react'\nimport { simpleHash } from './simpleHash.js'\nimport getKeyPropsString from './getKeyPropsString.js'\nimport { Grid, GridItem } from '../components/grid.js'\nimport { Container } from '../components/container.js'\nimport ErrorBoundary from './ErrorBoundary.js'\n\nconst colContentClasses: Record<number, string> = {\n 12: 'col-start-1 col-end-13',\n 10: 'col-start-2 col-end-12',\n 8: 'col-start-3 col-end-11',\n 6: 'col-start-4 col-end-10',\n 4: 'col-start-5 col-end-9',\n} as const\n\n// \u9884\u5B9A\u4E49\u5E26 tablet \u524D\u7F00\u7684\u7C7B\u540D\uFF0C\u786E\u4FDD Tailwind \u53EF\u4EE5\u8BC6\u522B\nconst colContentClassesTablet: Record<number, string> = {\n 12: 'tablet:col-start-1 tablet:col-end-13',\n 10: 'tablet:col-start-2 tablet:col-end-12',\n 8: 'tablet:col-start-3 tablet:col-end-11',\n 6: 'tablet:col-start-4 tablet:col-end-10',\n 4: 'tablet:col-start-5 tablet:col-end-9',\n} as const\n\nexport interface ContainerProps {\n container?: {\n desktopSpan: number\n mobileSpan: number\n }\n}\n\nexport interface StylesProps {\n style?: string | React.CSSProperties\n uid?: string\n disabled?: boolean\n containerClassName?: string\n}\n\ntype LayoutProps<P> = Omit<P, keyof StylesProps | keyof ContainerProps> & StylesProps & ContainerProps\n\ntype StaticComponentProperties<T> = Omit<T, keyof React.ComponentType<any> | 'displayName' | 'prototype'>\n\nconst generateUID = (props: Record<string, unknown>) => {\n const keyString = getKeyPropsString(props)\n return `style_${simpleHash(keyString)}`\n}\n\nexport const getStylesProps = <T extends StylesProps>(props: T): StylesProps => {\n const { style, uid, disabled, containerClassName } = props\n return { style, uid, disabled, containerClassName }\n}\n\nconst Styles: React.FC<StylesProps> = ({ style, uid = generateUID({}), disabled = false }) => {\n if (!style || disabled) {\n return null\n }\n\n return (\n <style\n suppressHydrationWarning\n data-style-id={uid}\n dangerouslySetInnerHTML={{ __html: `.block-${uid} { ${style} }` }}\n />\n )\n}\n\nexport const useStyles = (styleProps: Partial<StylesProps>, data?: Record<string, unknown>) => {\n const uid = useMemo(() => styleProps?.uid || generateUID({ ...styleProps, ...(data ?? {}) }), [data, styleProps])\n\n const StyleComponent = useMemo(() => <Styles {...styleProps} uid={uid} />, [styleProps, uid])\n\n return {\n className: `block-${uid} `,\n StyleComponent,\n uid,\n } as const\n}\n\nconst getGridItemClassName = (container?: ContainerProps['container']) => {\n const { desktopSpan, mobileSpan } = container || {}\n const mobileClasses = mobileSpan ? colContentClasses[mobileSpan] : ''\n const desktopClasses = desktopSpan ? colContentClassesTablet[desktopSpan] : ''\n return `${mobileClasses} ${desktopClasses}`.trim()\n}\n\nconst styleToString = (style?: string | React.CSSProperties): string => {\n if (!style) return ''\n if (typeof style === 'string') return style\n if (typeof style === 'object' && Object.entries(style).length <= 0) return ''\n return (\n Object.entries(style)\n .map(([key, value]) => {\n const cssKey = key.replace(/([A-Z])/g, '-$1').toLowerCase()\n return `${cssKey}: ${value}`\n })\n .join('; ') + ';'\n )\n}\n\nconst mergeStyles = (a?: string | React.CSSProperties, b?: string | React.CSSProperties): string =>\n [a, b]\n .map(styleToString)\n .filter((s): s is string => Boolean(s))\n .map(s => (s.trim().endsWith(';') ? s : `${s};`))\n .join(' ')\n\ntype InternalProps = StylesProps &\n ContainerProps & { className?: string; data?: Record<string, unknown> } & Record<string, unknown>\n\nfunction withStyleInjection(\n WrappedComponent: React.ComponentType<InternalProps>,\n defaultStyleProps?: Partial<StylesProps>\n): React.ComponentType<InternalProps> {\n const Wrapped = React.forwardRef<unknown, InternalProps>((props, ref) => {\n const propsStyleProps = getStylesProps(props)\n const mergedStyle = mergeStyles(defaultStyleProps?.style, propsStyleProps.style)\n\n const finalStyleProps: StylesProps = {\n ...defaultStyleProps,\n ...propsStyleProps,\n ...(mergedStyle && { style: mergedStyle }),\n }\n\n const { className, StyleComponent } = useStyles(finalStyleProps, props.data as Record<string, unknown> | undefined)\n\n // eslint-disable-next-line no-unused-vars\n const { style: _s, uid: _u, disabled: _d, className: ownClassName, ...rest } = props\n\n return (\n <>\n {StyleComponent}\n <WrappedComponent {...rest} className={[className, ownClassName].filter(Boolean).join(' ').trim()} ref={ref} />\n </>\n )\n })\n\n Wrapped.displayName = `WithStyleInjection(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`\n return Wrapped as React.ComponentType<InternalProps>\n}\n\nfunction withContainerLayout(\n WrappedComponent: React.ComponentType<InternalProps>,\n defaultContainerClassName?: string\n): React.ComponentType<InternalProps> {\n const Wrapped = React.forwardRef<unknown, InternalProps>((props, ref) => {\n // eslint-disable-next-line no-unused-vars\n const { container, containerClassName, ...componentProps } = props\n\n if (!container || Reflect.ownKeys(container).length === 0) {\n return <WrappedComponent {...componentProps} ref={ref} />\n }\n\n const mergedContainerClassName = [defaultContainerClassName, containerClassName].filter(Boolean).join(' ').trim()\n\n return (\n <Container className={mergedContainerClassName}>\n <Grid className=\"container_grid\">\n <GridItem className={getGridItemClassName(container as ContainerProps['container'])}>\n <WrappedComponent {...componentProps} ref={ref} />\n </GridItem>\n </Grid>\n </Container>\n )\n })\n\n Wrapped.displayName = `WithContainerLayout(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`\n return Wrapped as React.ComponentType<InternalProps>\n}\n\nfunction withErrorBoundary(WrappedComponent: React.ComponentType<InternalProps>): React.ComponentType<InternalProps> {\n const Wrapped = React.forwardRef<unknown, InternalProps>((props, ref) => (\n <ErrorBoundary>\n <WrappedComponent {...props} ref={ref} />\n </ErrorBoundary>\n ))\n\n Wrapped.displayName = `WithErrorBoundary(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`\n return Wrapped as React.ComponentType<InternalProps>\n}\n\nconst wrappedComponents = new WeakMap<React.ComponentType<never>, true>()\n\nexport function withLayout<T extends React.ComponentType<any>>(\n WrappedComponent: T,\n defaultLayoutProps?: Partial<StylesProps & ContainerProps>\n): React.ForwardRefExoticComponent<LayoutProps<React.ComponentProps<T>> & React.RefAttributes<unknown>> &\n StaticComponentProperties<T> {\n if (wrappedComponents.has(WrappedComponent as React.ComponentType<never>)) {\n return WrappedComponent as unknown as React.ForwardRefExoticComponent<\n LayoutProps<React.ComponentProps<T>> & React.RefAttributes<unknown>\n > &\n StaticComponentProperties<T>\n }\n\n const composed = withErrorBoundary(\n withContainerLayout(\n withStyleInjection(WrappedComponent as unknown as React.ComponentType<InternalProps>, defaultLayoutProps),\n defaultLayoutProps?.containerClassName\n )\n )\n\n composed.displayName = `WithLayout(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`\n\n wrappedComponents.set(WrappedComponent as React.ComponentType<never>, true)\n\n const result = composed as unknown as React.ForwardRefExoticComponent<\n LayoutProps<React.ComponentProps<T>> & React.RefAttributes<unknown>\n > &\n StaticComponentProperties<T>\n\n Object.getOwnPropertyNames(WrappedComponent).forEach(key => {\n if (!(key in result) && key !== 'arguments' && key !== 'caller' && key !== 'length' && key !== 'name') {\n ;(result as any)[key] = (WrappedComponent as any)[key]\n }\n })\n\n return result\n}\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,EAAA,cAAAC,EAAA,eAAAC,IAAA,eAAAC,EAAAL,GA0DI,IAAAM,EAAA,6BA1DJC,EAA+B,oBAC/BC,EAA2B,2BAC3BC,EAA8B,qCAC9BC,EAA+B,iCAC/BC,EAA0B,sCAC1BC,EAA0B,iCAE1B,MAAMC,EAA4C,CAChD,GAAI,yBACJ,GAAI,yBACJ,EAAG,yBACH,EAAG,yBACH,EAAG,uBACL,EAGMC,EAAkD,CACtD,GAAI,uCACJ,GAAI,uCACJ,EAAG,uCACH,EAAG,uCACH,EAAG,qCACL,EAoBMC,EAAeC,GAAmC,CACtD,MAAMC,KAAY,EAAAC,SAAkBF,CAAK,EACzC,MAAO,YAAS,cAAWC,CAAS,CAAC,EACvC,EAEaf,EAAyCc,GAA0B,CAC9E,KAAM,CAAE,MAAAG,EAAO,IAAAC,EAAK,SAAAC,EAAU,mBAAAC,CAAmB,EAAIN,EACrD,MAAO,CAAE,MAAAG,EAAO,IAAAC,EAAK,SAAAC,EAAU,mBAAAC,CAAmB,CACpD,EAEMC,EAAgC,CAAC,CAAE,MAAAJ,EAAO,IAAAC,EAAML,EAAY,CAAC,CAAC,EAAG,SAAAM,EAAW,EAAM,IAClF,CAACF,GAASE,EACL,QAIP,OAAC,SACC,yBAAwB,GACxB,gBAAeD,EACf,wBAAyB,CAAE,OAAQ,U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lB,EAA0F,CACnH,MAAME,EAAU,EAAAC,QAAM,WAAmC,CAAC5B,EAAO6B,OAC/D,OAAC,EAAAe,QAAA,CACC,mBAACnB,EAAA,CAAkB,GAAGzB,EAAO,IAAK6B,EAAK,EACzC,CACD,EAED,OAAAF,EAAQ,YAAc,qBAAqBF,EAAiB,aAAeA,EAAiB,MAAQ,WAAW,IACxGE,CACT,CAEA,MAAMkB,EAAoB,IAAI,QAEvB,SAASzD,EACdqC,EACAqB,EAE6B,CAC7B,GAAID,EAAkB,IAAIpB,CAA8C,EACtE,OAAOA,EAMT,MAAMsB,EAAWJ,EACfJ,EACEf,EAAmBC,EAAmEqB,CAAkB,EACxGA,GAAoB,kBACtB,CACF,EAEAC,EAAS,YAAc,cAActB,EAAiB,aAAeA,EAAiB,MAAQ,WAAW,IAEzGoB,EAAkB,IAAIpB,EAAgD,EAAI,EAE1E,MAAMuB,EAASD,EAKf,cAAO,oBAAoBtB,CAAgB,EAAE,QAAQP,GAAO,CACtD,EAAEA,KAAO8B,IAAW9B,IAAQ,aAAeA,IAAQ,UAAYA,IAAQ,UAAYA,IAAQ,SAC3F8B,EAAe9B,CAAG,EAAKO,EAAyBP,CAAG,EAEzD,CAAC,EAEM8B,CACT",
6
+ "names": ["Styles_exports", "__export", "getStylesProps", "useStyles", "withLayout", "__toCommonJS", "import_jsx_runtime", "import_react", "import_simpleHash", "import_getKeyPropsString", "import_grid", "import_container", "import_ErrorBoundary", "colContentClasses", "colContentClassesTablet", "generateUID", "props", "keyString", "getKeyPropsString", "style", "uid", "disabled", "containerClassName", "Styles", "styleProps", "data", "StyleComponent", "getGridItemClassName", "container", "desktopSpan", "mobileSpan", "mobileClasses", "desktopClasses", "styleToString", "key", "value", "mergeStyles", "a", "b", "s", "withStyleInjection", "WrappedComponent", "defaultStyleProps", "Wrapped", "React", "ref", "propsStyleProps", "mergedStyle", "finalStyleProps", "className", "_s", "_u", "_d", "ownClassName", "rest", "withContainerLayout", "defaultContainerClassName", "componentProps", "mergedContainerClassName", "withErrorBoundary", "ErrorBoundary", "wrappedComponents", "defaultLayoutProps", "composed", "result"]
7
7
  }
@@ -48,5 +48,42 @@ export type AccordionCardsType = Omit<React.HTMLAttributes<HTMLDivElement>, 'cla
48
48
  primaryButton?: (_v: any, _index: number) => void;
49
49
  };
50
50
  };
51
- declare const _default: any;
51
+ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
52
+ className?: string;
53
+ data: {
54
+ key?: string;
55
+ title?: string;
56
+ products: Array<ItemType>;
57
+ /** 按钮形状 */
58
+ shape?: "round" | "square";
59
+ /** 卡片形状 */
60
+ itemShape?: "round" | "square";
61
+ /** 主按钮配置 */
62
+ primaryButton?: string;
63
+ theme?: "light" | "dark";
64
+ };
65
+ /**
66
+ * 自动播放配置
67
+ */
68
+ autoplay?: {
69
+ /**
70
+ * 是否开启自动播放
71
+ */
72
+ enabled: boolean;
73
+ /**
74
+ * 是否循环播放
75
+ */
76
+ loop?: boolean;
77
+ /**
78
+ * 自动播放间隔时间,单位毫秒
79
+ */
80
+ interval?: number;
81
+ };
82
+ /** 按钮事件*/
83
+ event?: {
84
+ primaryButton?: (_v: any, _index: number) => void;
85
+ };
86
+ } & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
87
+ readonly $$typeof: symbol;
88
+ };
52
89
  export default _default;
@@ -87,6 +87,9 @@ export interface ActiveShelfComponent extends React.ForwardRefExoticComponent<Ac
87
87
  /** 独立的 ProductCard 组件 */
88
88
  ProductCard: typeof ProductCard;
89
89
  }
90
- declare const ActiveShelfWrapped: any;
90
+ declare const ActiveShelfWrapped: React.ForwardRefExoticComponent<Omit<ActiveShelfProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
91
+ readonly $$typeof: symbol;
92
+ ProductCard: typeof ProductCard;
93
+ };
91
94
  export default ActiveShelfWrapped;
92
95
  export type { StockDisplayMode, ActiveShelfSemanticName, ProductCardData };
@@ -1,3 +1,7 @@
1
- declare const _default: any;
1
+ import * as React from 'react';
2
+ import type { ActivityScheduleProps } from './types.js';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<ActivityScheduleProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
4
+ readonly $$typeof: symbol;
5
+ };
2
6
  export default _default;
3
7
  export type { ActivityScheduleProps, ActivityScheduleData, ActivityScheduleItem } from './types.js';
@@ -60,5 +60,7 @@ export interface AnchorNavigationProps extends React.HTMLAttributes<HTMLDivEleme
60
60
  */
61
61
  buttonStyle?: AnchorButtonStyle;
62
62
  }
63
- declare const _default: any;
63
+ declare const _default: React.ForwardRefExoticComponent<Omit<AnchorNavigationProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
64
+ readonly $$typeof: symbol;
65
+ };
64
66
  export default _default;
@@ -1,2 +1,18 @@
1
- declare const _default: any;
1
+ import type { Img } from '../../types/props.js';
2
+ type AplusItem = {
3
+ img: Img;
4
+ mobileImg: Img;
5
+ title: string;
6
+ desc: string;
7
+ theme: 'light' | 'dark';
8
+ };
9
+ interface AplusDescType extends React.HTMLAttributes<HTMLDivElement> {
10
+ data: {
11
+ title: string;
12
+ img: Img;
13
+ mobileImg: Img;
14
+ list: AplusItem[];
15
+ };
16
+ }
17
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<AplusDescType, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
2
18
  export default _default;
@@ -1,2 +1,5 @@
1
- declare const _default: any;
1
+ import type { BrandCardLinkProps } from './types.js';
2
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<BrandCardLinkProps & import("react").RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {
3
+ readonly $$typeof: symbol;
4
+ };
2
5
  export default _default;
@@ -1,2 +1,5 @@
1
- declare const _default: any;
1
+ import type { BrandEquityProps } from './types.js';
2
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<BrandEquityProps & import("react").RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {
3
+ readonly $$typeof: symbol;
4
+ };
2
5
  export default _default;
@@ -27,5 +27,7 @@ export interface CategoryProps extends React.HTMLAttributes<HTMLDivElement> {
27
27
  };
28
28
  key?: string;
29
29
  }
30
- declare const _default: any;
30
+ declare const _default: React.ForwardRefExoticComponent<Omit<CategoryProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
31
+ readonly $$typeof: symbol;
32
+ };
31
33
  export default _default;
@@ -7,5 +7,11 @@ export type CreativeModuleDataType = {
7
7
  theme: 'light' | 'dark';
8
8
  span: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
9
9
  };
10
- declare const _default: any;
10
+ interface CreativeModuleType extends React.HTMLAttributes<HTMLDivElement> {
11
+ data: {
12
+ shape?: 'rounded' | 'square';
13
+ productsTab: CreativeModuleDataType[];
14
+ };
15
+ }
16
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<CreativeModuleType, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
11
17
  export default _default;
@@ -7,5 +7,10 @@ export type DownLoadDataType = {
7
7
  line: Img;
8
8
  icon: Img;
9
9
  };
10
- declare const _default: any;
10
+ interface DownLoadType extends React.HTMLAttributes<HTMLDivElement> {
11
+ data: {
12
+ list: DownLoadDataType[];
13
+ };
14
+ }
15
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<DownLoadType, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
11
16
  export default _default;
@@ -29,5 +29,7 @@ export interface EvaluateProps extends React.HTMLAttributes<HTMLDivElement> {
29
29
  };
30
30
  key?: string;
31
31
  }
32
- declare const _default: any;
32
+ declare const _default: React.ForwardRefExoticComponent<Omit<EvaluateProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
33
+ readonly $$typeof: symbol;
34
+ };
33
35
  export default _default;
@@ -60,5 +60,7 @@ export interface EventScheduleProps extends React.HTMLAttributes<HTMLDivElement>
60
60
  data: EventScheduleData;
61
61
  classNames?: Partial<Record<EventScheduleSemanticName, string>>;
62
62
  }
63
- declare const _default: any;
63
+ declare const _default: React.ForwardRefExoticComponent<Omit<EventScheduleProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
64
+ readonly $$typeof: symbol;
65
+ };
64
66
  export default _default;
@@ -1,4 +1,5 @@
1
- import type { FaqItem as ItemType, FaqSemanticName } from './types.js';
1
+ import React from 'react';
2
+ import type { FaqProps, FaqItem as ItemType, FaqSemanticName } from './types.js';
2
3
  interface FaqItemProps {
3
4
  data: ItemType;
4
5
  defaultOpen?: boolean;
@@ -8,6 +9,8 @@ declare const FaqItem: {
8
9
  ({ data, defaultOpen, classNames }: FaqItemProps): import("react/jsx-runtime").JSX.Element;
9
10
  displayName: string;
10
11
  };
11
- declare const _default: any;
12
+ declare const _default: React.ForwardRefExoticComponent<Omit<FaqProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
13
+ readonly $$typeof: symbol;
14
+ };
12
15
  export default _default;
13
16
  export { FaqItem };
@@ -1,2 +1,6 @@
1
- declare const _default: any;
1
+ import React from 'react';
2
+ import type { FeatureCardsProps } from './types.js';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<FeatureCardsProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
4
+ readonly $$typeof: symbol;
5
+ };
2
6
  export default _default;
@@ -1,2 +1,6 @@
1
- declare const _default: any;
1
+ import React from 'react';
2
+ import type { FeatureShowcaseProps } from './types.js';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<FeatureShowcaseProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
4
+ readonly $$typeof: symbol;
5
+ };
2
6
  export default _default;
@@ -47,5 +47,7 @@ export interface FeaturedBlogPostsProps extends React.HTMLAttributes<HTMLDivElem
47
47
  /** 卡片点击回调 */
48
48
  onItemClick?: (item: FeaturedBlogPostItem, index: number, event: React.MouseEvent) => void;
49
49
  }
50
- declare const FeaturedBlogPosts: any;
50
+ declare const FeaturedBlogPosts: React.ForwardRefExoticComponent<Omit<FeaturedBlogPostsProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
51
+ readonly $$typeof: symbol;
52
+ };
51
53
  export default FeaturedBlogPosts;
@@ -10,5 +10,12 @@ export type FeaturesDataType = {
10
10
  textTwo: string;
11
11
  icon: Img;
12
12
  };
13
- declare const _default: any;
13
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement> & {
14
+ data: {
15
+ title: string;
16
+ img: Img;
17
+ mobileImg: Img;
18
+ list: FeaturesDataType[];
19
+ };
20
+ }, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
14
21
  export default _default;
@@ -1,2 +1,8 @@
1
- declare const _default: any;
1
+ interface FootChargerType extends React.HTMLAttributes<HTMLDivElement> {
2
+ data: {
3
+ title: string;
4
+ text: string;
5
+ };
6
+ }
7
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<FootChargerType, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
2
8
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ import type { FooterNavigationProps } from './types.js';
2
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<FooterNavigationProps, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
2
3
  export default _default;
@@ -1,5 +1,7 @@
1
+ import React from 'react';
1
2
  import 'swiper/css';
2
3
  import 'swiper/css/navigation';
3
4
  import 'swiper/css/pagination';
4
- declare const _default: any;
5
+ import type { GiftBoxType } from './types.js';
6
+ declare const _default: React.ForwardRefExoticComponent<Omit<GiftBoxType, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {};
5
7
  export default _default;
@@ -1,3 +1,7 @@
1
- declare const _default: any;
1
+ import * as React from 'react';
2
+ import type { GiftShelfProps } from './types.js';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<GiftShelfProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
4
+ readonly $$typeof: symbol;
5
+ };
2
6
  export default _default;
3
7
  export type { GiftShelfProps, GiftShelfData, GiftShelfItem, GiftShelfProduct, CountdownConfig, ResponsiveBackgroundImage, } from './types.js';
@@ -1,3 +1,7 @@
1
- declare const _default: any;
1
+ import * as React from 'react';
2
+ import type { GiftTierShelfProps } from './types.js';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<GiftTierShelfProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
4
+ readonly $$typeof: symbol;
5
+ };
2
6
  export default _default;
3
7
  export type { GiftTierShelfProps, GiftTierShelfData, GiftTierItem, GiftTierProduct } from './types.js';
@@ -37,5 +37,7 @@ export interface GraphicProps extends ComponentCommonProps, React.HTMLAttributes
37
37
  itemTheme?: Theme;
38
38
  };
39
39
  }
40
- declare const _default: any;
40
+ declare const _default: React.ForwardRefExoticComponent<Omit<GraphicProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
41
+ readonly $$typeof: symbol;
42
+ };
41
43
  export default _default;
@@ -17,6 +17,8 @@ interface GraphicAttractionBlockProps extends React.HTMLAttributes<HTMLElement>
17
17
  attractionItems?: AttractionItem[];
18
18
  };
19
19
  }
20
- declare const _default: any;
20
+ declare const _default: React.ForwardRefExoticComponent<Omit<GraphicAttractionBlockProps & React.RefAttributes<HTMLElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
21
+ readonly $$typeof: symbol;
22
+ };
21
23
  export default _default;
22
24
  export type { GraphicAttractionBlockProps };
@@ -8,5 +8,11 @@ export type GraphicMoreDataType = {
8
8
  fullWidth: 'true' | 'false';
9
9
  span: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
10
10
  };
11
- declare const _default: any;
11
+ interface GraphicMoreType extends React.HTMLAttributes<HTMLDivElement> {
12
+ data: {
13
+ shape?: 'rounded' | 'square';
14
+ productsTab: GraphicMoreDataType[];
15
+ };
16
+ }
17
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<GraphicMoreType, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
12
18
  export default _default;
@@ -1,4 +1,14 @@
1
- import type { GraphicOverlayProps } from './types';
2
- declare const _default: any;
1
+ import React from 'react';
2
+ import type { GraphicOverlayProps, Item } from './types';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement> & {
4
+ data: {
5
+ shape?: import("../../types/props").Shape;
6
+ items: ({
7
+ width?: "full" | "half" | "one-third";
8
+ } & Item)[];
9
+ };
10
+ } & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
11
+ readonly $$typeof: symbol;
12
+ };
3
13
  export default _default;
4
14
  export type { GraphicOverlayProps };
@@ -1,2 +1,6 @@
1
- declare const _default: any;
1
+ import React from 'react';
2
+ import type { HeaderNavigationProps } from './types.js';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<HeaderNavigationProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
4
+ readonly $$typeof: symbol;
5
+ };
2
6
  export default _default;
@@ -1,3 +1,9 @@
1
+ import React from 'react';
2
+ import type { HeroBannerProps } from './types.js';
1
3
  export type HeroBannerSemanticName = 'root' | 'title' | 'subtitle' | 'buttonGroup' | 'primaryButton' | 'secondaryButton' | 'captionGroup';
2
- declare const _default: any;
4
+ declare const _default: React.ForwardRefExoticComponent<Omit<HeroBannerProps & {
5
+ classNames?: Partial<Record<HeroBannerSemanticName, string>>;
6
+ } & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
7
+ readonly $$typeof: symbol;
8
+ };
3
9
  export default _default;
@@ -63,5 +63,8 @@ export interface ImageOverlayShelfComponent extends React.ForwardRefExoticCompon
63
63
  ProductCard: typeof ProductCard;
64
64
  }
65
65
  export { ProductCard };
66
- declare const ImageOverlayShelfWrapped: any;
66
+ declare const ImageOverlayShelfWrapped: React.ForwardRefExoticComponent<Omit<ImageOverlayShelfProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
67
+ readonly $$typeof: symbol;
68
+ ProductCard: typeof ProductCard;
69
+ };
67
70
  export default ImageOverlayShelfWrapped;
@@ -1,2 +1,6 @@
1
- declare const _default: any;
1
+ import React from 'react';
2
+ import type { ImageTextFeatureProps } from './types.js';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<ImageTextFeatureProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
4
+ readonly $$typeof: symbol;
5
+ };
2
6
  export default _default;
@@ -1,2 +1,6 @@
1
- declare const _default: any;
1
+ import React from 'react';
2
+ import type { ImageWithTextProps } from './types.js';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<ImageWithTextProps & React.RefAttributes<HTMLDivElement>, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {
4
+ readonly $$typeof: symbol;
5
+ };
2
6
  export default _default;
@@ -75,5 +75,5 @@ export interface KspProps extends Omit<React.HTMLAttributes<HTMLElement>, 'class
75
75
  /** 语义化类名配置 */
76
76
  classNames?: KspClassNames;
77
77
  }
78
- declare const _default: any;
78
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<KspProps, "container" | keyof import("../../shared/Styles.js").StylesProps> & import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
79
79
  export default _default;
@@ -1,2 +1,12 @@
1
- declare const _default: any;
1
+ import type { Product, ProductVariant } from '../../types/product';
2
+ import type { DeliveryCustom } from './type';
3
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<{
4
+ metafields: any;
5
+ productList: Array<Product & {
6
+ variant: ProductVariant;
7
+ }>;
8
+ variant: ProductVariant;
9
+ onShippingInfoChange: (deliveryCustom: DeliveryCustom) => void;
10
+ className?: string;
11
+ }, "container" | keyof import("../../../../shared/Styles.js").StylesProps> & import("../../../../shared/Styles.js").StylesProps & import("../../../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
2
12
  export default _default;
@@ -1,4 +1,26 @@
1
1
  import React from 'react';
2
+ interface BenefitsTabTextConfig {
3
+ couponCode?: string;
4
+ copyCode?: string;
5
+ copied?: string;
6
+ expired?: string;
7
+ offCoupon?: string;
8
+ offMemberOnly?: string;
9
+ loginNow?: string;
10
+ selectFreeGift?: string;
11
+ bundleSaveUpTo?: string;
12
+ bundleOffer?: string;
13
+ creditsTitle?: string;
14
+ creditsDesc?: string;
15
+ off?: string;
16
+ memberBenefitsNotLogin?: string;
17
+ memberBenefitsNotLoginText?: string;
18
+ forNewMember?: string;
19
+ expressShipping?: string;
20
+ creditsAfterActivation?: string;
21
+ active?: string;
22
+ flexibleInstallment?: string;
23
+ }
2
24
  export type ProductBenefitsTabsValueType = 'coupon' | 'membership' | 'pay' | 'installment';
3
25
  export type ModalData = {
4
26
  needClickAway?: boolean;
@@ -7,5 +29,8 @@ export type ModalData = {
7
29
  content?: string;
8
30
  domContent?: React.ReactNode;
9
31
  };
10
- declare const _default: any;
32
+ interface BenefitsTabProps {
33
+ textConfig?: BenefitsTabTextConfig;
34
+ }
35
+ declare const _default: React.ForwardRefExoticComponent<Omit<BenefitsTabProps, "container" | keyof import("../../../../../shared/Styles.js").StylesProps> & import("../../../../../shared/Styles.js").StylesProps & import("../../../../../shared/Styles.js").ContainerProps & React.RefAttributes<unknown>> & {};
11
36
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<unknown, "container" | keyof import("../../../../../../shared/Styles.js").StylesProps> & import("../../../../../../shared/Styles.js").StylesProps & import("../../../../../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<unknown, "container" | keyof import("../../../../../../shared/Styles.js").StylesProps> & import("../../../../../../shared/Styles.js").StylesProps & import("../../../../../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<unknown, "container" | keyof import("../../../../../../shared/Styles.js").StylesProps> & import("../../../../../../shared/Styles.js").StylesProps & import("../../../../../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<unknown, "container" | keyof import("../../../../../../shared/Styles.js").StylesProps> & import("../../../../../../shared/Styles.js").StylesProps & import("../../../../../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<unknown, "container" | keyof import("../../../../../../shared/Styles.js").StylesProps> & import("../../../../../../shared/Styles.js").StylesProps & import("../../../../../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
2
2
  export default _default;
@@ -1,5 +1,5 @@
1
1
  export interface ProductGalleryTabRef {
2
2
  scrollToTab: (index: number) => void;
3
3
  }
4
- declare const _default: any;
4
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<unknown, "container" | keyof import("../../../../../shared/Styles.js").StylesProps> & import("../../../../../shared/Styles.js").StylesProps & import("../../../../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
5
5
  export default _default;
@@ -1,2 +1,12 @@
1
- declare const _default: any;
1
+ import type { Product, ProductVariant } from '../../../types/product.js';
2
+ import type { DeliveryCustom } from '../../PaidShipping/type.js';
3
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<{
4
+ metafields: any;
5
+ productList: Array<Product & {
6
+ variant: ProductVariant;
7
+ }>;
8
+ variant: ProductVariant;
9
+ onShippingInfoChange: (deliveryCustom: DeliveryCustom) => void;
10
+ className?: string;
11
+ }, "container" | keyof import("../../../../../shared/Styles.js").StylesProps> & import("../../../../../shared/Styles.js").StylesProps & import("../../../../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
2
12
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<unknown, "container" | keyof import("../../../../../shared/Styles.js").StylesProps> & import("../../../../../shared/Styles.js").StylesProps & import("../../../../../shared/Styles.js").ContainerProps & import("react").RefAttributes<unknown>> & {};
2
2
  export default _default;