@ikas/code-components-mcp 0.116.0 → 0.117.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/data/section-templates/account-info-section/children/AccountAddresses/components/AddressModal/index.tsx +6 -9
- package/data/section-templates/account-info-section/children/AccountAddresses/components/AddressModal/styles.css +1 -0
- package/data/section-templates/account-info-section/children/AccountAddresses/ikas-config-snippet.json +30 -30
- package/data/section-templates/account-info-section/children/AccountAddresses/index.tsx +12 -12
- package/data/section-templates/account-info-section/children/AccountAddresses/types.ts +1 -0
- package/data/section-templates/account-info-section/children/AccountFavorites/ikas-config-snippet.json +9 -9
- package/data/section-templates/account-info-section/children/AccountFavorites/index.tsx +3 -3
- package/data/section-templates/account-info-section/children/AccountFavorites/types.ts +1 -0
- package/data/section-templates/account-info-section/children/AccountInfoContent/ikas-config-snippet.json +16 -16
- package/data/section-templates/account-info-section/children/AccountInfoContent/index.tsx +5 -5
- package/data/section-templates/account-info-section/children/AccountInfoContent/types.ts +1 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/ikas-config-snippet.json +74 -74
- package/data/section-templates/account-info-section/children/AccountOrderDetail/index.tsx +29 -29
- package/data/section-templates/account-info-section/children/AccountOrderDetail/types.ts +1 -0
- package/data/section-templates/account-info-section/children/AccountOrders/ikas-config-snippet.json +20 -20
- package/data/section-templates/account-info-section/children/AccountOrders/index.tsx +8 -8
- package/data/section-templates/account-info-section/children/AccountOrders/types.ts +1 -0
- package/data/section-templates/account-info-section/global-types.ts +0 -2
- package/data/section-templates/account-info-section/hooks/useScrollLock.ts +0 -4
- package/data/section-templates/account-info-section/ikas-config-snippet.json +13 -13
- package/data/section-templates/account-info-section/index.tsx +5 -5
- package/data/section-templates/account-info-section/sub-components/Modal/index.tsx +4 -2
- package/data/section-templates/account-info-section/sub-components/ProductCard/index.tsx +4 -4
- package/data/section-templates/account-info-section/types.ts +1 -0
- package/data/section-templates/add-to-cart/ikas-config-snippet.json +30 -30
- package/data/section-templates/add-to-cart/index.tsx +7 -7
- package/data/section-templates/add-to-cart/types.ts +1 -0
- package/data/section-templates/blog-home-section/global-types.ts +0 -2
- package/data/section-templates/blog-home-section/ikas-config-snippet.json +18 -18
- package/data/section-templates/blog-home-section/index.tsx +3 -3
- package/data/section-templates/blog-home-section/types.ts +1 -0
- package/data/section-templates/blog-post-section/global-types.ts +0 -2
- package/data/section-templates/blog-post-section/ikas-config-snippet.json +15 -15
- package/data/section-templates/blog-post-section/index.tsx +3 -3
- package/data/section-templates/blog-post-section/types.ts +1 -0
- package/data/section-templates/bundle-products/global-types.ts +0 -2
- package/data/section-templates/bundle-products/ikas-config-snippet.json +25 -25
- package/data/section-templates/bundle-products/index.tsx +3 -3
- package/data/section-templates/bundle-products/types.ts +1 -0
- package/data/section-templates/cart-section/global-types.ts +0 -2
- package/data/section-templates/cart-section/ikas-config-snippet.json +32 -32
- package/data/section-templates/cart-section/index.tsx +13 -13
- package/data/section-templates/cart-section/sub-components/CartItem/components/BundleProducts/index.tsx +1 -1
- package/data/section-templates/cart-section/types.ts +1 -0
- package/data/section-templates/category-images-section/children/CategoryImageItem/ikas-config-snippet.json +12 -12
- package/data/section-templates/category-images-section/children/CategoryImageItem/types.ts +1 -0
- package/data/section-templates/category-images-section/global-types.ts +0 -2
- package/data/section-templates/category-images-section/ikas-config-snippet.json +11 -11
- package/data/section-templates/category-images-section/types.ts +1 -0
- package/data/section-templates/category-list-section/children/CardProductName/ikas-config-snippet.json +2 -2
- package/data/section-templates/category-list-section/children/CardProductName/types.ts +1 -0
- package/data/section-templates/category-list-section/children/CardProductPrice/ikas-config-snippet.json +1 -1
- package/data/section-templates/category-list-section/children/CardProductPrice/types.ts +1 -0
- package/data/section-templates/category-list-section/children/CardProductVariants/ikas-config-snippet.json +1 -1
- package/data/section-templates/category-list-section/children/CardProductVariants/types.ts +1 -0
- package/data/section-templates/category-list-section/components/CategoryListControls/index.tsx +1 -1
- package/data/section-templates/category-list-section/global-types.ts +0 -2
- package/data/section-templates/category-list-section/hooks/useScrollLock.ts +0 -4
- package/data/section-templates/category-list-section/ikas-config-snippet.json +50 -50
- package/data/section-templates/category-list-section/index.tsx +13 -13
- package/data/section-templates/category-list-section/sub-components/ProductCard/index.tsx +4 -4
- package/data/section-templates/category-list-section/types.ts +1 -0
- package/data/section-templates/component-renderer/additional/Features/types.ts +1 -0
- package/data/section-templates/component-renderer/additional/ProductDetail/index.tsx +1 -1
- package/data/section-templates/component-renderer/additional/ProductDetail/types.ts +1 -0
- package/data/section-templates/component-renderer/global-types.ts +0 -2
- package/data/section-templates/component-renderer/ikas-config-snippet.json +5 -5
- package/data/section-templates/component-renderer/types.ts +1 -0
- package/data/section-templates/email-verification-section/ikas-config-snippet.json +36 -36
- package/data/section-templates/email-verification-section/index.tsx +14 -14
- package/data/section-templates/email-verification-section/types.ts +1 -0
- package/data/section-templates/favorites/ikas-config-snippet.json +12 -12
- package/data/section-templates/favorites/types.ts +1 -0
- package/data/section-templates/features-section/children/FeatureItem/ikas-config-snippet.json +2 -2
- package/data/section-templates/features-section/children/FeatureItem/types.ts +1 -0
- package/data/section-templates/features-section/ikas-config-snippet.json +2 -2
- package/data/section-templates/features-section/types.ts +1 -0
- package/data/section-templates/footer-section/children/SocialMediaIcon/ikas-config-snippet.json +1 -1
- package/data/section-templates/footer-section/children/SocialMediaIcon/types.ts +1 -0
- package/data/section-templates/footer-section/ikas-config-snippet.json +19 -19
- package/data/section-templates/footer-section/index.tsx +3 -3
- package/data/section-templates/footer-section/types.ts +1 -0
- package/data/section-templates/forgot-password-section/components/ForgotPasswordForm/index.tsx +10 -10
- package/data/section-templates/forgot-password-section/ikas-config-snippet.json +29 -29
- package/data/section-templates/forgot-password-section/types.ts +1 -0
- package/data/section-templates/header-section/children/Announcements/ikas-config-snippet.json +9 -9
- package/data/section-templates/header-section/children/Announcements/types.ts +1 -0
- package/data/section-templates/header-section/children/CookieBar/ikas-config-snippet.json +15 -15
- package/data/section-templates/header-section/children/CookieBar/types.ts +1 -0
- package/data/section-templates/header-section/children/Navbar/components/MobileMenu/index.tsx +1 -1
- package/data/section-templates/header-section/children/Navbar/ikas-config-snippet.json +68 -68
- package/data/section-templates/header-section/children/Navbar/index.tsx +19 -19
- package/data/section-templates/header-section/children/Navbar/types.ts +1 -0
- package/data/section-templates/header-section/global-types.ts +0 -2
- package/data/section-templates/header-section/hooks/useScrollLock.ts +0 -4
- package/data/section-templates/header-section/ikas-config-snippet.json +5 -5
- package/data/section-templates/header-section/sub-components/CartItem/components/BundleProducts/index.tsx +1 -1
- package/data/section-templates/header-section/sub-components/ProductCard/index.tsx +4 -4
- package/data/section-templates/header-section/types.ts +1 -0
- package/data/section-templates/hero-slider-section/children/HeroSliderItem/ikas-config-snippet.json +34 -34
- package/data/section-templates/hero-slider-section/children/HeroSliderItem/types.ts +1 -0
- package/data/section-templates/hero-slider-section/global-types.ts +0 -2
- package/data/section-templates/hero-slider-section/ikas-config-snippet.json +10 -10
- package/data/section-templates/hero-slider-section/types.ts +1 -0
- package/data/section-templates/image-handling/global-types.ts +0 -2
- package/data/section-templates/image-handling/ikas-config-snippet.json +16 -16
- package/data/section-templates/image-handling/index.tsx +1 -1
- package/data/section-templates/image-handling/types.ts +1 -0
- package/data/section-templates/login-section/components/LoginForm/index.tsx +13 -13
- package/data/section-templates/login-section/ikas-config-snippet.json +38 -38
- package/data/section-templates/login-section/types.ts +1 -0
- package/data/section-templates/navigation/components/MobileMenu/index.tsx +1 -1
- package/data/section-templates/navigation/global-types.ts +0 -2
- package/data/section-templates/navigation/hooks/useScrollLock.ts +0 -4
- package/data/section-templates/navigation/ikas-config-snippet.json +68 -68
- package/data/section-templates/navigation/index.tsx +19 -19
- package/data/section-templates/navigation/sub-components/CartItem/components/BundleProducts/index.tsx +1 -1
- package/data/section-templates/navigation/sub-components/ProductCard/index.tsx +4 -4
- package/data/section-templates/navigation/types.ts +1 -0
- package/data/section-templates/not-found-section/ikas-config-snippet.json +9 -9
- package/data/section-templates/not-found-section/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/ikas-config-snippet.json +30 -30
- package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/index.tsx +7 -7
- package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/ikas-config-snippet.json +33 -33
- package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/index.tsx +8 -8
- package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/ikas-config-snippet.json +25 -25
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/index.tsx +3 -3
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailDescription/ikas-config-snippet.json +19 -19
- package/data/section-templates/product-detail-section/children/ProductDetailDescription/index.tsx +1 -1
- package/data/section-templates/product-detail-section/children/ProductDetailDescription/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailFeatures/ikas-config-snippet.json +11 -11
- package/data/section-templates/product-detail-section/children/ProductDetailFeatures/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailNameFavorite/ikas-config-snippet.json +12 -12
- package/data/section-templates/product-detail-section/children/ProductDetailNameFavorite/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/components/OfferCard/index.tsx +2 -2
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/ikas-config-snippet.json +39 -39
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/index.tsx +9 -9
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/ikas-config-snippet.json +31 -31
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/index.tsx +7 -7
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailPrices/ikas-config-snippet.json +11 -11
- package/data/section-templates/product-detail-section/children/ProductDetailPrices/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailProductGroup/ikas-config-snippet.json +11 -11
- package/data/section-templates/product-detail-section/children/ProductDetailProductGroup/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailSku/ikas-config-snippet.json +15 -15
- package/data/section-templates/product-detail-section/children/ProductDetailSku/index.tsx +1 -1
- package/data/section-templates/product-detail-section/children/ProductDetailSku/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailVariant/ikas-config-snippet.json +13 -13
- package/data/section-templates/product-detail-section/children/ProductDetailVariant/types.ts +2 -1
- package/data/section-templates/product-detail-section/global-types.ts +0 -2
- package/data/section-templates/product-detail-section/hooks/useScrollLock.ts +0 -4
- package/data/section-templates/product-detail-section/ikas-config-snippet.json +16 -16
- package/data/section-templates/product-detail-section/index.tsx +1 -1
- package/data/section-templates/product-detail-section/types.ts +1 -0
- package/data/section-templates/product-pricing/ikas-config-snippet.json +11 -11
- package/data/section-templates/product-pricing/types.ts +1 -0
- package/data/section-templates/product-reviews-section/hooks/useScrollLock.ts +0 -4
- package/data/section-templates/product-reviews-section/ikas-config-snippet.json +6 -6
- package/data/section-templates/product-reviews-section/sub-components/Modal/index.tsx +4 -2
- package/data/section-templates/product-reviews-section/types.ts +1 -0
- package/data/section-templates/product-slider-section/children/CardProductName/ikas-config-snippet.json +2 -2
- package/data/section-templates/product-slider-section/children/CardProductName/types.ts +1 -0
- package/data/section-templates/product-slider-section/children/CardProductPrice/ikas-config-snippet.json +1 -1
- package/data/section-templates/product-slider-section/children/CardProductPrice/types.ts +1 -0
- package/data/section-templates/product-slider-section/children/CardProductVariants/ikas-config-snippet.json +1 -1
- package/data/section-templates/product-slider-section/children/CardProductVariants/types.ts +1 -0
- package/data/section-templates/product-slider-section/global-types.ts +0 -2
- package/data/section-templates/product-slider-section/ikas-config-snippet.json +22 -22
- package/data/section-templates/product-slider-section/index.tsx +4 -4
- package/data/section-templates/product-slider-section/sub-components/ProductCard/index.tsx +4 -4
- package/data/section-templates/product-slider-section/types.ts +1 -0
- package/data/section-templates/recover-password-section/components/RecoverPasswordForm/index.tsx +10 -10
- package/data/section-templates/recover-password-section/ikas-config-snippet.json +42 -42
- package/data/section-templates/recover-password-section/types.ts +1 -0
- package/data/section-templates/register-section/components/RegisterForm/index.tsx +15 -15
- package/data/section-templates/register-section/ikas-config-snippet.json +54 -54
- package/data/section-templates/register-section/types.ts +1 -0
- package/data/section-templates/rich-text-section/ikas-config-snippet.json +3 -3
- package/data/section-templates/rich-text-section/types.ts +1 -0
- package/data/section-templates/variant-selection/ikas-config-snippet.json +13 -13
- package/data/section-templates/variant-selection/types.ts +2 -1
- package/data/storefront-api.json +1 -1
- package/data/storefront-types.json +1 -1
- package/dist/index.js +2 -355
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/data/migration-examples/complex-header-migration/_meta.json +0 -4
- package/data/migration-examples/complex-header-migration/after-config-snippet.json +0 -55
- package/data/migration-examples/complex-header-migration/after-section.tsx +0 -64
- package/data/migration-examples/complex-header-migration/before-props-summary.json +0 -42
- package/data/migration-examples/custom-dynamic-list-to-component-list/_meta.json +0 -4
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-child-styles.css +0 -38
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-child.tsx +0 -22
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-config-snippet.json +0 -31
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-section-styles.css +0 -25
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-section.tsx +0 -17
- package/data/migration-examples/custom-dynamic-list-to-component-list/before-component.tsx +0 -32
- package/data/migration-examples/custom-dynamic-list-to-component-list/before-theme-snippet.json +0 -53
- package/data/migration-examples/full-component-with-tailwind/_meta.json +0 -4
- package/data/migration-examples/full-component-with-tailwind/after-component.tsx +0 -43
- package/data/migration-examples/full-component-with-tailwind/after-config-snippet.json +0 -25
- package/data/migration-examples/full-component-with-tailwind/after-styles.css +0 -99
- package/data/migration-examples/full-component-with-tailwind/before-component.tsx +0 -60
- package/data/migration-examples/object-custom-to-inline-props/_meta.json +0 -4
- package/data/migration-examples/object-custom-to-inline-props/after-component.tsx +0 -34
- package/data/migration-examples/object-custom-to-inline-props/after-config-snippet.json +0 -23
- package/data/migration-examples/object-custom-to-inline-props/after-styles.css +0 -38
- package/data/migration-examples/object-custom-to-inline-props/before-component.tsx +0 -30
- package/data/migration-examples/object-custom-to-inline-props/before-theme-snippet.json +0 -26
- package/data/migration-examples/slider-library-replacement/_meta.json +0 -4
- package/data/migration-examples/slider-library-replacement/after-child.tsx +0 -13
- package/data/migration-examples/slider-library-replacement/after-config-snippet.json +0 -29
- package/data/migration-examples/slider-library-replacement/after-section.tsx +0 -38
- package/data/migration-examples/slider-library-replacement/after-styles.css +0 -43
- package/data/migration-examples/slider-library-replacement/before-component.tsx +0 -39
- package/data/migration-examples/slider-library-replacement/before-types-snippet.ts +0 -14
- package/data/migration.json +0 -65
|
@@ -101,10 +101,11 @@ const AddressModal = observer(function AddressModal({
|
|
|
101
101
|
id: string,
|
|
102
102
|
type?: string,
|
|
103
103
|
) => {
|
|
104
|
-
if (!field
|
|
104
|
+
if (!field) return null;
|
|
105
|
+
|
|
105
106
|
return (
|
|
106
107
|
<FormItem
|
|
107
|
-
label={field.label}
|
|
108
|
+
label={field.label ?? ""}
|
|
108
109
|
htmlFor={id}
|
|
109
110
|
status={getFieldStatus(field)}
|
|
110
111
|
helper={getFieldHelper(field)}
|
|
@@ -128,7 +129,7 @@ const AddressModal = observer(function AddressModal({
|
|
|
128
129
|
setter: FormFieldSetter,
|
|
129
130
|
id: string,
|
|
130
131
|
) => {
|
|
131
|
-
if (!field
|
|
132
|
+
if (!field) return null;
|
|
132
133
|
|
|
133
134
|
if (field.isFreeText || !options?.length) {
|
|
134
135
|
return renderInput(field, setter, id);
|
|
@@ -136,7 +137,7 @@ const AddressModal = observer(function AddressModal({
|
|
|
136
137
|
|
|
137
138
|
return (
|
|
138
139
|
<FormItem
|
|
139
|
-
label={field.label}
|
|
140
|
+
label={field.label ?? ""}
|
|
140
141
|
htmlFor={id}
|
|
141
142
|
status={getFieldStatus(field)}
|
|
142
143
|
helper={getFieldHelper(field)}
|
|
@@ -286,11 +287,7 @@ const AddressModal = observer(function AddressModal({
|
|
|
286
287
|
className="kombos-address-modal__form"
|
|
287
288
|
onSubmit={handleSubmit}
|
|
288
289
|
>
|
|
289
|
-
{renderInput(
|
|
290
|
-
addressForm.title,
|
|
291
|
-
setAddressFormTitle,
|
|
292
|
-
"addr-title",
|
|
293
|
-
)}
|
|
290
|
+
{renderInput(addressForm.title, setAddressFormTitle, "addr-title")}
|
|
294
291
|
{renderRowLayout(addressForm.addressFormat ?? [], renderFormField)}
|
|
295
292
|
</form>
|
|
296
293
|
)}
|
|
@@ -7,116 +7,116 @@
|
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
9
9
|
"name": "title",
|
|
10
|
-
"displayName": "
|
|
10
|
+
"displayName": "Title",
|
|
11
11
|
"type": "TEXT",
|
|
12
12
|
"required": false,
|
|
13
|
-
"defaultValue": "
|
|
13
|
+
"defaultValue": "My Addresses",
|
|
14
14
|
"groupId": "general"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "emptyMessage",
|
|
18
|
-
"displayName": "
|
|
18
|
+
"displayName": "Empty State Message",
|
|
19
19
|
"type": "TEXT",
|
|
20
20
|
"required": false,
|
|
21
|
-
"defaultValue": "
|
|
21
|
+
"defaultValue": "No addresses added yet.",
|
|
22
22
|
"groupId": "general"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "addButtonText",
|
|
26
|
-
"displayName": "
|
|
26
|
+
"displayName": "Add Button Text",
|
|
27
27
|
"type": "TEXT",
|
|
28
28
|
"required": false,
|
|
29
|
-
"defaultValue": "
|
|
29
|
+
"defaultValue": "Add Address",
|
|
30
30
|
"groupId": "general"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "editButtonText",
|
|
34
|
-
"displayName": "
|
|
34
|
+
"displayName": "Edit Button Text",
|
|
35
35
|
"type": "TEXT",
|
|
36
36
|
"required": false,
|
|
37
|
-
"defaultValue": "
|
|
37
|
+
"defaultValue": "Edit",
|
|
38
38
|
"groupId": "general"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"name": "modalTitleAdd",
|
|
42
|
-
"displayName": "Modal
|
|
42
|
+
"displayName": "Modal Title (Add)",
|
|
43
43
|
"type": "TEXT",
|
|
44
44
|
"required": false,
|
|
45
|
-
"defaultValue": "
|
|
45
|
+
"defaultValue": "Add Address",
|
|
46
46
|
"groupId": "addressModal"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"name": "modalTitleEdit",
|
|
50
|
-
"displayName": "Modal
|
|
50
|
+
"displayName": "Modal Title (Edit)",
|
|
51
51
|
"type": "TEXT",
|
|
52
52
|
"required": false,
|
|
53
|
-
"defaultValue": "
|
|
53
|
+
"defaultValue": "Edit Address",
|
|
54
54
|
"groupId": "addressModal"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"name": "saveButtonText",
|
|
58
|
-
"displayName": "
|
|
58
|
+
"displayName": "Save Button Text",
|
|
59
59
|
"type": "TEXT",
|
|
60
60
|
"required": false,
|
|
61
|
-
"defaultValue": "
|
|
61
|
+
"defaultValue": "Save",
|
|
62
62
|
"groupId": "addressModal"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"name": "savingButtonText",
|
|
66
|
-
"displayName": "
|
|
66
|
+
"displayName": "Saving Text",
|
|
67
67
|
"type": "TEXT",
|
|
68
68
|
"required": false,
|
|
69
|
-
"defaultValue": "
|
|
69
|
+
"defaultValue": "Saving...",
|
|
70
70
|
"groupId": "addressModal"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"name": "cancelButtonText",
|
|
74
|
-
"displayName": "
|
|
74
|
+
"displayName": "Cancel Button Text",
|
|
75
75
|
"type": "TEXT",
|
|
76
76
|
"required": false,
|
|
77
|
-
"defaultValue": "
|
|
77
|
+
"defaultValue": "Cancel",
|
|
78
78
|
"groupId": "addressModal"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"name": "deleteConfirmTitle",
|
|
82
|
-
"displayName": "
|
|
82
|
+
"displayName": "Delete Confirmation Title",
|
|
83
83
|
"type": "TEXT",
|
|
84
84
|
"required": false,
|
|
85
|
-
"defaultValue": "
|
|
85
|
+
"defaultValue": "Delete Address",
|
|
86
86
|
"groupId": "deleteModal"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
"name": "deleteConfirmMessage",
|
|
90
|
-
"displayName": "
|
|
90
|
+
"displayName": "Delete Confirmation Message",
|
|
91
91
|
"type": "TEXT",
|
|
92
92
|
"required": false,
|
|
93
|
-
"defaultValue": "
|
|
93
|
+
"defaultValue": "Are you sure you want to delete this address?",
|
|
94
94
|
"groupId": "deleteModal"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"name": "deleteButtonText",
|
|
98
|
-
"displayName": "
|
|
98
|
+
"displayName": "Delete Button Text",
|
|
99
99
|
"type": "TEXT",
|
|
100
100
|
"required": false,
|
|
101
|
-
"defaultValue": "
|
|
101
|
+
"defaultValue": "Delete",
|
|
102
102
|
"groupId": "deleteModal"
|
|
103
103
|
}
|
|
104
104
|
],
|
|
105
105
|
"propGroups": [
|
|
106
106
|
{
|
|
107
107
|
"id": "general",
|
|
108
|
-
"name": "
|
|
109
|
-
"description": "
|
|
108
|
+
"name": "General",
|
|
109
|
+
"description": "Page title, empty state message, and button texts"
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
"id": "addressModal",
|
|
113
|
-
"name": "
|
|
114
|
-
"description": "
|
|
113
|
+
"name": "Address Form Modal",
|
|
114
|
+
"description": "Title and button texts in the address add and edit modal"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"id": "deleteModal",
|
|
118
|
-
"name": "
|
|
119
|
-
"description": "
|
|
118
|
+
"name": "Delete Confirmation Modal",
|
|
119
|
+
"description": "Title, message, and button texts in the address delete confirmation modal"
|
|
120
120
|
}
|
|
121
121
|
]
|
|
122
122
|
}
|
|
@@ -11,18 +11,18 @@ import ConfirmModal from "../../sub-components/ConfirmModal";
|
|
|
11
11
|
import { Props } from "./types";
|
|
12
12
|
|
|
13
13
|
export function AccountAddresses({
|
|
14
|
-
title = "
|
|
15
|
-
addButtonText = "
|
|
16
|
-
emptyMessage = "
|
|
17
|
-
editButtonText = "
|
|
18
|
-
deleteButtonText = "
|
|
19
|
-
saveButtonText = "
|
|
20
|
-
savingButtonText = "
|
|
21
|
-
cancelButtonText = "
|
|
22
|
-
modalTitleAdd = "
|
|
23
|
-
modalTitleEdit = "
|
|
24
|
-
deleteConfirmMessage = "
|
|
25
|
-
deleteConfirmTitle = "
|
|
14
|
+
title = "My Addresses",
|
|
15
|
+
addButtonText = "Add Address",
|
|
16
|
+
emptyMessage = "No addresses added yet.",
|
|
17
|
+
editButtonText = "Edit",
|
|
18
|
+
deleteButtonText = "Delete",
|
|
19
|
+
saveButtonText = "Save",
|
|
20
|
+
savingButtonText = "Saving...",
|
|
21
|
+
cancelButtonText = "Cancel",
|
|
22
|
+
modalTitleAdd = "Add Address",
|
|
23
|
+
modalTitleEdit = "Edit Address",
|
|
24
|
+
deleteConfirmMessage = "Are you sure you want to delete this address?",
|
|
25
|
+
deleteConfirmTitle = "Delete Address",
|
|
26
26
|
}: Props) {
|
|
27
27
|
const [modalOpen, setModalOpen] = useState(false);
|
|
28
28
|
const [editingAddress, setEditingAddress] = useState<
|
|
@@ -7,31 +7,31 @@
|
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
9
9
|
"name": "favoritesLabel",
|
|
10
|
-
"displayName": "
|
|
10
|
+
"displayName": "Title",
|
|
11
11
|
"type": "TEXT",
|
|
12
12
|
"required": false,
|
|
13
|
-
"defaultValue": "
|
|
13
|
+
"defaultValue": "My Favorites",
|
|
14
14
|
"groupId": "texts"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "emptyFavoritesText",
|
|
18
|
-
"displayName": "
|
|
18
|
+
"displayName": "Empty List Message",
|
|
19
19
|
"type": "TEXT",
|
|
20
20
|
"required": false,
|
|
21
|
-
"defaultValue": "
|
|
21
|
+
"defaultValue": "You haven't added any favorites yet.",
|
|
22
22
|
"groupId": "texts"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "addToCartText",
|
|
26
|
-
"displayName": "
|
|
26
|
+
"displayName": "Add to Cart Button",
|
|
27
27
|
"type": "TEXT",
|
|
28
28
|
"required": false,
|
|
29
|
-
"defaultValue": "
|
|
29
|
+
"defaultValue": "Add to Cart",
|
|
30
30
|
"groupId": "texts"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "components",
|
|
34
|
-
"displayName": "
|
|
34
|
+
"displayName": "Components",
|
|
35
35
|
"type": "COMPONENT_LIST",
|
|
36
36
|
"required": false,
|
|
37
37
|
"privateVarMap": {
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"propGroups": [
|
|
51
51
|
{
|
|
52
52
|
"id": "texts",
|
|
53
|
-
"name": "
|
|
54
|
-
"description": "
|
|
53
|
+
"name": "Texts",
|
|
54
|
+
"description": "All texts shown in the component"
|
|
55
55
|
}
|
|
56
56
|
]
|
|
57
57
|
}
|
|
@@ -12,9 +12,9 @@ import { Props } from "./types";
|
|
|
12
12
|
|
|
13
13
|
export function AccountFavorites(props: Props) {
|
|
14
14
|
const {
|
|
15
|
-
favoritesLabel = "
|
|
16
|
-
emptyFavoritesText = "
|
|
17
|
-
addToCartText = "
|
|
15
|
+
favoritesLabel = "My Favorites",
|
|
16
|
+
emptyFavoritesText = "You haven't added any favorites yet.",
|
|
17
|
+
addToCartText = "Add to Cart",
|
|
18
18
|
components,
|
|
19
19
|
} = props;
|
|
20
20
|
const [favorites, setFavorites] = useState<IkasProduct[]>([]);
|
|
@@ -7,60 +7,60 @@
|
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
9
9
|
"name": "title",
|
|
10
|
-
"displayName": "
|
|
10
|
+
"displayName": "Title",
|
|
11
11
|
"type": "TEXT",
|
|
12
12
|
"required": false,
|
|
13
|
-
"defaultValue": "
|
|
13
|
+
"defaultValue": "My Account",
|
|
14
14
|
"groupId": "texts"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "successMessage",
|
|
18
|
-
"displayName": "
|
|
18
|
+
"displayName": "Success Message",
|
|
19
19
|
"type": "TEXT",
|
|
20
20
|
"required": false,
|
|
21
|
-
"defaultValue": "
|
|
21
|
+
"defaultValue": "Your information has been updated.",
|
|
22
22
|
"groupId": "messages"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "submitButtonText",
|
|
26
|
-
"displayName": "
|
|
26
|
+
"displayName": "Save Button",
|
|
27
27
|
"type": "TEXT",
|
|
28
28
|
"required": false,
|
|
29
|
-
"defaultValue": "
|
|
29
|
+
"defaultValue": "Save",
|
|
30
30
|
"groupId": "buttons"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "submittingButtonText",
|
|
34
|
-
"displayName": "
|
|
34
|
+
"displayName": "Saving Text",
|
|
35
35
|
"type": "TEXT",
|
|
36
36
|
"required": false,
|
|
37
|
-
"defaultValue": "
|
|
37
|
+
"defaultValue": "Saving...",
|
|
38
38
|
"groupId": "buttons"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"name": "emailLabel",
|
|
42
|
-
"displayName": "
|
|
42
|
+
"displayName": "Email",
|
|
43
43
|
"type": "TEXT",
|
|
44
44
|
"required": false,
|
|
45
|
-
"defaultValue": "
|
|
45
|
+
"defaultValue": "Email",
|
|
46
46
|
"groupId": "texts"
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
49
|
"propGroups": [
|
|
50
50
|
{
|
|
51
51
|
"id": "texts",
|
|
52
|
-
"name": "
|
|
53
|
-
"description": "
|
|
52
|
+
"name": "Texts",
|
|
53
|
+
"description": "Page title and form labels"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"id": "buttons",
|
|
57
|
-
"name": "
|
|
58
|
-
"description": "
|
|
57
|
+
"name": "Buttons",
|
|
58
|
+
"description": "Save button texts"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"id": "messages",
|
|
62
|
-
"name": "
|
|
63
|
-
"description": "
|
|
62
|
+
"name": "Messages",
|
|
63
|
+
"description": "Success and error feedback messages"
|
|
64
64
|
}
|
|
65
65
|
]
|
|
66
66
|
}
|
|
@@ -15,11 +15,11 @@ import SkeletonField from "../../sub-components/SkeletonField";
|
|
|
15
15
|
import { Props } from "./types";
|
|
16
16
|
|
|
17
17
|
export function AccountInfoContent({
|
|
18
|
-
title = "
|
|
19
|
-
successMessage = "
|
|
20
|
-
submitButtonText = "
|
|
21
|
-
submittingButtonText = "
|
|
22
|
-
emailLabel = "
|
|
18
|
+
title = "My Account",
|
|
19
|
+
successMessage = "Your information has been updated.",
|
|
20
|
+
submitButtonText = "Save",
|
|
21
|
+
submittingButtonText = "Saving...",
|
|
22
|
+
emailLabel = "Email",
|
|
23
23
|
}: Props) {
|
|
24
24
|
const accountForm = getAccountInfoForm(customerStore);
|
|
25
25
|
const [isLoading, setIsLoading] = useState(true);
|