@snack-uikit/notification 0.7.40-preview-b09d21bf.0 → 0.7.41

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
@@ -3,6 +3,27 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 0.7.41 (2024-07-19)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **FF-5145:** fix readAllButton size ([79e262b](https://github.com/cloud-ru-tech/snack-uikit/commit/79e262bc3898ed8f9e2bb0807f2cde72f1395b3e))
12
+
13
+
14
+
15
+
16
+
17
+ ## 0.7.40 (2024-07-19)
18
+
19
+ ### Only dependencies have been changed
20
+ * [@snack-uikit/chips@0.14.13](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/chips/CHANGELOG.md)
21
+ * [@snack-uikit/list@0.14.0](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/list/CHANGELOG.md)
22
+
23
+
24
+
25
+
26
+
6
27
  ## 0.7.39 (2024-07-12)
7
28
 
8
29
 
@@ -29,7 +29,7 @@ import styles from './styles.module.css';
29
29
  export function NotificationPanel(_a) {
30
30
  var { title, settings, chips, readAllButton, footerButton, content, loading, skeletonsAmount = 2, scrollEndRef, scrollContainerRef, className } = _a, rest = __rest(_a, ["title", "settings", "chips", "readAllButton", "footerButton", "content", "loading", "skeletonsAmount", "scrollEndRef", "scrollContainerRef", "className"]);
31
31
  const skeletons = useMemo(() => Array.from({ length: skeletonsAmount }, (_, i) => i), [skeletonsAmount]);
32
- return (_jsxs("div", Object.assign({ className: cn(styles.wrapper, className) }, extractSupportProps(rest), { children: [_jsxs("div", { className: styles.notificationPanelHeader, children: [_jsxs("div", { className: styles.notificationPanelHeadline, children: [_jsx(Typography.SansHeadlineS, { className: styles.notificationPanelTitle, children: _jsx(TruncateString, { text: title, "data-test-id": TEST_IDS.title }) }), settings && _jsx(NotificationPanelSettings, Object.assign({}, settings))] }), _jsxs("div", { className: styles.notificationPanelHeaderFunctions, children: [_jsx("div", { className: styles.notificationPanelChips, children: chips === null || chips === void 0 ? void 0 : chips.map(chip => (_createElement(ChipToggle, Object.assign({}, chip, { key: chip.label, "data-test-id": `${TEST_IDS.chip}-${chip.label}`, size: 'xs', disabled: chip.disabled || loading })))) }), readAllButton && (_jsx(ButtonFunction, Object.assign({}, readAllButton, { disabled: readAllButton.disabled || loading, "data-test-id": TEST_IDS.readAll })))] })] }), _jsxs(Scroll, { size: 'm', className: styles.notificationPanelBody, ref: scrollContainerRef, children: [content, loading && (_jsx(SkeletonContextProvider, { loading: loading || false, children: skeletons.map(skeleton => (_jsx(WithSkeleton, { skeleton: _jsx(NotificationCardSkeleton, {}) }, skeleton))) })), _jsx("div", { className: styles.scrollStub, ref: scrollEndRef })] }), footerButton && (_jsx("button", { type: 'button', onClick: footerButton.onClick, className: styles.notificationPanelFooterButton, "data-test-id": TEST_IDS.footerButton, children: _jsx(Typography.SansLabelS, { children: footerButton.label }) }))] })));
32
+ return (_jsxs("div", Object.assign({ className: cn(styles.wrapper, className) }, extractSupportProps(rest), { children: [_jsxs("div", { className: styles.notificationPanelHeader, children: [_jsxs("div", { className: styles.notificationPanelHeadline, children: [_jsx(Typography.SansHeadlineS, { className: styles.notificationPanelTitle, children: _jsx(TruncateString, { text: title, "data-test-id": TEST_IDS.title }) }), settings && _jsx(NotificationPanelSettings, Object.assign({}, settings))] }), _jsxs("div", { className: styles.notificationPanelHeaderFunctions, children: [_jsx("div", { className: styles.notificationPanelChips, children: chips === null || chips === void 0 ? void 0 : chips.map(chip => (_createElement(ChipToggle, Object.assign({}, chip, { key: chip.label, "data-test-id": `${TEST_IDS.chip}-${chip.label}`, size: 'xs', disabled: chip.disabled || loading })))) }), readAllButton && (_jsx(ButtonFunction, Object.assign({}, readAllButton, { size: 'xs', disabled: readAllButton.disabled || loading, "data-test-id": TEST_IDS.readAll })))] })] }), _jsxs(Scroll, { size: 'm', className: styles.notificationPanelBody, ref: scrollContainerRef, children: [content, loading && (_jsx(SkeletonContextProvider, { loading: loading || false, children: skeletons.map(skeleton => (_jsx(WithSkeleton, { skeleton: _jsx(NotificationCardSkeleton, {}) }, skeleton))) })), _jsx("div", { className: styles.scrollStub, ref: scrollEndRef })] }), footerButton && (_jsx("button", { type: 'button', onClick: footerButton.onClick, className: styles.notificationPanelFooterButton, "data-test-id": TEST_IDS.footerButton, children: _jsx(Typography.SansLabelS, { children: footerButton.label }) }))] })));
33
33
  }
34
34
  (function (NotificationPanel) {
35
35
  NotificationPanel.Blank = NotificationPanelBlank;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Notification",
7
- "version": "0.7.40-preview-b09d21bf.0",
7
+ "version": "0.7.41",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -33,19 +33,19 @@
33
33
  "scripts": {},
34
34
  "dependencies": {
35
35
  "@snack-uikit/button": "0.17.2",
36
- "@snack-uikit/chips": "0.14.13-preview-b09d21bf.0",
37
- "@snack-uikit/icons": "0.21.1-preview-b09d21bf.0",
38
- "@snack-uikit/info-block": "0.4.4-preview-b09d21bf.0",
39
- "@snack-uikit/link": "0.12.4-preview-b09d21bf.0",
40
- "@snack-uikit/list": "0.13.11-preview-b09d21bf.0",
36
+ "@snack-uikit/chips": "0.14.14",
37
+ "@snack-uikit/icons": "0.22.0",
38
+ "@snack-uikit/info-block": "0.4.4",
39
+ "@snack-uikit/link": "0.12.4",
40
+ "@snack-uikit/list": "0.14.1",
41
41
  "@snack-uikit/popover-private": "0.13.4",
42
42
  "@snack-uikit/scroll": "0.6.0",
43
43
  "@snack-uikit/skeleton": "0.3.4",
44
- "@snack-uikit/tag": "0.9.7-preview-b09d21bf.0",
45
- "@snack-uikit/truncate-string": "0.4.20-preview-b09d21bf.0",
44
+ "@snack-uikit/tag": "0.9.7",
45
+ "@snack-uikit/truncate-string": "0.4.20",
46
46
  "@snack-uikit/typography": "0.6.2",
47
47
  "@snack-uikit/utils": "3.3.0",
48
48
  "classnames": "2.3.2"
49
49
  },
50
- "gitHead": "b51349c356c69cdff4fc4d4ff19374d66b82c015"
50
+ "gitHead": "4c153b54a2902cf20883d85b4dc753344313c6cb"
51
51
  }
@@ -95,6 +95,7 @@ export function NotificationPanel({
95
95
  {readAllButton && (
96
96
  <ButtonFunction
97
97
  {...readAllButton}
98
+ size='xs'
98
99
  disabled={readAllButton.disabled || loading}
99
100
  data-test-id={TEST_IDS.readAll}
100
101
  />