@ikas/component-cli 0.133.0 → 1.1.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.
- package/dist/commands/create.d.ts +8 -3
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +8 -227
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +120 -31
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/proxy.js +1 -1
- package/dist/commands/proxy.js.map +1 -1
- package/package.json +4 -5
- package/bin/create-ikas-component.js +0 -8
- package/templates/create/README.md +0 -50
- package/templates/create/claude-md +0 -275
- package/templates/create/cursorrules +0 -123
- package/templates/create/gitignore +0 -6
- package/templates/create/ikas.config.json +0 -95
- package/templates/create/mcp.json +0 -10
- package/templates/create/package.json +0 -22
- package/templates/create/src/components/ExampleComponent/index.tsx +0 -22
- package/templates/create/src/components/ExampleComponent/styles.css +0 -36
- package/templates/create/src/components/ExampleComponent/types.ts +0 -7
- package/templates/create/src/components/ExampleSection/index.tsx +0 -14
- package/templates/create/src/components/ExampleSection/styles.css +0 -29
- package/templates/create/src/components/ExampleSection/types.ts +0 -6
- package/templates/create/src/components/index.ts +0 -2
- package/templates/create/src/global-types.ts +0 -5
- package/templates/create/src/global.css +0 -29
- package/templates/create/src/ikas-component-utils.d.ts +0 -3
- package/templates/create/tsconfig.json +0 -30
- package/templates/create/vite.config.ts +0 -15
- package/templates/create-full/README.md +0 -78
- package/templates/create-full/claude-md +0 -752
- package/templates/create-full/cursorrules +0 -117
- package/templates/create-full/gitignore +0 -4
- package/templates/create-full/ikas.config.json +0 -5009
- package/templates/create-full/mcp.json +0 -10
- package/templates/create-full/package.json +0 -23
- package/templates/create-full/src/components/AccountAddresses/components/AddressCard/index.tsx +0 -55
- package/templates/create-full/src/components/AccountAddresses/components/AddressCard/styles.css +0 -46
- package/templates/create-full/src/components/AccountAddresses/components/AddressModal/index.tsx +0 -298
- package/templates/create-full/src/components/AccountAddresses/components/AddressModal/styles.css +0 -23
- package/templates/create-full/src/components/AccountAddresses/index.tsx +0 -127
- package/templates/create-full/src/components/AccountAddresses/styles.css +0 -41
- package/templates/create-full/src/components/AccountAddresses/types.ts +0 -15
- package/templates/create-full/src/components/AccountFavorites/index.tsx +0 -82
- package/templates/create-full/src/components/AccountFavorites/styles.css +0 -52
- package/templates/create-full/src/components/AccountFavorites/types.ts +0 -7
- package/templates/create-full/src/components/AccountInfo/components/AccountSidebar/index.tsx +0 -171
- package/templates/create-full/src/components/AccountInfo/components/AccountSidebar/styles.css +0 -144
- package/templates/create-full/src/components/AccountInfo/index.tsx +0 -91
- package/templates/create-full/src/components/AccountInfo/styles.css +0 -35
- package/templates/create-full/src/components/AccountInfo/types.ts +0 -9
- package/templates/create-full/src/components/AccountInfoContent/index.tsx +0 -134
- package/templates/create-full/src/components/AccountInfoContent/styles.css +0 -57
- package/templates/create-full/src/components/AccountInfoContent/types.ts +0 -8
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderHeader/index.tsx +0 -78
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderHeader/styles.css +0 -46
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderItemRow/index.tsx +0 -20
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderItemRow/styles.css +0 -16
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderLineItemDisplay/index.tsx +0 -112
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderLineItemDisplay/styles.css +0 -86
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderSidebar/index.tsx +0 -195
- package/templates/create-full/src/components/AccountOrderDetail/components/OrderSidebar/styles.css +0 -93
- package/templates/create-full/src/components/AccountOrderDetail/components/PackageGroup/index.tsx +0 -156
- package/templates/create-full/src/components/AccountOrderDetail/components/PackageGroup/styles.css +0 -100
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnItemRow/index.tsx +0 -56
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnItemRow/styles.css +0 -57
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnView/index.tsx +0 -159
- package/templates/create-full/src/components/AccountOrderDetail/components/ReturnView/styles.css +0 -29
- package/templates/create-full/src/components/AccountOrderDetail/index.tsx +0 -244
- package/templates/create-full/src/components/AccountOrderDetail/styles.css +0 -125
- package/templates/create-full/src/components/AccountOrderDetail/types.ts +0 -32
- package/templates/create-full/src/components/AccountOrders/components/OrderCard/index.tsx +0 -122
- package/templates/create-full/src/components/AccountOrders/components/OrderCard/styles.css +0 -114
- package/templates/create-full/src/components/AccountOrders/index.tsx +0 -105
- package/templates/create-full/src/components/AccountOrders/styles.css +0 -36
- package/templates/create-full/src/components/AccountOrders/types.ts +0 -11
- package/templates/create-full/src/components/Announcement/index.tsx +0 -11
- package/templates/create-full/src/components/Announcement/styles.css +0 -4
- package/templates/create-full/src/components/Announcement/types.ts +0 -4
- package/templates/create-full/src/components/Announcements/index.tsx +0 -91
- package/templates/create-full/src/components/Announcements/styles.css +0 -46
- package/templates/create-full/src/components/Announcements/types.ts +0 -8
- package/templates/create-full/src/components/BlogHome/components/BlogCard/index.tsx +0 -89
- package/templates/create-full/src/components/BlogHome/components/BlogCard/styles.css +0 -121
- package/templates/create-full/src/components/BlogHome/index.tsx +0 -124
- package/templates/create-full/src/components/BlogHome/styles.css +0 -118
- package/templates/create-full/src/components/BlogHome/types.ts +0 -15
- package/templates/create-full/src/components/BlogPost/index.tsx +0 -128
- package/templates/create-full/src/components/BlogPost/styles.css +0 -120
- package/templates/create-full/src/components/BlogPost/types.ts +0 -12
- package/templates/create-full/src/components/CardProductName/index.tsx +0 -25
- package/templates/create-full/src/components/CardProductName/styles.css +0 -22
- package/templates/create-full/src/components/CardProductName/types.ts +0 -7
- package/templates/create-full/src/components/CardProductPrice/index.tsx +0 -30
- package/templates/create-full/src/components/CardProductPrice/styles.css +0 -13
- package/templates/create-full/src/components/CardProductPrice/types.ts +0 -6
- package/templates/create-full/src/components/CardProductVariants/index.tsx +0 -10
- package/templates/create-full/src/components/CardProductVariants/styles.css +0 -1
- package/templates/create-full/src/components/CardProductVariants/types.ts +0 -6
- package/templates/create-full/src/components/CartPage/components/CouponCode/index.tsx +0 -108
- package/templates/create-full/src/components/CartPage/components/CouponCode/styles.css +0 -68
- package/templates/create-full/src/components/CartPage/components/EmptyState/index.tsx +0 -31
- package/templates/create-full/src/components/CartPage/components/EmptyState/styles.css +0 -18
- package/templates/create-full/src/components/CartPage/components/OrderSummary/index.tsx +0 -106
- package/templates/create-full/src/components/CartPage/components/OrderSummary/styles.css +0 -70
- package/templates/create-full/src/components/CartPage/index.tsx +0 -107
- package/templates/create-full/src/components/CartPage/styles.css +0 -54
- package/templates/create-full/src/components/CartPage/types.ts +0 -16
- package/templates/create-full/src/components/CategoryImageItem/components/Card/index.tsx +0 -64
- package/templates/create-full/src/components/CategoryImageItem/components/Card/styles.css +0 -56
- package/templates/create-full/src/components/CategoryImageItem/index.tsx +0 -64
- package/templates/create-full/src/components/CategoryImageItem/styles.css +0 -10
- package/templates/create-full/src/components/CategoryImageItem/types.ts +0 -16
- package/templates/create-full/src/components/CategoryImages/index.tsx +0 -62
- package/templates/create-full/src/components/CategoryImages/styles.css +0 -38
- package/templates/create-full/src/components/CategoryImages/types.ts +0 -11
- package/templates/create-full/src/components/CategoryList/components/CategoryListControls/index.tsx +0 -129
- package/templates/create-full/src/components/CategoryList/components/CategoryListControls/styles.css +0 -99
- package/templates/create-full/src/components/CategoryList/components/FilterBoxValues/index.tsx +0 -42
- package/templates/create-full/src/components/CategoryList/components/FilterBoxValues/styles.css +0 -27
- package/templates/create-full/src/components/CategoryList/components/FilterCategoryList/index.tsx +0 -43
- package/templates/create-full/src/components/CategoryList/components/FilterCategoryList/styles.css +0 -20
- package/templates/create-full/src/components/CategoryList/components/FilterGroupValues/index.tsx +0 -114
- package/templates/create-full/src/components/CategoryList/components/FilterGroupValues/styles.css +0 -1
- package/templates/create-full/src/components/CategoryList/components/FilterListValues/index.tsx +0 -54
- package/templates/create-full/src/components/CategoryList/components/FilterListValues/styles.css +0 -22
- package/templates/create-full/src/components/CategoryList/components/FilterRangeListValues/index.tsx +0 -50
- package/templates/create-full/src/components/CategoryList/components/FilterRangeListValues/styles.css +0 -25
- package/templates/create-full/src/components/CategoryList/components/FilterRangeValues/index.tsx +0 -189
- package/templates/create-full/src/components/CategoryList/components/FilterRangeValues/styles.css +0 -89
- package/templates/create-full/src/components/CategoryList/components/FilterSidebar/index.tsx +0 -92
- package/templates/create-full/src/components/CategoryList/components/FilterSidebar/styles.css +0 -27
- package/templates/create-full/src/components/CategoryList/components/FilterSwatchValues/index.tsx +0 -63
- package/templates/create-full/src/components/CategoryList/components/FilterSwatchValues/styles.css +0 -48
- package/templates/create-full/src/components/CategoryList/components/MobileFilterModal/index.tsx +0 -146
- package/templates/create-full/src/components/CategoryList/components/MobileFilterModal/styles.css +0 -133
- package/templates/create-full/src/components/CategoryList/index.tsx +0 -333
- package/templates/create-full/src/components/CategoryList/styles.css +0 -110
- package/templates/create-full/src/components/CategoryList/types.ts +0 -30
- package/templates/create-full/src/components/CollapsibleContent/index.tsx +0 -23
- package/templates/create-full/src/components/CollapsibleContent/styles.css +0 -11
- package/templates/create-full/src/components/CollapsibleContent/types.ts +0 -6
- package/templates/create-full/src/components/CookieBar/index.tsx +0 -78
- package/templates/create-full/src/components/CookieBar/styles.css +0 -111
- package/templates/create-full/src/components/CookieBar/types.ts +0 -10
- package/templates/create-full/src/components/CustomerEmailVerification/index.tsx +0 -168
- package/templates/create-full/src/components/CustomerEmailVerification/styles.css +0 -118
- package/templates/create-full/src/components/CustomerEmailVerification/types.ts +0 -17
- package/templates/create-full/src/components/FeatureItem/index.tsx +0 -27
- package/templates/create-full/src/components/FeatureItem/styles.css +0 -19
- package/templates/create-full/src/components/FeatureItem/types.ts +0 -7
- package/templates/create-full/src/components/Features/index.tsx +0 -25
- package/templates/create-full/src/components/Features/styles.css +0 -39
- package/templates/create-full/src/components/Features/types.ts +0 -5
- package/templates/create-full/src/components/Footer/index.tsx +0 -154
- package/templates/create-full/src/components/Footer/styles.css +0 -175
- package/templates/create-full/src/components/Footer/types.ts +0 -15
- package/templates/create-full/src/components/ForgotPassword/components/ForgotPasswordForm/index.tsx +0 -129
- package/templates/create-full/src/components/ForgotPassword/components/ForgotPasswordForm/styles.css +0 -0
- package/templates/create-full/src/components/ForgotPassword/index.tsx +0 -30
- package/templates/create-full/src/components/ForgotPassword/styles.css +0 -85
- package/templates/create-full/src/components/ForgotPassword/types.ts +0 -13
- package/templates/create-full/src/components/Header/index.tsx +0 -46
- package/templates/create-full/src/components/Header/styles.css +0 -4
- package/templates/create-full/src/components/Header/types.ts +0 -4
- package/templates/create-full/src/components/HeroSlider/index.tsx +0 -110
- package/templates/create-full/src/components/HeroSlider/styles.css +0 -129
- package/templates/create-full/src/components/HeroSlider/types.ts +0 -9
- package/templates/create-full/src/components/HeroSliderItem/index.tsx +0 -231
- package/templates/create-full/src/components/HeroSliderItem/styles.css +0 -152
- package/templates/create-full/src/components/HeroSliderItem/types.ts +0 -34
- package/templates/create-full/src/components/Login/components/LoginForm/index.tsx +0 -181
- package/templates/create-full/src/components/Login/components/LoginForm/styles.css +0 -0
- package/templates/create-full/src/components/Login/index.tsx +0 -37
- package/templates/create-full/src/components/Login/styles.css +0 -129
- package/templates/create-full/src/components/Login/types.ts +0 -18
- package/templates/create-full/src/components/Navbar/components/CartSidebar/index.tsx +0 -203
- package/templates/create-full/src/components/Navbar/components/CartSidebar/styles.css +0 -175
- package/templates/create-full/src/components/Navbar/components/MobileMenu/index.tsx +0 -198
- package/templates/create-full/src/components/Navbar/components/MobileMenu/styles.css +0 -122
- package/templates/create-full/src/components/Navbar/components/NavItem/index.tsx +0 -65
- package/templates/create-full/src/components/Navbar/components/SearchModal/index.tsx +0 -339
- package/templates/create-full/src/components/Navbar/components/SearchModal/styles.css +0 -191
- package/templates/create-full/src/components/Navbar/index.tsx +0 -254
- package/templates/create-full/src/components/Navbar/styles.css +0 -254
- package/templates/create-full/src/components/Navbar/types.ts +0 -42
- package/templates/create-full/src/components/NotFound/index.tsx +0 -39
- package/templates/create-full/src/components/NotFound/styles.css +0 -46
- package/templates/create-full/src/components/NotFound/types.ts +0 -8
- package/templates/create-full/src/components/ProductDetail/components/ProductGallery/index.tsx +0 -316
- package/templates/create-full/src/components/ProductDetail/components/ProductGallery/styles.css +0 -213
- package/templates/create-full/src/components/ProductDetail/index.tsx +0 -92
- package/templates/create-full/src/components/ProductDetail/styles.css +0 -58
- package/templates/create-full/src/components/ProductDetail/types.ts +0 -12
- package/templates/create-full/src/components/ProductDetailAddToCart/components/PayWithIkas/index.tsx +0 -34
- package/templates/create-full/src/components/ProductDetailAddToCart/components/PayWithIkas/styles.css +0 -4
- package/templates/create-full/src/components/ProductDetailAddToCart/index.tsx +0 -146
- package/templates/create-full/src/components/ProductDetailAddToCart/styles.css +0 -27
- package/templates/create-full/src/components/ProductDetailAddToCart/types.ts +0 -18
- package/templates/create-full/src/components/ProductDetailBundleFurniture/components/BundleFurnitureRow/index.tsx +0 -164
- package/templates/create-full/src/components/ProductDetailBundleFurniture/components/BundleFurnitureSection/index.tsx +0 -134
- package/templates/create-full/src/components/ProductDetailBundleFurniture/components/BundleFurnitureSection/styles.css +0 -188
- package/templates/create-full/src/components/ProductDetailBundleFurniture/index.tsx +0 -61
- package/templates/create-full/src/components/ProductDetailBundleFurniture/styles.css +0 -12
- package/templates/create-full/src/components/ProductDetailBundleFurniture/types.ts +0 -21
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleProductItem/index.tsx +0 -169
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleProductItem/styles.css +0 -141
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleSkeletonLoading/index.tsx +0 -35
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/BundleSkeletonLoading/styles.css +0 -85
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureRow/index.tsx +0 -51
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureRow/styles.css +0 -30
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureView/index.tsx +0 -54
- package/templates/create-full/src/components/ProductDetailBundleProduct/components/FurnitureView/styles.css +0 -22
- package/templates/create-full/src/components/ProductDetailBundleProduct/index.tsx +0 -101
- package/templates/create-full/src/components/ProductDetailBundleProduct/styles.css +0 -20
- package/templates/create-full/src/components/ProductDetailBundleProduct/types.ts +0 -18
- package/templates/create-full/src/components/ProductDetailDescription/index.tsx +0 -56
- package/templates/create-full/src/components/ProductDetailDescription/styles.css +0 -21
- package/templates/create-full/src/components/ProductDetailDescription/types.ts +0 -13
- package/templates/create-full/src/components/ProductDetailFeatureItem/index.tsx +0 -28
- package/templates/create-full/src/components/ProductDetailFeatureItem/styles.css +0 -22
- package/templates/create-full/src/components/ProductDetailFeatureItem/types.ts +0 -7
- package/templates/create-full/src/components/ProductDetailFeatures/index.tsx +0 -40
- package/templates/create-full/src/components/ProductDetailFeatures/styles.css +0 -17
- package/templates/create-full/src/components/ProductDetailFeatures/types.ts +0 -10
- package/templates/create-full/src/components/ProductDetailNameFavorite/index.tsx +0 -66
- package/templates/create-full/src/components/ProductDetailNameFavorite/styles.css +0 -45
- package/templates/create-full/src/components/ProductDetailNameFavorite/types.ts +0 -11
- package/templates/create-full/src/components/ProductDetailOffer/components/OfferCard/index.tsx +0 -209
- package/templates/create-full/src/components/ProductDetailOffer/components/OfferCard/styles.css +0 -146
- package/templates/create-full/src/components/ProductDetailOffer/components/OfferSummary/index.tsx +0 -175
- package/templates/create-full/src/components/ProductDetailOffer/index.tsx +0 -199
- package/templates/create-full/src/components/ProductDetailOffer/styles.css +0 -211
- package/templates/create-full/src/components/ProductDetailOffer/types.ts +0 -24
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionCheckbox/index.tsx +0 -52
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionCheckbox/styles.css +0 -19
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceBox/index.tsx +0 -60
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceBox/styles.css +0 -38
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSelect/index.tsx +0 -102
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSelect/styles.css +0 -34
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSwatch/index.tsx +0 -121
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/components/ChoiceSwatch/styles.css +0 -87
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionChoice/index.tsx +0 -57
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionColorPicker/index.tsx +0 -54
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionColorPicker/styles.css +0 -0
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionDatePicker/index.tsx +0 -124
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionDatePicker/styles.css +0 -1
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionFile/index.tsx +0 -217
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionFile/styles.css +0 -87
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionRenderer/index.tsx +0 -133
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionText/index.tsx +0 -60
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionText/styles.css +0 -1
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionTextarea/index.tsx +0 -74
- package/templates/create-full/src/components/ProductDetailOptionSet/components/OptionTextarea/styles.css +0 -10
- package/templates/create-full/src/components/ProductDetailOptionSet/index.tsx +0 -99
- package/templates/create-full/src/components/ProductDetailOptionSet/styles.css +0 -30
- package/templates/create-full/src/components/ProductDetailOptionSet/types.ts +0 -21
- package/templates/create-full/src/components/ProductDetailPrices/index.tsx +0 -62
- package/templates/create-full/src/components/ProductDetailPrices/styles.css +0 -32
- package/templates/create-full/src/components/ProductDetailPrices/types.ts +0 -10
- package/templates/create-full/src/components/ProductDetailProductGroup/index.tsx +0 -74
- package/templates/create-full/src/components/ProductDetailProductGroup/styles.css +0 -33
- package/templates/create-full/src/components/ProductDetailProductGroup/types.ts +0 -10
- package/templates/create-full/src/components/ProductDetailReviews/index.tsx +0 -205
- package/templates/create-full/src/components/ProductDetailReviews/styles.css +0 -43
- package/templates/create-full/src/components/ProductDetailReviews/types.ts +0 -19
- package/templates/create-full/src/components/ProductDetailSku/index.tsx +0 -38
- package/templates/create-full/src/components/ProductDetailSku/styles.css +0 -16
- package/templates/create-full/src/components/ProductDetailSku/types.ts +0 -11
- package/templates/create-full/src/components/ProductDetailVariant/index.tsx +0 -38
- package/templates/create-full/src/components/ProductDetailVariant/styles.css +0 -14
- package/templates/create-full/src/components/ProductDetailVariant/types.ts +0 -12
- package/templates/create-full/src/components/ProductSlider/index.tsx +0 -151
- package/templates/create-full/src/components/ProductSlider/styles.css +0 -105
- package/templates/create-full/src/components/ProductSlider/types.ts +0 -17
- package/templates/create-full/src/components/RecoverPassword/components/RecoverPasswordForm/index.tsx +0 -133
- package/templates/create-full/src/components/RecoverPassword/components/RecoverPasswordForm/styles.css +0 -0
- package/templates/create-full/src/components/RecoverPassword/index.tsx +0 -30
- package/templates/create-full/src/components/RecoverPassword/styles.css +0 -93
- package/templates/create-full/src/components/RecoverPassword/types.ts +0 -13
- package/templates/create-full/src/components/Register/components/RegisterForm/index.tsx +0 -326
- package/templates/create-full/src/components/Register/components/RegisterForm/styles.css +0 -0
- package/templates/create-full/src/components/Register/index.tsx +0 -30
- package/templates/create-full/src/components/Register/styles.css +0 -152
- package/templates/create-full/src/components/Register/types.ts +0 -27
- package/templates/create-full/src/components/RichText/index.tsx +0 -25
- package/templates/create-full/src/components/RichText/styles.css +0 -51
- package/templates/create-full/src/components/RichText/types.ts +0 -5
- package/templates/create-full/src/components/SocialMediaIcon/index.tsx +0 -26
- package/templates/create-full/src/components/SocialMediaIcon/styles.css +0 -17
- package/templates/create-full/src/components/SocialMediaIcon/types.ts +0 -7
- package/templates/create-full/src/components/index.ts +0 -50
- package/templates/create-full/src/global-types.ts +0 -11
- package/templates/create-full/src/global.css +0 -598
- package/templates/create-full/src/hooks/useBundleProducts.ts +0 -75
- package/templates/create-full/src/hooks/useColumnPreference.ts +0 -26
- package/templates/create-full/src/hooks/useInfiniteScroll.ts +0 -49
- package/templates/create-full/src/hooks/usePageTracking.ts +0 -56
- package/templates/create-full/src/hooks/usePayWithIkas.ts +0 -114
- package/templates/create-full/src/hooks/useRedirectIfLoggedIn.ts +0 -35
- package/templates/create-full/src/hooks/useScrollLock.ts +0 -19
- package/templates/create-full/src/hooks/useToast.ts +0 -27
- package/templates/create-full/src/ikas-component-utils.d.ts +0 -3
- package/templates/create-full/src/sub-components/Badge/index.tsx +0 -208
- package/templates/create-full/src/sub-components/Badge/styles.css +0 -129
- package/templates/create-full/src/sub-components/Breadcrumb/index.tsx +0 -57
- package/templates/create-full/src/sub-components/Breadcrumb/styles.css +0 -49
- package/templates/create-full/src/sub-components/BundleMedia/index.tsx +0 -72
- package/templates/create-full/src/sub-components/BundleQuantityBox/index.tsx +0 -73
- package/templates/create-full/src/sub-components/BundleQuantityBox/styles.css +0 -43
- package/templates/create-full/src/sub-components/Button/index.tsx +0 -52
- package/templates/create-full/src/sub-components/Button/styles.css +0 -114
- package/templates/create-full/src/sub-components/CartItem/components/BundleProductItem/index.tsx +0 -59
- package/templates/create-full/src/sub-components/CartItem/components/BundleProductItem/styles.css +0 -24
- package/templates/create-full/src/sub-components/CartItem/components/BundleProducts/index.tsx +0 -55
- package/templates/create-full/src/sub-components/CartItem/components/BundleProducts/styles.css +0 -30
- package/templates/create-full/src/sub-components/CartItem/components/ItemOptions/index.tsx +0 -31
- package/templates/create-full/src/sub-components/CartItem/components/ItemOptions/styles.css +0 -6
- package/templates/create-full/src/sub-components/CartItem/components/OptionValueDisplay/index.tsx +0 -79
- package/templates/create-full/src/sub-components/CartItem/components/OptionValueDisplay/styles.css +0 -28
- package/templates/create-full/src/sub-components/CartItem/index.tsx +0 -216
- package/templates/create-full/src/sub-components/CartItem/styles.css +0 -170
- package/templates/create-full/src/sub-components/Checkbox/index.tsx +0 -42
- package/templates/create-full/src/sub-components/Checkbox/styles.css +0 -65
- package/templates/create-full/src/sub-components/CollapsibleGroup/index.tsx +0 -52
- package/templates/create-full/src/sub-components/CollapsibleGroup/styles.css +0 -51
- package/templates/create-full/src/sub-components/ColorInput/index.tsx +0 -33
- package/templates/create-full/src/sub-components/ColorInput/styles.css +0 -53
- package/templates/create-full/src/sub-components/ConfirmModal/index.tsx +0 -60
- package/templates/create-full/src/sub-components/ConfirmModal/styles.css +0 -20
- package/templates/create-full/src/sub-components/FormItem/index.tsx +0 -66
- package/templates/create-full/src/sub-components/FormItem/styles.css +0 -38
- package/templates/create-full/src/sub-components/ImagePreviewModal/index.tsx +0 -55
- package/templates/create-full/src/sub-components/ImagePreviewModal/styles.css +0 -50
- package/templates/create-full/src/sub-components/Input/index.tsx +0 -69
- package/templates/create-full/src/sub-components/Input/styles.css +0 -162
- package/templates/create-full/src/sub-components/Modal/index.tsx +0 -120
- package/templates/create-full/src/sub-components/Modal/styles.css +0 -70
- package/templates/create-full/src/sub-components/PageLoader/index.tsx +0 -14
- package/templates/create-full/src/sub-components/PageLoader/styles.css +0 -12
- package/templates/create-full/src/sub-components/Pagination/index.tsx +0 -107
- package/templates/create-full/src/sub-components/Pagination/styles.css +0 -88
- package/templates/create-full/src/sub-components/ProductCard/index.tsx +0 -276
- package/templates/create-full/src/sub-components/ProductCard/styles.css +0 -99
- package/templates/create-full/src/sub-components/QuantitySelector/index.tsx +0 -41
- package/templates/create-full/src/sub-components/QuantitySelector/styles.css +0 -51
- package/templates/create-full/src/sub-components/ReviewCard/index.tsx +0 -103
- package/templates/create-full/src/sub-components/ReviewCard/styles.css +0 -95
- package/templates/create-full/src/sub-components/ReviewForm/index.tsx +0 -115
- package/templates/create-full/src/sub-components/ReviewForm/styles.css +0 -11
- package/templates/create-full/src/sub-components/ReviewSummary/index.tsx +0 -65
- package/templates/create-full/src/sub-components/ReviewSummary/styles.css +0 -86
- package/templates/create-full/src/sub-components/Select/index.tsx +0 -86
- package/templates/create-full/src/sub-components/Select/styles.css +0 -110
- package/templates/create-full/src/sub-components/SkeletonField/index.tsx +0 -12
- package/templates/create-full/src/sub-components/SkeletonField/styles.css +0 -29
- package/templates/create-full/src/sub-components/SliderArrow/index.tsx +0 -26
- package/templates/create-full/src/sub-components/SliderArrow/styles.css +0 -24
- package/templates/create-full/src/sub-components/SocialLoginButton/index.tsx +0 -24
- package/templates/create-full/src/sub-components/SocialLoginButton/styles.css +0 -19
- package/templates/create-full/src/sub-components/SpinnerIcon/index.tsx +0 -10
- package/templates/create-full/src/sub-components/SpinnerIcon/styles.css +0 -8
- package/templates/create-full/src/sub-components/StarRating/index.tsx +0 -76
- package/templates/create-full/src/sub-components/StarRating/styles.css +0 -40
- package/templates/create-full/src/sub-components/Tag/index.tsx +0 -21
- package/templates/create-full/src/sub-components/Tag/styles.css +0 -30
- package/templates/create-full/src/sub-components/Textarea/index.tsx +0 -45
- package/templates/create-full/src/sub-components/Textarea/styles.css +0 -82
- package/templates/create-full/src/sub-components/Toast/index.tsx +0 -257
- package/templates/create-full/src/sub-components/Toast/styles.css +0 -3
- package/templates/create-full/src/sub-components/Toggle/index.tsx +0 -46
- package/templates/create-full/src/sub-components/Toggle/styles.css +0 -86
- package/templates/create-full/src/sub-components/VariantBadge/index.tsx +0 -153
- package/templates/create-full/src/sub-components/VariantBadge/styles.css +0 -47
- package/templates/create-full/src/sub-components/icons/index.tsx +0 -981
- package/templates/create-full/src/utils/bundle.ts +0 -70
- package/templates/create-full/src/utils/cx.ts +0 -4
- package/templates/create-full/src/utils/fullName.ts +0 -6
- package/templates/create-full/src/utils/media.ts +0 -36
- package/templates/create-full/src/utils/optionPrice.ts +0 -19
- package/templates/create-full/src/utils/optionSet.ts +0 -17
- package/templates/create-full/src/utils/orderStatus.ts +0 -28
- package/templates/create-full/src/utils/pagination.ts +0 -29
- package/templates/create-full/src/utils/toast.ts +0 -5
- package/templates/create-full/tsconfig.json +0 -30
- package/templates/create-full/vite.config.ts +0 -15
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IkasImage,
|
|
3
|
-
getDefaultSrc,
|
|
4
|
-
createMediaSrcset,
|
|
5
|
-
} from "@ikas/bp-storefront";
|
|
6
|
-
import { cx } from "../../../../utils/cx";
|
|
7
|
-
|
|
8
|
-
interface Props {
|
|
9
|
-
img: IkasImage;
|
|
10
|
-
cssClass: string;
|
|
11
|
-
objectFit: string;
|
|
12
|
-
aspectRatio?: string;
|
|
13
|
-
overlay: boolean;
|
|
14
|
-
label?: string;
|
|
15
|
-
href?: string;
|
|
16
|
-
openInNewTab?: boolean;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default function Card({
|
|
20
|
-
img,
|
|
21
|
-
cssClass,
|
|
22
|
-
objectFit,
|
|
23
|
-
aspectRatio,
|
|
24
|
-
overlay,
|
|
25
|
-
label,
|
|
26
|
-
href,
|
|
27
|
-
openInNewTab,
|
|
28
|
-
}: Props) {
|
|
29
|
-
const cardClass = cx("kombos-category-image-item__card", cssClass);
|
|
30
|
-
const Tag = href ? "a" : "div";
|
|
31
|
-
const linkProps = href
|
|
32
|
-
? {
|
|
33
|
-
href,
|
|
34
|
-
target: openInNewTab ? "_blank" : undefined,
|
|
35
|
-
rel: openInNewTab ? "noopener noreferrer" : undefined,
|
|
36
|
-
}
|
|
37
|
-
: {};
|
|
38
|
-
|
|
39
|
-
return (
|
|
40
|
-
<Tag className={cardClass} {...linkProps}>
|
|
41
|
-
<div
|
|
42
|
-
className="kombos-category-image-item__img-wrap"
|
|
43
|
-
style={aspectRatio ? { aspectRatio, height: "auto" } : undefined}
|
|
44
|
-
>
|
|
45
|
-
<img
|
|
46
|
-
className="kombos-category-image-item__img"
|
|
47
|
-
src={getDefaultSrc(img)}
|
|
48
|
-
srcSet={createMediaSrcset(img)}
|
|
49
|
-
sizes="(max-width: 1023px) 100vw, 50vw"
|
|
50
|
-
alt={label ? "" : img.altText || "Category"}
|
|
51
|
-
style={{ objectFit }}
|
|
52
|
-
loading="lazy"
|
|
53
|
-
decoding="async"
|
|
54
|
-
/>
|
|
55
|
-
</div>
|
|
56
|
-
{overlay && <div className="kombos-category-image-item__overlay" />}
|
|
57
|
-
{label && (
|
|
58
|
-
<span className="kombos-category-image-item__label display-xs-semibold md:display-sm-semibold">
|
|
59
|
-
{label}
|
|
60
|
-
</span>
|
|
61
|
-
)}
|
|
62
|
-
</Tag>
|
|
63
|
-
);
|
|
64
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
.kombos-category-image-item__card {
|
|
2
|
-
position: relative;
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
height: 100%;
|
|
5
|
-
text-decoration: none;
|
|
6
|
-
color: inherit;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.kombos-category-image-item__card--desktop {
|
|
10
|
-
display: none;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.kombos-category-image-item__card--mobile {
|
|
14
|
-
display: block;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.kombos-category-image-item__img-wrap {
|
|
18
|
-
width: 100%;
|
|
19
|
-
height: 100%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.kombos-category-image-item__img {
|
|
23
|
-
display: block;
|
|
24
|
-
width: 100%;
|
|
25
|
-
height: 100%;
|
|
26
|
-
transition: transform 0.4s ease;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.kombos-category-image-item__overlay {
|
|
30
|
-
position: absolute;
|
|
31
|
-
inset: 0;
|
|
32
|
-
background: rgba(0, 0, 0, 0.2);
|
|
33
|
-
pointer-events: none;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.kombos-category-image-item__label {
|
|
37
|
-
position: absolute;
|
|
38
|
-
inset: 0;
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
justify-content: center;
|
|
42
|
-
color: var(--kombos-white);
|
|
43
|
-
text-align: center;
|
|
44
|
-
pointer-events: none;
|
|
45
|
-
padding: 1.5rem;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@media (min-width: 1024px) {
|
|
49
|
-
.kombos-category-image-item__card--desktop {
|
|
50
|
-
display: block;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.kombos-category-image-item__card--mobile {
|
|
54
|
-
display: none;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Props } from "./types";
|
|
2
|
-
import { resolveAspectRatio, resolveObjectFit } from "../../utils/media";
|
|
3
|
-
import Card from "./components/Card";
|
|
4
|
-
|
|
5
|
-
export function CategoryImageItem({
|
|
6
|
-
image,
|
|
7
|
-
link,
|
|
8
|
-
overlay = false,
|
|
9
|
-
aspectRatio,
|
|
10
|
-
objectFit,
|
|
11
|
-
mobileImage,
|
|
12
|
-
mobileLink,
|
|
13
|
-
mobileOverlay,
|
|
14
|
-
mobileAspectRatio,
|
|
15
|
-
mobileObjectFit,
|
|
16
|
-
}: Props) {
|
|
17
|
-
const desktopImg = image || mobileImage;
|
|
18
|
-
const mobileImg = mobileImage || image;
|
|
19
|
-
|
|
20
|
-
if (!desktopImg && !mobileImg) return null;
|
|
21
|
-
|
|
22
|
-
const desktopFit = resolveObjectFit(objectFit);
|
|
23
|
-
const mobileFit = mobileObjectFit
|
|
24
|
-
? resolveObjectFit(mobileObjectFit)
|
|
25
|
-
: desktopFit;
|
|
26
|
-
|
|
27
|
-
const desktopAR = aspectRatio ? resolveAspectRatio(aspectRatio) : undefined;
|
|
28
|
-
const mobileAR = mobileAspectRatio
|
|
29
|
-
? resolveAspectRatio(mobileAspectRatio)
|
|
30
|
-
: desktopAR;
|
|
31
|
-
|
|
32
|
-
const mobOverlay = mobileOverlay ?? overlay;
|
|
33
|
-
|
|
34
|
-
return (
|
|
35
|
-
<div className="kombos-category-image-item">
|
|
36
|
-
{desktopImg && (
|
|
37
|
-
<Card
|
|
38
|
-
img={desktopImg}
|
|
39
|
-
cssClass="kombos-category-image-item__card--desktop"
|
|
40
|
-
objectFit={desktopFit}
|
|
41
|
-
aspectRatio={desktopAR}
|
|
42
|
-
overlay={overlay}
|
|
43
|
-
label={link?.label}
|
|
44
|
-
href={link?.href || undefined}
|
|
45
|
-
openInNewTab={link?.openInNewTab}
|
|
46
|
-
/>
|
|
47
|
-
)}
|
|
48
|
-
{mobileImg && (
|
|
49
|
-
<Card
|
|
50
|
-
img={mobileImg}
|
|
51
|
-
cssClass="kombos-category-image-item__card--mobile"
|
|
52
|
-
objectFit={mobileFit}
|
|
53
|
-
aspectRatio={mobileAR}
|
|
54
|
-
overlay={mobOverlay}
|
|
55
|
-
label={mobileLink?.label}
|
|
56
|
-
href={mobileLink?.href || undefined}
|
|
57
|
-
openInNewTab={mobileLink?.openInNewTab}
|
|
58
|
-
/>
|
|
59
|
-
)}
|
|
60
|
-
</div>
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export default CategoryImageItem;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated — do not edit manually.
|
|
2
|
-
import type { IkasImage, IkasNavigationLink } from "@ikas/bp-storefront";
|
|
3
|
-
import type { AspectRatio, ObjectFit } from "../../global-types";
|
|
4
|
-
|
|
5
|
-
export interface Props {
|
|
6
|
-
image?: IkasImage | null;
|
|
7
|
-
link?: IkasNavigationLink | null;
|
|
8
|
-
overlay?: boolean;
|
|
9
|
-
aspectRatio?: AspectRatio;
|
|
10
|
-
objectFit?: ObjectFit;
|
|
11
|
-
mobileImage?: IkasImage | null;
|
|
12
|
-
mobileLink?: IkasNavigationLink | null;
|
|
13
|
-
mobileOverlay?: boolean;
|
|
14
|
-
mobileAspectRatio?: AspectRatio;
|
|
15
|
-
mobileObjectFit?: ObjectFit;
|
|
16
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
// import { IkasComponentRenderer } from "@ikas/bp-storefront";
|
|
2
|
-
import { IkasComponentRenderer } from "@ikas/bp-storefront";
|
|
3
|
-
import { Props } from "./types";
|
|
4
|
-
|
|
5
|
-
const COLUMNS_MAP: Record<Props["desktopColumns"] & string, number> = {
|
|
6
|
-
One: 1,
|
|
7
|
-
Two: 2,
|
|
8
|
-
Three: 3,
|
|
9
|
-
Four: 4,
|
|
10
|
-
Five: 5,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export function CategoryImages(props: Props) {
|
|
14
|
-
const {
|
|
15
|
-
title,
|
|
16
|
-
titleColor,
|
|
17
|
-
backgroundColor,
|
|
18
|
-
desktopColumns,
|
|
19
|
-
mobileColumns,
|
|
20
|
-
components,
|
|
21
|
-
} = props;
|
|
22
|
-
|
|
23
|
-
const count = components?.length ?? 0;
|
|
24
|
-
if (count === 0) return null;
|
|
25
|
-
|
|
26
|
-
const desktopCols = desktopColumns ? COLUMNS_MAP[desktopColumns] : count;
|
|
27
|
-
const mobileCols = mobileColumns ? COLUMNS_MAP[mobileColumns] : 1;
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<section
|
|
31
|
-
className="kombos-category-images"
|
|
32
|
-
style={backgroundColor ? { backgroundColor } : undefined}
|
|
33
|
-
>
|
|
34
|
-
<div className="kombos-category-images__container kombos-container">
|
|
35
|
-
{title && (
|
|
36
|
-
<h2
|
|
37
|
-
className="kombos-category-images__title text-xl-medium md:display-xs-medium"
|
|
38
|
-
style={titleColor ? { color: titleColor } : undefined}
|
|
39
|
-
>
|
|
40
|
-
{title}
|
|
41
|
-
</h2>
|
|
42
|
-
)}
|
|
43
|
-
|
|
44
|
-
<div
|
|
45
|
-
className="kombos-category-images__grid"
|
|
46
|
-
style={{
|
|
47
|
-
"--desktop-cols": String(desktopCols),
|
|
48
|
-
"--mobile-cols": String(mobileCols),
|
|
49
|
-
}}
|
|
50
|
-
>
|
|
51
|
-
<IkasComponentRenderer
|
|
52
|
-
id="category-images"
|
|
53
|
-
components={components}
|
|
54
|
-
parentProps={props}
|
|
55
|
-
/>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</section>
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export default CategoryImages;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
.kombos-category-images {
|
|
2
|
-
width: 100%;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
/* Mobile-first: base = mobile (375px) */
|
|
6
|
-
.kombos-category-images__container {
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
gap: 1.25rem;
|
|
10
|
-
padding-top: 1rem;
|
|
11
|
-
padding-bottom: 1rem;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.kombos-category-images__title {
|
|
15
|
-
margin: 0;
|
|
16
|
-
color: var(--kombos-gray-900);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.kombos-category-images__grid {
|
|
20
|
-
display: grid;
|
|
21
|
-
grid-template-columns: repeat(var(--mobile-cols, 1), 1fr);
|
|
22
|
-
grid-auto-rows: 1fr;
|
|
23
|
-
gap: 1rem;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/* Desktop */
|
|
27
|
-
@media (min-width: 1024px) {
|
|
28
|
-
.kombos-category-images__container {
|
|
29
|
-
gap: 2rem;
|
|
30
|
-
padding-top: 2rem;
|
|
31
|
-
padding-bottom: 2rem;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.kombos-category-images__grid {
|
|
35
|
-
grid-template-columns: repeat(var(--desktop-cols, 4), 1fr);
|
|
36
|
-
gap: 1.5rem;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated — do not edit manually.
|
|
2
|
-
import type { NumberOfColumns } from "../../global-types";
|
|
3
|
-
|
|
4
|
-
export interface Props {
|
|
5
|
-
title?: string;
|
|
6
|
-
titleColor?: string;
|
|
7
|
-
backgroundColor?: string;
|
|
8
|
-
desktopColumns?: NumberOfColumns;
|
|
9
|
-
mobileColumns?: NumberOfColumns;
|
|
10
|
-
components?: any;
|
|
11
|
-
}
|
package/templates/create-full/src/components/CategoryList/components/CategoryListControls/index.tsx
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { observer } from "@ikas/component-utils";
|
|
2
|
-
import Select from "../../../../sub-components/Select";
|
|
3
|
-
import Button from "../../../../sub-components/Button";
|
|
4
|
-
import Input from "../../../../sub-components/Input";
|
|
5
|
-
import {
|
|
6
|
-
SlidersHorizontalSVG,
|
|
7
|
-
Column3SVG,
|
|
8
|
-
Column4SVG,
|
|
9
|
-
MagnifyingGlass1SVG,
|
|
10
|
-
} from "../../../../sub-components/icons";
|
|
11
|
-
|
|
12
|
-
interface Props {
|
|
13
|
-
pageTitle: string;
|
|
14
|
-
productCount: number;
|
|
15
|
-
productCountText: string;
|
|
16
|
-
sortOptions: { label: string; value: string }[];
|
|
17
|
-
selectedSortValue: string;
|
|
18
|
-
onSort: (e: Event) => void;
|
|
19
|
-
columns: 3 | 4;
|
|
20
|
-
onToggleColumns: () => void;
|
|
21
|
-
columnText: string;
|
|
22
|
-
hasVisibleFilters: boolean;
|
|
23
|
-
selectedFiltersCount: number;
|
|
24
|
-
filtersText: string;
|
|
25
|
-
onOpenFilterModal: () => void;
|
|
26
|
-
showSearch: boolean;
|
|
27
|
-
searchPlaceholder: string;
|
|
28
|
-
searchKeyword: string;
|
|
29
|
-
onSearch: (e: Event) => void;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const CategoryListControls = observer(function CategoryListControls({
|
|
33
|
-
pageTitle,
|
|
34
|
-
productCount,
|
|
35
|
-
productCountText,
|
|
36
|
-
sortOptions,
|
|
37
|
-
selectedSortValue,
|
|
38
|
-
onSort,
|
|
39
|
-
columns,
|
|
40
|
-
onToggleColumns,
|
|
41
|
-
columnText,
|
|
42
|
-
hasVisibleFilters,
|
|
43
|
-
selectedFiltersCount,
|
|
44
|
-
filtersText,
|
|
45
|
-
onOpenFilterModal,
|
|
46
|
-
showSearch,
|
|
47
|
-
searchPlaceholder,
|
|
48
|
-
searchKeyword,
|
|
49
|
-
onSearch,
|
|
50
|
-
}: Props) {
|
|
51
|
-
return (
|
|
52
|
-
<div className="kombos-category-list-controls">
|
|
53
|
-
{pageTitle && (
|
|
54
|
-
<h1 className="kombos-category-list-controls__title display-xs-medium md:display-sm-medium">
|
|
55
|
-
{pageTitle}
|
|
56
|
-
{productCount > 0 && (
|
|
57
|
-
<span className="kombos-category-list-controls__count text-md-regular">
|
|
58
|
-
({productCount} {productCountText})
|
|
59
|
-
</span>
|
|
60
|
-
)}
|
|
61
|
-
</h1>
|
|
62
|
-
)}
|
|
63
|
-
|
|
64
|
-
{sortOptions.length > 0 && (
|
|
65
|
-
<div className="kombos-category-list-controls__sort-wrap">
|
|
66
|
-
<Select
|
|
67
|
-
size="xs"
|
|
68
|
-
options={sortOptions}
|
|
69
|
-
value={selectedSortValue}
|
|
70
|
-
onChange={onSort}
|
|
71
|
-
aria-label="Sort by"
|
|
72
|
-
/>
|
|
73
|
-
</div>
|
|
74
|
-
)}
|
|
75
|
-
|
|
76
|
-
<Button
|
|
77
|
-
variant="secondary"
|
|
78
|
-
size="xs"
|
|
79
|
-
className="kombos-category-list-controls__col-btn"
|
|
80
|
-
onClick={onToggleColumns}
|
|
81
|
-
aria-label={`${columns === 4 ? 3 : 4} columns`}
|
|
82
|
-
icon={columns === 3 ? <Column3SVG /> : <Column4SVG />}
|
|
83
|
-
>
|
|
84
|
-
{columnText}
|
|
85
|
-
</Button>
|
|
86
|
-
|
|
87
|
-
<div className="kombos-category-list-controls__mobile-controls">
|
|
88
|
-
{sortOptions.length > 0 && (
|
|
89
|
-
<div className="kombos-category-list-controls__mobile-sort-wrap">
|
|
90
|
-
<Select
|
|
91
|
-
size="xs"
|
|
92
|
-
className="kombos-category-list-controls__mobile-sort-select"
|
|
93
|
-
options={sortOptions}
|
|
94
|
-
value={selectedSortValue}
|
|
95
|
-
onChange={onSort}
|
|
96
|
-
aria-label="Sort by"
|
|
97
|
-
/>
|
|
98
|
-
</div>
|
|
99
|
-
)}
|
|
100
|
-
{hasVisibleFilters && (
|
|
101
|
-
<Button
|
|
102
|
-
variant="secondary"
|
|
103
|
-
size="xs"
|
|
104
|
-
className="kombos-category-list-controls__filter-btn"
|
|
105
|
-
onClick={onOpenFilterModal}
|
|
106
|
-
icon={<SlidersHorizontalSVG />}
|
|
107
|
-
>
|
|
108
|
-
{filtersText}
|
|
109
|
-
{selectedFiltersCount > 0 && ` (${selectedFiltersCount})`}
|
|
110
|
-
</Button>
|
|
111
|
-
)}
|
|
112
|
-
</div>
|
|
113
|
-
|
|
114
|
-
{showSearch && (
|
|
115
|
-
<div className="kombos-category-list-controls__mobile-search">
|
|
116
|
-
<Input
|
|
117
|
-
leftIcon={<MagnifyingGlass1SVG />}
|
|
118
|
-
placeholder={searchPlaceholder}
|
|
119
|
-
value={searchKeyword}
|
|
120
|
-
onInput={onSearch}
|
|
121
|
-
size="xs"
|
|
122
|
-
/>
|
|
123
|
-
</div>
|
|
124
|
-
)}
|
|
125
|
-
</div>
|
|
126
|
-
);
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
export default CategoryListControls;
|
package/templates/create-full/src/components/CategoryList/components/CategoryListControls/styles.css
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/* ===== CategoryListControls ===== */
|
|
2
|
-
|
|
3
|
-
.kombos-category-list-controls {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: flex-end;
|
|
7
|
-
flex-wrap: wrap;
|
|
8
|
-
padding-top: 1rem;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.kombos-category-list-controls__title {
|
|
12
|
-
color: var(--kombos-gray-900);
|
|
13
|
-
margin: 0 0 0.75rem;
|
|
14
|
-
width: 100%;
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.kombos-category-list-controls__count {
|
|
20
|
-
color: var(--kombos-gray-500);
|
|
21
|
-
margin-left: 0.5rem;
|
|
22
|
-
margin-top: 0.375rem;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/* Desktop sort — hidden on mobile */
|
|
26
|
-
.kombos-category-list-controls__sort-wrap {
|
|
27
|
-
display: none;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* Column toggle — hidden on mobile */
|
|
31
|
-
.kombos-category-list-controls__col-btn {
|
|
32
|
-
display: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* Mobile controls */
|
|
36
|
-
.kombos-category-list-controls__mobile-controls {
|
|
37
|
-
display: grid;
|
|
38
|
-
grid-template-columns: 1fr 1fr;
|
|
39
|
-
gap: 1.5rem;
|
|
40
|
-
width: 100%;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.kombos-category-list-controls__mobile-sort-wrap {
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.kombos-category-list-controls__mobile-sort-select {
|
|
47
|
-
width: 100%;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.kombos-category-list-controls__filter-btn {
|
|
51
|
-
flex: 1;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.kombos-category-list-controls__filter-btn .kombos-icon {
|
|
55
|
-
font-size: 1rem;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* Mobile search — visible on mobile, hidden on desktop */
|
|
59
|
-
.kombos-category-list-controls__mobile-search {
|
|
60
|
-
width: 100%;
|
|
61
|
-
margin-top: 0.75rem;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* ===== Desktop (>= 1024px) ===== */
|
|
65
|
-
@media (min-width: 1024px) {
|
|
66
|
-
.kombos-category-list-controls {
|
|
67
|
-
padding-top: 1.5rem;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/* Title inline on the left */
|
|
71
|
-
.kombos-category-list-controls__title {
|
|
72
|
-
width: auto;
|
|
73
|
-
margin: 0;
|
|
74
|
-
margin-right: auto;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/* Show desktop sort, hide mobile controls */
|
|
78
|
-
.kombos-category-list-controls__sort-wrap {
|
|
79
|
-
display: block;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.kombos-category-list-controls__mobile-controls {
|
|
83
|
-
display: none;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.kombos-category-list-controls__mobile-search {
|
|
87
|
-
display: none;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* Column toggle button */
|
|
91
|
-
.kombos-category-list-controls__col-btn {
|
|
92
|
-
display: flex;
|
|
93
|
-
margin-left: 0.5rem;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.kombos-category-list-controls__col-btn .kombos-icon {
|
|
97
|
-
font-size: 1.25rem;
|
|
98
|
-
}
|
|
99
|
-
}
|
package/templates/create-full/src/components/CategoryList/components/FilterBoxValues/index.tsx
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IkasProductList,
|
|
3
|
-
IkasProductFilter,
|
|
4
|
-
IkasApplicableProductFilterValue,
|
|
5
|
-
handleFilterValueClick,
|
|
6
|
-
} from "@ikas/bp-storefront";
|
|
7
|
-
import { observer } from "@ikas/component-utils";
|
|
8
|
-
import { cx } from "../../../../utils/cx";
|
|
9
|
-
|
|
10
|
-
interface Props {
|
|
11
|
-
productList: IkasProductList;
|
|
12
|
-
filter: IkasProductFilter;
|
|
13
|
-
values: IkasApplicableProductFilterValue[];
|
|
14
|
-
onFilterChange?: () => void;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const FilterBoxValues = observer(function FilterBoxValues({
|
|
18
|
-
productList,
|
|
19
|
-
filter,
|
|
20
|
-
values,
|
|
21
|
-
onFilterChange,
|
|
22
|
-
}: Props) {
|
|
23
|
-
return (
|
|
24
|
-
<div className="kombos-filter-box-values">
|
|
25
|
-
{values.map((fv) => (
|
|
26
|
-
<button
|
|
27
|
-
key={fv.name}
|
|
28
|
-
type="button"
|
|
29
|
-
className={cx("kombos-filter-box-values__item", "text-md-medium", fv.isSelected === true && "kombos-filter-box-values__item--active")}
|
|
30
|
-
onClick={() => {
|
|
31
|
-
handleFilterValueClick(productList, filter, fv);
|
|
32
|
-
onFilterChange?.();
|
|
33
|
-
}}
|
|
34
|
-
>
|
|
35
|
-
{fv.name}
|
|
36
|
-
</button>
|
|
37
|
-
))}
|
|
38
|
-
</div>
|
|
39
|
-
);
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
export default FilterBoxValues;
|
package/templates/create-full/src/components/CategoryList/components/FilterBoxValues/styles.css
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/* ===== Filter Box Values ===== */
|
|
2
|
-
|
|
3
|
-
.kombos-filter-box-values {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-wrap: wrap;
|
|
6
|
-
gap: 0.5rem;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.kombos-filter-box-values__item {
|
|
10
|
-
padding: 0.3125rem 0.6875rem;
|
|
11
|
-
border-radius: 6px;
|
|
12
|
-
border: 1px solid var(--kombos-gray-200);
|
|
13
|
-
background: var(--kombos-white);
|
|
14
|
-
color: var(--kombos-gray-700);
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
transition: all 0.15s ease;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.kombos-filter-box-values__item:hover:not(.kombos-filter-box-values__item--active) {
|
|
20
|
-
border-color: var(--kombos-gray-300);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.kombos-filter-box-values__item--active {
|
|
24
|
-
background: var(--kombos-gray-900);
|
|
25
|
-
color: var(--kombos-white);
|
|
26
|
-
border-color: var(--kombos-gray-900);
|
|
27
|
-
}
|
package/templates/create-full/src/components/CategoryList/components/FilterCategoryList/index.tsx
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IkasProductList,
|
|
3
|
-
IkasFilterCategory,
|
|
4
|
-
onFilterCategoryClick,
|
|
5
|
-
} from "@ikas/bp-storefront";
|
|
6
|
-
import { observer } from "@ikas/component-utils";
|
|
7
|
-
import { cx } from "../../../../utils/cx";
|
|
8
|
-
|
|
9
|
-
interface Props {
|
|
10
|
-
productList: IkasProductList;
|
|
11
|
-
categories: IkasFilterCategory[];
|
|
12
|
-
className?: string;
|
|
13
|
-
onFilterChange?: () => void;
|
|
14
|
-
isBrandPage?: boolean;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const FilterCategoryList = observer(function FilterCategoryList({
|
|
18
|
-
productList,
|
|
19
|
-
categories,
|
|
20
|
-
className,
|
|
21
|
-
onFilterChange,
|
|
22
|
-
isBrandPage = false,
|
|
23
|
-
}: Props) {
|
|
24
|
-
return (
|
|
25
|
-
<div className={cx("kombos-filter-category-list", className)}>
|
|
26
|
-
{categories.map((cat) => (
|
|
27
|
-
<button
|
|
28
|
-
key={cat.name}
|
|
29
|
-
type="button"
|
|
30
|
-
className="kombos-filter-category-list__link text-sm-medium"
|
|
31
|
-
onClick={() => {
|
|
32
|
-
onFilterCategoryClick(productList, cat, isBrandPage);
|
|
33
|
-
onFilterChange?.();
|
|
34
|
-
}}
|
|
35
|
-
>
|
|
36
|
-
{cat.name}
|
|
37
|
-
</button>
|
|
38
|
-
))}
|
|
39
|
-
</div>
|
|
40
|
-
);
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
export default FilterCategoryList;
|
package/templates/create-full/src/components/CategoryList/components/FilterCategoryList/styles.css
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/* ===== Filter Category List ===== */
|
|
2
|
-
.kombos-filter-category-list {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: 0.5rem;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.kombos-filter-category-list__link {
|
|
9
|
-
background: none;
|
|
10
|
-
border: none;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
padding: 0;
|
|
13
|
-
text-align: left;
|
|
14
|
-
color: var(--kombos-gray-700);
|
|
15
|
-
width: fit-content;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.kombos-filter-category-list__link:hover {
|
|
19
|
-
text-decoration: underline;
|
|
20
|
-
}
|