@snack-uikit/info-block 0.6.43-preview-02d918ac.0 → 0.6.43
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,15 @@
|
|
|
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.6.43 (2026-07-03)
|
|
7
|
+
|
|
8
|
+
### Only dependencies have been changed
|
|
9
|
+
* [@snack-uikit/tooltip@0.18.15]($PUBLIC_PROJECT_URL/blob/master/packages/tooltip/CHANGELOG.md)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## 0.6.42 (2026-06-24)
|
|
7
16
|
|
|
8
17
|
### Only dependencies have been changed
|
|
@@ -17,11 +17,9 @@ const contexts_1 = require("../../contexts");
|
|
|
17
17
|
const hooks_1 = require("./hooks");
|
|
18
18
|
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
19
19
|
function Footer(_ref) {
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
className
|
|
24
|
-
} = _ref;
|
|
20
|
+
let primaryButton = _ref.primaryButton,
|
|
21
|
+
secondaryButton = _ref.secondaryButton,
|
|
22
|
+
className = _ref.className;
|
|
25
23
|
const PrimaryButton = (0, hooks_1.useButtonWithTooltip)({
|
|
26
24
|
Button: button_1.ButtonFilled,
|
|
27
25
|
tooltip: primaryButton.tooltip
|
|
@@ -30,9 +28,8 @@ function Footer(_ref) {
|
|
|
30
28
|
Button: button_1.ButtonTonal,
|
|
31
29
|
tooltip: secondaryButton === null || secondaryButton === void 0 ? void 0 : secondaryButton.tooltip
|
|
32
30
|
});
|
|
33
|
-
const
|
|
34
|
-
size
|
|
35
|
-
} = (0, contexts_1.useInfoBlockContext)();
|
|
31
|
+
const _ref2 = (0, contexts_1.useInfoBlockContext)(),
|
|
32
|
+
size = _ref2.size;
|
|
36
33
|
return (0, jsx_runtime_1.jsxs)("div", {
|
|
37
34
|
className: (0, classnames_1.default)(styles_module_scss_1.default.infoBlockFooter, className),
|
|
38
35
|
children: [secondaryButton && (0, jsx_runtime_1.jsx)(SecondaryButton, Object.assign({}, secondaryButton, {
|
|
@@ -7,10 +7,8 @@ exports.useButtonWithTooltip = useButtonWithTooltip;
|
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const tooltip_1 = require("@snack-uikit/tooltip");
|
|
9
9
|
function useButtonWithTooltip(_ref) {
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
tooltip
|
|
13
|
-
} = _ref;
|
|
10
|
+
let Button = _ref.Button,
|
|
11
|
+
tooltip = _ref.tooltip;
|
|
14
12
|
if (tooltip) {
|
|
15
13
|
return function ButtonWithTooltip(props) {
|
|
16
14
|
return (0, jsx_runtime_1.jsx)(tooltip_1.Tooltip, Object.assign({}, tooltip, {
|
|
@@ -27,15 +27,15 @@ const contexts_1 = require("../../contexts");
|
|
|
27
27
|
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
28
28
|
function InfoBlock(_a) {
|
|
29
29
|
var _b, _c;
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
var title = _a.title,
|
|
31
|
+
description = _a.description,
|
|
32
|
+
icon = _a.icon,
|
|
33
|
+
_a$size = _a.size,
|
|
34
|
+
size = _a$size === void 0 ? constants_1.SIZE.S : _a$size,
|
|
35
|
+
footer = _a.footer,
|
|
36
|
+
_a$align = _a.align,
|
|
37
|
+
align = _a$align === void 0 ? constants_1.ALIGN.Vertical : _a$align,
|
|
38
|
+
className = _a.className,
|
|
39
39
|
rest = __rest(_a, ["title", "description", "icon", "size", "footer", "align", "className"]);
|
|
40
40
|
return (0, jsx_runtime_1.jsx)(contexts_1.InfoBlockContext.Provider, {
|
|
41
41
|
value: {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Info Block",
|
|
7
|
-
"version": "0.6.43
|
|
7
|
+
"version": "0.6.43",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@snack-uikit/button": "0.19.19",
|
|
40
40
|
"@snack-uikit/icon-predefined": "0.7.12",
|
|
41
|
-
"@snack-uikit/tooltip": "0.18.15
|
|
41
|
+
"@snack-uikit/tooltip": "0.18.15",
|
|
42
42
|
"@snack-uikit/typography": "0.8.13",
|
|
43
43
|
"@snack-uikit/utils": "4.0.2",
|
|
44
44
|
"classnames": "2.5.1"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "864821fceaa6bbb61080166d14f1682fa16e3f85"
|
|
47
47
|
}
|