@anker-in/headless-ui 0.0.27-alpha.28 → 0.0.27-alpha.29

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 (160) hide show
  1. package/dist/cjs/biz-components/AccordionCards/index.d.ts +11 -8
  2. package/dist/cjs/biz-components/AccordionCards/index.js +1 -1
  3. package/dist/cjs/biz-components/AccordionCards/index.js.map +3 -3
  4. package/dist/cjs/biz-components/BrandEquity/BrandEquity.d.ts +3 -1
  5. package/dist/cjs/biz-components/BrandEquity/BrandEquity.js +1 -1
  6. package/dist/cjs/biz-components/BrandEquity/BrandEquity.js.map +3 -3
  7. package/dist/cjs/biz-components/Evaluate/index.js +1 -1
  8. package/dist/cjs/biz-components/Evaluate/index.js.map +2 -2
  9. package/dist/cjs/biz-components/MediaPlayerBase/index.js +1 -1
  10. package/dist/cjs/biz-components/MediaPlayerBase/index.js.map +3 -3
  11. package/dist/cjs/biz-components/MediaPlayerBase/types.d.ts +8 -6
  12. package/dist/cjs/biz-components/MediaPlayerBase/types.js +1 -1
  13. package/dist/cjs/biz-components/MediaPlayerBase/types.js.map +1 -1
  14. package/dist/cjs/biz-components/MediaPlayerMulti/index.js +1 -1
  15. package/dist/cjs/biz-components/MediaPlayerMulti/index.js.map +2 -2
  16. package/dist/cjs/biz-components/MediaPlayerMulti/types.d.ts +1 -0
  17. package/dist/cjs/biz-components/MediaPlayerMulti/types.js +1 -1
  18. package/dist/cjs/biz-components/MediaPlayerMulti/types.js.map +1 -1
  19. package/dist/cjs/biz-components/MemberEquity/index.js +2 -13
  20. package/dist/cjs/biz-components/MemberEquity/index.js.map +3 -3
  21. package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.d.ts +1 -0
  22. package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js +1 -1
  23. package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js.map +3 -3
  24. package/dist/cjs/biz-components/MultiLayoutGraphicBlock/types.d.ts +5 -2
  25. package/dist/cjs/biz-components/MultiLayoutGraphicBlock/types.js +1 -1
  26. package/dist/cjs/biz-components/MultiLayoutGraphicBlock/types.js.map +1 -1
  27. package/dist/cjs/biz-components/ShelfDisplay/index.d.ts +10 -6
  28. package/dist/cjs/biz-components/ShelfDisplay/index.js +5 -5
  29. package/dist/cjs/biz-components/ShelfDisplay/index.js.map +3 -3
  30. package/dist/cjs/biz-components/Slogan/index.js +1 -1
  31. package/dist/cjs/biz-components/Slogan/index.js.map +2 -2
  32. package/dist/cjs/biz-components/Tabs/Tabs.js +1 -1
  33. package/dist/cjs/biz-components/Tabs/Tabs.js.map +3 -3
  34. package/dist/cjs/biz-components/Tabs/types.d.ts +15 -9
  35. package/dist/cjs/biz-components/Tabs/types.js +1 -1
  36. package/dist/cjs/biz-components/Tabs/types.js.map +1 -1
  37. package/dist/cjs/biz-components/Title/index.js +1 -1
  38. package/dist/cjs/biz-components/Title/index.js.map +2 -2
  39. package/dist/cjs/components/alert.d.ts +1 -1
  40. package/dist/cjs/components/avatar.d.ts +1 -1
  41. package/dist/cjs/components/badge.d.ts +1 -1
  42. package/dist/cjs/components/button.d.ts +1 -1
  43. package/dist/cjs/components/checkbox.d.ts +1 -1
  44. package/dist/cjs/components/color.d.ts +1 -1
  45. package/dist/cjs/components/container.d.ts +2 -0
  46. package/dist/cjs/components/container.js +1 -1
  47. package/dist/cjs/components/container.js.map +3 -3
  48. package/dist/cjs/components/heading.d.ts +1 -1
  49. package/dist/cjs/components/input-number.d.ts +2 -2
  50. package/dist/cjs/components/input.d.ts +1 -1
  51. package/dist/cjs/components/link.d.ts +2 -2
  52. package/dist/cjs/components/radio.d.ts +1 -1
  53. package/dist/cjs/components/text.d.ts +1 -1
  54. package/dist/cjs/stories/accordionCards.stories.d.ts +1 -0
  55. package/dist/cjs/stories/alert.stories.d.ts +1 -1
  56. package/dist/cjs/stories/avatar.stories.d.ts +1 -1
  57. package/dist/cjs/stories/avatar.stories.js.map +1 -1
  58. package/dist/cjs/stories/bizTabs.stories.js +1 -1
  59. package/dist/cjs/stories/bizTabs.stories.js.map +2 -2
  60. package/dist/cjs/stories/brandEquity.stories.js +1 -1
  61. package/dist/cjs/stories/brandEquity.stories.js.map +2 -2
  62. package/dist/cjs/stories/carousel.stories.d.ts +3 -3
  63. package/dist/cjs/stories/carousel.stories.js +1 -1
  64. package/dist/cjs/stories/carousel.stories.js.map +2 -2
  65. package/dist/cjs/stories/checkbox.stories.d.ts +1 -1
  66. package/dist/cjs/stories/checkbox.stories.js.map +1 -1
  67. package/dist/cjs/stories/container.stories.d.ts +1 -0
  68. package/dist/cjs/stories/dialog.stories.d.ts +1 -1
  69. package/dist/cjs/stories/dialog.stories.js.map +1 -1
  70. package/dist/cjs/stories/grid.stories.d.ts +2 -2
  71. package/dist/cjs/stories/heading.stories.d.ts +1 -1
  72. package/dist/cjs/stories/input-number.stories.d.ts +1 -1
  73. package/dist/cjs/stories/link.stories.d.ts +1 -1
  74. package/dist/cjs/stories/marquee.stories.d.ts +1 -1
  75. package/dist/cjs/stories/mediaplayerBase.stories.js +1 -1
  76. package/dist/cjs/stories/mediaplayerBase.stories.js.map +1 -1
  77. package/dist/cjs/stories/mediaplayerMulti.stories.js +1 -1
  78. package/dist/cjs/stories/mediaplayerMulti.stories.js.map +2 -2
  79. package/dist/cjs/stories/popover.stories.js.map +1 -1
  80. package/dist/cjs/stories/radio.stories.d.ts +2 -2
  81. package/dist/cjs/stories/radio.stories.js.map +1 -1
  82. package/dist/cjs/stories/tabs.stories.d.ts +14 -1
  83. package/dist/cjs/stories/text.stories.d.ts +1 -1
  84. package/dist/esm/biz-components/AccordionCards/index.d.ts +11 -8
  85. package/dist/esm/biz-components/AccordionCards/index.js +1 -1
  86. package/dist/esm/biz-components/AccordionCards/index.js.map +3 -3
  87. package/dist/esm/biz-components/BrandEquity/BrandEquity.d.ts +3 -1
  88. package/dist/esm/biz-components/BrandEquity/BrandEquity.js +1 -1
  89. package/dist/esm/biz-components/BrandEquity/BrandEquity.js.map +3 -3
  90. package/dist/esm/biz-components/Evaluate/index.js +1 -1
  91. package/dist/esm/biz-components/Evaluate/index.js.map +2 -2
  92. package/dist/esm/biz-components/MediaPlayerBase/index.js +1 -1
  93. package/dist/esm/biz-components/MediaPlayerBase/index.js.map +3 -3
  94. package/dist/esm/biz-components/MediaPlayerBase/types.d.ts +8 -6
  95. package/dist/esm/biz-components/MediaPlayerMulti/index.js +1 -1
  96. package/dist/esm/biz-components/MediaPlayerMulti/index.js.map +2 -2
  97. package/dist/esm/biz-components/MediaPlayerMulti/types.d.ts +1 -0
  98. package/dist/esm/biz-components/MemberEquity/index.js +2 -13
  99. package/dist/esm/biz-components/MemberEquity/index.js.map +3 -3
  100. package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.d.ts +1 -0
  101. package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js +1 -1
  102. package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js.map +3 -3
  103. package/dist/esm/biz-components/MultiLayoutGraphicBlock/types.d.ts +5 -2
  104. package/dist/esm/biz-components/ShelfDisplay/index.d.ts +10 -6
  105. package/dist/esm/biz-components/ShelfDisplay/index.js +3 -3
  106. package/dist/esm/biz-components/ShelfDisplay/index.js.map +3 -3
  107. package/dist/esm/biz-components/Slogan/index.js +1 -1
  108. package/dist/esm/biz-components/Slogan/index.js.map +2 -2
  109. package/dist/esm/biz-components/Tabs/Tabs.js +1 -1
  110. package/dist/esm/biz-components/Tabs/Tabs.js.map +3 -3
  111. package/dist/esm/biz-components/Tabs/types.d.ts +15 -9
  112. package/dist/esm/biz-components/Title/index.js +1 -1
  113. package/dist/esm/biz-components/Title/index.js.map +2 -2
  114. package/dist/esm/components/alert.d.ts +1 -1
  115. package/dist/esm/components/avatar.d.ts +1 -1
  116. package/dist/esm/components/badge.d.ts +1 -1
  117. package/dist/esm/components/button.d.ts +1 -1
  118. package/dist/esm/components/checkbox.d.ts +1 -1
  119. package/dist/esm/components/color.d.ts +1 -1
  120. package/dist/esm/components/container.d.ts +2 -0
  121. package/dist/esm/components/container.js +1 -1
  122. package/dist/esm/components/container.js.map +3 -3
  123. package/dist/esm/components/heading.d.ts +1 -1
  124. package/dist/esm/components/input-number.d.ts +2 -2
  125. package/dist/esm/components/input.d.ts +1 -1
  126. package/dist/esm/components/link.d.ts +2 -2
  127. package/dist/esm/components/radio.d.ts +1 -1
  128. package/dist/esm/components/text.d.ts +1 -1
  129. package/dist/esm/stories/accordionCards.stories.d.ts +1 -0
  130. package/dist/esm/stories/alert.stories.d.ts +1 -1
  131. package/dist/esm/stories/avatar.stories.d.ts +1 -1
  132. package/dist/esm/stories/avatar.stories.js.map +1 -1
  133. package/dist/esm/stories/bizTabs.stories.js +1 -1
  134. package/dist/esm/stories/bizTabs.stories.js.map +2 -2
  135. package/dist/esm/stories/brandEquity.stories.js +1 -1
  136. package/dist/esm/stories/brandEquity.stories.js.map +2 -2
  137. package/dist/esm/stories/carousel.stories.d.ts +3 -3
  138. package/dist/esm/stories/carousel.stories.js +1 -1
  139. package/dist/esm/stories/carousel.stories.js.map +2 -2
  140. package/dist/esm/stories/checkbox.stories.d.ts +1 -1
  141. package/dist/esm/stories/checkbox.stories.js.map +1 -1
  142. package/dist/esm/stories/container.stories.d.ts +1 -0
  143. package/dist/esm/stories/dialog.stories.d.ts +1 -1
  144. package/dist/esm/stories/dialog.stories.js.map +1 -1
  145. package/dist/esm/stories/grid.stories.d.ts +2 -2
  146. package/dist/esm/stories/heading.stories.d.ts +1 -1
  147. package/dist/esm/stories/input-number.stories.d.ts +1 -1
  148. package/dist/esm/stories/link.stories.d.ts +1 -1
  149. package/dist/esm/stories/marquee.stories.d.ts +1 -1
  150. package/dist/esm/stories/mediaplayerBase.stories.js +1 -1
  151. package/dist/esm/stories/mediaplayerBase.stories.js.map +1 -1
  152. package/dist/esm/stories/mediaplayerMulti.stories.js +1 -1
  153. package/dist/esm/stories/mediaplayerMulti.stories.js.map +2 -2
  154. package/dist/esm/stories/popover.stories.js.map +1 -1
  155. package/dist/esm/stories/radio.stories.d.ts +2 -2
  156. package/dist/esm/stories/radio.stories.js.map +1 -1
  157. package/dist/esm/stories/tabs.stories.d.ts +14 -1
  158. package/dist/esm/stories/text.stories.d.ts +1 -1
  159. package/package.json +1 -1
  160. package/style.css +17 -17
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/biz-components/ShelfDisplay/index.tsx"],
4
- "sourcesContent": ["'use client'\nimport React from 'react'\nimport { cn } from '../../helpers/utils.js'\nimport Picture from '../../components/picture.js'\nimport Button from '../../components/button.js'\nimport Title from '../Title/index.js'\nimport SwiperBox from '../SwiperBox/index.js'\nimport { withStyles } from '../../shared/Styles.js'\nexport interface ShelfDisplayItem {\n /** \u4EA7\u54C1\u56FE\u7247*/\n img: string\n /** \u6298\u6263\u540E\u4EF7\u683C*/\n price: string\n title: string\n /** \u6298\u6263\u524D\u4EF7\u683C*/\n basePrice: string\n subTitle: string\n /** \u6807\u7B7E*/\n tagItems: string[]\n}\n\nexport interface ShelfDisplayProps {\n data: {\n title?: string\n items: ShelfDisplayItem[]\n /** \u5361\u7247\u5F62\u72B6 */\n itemShape?: 'round' | 'square'\n /** \u6309\u94AE\u5F62\u72B6 */\n shape?: 'round' | 'square'\n /** \u4E3B\u6309\u94AE\u914D\u7F6E */\n primaryButton?: string\n /** \u526F\u6309\u94AE\u914D\u7F6E */\n secondaryButton?: string\n }\n /** \u4E3B\u9898\u8272*/\n theme?: 'light' | 'dark'\n className?: string\n /** \u6309\u94AE\u4E8B\u4EF6*/\n event?: {\n primaryButton?: {\n onClick: (v: any) => void\n }\n secondaryButton?: {\n onClick: (v: any) => void\n }\n }\n key?: string\n}\n\nconst ShelfDisplayItem = ({ data, configuration }: { data: ShelfDisplayItem; configuration?: any }) => {\n const onPrimaryButton = (params: ShelfDisplayItem) => {\n // event?.primaryButton?.onClick?.(params)\n }\n\n const onSecondaryButton = (params: ShelfDisplayItem) => {\n // event?.secondaryButton?.onClick(params)\n }\n\n return (\n <div\n className={cn(\n 'flex w-full flex-col bg-[#EAEAEC] p-4 cursor-pointer',\n 'desktop:pt-4 desktop:px-6 desktop:pb-6 hover:bg-[#FFFFFF]',\n configuration?.itemShape === 'round' ? 'rounded-2xl' : 'rounded-none'\n )}\n >\n <div className={cn('relative mb-2 inline-block h-[137px] overflow-hidden', 'desktop:mb-3 desktop:h-[195px]')}>\n <Picture source={data?.img || ''} className=\"flex h-full justify-center object-cover [&_img]:w-auto\" />\n </div>\n <div className=\"desktop:mb-2 mb-1 flex flex-wrap gap-1\">\n {data?.tagItems?.map((tag: any, index: number) => {\n return (\n <div\n key={index}\n className=\"desktop:text-base rounded-3xl border-2 border-[#00BEFA] px-2 py-1 text-sm font-bold text-[#00BEFA]\"\n >\n {tag}\n </div>\n )\n })}\n </div>\n <p className=\"desktop:text-2xl flex-1 text-xl font-bold leading-[1.2] tracking-[-0.04em] text-[#1D1D1F]\">\n {data?.title || ''}\n </p>\n <h3 className=\"desktop:mt-2 desktop:mb-6 desktop:text-lg mb-5 mt-1 text-sm font-semibold leading-[1.2] tracking-[-0.02em] text-[#1D1D1F]\">\n {data?.subTitle || ''}\n </h3>\n <div className=\"mb-2 flex items-center\">\n <div className=\"desktop:text-2xl text-xl font-bold text-[#1D1D1F]\">{data?.price || ''}</div>\n <div className=\"desktop:text-2xl ml-1 text-xl font-bold text-[#86868C]\">{data?.basePrice || ''}</div>\n </div>\n {/* \u6309\u94AE\u7EC4 */}\n <div className=\"flex items-center gap-3\">\n <Button\n variant=\"primary\"\n onClick={() => onPrimaryButton(data)}\n className={`\n laptop:text-sm desktop:text-base laptop:px-6 desktop:px-7 laptop:py-2.5 desktop:py-3 box-border flex-1 border\n border-[#1D1D1F] bg-transparent px-4 py-2 text-xs tracking-[-0.04em] text-[#1D1D1F] hover:bg-transparent hover:text-black\n ${configuration?.shape === 'round' ? 'desktop:rounded-3xl rounded-[20px]' : ''}\n `}\n >\n {configuration?.primaryButton || ''}\n </Button>\n <Button\n variant=\"secondary\"\n onClick={() => onSecondaryButton(data)}\n className={`\n laptop:text-sm desktop:text-base laptop:px-6 desktop:px-7 laptop:py-2.5 desktop:py-3 box-border flex-1 border\n border-[#1D1D1F] bg-[#1D1D1F] px-4 py-2 text-xs tracking-[-0.04em] text-white\n ${configuration?.shape === 'round' ? 'desktop:rounded-3xl rounded-[20px]' : ''}\n `}\n >\n {configuration?.secondaryButton || ''}\n </Button>\n </div>\n </div>\n )\n}\n\nconst ShelfDisplay: React.FC<ShelfDisplayProps> = ({ data, className = '', key }) => {\n const { items, title, ...ohter } = data\n return (\n <div className={cn('w-full', className)}>\n {title && <Title data={{ title: title }} />}\n <SwiperBox\n className=\"!overflow-visible\"\n id={'Category' + key}\n data={{ list: items, configuration: { ...ohter } }}\n Slide={ShelfDisplayItem}\n breakpoints={{\n 0: {\n spaceBetween: '12px',\n freeMode: false,\n slidesPerView: 1,\n },\n 374: {\n spaceBetween: '12px',\n freeMode: false,\n slidesPerView: 2.3,\n },\n 768: {\n spaceBetween: '16px',\n freeMode: false,\n slidesPerView: 3.5,\n },\n }}\n />\n </div>\n )\n}\n\nexport default withStyles(ShelfDisplay)\n"],
5
- "mappings": "aAmEQ,cAAAA,EAoBF,QAAAC,MApBE,oBAlER,MAAkB,QAClB,OAAS,MAAAC,MAAU,yBACnB,OAAOC,MAAa,8BACpB,OAAOC,MAAY,6BACnB,OAAOC,MAAW,oBAClB,OAAOC,MAAe,wBACtB,OAAS,cAAAC,MAAkB,yBA0C3B,MAAMC,EAAmB,CAAC,CAAE,KAAAC,EAAM,cAAAC,CAAc,IAAuD,CACrG,MAAMC,EAAmBC,GAA6B,CAEtD,EAEMC,EAAqBD,GAA6B,CAExD,EAEA,OACEX,EAAC,OACC,UAAWC,EACT,uDACA,4DACAQ,GAAe,YAAc,QAAU,cAAgB,cACzD,EAEA,UAAAV,EAAC,OAAI,UAAWE,EAAG,uDAAwD,gCAAgC,EACzG,SAAAF,EAACG,EAAA,CAAQ,OAAQM,GAAM,KAAO,GAAI,UAAU,yDAAyD,EACvG,EACAT,EAAC,OAAI,UAAU,yCACZ,SAAAS,GAAM,UAAU,IAAI,CAACK,EAAUC,IAE5Bf,EAAC,OAEC,UAAU,qGAET,SAAAc,GAHIC,CAIP,CAEH,EACH,EACAf,EAAC,KAAE,UAAU,4FACV,SAAAS,GAAM,OAAS,GAClB,EACAT,EAAC,MAAG,UAAU,4HACX,SAAAS,GAAM,UAAY,GACrB,EACAR,EAAC,OAAI,UAAU,yBACb,UAAAD,EAAC,OAAI,UAAU,oDAAqD,SAAAS,GAAM,OAAS,GAAG,EACtFT,EAAC,OAAI,UAAU,yDAA0D,SAAAS,GAAM,WAAa,GAAG,GACjG,EAEAR,EAAC,OAAI,UAAU,0BACb,UAAAD,EAACI,EAAA,CACC,QAAQ,UACR,QAAS,IAAMO,EAAgBF,CAAI,EACnC,UAAW;AAAA;AAAA;AAAA,cAGPC,GAAe,QAAU,QAAU,qCAAuC,EAAE;AAAA,YAG/E,SAAAA,GAAe,eAAiB,GACnC,EACAV,EAACI,EAAA,CACC,QAAQ,YACR,QAAS,IAAMS,EAAkBJ,CAAI,EACrC,UAAW;AAAA;AAAA;AAAA,cAGPC,GAAe,QAAU,QAAU,qCAAuC,EAAE;AAAA,YAG/E,SAAAA,GAAe,iBAAmB,GACrC,GACF,GACF,CAEJ,EAEMM,EAA4C,CAAC,CAAE,KAAAP,EAAM,UAAAQ,EAAY,GAAI,IAAAC,CAAI,IAAM,CACnF,KAAM,CAAE,MAAAC,EAAO,MAAAC,EAAO,GAAGC,CAAM,EAAIZ,EACnC,OACER,EAAC,OAAI,UAAWC,EAAG,SAAUe,CAAS,EACnC,UAAAG,GAASpB,EAACK,EAAA,CAAM,KAAM,CAAE,MAAOe,CAAM,EAAG,EACzCpB,EAACM,EAAA,CACC,UAAU,oBACV,GAAI,WAAaY,EACjB,KAAM,CAAE,KAAMC,EAAO,cAAe,CAAE,GAAGE,CAAM,CAAE,EACjD,MAAOb,EACP,YAAa,CACX,EAAG,CACD,aAAc,OACd,SAAU,GACV,cAAe,CACjB,EACA,IAAK,CACH,aAAc,OACd,SAAU,GACV,cAAe,GACjB,EACA,IAAK,CACH,aAAc,OACd,SAAU,GACV,cAAe,GACjB,CACF,EACF,GACF,CAEJ,EAEA,IAAOc,EAAQf,EAAWS,CAAY",
6
- "names": ["jsx", "jsxs", "cn", "Picture", "Button", "Title", "SwiperBox", "withStyles", "ShelfDisplayItem", "data", "configuration", "onPrimaryButton", "params", "onSecondaryButton", "tag", "index", "ShelfDisplay", "className", "key", "items", "title", "ohter", "ShelfDisplay_default"]
4
+ "sourcesContent": ["'use client'\nimport React, { useState, useEffect } from 'react'\nimport { cn } from '../../helpers/utils.js'\nimport Picture from '../../components/picture.js'\nimport { Tabs, TabsList, TabsTrigger } from '../../components/tabs.js'\nimport Button from '../../components/button.js'\nimport Title from '../Title/index.js'\nimport SwiperBox from '../SwiperBox/index.js'\nimport { withStyles } from '../../shared/Styles.js'\nexport interface ShelfDisplayItem {\n /** \u4EA7\u54C1\u56FE\u7247*/\n img?: string\n /** \u6298\u6263\u540E\u4EF7\u683C*/\n price?: string\n title?: string\n /** \u6298\u6263\u524D\u4EF7\u683C*/\n basePrice?: string\n subTitle?: string\n /** \u6807\u7B7E*/\n tagItems?: string[]\n tab?: string\n data?: ShelfDisplayItem[]\n}\n\nexport interface ShelfDisplayProps {\n data: {\n title?: string\n isShowTab?: boolean\n align?: 'left' | 'center' | 'right'\n items: ShelfDisplayItem[]\n /** \u5361\u7247\u5F62\u72B6 */\n itemShape?: 'round' | 'square'\n /** \u6309\u94AE\u5F62\u72B6 */\n shape?: 'round' | 'square'\n /** \u4E3B\u6309\u94AE\u914D\u7F6E */\n primaryButton?: string\n /** \u526F\u6309\u94AE\u914D\u7F6E */\n secondaryButton?: string\n }\n /** \u4E3B\u9898\u8272*/\n theme?: 'light' | 'dark'\n className?: string\n /** \u6309\u94AE\u4E8B\u4EF6*/\n event?: {\n primaryButton?: {\n onClick: (v: any) => void\n }\n secondaryButton?: {\n onClick: (v: any) => void\n }\n }\n key?: string\n}\n\nconst ShelfDisplayItem = ({ data, configuration }: { data: ShelfDisplayItem; configuration?: any }) => {\n const onPrimaryButton = (params: ShelfDisplayItem) => {\n // event?.primaryButton?.onClick?.(params)\n }\n\n const onSecondaryButton = (params: ShelfDisplayItem) => {\n // event?.secondaryButton?.onClick(params)\n }\n\n return (\n <div\n className={cn(\n 'flex w-full h-full flex-col bg-[#EAEAEC] p-4 cursor-pointer',\n 'desktop:pt-4 desktop:px-6 desktop:pb-6',\n configuration?.itemShape === 'round' ? 'rounded-2xl' : 'rounded-none'\n )}\n >\n <div className={cn('relative mb-2 inline-block h-[137px] overflow-hidden', 'desktop:mb-3 desktop:h-[195px]')}>\n <Picture source={data?.img || ''} className=\"flex h-full justify-center object-cover [&_img]:w-auto\" />\n </div>\n <div className=\"desktop:mb-2 mb-1 flex flex-wrap gap-1\">\n {data?.tagItems?.map((tag: any, index: number) => {\n return (\n <div\n key={index}\n className=\"desktop:text-base rounded-3xl border-2 border-[#00BEFA] px-2 py-1 text-sm font-bold text-[#00BEFA]\"\n >\n {tag}\n </div>\n )\n })}\n </div>\n <p className=\"desktop:text-2xl flex-1 text-xl font-bold leading-[1.2] tracking-[-0.04em] text-[#1D1D1F]\">\n {data?.title || ''}\n </p>\n <h3 className=\"desktop:mt-2 desktop:mb-6 desktop:text-lg mb-5 mt-1 text-sm font-semibold leading-[1.2] tracking-[-0.02em] text-[#1D1D1F]\">\n {data?.subTitle || ''}\n </h3>\n <div className=\"mb-2 flex items-center\">\n <div className=\"desktop:text-2xl text-xl font-bold text-[#1D1D1F]\">{data?.price || ''}</div>\n <div className=\"desktop:text-2xl ml-1 text-xl font-bold text-[#86868C]\">{data?.basePrice || ''}</div>\n </div>\n {/* \u6309\u94AE\u7EC4 */}\n <div className=\"flex items-center gap-3\">\n <Button\n variant=\"primary\"\n onClick={() => onPrimaryButton(data)}\n className={`\n laptop:text-sm desktop:text-base laptop:px-6 desktop:px-7 laptop:py-2.5 desktop:py-3 box-border flex-1 border\n border-[#1D1D1F] bg-transparent px-4 py-2 text-xs tracking-[-0.04em] text-[#1D1D1F] hover:bg-transparent hover:text-black\n ${configuration?.shape === 'round' ? 'desktop:rounded-3xl rounded-[20px]' : ''}\n `}\n >\n {configuration?.primaryButton || ''}\n </Button>\n <Button\n variant=\"secondary\"\n onClick={() => onSecondaryButton(data)}\n className={`\n laptop:text-sm desktop:text-base laptop:px-6 desktop:px-7 laptop:py-2.5 desktop:py-3 box-border flex-1 border\n border-[#1D1D1F] bg-[#1D1D1F] px-4 py-2 text-xs tracking-[-0.04em] text-white\n ${configuration?.shape === 'round' ? 'desktop:rounded-3xl rounded-[20px]' : ''}\n `}\n >\n {configuration?.secondaryButton || ''}\n </Button>\n </div>\n </div>\n )\n}\n\nconst ShelfDisplay: React.FC<ShelfDisplayProps> = ({ data, className = '', key }) => {\n const [tabId, setTabId] = useState<string>('')\n const [currentItems, setCurrentItems] = useState<ShelfDisplayItem[]>([])\n const { items, title, align = 'left', isShowTab = true, ...ohter } = data\n\n useEffect(() => {\n if (isShowTab) {\n setTabId(items?.[0]?.tab || '')\n setCurrentItems(items?.[0]?.data || [])\n return\n }\n setCurrentItems(items || [])\n }, [])\n\n return (\n <div className={cn('w-full', className)}>\n {title && <Title data={{ title: title }} />}\n {isShowTab && (\n <Tabs\n align={align}\n value={tabId}\n onValueChange={v => {\n setTabId(v)\n const findData = items?.find(item => item?.tab === v)\n setCurrentItems(findData?.data || [])\n }}\n className=\"mb-8\"\n >\n <TabsList>\n {items?.map((item, index) => {\n return (\n <TabsTrigger key={index} value={item?.tab || ''}>\n {item?.tab}\n </TabsTrigger>\n )\n })}\n </TabsList>\n </Tabs>\n )}\n <SwiperBox\n className=\"!overflow-visible\"\n id={'ShelfDisplay' + key}\n data={{ list: currentItems, configuration: { ...ohter } }}\n Slide={ShelfDisplayItem}\n breakpoints={{\n 0: {\n spaceBetween: '12px',\n freeMode: false,\n slidesPerView: 1,\n },\n 374: {\n spaceBetween: '12px',\n freeMode: false,\n slidesPerView: 1.3,\n },\n 768: {\n spaceBetween: '16px',\n freeMode: false,\n slidesPerView: 4,\n },\n }}\n />\n </div>\n )\n}\n\nexport default withStyles(ShelfDisplay)\n"],
5
+ "mappings": "aAwEQ,cAAAA,EAoBF,QAAAC,MApBE,oBAvER,OAAgB,YAAAC,EAAU,aAAAC,MAAiB,QAC3C,OAAS,MAAAC,MAAU,yBACnB,OAAOC,MAAa,8BACpB,OAAS,QAAAC,EAAM,YAAAC,EAAU,eAAAC,MAAmB,2BAC5C,OAAOC,MAAY,6BACnB,OAAOC,MAAW,oBAClB,OAAOC,MAAe,wBACtB,OAAS,cAAAC,MAAkB,yBA8C3B,MAAMC,EAAmB,CAAC,CAAE,KAAAC,EAAM,cAAAC,CAAc,IAAuD,CACrG,MAAMC,EAAmBC,GAA6B,CAEtD,EAEMC,EAAqBD,GAA6B,CAExD,EAEA,OACEhB,EAAC,OACC,UAAWG,EACT,8DACA,yCACAW,GAAe,YAAc,QAAU,cAAgB,cACzD,EAEA,UAAAf,EAAC,OAAI,UAAWI,EAAG,uDAAwD,gCAAgC,EACzG,SAAAJ,EAACK,EAAA,CAAQ,OAAQS,GAAM,KAAO,GAAI,UAAU,yDAAyD,EACvG,EACAd,EAAC,OAAI,UAAU,yCACZ,SAAAc,GAAM,UAAU,IAAI,CAACK,EAAUC,IAE5BpB,EAAC,OAEC,UAAU,qGAET,SAAAmB,GAHIC,CAIP,CAEH,EACH,EACApB,EAAC,KAAE,UAAU,4FACV,SAAAc,GAAM,OAAS,GAClB,EACAd,EAAC,MAAG,UAAU,4HACX,SAAAc,GAAM,UAAY,GACrB,EACAb,EAAC,OAAI,UAAU,yBACb,UAAAD,EAAC,OAAI,UAAU,oDAAqD,SAAAc,GAAM,OAAS,GAAG,EACtFd,EAAC,OAAI,UAAU,yDAA0D,SAAAc,GAAM,WAAa,GAAG,GACjG,EAEAb,EAAC,OAAI,UAAU,0BACb,UAAAD,EAACS,EAAA,CACC,QAAQ,UACR,QAAS,IAAMO,EAAgBF,CAAI,EACnC,UAAW;AAAA;AAAA;AAAA,cAGPC,GAAe,QAAU,QAAU,qCAAuC,EAAE;AAAA,YAG/E,SAAAA,GAAe,eAAiB,GACnC,EACAf,EAACS,EAAA,CACC,QAAQ,YACR,QAAS,IAAMS,EAAkBJ,CAAI,EACrC,UAAW;AAAA;AAAA;AAAA,cAGPC,GAAe,QAAU,QAAU,qCAAuC,EAAE;AAAA,YAG/E,SAAAA,GAAe,iBAAmB,GACrC,GACF,GACF,CAEJ,EAEMM,EAA4C,CAAC,CAAE,KAAAP,EAAM,UAAAQ,EAAY,GAAI,IAAAC,CAAI,IAAM,CACnF,KAAM,CAACC,EAAOC,CAAQ,EAAIvB,EAAiB,EAAE,EACvC,CAACwB,EAAcC,CAAe,EAAIzB,EAA6B,CAAC,CAAC,EACjE,CAAE,MAAA0B,EAAO,MAAAC,EAAO,MAAAC,EAAQ,OAAQ,UAAAC,EAAY,GAAM,GAAGC,CAAM,EAAIlB,EAErE,OAAAX,EAAU,IAAM,CACd,GAAI4B,EAAW,CACbN,EAASG,IAAQ,CAAC,GAAG,KAAO,EAAE,EAC9BD,EAAgBC,IAAQ,CAAC,GAAG,MAAQ,CAAC,CAAC,EACtC,MACF,CACAD,EAAgBC,GAAS,CAAC,CAAC,CAC7B,EAAG,CAAC,CAAC,EAGH3B,EAAC,OAAI,UAAWG,EAAG,SAAUkB,CAAS,EACnC,UAAAO,GAAS7B,EAACU,EAAA,CAAM,KAAM,CAAE,MAAOmB,CAAM,EAAG,EACxCE,GACC/B,EAACM,EAAA,CACC,MAAOwB,EACP,MAAON,EACP,cAAeS,GAAK,CAClBR,EAASQ,CAAC,EACV,MAAMC,EAAWN,GAAO,KAAKO,GAAQA,GAAM,MAAQF,CAAC,EACpDN,EAAgBO,GAAU,MAAQ,CAAC,CAAC,CACtC,EACA,UAAU,OAEV,SAAAlC,EAACO,EAAA,CACE,SAAAqB,GAAO,IAAI,CAACO,EAAMf,IAEfpB,EAACQ,EAAA,CAAwB,MAAO2B,GAAM,KAAO,GAC1C,SAAAA,GAAM,KADSf,CAElB,CAEH,EACH,EACF,EAEFpB,EAACW,EAAA,CACC,UAAU,oBACV,GAAI,eAAiBY,EACrB,KAAM,CAAE,KAAMG,EAAc,cAAe,CAAE,GAAGM,CAAM,CAAE,EACxD,MAAOnB,EACP,YAAa,CACX,EAAG,CACD,aAAc,OACd,SAAU,GACV,cAAe,CACjB,EACA,IAAK,CACH,aAAc,OACd,SAAU,GACV,cAAe,GACjB,EACA,IAAK,CACH,aAAc,OACd,SAAU,GACV,cAAe,CACjB,CACF,EACF,GACF,CAEJ,EAEA,IAAOuB,EAAQxB,EAAWS,CAAY",
6
+ "names": ["jsx", "jsxs", "useState", "useEffect", "cn", "Picture", "Tabs", "TabsList", "TabsTrigger", "Button", "Title", "SwiperBox", "withStyles", "ShelfDisplayItem", "data", "configuration", "onPrimaryButton", "params", "onSecondaryButton", "tag", "index", "ShelfDisplay", "className", "key", "tabId", "setTabId", "currentItems", "setCurrentItems", "items", "title", "align", "isShowTab", "ohter", "v", "findData", "item", "ShelfDisplay_default"]
7
7
  }
@@ -1,2 +1,2 @@
1
- "use client";import{jsx as t,jsxs as o}from"react/jsx-runtime";import a from"react";import{cn as x}from"../../helpers/utils.js";import{Heading as f,Text as g}from"../../components/index.js";import{withStyles as d}from"../../shared/Styles.js";const p=a.forwardRef(({data:s,className:i},m)=>{const{title:n,features:e}=s;return o("div",{ref:m,className:x("laptop:flex-row laptop:items-end laptop:justify-between flex w-full flex-col items-start justify-center text-center","tablet:py-10 laptop:py-12 desktop:py-16 lg-desktop:py-20 gap-8 py-8",i),children:[t(f,{as:"h2",size:2,weight:"bold",align:"left",className:"slogan-title laptop:text-[40px] desktop:text-[48px] lg-desktop:text-[64px] text-[40px] !leading-none text-[#1D1D1F]",children:n}),e&&e.length>0&&t("div",{className:"flex w-full max-w-[423px] flex-row items-center gap-3",children:e.slice(0,3).map((r,l)=>o(a.Fragment,{children:[l>0&&t("div",{className:"w-px self-stretch bg-[#D9D9D9]"}),t("div",{className:"flex-1",children:t(g,{align:"left",className:"slogan-feature-text laptop:line-clamp-2 tablet:text-[13px] laptop:text-[14px] line-clamp-3 text-[12px] font-medium leading-[1.4] text-[#1D1D1F]",html:r.title})})]},l))})]})});p.displayName="Slogan";var v=d(p);export{v as default};
1
+ "use client";import{jsx as e,jsxs as o}from"react/jsx-runtime";import a from"react";import{cn as x}from"../../helpers/utils.js";import{Heading as f,Text as c}from"../../components/index.js";import{withStyles as g}from"../../shared/Styles.js";const p=a.forwardRef(({data:s,className:i},m)=>{const{title:n,features:t}=s;return o("div",{ref:m,className:x("laptop:flex-row laptop:items-end laptop:justify-between flex w-full flex-col items-start justify-center text-center",i),children:[e(f,{as:"h2",size:2,weight:"bold",align:"left",className:"slogan-title laptop:text-[40px] desktop:text-[48px] lg-desktop:text-[64px] text-[40px] !leading-none text-[#1D1D1F]",children:n}),t&&t.length>0&&e("div",{className:"flex w-full max-w-[423px] flex-row items-center gap-3",children:t.slice(0,3).map((r,l)=>o(a.Fragment,{children:[l>0&&e("div",{className:"w-px self-stretch bg-[#D9D9D9]"}),e("div",{className:"flex-1",children:e(c,{align:"left",className:"slogan-feature-text laptop:line-clamp-2 tablet:text-[13px] laptop:text-[14px] line-clamp-3 text-[12px] font-medium leading-[1.4] text-[#1D1D1F]",html:r.title})})]},l))})]})});p.displayName="Slogan";var D=g(p);export{D as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/biz-components/Slogan/index.tsx"],
4
- "sourcesContent": ["'use client'\nimport React from 'react'\nimport { cn } from '../../helpers/utils.js'\nimport { Heading, Text } from '../../components/index.js'\nimport { withStyles } from '../../shared/Styles.js'\nimport type { SloganProps } from './types.js'\n\nconst Slogan = React.forwardRef<HTMLDivElement, SloganProps>(({ data, className }, ref) => {\n const { title, features } = data\n return (\n <div\n ref={ref}\n className={cn(\n 'laptop:flex-row laptop:items-end laptop:justify-between flex w-full flex-col items-start justify-center text-center',\n 'tablet:py-10 laptop:py-12 desktop:py-16 lg-desktop:py-20 gap-8 py-8',\n className\n )}\n >\n <Heading\n as=\"h2\"\n size={2}\n weight={'bold'}\n align={'left'}\n className=\"slogan-title laptop:text-[40px] desktop:text-[48px] lg-desktop:text-[64px] text-[40px] !leading-none text-[#1D1D1F]\"\n >\n {title}\n </Heading>\n {features && features.length > 0 && (\n <div className=\"flex w-full max-w-[423px] flex-row items-center gap-3\">\n {features.slice(0, 3).map((feature, index) => (\n <React.Fragment key={index}>\n {index > 0 && <div className=\"w-px self-stretch bg-[#D9D9D9]\" />}\n <div className=\"flex-1\">\n <Text\n align=\"left\"\n className=\"slogan-feature-text laptop:line-clamp-2 tablet:text-[13px] laptop:text-[14px] line-clamp-3 text-[12px] font-medium leading-[1.4] text-[#1D1D1F]\"\n html={feature.title}\n />\n </div>\n </React.Fragment>\n ))}\n </div>\n )}\n </div>\n )\n})\n\nSlogan.displayName = 'Slogan'\n\nexport default withStyles(Slogan)\n"],
5
- "mappings": "aAkBM,cAAAA,EAYM,QAAAC,MAZN,oBAjBN,OAAOC,MAAW,QAClB,OAAS,MAAAC,MAAU,yBACnB,OAAS,WAAAC,EAAS,QAAAC,MAAY,4BAC9B,OAAS,cAAAC,MAAkB,yBAG3B,MAAMC,EAASL,EAAM,WAAwC,CAAC,CAAE,KAAAM,EAAM,UAAAC,CAAU,EAAGC,IAAQ,CACzF,KAAM,CAAE,MAAAC,EAAO,SAAAC,CAAS,EAAIJ,EAC5B,OACEP,EAAC,OACC,IAAKS,EACL,UAAWP,EACT,sHACA,sEACAM,CACF,EAEA,UAAAT,EAACI,EAAA,CACC,GAAG,KACH,KAAM,EACN,OAAQ,OACR,MAAO,OACP,UAAU,sHAET,SAAAO,EACH,EACCC,GAAYA,EAAS,OAAS,GAC7BZ,EAAC,OAAI,UAAU,wDACZ,SAAAY,EAAS,MAAM,EAAG,CAAC,EAAE,IAAI,CAACC,EAASC,IAClCb,EAACC,EAAM,SAAN,CACE,UAAAY,EAAQ,GAAKd,EAAC,OAAI,UAAU,iCAAiC,EAC9DA,EAAC,OAAI,UAAU,SACb,SAAAA,EAACK,EAAA,CACC,MAAM,OACN,UAAU,kJACV,KAAMQ,EAAQ,MAChB,EACF,IARmBC,CASrB,CACD,EACH,GAEJ,CAEJ,CAAC,EAEDP,EAAO,YAAc,SAErB,IAAOQ,EAAQT,EAAWC,CAAM",
4
+ "sourcesContent": ["'use client'\nimport React from 'react'\nimport { cn } from '../../helpers/utils.js'\nimport { Heading, Text } from '../../components/index.js'\nimport { withStyles } from '../../shared/Styles.js'\nimport type { SloganProps } from './types.js'\n\nconst Slogan = React.forwardRef<HTMLDivElement, SloganProps>(({ data, className }, ref) => {\n const { title, features } = data\n return (\n <div\n ref={ref}\n className={cn(\n 'laptop:flex-row laptop:items-end laptop:justify-between flex w-full flex-col items-start justify-center text-center',\n className\n )}\n >\n <Heading\n as=\"h2\"\n size={2}\n weight={'bold'}\n align={'left'}\n className=\"slogan-title laptop:text-[40px] desktop:text-[48px] lg-desktop:text-[64px] text-[40px] !leading-none text-[#1D1D1F]\"\n >\n {title}\n </Heading>\n {features && features.length > 0 && (\n <div className=\"flex w-full max-w-[423px] flex-row items-center gap-3\">\n {features.slice(0, 3).map((feature, index) => (\n <React.Fragment key={index}>\n {index > 0 && <div className=\"w-px self-stretch bg-[#D9D9D9]\" />}\n <div className=\"flex-1\">\n <Text\n align=\"left\"\n className=\"slogan-feature-text laptop:line-clamp-2 tablet:text-[13px] laptop:text-[14px] line-clamp-3 text-[12px] font-medium leading-[1.4] text-[#1D1D1F]\"\n html={feature.title}\n />\n </div>\n </React.Fragment>\n ))}\n </div>\n )}\n </div>\n )\n})\n\nSlogan.displayName = 'Slogan'\n\nexport default withStyles(Slogan)\n"],
5
+ "mappings": "aAiBM,cAAAA,EAYM,QAAAC,MAZN,oBAhBN,OAAOC,MAAW,QAClB,OAAS,MAAAC,MAAU,yBACnB,OAAS,WAAAC,EAAS,QAAAC,MAAY,4BAC9B,OAAS,cAAAC,MAAkB,yBAG3B,MAAMC,EAASL,EAAM,WAAwC,CAAC,CAAE,KAAAM,EAAM,UAAAC,CAAU,EAAGC,IAAQ,CACzF,KAAM,CAAE,MAAAC,EAAO,SAAAC,CAAS,EAAIJ,EAC5B,OACEP,EAAC,OACC,IAAKS,EACL,UAAWP,EACT,sHACAM,CACF,EAEA,UAAAT,EAACI,EAAA,CACC,GAAG,KACH,KAAM,EACN,OAAQ,OACR,MAAO,OACP,UAAU,sHAET,SAAAO,EACH,EACCC,GAAYA,EAAS,OAAS,GAC7BZ,EAAC,OAAI,UAAU,wDACZ,SAAAY,EAAS,MAAM,EAAG,CAAC,EAAE,IAAI,CAACC,EAASC,IAClCb,EAACC,EAAM,SAAN,CACE,UAAAY,EAAQ,GAAKd,EAAC,OAAI,UAAU,iCAAiC,EAC9DA,EAAC,OAAI,UAAU,SACb,SAAAA,EAACK,EAAA,CACC,MAAM,OACN,UAAU,kJACV,KAAMQ,EAAQ,MAChB,EACF,IARmBC,CASrB,CACD,EACH,GAEJ,CAEJ,CAAC,EAEDP,EAAO,YAAc,SAErB,IAAOQ,EAAQT,EAAWC,CAAM",
6
6
  "names": ["jsx", "jsxs", "React", "cn", "Heading", "Text", "withStyles", "Slogan", "data", "className", "ref", "title", "features", "feature", "index", "Slogan_default"]
7
7
  }
@@ -1,2 +1,2 @@
1
- "use client";import{jsx as e,jsxs as u}from"react/jsx-runtime";import{withStyles as l}from"../../shared/Styles.js";import*as s from"../../components/tabs.js";import{cn as p}from"../../helpers/index.js";import c from"react";import f from"../ShelfDisplay/index.js";const N=c.forwardRef((i,r)=>{const{theme:m,shape:b,align:o,tabs:t,className:n}=i,T=a=>{if(a.blockType==="ShelfDisplay")return e(f,{...a})};return e("section",{ref:r,className:p(m==="dark"?"aiui-dark":"",n),children:u(s.Tabs,{shape:b,align:o,defaultValue:t[0].tabName,children:[e(s.TabsList,{className:"tabs-list",children:t.map(a=>e(s.TabsTrigger,{value:a.tabName,className:"tabs-trigger",children:a.tabName},a.tabName))}),t.map(a=>e(s.TabsContent,{value:a.tabName,className:"tabs-content",children:T(a.tabContent?.[0])},a.tabName))]})})});var d=l(N);export{d as default};
1
+ "use client";import{jsx as e,jsxs as r}from"react/jsx-runtime";import{withStyles as c}from"../../shared/Styles.js";import*as t from"../../components/tabs.js";import{cn as f}from"../../helpers/index.js";import u from"react";import d from"../ShelfDisplay/index.js";import y from"../MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js";import N from"../Title/index.js";const g=u.forwardRef(({data:m,className:o},l)=>{const{theme:b,shape:p,align:n,tabs:s,sectionTitle:i}=m,T=a=>a.blockType==="ipc-shelfdisplay"?e(d,{data:a}):a.blockType==="ipc-multiLayoutGraphicBlock"?e(y,{data:a}):null;return r("section",{ref:l,className:f(b==="dark"?"aiui-dark":"",o),children:[i&&e(N,{className:"section-title",data:{title:i}}),r(t.Tabs,{shape:p,align:n,defaultValue:s[0].tabName,children:[e(t.TabsList,{className:"tabs-list",children:s.map(a=>e(t.TabsTrigger,{value:a.tabName,className:"tabs-trigger",children:a.tabName},a.tabName))}),s.map(a=>e(t.TabsContent,{value:a.tabName,className:"tabs-content",children:T(a.tabContent?.[0])},a.tabName))]})]})});var B=c(g);export{B as default};
2
2
  //# sourceMappingURL=Tabs.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/biz-components/Tabs/Tabs.tsx"],
4
- "sourcesContent": ["'use client'\nimport { withStyles } from '../../shared/Styles.js'\nimport * as TabsPrimitive from '../../components/tabs.js'\nimport { cn } from '../../helpers/index.js'\nimport type { TabsProps } from './types.js'\nimport React from 'react'\nimport ShelfDisplay from '../ShelfDisplay/index.js'\n\nconst Tabs = React.forwardRef<HTMLDivElement, TabsProps>((props, forwardedRef) => {\n const { theme, shape, align, tabs, className } = props\n\n const renderTabContent = (tabContent: TabsProps['tabs'][number]['tabContent'][number]) => {\n if (tabContent.blockType === 'ShelfDisplay') {\n return <ShelfDisplay {...tabContent} />\n }\n }\n\n return (\n <section ref={forwardedRef} className={cn(theme === 'dark' ? 'aiui-dark' : '', className)}>\n <TabsPrimitive.Tabs shape={shape} align={align} defaultValue={tabs[0].tabName}>\n <TabsPrimitive.TabsList className=\"tabs-list\">\n {tabs.map(tab => (\n <TabsPrimitive.TabsTrigger key={tab.tabName} value={tab.tabName} className=\"tabs-trigger\">\n {tab.tabName}\n </TabsPrimitive.TabsTrigger>\n ))}\n </TabsPrimitive.TabsList>\n {tabs.map(tab => (\n <TabsPrimitive.TabsContent key={tab.tabName} value={tab.tabName} className=\"tabs-content\">\n {renderTabContent(tab.tabContent?.[0])}\n </TabsPrimitive.TabsContent>\n ))}\n </TabsPrimitive.Tabs>\n </section>\n )\n})\n\nexport default withStyles(Tabs)\n"],
5
- "mappings": "aAaa,cAAAA,EAMP,QAAAC,MANO,oBAZb,OAAS,cAAAC,MAAkB,yBAC3B,UAAYC,MAAmB,2BAC/B,OAAS,MAAAC,MAAU,yBAEnB,OAAOC,MAAW,QAClB,OAAOC,MAAkB,2BAEzB,MAAMC,EAAOF,EAAM,WAAsC,CAACG,EAAOC,IAAiB,CAChF,KAAM,CAAE,MAAAC,EAAO,MAAAC,EAAO,MAAAC,EAAO,KAAAC,EAAM,UAAAC,CAAU,EAAIN,EAE3CO,EAAoBC,GAAgE,CACxF,GAAIA,EAAW,YAAc,eAC3B,OAAOhB,EAACM,EAAA,CAAc,GAAGU,EAAY,CAEzC,EAEA,OACEhB,EAAC,WAAQ,IAAKS,EAAc,UAAWL,EAAGM,IAAU,OAAS,YAAc,GAAII,CAAS,EACtF,SAAAb,EAACE,EAAc,KAAd,CAAmB,MAAOQ,EAAO,MAAOC,EAAO,aAAcC,EAAK,CAAC,EAAE,QACpE,UAAAb,EAACG,EAAc,SAAd,CAAuB,UAAU,YAC/B,SAAAU,EAAK,IAAII,GACRjB,EAACG,EAAc,YAAd,CAA4C,MAAOc,EAAI,QAAS,UAAU,eACxE,SAAAA,EAAI,SADyBA,EAAI,OAEpC,CACD,EACH,EACCJ,EAAK,IAAII,GACRjB,EAACG,EAAc,YAAd,CAA4C,MAAOc,EAAI,QAAS,UAAU,eACxE,SAAAF,EAAiBE,EAAI,aAAa,CAAC,CAAC,GADPA,EAAI,OAEpC,CACD,GACH,EACF,CAEJ,CAAC,EAED,IAAOC,EAAQhB,EAAWK,CAAI",
6
- "names": ["jsx", "jsxs", "withStyles", "TabsPrimitive", "cn", "React", "ShelfDisplay", "Tabs", "props", "forwardedRef", "theme", "shape", "align", "tabs", "className", "renderTabContent", "tabContent", "tab", "Tabs_default"]
4
+ "sourcesContent": ["'use client'\nimport { withStyles } from '../../shared/Styles.js'\nimport * as TabsPrimitive from '../../components/tabs.js'\nimport { cn } from '../../helpers/index.js'\nimport type { TabsProps } from './types.js'\nimport React from 'react'\nimport ShelfDisplay from '../ShelfDisplay/index.js'\nimport MultiLayoutGraphicBlock from '../MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js'\nimport Title from '../Title/index.js'\n\nconst Tabs = React.forwardRef<HTMLDivElement, TabsProps>(({ data, className }, forwardedRef) => {\n const { theme, shape, align, tabs, sectionTitle } = data\n\n const renderTabContent = (tabContent: TabsProps['data']['tabs'][number]['tabContent'][number]) => {\n if (tabContent.blockType === 'ipc-shelfdisplay') {\n return <ShelfDisplay data={tabContent} />\n } else if (tabContent.blockType === 'ipc-multiLayoutGraphicBlock') {\n return <MultiLayoutGraphicBlock data={tabContent} />\n } else {\n return null\n }\n }\n\n return (\n <section ref={forwardedRef} className={cn(theme === 'dark' ? 'aiui-dark' : '', className)}>\n {sectionTitle && <Title className=\"section-title\" data={{ title: sectionTitle }} />}\n <TabsPrimitive.Tabs shape={shape} align={align} defaultValue={tabs[0].tabName}>\n <TabsPrimitive.TabsList className=\"tabs-list\">\n {tabs.map(tab => (\n <TabsPrimitive.TabsTrigger key={tab.tabName} value={tab.tabName} className=\"tabs-trigger\">\n {tab.tabName}\n </TabsPrimitive.TabsTrigger>\n ))}\n </TabsPrimitive.TabsList>\n {tabs.map(tab => (\n <TabsPrimitive.TabsContent key={tab.tabName} value={tab.tabName} className=\"tabs-content\">\n {renderTabContent(tab.tabContent?.[0])}\n </TabsPrimitive.TabsContent>\n ))}\n </TabsPrimitive.Tabs>\n </section>\n )\n})\n\nexport default withStyles(Tabs)\n"],
5
+ "mappings": "aAea,cAAAA,EAWP,QAAAC,MAXO,oBAdb,OAAS,cAAAC,MAAkB,yBAC3B,UAAYC,MAAmB,2BAC/B,OAAS,MAAAC,MAAU,yBAEnB,OAAOC,MAAW,QAClB,OAAOC,MAAkB,2BACzB,OAAOC,MAA6B,wDACpC,OAAOC,MAAW,oBAElB,MAAMC,EAAOJ,EAAM,WAAsC,CAAC,CAAE,KAAAK,EAAM,UAAAC,CAAU,EAAGC,IAAiB,CAC9F,KAAM,CAAE,MAAAC,EAAO,MAAAC,EAAO,MAAAC,EAAO,KAAAC,EAAM,aAAAC,CAAa,EAAIP,EAE9CQ,EAAoBC,GACpBA,EAAW,YAAc,mBACpBnB,EAACM,EAAA,CAAa,KAAMa,EAAY,EAC9BA,EAAW,YAAc,8BAC3BnB,EAACO,EAAA,CAAwB,KAAMY,EAAY,EAE3C,KAIX,OACElB,EAAC,WAAQ,IAAKW,EAAc,UAAWR,EAAGS,IAAU,OAAS,YAAc,GAAIF,CAAS,EACrF,UAAAM,GAAgBjB,EAACQ,EAAA,CAAM,UAAU,gBAAgB,KAAM,CAAE,MAAOS,CAAa,EAAG,EACjFhB,EAACE,EAAc,KAAd,CAAmB,MAAOW,EAAO,MAAOC,EAAO,aAAcC,EAAK,CAAC,EAAE,QACpE,UAAAhB,EAACG,EAAc,SAAd,CAAuB,UAAU,YAC/B,SAAAa,EAAK,IAAII,GACRpB,EAACG,EAAc,YAAd,CAA4C,MAAOiB,EAAI,QAAS,UAAU,eACxE,SAAAA,EAAI,SADyBA,EAAI,OAEpC,CACD,EACH,EACCJ,EAAK,IAAII,GACRpB,EAACG,EAAc,YAAd,CAA4C,MAAOiB,EAAI,QAAS,UAAU,eACxE,SAAAF,EAAiBE,EAAI,aAAa,CAAC,CAAC,GADPA,EAAI,OAEpC,CACD,GACH,GACF,CAEJ,CAAC,EAED,IAAOC,EAAQnB,EAAWO,CAAI",
6
+ "names": ["jsx", "jsxs", "withStyles", "TabsPrimitive", "cn", "React", "ShelfDisplay", "MultiLayoutGraphicBlock", "Title", "Tabs", "data", "className", "forwardedRef", "theme", "shape", "align", "tabs", "sectionTitle", "renderTabContent", "tabContent", "tab", "Tabs_default"]
7
7
  }
@@ -1,14 +1,20 @@
1
1
  import type { Align, Shape, Theme } from '../../types/props.js';
2
+ import type { MultiLayoutGraphicBlockProps } from '../MultiLayoutGraphicBlock/types.js';
2
3
  import type { ShelfDisplayProps } from '../ShelfDisplay/index.js';
3
4
  export type TabsProps = {
4
- theme: Theme;
5
- shape: Shape;
6
- align: Align;
5
+ data: {
6
+ sectionTitle?: string;
7
+ theme: Theme;
8
+ shape: Shape;
9
+ align: Align;
10
+ tabs: {
11
+ tabName: string;
12
+ tabContent: (ShelfDisplayProps['data'] & {
13
+ blockType: 'ipc-shelfdisplay';
14
+ })[] | (MultiLayoutGraphicBlockProps['data'] & {
15
+ blockType: 'ipc-multiLayoutGraphicBlock';
16
+ })[];
17
+ }[];
18
+ };
7
19
  className?: string;
8
- tabs: {
9
- tabName: string;
10
- tabContent: (ShelfDisplayProps & {
11
- blockType: 'ShelfDisplay';
12
- })[];
13
- }[];
14
20
  };
@@ -1,2 +1,2 @@
1
- "use client";import{jsx as i}from"react/jsx-runtime";import r from"react";import{cn as l}from"../../helpers/utils.js";import{Heading as s}from"../../components/index.js";import{withStyles as p}from"../../shared/Styles.js";const e=r.forwardRef(({data:o,className:m})=>{const{title:t}=o;return t&&i("div",{className:l("tablet:mb-8 mb-6 space-y-4",m),children:i(s,{as:"h2",size:5,html:t})})});e.displayName="Title";var n=p(e);export{n as default};
1
+ "use client";import{jsx as i}from"react/jsx-runtime";import r from"react";import{cn as p}from"../../helpers/utils.js";import{Heading as l}from"../../components/index.js";import{withStyles as s}from"../../shared/Styles.js";const e=r.forwardRef(({data:o,className:m})=>{const{title:t}=o;return t&&i("div",{className:p("tablet:mb-[32px] mb-[24px] space-y-4",m),children:i(l,{as:"h2",size:5,html:t})})});e.displayName="Title";var n=s(e);export{n as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/biz-components/Title/index.tsx"],
4
- "sourcesContent": ["'use client'\nimport React from 'react'\nimport { cn } from '../../helpers/utils.js'\nimport { Heading } from '../../components/index.js'\nimport { withStyles } from '../../shared/Styles.js'\nimport type { TitleProps } from './types.js'\n\nconst Title = React.forwardRef<HTMLDivElement, TitleProps>(({ data, className }) => {\n const { title } = data\n return (\n title && (\n <div className={cn('tablet:mb-8 mb-6 space-y-4', className)}>\n <Heading as=\"h2\" size={5} html={title} />\n </div>\n )\n )\n})\n\nTitle.displayName = 'Title'\n\nexport default withStyles(Title)\n"],
5
- "mappings": "aAYQ,cAAAA,MAAA,oBAXR,OAAOC,MAAW,QAClB,OAAS,MAAAC,MAAU,yBACnB,OAAS,WAAAC,MAAe,4BACxB,OAAS,cAAAC,MAAkB,yBAG3B,MAAMC,EAAQJ,EAAM,WAAuC,CAAC,CAAE,KAAAK,EAAM,UAAAC,CAAU,IAAM,CAClF,KAAM,CAAE,MAAAC,CAAM,EAAIF,EAClB,OACEE,GACER,EAAC,OAAI,UAAWE,EAAG,6BAA8BK,CAAS,EACxD,SAAAP,EAACG,EAAA,CAAQ,GAAG,KAAK,KAAM,EAAG,KAAMK,EAAO,EACzC,CAGN,CAAC,EAEDH,EAAM,YAAc,QAEpB,IAAOI,EAAQL,EAAWC,CAAK",
4
+ "sourcesContent": ["'use client'\nimport React from 'react'\nimport { cn } from '../../helpers/utils.js'\nimport { Heading } from '../../components/index.js'\nimport { withStyles } from '../../shared/Styles.js'\nimport type { TitleProps } from './types.js'\n\nconst Title = React.forwardRef<HTMLDivElement, TitleProps>(({ data, className }) => {\n const { title } = data\n return (\n title && (\n <div className={cn('tablet:mb-[32px] mb-[24px] space-y-4', className)}>\n <Heading as=\"h2\" size={5} html={title} />\n </div>\n )\n )\n})\n\nTitle.displayName = 'Title'\n\nexport default withStyles(Title)\n"],
5
+ "mappings": "aAYQ,cAAAA,MAAA,oBAXR,OAAOC,MAAW,QAClB,OAAS,MAAAC,MAAU,yBACnB,OAAS,WAAAC,MAAe,4BACxB,OAAS,cAAAC,MAAkB,yBAG3B,MAAMC,EAAQJ,EAAM,WAAuC,CAAC,CAAE,KAAAK,EAAM,UAAAC,CAAU,IAAM,CAClF,KAAM,CAAE,MAAAC,CAAM,EAAIF,EAClB,OACEE,GACER,EAAC,OAAI,UAAWE,EAAG,uCAAwCK,CAAS,EAClE,SAAAP,EAACG,EAAA,CAAQ,GAAG,KAAK,KAAM,EAAG,KAAMK,EAAO,EACzC,CAGN,CAAC,EAEDH,EAAM,YAAc,QAEpB,IAAOI,EAAQL,EAAWC,CAAK",
6
6
  "names": ["jsx", "React", "cn", "Heading", "withStyles", "Title", "data", "className", "title", "Title_default"]
7
7
  }
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
4
4
  variant?: "default" | "destructive" | null | undefined;
5
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string> & {
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
6
6
  /**
7
7
  * 状态
8
8
  */
@@ -20,7 +20,7 @@ declare const Avatar: React.ForwardRefExoticComponent<{
20
20
  textClassName?: string;
21
21
  } & VariantProps<(props?: ({
22
22
  size?: "small" | "medium" | "large" | null | undefined;
23
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string> & Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
23
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
24
24
  declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
25
25
  declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
26
26
  export { Avatar, AvatarImage, AvatarFallback };
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const badgeVariants: (props?: ({
4
4
  size?: "sm" | "lg" | null | undefined;
5
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
7
  }
8
8
  declare function Badge({ className, size, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
@@ -8,7 +8,7 @@ declare const buttonVariants: (props?: ({
8
8
  size?: "sm" | "base" | "lg" | "icon" | null | undefined;
9
9
  hoverEffect?: "none" | "slide" | null | undefined;
10
10
  state?: "default" | "disabled" | "loading" | null | undefined;
11
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
12
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
13
13
  /** 设置按钮载入状态 */
14
14
  loading?: boolean;
@@ -3,7 +3,7 @@ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
3
  import { type VariantProps } from 'class-variance-authority';
4
4
  declare const checkboxVariants: (props?: ({
5
5
  size?: "sm" | "base" | "lg" | null | undefined;
6
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, VariantProps<typeof checkboxVariants> {
8
8
  }
9
9
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
@@ -3,7 +3,7 @@ import { type VariantProps } from 'class-variance-authority';
3
3
  import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
4
4
  declare const colorVariants: (props?: ({
5
5
  color?: "brand0" | "brand1" | "success0" | "success1" | "success2" | "success3" | "success4" | "warning0" | "warning1" | "warning2" | "warning3" | "warning4" | "error0" | "error1" | "error2" | "error3" | "error4" | "infoPrimary" | "infoSecondary" | "infoTertiary" | "infoQuaternary" | "infoWhite" | "containerPrimary" | "containerSecondary0" | "containerSecondary1" | "bg0" | "bg1" | "lines" | "masks0" | "masks1" | "tabWord0" | "tabWord1" | "tabWord2" | "tabStroke0" | "tabStroke1" | "tabStroke2" | "tabFill0" | "tabFill1" | "tabFill2" | null | undefined;
6
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  type ColorDivProps = ComponentPropsWithout<'div', RemovedProps>;
8
8
  interface CommonColorProps extends VariantProps<typeof colorVariants> {
9
9
  }
@@ -3,11 +3,13 @@ type ContainerProps = {
3
3
  asChild?: boolean;
4
4
  children?: React.ReactNode;
5
5
  className?: string;
6
+ overflow?: 'hidden';
6
7
  } & React.ComponentPropsWithoutRef<'div'>;
7
8
  declare const Container: React.ForwardRefExoticComponent<{
8
9
  asChild?: boolean;
9
10
  children?: React.ReactNode;
10
11
  className?: string;
12
+ overflow?: "hidden";
11
13
  } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
14
  export { Container };
13
15
  export type { ContainerProps };
@@ -1,2 +1,2 @@
1
- "use client";import{jsx as i}from"react/jsx-runtime";import m from"react";import{cn as l}from"../helpers/utils.js";import{Slot as s}from"@radix-ui/react-slot";const e=m.forwardRef(({...o},t)=>{const{asChild:p,children:a,className:n,...r}=o;return i(p?s:"div",{...r,ref:t,className:l("mx-auto box-border w-full max-w-[1664px]","tablet:px-8 laptop:px-16 desktop:px-16 lg-desktop:px-32 px-8 ","tablet:my-20 laptop:my-24 desktop:my-28 lg-desktop:my-32 my-16",n),children:a})});e.displayName="Container";export{e as Container};
1
+ "use client";import{jsx as t}from"react/jsx-runtime";import i,{useMemo as d}from"react";import{cn as e}from"../helpers/utils.js";import{Slot as c}from"@radix-ui/react-slot";const r=i.forwardRef(({...o},p)=>{const{asChild:s,children:n,className:a,overflow:x,...l}=o,m=s?c:"div";return d(()=>x==="hidden"?t("div",{className:e("overflow-hidden","tablet:my-[80px] laptop:my-[96px] desktop:my-[112px] lg-desktop:my-[128px] my-[64px]",a),children:t(m,{className:e("mx-auto box-content w-full max-w-[1664px]","tablet:px-8 laptop:px-16 desktop:px-16 lg-desktop:px-32 px-8"),...l,ref:p,children:n})}):t(m,{...l,ref:p,className:e("mx-auto box-content w-full max-w-[1664px]","tablet:px-8 laptop:px-16 desktop:px-16 lg-desktop:px-32 px-8","tablet:my-[80px] laptop:my-[96px] desktop:my-[112px] lg-desktop:my-[128px] my-[64px]",a),children:n}),[o])});r.displayName="Container";export{r as Container};
2
2
  //# sourceMappingURL=container.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/container.tsx"],
4
- "sourcesContent": ["'use client'\nimport React from 'react'\nimport { cn } from '../helpers/utils.js'\nimport { Slot } from '@radix-ui/react-slot'\n\ntype ContainerElement = React.ElementRef<'div'>\ntype ContainerProps = {\n asChild?: boolean\n children?: React.ReactNode\n className?: string\n} & React.ComponentPropsWithoutRef<'div'>\nconst Container = React.forwardRef<ContainerElement, ContainerProps>(({ ...props }, forwardedRef) => {\n const { asChild, children, className, ...containerProps } = props\n const Comp = asChild ? Slot : 'div'\n\n return (\n <Comp\n {...containerProps}\n ref={forwardedRef}\n className={cn(\n 'mx-auto box-border w-full max-w-[1664px]',\n 'tablet:px-8 laptop:px-16 desktop:px-16 lg-desktop:px-32 px-8 ',\n 'tablet:my-20 laptop:my-24 desktop:my-28 lg-desktop:my-32 my-16',\n className\n )}\n >\n {children}\n </Comp>\n )\n})\nContainer.displayName = 'Container'\n\nexport { Container }\nexport type { ContainerProps }\n"],
5
- "mappings": "aAgBI,cAAAA,MAAA,oBAfJ,OAAOC,MAAW,QAClB,OAAS,MAAAC,MAAU,sBACnB,OAAS,QAAAC,MAAY,uBAQrB,MAAMC,EAAYH,EAAM,WAA6C,CAAC,CAAE,GAAGI,CAAM,EAAGC,IAAiB,CACnG,KAAM,CAAE,QAAAC,EAAS,SAAAC,EAAU,UAAAC,EAAW,GAAGC,CAAe,EAAIL,EAG5D,OACEL,EAHWO,EAAUJ,EAAO,MAG3B,CACE,GAAGO,EACJ,IAAKJ,EACL,UAAWJ,EACT,2CACA,gEACA,iEACAO,CACF,EAEC,SAAAD,EACH,CAEJ,CAAC,EACDJ,EAAU,YAAc",
6
- "names": ["jsx", "React", "cn", "Slot", "Container", "props", "forwardedRef", "asChild", "children", "className", "containerProps"]
4
+ "sourcesContent": ["'use client'\nimport React, { useMemo } from 'react'\nimport { cn } from '../helpers/utils.js'\nimport { Slot } from '@radix-ui/react-slot'\n\ntype ContainerElement = React.ElementRef<'div'>\ntype ContainerProps = {\n asChild?: boolean\n children?: React.ReactNode\n className?: string\n overflow?: 'hidden'\n} & React.ComponentPropsWithoutRef<'div'>\nconst Container = React.forwardRef<ContainerElement, ContainerProps>(({ ...props }, forwardedRef) => {\n const { asChild, children, className, overflow, ...containerProps } = props\n const Comp = asChild ? Slot : 'div'\n\n const content = useMemo(() => {\n if (overflow === 'hidden') {\n return (\n <div\n className={cn(\n 'overflow-hidden',\n 'tablet:my-[80px] laptop:my-[96px] desktop:my-[112px] lg-desktop:my-[128px] my-[64px]',\n className\n )}\n >\n <Comp\n className={cn(\n 'mx-auto box-content w-full max-w-[1664px]',\n 'tablet:px-8 laptop:px-16 desktop:px-16 lg-desktop:px-32 px-8'\n )}\n {...containerProps}\n ref={forwardedRef}\n >\n {children}\n </Comp>\n </div>\n )\n }\n return (\n <Comp\n {...containerProps}\n ref={forwardedRef}\n className={cn(\n 'mx-auto box-content w-full max-w-[1664px]',\n 'tablet:px-8 laptop:px-16 desktop:px-16 lg-desktop:px-32 px-8',\n 'tablet:my-[80px] laptop:my-[96px] desktop:my-[112px] lg-desktop:my-[128px] my-[64px]',\n className\n )}\n >\n {children}\n </Comp>\n )\n }, [props])\n\n return content\n})\n\nContainer.displayName = 'Container'\n\nexport { Container }\nexport type { ContainerProps }\n"],
5
+ "mappings": "aA0BU,cAAAA,MAAA,oBAzBV,OAAOC,GAAS,WAAAC,MAAe,QAC/B,OAAS,MAAAC,MAAU,sBACnB,OAAS,QAAAC,MAAY,uBASrB,MAAMC,EAAYJ,EAAM,WAA6C,CAAC,CAAE,GAAGK,CAAM,EAAGC,IAAiB,CACnG,KAAM,CAAE,QAAAC,EAAS,SAAAC,EAAU,UAAAC,EAAW,SAAAC,EAAU,GAAGC,CAAe,EAAIN,EAChEO,EAAOL,EAAUJ,EAAO,MAyC9B,OAvCgBF,EAAQ,IAClBS,IAAa,SAEbX,EAAC,OACC,UAAWG,EACT,kBACA,uFACAO,CACF,EAEA,SAAAV,EAACa,EAAA,CACC,UAAWV,EACT,4CACA,8DACF,EACC,GAAGS,EACJ,IAAKL,EAEJ,SAAAE,EACH,EACF,EAIFT,EAACa,EAAA,CACE,GAAGD,EACJ,IAAKL,EACL,UAAWJ,EACT,4CACA,+DACA,uFACAO,CACF,EAEC,SAAAD,EACH,EAED,CAACH,CAAK,CAAC,CAGZ,CAAC,EAEDD,EAAU,YAAc",
6
+ "names": ["jsx", "React", "useMemo", "cn", "Slot", "Container", "props", "forwardedRef", "asChild", "children", "className", "overflow", "containerProps", "Comp"]
7
7
  }
@@ -4,7 +4,7 @@ declare const headingVariants: (props?: ({
4
4
  size?: 1 | 2 | 3 | 4 | 5 | null | undefined;
5
5
  weight?: "bold" | "medium" | "semibold" | "black" | "extraBold" | null | undefined;
6
6
  align?: "left" | "right" | "center" | null | undefined;
7
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  interface HeadingProps extends React.ComponentPropsWithoutRef<'h1'>, VariantProps<typeof headingVariants> {
9
9
  as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
10
10
  asChild?: boolean;
@@ -5,7 +5,7 @@ import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-p
5
5
  declare const InputNumberVariants: (props?: ({
6
6
  status?: "default" | "error" | "success" | "warning" | null | undefined;
7
7
  disabled?: boolean | null | undefined;
8
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  type ColorType = 'default' | 'success' | 'warning' | 'error' | null;
10
10
  type InputNumberProps = {
11
11
  /** 定义子组件作为父组件的类型,详细使用方式请参考radix-ui */
@@ -73,6 +73,6 @@ declare const InputNumber: React.ForwardRefExoticComponent<{
73
73
  } & VariantProps<(props?: ({
74
74
  status?: "default" | "error" | "success" | "warning" | null | undefined;
75
75
  disabled?: boolean | null | undefined;
76
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string> & ComponentPropsWithout<"div", RemovedProps> & React.RefAttributes<HTMLDivElement>>;
76
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & ComponentPropsWithout<"div", RemovedProps> & React.RefAttributes<HTMLDivElement>>;
77
77
  export default InputNumber;
78
78
  export type { InputNumberProps };
@@ -3,7 +3,7 @@ import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-p
3
3
  import { type VariantProps } from 'class-variance-authority';
4
4
  declare const inputVariants: (props?: ({
5
5
  size?: "sm" | "base" | "lg" | null | undefined;
6
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export interface InputProps extends ComponentPropsWithout<'input', 'size'>, VariantProps<typeof inputVariants> {
8
8
  }
9
9
  interface InputSlotProps extends ComponentPropsWithout<'div', RemovedProps> {
@@ -6,7 +6,7 @@ declare const linkVariants: (props?: ({
6
6
  size?: "small" | "medium" | "large" | null | undefined;
7
7
  underline?: "none" | "always" | "hover" | null | undefined;
8
8
  hoverColor?: "none" | "hover" | null | undefined;
9
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string;
9
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
10
  type LinkProps = {
11
11
  /** 定义子组件作为父组件的类型,详细使用方式请参考radix-ui */
12
12
  asChild?: boolean;
@@ -42,6 +42,6 @@ declare const Link: React.ForwardRefExoticComponent<{
42
42
  size?: "small" | "medium" | "large" | null | undefined;
43
43
  underline?: "none" | "always" | "hover" | null | undefined;
44
44
  hoverColor?: "none" | "hover" | null | undefined;
45
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string> & ComponentPropsWithout<"a", RemovedProps> & React.RefAttributes<HTMLAnchorElement>>;
45
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & ComponentPropsWithout<"a", RemovedProps> & React.RefAttributes<HTMLAnchorElement>>;
46
46
  export default Link;
47
47
  export type { LinkProps };
@@ -3,7 +3,7 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
3
  import { type VariantProps } from 'class-variance-authority';
4
4
  declare const radioGroupVariants: (props?: ({
5
5
  size?: "sm" | "base" | "lg" | null | undefined;
6
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  interface RadioGroupProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> {
8
8
  /** 尺寸 */
9
9
  size?: 'sm' | 'base' | 'lg';
@@ -5,7 +5,7 @@ declare const textVariants: (props?: ({
5
5
  size?: 1 | 2 | 3 | null | undefined;
6
6
  weight?: "bold" | "light" | "normal" | "medium" | "semibold" | null | undefined;
7
7
  align?: "left" | "right" | "center" | null | undefined;
8
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  type TextSpanProps = {
10
10
  as?: 'span';
11
11
  } & ComponentPropsWithout<'span', RemovedProps>;
@@ -4,6 +4,7 @@ declare const meta: {
4
4
  component: ({ data, className, event }: {
5
5
  className?: string;
6
6
  data: {
7
+ key?: string;
7
8
  title?: string;
8
9
  items: Array<{
9
10
  title: string;
@@ -4,7 +4,7 @@ declare const meta: {
4
4
  title: string;
5
5
  component: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & import("class-variance-authority").VariantProps<(props?: ({
6
6
  variant?: "default" | "destructive" | null | undefined;
7
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string> & {
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
8
8
  status?: "success" | "error" | "warning" | "info";
9
9
  closable?: boolean;
10
10
  } & React.RefAttributes<HTMLDivElement>>;
@@ -11,7 +11,7 @@ declare const meta: {
11
11
  textClassName?: string;
12
12
  } & import("class-variance-authority").VariantProps<(props?: ({
13
13
  size?: "small" | "medium" | "large" | null | undefined;
14
- } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string> & Omit<import("@radix-ui/react-avatar").AvatarProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
14
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & Omit<import("@radix-ui/react-avatar").AvatarProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
15
15
  tags: string[];
16
16
  subcomponents: any;
17
17
  parameters: {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/stories/avatar.stories.tsx"],
4
- "sourcesContent": ["import type { Meta } from '@storybook/react/*'\nimport { UserIcon } from '@storybook/icons'\nimport { Avatar, AvatarImage, AvatarFallback } from '../components/index.js'\n\nconst meta = {\n title: 'Components/Avatar',\n component: Avatar,\n tags: ['autodocs'],\n subcomponents: { AvatarImage, AvatarFallback } as any,\n parameters: {\n layout: 'centered',\n docs: {\n description: {\n component: 'avatar\u7EC4\u4EF6,\u57FA\u4E8E@radix-ui/react-avatar,https://www.radix-ui.com/primitives/docs/components/avatar',\n },\n },\n },\n argTypes: {\n size: {\n description: '\u5C3A\u5BF8',\n table: {\n defaultValue: { summary: 'small' },\n },\n },\n },\n} satisfies Meta<typeof Avatar>\n\nexport default meta\n\nexport const Default = () => (\n <Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n)\n\nexport const AvatarType = () => (\n <div className=\"flex items-center gap-4\">\n <Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarFallback>\n <UserIcon />\n </AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarFallback>A</AvatarFallback>\n </Avatar>\n </div>\n)\n\nexport const AvatarTextAdaptation = () => (\n <div className=\"flex items-center gap-4\">\n <Avatar size=\"large\" isAdaptation>\n Text\n </Avatar>\n <Avatar size=\"large\" isAdaptation>\n TextTextText\n </Avatar>\n <Avatar size=\"large\" isAdaptation>\n TextTextTextTextText\n </Avatar>\n </div>\n)\n\nexport const AvatarSize = () => (\n <div className=\"flex items-center gap-4\">\n <Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar size=\"medium\">\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar size=\"large\">\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n </div>\n)\n"],
4
+ "sourcesContent": ["import type { Meta } from '@storybook/react'\nimport { UserIcon } from '@storybook/icons'\nimport { Avatar, AvatarImage, AvatarFallback } from '../components/index.js'\n\nconst meta = {\n title: 'Components/Avatar',\n component: Avatar,\n tags: ['autodocs'],\n subcomponents: { AvatarImage, AvatarFallback } as any,\n parameters: {\n layout: 'centered',\n docs: {\n description: {\n component: 'avatar\u7EC4\u4EF6,\u57FA\u4E8E@radix-ui/react-avatar,https://www.radix-ui.com/primitives/docs/components/avatar',\n },\n },\n },\n argTypes: {\n size: {\n description: '\u5C3A\u5BF8',\n table: {\n defaultValue: { summary: 'small' },\n },\n },\n },\n} satisfies Meta<typeof Avatar>\n\nexport default meta\n\nexport const Default = () => (\n <Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n)\n\nexport const AvatarType = () => (\n <div className=\"flex items-center gap-4\">\n <Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarFallback>\n <UserIcon />\n </AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarFallback>A</AvatarFallback>\n </Avatar>\n </div>\n)\n\nexport const AvatarTextAdaptation = () => (\n <div className=\"flex items-center gap-4\">\n <Avatar size=\"large\" isAdaptation>\n Text\n </Avatar>\n <Avatar size=\"large\" isAdaptation>\n TextTextText\n </Avatar>\n <Avatar size=\"large\" isAdaptation>\n TextTextTextTextText\n </Avatar>\n </div>\n)\n\nexport const AvatarSize = () => (\n <div className=\"flex items-center gap-4\">\n <Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar size=\"medium\">\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar size=\"large\">\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n </div>\n)\n"],
5
5
  "mappings": "AA8BE,OACE,OAAAA,EADF,QAAAC,MAAA,oBA7BF,OAAS,YAAAC,MAAgB,mBACzB,OAAS,UAAAC,EAAQ,eAAAC,EAAa,kBAAAC,MAAsB,yBAEpD,MAAMC,EAAO,CACX,MAAO,oBACP,UAAWH,EACX,KAAM,CAAC,UAAU,EACjB,cAAe,CAAE,YAAAC,EAAa,eAAAC,CAAe,EAC7C,WAAY,CACV,OAAQ,WACR,KAAM,CACJ,YAAa,CACX,UAAW,kHACb,CACF,CACF,EACA,SAAU,CACR,KAAM,CACJ,YAAa,eACb,MAAO,CACL,aAAc,CAAE,QAAS,OAAQ,CACnC,CACF,CACF,CACF,EAEA,IAAOE,EAAQD,EAER,MAAME,EAAU,IACrBP,EAACE,EAAA,CACC,UAAAH,EAACI,EAAA,CAAY,IAAI,gCAAgC,IAAI,UAAU,EAC/DJ,EAACK,EAAA,CAAe,cAAE,GACpB,EAGWI,EAAa,IACxBR,EAAC,OAAI,UAAU,0BACb,UAAAA,EAACE,EAAA,CACC,UAAAH,EAACI,EAAA,CAAY,IAAI,gCAAgC,IAAI,UAAU,EAC/DJ,EAACK,EAAA,CAAe,cAAE,GACpB,EACAL,EAACG,EAAA,CACC,SAAAH,EAACK,EAAA,CACC,SAAAL,EAACE,EAAA,EAAS,EACZ,EACF,EACAF,EAACG,EAAA,CACC,SAAAH,EAACK,EAAA,CAAe,aAAC,EACnB,GACF,EAGWK,EAAuB,IAClCT,EAAC,OAAI,UAAU,0BACb,UAAAD,EAACG,EAAA,CAAO,KAAK,QAAQ,aAAY,GAAC,gBAElC,EACAH,EAACG,EAAA,CAAO,KAAK,QAAQ,aAAY,GAAC,wBAElC,EACAH,EAACG,EAAA,CAAO,KAAK,QAAQ,aAAY,GAAC,gCAElC,GACF,EAGWQ,EAAa,IACxBV,EAAC,OAAI,UAAU,0BACb,UAAAA,EAACE,EAAA,CACC,UAAAH,EAACI,EAAA,CAAY,IAAI,gCAAgC,IAAI,UAAU,EAC/DJ,EAACK,EAAA,CAAe,cAAE,GACpB,EACAJ,EAACE,EAAA,CAAO,KAAK,SACX,UAAAH,EAACI,EAAA,CAAY,IAAI,gCAAgC,IAAI,UAAU,EAC/DJ,EAACK,EAAA,CAAe,cAAE,GACpB,EACAJ,EAACE,EAAA,CAAO,KAAK,QACX,UAAAH,EAACI,EAAA,CAAY,IAAI,gCAAgC,IAAI,UAAU,EAC/DJ,EAACK,EAAA,CAAe,cAAE,GACpB,GACF",
6
6
  "names": ["jsx", "jsxs", "UserIcon", "Avatar", "AvatarImage", "AvatarFallback", "meta", "avatar_stories_default", "Default", "AvatarType", "AvatarTextAdaptation", "AvatarSize"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import s from"../biz-components/Tabs/index.js";const a={title:"Biz-Components/Tabs",component:s,tags:["autodocs"],argTypes:{theme:{control:"select",options:["light","dark"]}}};var r=a;const t={tabName:"\u7545\u9500\u5546\u54C1",tabContent:[{blockType:"ShelfDisplay",primaryButton:"Learn More",secondaryButton:"Shop Now",products:[{img:"https://cdn.shopify.com/s/files/1/0517/6767/3016/files/B25M2111_Richimage_TD01_US_V11.png?v=1745726871",price:"\uFFE599",title:"\u5546\u54C11",basePrice:"\uFFE5199",subTitle:"\u526F\u6807\u98981",tagItems:["\u70ED\u5356"]}],itemShape:"square",theme:"dark"}]},e={tabName:"\u6298\u6263\u5546\u54C1",tabContent:[{blockType:"ShelfDisplay",primaryButton:"Learn More",secondaryButton:"Shop Now",products:[{img:"https://cdn.shopify.com/s/files/1/0517/6767/3016/files/A2147113_TD01_V2_1.png?v=1745389222",price:"\uFFE5199",title:"\u5546\u54C11",basePrice:"\uFFE5199",subTitle:"\u526F\u6807\u98981",tagItems:["\u6298\u6263"]}],itemShape:"square",theme:"dark"}]},p={args:{shape:"square",align:"left",tabs:[t,e]}},n={args:{theme:"dark",shape:"square",align:"center",tabs:[t,e],className:"mx-auto"}};export{n as Dark,p as Default,r as default};
1
+ import a from"../biz-components/Tabs/index.js";const s={title:"Biz-Components/Tabs",component:a,tags:["autodocs"]};var r=s;const t={tabName:"\u7545\u9500\u5546\u54C1",tabContent:[{blockType:"ShelfDisplay",primaryButton:"Learn More",secondaryButton:"Shop Now",products:[{img:"https://cdn.shopify.com/s/files/1/0517/6767/3016/files/B25M2111_Richimage_TD01_US_V11.png?v=1745726871",price:"\uFFE599",title:"\u5546\u54C11",basePrice:"\uFFE5199",subTitle:"\u526F\u6807\u98981",tagItems:["\u70ED\u5356"]}],itemShape:"square",theme:"dark"}]},e={tabName:"\u6298\u6263\u5546\u54C1",tabContent:[{blockType:"ShelfDisplay",primaryButton:"Learn More",secondaryButton:"Shop Now",products:[{img:"https://cdn.shopify.com/s/files/1/0517/6767/3016/files/A2147113_TD01_V2_1.png?v=1745389222",price:"\uFFE5199",title:"\u5546\u54C11",basePrice:"\uFFE5199",subTitle:"\u526F\u6807\u98981",tagItems:["\u6298\u6263"]}],itemShape:"square",theme:"dark"}]},p={args:{data:{shape:"square",align:"left",tabs:[t,e]}}},n={args:{data:{theme:"dark",shape:"square",align:"center",tabs:[t,e]},className:"mx-auto"}};export{n as Dark,p as Default,r as default};
2
2
  //# sourceMappingURL=bizTabs.stories.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/stories/bizTabs.stories.tsx"],
4
- "sourcesContent": ["import type { Meta, StoryObj } from '@storybook/react'\nimport Tabs from '../biz-components/Tabs/index.js'\nimport type { TabsProps } from '../biz-components/Tabs/types'\n\nconst meta: Meta<typeof Tabs> = {\n title: 'Biz-Components/Tabs',\n component: Tabs,\n tags: ['autodocs'],\n argTypes: {\n theme: {\n control: 'select',\n options: ['light', 'dark'],\n },\n },\n}\n\nexport default meta\n\ntype Story = StoryObj<typeof Tabs>\n\nconst shelfDisplayTab1 = {\n tabName: '\u7545\u9500\u5546\u54C1',\n tabContent: [\n {\n blockType: 'ShelfDisplay',\n primaryButton: 'Learn More',\n secondaryButton: 'Shop Now',\n products: [\n {\n img: 'https://cdn.shopify.com/s/files/1/0517/6767/3016/files/B25M2111_Richimage_TD01_US_V11.png?v=1745726871',\n price: '\uFFE599',\n title: '\u5546\u54C11',\n basePrice: '\uFFE5199',\n subTitle: '\u526F\u6807\u98981',\n tagItems: ['\u70ED\u5356'],\n },\n ],\n itemShape: 'square',\n theme: 'dark',\n },\n ],\n}\n\nconst shelfDisplayTab2 = {\n tabName: '\u6298\u6263\u5546\u54C1',\n tabContent: [\n {\n blockType: 'ShelfDisplay',\n primaryButton: 'Learn More',\n secondaryButton: 'Shop Now',\n products: [\n {\n img: 'https://cdn.shopify.com/s/files/1/0517/6767/3016/files/A2147113_TD01_V2_1.png?v=1745389222',\n price: '\uFFE5199',\n title: '\u5546\u54C11',\n basePrice: '\uFFE5199',\n subTitle: '\u526F\u6807\u98981',\n tagItems: ['\u6298\u6263'],\n },\n ],\n itemShape: 'square',\n theme: 'dark',\n },\n ],\n}\n\nexport const Default: Story = {\n args: {\n shape: 'square',\n align: 'left',\n tabs: [shelfDisplayTab1, shelfDisplayTab2],\n } as unknown as TabsProps,\n}\n\nexport const Dark: Story = {\n args: {\n theme: 'dark',\n shape: 'square',\n align: 'center',\n tabs: [shelfDisplayTab1, shelfDisplayTab2],\n className: 'mx-auto',\n } as unknown as TabsProps,\n}\n"],
5
- "mappings": "AACA,OAAOA,MAAU,kCAGjB,MAAMC,EAA0B,CAC9B,MAAO,sBACP,UAAWD,EACX,KAAM,CAAC,UAAU,EACjB,SAAU,CACR,MAAO,CACL,QAAS,SACT,QAAS,CAAC,QAAS,MAAM,CAC3B,CACF,CACF,EAEA,IAAOE,EAAQD,EAIf,MAAME,EAAmB,CACvB,QAAS,2BACT,WAAY,CACV,CACE,UAAW,eACX,cAAe,aACf,gBAAiB,WACjB,SAAU,CACR,CACE,IAAK,yGACL,MAAO,WACP,MAAO,gBACP,UAAW,YACX,SAAU,sBACV,SAAU,CAAC,cAAI,CACjB,CACF,EACA,UAAW,SACX,MAAO,MACT,CACF,CACF,EAEMC,EAAmB,CACvB,QAAS,2BACT,WAAY,CACV,CACE,UAAW,eACX,cAAe,aACf,gBAAiB,WACjB,SAAU,CACR,CACE,IAAK,6FACL,MAAO,YACP,MAAO,gBACP,UAAW,YACX,SAAU,sBACV,SAAU,CAAC,cAAI,CACjB,CACF,EACA,UAAW,SACX,MAAO,MACT,CACF,CACF,EAEaC,EAAiB,CAC5B,KAAM,CACJ,MAAO,SACP,MAAO,OACP,KAAM,CAACF,EAAkBC,CAAgB,CAC3C,CACF,EAEaE,EAAc,CACzB,KAAM,CACJ,MAAO,OACP,MAAO,SACP,MAAO,SACP,KAAM,CAACH,EAAkBC,CAAgB,EACzC,UAAW,SACb,CACF",
4
+ "sourcesContent": ["import type { Meta, StoryObj } from '@storybook/react'\nimport Tabs from '../biz-components/Tabs/index.js'\nimport type { TabsProps } from '../biz-components/Tabs/types'\n\nconst meta: Meta<typeof Tabs> = {\n title: 'Biz-Components/Tabs',\n component: Tabs,\n tags: ['autodocs'],\n}\n\nexport default meta\n\ntype Story = StoryObj<typeof Tabs>\n\nconst shelfDisplayTab1 = {\n tabName: '\u7545\u9500\u5546\u54C1',\n tabContent: [\n {\n blockType: 'ShelfDisplay',\n primaryButton: 'Learn More',\n secondaryButton: 'Shop Now',\n products: [\n {\n img: 'https://cdn.shopify.com/s/files/1/0517/6767/3016/files/B25M2111_Richimage_TD01_US_V11.png?v=1745726871',\n price: '\uFFE599',\n title: '\u5546\u54C11',\n basePrice: '\uFFE5199',\n subTitle: '\u526F\u6807\u98981',\n tagItems: ['\u70ED\u5356'],\n },\n ],\n itemShape: 'square',\n theme: 'dark',\n },\n ],\n}\n\nconst shelfDisplayTab2 = {\n tabName: '\u6298\u6263\u5546\u54C1',\n tabContent: [\n {\n blockType: 'ShelfDisplay',\n primaryButton: 'Learn More',\n secondaryButton: 'Shop Now',\n products: [\n {\n img: 'https://cdn.shopify.com/s/files/1/0517/6767/3016/files/A2147113_TD01_V2_1.png?v=1745389222',\n price: '\uFFE5199',\n title: '\u5546\u54C11',\n basePrice: '\uFFE5199',\n subTitle: '\u526F\u6807\u98981',\n tagItems: ['\u6298\u6263'],\n },\n ],\n itemShape: 'square',\n theme: 'dark',\n },\n ],\n}\n\nexport const Default: Story = {\n args: {\n data: {\n shape: 'square',\n align: 'left',\n tabs: [shelfDisplayTab1, shelfDisplayTab2],\n },\n } as unknown as TabsProps,\n}\n\nexport const Dark: Story = {\n args: {\n data: {\n theme: 'dark',\n shape: 'square',\n align: 'center',\n tabs: [shelfDisplayTab1, shelfDisplayTab2],\n },\n className: 'mx-auto',\n } as unknown as TabsProps,\n}\n"],
5
+ "mappings": "AACA,OAAOA,MAAU,kCAGjB,MAAMC,EAA0B,CAC9B,MAAO,sBACP,UAAWD,EACX,KAAM,CAAC,UAAU,CACnB,EAEA,IAAOE,EAAQD,EAIf,MAAME,EAAmB,CACvB,QAAS,2BACT,WAAY,CACV,CACE,UAAW,eACX,cAAe,aACf,gBAAiB,WACjB,SAAU,CACR,CACE,IAAK,yGACL,MAAO,WACP,MAAO,gBACP,UAAW,YACX,SAAU,sBACV,SAAU,CAAC,cAAI,CACjB,CACF,EACA,UAAW,SACX,MAAO,MACT,CACF,CACF,EAEMC,EAAmB,CACvB,QAAS,2BACT,WAAY,CACV,CACE,UAAW,eACX,cAAe,aACf,gBAAiB,WACjB,SAAU,CACR,CACE,IAAK,6FACL,MAAO,YACP,MAAO,gBACP,UAAW,YACX,SAAU,sBACV,SAAU,CAAC,cAAI,CACjB,CACF,EACA,UAAW,SACX,MAAO,MACT,CACF,CACF,EAEaC,EAAiB,CAC5B,KAAM,CACJ,KAAM,CACJ,MAAO,SACP,MAAO,OACP,KAAM,CAACF,EAAkBC,CAAgB,CAC3C,CACF,CACF,EAEaE,EAAc,CACzB,KAAM,CACJ,KAAM,CACJ,MAAO,OACP,MAAO,SACP,MAAO,SACP,KAAM,CAACH,EAAkBC,CAAgB,CAC3C,EACA,UAAW,SACb,CACF",
6
6
  "names": ["Tabs", "meta", "bizTabs_stories_default", "shelfDisplayTab1", "shelfDisplayTab2", "Default", "Dark"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import a from"../biz-components/BrandEquity/BrandEquity.js";const t=o=>e("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.4653 6.25C11.9801 4.79351 13.3691 3.75 15.0019 3.75C16.6347 3.75 18.0237 4.79351 18.5385 6.25H11.4653ZM8.75192 8.75V13.75C8.75192 14.4404 9.31156 15 10.0019 15C10.6923 15 11.2519 14.4404 11.2519 13.75V8.75H18.7519V13.75C18.7519 14.4404 19.3116 15 20.0019 15C20.6923 15 21.2519 14.4404 21.2519 13.75V8.75H23.8452C24.5037 8.75 25.0493 9.26086 25.0925 9.91794L26.0793 24.9179C26.1268 25.639 25.5547 26.25 24.832 26.25H5.1718C4.44915 26.25 3.87705 25.639 3.92449 24.9179L4.91133 9.91794C4.95456 9.26086 5.50014 8.75 6.15864 8.75H8.75192ZM8.87694 6.25C9.45603 3.3972 11.9782 1.25 15.0019 1.25C18.0256 1.25 20.5478 3.3972 21.1269 6.25H23.8452C25.8207 6.25 27.4574 7.78258 27.5871 9.75382L28.5739 24.7538C28.7163 26.9171 27 28.75 24.832 28.75H5.1718C3.00385 28.75 1.28756 26.9171 1.42989 24.7538L2.41673 9.75382C2.54641 7.78259 4.18314 6.25 6.15864 6.25H8.87694ZM12.5019 16.25C12.5019 15.5596 13.0616 15 13.7519 15H16.2519C16.9423 15 17.5019 15.5596 17.5019 16.25C17.5019 16.9404 16.9423 17.5 16.2519 17.5H13.7519C13.0616 17.5 12.5019 16.9404 12.5019 16.25Z",fill:"#1D1D1F"})}),i={title:"Biz-Components/BrandEquity",component:a,parameters:{layout:"fullscreen"},tags:["autodocs"]};var r=i;const s=[{icon:e(t,{className:"size-6"}),title:"Hassle-Free Warranty",description:"Comprehensive warranty protection on all purchases."},{icon:e(t,{className:"size-6"}),title:"Our Happy Customers",description:"Join millions of satisfied Anker users worldwide."},{icon:e(t,{className:"size-6"}),title:"Anker credits rewards",description:"Buy more, save more, and earn more."},{icon:e(t,{className:"size-6"}),title:"Pay with Ease",description:"Pay immediately or in installments with Affirm."},{icon:e(t,{className:"size-6"}),title:"30-day money-back guarantee",description:"Return within 30 days for a full refund."},{avatarList:["https://cdn.shopify.com/s/files/1/0521/9411/5753/files/25954496272e3aad27d750494d4748ca_c591cb1a-5f47-42d9-b356-0acd9e87fed0.png?v=1744612103","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/ee5edd6de20a7af2f30f2fa976d779c9_6ddc29a7-c287-4afc-909c-383fe1f1a74b.png?v=1744612102","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/c3269421a5343c0e59065b53bd81c8f5_ba2fc271-206e-4480-b815-9eb76b45f691.png?v=1744612102","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/b0b7c87fb0819b6cd109bf4b0d865006_e0f7c15a-7d1a-45e7-aee3-783e681a3864.png?v=1744612102","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/85087c9c0ec8c86b481eaea247812c3e.png?v=1744612102"],title:"We are Here to Help",description:"Contact our expert team via email or live chat for assistance."}],n={args:{data:s,className:"bg-[#eeeeee] p-4"}},l={args:{data:s,className:"bg-gray-900 p-4",itemShape:"round"}};export{l as CustomBackground,n as Default,r as default};
1
+ import{jsx as e}from"react/jsx-runtime";import a from"../biz-components/BrandEquity/BrandEquity.js";const t=o=>e("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4653 6.25C11.9801 4.79351 13.3691 3.75 15.0019 3.75C16.6347 3.75 18.0237 4.79351 18.5385 6.25H11.4653ZM8.75192 8.75V13.75C8.75192 14.4404 9.31156 15 10.0019 15C10.6923 15 11.2519 14.4404 11.2519 13.75V8.75H18.7519V13.75C18.7519 14.4404 19.3116 15 20.0019 15C20.6923 15 21.2519 14.4404 21.2519 13.75V8.75H23.8452C24.5037 8.75 25.0493 9.26086 25.0925 9.91794L26.0793 24.9179C26.1268 25.639 25.5547 26.25 24.832 26.25H5.1718C4.44915 26.25 3.87705 25.639 3.92449 24.9179L4.91133 9.91794C4.95456 9.26086 5.50014 8.75 6.15864 8.75H8.75192ZM8.87694 6.25C9.45603 3.3972 11.9782 1.25 15.0019 1.25C18.0256 1.25 20.5478 3.3972 21.1269 6.25H23.8452C25.8207 6.25 27.4574 7.78258 27.5871 9.75382L28.5739 24.7538C28.7163 26.9171 27 28.75 24.832 28.75H5.1718C3.00385 28.75 1.28756 26.9171 1.42989 24.7538L2.41673 9.75382C2.54641 7.78259 4.18314 6.25 6.15864 6.25H8.87694ZM12.5019 16.25C12.5019 15.5596 13.0616 15 13.7519 15H16.2519C16.9423 15 17.5019 15.5596 17.5019 16.25C17.5019 16.9404 16.9423 17.5 16.2519 17.5H13.7519C13.0616 17.5 12.5019 16.9404 12.5019 16.25Z",fill:"#1D1D1F"})}),i={title:"Biz-Components/BrandEquity",component:a,parameters:{layout:"fullscreen"},tags:["autodocs"]};var r=i;const s=[{icon:e(t,{className:"size-6"}),title:"Hassle-Free Warranty",description:"Comprehensive warranty protection on all purchases."},{icon:e(t,{className:"size-6"}),title:"Our Happy Customers",description:"Join millions of satisfied Anker users worldwide."},{icon:e(t,{className:"size-6"}),title:"Anker credits rewards",description:"Buy more, save more, and earn more."},{icon:e(t,{className:"size-6"}),title:"Pay with Ease",description:"Pay immediately or in installments with Affirm."},{icon:e(t,{className:"size-6"}),title:"30-day money-back guarantee",description:"Return within 30 days for a full refund."},{avatarList:["https://cdn.shopify.com/s/files/1/0521/9411/5753/files/25954496272e3aad27d750494d4748ca_c591cb1a-5f47-42d9-b356-0acd9e87fed0.png?v=1744612103","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/ee5edd6de20a7af2f30f2fa976d779c9_6ddc29a7-c287-4afc-909c-383fe1f1a74b.png?v=1744612102","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/c3269421a5343c0e59065b53bd81c8f5_ba2fc271-206e-4480-b815-9eb76b45f691.png?v=1744612102","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/b0b7c87fb0819b6cd109bf4b0d865006_e0f7c15a-7d1a-45e7-aee3-783e681a3864.png?v=1744612102","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/85087c9c0ec8c86b481eaea247812c3e.png?v=1744612102"],title:"We are Here to Help",description:"Contact our expert team via email or live chat for assistance."}],n={args:{data:{items:s},className:"bg-[#eeeeee] p-4"}},l={args:{data:{items:s},className:"bg-gray-900 p-4",itemShape:"round"}};export{l as CustomBackground,n as Default,r as default};
2
2
  //# sourceMappingURL=brandEquity.stories.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/stories/brandEquity.stories.tsx"],
4
- "sourcesContent": ["import type { Meta, StoryObj } from '@storybook/react'\nimport BrandEquity from '../biz-components/BrandEquity/BrandEquity.js'\n\nconst ShieldCheckIcon = (props: { className?: string }) => (\n <svg width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M11.4653 6.25C11.9801 4.79351 13.3691 3.75 15.0019 3.75C16.6347 3.75 18.0237 4.79351 18.5385 6.25H11.4653ZM8.75192 8.75V13.75C8.75192 14.4404 9.31156 15 10.0019 15C10.6923 15 11.2519 14.4404 11.2519 13.75V8.75H18.7519V13.75C18.7519 14.4404 19.3116 15 20.0019 15C20.6923 15 21.2519 14.4404 21.2519 13.75V8.75H23.8452C24.5037 8.75 25.0493 9.26086 25.0925 9.91794L26.0793 24.9179C26.1268 25.639 25.5547 26.25 24.832 26.25H5.1718C4.44915 26.25 3.87705 25.639 3.92449 24.9179L4.91133 9.91794C4.95456 9.26086 5.50014 8.75 6.15864 8.75H8.75192ZM8.87694 6.25C9.45603 3.3972 11.9782 1.25 15.0019 1.25C18.0256 1.25 20.5478 3.3972 21.1269 6.25H23.8452C25.8207 6.25 27.4574 7.78258 27.5871 9.75382L28.5739 24.7538C28.7163 26.9171 27 28.75 24.832 28.75H5.1718C3.00385 28.75 1.28756 26.9171 1.42989 24.7538L2.41673 9.75382C2.54641 7.78259 4.18314 6.25 6.15864 6.25H8.87694ZM12.5019 16.25C12.5019 15.5596 13.0616 15 13.7519 15H16.2519C16.9423 15 17.5019 15.5596 17.5019 16.25C17.5019 16.9404 16.9423 17.5 16.2519 17.5H13.7519C13.0616 17.5 12.5019 16.9404 12.5019 16.25Z\"\n fill=\"#1D1D1F\"\n />\n </svg>\n)\n\nconst meta = {\n title: 'Biz-Components/BrandEquity',\n component: BrandEquity,\n parameters: {\n layout: 'fullscreen',\n },\n tags: ['autodocs'],\n} satisfies Meta<typeof BrandEquity>\n\nexport default meta\ntype Story = StoryObj<typeof meta>\n\nconst mockItems = [\n {\n icon: <ShieldCheckIcon className=\"size-6\" />,\n title: 'Hassle-Free Warranty',\n description: 'Comprehensive warranty protection on all purchases.',\n },\n {\n icon: <ShieldCheckIcon className=\"size-6\" />,\n title: 'Our Happy Customers',\n description: 'Join millions of satisfied Anker users worldwide.',\n },\n {\n icon: <ShieldCheckIcon className=\"size-6\" />,\n title: 'Anker credits rewards',\n description: 'Buy more, save more, and earn more.',\n },\n {\n icon: <ShieldCheckIcon className=\"size-6\" />,\n title: 'Pay with Ease',\n description: 'Pay immediately or in installments with Affirm.',\n },\n {\n icon: <ShieldCheckIcon className=\"size-6\" />,\n title: '30-day money-back guarantee',\n description: 'Return within 30 days for a full refund.',\n },\n {\n avatarList: [\n 'https://cdn.shopify.com/s/files/1/0521/9411/5753/files/25954496272e3aad27d750494d4748ca_c591cb1a-5f47-42d9-b356-0acd9e87fed0.png?v=1744612103',\n 'https://cdn.shopify.com/s/files/1/0521/9411/5753/files/ee5edd6de20a7af2f30f2fa976d779c9_6ddc29a7-c287-4afc-909c-383fe1f1a74b.png?v=1744612102',\n 'https://cdn.shopify.com/s/files/1/0521/9411/5753/files/c3269421a5343c0e59065b53bd81c8f5_ba2fc271-206e-4480-b815-9eb76b45f691.png?v=1744612102',\n 'https://cdn.shopify.com/s/files/1/0521/9411/5753/files/b0b7c87fb0819b6cd109bf4b0d865006_e0f7c15a-7d1a-45e7-aee3-783e681a3864.png?v=1744612102',\n 'https://cdn.shopify.com/s/files/1/0521/9411/5753/files/85087c9c0ec8c86b481eaea247812c3e.png?v=1744612102',\n ],\n title: 'We are Here to Help',\n description: 'Contact our expert team via email or live chat for assistance.',\n },\n]\n\nexport const Default: Story = {\n args: {\n data: mockItems,\n className: 'bg-[#eeeeee] p-4',\n },\n}\n\nexport const CustomBackground: Story = {\n args: {\n data: mockItems,\n className: 'bg-gray-900 p-4',\n itemShape: 'round',\n },\n}\n"],
5
- "mappings": "AAKI,cAAAA,MAAA,oBAJJ,OAAOC,MAAiB,+CAExB,MAAMC,EAAmBC,GACvBH,EAAC,OAAI,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,MAAM,6BAChE,SAAAA,EAAC,QACC,YAAU,UACV,YAAU,UACV,EAAE,iiCACF,KAAK,UACP,EACF,EAGII,EAAO,CACX,MAAO,6BACP,UAAWH,EACX,WAAY,CACV,OAAQ,YACV,EACA,KAAM,CAAC,UAAU,CACnB,EAEA,IAAOI,EAAQD,EAGf,MAAME,EAAY,CAChB,CACE,KAAMN,EAACE,EAAA,CAAgB,UAAU,SAAS,EAC1C,MAAO,uBACP,YAAa,qDACf,EACA,CACE,KAAMF,EAACE,EAAA,CAAgB,UAAU,SAAS,EAC1C,MAAO,sBACP,YAAa,mDACf,EACA,CACE,KAAMF,EAACE,EAAA,CAAgB,UAAU,SAAS,EAC1C,MAAO,wBACP,YAAa,qCACf,EACA,CACE,KAAMF,EAACE,EAAA,CAAgB,UAAU,SAAS,EAC1C,MAAO,gBACP,YAAa,iDACf,EACA,CACE,KAAMF,EAACE,EAAA,CAAgB,UAAU,SAAS,EAC1C,MAAO,8BACP,YAAa,0CACf,EACA,CACE,WAAY,CACV,gJACA,gJACA,gJACA,gJACA,0GACF,EACA,MAAO,sBACP,YAAa,gEACf,CACF,EAEaK,EAAiB,CAC5B,KAAM,CACJ,KAAMD,EACN,UAAW,kBACb,CACF,EAEaE,EAA0B,CACrC,KAAM,CACJ,KAAMF,EACN,UAAW,kBACX,UAAW,OACb,CACF",
4
+ "sourcesContent": ["import type { Meta, StoryObj } from '@storybook/react'\nimport BrandEquity from '../biz-components/BrandEquity/BrandEquity.js'\n\nconst ShieldCheckIcon = (props: { className?: string }) => (\n <svg width=\"30\" height=\"30\" viewBox=\"0 0 30 30\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11.4653 6.25C11.9801 4.79351 13.3691 3.75 15.0019 3.75C16.6347 3.75 18.0237 4.79351 18.5385 6.25H11.4653ZM8.75192 8.75V13.75C8.75192 14.4404 9.31156 15 10.0019 15C10.6923 15 11.2519 14.4404 11.2519 13.75V8.75H18.7519V13.75C18.7519 14.4404 19.3116 15 20.0019 15C20.6923 15 21.2519 14.4404 21.2519 13.75V8.75H23.8452C24.5037 8.75 25.0493 9.26086 25.0925 9.91794L26.0793 24.9179C26.1268 25.639 25.5547 26.25 24.832 26.25H5.1718C4.44915 26.25 3.87705 25.639 3.92449 24.9179L4.91133 9.91794C4.95456 9.26086 5.50014 8.75 6.15864 8.75H8.75192ZM8.87694 6.25C9.45603 3.3972 11.9782 1.25 15.0019 1.25C18.0256 1.25 20.5478 3.3972 21.1269 6.25H23.8452C25.8207 6.25 27.4574 7.78258 27.5871 9.75382L28.5739 24.7538C28.7163 26.9171 27 28.75 24.832 28.75H5.1718C3.00385 28.75 1.28756 26.9171 1.42989 24.7538L2.41673 9.75382C2.54641 7.78259 4.18314 6.25 6.15864 6.25H8.87694ZM12.5019 16.25C12.5019 15.5596 13.0616 15 13.7519 15H16.2519C16.9423 15 17.5019 15.5596 17.5019 16.25C17.5019 16.9404 16.9423 17.5 16.2519 17.5H13.7519C13.0616 17.5 12.5019 16.9404 12.5019 16.25Z\"\n fill=\"#1D1D1F\"\n />\n </svg>\n)\n\nconst meta = {\n title: 'Biz-Components/BrandEquity',\n component: BrandEquity,\n parameters: {\n layout: 'fullscreen',\n },\n tags: ['autodocs'],\n} satisfies Meta<typeof BrandEquity>\n\nexport default meta\ntype Story = StoryObj<typeof meta>\n\nconst mockItems = [\n {\n icon: <ShieldCheckIcon className=\"size-6\" />,\n title: 'Hassle-Free Warranty',\n description: 'Comprehensive warranty protection on all purchases.',\n },\n {\n icon: <ShieldCheckIcon className=\"size-6\" />,\n title: 'Our Happy Customers',\n description: 'Join millions of satisfied Anker users worldwide.',\n },\n {\n icon: <ShieldCheckIcon className=\"size-6\" />,\n title: 'Anker credits rewards',\n description: 'Buy more, save more, and earn more.',\n },\n {\n icon: <ShieldCheckIcon className=\"size-6\" />,\n title: 'Pay with Ease',\n description: 'Pay immediately or in installments with Affirm.',\n },\n {\n icon: <ShieldCheckIcon className=\"size-6\" />,\n title: '30-day money-back guarantee',\n description: 'Return within 30 days for a full refund.',\n },\n {\n avatarList: [\n 'https://cdn.shopify.com/s/files/1/0521/9411/5753/files/25954496272e3aad27d750494d4748ca_c591cb1a-5f47-42d9-b356-0acd9e87fed0.png?v=1744612103',\n 'https://cdn.shopify.com/s/files/1/0521/9411/5753/files/ee5edd6de20a7af2f30f2fa976d779c9_6ddc29a7-c287-4afc-909c-383fe1f1a74b.png?v=1744612102',\n 'https://cdn.shopify.com/s/files/1/0521/9411/5753/files/c3269421a5343c0e59065b53bd81c8f5_ba2fc271-206e-4480-b815-9eb76b45f691.png?v=1744612102',\n 'https://cdn.shopify.com/s/files/1/0521/9411/5753/files/b0b7c87fb0819b6cd109bf4b0d865006_e0f7c15a-7d1a-45e7-aee3-783e681a3864.png?v=1744612102',\n 'https://cdn.shopify.com/s/files/1/0521/9411/5753/files/85087c9c0ec8c86b481eaea247812c3e.png?v=1744612102',\n ],\n title: 'We are Here to Help',\n description: 'Contact our expert team via email or live chat for assistance.',\n },\n]\n\nexport const Default: Story = {\n args: {\n data: {\n items: mockItems,\n },\n className: 'bg-[#eeeeee] p-4',\n },\n}\n\nexport const CustomBackground: Story = {\n args: {\n data: {\n items: mockItems,\n },\n className: 'bg-gray-900 p-4',\n itemShape: 'round',\n },\n}\n"],
5
+ "mappings": "AAKI,cAAAA,MAAA,oBAJJ,OAAOC,MAAiB,+CAExB,MAAMC,EAAmBC,GACvBH,EAAC,OAAI,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,MAAM,6BAChE,SAAAA,EAAC,QACC,SAAS,UACT,SAAS,UACT,EAAE,iiCACF,KAAK,UACP,EACF,EAGII,EAAO,CACX,MAAO,6BACP,UAAWH,EACX,WAAY,CACV,OAAQ,YACV,EACA,KAAM,CAAC,UAAU,CACnB,EAEA,IAAOI,EAAQD,EAGf,MAAME,EAAY,CAChB,CACE,KAAMN,EAACE,EAAA,CAAgB,UAAU,SAAS,EAC1C,MAAO,uBACP,YAAa,qDACf,EACA,CACE,KAAMF,EAACE,EAAA,CAAgB,UAAU,SAAS,EAC1C,MAAO,sBACP,YAAa,mDACf,EACA,CACE,KAAMF,EAACE,EAAA,CAAgB,UAAU,SAAS,EAC1C,MAAO,wBACP,YAAa,qCACf,EACA,CACE,KAAMF,EAACE,EAAA,CAAgB,UAAU,SAAS,EAC1C,MAAO,gBACP,YAAa,iDACf,EACA,CACE,KAAMF,EAACE,EAAA,CAAgB,UAAU,SAAS,EAC1C,MAAO,8BACP,YAAa,0CACf,EACA,CACE,WAAY,CACV,gJACA,gJACA,gJACA,gJACA,0GACF,EACA,MAAO,sBACP,YAAa,gEACf,CACF,EAEaK,EAAiB,CAC5B,KAAM,CACJ,KAAM,CACJ,MAAOD,CACT,EACA,UAAW,kBACb,CACF,EAEaE,EAA0B,CACrC,KAAM,CACJ,KAAM,CACJ,MAAOF,CACT,EACA,UAAW,kBACX,UAAW,OACb,CACF",
6
6
  "names": ["jsx", "BrandEquity", "ShieldCheckIcon", "props", "meta", "brandEquity_stories_default", "mockItems", "Default", "CustomBackground"]
7
7
  }
@@ -5,10 +5,10 @@ declare const meta: {
5
5
  component: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
6
6
  showNavigation?: boolean;
7
7
  navigationPosition?: "inner" | "outter";
8
- opts?: Partial<import("embla-carousel/components/Options.js").OptionsType> | undefined;
9
- plugins?: import("embla-carousel").CreatePluginType<import("embla-carousel/components/Plugins.js").LoosePluginType, {}>[] | undefined;
8
+ opts?: Partial<import("node_modules/embla-carousel/esm/components/Options.js").OptionsType> | undefined;
9
+ plugins?: import("embla-carousel").CreatePluginType<import("node_modules/embla-carousel/esm/components/Plugins.js").LoosePluginType, {}>[] | undefined;
10
10
  orientation?: "horizontal" | "vertical";
11
- setApi?: (api: import("../components/carousel.js").CarouselApi) => void;
11
+ setApi?: (api: import("../index.js").CarouselApi) => void;
12
12
  } & React.RefAttributes<HTMLDivElement>>;
13
13
  subcomponents: {
14
14
  CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,2 @@
1
- import{Fragment as f,jsx as e,jsxs as n}from"react/jsx-runtime";import{Carousel as o,CarouselContent as s,CarouselItem as a,CarouselNext as r,CarouselPrevious as l,Card as p,CardContent as c}from"../components/index.js";import"react";const m={title:"Components/Carousel",component:o,subcomponents:{CarouselContent:s,CarouselItem:a},parameters:{layout:"centered",docs:{description:{component:"\u8F6E\u64AD\u7EC4\u4EF6, \u57FA\u4E8E\u8F7B\u91CF\u7EA7\u7EC4\u4EF6embla-carousel-react, https://www.embla-carousel.com/get-started/react/"}}},tags:["autodocs"],argTypes:{opts:{description:"embla-carousel-react \u7684\u914D\u7F6E\u53C2\u6570, \u53EF\u4EE5\u914D\u7F6Eloop: true \u5F00\u542F\u5FAA\u73AF\uFF0Calign: center | start | end \u5BF9\u9F50\u65B9\u5F0F\uFF0C \u67E5\u770B https://www.embla-carousel.com/api/options/",control:{type:"object"}},showNavigation:{description:"\u662F\u5426\u663E\u793A\u5BFC\u822A\u70B9",control:{type:"boolean"}},orientation:{description:"\u8F6E\u64AD\u65B9\u5411",control:{type:"select"},options:["horizontal","vertical"]},setApi:{description:"\u8BBE\u7F6Eapi, \u53EF\u4EE5\u901A\u8FC7\u8FD9\u4E2A\u51FD\u6570\u83B7\u53D6carousel API \u5B9E\u4F8B\uFF0C\u62FF\u5230api \u5B9E\u4F8B\u540E,\u53EF\u4EE5\u8C03\u7528api \u5B9E\u4F8B\u7684\u65B9\u6CD5\u6216\u8005\u5C5E\u6027"},plugins:{description:"embla-carousel-react \u7684\u63D2\u4EF6,embla-carousel \u7684 Autoplay, Wheel Gesture \u7B49\u9AD8\u7EA7\u529F\u80FD \u901A\u8FC7\u63D2\u4EF6\u652F\u6301 https://www.embla-carousel.com/plugins/"}},args:{opts:{},orientation:"horizontal"}};var h=m;const N={args:{opts:{align:"start"},children:n(f,{children:[e(s,{children:Array.from({length:5}).map((i,t)=>e(a,{className:"basis-1/3",children:e("div",{className:"p-1",children:e(p,{children:e(c,{className:"flex aspect-square items-center justify-center p-6",children:e("span",{className:"text-3xl font-semibold",children:t+1})})})})},t))}),e(l,{}),e(r,{})]})}},v={render(){return n(o,{opts:{align:"start"},orientation:"vertical",className:"w-full max-w-xs",children:[e(s,{className:"-mt-1 h-[200px]",children:Array.from({length:5}).map((i,t)=>e(a,{className:"basis-1/2 pt-1",children:e("div",{className:"p-1",children:e(p,{children:e(c,{className:"flex aspect-square items-center justify-center p-6",children:e("span",{className:"text-3xl font-semibold",children:t+1})})})})},t))}),e(l,{}),e(r,{})]})}},u=["https://cdn.shopify.com/s/files/1/0521/9411/5753/files/Frame_1312320388_mo_path_1.png?v=1741689169","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/Frame_1312320388.png?v=1741689169","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/Frame_1312320388_1_mo_never_missing.png?v=1741689169","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/Frame_1312320388_mo_path_1.png?v=1741689169","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/Frame_1312320388.png?v=1741689169"],d={render(){return n(o,{opts:{loop:!0,align:"center"},showNavigation:!0,navigationPosition:"outter",className:"w-full max-w-xl",children:[e(s,{className:"",children:Array.from({length:5}).map((i,t)=>e(a,{className:"basis-1/2",children:e("div",{className:"p-1",children:e("img",{src:u[t],alt:""})})},t))}),e(l,{className:"left-4"}),e(r,{className:"right-4"})]})}};d.parameters={layout:"padded"};export{N as Default,d as OverrideClassName,v as Vertical,h as default};
1
+ import{Fragment as d,jsx as e,jsxs as n}from"react/jsx-runtime";import{Carousel as o,CarouselContent as s,CarouselItem as a,CarouselNext as r,CarouselPrevious as l,Card as p,CardContent as c}from"../components/index.js";import"react";const m={title:"Components/Carousel",component:o,subcomponents:{CarouselContent:s,CarouselItem:a},parameters:{layout:"fullscreen",docs:{description:{component:"\u8F6E\u64AD\u7EC4\u4EF6, \u57FA\u4E8E\u8F7B\u91CF\u7EA7\u7EC4\u4EF6embla-carousel-react, https://www.embla-carousel.com/get-started/react/"}}},tags:["autodocs"],argTypes:{opts:{description:"embla-carousel-react \u7684\u914D\u7F6E\u53C2\u6570, \u53EF\u4EE5\u914D\u7F6Eloop: true \u5F00\u542F\u5FAA\u73AF\uFF0Calign: center | start | end \u5BF9\u9F50\u65B9\u5F0F\uFF0C \u67E5\u770B https://www.embla-carousel.com/api/options/",control:{type:"object"}},showNavigation:{description:"\u662F\u5426\u663E\u793A\u5BFC\u822A\u70B9",control:{type:"boolean"}},orientation:{description:"\u8F6E\u64AD\u65B9\u5411",control:{type:"select"},options:["horizontal","vertical"]},setApi:{description:"\u8BBE\u7F6Eapi, \u53EF\u4EE5\u901A\u8FC7\u8FD9\u4E2A\u51FD\u6570\u83B7\u53D6carousel API \u5B9E\u4F8B\uFF0C\u62FF\u5230api \u5B9E\u4F8B\u540E,\u53EF\u4EE5\u8C03\u7528api \u5B9E\u4F8B\u7684\u65B9\u6CD5\u6216\u8005\u5C5E\u6027"},plugins:{description:"embla-carousel-react \u7684\u63D2\u4EF6,embla-carousel \u7684 Autoplay, Wheel Gesture \u7B49\u9AD8\u7EA7\u529F\u80FD \u901A\u8FC7\u63D2\u4EF6\u652F\u6301 https://www.embla-carousel.com/plugins/"}},args:{opts:{},orientation:"horizontal"}};var h=m;const N={args:{opts:{align:"start"},children:n(d,{children:[e(s,{children:Array.from({length:5}).map((i,t)=>e(a,{className:"basis-1/3",children:e("div",{className:"p-1",children:e(p,{children:e(c,{className:"flex aspect-square items-center justify-center p-6",children:e("span",{className:"text-3xl font-semibold",children:t+1})})})})},t))}),e(l,{}),e(r,{})]})}},v={render(){return n(o,{opts:{align:"start"},orientation:"vertical",className:"w-full max-w-xs",children:[e(s,{className:"-mt-1 h-[200px]",children:Array.from({length:5}).map((i,t)=>e(a,{className:"basis-1/2 pt-1",children:e("div",{className:"p-1",children:e(p,{children:e(c,{className:"flex aspect-square items-center justify-center p-6",children:e("span",{className:"text-3xl font-semibold",children:t+1})})})})},t))}),e(l,{}),e(r,{})]})}},u=["https://cdn.shopify.com/s/files/1/0521/9411/5753/files/Frame_1312320388_mo_path_1.png?v=1741689169","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/Frame_1312320388.png?v=1741689169","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/Frame_1312320388_1_mo_never_missing.png?v=1741689169","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/Frame_1312320388_mo_path_1.png?v=1741689169","https://cdn.shopify.com/s/files/1/0521/9411/5753/files/Frame_1312320388.png?v=1741689169"],f={render(){return n(o,{opts:{loop:!0,align:"center"},showNavigation:!0,navigationPosition:"outter",className:"w-full max-w-xl",children:[e(s,{className:"",children:Array.from({length:5}).map((i,t)=>e(a,{className:"basis-1/2",children:e("div",{className:"p-1",children:e("img",{src:u[t],alt:""})})},t))}),e(l,{className:"left-4"}),e(r,{className:"right-4"})]})}};f.parameters={layout:"padded"};export{N as Default,f as OverrideClassName,v as Vertical,h as default};
2
2
  //# sourceMappingURL=carousel.stories.js.map