@stack-spot/portal-layout 2.19.4 → 2.20.1
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/CHANGELOG.md +19 -0
- package/dist/components/Toaster.js +1 -1
- package/dist/components/Toaster.js.map +1 -1
- package/dist/layout.css +10 -0
- package/package.json +5 -5
- package/src/components/Toaster.tsx +1 -1
- package/src/layout.css +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.20.1](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.20.0...portal-layout@v2.20.1) (2024-12-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* appearance of the close button in the toaster ([#607](https://github.com/stack-spot/portal-commons/issues/607)) ([1108e5a](https://github.com/stack-spot/portal-commons/commit/1108e5a6ea32ce8871cf676c87148e9240d3334d))
|
|
9
|
+
|
|
10
|
+
## [2.20.0](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.19.4...portal-layout@v2.20.0) (2024-12-27)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* update libs banner ([#604](https://github.com/stack-spot/portal-commons/issues/604)) ([f2bc440](https://github.com/stack-spot/portal-commons/commit/f2bc440db6c65461a2b1228d0efc08ed3d883d67))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* Bump lib ([#612](https://github.com/stack-spot/portal-commons/issues/612)) ([2aca501](https://github.com/stack-spot/portal-commons/commit/2aca501e9d117c149e72acd8786a8de95dafabb1))
|
|
21
|
+
|
|
3
22
|
## [2.19.4](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.19.3...portal-layout@v2.19.4) (2024-12-20)
|
|
4
23
|
|
|
5
24
|
|
|
@@ -10,7 +10,7 @@ import { useDictionary } from '../dictionary.js';
|
|
|
10
10
|
export const TOASTER_CLOSE_BTN_CLASS = 'btn-close';
|
|
11
11
|
const CloseButton = ({ closeToast }) => {
|
|
12
12
|
const t = useDictionary();
|
|
13
|
-
return (_jsx(IconButton, { className: TOASTER_CLOSE_BTN_CLASS, onClick: closeToast, title: t.dismiss, children: _jsx(TimesMini, {}) }));
|
|
13
|
+
return (_jsx(IconButton, { appearance: "circle", color: "light", size: "xs", className: TOASTER_CLOSE_BTN_CLASS, onClick: closeToast, title: t.dismiss, children: _jsx(TimesMini, {}) }));
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Uses react-toastify to render a Toaster based on the Citric DS.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toaster.js","sourceRoot":"","sources":["../../src/components/Toaster.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,uCAAuC,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAI7C,MAAM,CAAC,MAAM,uBAAuB,GAAG,WAAW,CAAA;AAElD,MAAM,WAAW,GAAG,CAAC,EAAE,UAAU,EAAoB,EAAE,EAAE;IACvD,MAAM,CAAC,GAAG,aAAa,EAAE,CAAA;IACzB,OAAO,CACL,KAAC,UAAU,IAAC,SAAS,EAAE,uBAAuB,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"Toaster.js","sourceRo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EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAuB,EAAE,EAAE;IAC9F,MAAM,IAAI,GAAG,YAAY,EAAE,CAAA;IAC3B,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,GAAG,CACxC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACjD,KAAC,IAAI,IAEH,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAC1B,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,CAAC,KAAuB,EAAE,EAAE;YACnC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAA;YAChB,IAAI,YAAY;gBAAE,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QACrC,CAAC,YAEA,KAAK,IATD,KAAK,CAUL,CACR,CACF,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IACb,OAAO,CACL,eAAK,OAAO,EAAE,OAAO,aACnB,aAAI,KAAK,EAAE,EAAE,aAAa,EAAE,YAAY,EAAE,YAAG,KAAK,GAAM,EACvD,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,sBAAI,OAAO,GAAK,CAAC,CAAC,CAAC,OAAO,EACxD,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAAG,OAAO,GAAQ,CAAC,CAAC,CAAC,IAAI,IACvF,CACP,CAAA;AACH,CAAC,CAAA"}
|
package/dist/layout.css
CHANGED
|
@@ -94,6 +94,16 @@ body {
|
|
|
94
94
|
transition: left ease-in-out var(--menu-animation-duration);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
#page.home-banner-visible {
|
|
98
|
+
padding: 0 !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
#banner-warning {
|
|
102
|
+
width: 90.7vw;
|
|
103
|
+
margin-left: calc(-0.6 * var(--menu-sections-width));
|
|
104
|
+
margin-right: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
97
107
|
#layout.menu-content-visible #page {
|
|
98
108
|
left: calc(var(--menu-sections-width) + var(--menu-content-width));
|
|
99
109
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stack-spot/portal-layout",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"check-tree-shaking": "agadoo"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@citric/core": "^6.
|
|
13
|
+
"@citric/core": "^6.4.0",
|
|
14
14
|
"@citric/icons": "^5.9.0",
|
|
15
|
-
"@citric/ui": "^6.
|
|
15
|
+
"@citric/ui": "^6.5.5",
|
|
16
16
|
"@stack-spot/portal-theme": "^1.0.0",
|
|
17
|
-
"@stack-spot/portal-translate": "^1.
|
|
18
|
-
"@stack-spot/portal-components": "^2.
|
|
17
|
+
"@stack-spot/portal-translate": "^1.1.0",
|
|
18
|
+
"@stack-spot/portal-components": "^2.11.0",
|
|
19
19
|
"react": "^18.2.0",
|
|
20
20
|
"react-dom": "^18.2.0",
|
|
21
21
|
"styled-components": "^6.1.10"
|
|
@@ -15,7 +15,7 @@ export const TOASTER_CLOSE_BTN_CLASS = 'btn-close'
|
|
|
15
15
|
const CloseButton = ({ closeToast }: CloseButtonProps) => {
|
|
16
16
|
const t = useDictionary()
|
|
17
17
|
return (
|
|
18
|
-
<IconButton className={TOASTER_CLOSE_BTN_CLASS} onClick={closeToast} title={t.dismiss}>
|
|
18
|
+
<IconButton appearance="circle" color="light" size="xs" className={TOASTER_CLOSE_BTN_CLASS} onClick={closeToast} title={t.dismiss}>
|
|
19
19
|
<TimesMini />
|
|
20
20
|
</IconButton>
|
|
21
21
|
)
|
package/src/layout.css
CHANGED
|
@@ -94,6 +94,16 @@ body {
|
|
|
94
94
|
transition: left ease-in-out var(--menu-animation-duration);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
#page.home-banner-visible {
|
|
98
|
+
padding: 0 !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
#banner-warning {
|
|
102
|
+
width: 90.7vw;
|
|
103
|
+
margin-left: calc(-0.6 * var(--menu-sections-width));
|
|
104
|
+
margin-right: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
97
107
|
#layout.menu-content-visible #page {
|
|
98
108
|
left: calc(var(--menu-sections-width) + var(--menu-content-width));
|
|
99
109
|
}
|