@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,326 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
customerStore,
|
|
3
|
-
getRegisterForm,
|
|
4
|
-
setRegisterFormFirstName,
|
|
5
|
-
setRegisterFormLastName,
|
|
6
|
-
setRegisterFormEmail,
|
|
7
|
-
setRegisterFormPassword,
|
|
8
|
-
setRegisterFormIsMarketingAccepted,
|
|
9
|
-
setRegisterFormIsMembershipAgreementAccepted,
|
|
10
|
-
submitRegisterForm,
|
|
11
|
-
socialLogin,
|
|
12
|
-
Router,
|
|
13
|
-
} from "@ikas/bp-storefront";
|
|
14
|
-
import { observer } from "@ikas/component-utils";
|
|
15
|
-
|
|
16
|
-
import { Props } from "../../types";
|
|
17
|
-
import Button from "../../../../sub-components/Button";
|
|
18
|
-
import Input from "../../../../sub-components/Input";
|
|
19
|
-
import FormItem from "../../../../sub-components/FormItem";
|
|
20
|
-
import Checkbox from "../../../../sub-components/Checkbox";
|
|
21
|
-
import SocialLoginButton from "../../../../sub-components/SocialLoginButton";
|
|
22
|
-
import { GoogleSVG, FacebookSVG } from "../../../../sub-components/icons";
|
|
23
|
-
|
|
24
|
-
interface RegisterFormProps extends Props {
|
|
25
|
-
registerForm: ReturnType<typeof getRegisterForm>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const RegisterForm = observer(function RegisterForm({
|
|
29
|
-
registerForm,
|
|
30
|
-
title = "Create Account",
|
|
31
|
-
subtitle = "Create your free account and start shopping.",
|
|
32
|
-
firstNameLabel = "First Name",
|
|
33
|
-
lastNameLabel = "Last Name",
|
|
34
|
-
emailLabel = "Email",
|
|
35
|
-
passwordLabel = "Password",
|
|
36
|
-
firstNamePlaceholder,
|
|
37
|
-
lastNamePlaceholder,
|
|
38
|
-
emailPlaceholder,
|
|
39
|
-
passwordPlaceholder = "Enter your password",
|
|
40
|
-
submitButtonText = "Sign Up",
|
|
41
|
-
submittingButtonText = "Signing up...",
|
|
42
|
-
loginLinkText = "Already have an account? Sign in",
|
|
43
|
-
marketingConsentText = "I want to receive emails about campaigns and promotions",
|
|
44
|
-
agreementConsentText = "I accept the membership agreement",
|
|
45
|
-
googleButtonText = "Sign up with Google",
|
|
46
|
-
facebookButtonText = "Sign up with Facebook",
|
|
47
|
-
dividerText = "or",
|
|
48
|
-
showGoogleLogin = false,
|
|
49
|
-
showFacebookLogin = false,
|
|
50
|
-
marketingConsentLink,
|
|
51
|
-
agreementConsentLink,
|
|
52
|
-
}: RegisterFormProps) {
|
|
53
|
-
const resolvedFirstNamePlaceholder = firstNamePlaceholder || firstNameLabel;
|
|
54
|
-
const resolvedLastNamePlaceholder = lastNamePlaceholder || lastNameLabel;
|
|
55
|
-
const resolvedEmailPlaceholder = emailPlaceholder || emailLabel;
|
|
56
|
-
|
|
57
|
-
const showSocialLogin = showGoogleLogin || showFacebookLogin;
|
|
58
|
-
|
|
59
|
-
const handleSubmit = async (e: Event) => {
|
|
60
|
-
e.preventDefault();
|
|
61
|
-
const success = await submitRegisterForm(registerForm);
|
|
62
|
-
if (success) {
|
|
63
|
-
Router.navigateToPage("ACCOUNT");
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
return (
|
|
68
|
-
<div className="register__container">
|
|
69
|
-
<div className="register__header">
|
|
70
|
-
<h1 className="register__title text-xl-medium md:display-xs-medium">
|
|
71
|
-
{title}
|
|
72
|
-
</h1>
|
|
73
|
-
<div
|
|
74
|
-
className="register__subtitle text-sm-regular"
|
|
75
|
-
dangerouslySetInnerHTML={{ __html: subtitle }}
|
|
76
|
-
/>
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
{registerForm.isFailure && registerForm.responseMessage && (
|
|
80
|
-
<div className="register__error-banner text-sm-regular">
|
|
81
|
-
{registerForm.responseMessage}
|
|
82
|
-
</div>
|
|
83
|
-
)}
|
|
84
|
-
|
|
85
|
-
{showSocialLogin && (
|
|
86
|
-
<div className="register__social">
|
|
87
|
-
{showGoogleLogin && (
|
|
88
|
-
<SocialLoginButton
|
|
89
|
-
icon={<GoogleSVG />}
|
|
90
|
-
onClick={() => socialLogin(customerStore, "google")}
|
|
91
|
-
>
|
|
92
|
-
{googleButtonText}
|
|
93
|
-
</SocialLoginButton>
|
|
94
|
-
)}
|
|
95
|
-
{showFacebookLogin && (
|
|
96
|
-
<SocialLoginButton
|
|
97
|
-
icon={<FacebookSVG />}
|
|
98
|
-
onClick={() => socialLogin(customerStore, "facebook")}
|
|
99
|
-
>
|
|
100
|
-
{facebookButtonText}
|
|
101
|
-
</SocialLoginButton>
|
|
102
|
-
)}
|
|
103
|
-
</div>
|
|
104
|
-
)}
|
|
105
|
-
|
|
106
|
-
{showSocialLogin && (
|
|
107
|
-
<div className="register__divider">
|
|
108
|
-
<span className="register__divider-line" />
|
|
109
|
-
<span className="register__divider-text text-xs-regular">
|
|
110
|
-
{dividerText}
|
|
111
|
-
</span>
|
|
112
|
-
<span className="register__divider-line" />
|
|
113
|
-
</div>
|
|
114
|
-
)}
|
|
115
|
-
|
|
116
|
-
<form className="register__form" onSubmit={handleSubmit}>
|
|
117
|
-
<FormItem
|
|
118
|
-
label={firstNameLabel}
|
|
119
|
-
htmlFor="register-first-name"
|
|
120
|
-
status={registerForm.firstName?.hasError ? "error" : "default"}
|
|
121
|
-
helper={
|
|
122
|
-
registerForm.firstName?.hasError
|
|
123
|
-
? registerForm.firstName.message
|
|
124
|
-
: undefined
|
|
125
|
-
}
|
|
126
|
-
>
|
|
127
|
-
<Input
|
|
128
|
-
id="register-first-name"
|
|
129
|
-
name="given-name"
|
|
130
|
-
autoComplete="given-name"
|
|
131
|
-
placeholder={resolvedFirstNamePlaceholder}
|
|
132
|
-
value={registerForm.firstName?.value ?? ""}
|
|
133
|
-
onInput={(e: Event) =>
|
|
134
|
-
setRegisterFormFirstName(
|
|
135
|
-
registerForm,
|
|
136
|
-
(e.target as HTMLInputElement).value,
|
|
137
|
-
)
|
|
138
|
-
}
|
|
139
|
-
/>
|
|
140
|
-
</FormItem>
|
|
141
|
-
|
|
142
|
-
<FormItem
|
|
143
|
-
label={lastNameLabel}
|
|
144
|
-
htmlFor="register-last-name"
|
|
145
|
-
status={registerForm.lastName?.hasError ? "error" : "default"}
|
|
146
|
-
helper={
|
|
147
|
-
registerForm.lastName?.hasError
|
|
148
|
-
? registerForm.lastName.message
|
|
149
|
-
: undefined
|
|
150
|
-
}
|
|
151
|
-
>
|
|
152
|
-
<Input
|
|
153
|
-
id="register-last-name"
|
|
154
|
-
name="family-name"
|
|
155
|
-
autoComplete="family-name"
|
|
156
|
-
placeholder={resolvedLastNamePlaceholder}
|
|
157
|
-
value={registerForm.lastName?.value ?? ""}
|
|
158
|
-
onInput={(e: Event) =>
|
|
159
|
-
setRegisterFormLastName(
|
|
160
|
-
registerForm,
|
|
161
|
-
(e.target as HTMLInputElement).value,
|
|
162
|
-
)
|
|
163
|
-
}
|
|
164
|
-
/>
|
|
165
|
-
</FormItem>
|
|
166
|
-
|
|
167
|
-
<FormItem
|
|
168
|
-
label={emailLabel}
|
|
169
|
-
htmlFor="register-email"
|
|
170
|
-
status={registerForm.email?.hasError ? "error" : "default"}
|
|
171
|
-
helper={
|
|
172
|
-
registerForm.email?.hasError
|
|
173
|
-
? registerForm.email.message
|
|
174
|
-
: undefined
|
|
175
|
-
}
|
|
176
|
-
>
|
|
177
|
-
<Input
|
|
178
|
-
id="register-email"
|
|
179
|
-
type="email"
|
|
180
|
-
name="email"
|
|
181
|
-
autoComplete="email"
|
|
182
|
-
placeholder={resolvedEmailPlaceholder}
|
|
183
|
-
value={registerForm.email?.value ?? ""}
|
|
184
|
-
onInput={(e: Event) =>
|
|
185
|
-
setRegisterFormEmail(
|
|
186
|
-
registerForm,
|
|
187
|
-
(e.target as HTMLInputElement).value,
|
|
188
|
-
)
|
|
189
|
-
}
|
|
190
|
-
/>
|
|
191
|
-
</FormItem>
|
|
192
|
-
|
|
193
|
-
<FormItem
|
|
194
|
-
label={passwordLabel}
|
|
195
|
-
htmlFor="register-password"
|
|
196
|
-
status={registerForm.password?.hasError ? "error" : "default"}
|
|
197
|
-
helper={
|
|
198
|
-
registerForm.password?.hasError
|
|
199
|
-
? registerForm.password.message
|
|
200
|
-
: undefined
|
|
201
|
-
}
|
|
202
|
-
>
|
|
203
|
-
<Input
|
|
204
|
-
id="register-password"
|
|
205
|
-
password
|
|
206
|
-
name="new-password"
|
|
207
|
-
autoComplete="new-password"
|
|
208
|
-
placeholder={passwordPlaceholder}
|
|
209
|
-
value={registerForm.password?.value ?? ""}
|
|
210
|
-
onInput={(e: Event) =>
|
|
211
|
-
setRegisterFormPassword(
|
|
212
|
-
registerForm,
|
|
213
|
-
(e.target as HTMLInputElement).value,
|
|
214
|
-
)
|
|
215
|
-
}
|
|
216
|
-
/>
|
|
217
|
-
</FormItem>
|
|
218
|
-
|
|
219
|
-
<div className="register__consents">
|
|
220
|
-
<div className="register__consent-field">
|
|
221
|
-
<div className="register__consent-row">
|
|
222
|
-
<Checkbox
|
|
223
|
-
checked={registerForm.isMarketingAccepted?.value ?? false}
|
|
224
|
-
onChange={(checked) =>
|
|
225
|
-
setRegisterFormIsMarketingAccepted(registerForm, checked)
|
|
226
|
-
}
|
|
227
|
-
/>
|
|
228
|
-
{marketingConsentLink?.href ? (
|
|
229
|
-
<a
|
|
230
|
-
className="register__consent-label text-sm-regular"
|
|
231
|
-
href={marketingConsentLink.href}
|
|
232
|
-
target={
|
|
233
|
-
marketingConsentLink.openInNewTab ? "_blank" : undefined
|
|
234
|
-
}
|
|
235
|
-
rel={
|
|
236
|
-
marketingConsentLink.openInNewTab
|
|
237
|
-
? "noopener noreferrer"
|
|
238
|
-
: undefined
|
|
239
|
-
}
|
|
240
|
-
dangerouslySetInnerHTML={{ __html: marketingConsentText }}
|
|
241
|
-
/>
|
|
242
|
-
) : (
|
|
243
|
-
<span
|
|
244
|
-
className="register__consent-label text-sm-regular"
|
|
245
|
-
dangerouslySetInnerHTML={{ __html: marketingConsentText }}
|
|
246
|
-
/>
|
|
247
|
-
)}
|
|
248
|
-
</div>
|
|
249
|
-
{registerForm.isMarketingAccepted?.hasError && (
|
|
250
|
-
<span className="register__consent-error text-xs-regular">
|
|
251
|
-
{registerForm.isMarketingAccepted.message}
|
|
252
|
-
</span>
|
|
253
|
-
)}
|
|
254
|
-
</div>
|
|
255
|
-
|
|
256
|
-
<div className="register__consent-field">
|
|
257
|
-
<div className="register__consent-row">
|
|
258
|
-
<Checkbox
|
|
259
|
-
checked={
|
|
260
|
-
registerForm.isMembershipAgreementAccepted?.value ?? false
|
|
261
|
-
}
|
|
262
|
-
onChange={(checked) =>
|
|
263
|
-
setRegisterFormIsMembershipAgreementAccepted(
|
|
264
|
-
registerForm,
|
|
265
|
-
checked,
|
|
266
|
-
)
|
|
267
|
-
}
|
|
268
|
-
status={
|
|
269
|
-
registerForm.isMembershipAgreementAccepted?.hasError
|
|
270
|
-
? "error"
|
|
271
|
-
: "default"
|
|
272
|
-
}
|
|
273
|
-
/>
|
|
274
|
-
{agreementConsentLink?.href ? (
|
|
275
|
-
<a
|
|
276
|
-
className="register__consent-label text-sm-regular"
|
|
277
|
-
href={agreementConsentLink.href}
|
|
278
|
-
target={
|
|
279
|
-
agreementConsentLink.openInNewTab ? "_blank" : undefined
|
|
280
|
-
}
|
|
281
|
-
rel={
|
|
282
|
-
agreementConsentLink.openInNewTab
|
|
283
|
-
? "noopener noreferrer"
|
|
284
|
-
: undefined
|
|
285
|
-
}
|
|
286
|
-
dangerouslySetInnerHTML={{ __html: agreementConsentText }}
|
|
287
|
-
/>
|
|
288
|
-
) : (
|
|
289
|
-
<span
|
|
290
|
-
className="register__consent-label text-sm-regular"
|
|
291
|
-
dangerouslySetInnerHTML={{ __html: agreementConsentText }}
|
|
292
|
-
/>
|
|
293
|
-
)}
|
|
294
|
-
</div>
|
|
295
|
-
{registerForm.isMembershipAgreementAccepted?.hasError && (
|
|
296
|
-
<span className="register__consent-error text-xs-regular">
|
|
297
|
-
{registerForm.isMembershipAgreementAccepted.message}
|
|
298
|
-
</span>
|
|
299
|
-
)}
|
|
300
|
-
</div>
|
|
301
|
-
</div>
|
|
302
|
-
|
|
303
|
-
<Button
|
|
304
|
-
variant="primary"
|
|
305
|
-
size="s"
|
|
306
|
-
className="register__submit-btn"
|
|
307
|
-
disabled={registerForm.isSubmitting}
|
|
308
|
-
>
|
|
309
|
-
{registerForm.isSubmitting ? submittingButtonText : submitButtonText}
|
|
310
|
-
</Button>
|
|
311
|
-
</form>
|
|
312
|
-
|
|
313
|
-
<div className="register__footer">
|
|
314
|
-
<button
|
|
315
|
-
type="button"
|
|
316
|
-
className="register__login-link text-sm-medium"
|
|
317
|
-
onClick={() => Router.navigateToPage("LOGIN")}
|
|
318
|
-
>
|
|
319
|
-
{loginLinkText}
|
|
320
|
-
</button>
|
|
321
|
-
</div>
|
|
322
|
-
</div>
|
|
323
|
-
);
|
|
324
|
-
});
|
|
325
|
-
|
|
326
|
-
export default RegisterForm;
|
|
File without changes
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
customerStore,
|
|
3
|
-
getRegisterForm,
|
|
4
|
-
initRegisterForm,
|
|
5
|
-
} from "@ikas/bp-storefront";
|
|
6
|
-
import { useRedirectIfLoggedIn } from "../../hooks/useRedirectIfLoggedIn";
|
|
7
|
-
|
|
8
|
-
import { Props } from "./types";
|
|
9
|
-
import RegisterForm from "./components/RegisterForm";
|
|
10
|
-
import PageLoader from "../../sub-components/PageLoader";
|
|
11
|
-
|
|
12
|
-
export function Register(props: Props) {
|
|
13
|
-
const registerForm = getRegisterForm(customerStore);
|
|
14
|
-
|
|
15
|
-
const isChecking = useRedirectIfLoggedIn(() => {
|
|
16
|
-
initRegisterForm(registerForm);
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
if (isChecking) return <PageLoader />;
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<section className="register">
|
|
23
|
-
<div className="register__wrapper kombos-container">
|
|
24
|
-
<RegisterForm registerForm={registerForm} {...props} />
|
|
25
|
-
</div>
|
|
26
|
-
</section>
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export default Register;
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
.register {
|
|
2
|
-
width: 100%;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.register__wrapper {
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
align-items: flex-start;
|
|
9
|
-
padding-top: 1rem;
|
|
10
|
-
padding-bottom: 1rem;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.register__container {
|
|
14
|
-
width: 100%;
|
|
15
|
-
max-width: 29rem;
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
gap: 1.5rem;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.register__header {
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
gap: 0.5rem;
|
|
25
|
-
text-align: center;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.register__title {
|
|
29
|
-
color: var(--kombos-gray-900);
|
|
30
|
-
margin: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.register__subtitle {
|
|
34
|
-
color: var(--kombos-gray-500);
|
|
35
|
-
margin: 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.register__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
|
-
/* Social Login */
|
|
47
|
-
.register__social {
|
|
48
|
-
display: flex;
|
|
49
|
-
flex-direction: column;
|
|
50
|
-
gap: 0.75rem;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* Divider */
|
|
54
|
-
.register__divider {
|
|
55
|
-
display: flex;
|
|
56
|
-
align-items: center;
|
|
57
|
-
gap: 1rem;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.register__divider-line {
|
|
61
|
-
flex: 1;
|
|
62
|
-
height: 1px;
|
|
63
|
-
background: var(--kombos-gray-200);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.register__divider-text {
|
|
67
|
-
color: var(--kombos-gray-500);
|
|
68
|
-
white-space: nowrap;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Form */
|
|
72
|
-
.register__form {
|
|
73
|
-
display: flex;
|
|
74
|
-
flex-direction: column;
|
|
75
|
-
gap: 1rem;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/* Consents */
|
|
79
|
-
.register__consents {
|
|
80
|
-
display: flex;
|
|
81
|
-
flex-direction: column;
|
|
82
|
-
gap: 0.75rem;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.register__consent-field {
|
|
86
|
-
display: flex;
|
|
87
|
-
flex-direction: column;
|
|
88
|
-
gap: 0.25rem;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.register__consent-row {
|
|
92
|
-
display: flex;
|
|
93
|
-
align-items: flex-start;
|
|
94
|
-
gap: 0.5rem;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.register__consent-row > .kombos-checkbox {
|
|
98
|
-
margin-top: 3px;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.register__consent-error {
|
|
102
|
-
color: var(--kombos-error);
|
|
103
|
-
padding-left: 1.5rem;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.register__consent-label {
|
|
107
|
-
color: var(--kombos-gray-700);
|
|
108
|
-
margin-top: 1px;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
a.register__consent-label {
|
|
112
|
-
text-decoration: none;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
a.register__consent-label:hover {
|
|
116
|
-
color: var(--kombos-gray-900);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.register__submit-btn {
|
|
120
|
-
width: 100%;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.register__footer {
|
|
124
|
-
text-align: center;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.register__login-link {
|
|
128
|
-
background: none;
|
|
129
|
-
border: none;
|
|
130
|
-
padding: 0;
|
|
131
|
-
color: var(--kombos-gray-700);
|
|
132
|
-
cursor: pointer;
|
|
133
|
-
text-decoration: underline;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.register__login-link:hover {
|
|
137
|
-
color: var(--kombos-gray-900);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
@media (min-width: 768px) {
|
|
141
|
-
.register__wrapper {
|
|
142
|
-
padding-top: 1.5rem;
|
|
143
|
-
padding-bottom: 1.5rem;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
@media (min-width: 1024px) {
|
|
148
|
-
.register__wrapper {
|
|
149
|
-
padding-top: 2rem;
|
|
150
|
-
padding-bottom: 2rem;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated — do not edit manually.
|
|
2
|
-
import type { IkasNavigationLink } from "@ikas/bp-storefront";
|
|
3
|
-
|
|
4
|
-
export interface Props {
|
|
5
|
-
title?: string;
|
|
6
|
-
subtitle?: string;
|
|
7
|
-
firstNameLabel?: string;
|
|
8
|
-
firstNamePlaceholder?: string;
|
|
9
|
-
lastNameLabel?: string;
|
|
10
|
-
lastNamePlaceholder?: string;
|
|
11
|
-
emailLabel?: string;
|
|
12
|
-
emailPlaceholder?: string;
|
|
13
|
-
passwordLabel?: string;
|
|
14
|
-
passwordPlaceholder?: string;
|
|
15
|
-
submitButtonText?: string;
|
|
16
|
-
submittingButtonText?: string;
|
|
17
|
-
loginLinkText?: string;
|
|
18
|
-
marketingConsentText?: string;
|
|
19
|
-
marketingConsentLink?: IkasNavigationLink | null;
|
|
20
|
-
agreementConsentText?: string;
|
|
21
|
-
agreementConsentLink?: IkasNavigationLink | null;
|
|
22
|
-
showGoogleLogin?: boolean;
|
|
23
|
-
googleButtonText?: string;
|
|
24
|
-
showFacebookLogin?: boolean;
|
|
25
|
-
facebookButtonText?: string;
|
|
26
|
-
dividerText?: string;
|
|
27
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Props } from "./types";
|
|
2
|
-
|
|
3
|
-
export function RichText({ title, content }: Props) {
|
|
4
|
-
if (!title && !content) return null;
|
|
5
|
-
|
|
6
|
-
return (
|
|
7
|
-
<section className="kombos-rich-text">
|
|
8
|
-
<div className="kombos-container">
|
|
9
|
-
{title && (
|
|
10
|
-
<h2 className="kombos-rich-text__title display-xs-semibold">
|
|
11
|
-
{title}
|
|
12
|
-
</h2>
|
|
13
|
-
)}
|
|
14
|
-
{content && (
|
|
15
|
-
<div
|
|
16
|
-
className="kombos-rich-text__content text-md-regular kombos-richtext"
|
|
17
|
-
dangerouslySetInnerHTML={{ __html: content }}
|
|
18
|
-
/>
|
|
19
|
-
)}
|
|
20
|
-
</div>
|
|
21
|
-
</section>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export default RichText;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
.kombos-rich-text {
|
|
2
|
-
width: 100%;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.kombos-rich-text .kombos-container {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
gap: 1.5rem;
|
|
9
|
-
max-width: 50rem;
|
|
10
|
-
padding-top: 2.5rem;
|
|
11
|
-
padding-bottom: 2.5rem;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.kombos-rich-text__title {
|
|
15
|
-
color: var(--kombos-gray-900);
|
|
16
|
-
margin: 0;
|
|
17
|
-
text-align: center;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.kombos-rich-text__content {
|
|
21
|
-
color: var(--kombos-gray-700);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.kombos-rich-text__content a {
|
|
25
|
-
color: var(--kombos-gray-900);
|
|
26
|
-
text-decoration: underline;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.kombos-rich-text__content a:hover {
|
|
30
|
-
color: var(--kombos-gray-700);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.kombos-rich-text__content img {
|
|
34
|
-
max-width: 100%;
|
|
35
|
-
height: auto;
|
|
36
|
-
border-radius: 6px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@media (min-width: 768px) {
|
|
40
|
-
.kombos-rich-text .kombos-container {
|
|
41
|
-
padding-top: 3rem;
|
|
42
|
-
padding-bottom: 3rem;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@media (min-width: 1024px) {
|
|
47
|
-
.kombos-rich-text .kombos-container {
|
|
48
|
-
padding-top: 4rem;
|
|
49
|
-
padding-bottom: 4rem;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { getDefaultSrc, createMediaSrcset } from "@ikas/bp-storefront";
|
|
2
|
-
import { Props } from "./types";
|
|
3
|
-
|
|
4
|
-
export function SocialMediaIcon({ icon, link }: Props) {
|
|
5
|
-
if (!icon) return null;
|
|
6
|
-
|
|
7
|
-
return (
|
|
8
|
-
<a
|
|
9
|
-
href={link?.href}
|
|
10
|
-
target={link?.openInNewTab ? "_blank" : undefined}
|
|
11
|
-
rel={link?.openInNewTab ? "noopener noreferrer" : undefined}
|
|
12
|
-
aria-label={link?.label || undefined}
|
|
13
|
-
className="kombos-social-media-icon"
|
|
14
|
-
>
|
|
15
|
-
<img
|
|
16
|
-
src={getDefaultSrc(icon)}
|
|
17
|
-
srcSet={createMediaSrcset(icon)}
|
|
18
|
-
sizes="20px"
|
|
19
|
-
alt={link?.label || ""}
|
|
20
|
-
className="kombos-social-media-icon__img"
|
|
21
|
-
/>
|
|
22
|
-
</a>
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export default SocialMediaIcon;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
.kombos-social-media-icon {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
text-decoration: none;
|
|
6
|
-
transition: opacity 0.15s ease;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.kombos-social-media-icon:hover {
|
|
10
|
-
opacity: 0.7;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.kombos-social-media-icon__img {
|
|
14
|
-
width: 1.25rem;
|
|
15
|
-
height: 1.25rem;
|
|
16
|
-
object-fit: contain;
|
|
17
|
-
}
|