@stack-spot/portal-layout 2.37.0 → 2.37.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.37.1](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.37.0...portal-layout@v2.37.1) (2025-11-07)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * semantic for accessibility ([#1766](https://github.com/stack-spot/portal-commons/issues/1766)) ([578bc95](https://github.com/stack-spot/portal-commons/commit/578bc95698f5d707f4645693df22c4da57f8684e))
9
+
3
10
  ## [2.37.0](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.36.3...portal-layout@v2.37.0) (2025-09-30)
4
11
 
5
12
 
@@ -8,7 +8,7 @@ import { NotificationPanelFooter } from './NotificationsPanelFooter.js';
8
8
  import { StyledBackdrop } from './styled.js';
9
9
  export const NotificationPanel = ({ filter, onFilter, loading, error, visible, onClose, ...props }) => {
10
10
  const controller = useNotificationController();
11
- return (_jsx(StyledBackdrop, { visible: visible, onClose: onClose, persistent: true, children: _jsx(AnimatedHeight, { className: "notification-panel", visible: visible, header: _jsx(NotificationPanelHeader, { filter: filter, onChangeFilter: onFilter, onClose: onClose }), footer: _jsx(NotificationPanelFooter, { onClose: onClose }), children: _jsx(ScrollView, { direction: "vertical", style: { maxHeight: 'calc(100vh - 300px)' }, children: error ? _jsx(ErrorFeedback, { code: error.code, direction: "column" }) : _jsx(NotificationList, { ...props, compact: true, loading: loading, onCommit: id => controller.markAsCommitted(id), onClickViewNotification: () => {
11
+ return (_jsx(StyledBackdrop, { visible: visible, onClose: onClose, persistent: true, children: _jsx(AnimatedHeight, { className: "notification-panel", visible: visible, header: _jsx(NotificationPanelHeader, { filter: filter, onChangeFilter: onFilter, onClose: onClose }), footer: _jsx(NotificationPanelFooter, { onClose: onClose }), children: _jsx(ScrollView, { direction: "vertical", style: { maxHeight: 'calc(100vh - 200px)' }, children: error ? _jsx(ErrorFeedback, { code: error.code, direction: "column" }) : _jsx(NotificationList, { ...props, compact: true, loading: loading, onCommit: id => controller.markAsCommitted(id), onClickViewNotification: () => {
12
12
  onClose();
13
13
  controller.config.onClickViewNotification?.();
14
14
  }, onClickAction: (id) => {
@@ -32,6 +32,6 @@ const ContentBox = styled.section `
32
32
  */
33
33
  export const OverlayContent = ({ children, title, subtitle, className, style, onClose, onGoBack, type }) => {
34
34
  const t = useDictionary();
35
- return (_jsxs(ContentBox, { style: style, className: listToClass([className, type]), children: [_jsxs("header", { children: [_jsxs(Flex, { flexDirection: "column", flex: 1, children: [_jsxs(Flex, { style: { gap: '6px' }, children: [onGoBack && (_jsx(IconButton, { appearance: "circle", onClick: onGoBack, title: t.goBack, "aria-label": t.goBack, children: _jsx(ArrowLeft, {}) })), _jsx(Text, { as: "h2", appearance: type === 'modal' ? 'h3' : 'h4', children: title })] }), subtitle && _jsx(Text, { appearance: "body2", colorScheme: "light.700", children: subtitle })] }), _jsx(IconButton, { appearance: "circle", onClick: onClose, title: t.close, "aria-label": t.close, id: CLOSE_OVERLAY_ID, children: _jsx(TimesMini, {}) })] }), children] }));
35
+ return (_jsxs(ContentBox, { style: style, className: listToClass([className, type]), children: [_jsxs("header", { children: [_jsxs(Flex, { flexDirection: "column", flex: 1, children: [_jsxs(Flex, { style: { gap: '6px' }, children: [onGoBack && (_jsx(IconButton, { appearance: "circle", onClick: onGoBack, title: t.goBack, "aria-label": t.goBack, children: _jsx(ArrowLeft, {}) })), _jsx(Text, { as: "h1", appearance: type === 'modal' ? 'h3' : 'h4', children: title })] }), subtitle && _jsx(Text, { appearance: "body2", colorScheme: "light.700", children: subtitle })] }), _jsx(IconButton, { appearance: "circle", onClick: onClose, title: t.close, "aria-label": t.close, id: CLOSE_OVERLAY_ID, children: _jsx(TimesMini, {}) })] }), children] }));
36
36
  };
37
37
  //# sourceMappingURL=OverlayContent.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stack-spot/portal-layout",
3
- "version": "2.37.0",
3
+ "version": "2.37.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,7 +17,7 @@ export const NotificationPanel = ({ filter, onFilter, loading, error, visible, o
17
17
  header={<NotificationPanelHeader filter={filter} onChangeFilter={onFilter} onClose={onClose} />}
18
18
  footer={<NotificationPanelFooter onClose={onClose} />}
19
19
  >
20
- <ScrollView direction="vertical" style={{ maxHeight: 'calc(100vh - 300px)' }}>
20
+ <ScrollView direction="vertical" style={{ maxHeight: 'calc(100vh - 200px)' }}>
21
21
  {error ? <ErrorFeedback code={error.code} direction="column" /> : <NotificationList
22
22
  {...props}
23
23
  compact
@@ -79,7 +79,7 @@ export const OverlayContent = ({ children, title, subtitle, className, style, on
79
79
  <ArrowLeft />
80
80
  </IconButton>
81
81
  )}
82
- <Text as="h2" appearance={type === 'modal' ? 'h3' : 'h4'}>{title}</Text>
82
+ <Text as="h1" appearance={type === 'modal' ? 'h3' : 'h4'}>{title}</Text>
83
83
  </Flex>
84
84
  {subtitle && <Text appearance="body2" colorScheme="light.700">{subtitle}</Text>}
85
85
  </Flex>