@snack-uikit/info-block 0.4.9 → 0.4.10-preview-d96c83e8.0
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/dist/cjs/components/Footer/Footer.js +46 -0
- package/dist/cjs/components/Footer/hooks.js +22 -0
- package/dist/cjs/components/Footer/index.js +25 -0
- package/dist/cjs/components/InfoBlock/InfoBlock.js +82 -0
- package/dist/cjs/components/InfoBlock/index.js +25 -0
- package/dist/cjs/components/index.js +10 -0
- package/dist/cjs/constants.js +23 -0
- package/dist/cjs/contexts.js +15 -0
- package/dist/cjs/index.js +25 -0
- package/dist/cjs/types.js +5 -0
- package/dist/esm/components/Footer/Footer.d.ts +14 -0
- package/dist/esm/components/Footer/hooks.d.ts +6 -0
- package/dist/esm/components/Footer/index.js +1 -0
- package/dist/esm/components/InfoBlock/InfoBlock.d.ts +21 -0
- package/dist/esm/components/InfoBlock/index.js +1 -0
- package/dist/esm/components/index.d.ts +9 -0
- package/dist/esm/constants.d.ts +17 -0
- package/dist/esm/contexts.d.ts +7 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/types.d.ts +4 -0
- package/package.json +12 -10
- package/dist/components/Footer/styles.module.css +0 -5
- package/dist/components/InfoBlock/styles.module.css +0 -77
- /package/dist/{components → cjs/components}/Footer/Footer.d.ts +0 -0
- /package/dist/{components → cjs/components}/Footer/hooks.d.ts +0 -0
- /package/dist/{components → cjs/components}/Footer/index.d.ts +0 -0
- /package/dist/{components → cjs/components}/InfoBlock/InfoBlock.d.ts +0 -0
- /package/dist/{components → cjs/components}/InfoBlock/index.d.ts +0 -0
- /package/dist/{components → cjs/components}/index.d.ts +0 -0
- /package/dist/{constants.d.ts → cjs/constants.d.ts} +0 -0
- /package/dist/{contexts.d.ts → cjs/contexts.d.ts} +0 -0
- /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/dist/{types.d.ts → cjs/types.d.ts} +0 -0
- /package/dist/{components → esm/components}/Footer/Footer.js +0 -0
- /package/dist/{components → esm/components}/Footer/hooks.js +0 -0
- /package/dist/{components/Footer/index.js → esm/components/Footer/index.d.ts} +0 -0
- /package/dist/{components → esm/components}/InfoBlock/InfoBlock.js +0 -0
- /package/dist/{components/InfoBlock/index.js → esm/components/InfoBlock/index.d.ts} +0 -0
- /package/dist/{components → esm/components}/index.js +0 -0
- /package/dist/{constants.js → esm/constants.js} +0 -0
- /package/dist/{contexts.js → esm/contexts.js} +0 -0
- /package/dist/{index.js → esm/index.d.ts} +0 -0
- /package/dist/{types.js → esm/types.js} +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
4
|
+
return mod && mod.__esModule ? mod : {
|
|
5
|
+
"default": mod
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
exports.Footer = Footer;
|
|
12
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
13
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
14
|
+
const button_1 = require("@snack-uikit/button");
|
|
15
|
+
const constants_1 = require("../../constants");
|
|
16
|
+
const contexts_1 = require("../../contexts");
|
|
17
|
+
const hooks_1 = require("./hooks");
|
|
18
|
+
const styles_module_scss_1 = __importDefault({});
|
|
19
|
+
function Footer(_ref) {
|
|
20
|
+
let {
|
|
21
|
+
primaryButton,
|
|
22
|
+
secondaryButton,
|
|
23
|
+
className
|
|
24
|
+
} = _ref;
|
|
25
|
+
const PrimaryButton = (0, hooks_1.useButtonWithTooltip)({
|
|
26
|
+
Button: button_1.ButtonFilled,
|
|
27
|
+
tooltip: primaryButton.tooltip
|
|
28
|
+
});
|
|
29
|
+
const SecondaryButton = (0, hooks_1.useButtonWithTooltip)({
|
|
30
|
+
Button: button_1.ButtonTonal,
|
|
31
|
+
tooltip: secondaryButton === null || secondaryButton === void 0 ? void 0 : secondaryButton.tooltip
|
|
32
|
+
});
|
|
33
|
+
const {
|
|
34
|
+
size
|
|
35
|
+
} = (0, contexts_1.useInfoBlockContext)();
|
|
36
|
+
return (0, jsx_runtime_1.jsxs)("div", {
|
|
37
|
+
className: (0, classnames_1.default)(styles_module_scss_1.default.infoBlockFooter, className),
|
|
38
|
+
children: [secondaryButton && (0, jsx_runtime_1.jsx)(SecondaryButton, Object.assign({}, secondaryButton, {
|
|
39
|
+
size: size,
|
|
40
|
+
"data-test-id": secondaryButton['data-test-id'] || constants_1.TEST_IDS.secondaryButton
|
|
41
|
+
})), (0, jsx_runtime_1.jsx)(PrimaryButton, Object.assign({}, primaryButton, {
|
|
42
|
+
size: size,
|
|
43
|
+
"data-test-id": primaryButton['data-test-id'] || constants_1.TEST_IDS.primaryButton
|
|
44
|
+
}))]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useButtonWithTooltip = useButtonWithTooltip;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const tooltip_1 = require("@snack-uikit/tooltip");
|
|
9
|
+
function useButtonWithTooltip(_ref) {
|
|
10
|
+
let {
|
|
11
|
+
Button,
|
|
12
|
+
tooltip
|
|
13
|
+
} = _ref;
|
|
14
|
+
if (tooltip) {
|
|
15
|
+
return function ButtonWithTooltip(props) {
|
|
16
|
+
return (0, jsx_runtime_1.jsx)(tooltip_1.Tooltip, Object.assign({}, tooltip, {
|
|
17
|
+
children: (0, jsx_runtime_1.jsx)(Button, Object.assign({}, props))
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
return Button;
|
|
22
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return m[k];
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
} : function (o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
});
|
|
19
|
+
var __exportStar = void 0 && (void 0).__exportStar || function (m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
});
|
|
25
|
+
__exportStar(require("./Footer"), exports);
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
4
|
+
var t = {};
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
12
|
+
return mod && mod.__esModule ? mod : {
|
|
13
|
+
"default": mod
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", {
|
|
17
|
+
value: true
|
|
18
|
+
});
|
|
19
|
+
exports.InfoBlock = InfoBlock;
|
|
20
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
21
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
22
|
+
const icon_predefined_1 = require("@snack-uikit/icon-predefined");
|
|
23
|
+
const typography_1 = require("@snack-uikit/typography");
|
|
24
|
+
const utils_1 = require("@snack-uikit/utils");
|
|
25
|
+
const constants_1 = require("../../constants");
|
|
26
|
+
const contexts_1 = require("../../contexts");
|
|
27
|
+
const styles_module_scss_1 = __importDefault({});
|
|
28
|
+
function InfoBlock(_a) {
|
|
29
|
+
var _b, _c;
|
|
30
|
+
var {
|
|
31
|
+
title,
|
|
32
|
+
description,
|
|
33
|
+
icon,
|
|
34
|
+
size = constants_1.SIZE.S,
|
|
35
|
+
footer,
|
|
36
|
+
align = constants_1.ALIGN.Vertical,
|
|
37
|
+
className
|
|
38
|
+
} = _a,
|
|
39
|
+
rest = __rest(_a, ["title", "description", "icon", "size", "footer", "align", "className"]);
|
|
40
|
+
return (0, jsx_runtime_1.jsx)(contexts_1.InfoBlockContext.Provider, {
|
|
41
|
+
value: {
|
|
42
|
+
size
|
|
43
|
+
},
|
|
44
|
+
children: (0, jsx_runtime_1.jsxs)("div", Object.assign({
|
|
45
|
+
className: (0, classnames_1.default)(styles_module_scss_1.default.infoBlock, className),
|
|
46
|
+
"data-size": size,
|
|
47
|
+
"data-align": align
|
|
48
|
+
}, (0, utils_1.extractSupportProps)(rest), {
|
|
49
|
+
children: [icon && (0, jsx_runtime_1.jsx)(icon_predefined_1.IconPredefined, {
|
|
50
|
+
icon: icon.icon,
|
|
51
|
+
appearance: (_b = icon.appearance) !== null && _b !== void 0 ? _b : 'primary',
|
|
52
|
+
decor: (_c = icon.decor) !== null && _c !== void 0 ? _c : true,
|
|
53
|
+
size: size,
|
|
54
|
+
"data-test-id": constants_1.TEST_IDS.icon
|
|
55
|
+
}), (0, jsx_runtime_1.jsxs)("div", {
|
|
56
|
+
className: styles_module_scss_1.default.contentLayout,
|
|
57
|
+
children: [(0, jsx_runtime_1.jsxs)("div", {
|
|
58
|
+
className: styles_module_scss_1.default.textWrap,
|
|
59
|
+
children: [title && (0, jsx_runtime_1.jsx)(typography_1.Typography, {
|
|
60
|
+
family: 'sans',
|
|
61
|
+
purpose: 'title',
|
|
62
|
+
size: size,
|
|
63
|
+
className: styles_module_scss_1.default.title,
|
|
64
|
+
"data-test-id": constants_1.TEST_IDS.title,
|
|
65
|
+
children: title
|
|
66
|
+
}), description && (0, jsx_runtime_1.jsx)(typography_1.Typography, {
|
|
67
|
+
family: 'sans',
|
|
68
|
+
purpose: 'body',
|
|
69
|
+
size: size,
|
|
70
|
+
className: styles_module_scss_1.default.description,
|
|
71
|
+
"data-test-id": constants_1.TEST_IDS.description,
|
|
72
|
+
children: description
|
|
73
|
+
})]
|
|
74
|
+
}), footer && (0, jsx_runtime_1.jsx)("div", {
|
|
75
|
+
className: styles_module_scss_1.default.footer,
|
|
76
|
+
"data-test-id": constants_1.TEST_IDS.footer,
|
|
77
|
+
children: footer
|
|
78
|
+
})]
|
|
79
|
+
})]
|
|
80
|
+
}))
|
|
81
|
+
});
|
|
82
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return m[k];
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
} : function (o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
});
|
|
19
|
+
var __exportStar = void 0 && (void 0).__exportStar || function (m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
});
|
|
25
|
+
__exportStar(require("./InfoBlock"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.InfoBlock = void 0;
|
|
7
|
+
const Footer_1 = require("./Footer");
|
|
8
|
+
const InfoBlock_1 = require("./InfoBlock");
|
|
9
|
+
exports.InfoBlock = InfoBlock_1.InfoBlock;
|
|
10
|
+
exports.InfoBlock.Footer = Footer_1.Footer;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TEST_IDS = exports.ALIGN = exports.SIZE = void 0;
|
|
7
|
+
exports.SIZE = {
|
|
8
|
+
S: 's',
|
|
9
|
+
M: 'm',
|
|
10
|
+
L: 'l'
|
|
11
|
+
};
|
|
12
|
+
exports.ALIGN = {
|
|
13
|
+
Vertical: 'vertical',
|
|
14
|
+
Horizontal: 'horizontal'
|
|
15
|
+
};
|
|
16
|
+
exports.TEST_IDS = {
|
|
17
|
+
icon: 'info-block__icon',
|
|
18
|
+
title: 'info-block__title',
|
|
19
|
+
description: 'info-block__description',
|
|
20
|
+
footer: 'info-block__footer',
|
|
21
|
+
primaryButton: 'info-block__primary-button',
|
|
22
|
+
secondaryButton: 'info-block__secondary-button'
|
|
23
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.InfoBlockContext = void 0;
|
|
7
|
+
exports.useInfoBlockContext = useInfoBlockContext;
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const constants_1 = require("./constants");
|
|
10
|
+
exports.InfoBlockContext = (0, react_1.createContext)({
|
|
11
|
+
size: constants_1.SIZE.S
|
|
12
|
+
});
|
|
13
|
+
function useInfoBlockContext() {
|
|
14
|
+
return (0, react_1.useContext)(exports.InfoBlockContext);
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return m[k];
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
} : function (o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
});
|
|
19
|
+
var __exportStar = void 0 && (void 0).__exportStar || function (m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
});
|
|
25
|
+
__exportStar(require("./components"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ButtonFilledProps, ButtonTonalProps } from '@snack-uikit/button';
|
|
2
|
+
import { TooltipProps } from '@snack-uikit/tooltip';
|
|
3
|
+
export type FooterProps = {
|
|
4
|
+
/** Основная кнопка */
|
|
5
|
+
primaryButton: Omit<ButtonFilledProps, 'size'> & {
|
|
6
|
+
tooltip?: TooltipProps;
|
|
7
|
+
};
|
|
8
|
+
/** Дополнительная кнопка */
|
|
9
|
+
secondaryButton?: Omit<ButtonTonalProps, 'size'> & {
|
|
10
|
+
tooltip?: TooltipProps;
|
|
11
|
+
};
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function Footer({ primaryButton, secondaryButton, className }: FooterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JSXElementConstructor } from 'react';
|
|
2
|
+
import { TooltipProps } from '@snack-uikit/tooltip';
|
|
3
|
+
export declare function useButtonWithTooltip<T>({ Button, tooltip, }: {
|
|
4
|
+
tooltip?: TooltipProps;
|
|
5
|
+
Button: JSXElementConstructor<T>;
|
|
6
|
+
}): JSXElementConstructor<T> | ((props: T) => import("react/jsx-runtime").JSX.Element);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Footer';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { IconPredefinedProps } from '@snack-uikit/icon-predefined';
|
|
3
|
+
import { WithSupportProps } from '@snack-uikit/utils';
|
|
4
|
+
import { Align, Size } from '../../types';
|
|
5
|
+
import { Footer, FooterProps } from '../Footer';
|
|
6
|
+
export type InfoBlockProps = WithSupportProps<{
|
|
7
|
+
/** Заголовок */
|
|
8
|
+
title?: string;
|
|
9
|
+
/** Подзаголовок */
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
/** Иконка */
|
|
12
|
+
icon?: Pick<IconPredefinedProps, 'icon' | 'decor' | 'appearance'>;
|
|
13
|
+
/** Размер */
|
|
14
|
+
size?: Size;
|
|
15
|
+
/** Расположение элементов */
|
|
16
|
+
align?: Align;
|
|
17
|
+
/** Вложенный Footer */
|
|
18
|
+
footer?: ReactElement<FooterProps, typeof Footer> | ReactNode;
|
|
19
|
+
className?: string;
|
|
20
|
+
}>;
|
|
21
|
+
export declare function InfoBlock({ title, description, icon, size, footer, align, className, ...rest }: InfoBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InfoBlock';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Footer, FooterProps as FooterComponentProps } from './Footer';
|
|
2
|
+
import { InfoBlock as InfoBlockComponent, InfoBlockProps } from './InfoBlock';
|
|
3
|
+
export declare const InfoBlock: typeof InfoBlockComponent & {
|
|
4
|
+
Footer: typeof Footer;
|
|
5
|
+
};
|
|
6
|
+
export { type InfoBlockProps };
|
|
7
|
+
export declare namespace InfoBlock {
|
|
8
|
+
type FooterProps = FooterComponentProps;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const SIZE: {
|
|
2
|
+
readonly S: "s";
|
|
3
|
+
readonly M: "m";
|
|
4
|
+
readonly L: "l";
|
|
5
|
+
};
|
|
6
|
+
export declare const ALIGN: {
|
|
7
|
+
readonly Vertical: "vertical";
|
|
8
|
+
readonly Horizontal: "horizontal";
|
|
9
|
+
};
|
|
10
|
+
export declare const TEST_IDS: {
|
|
11
|
+
icon: string;
|
|
12
|
+
title: string;
|
|
13
|
+
description: string;
|
|
14
|
+
footer: string;
|
|
15
|
+
primaryButton: string;
|
|
16
|
+
secondaryButton: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
package/package.json
CHANGED
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Info Block",
|
|
7
|
-
"version": "0.4.
|
|
7
|
+
"version": "0.4.10-preview-d96c83e8.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
11
11
|
"*.woff2"
|
|
12
12
|
],
|
|
13
13
|
"description": "",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
14
|
+
"types": "./dist/esm/index.d.ts",
|
|
15
|
+
"main": "./dist/cjs/index.js",
|
|
16
|
+
"module": "./dist/esm/index.js",
|
|
16
17
|
"homepage": "https://cloud-ru-tech.github.io/snack-uikit/packages/info-block",
|
|
17
18
|
"repository": {
|
|
18
19
|
"type": "git",
|
|
@@ -24,7 +25,8 @@
|
|
|
24
25
|
"Белов Алексей <anbelov@cloud.ru>"
|
|
25
26
|
],
|
|
26
27
|
"files": [
|
|
27
|
-
"dist",
|
|
28
|
+
"dist/cjs",
|
|
29
|
+
"dist/esm",
|
|
28
30
|
"src",
|
|
29
31
|
"./CHANGELOG.md",
|
|
30
32
|
"./LICENSE"
|
|
@@ -32,12 +34,12 @@
|
|
|
32
34
|
"license": "Apache-2.0",
|
|
33
35
|
"scripts": {},
|
|
34
36
|
"dependencies": {
|
|
35
|
-
"@snack-uikit/button": "0.17.
|
|
36
|
-
"@snack-uikit/icon-predefined": "0.5.
|
|
37
|
-
"@snack-uikit/tooltip": "0.13.
|
|
38
|
-
"@snack-uikit/typography": "0.6.
|
|
39
|
-
"@snack-uikit/utils": "3.4.0",
|
|
37
|
+
"@snack-uikit/button": "0.17.6-preview-d96c83e8.0",
|
|
38
|
+
"@snack-uikit/icon-predefined": "0.5.3-preview-d96c83e8.0",
|
|
39
|
+
"@snack-uikit/tooltip": "0.13.11-preview-d96c83e8.0",
|
|
40
|
+
"@snack-uikit/typography": "0.6.4-preview-d96c83e8.0",
|
|
41
|
+
"@snack-uikit/utils": "3.4.1-preview-d96c83e8.0",
|
|
40
42
|
"classnames": "2.3.2"
|
|
41
43
|
},
|
|
42
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "7ad2685e79ccef7528ade40fe4e2a5d4e609a22f"
|
|
43
45
|
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
.contentLayout{
|
|
2
|
-
display:flex;
|
|
3
|
-
flex-direction:column;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.textWrap{
|
|
7
|
-
display:flex;
|
|
8
|
-
flex-direction:column;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.footer{
|
|
12
|
-
position:relative;
|
|
13
|
-
box-sizing:border-box;
|
|
14
|
-
width:100%;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.title{
|
|
18
|
-
color:var(--sys-neutral-text-main, #41424e);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.description{
|
|
22
|
-
color:var(--sys-neutral-text-support, #6d707f);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.infoBlock{
|
|
26
|
-
display:flex;
|
|
27
|
-
box-sizing:border-box;
|
|
28
|
-
}
|
|
29
|
-
.infoBlock[data-align=vertical]{
|
|
30
|
-
flex-direction:column;
|
|
31
|
-
align-items:center;
|
|
32
|
-
}
|
|
33
|
-
.infoBlock[data-align=vertical] .contentLayout{
|
|
34
|
-
align-items:center;
|
|
35
|
-
}
|
|
36
|
-
.infoBlock[data-align=vertical] .textWrap{
|
|
37
|
-
align-items:center;
|
|
38
|
-
}
|
|
39
|
-
.infoBlock[data-align=vertical] .footer{
|
|
40
|
-
width:auto;
|
|
41
|
-
text-align:center;
|
|
42
|
-
}
|
|
43
|
-
.infoBlock[data-align=vertical] .description,
|
|
44
|
-
.infoBlock[data-align=vertical] .title{
|
|
45
|
-
text-align:center;
|
|
46
|
-
}
|
|
47
|
-
.infoBlock[data-align=horizontal]{
|
|
48
|
-
flex-direction:row;
|
|
49
|
-
align-items:flex-start;
|
|
50
|
-
}
|
|
51
|
-
.infoBlock[data-size=s]{
|
|
52
|
-
gap:var(--space-info-block-s-container-gap, 12px);
|
|
53
|
-
}
|
|
54
|
-
.infoBlock[data-size=s] .contentLayout{
|
|
55
|
-
gap:var(--space-info-block-s-container-content-layout-gap, 16px);
|
|
56
|
-
}
|
|
57
|
-
.infoBlock[data-size=s] .textWrap{
|
|
58
|
-
gap:var(--space-info-block-s-container-content-layout-text-wrap-gap, 4px);
|
|
59
|
-
}
|
|
60
|
-
.infoBlock[data-size=m]{
|
|
61
|
-
gap:var(--space-info-block-m-container-gap, 16px);
|
|
62
|
-
}
|
|
63
|
-
.infoBlock[data-size=m] .contentLayout{
|
|
64
|
-
gap:var(--space-info-block-m-container-content-layout-gap, 24px);
|
|
65
|
-
}
|
|
66
|
-
.infoBlock[data-size=m] .textWrap{
|
|
67
|
-
gap:var(--space-info-block-m-container-content-layout-text-wrap-gap, 8px);
|
|
68
|
-
}
|
|
69
|
-
.infoBlock[data-size=l]{
|
|
70
|
-
gap:var(--space-info-block-l-container-gap, 24px);
|
|
71
|
-
}
|
|
72
|
-
.infoBlock[data-size=l] .contentLayout{
|
|
73
|
-
gap:var(--space-info-block-l-container-content-layout-gap, 24px);
|
|
74
|
-
}
|
|
75
|
-
.infoBlock[data-size=l] .textWrap{
|
|
76
|
-
gap:var(--space-info-block-l-container-content-layout-text-wrap-gap, 8px);
|
|
77
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|