@stack-spot/portal-components 2.25.3 → 2.25.4

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.4](https://github.com/stack-spot/portal-commons/compare/portal-components@v2.25.3...portal-components@v2.25.4) (2025-08-15)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Removed sx props banner warning ([#1418](https://github.com/stack-spot/portal-commons/issues/1418)) ([6fbbe2c](https://github.com/stack-spot/portal-commons/commit/6fbbe2c0ae6157cf7c6908af6d49b1dc7e5686a6))
9
+
3
10
  ## [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
11
 
5
12
 
@@ -5,7 +5,7 @@ import { SxProp } from '@citric/core';
5
5
  * This renders a yellow box with an exclamation icon. The content passed as parameter is placed on the right of the icon.
6
6
  * @param props an object containing the content (children) to show inside the alert box.
7
7
  */
8
- export declare const BannerWarning: ({ children, sx, showCloseButton }: {
8
+ export declare const BannerWarning: ({ children, showCloseButton }: {
9
9
  children: React.ReactNode;
10
10
  sx?: SxProp;
11
11
  showCloseButton?: boolean;
@@ -1 +1 @@
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
+ {"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,+BAC5B;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,mDA4EtE,CAAA"}
@@ -10,7 +10,7 @@ import { getCookie, setCookie } from '../utils/cookie.js';
10
10
  * This renders a yellow box with an exclamation icon. The content passed as parameter is placed on the right of the icon.
11
11
  * @param props an object containing the content (children) to show inside the alert box.
12
12
  */
13
- export const BannerWarning = ({ children, sx, showCloseButton = true }) => {
13
+ export const BannerWarning = ({ children, showCloseButton = true }) => {
14
14
  const bannerKey = 'bannerClosed';
15
15
  const [isVisible, setIsVisible] = useState(() => {
16
16
  if (typeof window !== 'undefined') {
@@ -35,7 +35,6 @@ export const BannerWarning = ({ children, sx, showCloseButton = true }) => {
35
35
  justifyContent: 'space-between',
36
36
  height: 'auto',
37
37
  padding: `${showCloseButton ? '0.5rem' : '1rem'}`,
38
- ...sx,
39
38
  }, children: [_jsxs(Flex, { sx: {
40
39
  alignItems: 'center',
41
40
  flexWrap: 'nowrap',
@@ -1 +1 @@
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,eA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CAAA;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stack-spot/portal-components",
3
- "version": "2.25.3",
3
+ "version": "2.25.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@ import { getCookie, setCookie } from '../utils/cookie'
11
11
  * This renders a yellow box with an exclamation icon. The content passed as parameter is placed on the right of the icon.
12
12
  * @param props an object containing the content (children) to show inside the alert box.
13
13
  */
14
- export const BannerWarning = ({ children, sx, showCloseButton = true }:
14
+ export const BannerWarning = ({ children, showCloseButton = true }:
15
15
  { children: React.ReactNode, sx?: SxProp, showCloseButton?: boolean }) => {
16
16
  const bannerKey = 'bannerClosed'
17
17
 
@@ -45,7 +45,6 @@ export const BannerWarning = ({ children, sx, showCloseButton = true }:
45
45
  justifyContent: 'space-between',
46
46
  height: 'auto',
47
47
  padding: `${showCloseButton ? '0.5rem' : '1rem'}`,
48
- ...sx,
49
48
  }}
50
49
  >
51
50
  <Flex