@opengeoweb/shared 9.27.1 → 9.28.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/index.esm.js
CHANGED
|
@@ -6805,10 +6805,13 @@ const CustomAccordion = _a => {
|
|
|
6805
6805
|
transitionDuration = 150,
|
|
6806
6806
|
detailsSx,
|
|
6807
6807
|
CustomExpandIcon,
|
|
6808
|
-
children
|
|
6808
|
+
children,
|
|
6809
|
+
amountOfItems
|
|
6809
6810
|
} = _a,
|
|
6810
|
-
props = __rest(_a, ["title", "defaultExpanded", "disableGutters", "expandedElevation", "collapsedElevation", "transitionDuration", "detailsSx", "CustomExpandIcon", "children"]);
|
|
6811
|
+
props = __rest(_a, ["title", "defaultExpanded", "disableGutters", "expandedElevation", "collapsedElevation", "transitionDuration", "detailsSx", "CustomExpandIcon", "children", "amountOfItems"]);
|
|
6811
6812
|
const [expanded, setExpanded] = React.useState(defaultExpanded);
|
|
6813
|
+
const theme = useTheme();
|
|
6814
|
+
const iconColor = theme.palette.geowebColors.buttons.icon.default.color;
|
|
6812
6815
|
return jsxs(Accordion, Object.assign({}, props, {
|
|
6813
6816
|
defaultExpanded: defaultExpanded,
|
|
6814
6817
|
elevation: expanded ? expandedElevation : collapsedElevation,
|
|
@@ -6819,9 +6822,40 @@ const CustomAccordion = _a => {
|
|
|
6819
6822
|
}
|
|
6820
6823
|
}, {
|
|
6821
6824
|
children: [jsx(AccordionSummary, Object.assign({
|
|
6822
|
-
expandIcon: CustomExpandIcon ? jsx(CustomExpandIcon, {
|
|
6825
|
+
expandIcon: CustomExpandIcon ? jsx(CustomExpandIcon, {
|
|
6826
|
+
style: {
|
|
6827
|
+
fill: `${iconColor}`
|
|
6828
|
+
}
|
|
6829
|
+
}) : jsx(ChevronDown, {
|
|
6830
|
+
style: {
|
|
6831
|
+
fill: `${iconColor}`
|
|
6832
|
+
}
|
|
6833
|
+
})
|
|
6823
6834
|
}, {
|
|
6824
|
-
children:
|
|
6835
|
+
children: jsxs(Box, Object.assign({
|
|
6836
|
+
sx: {
|
|
6837
|
+
display: 'flex',
|
|
6838
|
+
justifyContent: 'space-between',
|
|
6839
|
+
width: '100%'
|
|
6840
|
+
}
|
|
6841
|
+
}, {
|
|
6842
|
+
children: [jsx(Box, Object.assign({
|
|
6843
|
+
sx: {
|
|
6844
|
+
display: 'flex',
|
|
6845
|
+
justifyContent: 'flex-start'
|
|
6846
|
+
}
|
|
6847
|
+
}, {
|
|
6848
|
+
children: title
|
|
6849
|
+
})), amountOfItems ? jsx(Box, Object.assign({
|
|
6850
|
+
sx: {
|
|
6851
|
+
display: 'flex',
|
|
6852
|
+
justifyContent: 'flex-end',
|
|
6853
|
+
marginRight: '15px'
|
|
6854
|
+
}
|
|
6855
|
+
}, {
|
|
6856
|
+
children: amountOfItems
|
|
6857
|
+
})) : null]
|
|
6858
|
+
}))
|
|
6825
6859
|
})), jsx(AccordionDetails, Object.assign({
|
|
6826
6860
|
sx: detailsSx
|
|
6827
6861
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/shared",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.28.0",
|
|
4
4
|
"description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@reduxjs/toolkit": "^1.9.7",
|
|
21
21
|
"react-i18next": "^14.1.2",
|
|
22
22
|
"i18next": "^23.11.5",
|
|
23
|
-
"@mui/material": "^
|
|
23
|
+
"@mui/material": "^6.1.1",
|
|
24
24
|
"@sentry/react": "^7.109.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -7,5 +7,6 @@ export interface CustomAccordionProps extends Omit<AccordionProps, 'title'> {
|
|
|
7
7
|
transitionDuration?: number;
|
|
8
8
|
detailsSx?: SxProps<Theme>;
|
|
9
9
|
CustomExpandIcon?: React.ElementType;
|
|
10
|
+
amountOfItems?: number;
|
|
10
11
|
}
|
|
11
12
|
export declare const CustomAccordion: React.FC<CustomAccordionProps>;
|
package/src/lib/types/types.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export interface ConfigType {
|
|
|
20
20
|
GW_PRESET_BACKEND_URL?: string;
|
|
21
21
|
GW_CAP_BASE_URL?: string;
|
|
22
22
|
GW_DRAWINGS_BASE_URL?: string;
|
|
23
|
+
GW_TECHNICAL_RELEASE_NOTES_URL?: string;
|
|
24
|
+
GW_VERSION_PROGRESS_NOTES_URL?: string;
|
|
23
25
|
GW_FEATURE_APP_TITLE?: string;
|
|
24
26
|
GW_FEATURE_FORCE_AUTHENTICATION?: boolean;
|
|
25
27
|
GW_FEATURE_MODULE_SPACE_WEATHER?: boolean;
|