@treely/strapi-slices 5.13.0 → 5.15.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/components/portfolio/ProjectInfo/messages.de.d.ts +1 -0
- package/dist/components/portfolio/ProjectInfo/messages.en.d.ts +1 -0
- package/dist/rootMessages.de.d.ts +1 -0
- package/dist/rootMessages.en.d.ts +1 -0
- package/dist/strapi-slices.cjs.development.js +8 -2
- 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 +9 -3
- package/dist/strapi-slices.esm.js.map +1 -1
- package/dist/utils/getMessages.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/portfolio/ProjectInfo/ProjectInfo.test.tsx +25 -1
- package/src/components/portfolio/ProjectInfo/ProjectInfo.tsx +27 -20
- package/src/components/portfolio/ProjectInfo/messages.de.ts +2 -0
- package/src/components/portfolio/ProjectInfo/messages.en.ts +2 -0
- package/src/slices/TextCardGrid/TextCardGrid.tsx +2 -1
|
@@ -2,7 +2,7 @@ import axios from 'axios';
|
|
|
2
2
|
import qs from 'qs';
|
|
3
3
|
import { setupCache } from 'axios-cache-interceptor';
|
|
4
4
|
import React, { useState, useRef, useMemo, useCallback, useEffect, Fragment, createRef, createContext, useContext } from 'react';
|
|
5
|
-
import { Box, BoemlyAlert, BoemlyModal, Flex, IconButton, useMediaQuery, DefaultSectionContainer, Wrapper, DefaultSectionHeader, Button, Gradient, Spacer, SimpleGrid, Heading, Text, useToken, Grid, GridItem, BoemlyList, PortfolioCard, RichText, BoemlyAccordion, HeroCard, Shape, QuoteCard, Center, ShapesCard, TextCardWithIcon, ContactArea, ProjectCard, Tag, Link as Link$1, DatePersonPair, BoemlyThemeProvider, Badge, useDisclosure, Container, AvatarWithName, Divider, LabelNumberPair, BoemlyFormControl, InputRightAddon, LabelTextPair } from 'boemly';
|
|
5
|
+
import { Box, BoemlyAlert, BoemlyModal, Flex, IconButton, useMediaQuery, DefaultSectionContainer, Wrapper, DefaultSectionHeader, Button, Gradient, Spacer, SimpleGrid, Heading, Text, useToken, Grid, GridItem, BoemlyList, PortfolioCard, RichText, BoemlyAccordion, HeroCard, Shape, QuoteCard, Center, ShapesCard, TextCardWithIcon, ContactArea, ProjectCard, Tag, Link as Link$1, DatePersonPair, BoemlyThemeProvider, Badge, useDisclosure, Container, AvatarWithName, Divider, LabelNumberPair, BoemlyFormControl, InputRightAddon, LabelTextPair, Tooltip } from 'boemly';
|
|
6
6
|
import Head from 'next/head';
|
|
7
7
|
import Image from 'next/image';
|
|
8
8
|
import { useLockBodyScroll, useKey, useWindowScroll, useWindowSize, useMeasure, useCopyToClipboard } from 'react-use';
|
|
@@ -2175,7 +2175,7 @@ var variants = {
|
|
|
2175
2175
|
shape: {
|
|
2176
2176
|
padding: ['6', null, null, '8'],
|
|
2177
2177
|
positionIcon: function positionIcon(index) {
|
|
2178
|
-
return shapePositions[index];
|
|
2178
|
+
return shapePositions[index % shapePositions.length];
|
|
2179
2179
|
},
|
|
2180
2180
|
width: '40',
|
|
2181
2181
|
height: '40',
|
|
@@ -2380,6 +2380,7 @@ var messagesDe$6 = {
|
|
|
2380
2380
|
'features.projectInfo.properties.verificationStandard.label': 'Verifizierungsstandard',
|
|
2381
2381
|
'features.projectInfo.properties.verificationStandard.value.SilvaconsultFCSISO14': 'SILVACONSULT® Forest Carbon Standard, ISO 14064-2',
|
|
2382
2382
|
'features.projectInfo.properties.verificationStandard.value.MfKWCH': 'Methodik für Klimaschutzprojekte im Wald für die Schweiz',
|
|
2383
|
+
'features.projectInfo.properties.forecastedAmountYear.toolTip': 'Dies ist das jährliche Projekt-Senkenvolumen gemäß dem TÜV-geprüften PDD, dieser Wert stellt nicht die aktuellen Verfügbarkeiten dar.',
|
|
2383
2384
|
'features.projectInfo.properties.forecastedAmountYear.label': 'Projektvolumen',
|
|
2384
2385
|
'features.projectInfo.properties.riskBuffer': 'Anteil Risikopuffer',
|
|
2385
2386
|
'features.projectInfo.properties.year': '{years} {years, plural, one {Jahr} other {Jahre} }'
|
|
@@ -2500,6 +2501,7 @@ var messagesEn$4 = {
|
|
|
2500
2501
|
'features.projectInfo.properties.verificationStandard.value.SilvaconsultFCSISO14': 'SILVACONSULT® Forest Carbon Standard, ISO 14064-2',
|
|
2501
2502
|
'features.projectInfo.properties.verificationStandard.value.MfKWCH': 'Methodik für Klimaschutzprojekte im Wald für die Schweiz',
|
|
2502
2503
|
'features.projectInfo.properties.forecastedAmountYear.label': 'Project Volume',
|
|
2504
|
+
'features.projectInfo.properties.forecastedAmountYear.toolTip': "This is the yearly project sink volume according to the TÜV-verified PDD, this value doesn't represent current availabilities.",
|
|
2503
2505
|
'features.projectInfo.properties.riskBuffer': 'Risk Buffer Share',
|
|
2504
2506
|
'features.projectInfo.properties.year': '{years} {years, plural, one {year} other {years} }'
|
|
2505
2507
|
};
|
|
@@ -4864,6 +4866,10 @@ var ProjectInfo = function ProjectInfo(_ref) {
|
|
|
4864
4866
|
columns: [1, null, null, 2],
|
|
4865
4867
|
spacingX: "10",
|
|
4866
4868
|
spacingY: "8"
|
|
4869
|
+
}, React.createElement(Tooltip, {
|
|
4870
|
+
label: formatMessage({
|
|
4871
|
+
id: 'features.projectInfo.properties.forecastedAmountYear.toolTip'
|
|
4872
|
+
})
|
|
4867
4873
|
}, React.createElement(Box, null, React.createElement(LabelTextPair, {
|
|
4868
4874
|
label: formatMessage({
|
|
4869
4875
|
id: 'features.projectInfo.properties.forecastedAmountYear.label'
|
|
@@ -4876,7 +4882,7 @@ var ProjectInfo = function ProjectInfo(_ref) {
|
|
|
4876
4882
|
})
|
|
4877
4883
|
}),
|
|
4878
4884
|
caption: subtitles.forecastedAmountSubtitle
|
|
4879
|
-
})), React.createElement(Box, null, React.createElement(LabelTextPair, {
|
|
4885
|
+
}))), React.createElement(Box, null, React.createElement(LabelTextPair, {
|
|
4880
4886
|
label: formatMessage({
|
|
4881
4887
|
id: 'features.projectInfo.properties.riskBuffer'
|
|
4882
4888
|
}),
|