@ikas/code-components-mcp 0.104.0 → 0.106.0

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 (790) hide show
  1. package/data/section-templates/account-info-section/_meta.json +4 -0
  2. package/data/section-templates/account-info-section/children/AccountAddresses/components/AddressCard/index.tsx +55 -0
  3. package/data/section-templates/account-info-section/children/AccountAddresses/components/AddressCard/styles.css +46 -0
  4. package/data/section-templates/account-info-section/children/AccountAddresses/components/AddressModal/index.tsx +301 -0
  5. package/data/section-templates/account-info-section/children/AccountAddresses/components/AddressModal/styles.css +22 -0
  6. package/data/section-templates/account-info-section/children/AccountAddresses/ikas-config-snippet.json +122 -0
  7. package/data/section-templates/account-info-section/children/AccountAddresses/index.tsx +127 -0
  8. package/data/section-templates/account-info-section/children/AccountAddresses/styles.css +41 -0
  9. package/data/section-templates/account-info-section/children/AccountAddresses/types.ts +14 -0
  10. package/data/section-templates/account-info-section/children/AccountFavorites/ikas-config-snippet.json +57 -0
  11. package/data/section-templates/account-info-section/children/AccountFavorites/index.tsx +82 -0
  12. package/data/section-templates/account-info-section/children/AccountFavorites/styles.css +52 -0
  13. package/data/section-templates/account-info-section/children/AccountFavorites/types.ts +6 -0
  14. package/data/section-templates/account-info-section/children/AccountInfoContent/ikas-config-snippet.json +66 -0
  15. package/data/section-templates/account-info-section/children/AccountInfoContent/index.tsx +134 -0
  16. package/data/section-templates/account-info-section/children/AccountInfoContent/styles.css +57 -0
  17. package/data/section-templates/account-info-section/children/AccountInfoContent/types.ts +7 -0
  18. package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderHeader/index.tsx +78 -0
  19. package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderHeader/styles.css +46 -0
  20. package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderItemRow/index.tsx +20 -0
  21. package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderItemRow/styles.css +16 -0
  22. package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderLineItemDisplay/index.tsx +112 -0
  23. package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderLineItemDisplay/styles.css +86 -0
  24. package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderSidebar/index.tsx +195 -0
  25. package/data/section-templates/account-info-section/children/AccountOrderDetail/components/OrderSidebar/styles.css +93 -0
  26. package/data/section-templates/account-info-section/children/AccountOrderDetail/components/PackageGroup/index.tsx +156 -0
  27. package/data/section-templates/account-info-section/children/AccountOrderDetail/components/PackageGroup/styles.css +100 -0
  28. package/data/section-templates/account-info-section/children/AccountOrderDetail/components/ReturnItemRow/index.tsx +56 -0
  29. package/data/section-templates/account-info-section/children/AccountOrderDetail/components/ReturnItemRow/styles.css +57 -0
  30. package/data/section-templates/account-info-section/children/AccountOrderDetail/components/ReturnView/index.tsx +159 -0
  31. package/data/section-templates/account-info-section/children/AccountOrderDetail/components/ReturnView/styles.css +29 -0
  32. package/data/section-templates/account-info-section/children/AccountOrderDetail/ikas-config-snippet.json +283 -0
  33. package/data/section-templates/account-info-section/children/AccountOrderDetail/index.tsx +244 -0
  34. package/data/section-templates/account-info-section/children/AccountOrderDetail/styles.css +125 -0
  35. package/data/section-templates/account-info-section/children/AccountOrderDetail/types.ts +31 -0
  36. package/data/section-templates/account-info-section/children/AccountOrders/components/OrderCard/index.tsx +122 -0
  37. package/data/section-templates/account-info-section/children/AccountOrders/components/OrderCard/styles.css +114 -0
  38. package/data/section-templates/account-info-section/children/AccountOrders/ikas-config-snippet.json +85 -0
  39. package/data/section-templates/account-info-section/children/AccountOrders/index.tsx +105 -0
  40. package/data/section-templates/account-info-section/children/AccountOrders/styles.css +36 -0
  41. package/data/section-templates/account-info-section/children/AccountOrders/types.ts +10 -0
  42. package/data/section-templates/account-info-section/components/AccountSidebar/index.tsx +171 -0
  43. package/data/section-templates/account-info-section/components/AccountSidebar/styles.css +144 -0
  44. package/data/section-templates/account-info-section/global-types.ts +13 -0
  45. package/data/section-templates/account-info-section/hooks/useScrollLock.ts +20 -0
  46. package/data/section-templates/account-info-section/ikas-config-snippet.json +69 -0
  47. package/data/section-templates/account-info-section/index.tsx +91 -0
  48. package/data/section-templates/account-info-section/styles.css +35 -0
  49. package/data/section-templates/account-info-section/sub-components/Breadcrumb/index.tsx +57 -0
  50. package/data/section-templates/account-info-section/sub-components/Breadcrumb/styles.css +49 -0
  51. package/data/section-templates/account-info-section/sub-components/Button/index.tsx +52 -0
  52. package/data/section-templates/account-info-section/sub-components/Button/styles.css +114 -0
  53. package/data/section-templates/account-info-section/sub-components/Checkbox/index.tsx +42 -0
  54. package/data/section-templates/account-info-section/sub-components/Checkbox/styles.css +65 -0
  55. package/data/section-templates/account-info-section/sub-components/ConfirmModal/index.tsx +60 -0
  56. package/data/section-templates/account-info-section/sub-components/ConfirmModal/styles.css +20 -0
  57. package/data/section-templates/account-info-section/sub-components/FormItem/index.tsx +66 -0
  58. package/data/section-templates/account-info-section/sub-components/FormItem/styles.css +38 -0
  59. package/data/section-templates/account-info-section/sub-components/Input/index.tsx +69 -0
  60. package/data/section-templates/account-info-section/sub-components/Input/styles.css +162 -0
  61. package/data/section-templates/account-info-section/sub-components/Modal/index.tsx +118 -0
  62. package/data/section-templates/account-info-section/sub-components/Modal/styles.css +70 -0
  63. package/data/section-templates/account-info-section/sub-components/PageLoader/index.tsx +14 -0
  64. package/data/section-templates/account-info-section/sub-components/PageLoader/styles.css +12 -0
  65. package/data/section-templates/account-info-section/sub-components/ProductCard/index.tsx +276 -0
  66. package/data/section-templates/account-info-section/sub-components/ProductCard/styles.css +99 -0
  67. package/data/section-templates/account-info-section/sub-components/Select/index.tsx +86 -0
  68. package/data/section-templates/account-info-section/sub-components/Select/styles.css +110 -0
  69. package/data/section-templates/account-info-section/sub-components/SkeletonField/index.tsx +12 -0
  70. package/data/section-templates/account-info-section/sub-components/SkeletonField/styles.css +29 -0
  71. package/data/section-templates/account-info-section/sub-components/SpinnerIcon/index.tsx +10 -0
  72. package/data/section-templates/account-info-section/sub-components/SpinnerIcon/styles.css +8 -0
  73. package/data/section-templates/account-info-section/sub-components/Tag/index.tsx +21 -0
  74. package/data/section-templates/account-info-section/sub-components/Tag/styles.css +30 -0
  75. package/data/section-templates/account-info-section/sub-components/icons/index.tsx +981 -0
  76. package/data/section-templates/account-info-section/types.ts +8 -0
  77. package/data/section-templates/account-info-section/utils/cx.ts +4 -0
  78. package/data/section-templates/account-info-section/utils/fullName.ts +6 -0
  79. package/data/section-templates/account-info-section/utils/media.ts +36 -0
  80. package/data/section-templates/account-info-section/utils/orderStatus.ts +28 -0
  81. package/data/section-templates/account-info-section/utils/toast.ts +5 -0
  82. package/data/section-templates/add-to-cart/_meta.json +4 -0
  83. package/data/section-templates/add-to-cart/components/PayWithIkas/index.tsx +34 -0
  84. package/data/section-templates/add-to-cart/components/PayWithIkas/styles.css +4 -0
  85. package/data/section-templates/add-to-cart/hooks/usePayWithIkas.ts +114 -0
  86. package/data/section-templates/add-to-cart/ikas-config-snippet.json +139 -0
  87. package/data/section-templates/add-to-cart/index.tsx +146 -0
  88. package/data/section-templates/add-to-cart/styles.css +27 -0
  89. package/data/section-templates/add-to-cart/sub-components/Button/index.tsx +52 -0
  90. package/data/section-templates/add-to-cart/sub-components/Button/styles.css +114 -0
  91. package/data/section-templates/add-to-cart/sub-components/QuantitySelector/index.tsx +41 -0
  92. package/data/section-templates/add-to-cart/sub-components/QuantitySelector/styles.css +51 -0
  93. package/data/section-templates/add-to-cart/sub-components/icons/index.tsx +981 -0
  94. package/data/section-templates/add-to-cart/types.ts +17 -0
  95. package/data/section-templates/add-to-cart/utils/bundle.ts +70 -0
  96. package/data/section-templates/add-to-cart/utils/cx.ts +4 -0
  97. package/data/section-templates/add-to-cart/utils/optionSet.ts +17 -0
  98. package/data/section-templates/add-to-cart/utils/toast.ts +5 -0
  99. package/data/section-templates/blog-home-section/_meta.json +4 -0
  100. package/data/section-templates/blog-home-section/components/BlogCard/index.tsx +89 -0
  101. package/data/section-templates/blog-home-section/components/BlogCard/styles.css +121 -0
  102. package/data/section-templates/blog-home-section/global-types.ts +13 -0
  103. package/data/section-templates/blog-home-section/ikas-config-snippet.json +95 -0
  104. package/data/section-templates/blog-home-section/index.tsx +124 -0
  105. package/data/section-templates/blog-home-section/styles.css +118 -0
  106. package/data/section-templates/blog-home-section/sub-components/Pagination/index.tsx +107 -0
  107. package/data/section-templates/blog-home-section/sub-components/Pagination/styles.css +88 -0
  108. package/data/section-templates/blog-home-section/sub-components/icons/index.tsx +981 -0
  109. package/data/section-templates/blog-home-section/types.ts +14 -0
  110. package/data/section-templates/blog-home-section/utils/cx.ts +4 -0
  111. package/data/section-templates/blog-home-section/utils/fullName.ts +6 -0
  112. package/data/section-templates/blog-home-section/utils/media.ts +36 -0
  113. package/data/section-templates/blog-home-section/utils/pagination.ts +29 -0
  114. package/data/section-templates/blog-post-section/_meta.json +4 -0
  115. package/data/section-templates/blog-post-section/global-types.ts +13 -0
  116. package/data/section-templates/blog-post-section/ikas-config-snippet.json +75 -0
  117. package/data/section-templates/blog-post-section/index.tsx +128 -0
  118. package/data/section-templates/blog-post-section/styles.css +120 -0
  119. package/data/section-templates/blog-post-section/sub-components/Breadcrumb/index.tsx +57 -0
  120. package/data/section-templates/blog-post-section/sub-components/Breadcrumb/styles.css +49 -0
  121. package/data/section-templates/blog-post-section/sub-components/icons/index.tsx +981 -0
  122. package/data/section-templates/blog-post-section/types.ts +11 -0
  123. package/data/section-templates/blog-post-section/utils/cx.ts +4 -0
  124. package/data/section-templates/blog-post-section/utils/fullName.ts +6 -0
  125. package/data/section-templates/blog-post-section/utils/media.ts +36 -0
  126. package/data/section-templates/bundle-products/_meta.json +4 -0
  127. package/data/section-templates/bundle-products/components/BundleProductItem/index.tsx +169 -0
  128. package/data/section-templates/bundle-products/components/BundleProductItem/styles.css +141 -0
  129. package/data/section-templates/bundle-products/components/BundleSkeletonLoading/index.tsx +35 -0
  130. package/data/section-templates/bundle-products/components/BundleSkeletonLoading/styles.css +85 -0
  131. package/data/section-templates/bundle-products/components/FurnitureRow/index.tsx +51 -0
  132. package/data/section-templates/bundle-products/components/FurnitureRow/styles.css +30 -0
  133. package/data/section-templates/bundle-products/components/FurnitureView/index.tsx +54 -0
  134. package/data/section-templates/bundle-products/components/FurnitureView/styles.css +22 -0
  135. package/data/section-templates/bundle-products/global-types.ts +13 -0
  136. package/data/section-templates/bundle-products/hooks/useBundleProducts.ts +75 -0
  137. package/data/section-templates/bundle-products/ikas-config-snippet.json +130 -0
  138. package/data/section-templates/bundle-products/index.tsx +101 -0
  139. package/data/section-templates/bundle-products/styles.css +20 -0
  140. package/data/section-templates/bundle-products/sub-components/Badge/index.tsx +208 -0
  141. package/data/section-templates/bundle-products/sub-components/Badge/styles.css +129 -0
  142. package/data/section-templates/bundle-products/sub-components/BundleMedia/index.tsx +72 -0
  143. package/data/section-templates/bundle-products/sub-components/BundleQuantityBox/index.tsx +73 -0
  144. package/data/section-templates/bundle-products/sub-components/BundleQuantityBox/styles.css +43 -0
  145. package/data/section-templates/bundle-products/sub-components/VariantBadge/index.tsx +153 -0
  146. package/data/section-templates/bundle-products/sub-components/VariantBadge/styles.css +47 -0
  147. package/data/section-templates/bundle-products/sub-components/icons/index.tsx +981 -0
  148. package/data/section-templates/bundle-products/types.ts +17 -0
  149. package/data/section-templates/bundle-products/utils/bundle.ts +70 -0
  150. package/data/section-templates/bundle-products/utils/cx.ts +4 -0
  151. package/data/section-templates/bundle-products/utils/media.ts +36 -0
  152. package/data/section-templates/cart-section/_meta.json +4 -0
  153. package/data/section-templates/cart-section/components/CouponCode/index.tsx +108 -0
  154. package/data/section-templates/cart-section/components/CouponCode/styles.css +68 -0
  155. package/data/section-templates/cart-section/components/EmptyState/index.tsx +31 -0
  156. package/data/section-templates/cart-section/components/EmptyState/styles.css +18 -0
  157. package/data/section-templates/cart-section/components/OrderSummary/index.tsx +106 -0
  158. package/data/section-templates/cart-section/components/OrderSummary/styles.css +70 -0
  159. package/data/section-templates/cart-section/global-types.ts +13 -0
  160. package/data/section-templates/cart-section/ikas-config-snippet.json +130 -0
  161. package/data/section-templates/cart-section/index.tsx +107 -0
  162. package/data/section-templates/cart-section/styles.css +54 -0
  163. package/data/section-templates/cart-section/sub-components/Button/index.tsx +52 -0
  164. package/data/section-templates/cart-section/sub-components/Button/styles.css +114 -0
  165. package/data/section-templates/cart-section/sub-components/CartItem/components/BundleProductItem/index.tsx +59 -0
  166. package/data/section-templates/cart-section/sub-components/CartItem/components/BundleProductItem/styles.css +24 -0
  167. package/data/section-templates/cart-section/sub-components/CartItem/components/BundleProducts/index.tsx +55 -0
  168. package/data/section-templates/cart-section/sub-components/CartItem/components/BundleProducts/styles.css +30 -0
  169. package/data/section-templates/cart-section/sub-components/CartItem/components/ItemOptions/index.tsx +31 -0
  170. package/data/section-templates/cart-section/sub-components/CartItem/components/ItemOptions/styles.css +6 -0
  171. package/data/section-templates/cart-section/sub-components/CartItem/components/OptionValueDisplay/index.tsx +79 -0
  172. package/data/section-templates/cart-section/sub-components/CartItem/components/OptionValueDisplay/styles.css +28 -0
  173. package/data/section-templates/cart-section/sub-components/CartItem/index.tsx +216 -0
  174. package/data/section-templates/cart-section/sub-components/CartItem/styles.css +170 -0
  175. package/data/section-templates/cart-section/sub-components/Input/index.tsx +69 -0
  176. package/data/section-templates/cart-section/sub-components/Input/styles.css +162 -0
  177. package/data/section-templates/cart-section/sub-components/PageLoader/index.tsx +14 -0
  178. package/data/section-templates/cart-section/sub-components/PageLoader/styles.css +12 -0
  179. package/data/section-templates/cart-section/sub-components/QuantitySelector/index.tsx +41 -0
  180. package/data/section-templates/cart-section/sub-components/QuantitySelector/styles.css +51 -0
  181. package/data/section-templates/cart-section/sub-components/SpinnerIcon/index.tsx +10 -0
  182. package/data/section-templates/cart-section/sub-components/SpinnerIcon/styles.css +8 -0
  183. package/data/section-templates/cart-section/sub-components/icons/index.tsx +981 -0
  184. package/data/section-templates/cart-section/types.ts +15 -0
  185. package/data/section-templates/cart-section/utils/cx.ts +4 -0
  186. package/data/section-templates/cart-section/utils/media.ts +36 -0
  187. package/data/section-templates/category-images-section/_meta.json +4 -0
  188. package/data/section-templates/category-images-section/children/CategoryImageItem/components/Card/index.tsx +64 -0
  189. package/data/section-templates/category-images-section/children/CategoryImageItem/components/Card/styles.css +56 -0
  190. package/data/section-templates/category-images-section/children/CategoryImageItem/ikas-config-snippet.json +93 -0
  191. package/data/section-templates/category-images-section/children/CategoryImageItem/index.tsx +64 -0
  192. package/data/section-templates/category-images-section/children/CategoryImageItem/styles.css +10 -0
  193. package/data/section-templates/category-images-section/children/CategoryImageItem/types.ts +15 -0
  194. package/data/section-templates/category-images-section/global-types.ts +13 -0
  195. package/data/section-templates/category-images-section/ikas-config-snippet.json +69 -0
  196. package/data/section-templates/category-images-section/index.tsx +62 -0
  197. package/data/section-templates/category-images-section/styles.css +38 -0
  198. package/data/section-templates/category-images-section/types.ts +10 -0
  199. package/data/section-templates/category-images-section/utils/cx.ts +4 -0
  200. package/data/section-templates/category-images-section/utils/media.ts +36 -0
  201. package/data/section-templates/category-list-section/_meta.json +4 -0
  202. package/data/section-templates/category-list-section/children/CardProductName/ikas-config-snippet.json +21 -0
  203. package/data/section-templates/category-list-section/children/CardProductName/index.tsx +25 -0
  204. package/data/section-templates/category-list-section/children/CardProductName/styles.css +22 -0
  205. package/data/section-templates/category-list-section/children/CardProductName/types.ts +6 -0
  206. package/data/section-templates/category-list-section/children/CardProductPrice/ikas-config-snippet.json +15 -0
  207. package/data/section-templates/category-list-section/children/CardProductPrice/index.tsx +30 -0
  208. package/data/section-templates/category-list-section/children/CardProductPrice/styles.css +13 -0
  209. package/data/section-templates/category-list-section/children/CardProductPrice/types.ts +5 -0
  210. package/data/section-templates/category-list-section/children/CardProductVariants/ikas-config-snippet.json +15 -0
  211. package/data/section-templates/category-list-section/children/CardProductVariants/index.tsx +10 -0
  212. package/data/section-templates/category-list-section/children/CardProductVariants/styles.css +1 -0
  213. package/data/section-templates/category-list-section/children/CardProductVariants/types.ts +5 -0
  214. package/data/section-templates/category-list-section/components/CategoryListControls/index.tsx +129 -0
  215. package/data/section-templates/category-list-section/components/CategoryListControls/styles.css +99 -0
  216. package/data/section-templates/category-list-section/components/FilterBoxValues/index.tsx +42 -0
  217. package/data/section-templates/category-list-section/components/FilterBoxValues/styles.css +27 -0
  218. package/data/section-templates/category-list-section/components/FilterCategoryList/index.tsx +43 -0
  219. package/data/section-templates/category-list-section/components/FilterCategoryList/styles.css +20 -0
  220. package/data/section-templates/category-list-section/components/FilterGroupValues/index.tsx +114 -0
  221. package/data/section-templates/category-list-section/components/FilterGroupValues/styles.css +1 -0
  222. package/data/section-templates/category-list-section/components/FilterListValues/index.tsx +54 -0
  223. package/data/section-templates/category-list-section/components/FilterListValues/styles.css +22 -0
  224. package/data/section-templates/category-list-section/components/FilterRangeListValues/index.tsx +50 -0
  225. package/data/section-templates/category-list-section/components/FilterRangeListValues/styles.css +25 -0
  226. package/data/section-templates/category-list-section/components/FilterRangeValues/index.tsx +189 -0
  227. package/data/section-templates/category-list-section/components/FilterRangeValues/styles.css +89 -0
  228. package/data/section-templates/category-list-section/components/FilterSidebar/index.tsx +92 -0
  229. package/data/section-templates/category-list-section/components/FilterSidebar/styles.css +27 -0
  230. package/data/section-templates/category-list-section/components/FilterSwatchValues/index.tsx +63 -0
  231. package/data/section-templates/category-list-section/components/FilterSwatchValues/styles.css +48 -0
  232. package/data/section-templates/category-list-section/components/MobileFilterModal/index.tsx +146 -0
  233. package/data/section-templates/category-list-section/components/MobileFilterModal/styles.css +133 -0
  234. package/data/section-templates/category-list-section/global-types.ts +13 -0
  235. package/data/section-templates/category-list-section/hooks/useColumnPreference.ts +26 -0
  236. package/data/section-templates/category-list-section/hooks/useInfiniteScroll.ts +49 -0
  237. package/data/section-templates/category-list-section/hooks/usePageTracking.ts +56 -0
  238. package/data/section-templates/category-list-section/hooks/useScrollLock.ts +20 -0
  239. package/data/section-templates/category-list-section/ikas-config-snippet.json +240 -0
  240. package/data/section-templates/category-list-section/index.tsx +333 -0
  241. package/data/section-templates/category-list-section/styles.css +110 -0
  242. package/data/section-templates/category-list-section/sub-components/Badge/index.tsx +208 -0
  243. package/data/section-templates/category-list-section/sub-components/Badge/styles.css +129 -0
  244. package/data/section-templates/category-list-section/sub-components/Breadcrumb/index.tsx +57 -0
  245. package/data/section-templates/category-list-section/sub-components/Breadcrumb/styles.css +49 -0
  246. package/data/section-templates/category-list-section/sub-components/Button/index.tsx +52 -0
  247. package/data/section-templates/category-list-section/sub-components/Button/styles.css +114 -0
  248. package/data/section-templates/category-list-section/sub-components/Checkbox/index.tsx +42 -0
  249. package/data/section-templates/category-list-section/sub-components/Checkbox/styles.css +65 -0
  250. package/data/section-templates/category-list-section/sub-components/CollapsibleGroup/index.tsx +52 -0
  251. package/data/section-templates/category-list-section/sub-components/CollapsibleGroup/styles.css +51 -0
  252. package/data/section-templates/category-list-section/sub-components/Input/index.tsx +69 -0
  253. package/data/section-templates/category-list-section/sub-components/Input/styles.css +162 -0
  254. package/data/section-templates/category-list-section/sub-components/Pagination/index.tsx +107 -0
  255. package/data/section-templates/category-list-section/sub-components/Pagination/styles.css +88 -0
  256. package/data/section-templates/category-list-section/sub-components/ProductCard/index.tsx +276 -0
  257. package/data/section-templates/category-list-section/sub-components/ProductCard/styles.css +99 -0
  258. package/data/section-templates/category-list-section/sub-components/Select/index.tsx +86 -0
  259. package/data/section-templates/category-list-section/sub-components/Select/styles.css +110 -0
  260. package/data/section-templates/category-list-section/sub-components/SpinnerIcon/index.tsx +10 -0
  261. package/data/section-templates/category-list-section/sub-components/SpinnerIcon/styles.css +8 -0
  262. package/data/section-templates/category-list-section/sub-components/Tag/index.tsx +21 -0
  263. package/data/section-templates/category-list-section/sub-components/Tag/styles.css +30 -0
  264. package/data/section-templates/category-list-section/sub-components/VariantBadge/index.tsx +153 -0
  265. package/data/section-templates/category-list-section/sub-components/VariantBadge/styles.css +47 -0
  266. package/data/section-templates/category-list-section/sub-components/icons/index.tsx +981 -0
  267. package/data/section-templates/category-list-section/types.ts +29 -0
  268. package/data/section-templates/category-list-section/utils/cx.ts +4 -0
  269. package/data/section-templates/category-list-section/utils/media.ts +36 -0
  270. package/data/section-templates/category-list-section/utils/pagination.ts +29 -0
  271. package/data/section-templates/category-list-section/utils/toast.ts +5 -0
  272. package/data/section-templates/component-renderer/_meta.json +4 -0
  273. package/data/section-templates/component-renderer/additional/Features/index.tsx +25 -0
  274. package/data/section-templates/component-renderer/additional/Features/styles.css +39 -0
  275. package/data/section-templates/component-renderer/additional/Features/types.ts +4 -0
  276. package/data/section-templates/component-renderer/additional/ProductDetail/index.tsx +92 -0
  277. package/data/section-templates/component-renderer/additional/ProductDetail/styles.css +58 -0
  278. package/data/section-templates/component-renderer/additional/ProductDetail/types.ts +11 -0
  279. package/data/section-templates/component-renderer/global-types.ts +13 -0
  280. package/data/section-templates/component-renderer/hooks/useToast.ts +27 -0
  281. package/data/section-templates/component-renderer/ikas-config-snippet.json +44 -0
  282. package/data/section-templates/component-renderer/index.tsx +53 -0
  283. package/data/section-templates/component-renderer/styles.css +6 -0
  284. package/data/section-templates/component-renderer/sub-components/Breadcrumb/index.tsx +57 -0
  285. package/data/section-templates/component-renderer/sub-components/Breadcrumb/styles.css +49 -0
  286. package/data/section-templates/component-renderer/sub-components/Toast/index.tsx +257 -0
  287. package/data/section-templates/component-renderer/sub-components/Toast/styles.css +3 -0
  288. package/data/section-templates/component-renderer/sub-components/icons/index.tsx +981 -0
  289. package/data/section-templates/component-renderer/types.ts +5 -0
  290. package/data/section-templates/component-renderer/utils/cx.ts +4 -0
  291. package/data/section-templates/email-verification-section/_meta.json +4 -0
  292. package/data/section-templates/email-verification-section/ikas-config-snippet.json +143 -0
  293. package/data/section-templates/email-verification-section/index.tsx +168 -0
  294. package/data/section-templates/email-verification-section/styles.css +118 -0
  295. package/data/section-templates/email-verification-section/sub-components/Button/index.tsx +52 -0
  296. package/data/section-templates/email-verification-section/sub-components/Button/styles.css +114 -0
  297. package/data/section-templates/email-verification-section/sub-components/FormItem/index.tsx +66 -0
  298. package/data/section-templates/email-verification-section/sub-components/FormItem/styles.css +38 -0
  299. package/data/section-templates/email-verification-section/sub-components/Input/index.tsx +69 -0
  300. package/data/section-templates/email-verification-section/sub-components/Input/styles.css +162 -0
  301. package/data/section-templates/email-verification-section/sub-components/SpinnerIcon/index.tsx +10 -0
  302. package/data/section-templates/email-verification-section/sub-components/SpinnerIcon/styles.css +8 -0
  303. package/data/section-templates/email-verification-section/sub-components/icons/index.tsx +981 -0
  304. package/data/section-templates/email-verification-section/types.ts +16 -0
  305. package/data/section-templates/email-verification-section/utils/cx.ts +4 -0
  306. package/data/section-templates/favorites/_meta.json +4 -0
  307. package/data/section-templates/favorites/ikas-config-snippet.json +72 -0
  308. package/data/section-templates/favorites/index.tsx +66 -0
  309. package/data/section-templates/favorites/styles.css +45 -0
  310. package/data/section-templates/favorites/sub-components/icons/index.tsx +981 -0
  311. package/data/section-templates/favorites/types.ts +10 -0
  312. package/data/section-templates/favorites/utils/cx.ts +4 -0
  313. package/data/section-templates/features-section/_meta.json +4 -0
  314. package/data/section-templates/features-section/children/FeatureItem/ikas-config-snippet.json +21 -0
  315. package/data/section-templates/features-section/children/FeatureItem/index.tsx +27 -0
  316. package/data/section-templates/features-section/children/FeatureItem/styles.css +19 -0
  317. package/data/section-templates/features-section/children/FeatureItem/types.ts +6 -0
  318. package/data/section-templates/features-section/ikas-config-snippet.json +25 -0
  319. package/data/section-templates/features-section/index.tsx +25 -0
  320. package/data/section-templates/features-section/styles.css +39 -0
  321. package/data/section-templates/features-section/types.ts +4 -0
  322. package/data/section-templates/footer-section/_meta.json +4 -0
  323. package/data/section-templates/footer-section/children/SocialMediaIcon/ikas-config-snippet.json +21 -0
  324. package/data/section-templates/footer-section/children/SocialMediaIcon/index.tsx +26 -0
  325. package/data/section-templates/footer-section/children/SocialMediaIcon/styles.css +17 -0
  326. package/data/section-templates/footer-section/children/SocialMediaIcon/types.ts +6 -0
  327. package/data/section-templates/footer-section/ikas-config-snippet.json +108 -0
  328. package/data/section-templates/footer-section/index.tsx +154 -0
  329. package/data/section-templates/footer-section/styles.css +175 -0
  330. package/data/section-templates/footer-section/sub-components/icons/index.tsx +981 -0
  331. package/data/section-templates/footer-section/types.ts +14 -0
  332. package/data/section-templates/footer-section/utils/cx.ts +4 -0
  333. package/data/section-templates/forgot-password-section/_meta.json +4 -0
  334. package/data/section-templates/forgot-password-section/components/ForgotPasswordForm/index.tsx +129 -0
  335. package/data/section-templates/forgot-password-section/components/ForgotPasswordForm/styles.css +0 -0
  336. package/data/section-templates/forgot-password-section/hooks/useRedirectIfLoggedIn.ts +35 -0
  337. package/data/section-templates/forgot-password-section/ikas-config-snippet.json +117 -0
  338. package/data/section-templates/forgot-password-section/index.tsx +30 -0
  339. package/data/section-templates/forgot-password-section/styles.css +85 -0
  340. package/data/section-templates/forgot-password-section/sub-components/Button/index.tsx +52 -0
  341. package/data/section-templates/forgot-password-section/sub-components/Button/styles.css +114 -0
  342. package/data/section-templates/forgot-password-section/sub-components/FormItem/index.tsx +66 -0
  343. package/data/section-templates/forgot-password-section/sub-components/FormItem/styles.css +38 -0
  344. package/data/section-templates/forgot-password-section/sub-components/Input/index.tsx +69 -0
  345. package/data/section-templates/forgot-password-section/sub-components/Input/styles.css +162 -0
  346. package/data/section-templates/forgot-password-section/sub-components/PageLoader/index.tsx +14 -0
  347. package/data/section-templates/forgot-password-section/sub-components/PageLoader/styles.css +12 -0
  348. package/data/section-templates/forgot-password-section/sub-components/SpinnerIcon/index.tsx +10 -0
  349. package/data/section-templates/forgot-password-section/sub-components/SpinnerIcon/styles.css +8 -0
  350. package/data/section-templates/forgot-password-section/sub-components/icons/index.tsx +981 -0
  351. package/data/section-templates/forgot-password-section/types.ts +12 -0
  352. package/data/section-templates/forgot-password-section/utils/cx.ts +4 -0
  353. package/data/section-templates/header-section/_meta.json +4 -0
  354. package/data/section-templates/header-section/children/Announcements/ikas-config-snippet.json +62 -0
  355. package/data/section-templates/header-section/children/Announcements/index.tsx +91 -0
  356. package/data/section-templates/header-section/children/Announcements/styles.css +45 -0
  357. package/data/section-templates/header-section/children/Announcements/types.ts +7 -0
  358. package/data/section-templates/header-section/children/CookieBar/ikas-config-snippet.json +79 -0
  359. package/data/section-templates/header-section/children/CookieBar/index.tsx +78 -0
  360. package/data/section-templates/header-section/children/CookieBar/styles.css +111 -0
  361. package/data/section-templates/header-section/children/CookieBar/types.ts +9 -0
  362. package/data/section-templates/header-section/children/Navbar/components/CartSidebar/index.tsx +203 -0
  363. package/data/section-templates/header-section/children/Navbar/components/CartSidebar/styles.css +175 -0
  364. package/data/section-templates/header-section/children/Navbar/components/MobileMenu/index.tsx +198 -0
  365. package/data/section-templates/header-section/children/Navbar/components/MobileMenu/styles.css +122 -0
  366. package/data/section-templates/header-section/children/Navbar/components/NavItem/index.tsx +65 -0
  367. package/data/section-templates/header-section/children/Navbar/components/SearchModal/index.tsx +267 -0
  368. package/data/section-templates/header-section/children/Navbar/components/SearchModal/styles.css +182 -0
  369. package/data/section-templates/header-section/children/Navbar/ikas-config-snippet.json +315 -0
  370. package/data/section-templates/header-section/children/Navbar/index.tsx +250 -0
  371. package/data/section-templates/header-section/children/Navbar/styles.css +243 -0
  372. package/data/section-templates/header-section/children/Navbar/types.ts +36 -0
  373. package/data/section-templates/header-section/global-types.ts +13 -0
  374. package/data/section-templates/header-section/hooks/useScrollLock.ts +20 -0
  375. package/data/section-templates/header-section/hooks/useToast.ts +27 -0
  376. package/data/section-templates/header-section/ikas-config-snippet.json +44 -0
  377. package/data/section-templates/header-section/index.tsx +53 -0
  378. package/data/section-templates/header-section/styles.css +6 -0
  379. package/data/section-templates/header-section/sub-components/Button/index.tsx +52 -0
  380. package/data/section-templates/header-section/sub-components/Button/styles.css +114 -0
  381. package/data/section-templates/header-section/sub-components/CartItem/components/BundleProductItem/index.tsx +59 -0
  382. package/data/section-templates/header-section/sub-components/CartItem/components/BundleProductItem/styles.css +24 -0
  383. package/data/section-templates/header-section/sub-components/CartItem/components/BundleProducts/index.tsx +55 -0
  384. package/data/section-templates/header-section/sub-components/CartItem/components/BundleProducts/styles.css +30 -0
  385. package/data/section-templates/header-section/sub-components/CartItem/components/ItemOptions/index.tsx +31 -0
  386. package/data/section-templates/header-section/sub-components/CartItem/components/ItemOptions/styles.css +6 -0
  387. package/data/section-templates/header-section/sub-components/CartItem/components/OptionValueDisplay/index.tsx +79 -0
  388. package/data/section-templates/header-section/sub-components/CartItem/components/OptionValueDisplay/styles.css +28 -0
  389. package/data/section-templates/header-section/sub-components/CartItem/index.tsx +216 -0
  390. package/data/section-templates/header-section/sub-components/CartItem/styles.css +170 -0
  391. package/data/section-templates/header-section/sub-components/Input/index.tsx +69 -0
  392. package/data/section-templates/header-section/sub-components/Input/styles.css +162 -0
  393. package/data/section-templates/header-section/sub-components/ProductCard/index.tsx +276 -0
  394. package/data/section-templates/header-section/sub-components/ProductCard/styles.css +99 -0
  395. package/data/section-templates/header-section/sub-components/QuantitySelector/index.tsx +41 -0
  396. package/data/section-templates/header-section/sub-components/QuantitySelector/styles.css +51 -0
  397. package/data/section-templates/header-section/sub-components/SpinnerIcon/index.tsx +10 -0
  398. package/data/section-templates/header-section/sub-components/SpinnerIcon/styles.css +8 -0
  399. package/data/section-templates/header-section/sub-components/Tag/index.tsx +21 -0
  400. package/data/section-templates/header-section/sub-components/Tag/styles.css +30 -0
  401. package/data/section-templates/header-section/sub-components/Toast/index.tsx +257 -0
  402. package/data/section-templates/header-section/sub-components/Toast/styles.css +3 -0
  403. package/data/section-templates/header-section/sub-components/icons/index.tsx +981 -0
  404. package/data/section-templates/header-section/types.ts +5 -0
  405. package/data/section-templates/header-section/utils/cx.ts +4 -0
  406. package/data/section-templates/header-section/utils/media.ts +36 -0
  407. package/data/section-templates/header-section/utils/toast.ts +5 -0
  408. package/data/section-templates/hero-slider-section/_meta.json +4 -0
  409. package/data/section-templates/hero-slider-section/children/HeroSliderItem/ikas-config-snippet.json +239 -0
  410. package/data/section-templates/hero-slider-section/children/HeroSliderItem/index.tsx +231 -0
  411. package/data/section-templates/hero-slider-section/children/HeroSliderItem/styles.css +152 -0
  412. package/data/section-templates/hero-slider-section/children/HeroSliderItem/types.ts +33 -0
  413. package/data/section-templates/hero-slider-section/global-types.ts +13 -0
  414. package/data/section-templates/hero-slider-section/ikas-config-snippet.json +67 -0
  415. package/data/section-templates/hero-slider-section/index.tsx +110 -0
  416. package/data/section-templates/hero-slider-section/styles.css +129 -0
  417. package/data/section-templates/hero-slider-section/sub-components/SliderArrow/index.tsx +26 -0
  418. package/data/section-templates/hero-slider-section/sub-components/SliderArrow/styles.css +24 -0
  419. package/data/section-templates/hero-slider-section/sub-components/icons/index.tsx +981 -0
  420. package/data/section-templates/hero-slider-section/types.ts +8 -0
  421. package/data/section-templates/hero-slider-section/utils/cx.ts +4 -0
  422. package/data/section-templates/hero-slider-section/utils/media.ts +36 -0
  423. package/data/section-templates/image-handling/_meta.json +4 -0
  424. package/data/section-templates/image-handling/components/ProductGallery/index.tsx +316 -0
  425. package/data/section-templates/image-handling/components/ProductGallery/styles.css +213 -0
  426. package/data/section-templates/image-handling/global-types.ts +13 -0
  427. package/data/section-templates/image-handling/ikas-config-snippet.json +80 -0
  428. package/data/section-templates/image-handling/index.tsx +92 -0
  429. package/data/section-templates/image-handling/styles.css +58 -0
  430. package/data/section-templates/image-handling/sub-components/Breadcrumb/index.tsx +57 -0
  431. package/data/section-templates/image-handling/sub-components/Breadcrumb/styles.css +49 -0
  432. package/data/section-templates/image-handling/sub-components/SliderArrow/index.tsx +26 -0
  433. package/data/section-templates/image-handling/sub-components/SliderArrow/styles.css +24 -0
  434. package/data/section-templates/image-handling/sub-components/icons/index.tsx +981 -0
  435. package/data/section-templates/image-handling/types.ts +11 -0
  436. package/data/section-templates/image-handling/utils/cx.ts +4 -0
  437. package/data/section-templates/image-handling/utils/media.ts +36 -0
  438. package/data/section-templates/login-section/_meta.json +4 -0
  439. package/data/section-templates/login-section/components/LoginForm/index.tsx +181 -0
  440. package/data/section-templates/login-section/components/LoginForm/styles.css +0 -0
  441. package/data/section-templates/login-section/hooks/useRedirectIfLoggedIn.ts +35 -0
  442. package/data/section-templates/login-section/ikas-config-snippet.json +169 -0
  443. package/data/section-templates/login-section/index.tsx +37 -0
  444. package/data/section-templates/login-section/styles.css +129 -0
  445. package/data/section-templates/login-section/sub-components/Button/index.tsx +52 -0
  446. package/data/section-templates/login-section/sub-components/Button/styles.css +114 -0
  447. package/data/section-templates/login-section/sub-components/FormItem/index.tsx +66 -0
  448. package/data/section-templates/login-section/sub-components/FormItem/styles.css +38 -0
  449. package/data/section-templates/login-section/sub-components/Input/index.tsx +69 -0
  450. package/data/section-templates/login-section/sub-components/Input/styles.css +162 -0
  451. package/data/section-templates/login-section/sub-components/PageLoader/index.tsx +14 -0
  452. package/data/section-templates/login-section/sub-components/PageLoader/styles.css +12 -0
  453. package/data/section-templates/login-section/sub-components/SocialLoginButton/index.tsx +24 -0
  454. package/data/section-templates/login-section/sub-components/SocialLoginButton/styles.css +19 -0
  455. package/data/section-templates/login-section/sub-components/SpinnerIcon/index.tsx +10 -0
  456. package/data/section-templates/login-section/sub-components/SpinnerIcon/styles.css +8 -0
  457. package/data/section-templates/login-section/sub-components/icons/index.tsx +981 -0
  458. package/data/section-templates/login-section/types.ts +17 -0
  459. package/data/section-templates/login-section/utils/cx.ts +4 -0
  460. package/data/section-templates/navigation/_meta.json +4 -0
  461. package/data/section-templates/navigation/components/CartSidebar/index.tsx +203 -0
  462. package/data/section-templates/navigation/components/CartSidebar/styles.css +175 -0
  463. package/data/section-templates/navigation/components/MobileMenu/index.tsx +198 -0
  464. package/data/section-templates/navigation/components/MobileMenu/styles.css +122 -0
  465. package/data/section-templates/navigation/components/NavItem/index.tsx +65 -0
  466. package/data/section-templates/navigation/components/SearchModal/index.tsx +267 -0
  467. package/data/section-templates/navigation/components/SearchModal/styles.css +182 -0
  468. package/data/section-templates/navigation/global-types.ts +13 -0
  469. package/data/section-templates/navigation/hooks/useScrollLock.ts +20 -0
  470. package/data/section-templates/navigation/ikas-config-snippet.json +315 -0
  471. package/data/section-templates/navigation/index.tsx +250 -0
  472. package/data/section-templates/navigation/styles.css +243 -0
  473. package/data/section-templates/navigation/sub-components/Button/index.tsx +52 -0
  474. package/data/section-templates/navigation/sub-components/Button/styles.css +114 -0
  475. package/data/section-templates/navigation/sub-components/CartItem/components/BundleProductItem/index.tsx +59 -0
  476. package/data/section-templates/navigation/sub-components/CartItem/components/BundleProductItem/styles.css +24 -0
  477. package/data/section-templates/navigation/sub-components/CartItem/components/BundleProducts/index.tsx +55 -0
  478. package/data/section-templates/navigation/sub-components/CartItem/components/BundleProducts/styles.css +30 -0
  479. package/data/section-templates/navigation/sub-components/CartItem/components/ItemOptions/index.tsx +31 -0
  480. package/data/section-templates/navigation/sub-components/CartItem/components/ItemOptions/styles.css +6 -0
  481. package/data/section-templates/navigation/sub-components/CartItem/components/OptionValueDisplay/index.tsx +79 -0
  482. package/data/section-templates/navigation/sub-components/CartItem/components/OptionValueDisplay/styles.css +28 -0
  483. package/data/section-templates/navigation/sub-components/CartItem/index.tsx +216 -0
  484. package/data/section-templates/navigation/sub-components/CartItem/styles.css +170 -0
  485. package/data/section-templates/navigation/sub-components/Input/index.tsx +69 -0
  486. package/data/section-templates/navigation/sub-components/Input/styles.css +162 -0
  487. package/data/section-templates/navigation/sub-components/ProductCard/index.tsx +276 -0
  488. package/data/section-templates/navigation/sub-components/ProductCard/styles.css +99 -0
  489. package/data/section-templates/navigation/sub-components/QuantitySelector/index.tsx +41 -0
  490. package/data/section-templates/navigation/sub-components/QuantitySelector/styles.css +51 -0
  491. package/data/section-templates/navigation/sub-components/SpinnerIcon/index.tsx +10 -0
  492. package/data/section-templates/navigation/sub-components/SpinnerIcon/styles.css +8 -0
  493. package/data/section-templates/navigation/sub-components/Tag/index.tsx +21 -0
  494. package/data/section-templates/navigation/sub-components/Tag/styles.css +30 -0
  495. package/data/section-templates/navigation/sub-components/icons/index.tsx +981 -0
  496. package/data/section-templates/navigation/types.ts +36 -0
  497. package/data/section-templates/navigation/utils/cx.ts +4 -0
  498. package/data/section-templates/navigation/utils/media.ts +36 -0
  499. package/data/section-templates/navigation/utils/toast.ts +5 -0
  500. package/data/section-templates/not-found-section/_meta.json +4 -0
  501. package/data/section-templates/not-found-section/ikas-config-snippet.json +44 -0
  502. package/data/section-templates/not-found-section/index.tsx +39 -0
  503. package/data/section-templates/not-found-section/styles.css +46 -0
  504. package/data/section-templates/not-found-section/sub-components/Button/index.tsx +52 -0
  505. package/data/section-templates/not-found-section/sub-components/Button/styles.css +114 -0
  506. package/data/section-templates/not-found-section/sub-components/icons/index.tsx +981 -0
  507. package/data/section-templates/not-found-section/types.ts +7 -0
  508. package/data/section-templates/not-found-section/utils/cx.ts +4 -0
  509. package/data/section-templates/product-detail-section/_meta.json +4 -0
  510. package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/components/PayWithIkas/index.tsx +34 -0
  511. package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/components/PayWithIkas/styles.css +4 -0
  512. package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/ikas-config-snippet.json +139 -0
  513. package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/index.tsx +146 -0
  514. package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/styles.css +27 -0
  515. package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/types.ts +17 -0
  516. package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/components/BundleFurnitureRow/index.tsx +164 -0
  517. package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/components/BundleFurnitureSection/index.tsx +134 -0
  518. package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/components/BundleFurnitureSection/styles.css +188 -0
  519. package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/ikas-config-snippet.json +156 -0
  520. package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/index.tsx +61 -0
  521. package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/styles.css +12 -0
  522. package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/types.ts +20 -0
  523. package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/BundleProductItem/index.tsx +169 -0
  524. package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/BundleProductItem/styles.css +141 -0
  525. package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/BundleSkeletonLoading/index.tsx +35 -0
  526. package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/BundleSkeletonLoading/styles.css +85 -0
  527. package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/FurnitureRow/index.tsx +51 -0
  528. package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/FurnitureRow/styles.css +30 -0
  529. package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/FurnitureView/index.tsx +54 -0
  530. package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/components/FurnitureView/styles.css +22 -0
  531. package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/ikas-config-snippet.json +130 -0
  532. package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/index.tsx +101 -0
  533. package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/styles.css +20 -0
  534. package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/types.ts +17 -0
  535. package/data/section-templates/product-detail-section/children/ProductDetailDescription/ikas-config-snippet.json +100 -0
  536. package/data/section-templates/product-detail-section/children/ProductDetailDescription/index.tsx +56 -0
  537. package/data/section-templates/product-detail-section/children/ProductDetailDescription/styles.css +21 -0
  538. package/data/section-templates/product-detail-section/children/ProductDetailDescription/types.ts +12 -0
  539. package/data/section-templates/product-detail-section/children/ProductDetailFeatures/ikas-config-snippet.json +69 -0
  540. package/data/section-templates/product-detail-section/children/ProductDetailFeatures/index.tsx +40 -0
  541. package/data/section-templates/product-detail-section/children/ProductDetailFeatures/styles.css +17 -0
  542. package/data/section-templates/product-detail-section/children/ProductDetailFeatures/types.ts +9 -0
  543. package/data/section-templates/product-detail-section/children/ProductDetailNameFavorite/ikas-config-snippet.json +72 -0
  544. package/data/section-templates/product-detail-section/children/ProductDetailNameFavorite/index.tsx +66 -0
  545. package/data/section-templates/product-detail-section/children/ProductDetailNameFavorite/styles.css +45 -0
  546. package/data/section-templates/product-detail-section/children/ProductDetailNameFavorite/types.ts +10 -0
  547. package/data/section-templates/product-detail-section/children/ProductDetailOffer/components/OfferCard/index.tsx +209 -0
  548. package/data/section-templates/product-detail-section/children/ProductDetailOffer/components/OfferCard/styles.css +146 -0
  549. package/data/section-templates/product-detail-section/children/ProductDetailOffer/components/OfferSummary/index.tsx +175 -0
  550. package/data/section-templates/product-detail-section/children/ProductDetailOffer/ikas-config-snippet.json +183 -0
  551. package/data/section-templates/product-detail-section/children/ProductDetailOffer/index.tsx +199 -0
  552. package/data/section-templates/product-detail-section/children/ProductDetailOffer/styles.css +211 -0
  553. package/data/section-templates/product-detail-section/children/ProductDetailOffer/types.ts +23 -0
  554. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionCheckbox/index.tsx +52 -0
  555. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionCheckbox/styles.css +19 -0
  556. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionChoice/components/ChoiceBox/index.tsx +60 -0
  557. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionChoice/components/ChoiceBox/styles.css +38 -0
  558. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSelect/index.tsx +102 -0
  559. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSelect/styles.css +34 -0
  560. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSwatch/index.tsx +121 -0
  561. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSwatch/styles.css +87 -0
  562. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionChoice/index.tsx +57 -0
  563. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionColorPicker/index.tsx +54 -0
  564. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionColorPicker/styles.css +0 -0
  565. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionDatePicker/index.tsx +124 -0
  566. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionDatePicker/styles.css +1 -0
  567. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionFile/index.tsx +217 -0
  568. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionFile/styles.css +87 -0
  569. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionRenderer/index.tsx +133 -0
  570. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionText/index.tsx +60 -0
  571. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionText/styles.css +1 -0
  572. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionTextarea/index.tsx +74 -0
  573. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/components/OptionTextarea/styles.css +10 -0
  574. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/ikas-config-snippet.json +159 -0
  575. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/index.tsx +99 -0
  576. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/styles.css +30 -0
  577. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/types.ts +20 -0
  578. package/data/section-templates/product-detail-section/children/ProductDetailPrices/ikas-config-snippet.json +66 -0
  579. package/data/section-templates/product-detail-section/children/ProductDetailPrices/index.tsx +62 -0
  580. package/data/section-templates/product-detail-section/children/ProductDetailPrices/styles.css +32 -0
  581. package/data/section-templates/product-detail-section/children/ProductDetailPrices/types.ts +9 -0
  582. package/data/section-templates/product-detail-section/children/ProductDetailProductGroup/ikas-config-snippet.json +66 -0
  583. package/data/section-templates/product-detail-section/children/ProductDetailProductGroup/index.tsx +74 -0
  584. package/data/section-templates/product-detail-section/children/ProductDetailProductGroup/styles.css +33 -0
  585. package/data/section-templates/product-detail-section/children/ProductDetailProductGroup/types.ts +9 -0
  586. package/data/section-templates/product-detail-section/children/ProductDetailSku/ikas-config-snippet.json +79 -0
  587. package/data/section-templates/product-detail-section/children/ProductDetailSku/index.tsx +38 -0
  588. package/data/section-templates/product-detail-section/children/ProductDetailSku/styles.css +16 -0
  589. package/data/section-templates/product-detail-section/children/ProductDetailSku/types.ts +10 -0
  590. package/data/section-templates/product-detail-section/children/ProductDetailVariant/ikas-config-snippet.json +73 -0
  591. package/data/section-templates/product-detail-section/children/ProductDetailVariant/index.tsx +38 -0
  592. package/data/section-templates/product-detail-section/children/ProductDetailVariant/styles.css +14 -0
  593. package/data/section-templates/product-detail-section/children/ProductDetailVariant/types.ts +11 -0
  594. package/data/section-templates/product-detail-section/components/ProductGallery/index.tsx +316 -0
  595. package/data/section-templates/product-detail-section/components/ProductGallery/styles.css +213 -0
  596. package/data/section-templates/product-detail-section/global-types.ts +13 -0
  597. package/data/section-templates/product-detail-section/hooks/useBundleProducts.ts +75 -0
  598. package/data/section-templates/product-detail-section/hooks/usePayWithIkas.ts +114 -0
  599. package/data/section-templates/product-detail-section/hooks/useScrollLock.ts +20 -0
  600. package/data/section-templates/product-detail-section/ikas-config-snippet.json +80 -0
  601. package/data/section-templates/product-detail-section/index.tsx +92 -0
  602. package/data/section-templates/product-detail-section/styles.css +58 -0
  603. package/data/section-templates/product-detail-section/sub-components/Badge/index.tsx +208 -0
  604. package/data/section-templates/product-detail-section/sub-components/Badge/styles.css +129 -0
  605. package/data/section-templates/product-detail-section/sub-components/Breadcrumb/index.tsx +57 -0
  606. package/data/section-templates/product-detail-section/sub-components/Breadcrumb/styles.css +49 -0
  607. package/data/section-templates/product-detail-section/sub-components/BundleMedia/index.tsx +72 -0
  608. package/data/section-templates/product-detail-section/sub-components/BundleQuantityBox/index.tsx +73 -0
  609. package/data/section-templates/product-detail-section/sub-components/BundleQuantityBox/styles.css +43 -0
  610. package/data/section-templates/product-detail-section/sub-components/Button/index.tsx +52 -0
  611. package/data/section-templates/product-detail-section/sub-components/Button/styles.css +114 -0
  612. package/data/section-templates/product-detail-section/sub-components/Checkbox/index.tsx +42 -0
  613. package/data/section-templates/product-detail-section/sub-components/Checkbox/styles.css +65 -0
  614. package/data/section-templates/product-detail-section/sub-components/CollapsibleGroup/index.tsx +52 -0
  615. package/data/section-templates/product-detail-section/sub-components/CollapsibleGroup/styles.css +51 -0
  616. package/data/section-templates/product-detail-section/sub-components/ColorInput/index.tsx +33 -0
  617. package/data/section-templates/product-detail-section/sub-components/ColorInput/styles.css +53 -0
  618. package/data/section-templates/product-detail-section/sub-components/FormItem/index.tsx +66 -0
  619. package/data/section-templates/product-detail-section/sub-components/FormItem/styles.css +38 -0
  620. package/data/section-templates/product-detail-section/sub-components/ImagePreviewModal/index.tsx +55 -0
  621. package/data/section-templates/product-detail-section/sub-components/ImagePreviewModal/styles.css +50 -0
  622. package/data/section-templates/product-detail-section/sub-components/Input/index.tsx +69 -0
  623. package/data/section-templates/product-detail-section/sub-components/Input/styles.css +162 -0
  624. package/data/section-templates/product-detail-section/sub-components/QuantitySelector/index.tsx +41 -0
  625. package/data/section-templates/product-detail-section/sub-components/QuantitySelector/styles.css +51 -0
  626. package/data/section-templates/product-detail-section/sub-components/Select/index.tsx +86 -0
  627. package/data/section-templates/product-detail-section/sub-components/Select/styles.css +110 -0
  628. package/data/section-templates/product-detail-section/sub-components/SliderArrow/index.tsx +26 -0
  629. package/data/section-templates/product-detail-section/sub-components/SliderArrow/styles.css +24 -0
  630. package/data/section-templates/product-detail-section/sub-components/Tag/index.tsx +21 -0
  631. package/data/section-templates/product-detail-section/sub-components/Tag/styles.css +30 -0
  632. package/data/section-templates/product-detail-section/sub-components/Textarea/index.tsx +45 -0
  633. package/data/section-templates/product-detail-section/sub-components/Textarea/styles.css +82 -0
  634. package/data/section-templates/product-detail-section/sub-components/Toggle/index.tsx +46 -0
  635. package/data/section-templates/product-detail-section/sub-components/Toggle/styles.css +86 -0
  636. package/data/section-templates/product-detail-section/sub-components/VariantBadge/index.tsx +153 -0
  637. package/data/section-templates/product-detail-section/sub-components/VariantBadge/styles.css +47 -0
  638. package/data/section-templates/product-detail-section/sub-components/icons/index.tsx +981 -0
  639. package/data/section-templates/product-detail-section/types.ts +11 -0
  640. package/data/section-templates/product-detail-section/utils/bundle.ts +70 -0
  641. package/data/section-templates/product-detail-section/utils/cx.ts +4 -0
  642. package/data/section-templates/product-detail-section/utils/media.ts +36 -0
  643. package/data/section-templates/product-detail-section/utils/optionPrice.ts +19 -0
  644. package/data/section-templates/product-detail-section/utils/optionSet.ts +17 -0
  645. package/data/section-templates/product-detail-section/utils/toast.ts +5 -0
  646. package/data/section-templates/product-pricing/_meta.json +4 -0
  647. package/data/section-templates/product-pricing/ikas-config-snippet.json +66 -0
  648. package/data/section-templates/product-pricing/index.tsx +62 -0
  649. package/data/section-templates/product-pricing/styles.css +32 -0
  650. package/data/section-templates/product-pricing/sub-components/Tag/index.tsx +21 -0
  651. package/data/section-templates/product-pricing/sub-components/Tag/styles.css +30 -0
  652. package/data/section-templates/product-pricing/types.ts +9 -0
  653. package/data/section-templates/product-reviews-section/_meta.json +4 -0
  654. package/data/section-templates/product-reviews-section/hooks/useScrollLock.ts +20 -0
  655. package/data/section-templates/product-reviews-section/ikas-config-snippet.json +136 -0
  656. package/data/section-templates/product-reviews-section/index.tsx +205 -0
  657. package/data/section-templates/product-reviews-section/styles.css +43 -0
  658. package/data/section-templates/product-reviews-section/sub-components/Button/index.tsx +52 -0
  659. package/data/section-templates/product-reviews-section/sub-components/Button/styles.css +114 -0
  660. package/data/section-templates/product-reviews-section/sub-components/FormItem/index.tsx +66 -0
  661. package/data/section-templates/product-reviews-section/sub-components/FormItem/styles.css +38 -0
  662. package/data/section-templates/product-reviews-section/sub-components/ImagePreviewModal/index.tsx +55 -0
  663. package/data/section-templates/product-reviews-section/sub-components/ImagePreviewModal/styles.css +50 -0
  664. package/data/section-templates/product-reviews-section/sub-components/Input/index.tsx +69 -0
  665. package/data/section-templates/product-reviews-section/sub-components/Input/styles.css +162 -0
  666. package/data/section-templates/product-reviews-section/sub-components/Modal/index.tsx +118 -0
  667. package/data/section-templates/product-reviews-section/sub-components/Modal/styles.css +70 -0
  668. package/data/section-templates/product-reviews-section/sub-components/PageLoader/index.tsx +14 -0
  669. package/data/section-templates/product-reviews-section/sub-components/PageLoader/styles.css +12 -0
  670. package/data/section-templates/product-reviews-section/sub-components/Pagination/index.tsx +107 -0
  671. package/data/section-templates/product-reviews-section/sub-components/Pagination/styles.css +88 -0
  672. package/data/section-templates/product-reviews-section/sub-components/ReviewCard/index.tsx +103 -0
  673. package/data/section-templates/product-reviews-section/sub-components/ReviewCard/styles.css +95 -0
  674. package/data/section-templates/product-reviews-section/sub-components/ReviewForm/index.tsx +115 -0
  675. package/data/section-templates/product-reviews-section/sub-components/ReviewForm/styles.css +11 -0
  676. package/data/section-templates/product-reviews-section/sub-components/ReviewSummary/index.tsx +65 -0
  677. package/data/section-templates/product-reviews-section/sub-components/ReviewSummary/styles.css +86 -0
  678. package/data/section-templates/product-reviews-section/sub-components/SpinnerIcon/index.tsx +10 -0
  679. package/data/section-templates/product-reviews-section/sub-components/SpinnerIcon/styles.css +8 -0
  680. package/data/section-templates/product-reviews-section/sub-components/StarRating/index.tsx +76 -0
  681. package/data/section-templates/product-reviews-section/sub-components/StarRating/styles.css +40 -0
  682. package/data/section-templates/product-reviews-section/sub-components/Textarea/index.tsx +45 -0
  683. package/data/section-templates/product-reviews-section/sub-components/Textarea/styles.css +82 -0
  684. package/data/section-templates/product-reviews-section/sub-components/icons/index.tsx +981 -0
  685. package/data/section-templates/product-reviews-section/types.ts +18 -0
  686. package/data/section-templates/product-reviews-section/utils/cx.ts +4 -0
  687. package/data/section-templates/product-reviews-section/utils/fullName.ts +6 -0
  688. package/data/section-templates/product-reviews-section/utils/pagination.ts +29 -0
  689. package/data/section-templates/product-reviews-section/utils/toast.ts +5 -0
  690. package/data/section-templates/product-slider-section/_meta.json +4 -0
  691. package/data/section-templates/product-slider-section/children/CardProductName/ikas-config-snippet.json +21 -0
  692. package/data/section-templates/product-slider-section/children/CardProductName/index.tsx +25 -0
  693. package/data/section-templates/product-slider-section/children/CardProductName/styles.css +22 -0
  694. package/data/section-templates/product-slider-section/children/CardProductName/types.ts +6 -0
  695. package/data/section-templates/product-slider-section/children/CardProductPrice/ikas-config-snippet.json +15 -0
  696. package/data/section-templates/product-slider-section/children/CardProductPrice/index.tsx +30 -0
  697. package/data/section-templates/product-slider-section/children/CardProductPrice/styles.css +13 -0
  698. package/data/section-templates/product-slider-section/children/CardProductPrice/types.ts +5 -0
  699. package/data/section-templates/product-slider-section/children/CardProductVariants/ikas-config-snippet.json +15 -0
  700. package/data/section-templates/product-slider-section/children/CardProductVariants/index.tsx +10 -0
  701. package/data/section-templates/product-slider-section/children/CardProductVariants/styles.css +1 -0
  702. package/data/section-templates/product-slider-section/children/CardProductVariants/types.ts +5 -0
  703. package/data/section-templates/product-slider-section/global-types.ts +13 -0
  704. package/data/section-templates/product-slider-section/ikas-config-snippet.json +121 -0
  705. package/data/section-templates/product-slider-section/index.tsx +151 -0
  706. package/data/section-templates/product-slider-section/styles.css +105 -0
  707. package/data/section-templates/product-slider-section/sub-components/Badge/index.tsx +208 -0
  708. package/data/section-templates/product-slider-section/sub-components/Badge/styles.css +129 -0
  709. package/data/section-templates/product-slider-section/sub-components/Button/index.tsx +52 -0
  710. package/data/section-templates/product-slider-section/sub-components/Button/styles.css +114 -0
  711. package/data/section-templates/product-slider-section/sub-components/ProductCard/index.tsx +276 -0
  712. package/data/section-templates/product-slider-section/sub-components/ProductCard/styles.css +99 -0
  713. package/data/section-templates/product-slider-section/sub-components/SliderArrow/index.tsx +26 -0
  714. package/data/section-templates/product-slider-section/sub-components/SliderArrow/styles.css +24 -0
  715. package/data/section-templates/product-slider-section/sub-components/SpinnerIcon/index.tsx +10 -0
  716. package/data/section-templates/product-slider-section/sub-components/SpinnerIcon/styles.css +8 -0
  717. package/data/section-templates/product-slider-section/sub-components/Tag/index.tsx +21 -0
  718. package/data/section-templates/product-slider-section/sub-components/Tag/styles.css +30 -0
  719. package/data/section-templates/product-slider-section/sub-components/VariantBadge/index.tsx +153 -0
  720. package/data/section-templates/product-slider-section/sub-components/VariantBadge/styles.css +47 -0
  721. package/data/section-templates/product-slider-section/sub-components/icons/index.tsx +981 -0
  722. package/data/section-templates/product-slider-section/types.ts +16 -0
  723. package/data/section-templates/product-slider-section/utils/cx.ts +4 -0
  724. package/data/section-templates/product-slider-section/utils/media.ts +36 -0
  725. package/data/section-templates/product-slider-section/utils/toast.ts +5 -0
  726. package/data/section-templates/recover-password-section/_meta.json +4 -0
  727. package/data/section-templates/recover-password-section/components/RecoverPasswordForm/index.tsx +133 -0
  728. package/data/section-templates/recover-password-section/components/RecoverPasswordForm/styles.css +0 -0
  729. package/data/section-templates/recover-password-section/hooks/useRedirectIfLoggedIn.ts +35 -0
  730. package/data/section-templates/recover-password-section/ikas-config-snippet.json +111 -0
  731. package/data/section-templates/recover-password-section/index.tsx +30 -0
  732. package/data/section-templates/recover-password-section/styles.css +93 -0
  733. package/data/section-templates/recover-password-section/sub-components/Button/index.tsx +52 -0
  734. package/data/section-templates/recover-password-section/sub-components/Button/styles.css +114 -0
  735. package/data/section-templates/recover-password-section/sub-components/FormItem/index.tsx +66 -0
  736. package/data/section-templates/recover-password-section/sub-components/FormItem/styles.css +38 -0
  737. package/data/section-templates/recover-password-section/sub-components/Input/index.tsx +69 -0
  738. package/data/section-templates/recover-password-section/sub-components/Input/styles.css +162 -0
  739. package/data/section-templates/recover-password-section/sub-components/PageLoader/index.tsx +14 -0
  740. package/data/section-templates/recover-password-section/sub-components/PageLoader/styles.css +12 -0
  741. package/data/section-templates/recover-password-section/sub-components/SpinnerIcon/index.tsx +10 -0
  742. package/data/section-templates/recover-password-section/sub-components/SpinnerIcon/styles.css +8 -0
  743. package/data/section-templates/recover-password-section/sub-components/icons/index.tsx +981 -0
  744. package/data/section-templates/recover-password-section/types.ts +12 -0
  745. package/data/section-templates/recover-password-section/utils/cx.ts +4 -0
  746. package/data/section-templates/register-section/_meta.json +4 -0
  747. package/data/section-templates/register-section/components/RegisterForm/index.tsx +326 -0
  748. package/data/section-templates/register-section/components/RegisterForm/styles.css +0 -0
  749. package/data/section-templates/register-section/hooks/useRedirectIfLoggedIn.ts +35 -0
  750. package/data/section-templates/register-section/ikas-config-snippet.json +244 -0
  751. package/data/section-templates/register-section/index.tsx +30 -0
  752. package/data/section-templates/register-section/styles.css +152 -0
  753. package/data/section-templates/register-section/sub-components/Button/index.tsx +52 -0
  754. package/data/section-templates/register-section/sub-components/Button/styles.css +114 -0
  755. package/data/section-templates/register-section/sub-components/Checkbox/index.tsx +42 -0
  756. package/data/section-templates/register-section/sub-components/Checkbox/styles.css +65 -0
  757. package/data/section-templates/register-section/sub-components/FormItem/index.tsx +66 -0
  758. package/data/section-templates/register-section/sub-components/FormItem/styles.css +38 -0
  759. package/data/section-templates/register-section/sub-components/Input/index.tsx +69 -0
  760. package/data/section-templates/register-section/sub-components/Input/styles.css +162 -0
  761. package/data/section-templates/register-section/sub-components/PageLoader/index.tsx +14 -0
  762. package/data/section-templates/register-section/sub-components/PageLoader/styles.css +12 -0
  763. package/data/section-templates/register-section/sub-components/SocialLoginButton/index.tsx +24 -0
  764. package/data/section-templates/register-section/sub-components/SocialLoginButton/styles.css +19 -0
  765. package/data/section-templates/register-section/sub-components/SpinnerIcon/index.tsx +10 -0
  766. package/data/section-templates/register-section/sub-components/SpinnerIcon/styles.css +8 -0
  767. package/data/section-templates/register-section/sub-components/icons/index.tsx +981 -0
  768. package/data/section-templates/register-section/types.ts +26 -0
  769. package/data/section-templates/register-section/utils/cx.ts +4 -0
  770. package/data/section-templates/rich-text-section/_meta.json +4 -0
  771. package/data/section-templates/rich-text-section/ikas-config-snippet.json +22 -0
  772. package/data/section-templates/rich-text-section/index.tsx +25 -0
  773. package/data/section-templates/rich-text-section/styles.css +51 -0
  774. package/data/section-templates/rich-text-section/types.ts +4 -0
  775. package/data/section-templates/variant-selection/_meta.json +4 -0
  776. package/data/section-templates/variant-selection/ikas-config-snippet.json +73 -0
  777. package/data/section-templates/variant-selection/index.tsx +38 -0
  778. package/data/section-templates/variant-selection/styles.css +14 -0
  779. package/data/section-templates/variant-selection/sub-components/Badge/index.tsx +208 -0
  780. package/data/section-templates/variant-selection/sub-components/Badge/styles.css +129 -0
  781. package/data/section-templates/variant-selection/sub-components/VariantBadge/index.tsx +153 -0
  782. package/data/section-templates/variant-selection/sub-components/VariantBadge/styles.css +47 -0
  783. package/data/section-templates/variant-selection/types.ts +11 -0
  784. package/data/section-templates/variant-selection/utils/cx.ts +4 -0
  785. package/data/storefront-api.json +2 -2024
  786. package/data/storefront-types.json +1 -1
  787. package/dist/index.js +40 -11
  788. package/dist/index.js.map +1 -1
  789. package/package.json +5 -3
  790. package/data/section-templates.json +0 -928
@@ -0,0 +1,14 @@
1
+ import type { IkasImage, IkasNavigationLinkList } from "@ikas/bp-storefront";
2
+
3
+ export interface Props {
4
+ logo?: IkasImage | null;
5
+ description?: string;
6
+ copyrightText?: string;
7
+ footerLinks?: IkasNavigationLinkList;
8
+ linkColor?: string;
9
+ linkHoverColor?: string;
10
+ contactTitle?: string;
11
+ contactEmail?: string;
12
+ contactPhone?: string;
13
+ socialMediaIcons?: any;
14
+ }
@@ -0,0 +1,4 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2
+ export function cx(...classes: any[]): string {
3
+ return classes.filter(Boolean).join(" ");
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "title": "Forgot Password Section",
3
+ "description": "Password recovery request form. Sends reset email via customerStore.sendRecoverPasswordEmail(). Includes email validation and success/error states."
4
+ }
@@ -0,0 +1,129 @@
1
+ import {
2
+ getForgotPasswordForm,
3
+ setForgotPasswordFormEmail,
4
+ submitForgotPasswordForm,
5
+ Router,
6
+ } from "@ikas/bp-storefront";
7
+ import { observer } from "@ikas/component-utils";
8
+
9
+ import { Props } from "../../types";
10
+ import FormItem from "../../../../sub-components/FormItem";
11
+ import Input from "../../../../sub-components/Input";
12
+ import Button from "../../../../sub-components/Button";
13
+
14
+ interface ForgotPasswordFormProps extends Props {
15
+ forgotForm: ReturnType<typeof getForgotPasswordForm>;
16
+ }
17
+
18
+ const ForgotPasswordForm = observer(function ForgotPasswordForm({
19
+ forgotForm,
20
+ title = "Parolamı Unuttum",
21
+ subtitle = "Şifrenizi sıfırlamanız için size bir e-posta göndereceğiz",
22
+ emailLabel = "E-posta",
23
+ emailPlaceholder = "yildo@ikas.com",
24
+ submitButtonText = "Gönder",
25
+ submittingButtonText = "Gönderiliyor...",
26
+ successTitle = "Parolamı Unuttum",
27
+ successMessage = "Size bir e-posta gönderdik.",
28
+ successButtonText = "Alışverişe Başla",
29
+ backToLoginText = "Giriş Sayfasına Dön",
30
+ }: ForgotPasswordFormProps) {
31
+ const handleSubmit = async (e: Event) => {
32
+ e.preventDefault();
33
+ await submitForgotPasswordForm(forgotForm);
34
+ };
35
+
36
+ if (forgotForm.isSuccess) {
37
+ return (
38
+ <div className="forgot-password__container">
39
+ <div className="forgot-password__header">
40
+ <h1 className="forgot-password__title text-xl-medium md:display-xs-medium">
41
+ {successTitle}
42
+ </h1>
43
+ <p className="forgot-password__subtitle text-sm-regular">
44
+ {successMessage}
45
+ </p>
46
+ </div>
47
+
48
+ <Button
49
+ variant="primary"
50
+ size="s"
51
+ className="forgot-password__submit-btn"
52
+ onClick={() => Router.navigate("/")}
53
+ >
54
+ {successButtonText}
55
+ </Button>
56
+
57
+ <div className="forgot-password__footer">
58
+ <button
59
+ type="button"
60
+ className="forgot-password__back-link text-sm-medium"
61
+ onClick={() => Router.navigateToPage("LOGIN")}
62
+ >
63
+ {backToLoginText}
64
+ </button>
65
+ </div>
66
+ </div>
67
+ );
68
+ }
69
+
70
+ return (
71
+ <div className="forgot-password__container">
72
+ <div className="forgot-password__header">
73
+ <h1 className="forgot-password__title text-xl-medium md:display-xs-medium">{title}</h1>
74
+ <p className="forgot-password__subtitle text-sm-regular">{subtitle}</p>
75
+ </div>
76
+
77
+ {forgotForm.isFailure && forgotForm.responseMessage && (
78
+ <div className="forgot-password__error-banner text-sm-regular">
79
+ {forgotForm.responseMessage}
80
+ </div>
81
+ )}
82
+
83
+ <form className="forgot-password__form" onSubmit={handleSubmit}>
84
+ <FormItem
85
+ label={emailLabel}
86
+ htmlFor="forgot-email"
87
+ status={forgotForm.email?.hasError ? "error" : "default"}
88
+ helper={
89
+ forgotForm.email?.hasError ? forgotForm.email.message : undefined
90
+ }
91
+ >
92
+ <Input
93
+ id="forgot-email"
94
+ type="email"
95
+ placeholder={emailPlaceholder}
96
+ value={forgotForm.email?.value ?? ""}
97
+ onInput={(e: Event) =>
98
+ setForgotPasswordFormEmail(
99
+ forgotForm,
100
+ (e.target as HTMLInputElement).value,
101
+ )
102
+ }
103
+ />
104
+ </FormItem>
105
+
106
+ <Button
107
+ variant="primary"
108
+ size="s"
109
+ className="forgot-password__submit-btn"
110
+ disabled={forgotForm.isSubmitting}
111
+ >
112
+ {forgotForm.isSubmitting ? submittingButtonText : submitButtonText}
113
+ </Button>
114
+ </form>
115
+
116
+ <div className="forgot-password__footer">
117
+ <button
118
+ type="button"
119
+ className="forgot-password__back-link text-sm-medium"
120
+ onClick={() => Router.navigateToPage("LOGIN")}
121
+ >
122
+ {backToLoginText}
123
+ </button>
124
+ </div>
125
+ </div>
126
+ );
127
+ });
128
+
129
+ export default ForgotPasswordForm;
@@ -0,0 +1,35 @@
1
+ import { useEffect, useState } from "preact/hooks";
2
+ import {
3
+ customerStore,
4
+ waitForCustomerStoreInit,
5
+ Router,
6
+ } from "@ikas/bp-storefront";
7
+
8
+ /**
9
+ * Redirects logged-in users to the account page.
10
+ * Returns `true` while the check is in progress (use to hide content and prevent flash).
11
+ * Calls `onGuest` only if the user is not logged in.
12
+ */
13
+ export function useRedirectIfLoggedIn(onGuest: () => void): boolean {
14
+ const [isChecking, setIsChecking] = useState(true);
15
+
16
+ useEffect(() => {
17
+ let isMounted = true;
18
+
19
+ waitForCustomerStoreInit(customerStore).then(() => {
20
+ if (!isMounted) return;
21
+ if (customerStore.customer) {
22
+ Router.navigateToPage("ACCOUNT");
23
+ return;
24
+ }
25
+ onGuest();
26
+ setIsChecking(false);
27
+ });
28
+
29
+ return () => {
30
+ isMounted = false;
31
+ };
32
+ }, []);
33
+
34
+ return isChecking;
35
+ }
@@ -0,0 +1,117 @@
1
+ {
2
+ "id": "{{PROJECT_ID}}-forgot-password",
3
+ "name": "ForgotPassword",
4
+ "type": "section",
5
+ "entry": "./src/components/ForgotPassword/index.tsx",
6
+ "styles": "./src/components/ForgotPassword/styles.css",
7
+ "props": [
8
+ {
9
+ "name": "title",
10
+ "displayName": "Başlık",
11
+ "type": "TEXT",
12
+ "required": false,
13
+ "defaultValue": "Parolamı Unuttum",
14
+ "groupId": "content"
15
+ },
16
+ {
17
+ "name": "subtitle",
18
+ "displayName": "Açıklama",
19
+ "type": "TEXT",
20
+ "required": false,
21
+ "defaultValue": "Şifrenizi sıfırlamanız için size bir e-posta göndereceğiz",
22
+ "groupId": "content"
23
+ },
24
+ {
25
+ "name": "emailLabel",
26
+ "displayName": "E-posta Etiketi",
27
+ "type": "TEXT",
28
+ "required": false,
29
+ "defaultValue": "E-posta",
30
+ "groupId": "email"
31
+ },
32
+ {
33
+ "name": "emailPlaceholder",
34
+ "displayName": "E-posta Yer Tutucu",
35
+ "type": "TEXT",
36
+ "required": false,
37
+ "defaultValue": "ikas@ikas.com",
38
+ "groupId": "email"
39
+ },
40
+ {
41
+ "name": "submitButtonText",
42
+ "displayName": "Gönder Butonu",
43
+ "type": "TEXT",
44
+ "required": false,
45
+ "defaultValue": "Gönder",
46
+ "groupId": "buttons"
47
+ },
48
+ {
49
+ "name": "submittingButtonText",
50
+ "displayName": "Gönderiliyor Butonu",
51
+ "type": "TEXT",
52
+ "required": false,
53
+ "defaultValue": "Gönderiliyor...",
54
+ "groupId": "buttons"
55
+ },
56
+ {
57
+ "name": "backToLoginText",
58
+ "displayName": "Girişe Dön Bağlantısı",
59
+ "type": "TEXT",
60
+ "required": false,
61
+ "defaultValue": "Giriş Sayfasına Dön",
62
+ "groupId": "buttons"
63
+ },
64
+ {
65
+ "name": "successTitle",
66
+ "displayName": "Başarı Başlığı",
67
+ "type": "TEXT",
68
+ "required": false,
69
+ "defaultValue": "Parolamı Unuttum",
70
+ "groupId": "success"
71
+ },
72
+ {
73
+ "name": "successMessage",
74
+ "displayName": "Başarı Mesajı",
75
+ "type": "TEXT",
76
+ "required": false,
77
+ "defaultValue": "Size bir e-posta gönderdik.",
78
+ "groupId": "success"
79
+ },
80
+ {
81
+ "name": "successButtonText",
82
+ "displayName": "Başarı Butonu",
83
+ "type": "TEXT",
84
+ "required": false,
85
+ "defaultValue": "Alışverişe Başla",
86
+ "groupId": "success"
87
+ }
88
+ ],
89
+ "propGroups": [
90
+ {
91
+ "id": "success",
92
+ "name": "Başarı Ekranı",
93
+ "description": "E-posta gönderildikten sonra gösterilen başarı mesajları"
94
+ },
95
+ {
96
+ "id": "content",
97
+ "name": "İçerik",
98
+ "description": "Sayfa başlığı ve açıklama metni"
99
+ },
100
+ {
101
+ "id": "formFields",
102
+ "name": "Form Alanları",
103
+ "description": "E-posta alanı etiket ve placeholder metinleri",
104
+ "children": [
105
+ {
106
+ "id": "email",
107
+ "name": "E-posta"
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "id": "buttons",
113
+ "name": "Butonlar",
114
+ "description": "Buton ve link metinleri"
115
+ }
116
+ ]
117
+ }
@@ -0,0 +1,30 @@
1
+ import {
2
+ customerStore,
3
+ getForgotPasswordForm,
4
+ initForgotPasswordForm,
5
+ } from "@ikas/bp-storefront";
6
+ import { useRedirectIfLoggedIn } from "../../hooks/useRedirectIfLoggedIn";
7
+
8
+ import { Props } from "./types";
9
+ import ForgotPasswordForm from "./components/ForgotPasswordForm";
10
+ import PageLoader from "../../sub-components/PageLoader";
11
+
12
+ export function ForgotPassword(props: Props) {
13
+ const forgotForm = getForgotPasswordForm(customerStore);
14
+
15
+ const isChecking = useRedirectIfLoggedIn(() => {
16
+ initForgotPasswordForm(forgotForm);
17
+ });
18
+
19
+ if (isChecking) return <PageLoader />;
20
+
21
+ return (
22
+ <section className="forgot-password">
23
+ <div className="forgot-password__wrapper kombos-container">
24
+ <ForgotPasswordForm forgotForm={forgotForm} {...props} />
25
+ </div>
26
+ </section>
27
+ );
28
+ }
29
+
30
+ export default ForgotPassword;
@@ -0,0 +1,85 @@
1
+ .forgot-password {
2
+ width: 100%;
3
+ }
4
+
5
+ .forgot-password__wrapper {
6
+ display: flex;
7
+ justify-content: center;
8
+ align-items: flex-start;
9
+ padding-top: 1rem;
10
+ padding-bottom: 1rem;
11
+ }
12
+
13
+ .forgot-password__container {
14
+ width: 100%;
15
+ max-width: 29rem;
16
+ display: flex;
17
+ flex-direction: column;
18
+ gap: 2rem;
19
+ }
20
+
21
+ .forgot-password__header {
22
+ display: flex;
23
+ flex-direction: column;
24
+ gap: 1rem;
25
+ text-align: center;
26
+ }
27
+
28
+ .forgot-password__title {
29
+ color: var(--kombos-gray-900);
30
+ margin: 0;
31
+ }
32
+
33
+ .forgot-password__subtitle {
34
+ color: var(--kombos-gray-700);
35
+ margin: 0;
36
+ }
37
+
38
+ .forgot-password__error-banner {
39
+ padding: 0.75rem 1rem;
40
+ background: rgba(255, 60, 72, 0.08);
41
+ border: 1px solid var(--kombos-error);
42
+ border-radius: 6px;
43
+ color: var(--kombos-error);
44
+ }
45
+
46
+ .forgot-password__form {
47
+ display: flex;
48
+ flex-direction: column;
49
+ gap: 1.5rem;
50
+ }
51
+
52
+ .forgot-password__submit-btn {
53
+ width: 100%;
54
+ }
55
+
56
+ .forgot-password__footer {
57
+ text-align: center;
58
+ }
59
+
60
+ .forgot-password__back-link {
61
+ background: none;
62
+ border: none;
63
+ padding: 0;
64
+ color: var(--kombos-gray-700);
65
+ cursor: pointer;
66
+ text-decoration: underline;
67
+ }
68
+
69
+ .forgot-password__back-link:hover {
70
+ color: var(--kombos-gray-900);
71
+ }
72
+
73
+ @media (min-width: 768px) {
74
+ .forgot-password__wrapper {
75
+ padding-top: 1.5rem;
76
+ padding-bottom: 1.5rem;
77
+ }
78
+ }
79
+
80
+ @media (min-width: 1024px) {
81
+ .forgot-password__wrapper {
82
+ padding-top: 2rem;
83
+ padding-bottom: 2rem;
84
+ }
85
+ }
@@ -0,0 +1,52 @@
1
+ import type { ButtonHTMLAttributes, ComponentChildren } from "preact";
2
+ import { SpinnerSVG } from "../icons";
3
+ import { cx } from "../../utils/cx";
4
+
5
+ type Variant = "primary" | "secondary" | "dangerous";
6
+ type Size = "xs" | "s" | "m";
7
+
8
+ export interface ButtonProps extends Omit<
9
+ ButtonHTMLAttributes<HTMLButtonElement>,
10
+ "size" | "icon" | "loading"
11
+ > {
12
+ variant?: Variant;
13
+ size?: Size;
14
+ icon?: ComponentChildren;
15
+ loading?: boolean;
16
+ }
17
+
18
+ const TYPOGRAPHY: Record<Size, string> = {
19
+ xs: "text-sm-semibold",
20
+ s: "text-md-semibold",
21
+ m: "text-lg-semibold",
22
+ };
23
+
24
+ export default function Button({
25
+ variant = "primary",
26
+ size = "s",
27
+ icon,
28
+ loading,
29
+ className,
30
+ children,
31
+ disabled,
32
+ ...rest
33
+ }: ButtonProps) {
34
+ const cls = cx(
35
+ "kombos-btn",
36
+ `kombos-btn--${variant}`,
37
+ `kombos-btn--${size}`,
38
+ TYPOGRAPHY[size],
39
+ className,
40
+ );
41
+
42
+ return (
43
+ <button className={cls} disabled={loading || disabled} {...rest}>
44
+ {loading ? (
45
+ <SpinnerSVG className="kombos-btn__spinner" />
46
+ ) : (
47
+ icon && <span className="kombos-btn__icon">{icon}</span>
48
+ )}
49
+ {children}
50
+ </button>
51
+ );
52
+ }
@@ -0,0 +1,114 @@
1
+ /* ===== Button ===== */
2
+
3
+ /* --- Base --- */
4
+ .kombos-btn {
5
+ display: inline-flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+ border: 1px solid transparent;
9
+ border-radius: 6px;
10
+ gap: 0.5rem;
11
+ cursor: pointer;
12
+ transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
13
+ }
14
+
15
+ .kombos-btn:disabled {
16
+ cursor: not-allowed;
17
+ }
18
+
19
+ /* --- Spinner --- */
20
+ .kombos-btn__spinner {
21
+ animation: kombos-spin 1s linear infinite;
22
+ }
23
+
24
+ @keyframes kombos-spin {
25
+ from { transform: rotate(0deg); }
26
+ to { transform: rotate(360deg); }
27
+ }
28
+
29
+ /* --- Icon --- */
30
+ .kombos-btn__icon {
31
+ display: flex;
32
+ align-items: center;
33
+ flex-shrink: 0;
34
+ }
35
+
36
+ .kombos-btn--xs .kombos-btn__icon {
37
+ font-size: 1rem;
38
+ }
39
+
40
+ .kombos-btn--s .kombos-btn__icon {
41
+ font-size: 1.25rem;
42
+ }
43
+
44
+ .kombos-btn--m .kombos-btn__icon {
45
+ font-size: 1.5rem;
46
+ }
47
+
48
+ /* --- Sizes --- */
49
+ .kombos-btn--xs {
50
+ padding: 0.4375rem 0.9375rem;
51
+ min-height: 2.25rem;
52
+ }
53
+
54
+ .kombos-btn--s {
55
+ padding: 0.5625rem 1.1875rem;
56
+ min-height: 2.75rem;
57
+ }
58
+
59
+ .kombos-btn--m {
60
+ padding: 0.6875rem 1.4375rem;
61
+ min-height: 3.375rem;
62
+ }
63
+
64
+ /* --- Primary --- */
65
+ .kombos-btn--primary {
66
+ background-color: var(--kombos-gray-900);
67
+ border-color: var(--kombos-gray-900);
68
+ color: var(--kombos-white);
69
+ }
70
+
71
+ .kombos-btn--primary:hover:not(:disabled) {
72
+ opacity: 0.85;
73
+ }
74
+
75
+ .kombos-btn--primary:disabled {
76
+ background-color: var(--kombos-gray-300);
77
+ border-color: var(--kombos-gray-300);
78
+ color: var(--kombos-gray-50);
79
+ }
80
+
81
+ /* --- Secondary --- */
82
+ .kombos-btn--secondary {
83
+ background-color: var(--kombos-white);
84
+ border-color: var(--kombos-gray-200);
85
+ color: var(--kombos-gray-900);
86
+ }
87
+
88
+ .kombos-btn--secondary:hover:not(:disabled) {
89
+ border-color: var(--kombos-gray-300);
90
+ }
91
+
92
+ .kombos-btn--secondary:disabled {
93
+ background-color: var(--kombos-gray-50);
94
+ border-color: var(--kombos-gray-200);
95
+ color: var(--kombos-gray-300);
96
+ }
97
+
98
+ /* --- Dangerous --- */
99
+ .kombos-btn--dangerous {
100
+ background-color: var(--kombos-error);
101
+ border-color: var(--kombos-error);
102
+ color: var(--kombos-white);
103
+ }
104
+
105
+ .kombos-btn--dangerous:hover:not(:disabled) {
106
+ background-color: var(--kombos-error-hover);
107
+ border-color: var(--kombos-error-hover);
108
+ }
109
+
110
+ .kombos-btn--dangerous:disabled {
111
+ background-color: var(--kombos-gray-300);
112
+ border-color: var(--kombos-gray-300);
113
+ color: var(--kombos-gray-50);
114
+ }
@@ -0,0 +1,66 @@
1
+ import type { ComponentChildren } from "preact";
2
+ import { useId } from "preact/hooks";
3
+ import { cx } from "../../utils/cx";
4
+ import { cloneElement, isValidElement } from "preact";
5
+
6
+ type FormItemStatus = "default" | "error" | "success";
7
+
8
+ interface Props {
9
+ label?: ComponentChildren;
10
+ description?: ComponentChildren;
11
+ status?: FormItemStatus;
12
+ helper?: ComponentChildren;
13
+ children: ComponentChildren;
14
+ className?: string;
15
+ htmlFor?: string;
16
+ }
17
+
18
+ export default function FormItem({
19
+ label,
20
+ description,
21
+ status = "default",
22
+ helper,
23
+ children,
24
+ className,
25
+ htmlFor,
26
+ }: Props) {
27
+ const autoId = useId();
28
+ const helperId = helper ? `${autoId}-helper` : undefined;
29
+
30
+ const enhancedChildren =
31
+ helperId && isValidElement(children)
32
+ ? cloneElement(children, { "aria-describedby": helperId })
33
+ : children;
34
+
35
+ return (
36
+ <div
37
+ className={cx("kombos-form-item", className)}
38
+ data-state={status !== "default" ? status : undefined}
39
+ >
40
+ {label &&
41
+ (htmlFor ? (
42
+ <label
43
+ htmlFor={htmlFor}
44
+ className="kombos-form-item__label text-xs-medium"
45
+ >
46
+ {label}
47
+ </label>
48
+ ) : (
49
+ <span className="kombos-form-item__label text-xs-medium">
50
+ {label}
51
+ </span>
52
+ ))}
53
+ {description && (
54
+ <span className="kombos-form-item__description text-xs-regular">
55
+ {description}
56
+ </span>
57
+ )}
58
+ {enhancedChildren}
59
+ {helper && (
60
+ <span id={helperId} className="kombos-form-item__helper text-xs-regular">
61
+ {helper}
62
+ </span>
63
+ )}
64
+ </div>
65
+ );
66
+ }
@@ -0,0 +1,38 @@
1
+ /* ===== FormItem Sub-Component ===== */
2
+
3
+ .kombos-form-item {
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: 0.25rem;
7
+ width: 100%;
8
+ }
9
+
10
+ /* Label */
11
+ .kombos-form-item__label {
12
+ width: fit-content;
13
+ color: var(--kombos-gray-700);
14
+ }
15
+
16
+ /* Description */
17
+ .kombos-form-item__description {
18
+ width: fit-content;
19
+ margin-top: -0.25rem;
20
+ color: var(--kombos-gray-500);
21
+ }
22
+
23
+
24
+ /* Helper text */
25
+ .kombos-form-item__helper {
26
+ color: var(--kombos-gray-500);
27
+ }
28
+
29
+ /* === Error state === */
30
+ [data-state="error"] .kombos-form-item__label,
31
+ [data-state="error"] .kombos-form-item__helper {
32
+ color: var(--kombos-error);
33
+ }
34
+
35
+ /* === Success state === */
36
+ [data-state="success"] .kombos-form-item__helper {
37
+ color: var(--kombos-success);
38
+ }