@treely/strapi-slices 6.0.1 → 6.0.3
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/components/portfolio/SmallCheckout/messages.de.d.ts +1 -4
- package/dist/components/portfolio/SmallCheckout/messages.en.d.ts +1 -4
- package/dist/constants/domain.d.ts +1 -1
- package/dist/models/forms/SmallCheckoutForm.d.ts +1 -1
- package/dist/rootMessages.de.d.ts +1 -4
- package/dist/rootMessages.en.d.ts +1 -4
- package/dist/strapi-slices.cjs.development.js +18 -22
- package/dist/strapi-slices.cjs.development.js.map +1 -1
- package/dist/strapi-slices.cjs.production.min.js +1 -1
- package/dist/strapi-slices.cjs.production.min.js.map +1 -1
- package/dist/strapi-slices.esm.js +18 -22
- package/dist/strapi-slices.esm.js.map +1 -1
- package/dist/utils/getMessages.d.ts +2 -8
- package/package.json +2 -2
- package/src/components/portfolio/SmallCheckout/SmallCheckout.test.tsx +3 -3
- package/src/components/portfolio/SmallCheckout/SmallCheckout.tsx +9 -9
- package/src/components/portfolio/SmallCheckout/messages.de.ts +2 -8
- package/src/components/portfolio/SmallCheckout/messages.en.ts +2 -7
- package/src/constants/domain.ts +1 -1
- package/src/models/forms/SmallCheckoutForm.ts +1 -1
- package/src/slices/Glossary/Glossary.tsx +4 -1
|
@@ -9,10 +9,7 @@ declare const messagesDe: {
|
|
|
9
9
|
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.EUR': string;
|
|
10
10
|
'portfolio.smallCheckout.contributionValueCurrency.validation.empty': string;
|
|
11
11
|
'portfolio.smallCheckout.contributionValueCurrency.validation.tooHigh': string;
|
|
12
|
-
'portfolio.smallCheckout.
|
|
12
|
+
'portfolio.smallCheckout.contributionValueTons.label': string;
|
|
13
13
|
'portfolio.smallCheckout.submitButton': string;
|
|
14
|
-
'portfolio.smallCheckout.cta.title': string;
|
|
15
|
-
'portfolio.smallCheckout.cta.subTitle': string;
|
|
16
|
-
'portfolio.smallCheckout.cta.button': string;
|
|
17
14
|
};
|
|
18
15
|
export default messagesDe;
|
|
@@ -9,10 +9,7 @@ declare const messagesEn: {
|
|
|
9
9
|
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.EUR': string;
|
|
10
10
|
'portfolio.smallCheckout.contributionValueCurrency.validation.empty': string;
|
|
11
11
|
'portfolio.smallCheckout.contributionValueCurrency.validation.tooHigh': string;
|
|
12
|
-
'portfolio.smallCheckout.
|
|
12
|
+
'portfolio.smallCheckout.contributionValueTons.label': string;
|
|
13
13
|
'portfolio.smallCheckout.submitButton': string;
|
|
14
|
-
'portfolio.smallCheckout.cta.title': string;
|
|
15
|
-
'portfolio.smallCheckout.cta.subTitle': string;
|
|
16
|
-
'portfolio.smallCheckout.cta.button': string;
|
|
17
14
|
};
|
|
18
15
|
export default messagesEn;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const MINIMUM_CONTRIBUTION_VALUE_IN_MONEY = 10;
|
|
2
|
-
export declare const MAXIMUM_CONTRIBUTION_VALUE_IN_MONEY =
|
|
2
|
+
export declare const MAXIMUM_CONTRIBUTION_VALUE_IN_MONEY = 10000;
|
|
@@ -41,11 +41,8 @@ declare const rootMessagesDe: {
|
|
|
41
41
|
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.EUR': string;
|
|
42
42
|
'portfolio.smallCheckout.contributionValueCurrency.validation.empty': string;
|
|
43
43
|
'portfolio.smallCheckout.contributionValueCurrency.validation.tooHigh': string;
|
|
44
|
-
'portfolio.smallCheckout.
|
|
44
|
+
'portfolio.smallCheckout.contributionValueTons.label': string;
|
|
45
45
|
'portfolio.smallCheckout.submitButton': string;
|
|
46
|
-
'portfolio.smallCheckout.cta.title': string;
|
|
47
|
-
'portfolio.smallCheckout.cta.subTitle': string;
|
|
48
|
-
'portfolio.smallCheckout.cta.button': string;
|
|
49
46
|
'features.projectInfo.projectInfo.value': string;
|
|
50
47
|
'features.projectInfo.properties.area': string;
|
|
51
48
|
'features.projectInfo.properties.location': string;
|
|
@@ -41,11 +41,8 @@ declare const rootMessagesEn: {
|
|
|
41
41
|
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.EUR': string;
|
|
42
42
|
'portfolio.smallCheckout.contributionValueCurrency.validation.empty': string;
|
|
43
43
|
'portfolio.smallCheckout.contributionValueCurrency.validation.tooHigh': string;
|
|
44
|
-
'portfolio.smallCheckout.
|
|
44
|
+
'portfolio.smallCheckout.contributionValueTons.label': string;
|
|
45
45
|
'portfolio.smallCheckout.submitButton': string;
|
|
46
|
-
'portfolio.smallCheckout.cta.title': string;
|
|
47
|
-
'portfolio.smallCheckout.cta.subTitle': string;
|
|
48
|
-
'portfolio.smallCheckout.cta.button': string;
|
|
49
46
|
'features.projectInfo.projectInfo.value': string;
|
|
50
47
|
'features.projectInfo.properties.area': string;
|
|
51
48
|
'features.projectInfo.properties.location': string;
|
|
@@ -2359,12 +2359,9 @@ var messagesDe$5 = {
|
|
|
2359
2359
|
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.CHF': 'Der Wert muss mindestens 10 CHF betragen',
|
|
2360
2360
|
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.EUR': 'Der Wert muss mindestens 10 Euro betragen.',
|
|
2361
2361
|
'portfolio.smallCheckout.contributionValueCurrency.validation.empty': 'Bitte geben Sie einen Wert ein',
|
|
2362
|
-
'portfolio.smallCheckout.contributionValueCurrency.validation.tooHigh': 'Für größere Einkäufe kontaktieren Sie bitte unser Verkaufsteam
|
|
2363
|
-
'portfolio.smallCheckout.
|
|
2364
|
-
'portfolio.smallCheckout.submitButton': 'Credits kaufen'
|
|
2365
|
-
'portfolio.smallCheckout.cta.title': 'Möchten Sie mehr als 10.000 tCO₂ kaufen?',
|
|
2366
|
-
'portfolio.smallCheckout.cta.subTitle': 'Für Unternehmenskunden bieten wir individuelle Lösungen an. Kontaktieren Sie uns.',
|
|
2367
|
-
'portfolio.smallCheckout.cta.button': 'Unser Vertriebsteam kontaktieren'
|
|
2362
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.tooHigh': 'Für größere Einkäufe kontaktieren Sie bitte unser Verkaufsteam',
|
|
2363
|
+
'portfolio.smallCheckout.contributionValueTons.label': 'Beitrag in Tonnen',
|
|
2364
|
+
'portfolio.smallCheckout.submitButton': 'Credits kaufen'
|
|
2368
2365
|
};
|
|
2369
2366
|
|
|
2370
2367
|
var messagesDe$4 = {
|
|
@@ -2476,12 +2473,9 @@ var messagesEn$2 = {
|
|
|
2476
2473
|
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.CHF': 'The value must be at least 10 CHF',
|
|
2477
2474
|
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.EUR': 'The value must be at least 10 Euro',
|
|
2478
2475
|
'portfolio.smallCheckout.contributionValueCurrency.validation.empty': 'Please enter a value',
|
|
2479
|
-
'portfolio.smallCheckout.contributionValueCurrency.validation.tooHigh': 'For bigger purchases please contact our sales team
|
|
2480
|
-
'portfolio.smallCheckout.
|
|
2481
|
-
'portfolio.smallCheckout.submitButton': 'Buy credits'
|
|
2482
|
-
'portfolio.smallCheckout.cta.title': 'Looking to buy more than 10.000 tCO₂?',
|
|
2483
|
-
'portfolio.smallCheckout.cta.subTitle': 'For enterprise-customers we offer custom solutions. Feel free to contact us.',
|
|
2484
|
-
'portfolio.smallCheckout.cta.button': 'Contact our Sales Team'
|
|
2476
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.tooHigh': 'For bigger purchases please contact our sales team',
|
|
2477
|
+
'portfolio.smallCheckout.contributionValueTons.label': 'Contribution Amount in Tons',
|
|
2478
|
+
'portfolio.smallCheckout.submitButton': 'Buy credits'
|
|
2485
2479
|
};
|
|
2486
2480
|
|
|
2487
2481
|
var messagesEn$1 = {
|
|
@@ -4054,6 +4048,7 @@ var Glossary = function Glossary(_ref) {
|
|
|
4054
4048
|
gap: "1.5",
|
|
4055
4049
|
alignItems: "center"
|
|
4056
4050
|
}, React__default.default.createElement(boemly.Heading, {
|
|
4051
|
+
wordBreak: "break-word",
|
|
4057
4052
|
size: "xl",
|
|
4058
4053
|
id: item.slug,
|
|
4059
4054
|
scrollMarginTop: "calc(var(--header-height) + var(--boemly-sizes-10))"
|
|
@@ -4090,7 +4085,8 @@ var Glossary = function Glossary(_ref) {
|
|
|
4090
4085
|
return onClick;
|
|
4091
4086
|
}()
|
|
4092
4087
|
})), React__default.default.createElement(boemly.Text, {
|
|
4093
|
-
color: "black"
|
|
4088
|
+
color: "black",
|
|
4089
|
+
wordBreak: "break-word"
|
|
4094
4090
|
}, item.text));
|
|
4095
4091
|
})), index !== Object.keys(grouped).length - 1 && React__default.default.createElement(boemly.Divider, {
|
|
4096
4092
|
maxW: "xl",
|
|
@@ -4102,7 +4098,7 @@ var Glossary = function Glossary(_ref) {
|
|
|
4102
4098
|
};
|
|
4103
4099
|
|
|
4104
4100
|
var MINIMUM_CONTRIBUTION_VALUE_IN_MONEY = 10;
|
|
4105
|
-
var MAXIMUM_CONTRIBUTION_VALUE_IN_MONEY =
|
|
4101
|
+
var MAXIMUM_CONTRIBUTION_VALUE_IN_MONEY = 10000;
|
|
4106
4102
|
|
|
4107
4103
|
var ShopCheckout = function ShopCheckout(_ref) {
|
|
4108
4104
|
var slice = _ref.slice;
|
|
@@ -4582,7 +4578,7 @@ var SmallCheckout = function SmallCheckout(_ref) {
|
|
|
4582
4578
|
}))), React__default.default.createElement(formik.Formik, {
|
|
4583
4579
|
initialValues: {
|
|
4584
4580
|
contributionValueCurrency: initialContributionValue.toString(),
|
|
4585
|
-
|
|
4581
|
+
contributionValueTons: (initialContributionValue / pricePerKg / 1000).toString()
|
|
4586
4582
|
},
|
|
4587
4583
|
validate: validateForm,
|
|
4588
4584
|
onSubmit: onSubmit
|
|
@@ -4612,7 +4608,7 @@ var SmallCheckout = function SmallCheckout(_ref) {
|
|
|
4612
4608
|
var value = e.target.valueAsNumber;
|
|
4613
4609
|
setValues({
|
|
4614
4610
|
contributionValueCurrency: value.toString(),
|
|
4615
|
-
|
|
4611
|
+
contributionValueTons: (value / pricePerKg / 1000).toString()
|
|
4616
4612
|
});
|
|
4617
4613
|
}
|
|
4618
4614
|
},
|
|
@@ -4630,11 +4626,11 @@ var SmallCheckout = function SmallCheckout(_ref) {
|
|
|
4630
4626
|
})), React__default.default.createElement(boemly.Box, {
|
|
4631
4627
|
width: "full"
|
|
4632
4628
|
}, React__default.default.createElement(formik.Field, {
|
|
4633
|
-
name: "
|
|
4629
|
+
name: "contributionValueTons"
|
|
4634
4630
|
}, function (_ref6) {
|
|
4635
4631
|
var field = _ref6.field;
|
|
4636
4632
|
return React__default.default.createElement(boemly.BoemlyFormControl, {
|
|
4637
|
-
id: "
|
|
4633
|
+
id: "contributionValueTons",
|
|
4638
4634
|
size: "md",
|
|
4639
4635
|
inputProps: {
|
|
4640
4636
|
type: 'number',
|
|
@@ -4643,18 +4639,18 @@ var SmallCheckout = function SmallCheckout(_ref) {
|
|
|
4643
4639
|
var value = e.target.valueAsNumber;
|
|
4644
4640
|
setValues({
|
|
4645
4641
|
contributionValueCurrency: (value * pricePerKg * 1000).toString(),
|
|
4646
|
-
|
|
4642
|
+
contributionValueTons: value.toString()
|
|
4647
4643
|
});
|
|
4648
4644
|
}
|
|
4649
4645
|
},
|
|
4650
4646
|
label: formatMessage({
|
|
4651
|
-
id: 'portfolio.smallCheckout.
|
|
4647
|
+
id: 'portfolio.smallCheckout.contributionValueTons.label'
|
|
4652
4648
|
}),
|
|
4653
4649
|
rightAddonsOrElements: [React__default.default.createElement(boemly.InputRightAddon, {
|
|
4654
4650
|
key: "tCO\u2082"
|
|
4655
4651
|
}, "tCO\u2082")],
|
|
4656
|
-
isInvalid: !!errors.
|
|
4657
|
-
errorMessage: errors.
|
|
4652
|
+
isInvalid: !!errors.contributionValueTons && touched.contributionValueTons,
|
|
4653
|
+
errorMessage: errors.contributionValueTons
|
|
4658
4654
|
});
|
|
4659
4655
|
}))), values.contributionValueCurrency && taxInPercent && taxInPercent > 0 && React__default.default.createElement(boemly.Text, {
|
|
4660
4656
|
size: "smLowNormal",
|