@stack-spot/portal-components 2.25.2 → 2.25.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.25.3](https://github.com/stack-spot/portal-commons/compare/portal-components@v2.25.2...portal-components@v2.25.3) (2025-08-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* type banner warning sx ([#1410](https://github.com/stack-spot/portal-commons/issues/1410)) ([c91b6e7](https://github.com/stack-spot/portal-commons/commit/c91b6e792107246b9025aad010ab3a1ee9f5855a))
|
|
9
|
+
|
|
3
10
|
## [2.25.2](https://github.com/stack-spot/portal-commons/compare/portal-components@v2.25.1...portal-components@v2.25.2) (2025-08-15)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SxProp } from '@citric/core';
|
|
2
2
|
/**
|
|
3
3
|
* A styled and dismissible alert box for showing important warnings for the user.
|
|
4
4
|
*
|
|
@@ -7,7 +7,7 @@ import { SxProperties } from '@citric/core/dist/sx.js';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const BannerWarning: ({ children, sx, showCloseButton }: {
|
|
9
9
|
children: React.ReactNode;
|
|
10
|
-
sx?:
|
|
10
|
+
sx?: SxProp;
|
|
11
11
|
showCloseButton?: boolean;
|
|
12
12
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
13
|
//# sourceMappingURL=BannerWarning.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerWarning.d.ts","sourceRoot":"","sources":["../../src/components/BannerWarning.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BannerWarning.d.ts","sourceRoot":"","sources":["../../src/components/BannerWarning.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyB,MAAM,EAAQ,MAAM,cAAc,CAAA;AAMlE;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,mCAC5B;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,mDA6EtE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerWarning.js","sourceRoot":"","sources":["../../src/components/BannerWarning.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"BannerWarning.js","sourceRoot":"","sources":["../../src/components/BannerWarning.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAU,IAAI,EAAE,MAAM,cAAc,CAAA;AAClE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEtD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,eAAe,GAAG,IAAI,EACG,EAAE,EAAE;IACzE,MAAM,SAAS,GAAG,cAAc,CAAA;IAEhC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC9C,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;YAClC,MAAM,cAAc,GAAG,SAAS,CAAC,SAAS,CAAC,KAAK,MAAM,CAAA;YACtD,OAAO,CAAC,cAAc,CAAA;QACxB,CAAC;QACD,OAAO,KAAK,CAAA;IACd,CAAC,CAAC,CAAA;IA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,KAAG,GACX,GACH,IACH,GACH,CACR,CAAA;AACH,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { Button, Flex, IconBox, Text } from '@citric/core'
|
|
3
|
-
import { SxProperties } from '@citric/core/dist/sx'
|
|
2
|
+
import { Button, Flex, IconBox, SxProp, Text } from '@citric/core'
|
|
4
3
|
import { ExclamationTriangle, TimesCircleFill } from '@citric/icons'
|
|
5
4
|
import { Alert } from '@citric/ui'
|
|
6
5
|
import { useState } from 'react'
|
|
@@ -13,7 +12,7 @@ import { getCookie, setCookie } from '../utils/cookie'
|
|
|
13
12
|
* @param props an object containing the content (children) to show inside the alert box.
|
|
14
13
|
*/
|
|
15
14
|
export const BannerWarning = ({ children, sx, showCloseButton = true }:
|
|
16
|
-
{ children: React.ReactNode, sx?:
|
|
15
|
+
{ children: React.ReactNode, sx?: SxProp, showCloseButton?: boolean }) => {
|
|
17
16
|
const bannerKey = 'bannerClosed'
|
|
18
17
|
|
|
19
18
|
const [isVisible, setIsVisible] = useState(() => {
|