@cloud-ru/uikit-product-layout 0.19.63 → 0.19.64
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 +11 -0
- package/dist/cjs/components/BlockBasic/BlockBasic.d.ts +3 -0
- package/dist/cjs/components/BlockBasic/BlockBasic.js +24 -0
- package/dist/cjs/components/BlockBasic/index.d.ts +1 -0
- package/dist/cjs/components/BlockBasic/index.js +17 -0
- package/dist/cjs/components/BlockBasic/styles.module.css +6 -0
- package/dist/cjs/components/EmptyBlock/EmptyBlock.d.ts +7 -0
- package/dist/cjs/components/EmptyBlock/EmptyBlock.js +26 -0
- package/dist/cjs/components/EmptyBlock/index.d.ts +1 -0
- package/dist/cjs/components/EmptyBlock/index.js +17 -0
- package/dist/cjs/components/EmptyBlock/styles.module.css +13 -0
- package/dist/cjs/components/NoAccess/NoAccess.d.ts +6 -0
- package/dist/cjs/components/NoAccess/NoAccess.js +30 -0
- package/dist/cjs/components/NoAccess/index.d.ts +1 -0
- package/dist/cjs/components/NoAccess/index.js +17 -0
- package/dist/cjs/components/NoAccess/styles.module.css +40 -0
- package/dist/cjs/components/index.d.ts +3 -0
- package/dist/cjs/components/index.js +19 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +17 -0
- package/dist/esm/components/BlockBasic/BlockBasic.d.ts +3 -0
- package/dist/esm/components/BlockBasic/BlockBasic.js +18 -0
- package/dist/esm/components/BlockBasic/index.d.ts +1 -0
- package/dist/esm/components/BlockBasic/index.js +1 -0
- package/dist/esm/components/BlockBasic/styles.module.css +6 -0
- package/dist/esm/components/EmptyBlock/EmptyBlock.d.ts +7 -0
- package/dist/esm/components/EmptyBlock/EmptyBlock.js +20 -0
- package/dist/esm/components/EmptyBlock/index.d.ts +1 -0
- package/dist/esm/components/EmptyBlock/index.js +1 -0
- package/dist/esm/components/EmptyBlock/styles.module.css +13 -0
- package/dist/esm/components/NoAccess/NoAccess.d.ts +6 -0
- package/dist/esm/components/NoAccess/NoAccess.js +24 -0
- package/dist/esm/components/NoAccess/index.d.ts +1 -0
- package/dist/esm/components/NoAccess/index.js +1 -0
- package/dist/esm/components/NoAccess/styles.module.css +40 -0
- package/dist/esm/components/index.d.ts +3 -0
- package/dist/esm/components/index.js +3 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.19.64 (2025-11-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **PD-3377:** contributors update to publish all packages ([719fd3e](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/719fd3e1249e247443b125c47ea408d92c8395c3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 0.19.63 (2025-11-12)
|
|
7
18
|
|
|
8
19
|
### Only dependencies have been changed
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.BlockBasic = BlockBasic;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
20
|
+
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
21
|
+
function BlockBasic(_a) {
|
|
22
|
+
var { className = '' } = _a, rest = __rest(_a, ["className"]);
|
|
23
|
+
return (0, jsx_runtime_1.jsx)("div", Object.assign({}, rest, { className: (0, classnames_1.default)(styles_module_scss_1.default.container, className) }));
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BlockBasic';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BlockBasic"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
import { InfoBlock, InfoBlockProps } from '@snack-uikit/info-block';
|
|
3
|
+
export type EmptyBlockProps = WithSupportProps<Pick<InfoBlockProps, 'title' | 'description' | 'icon' | 'className'> & (Pick<InfoBlock.FooterProps, 'primaryButton' | 'secondaryButton'> | {
|
|
4
|
+
primaryButton?: never;
|
|
5
|
+
secondaryButton?: never;
|
|
6
|
+
})>;
|
|
7
|
+
export declare function EmptyBlock({ primaryButton, secondaryButton, className, title, description, icon, ...rest }: EmptyBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.EmptyBlock = EmptyBlock;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
20
|
+
const uikit_product_utils_1 = require("@sbercloud/uikit-product-utils");
|
|
21
|
+
const info_block_1 = require("@snack-uikit/info-block");
|
|
22
|
+
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
23
|
+
function EmptyBlock(_a) {
|
|
24
|
+
var { primaryButton, secondaryButton, className, title, description, icon } = _a, rest = __rest(_a, ["primaryButton", "secondaryButton", "className", "title", "description", "icon"]);
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, classnames_1.default)(styles_module_scss_1.default.emptyBlock, className) }, (0, uikit_product_utils_1.extractSupportProps)(rest), { children: (0, jsx_runtime_1.jsx)(info_block_1.InfoBlock, { title: title, description: description, icon: icon, align: 'horizontal', size: 'l', footer: primaryButton ? ((0, jsx_runtime_1.jsx)(info_block_1.InfoBlock.Footer, { primaryButton: primaryButton, secondaryButton: secondaryButton })) : undefined, className: styles_module_scss_1.default.infoBlock }) })));
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EmptyBlock';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./EmptyBlock"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
div.emptyBlock{
|
|
2
|
+
background-color:var(--sys-neutral-background1-level, #fdfdfd);
|
|
3
|
+
border-radius:calc(var(--dimension-1m, 8px) + var(--dimension-050m, 4px));
|
|
4
|
+
padding:var(--dimension-8m, 64px);
|
|
5
|
+
display:flex;
|
|
6
|
+
align-items:center;
|
|
7
|
+
justify-content:center;
|
|
8
|
+
flex-grow:1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.infoBlock{
|
|
12
|
+
max-width:624px;
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
export type NoAccessProps = WithSupportProps<{
|
|
3
|
+
serviceName?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function NoAccess({ serviceName, className, ...rest }: NoAccessProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.NoAccess = NoAccess;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
20
|
+
const uikit_product_icons_1 = require("@sbercloud/uikit-product-icons");
|
|
21
|
+
const uikit_product_locale_1 = require("@sbercloud/uikit-product-locale");
|
|
22
|
+
const uikit_product_utils_1 = require("@sbercloud/uikit-product-utils");
|
|
23
|
+
const info_block_1 = require("@snack-uikit/info-block");
|
|
24
|
+
const BlockBasic_1 = require("../BlockBasic");
|
|
25
|
+
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
26
|
+
function NoAccess(_a) {
|
|
27
|
+
var { serviceName, className } = _a, rest = __rest(_a, ["serviceName", "className"]);
|
|
28
|
+
const { t } = (0, uikit_product_locale_1.useLocale)('Layout');
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, (0, uikit_product_utils_1.extractSupportProps)(rest), { className: (0, classnames_1.default)(styles_module_scss_1.default.wrapper, className), children: [serviceName && (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.serviceName, children: serviceName }), (0, jsx_runtime_1.jsx)(BlockBasic_1.BlockBasic, { className: styles_module_scss_1.default.baseBlock, children: (0, jsx_runtime_1.jsx)(info_block_1.InfoBlock, { size: 'm', icon: { icon: uikit_product_icons_1.LockSVG }, title: t('noAccessTitle'), description: (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.description, children: [(0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.text, children: t('noAccessSubtitle') }), (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.text, children: t('noAccessText') })] }) }) })] })));
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './NoAccess';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./NoAccess"), exports);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.wrapper{
|
|
2
|
+
width:100%;
|
|
3
|
+
min-height:100%;
|
|
4
|
+
flex-grow:1;
|
|
5
|
+
box-sizing:border-box;
|
|
6
|
+
display:flex;
|
|
7
|
+
flex-direction:column;
|
|
8
|
+
position:relative;
|
|
9
|
+
max-width:1200px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.baseBlock{
|
|
13
|
+
display:flex;
|
|
14
|
+
flex-direction:column;
|
|
15
|
+
flex:1;
|
|
16
|
+
justify-content:center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.serviceName{
|
|
20
|
+
font-family:var(--sans-headline-m-font-family, SB Sans Interface);
|
|
21
|
+
font-weight:var(--sans-headline-m-font-weight, Semibold);
|
|
22
|
+
line-height:var(--sans-headline-m-line-height, 36px);
|
|
23
|
+
font-size:var(--sans-headline-m-font-size, 28px);
|
|
24
|
+
letter-spacing:var(--sans-headline-m-letter-spacing, -0.5px);
|
|
25
|
+
paragraph-spacing:var(--sans-headline-m-paragraph-spacing, 15.4px);
|
|
26
|
+
display:block;
|
|
27
|
+
margin-bottom:24px;
|
|
28
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.description{
|
|
32
|
+
margin-top:8px;
|
|
33
|
+
max-width:500px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.text{
|
|
37
|
+
display:block;
|
|
38
|
+
text-align:center;
|
|
39
|
+
white-space:break-spaces;
|
|
40
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BlockBasic"), exports);
|
|
18
|
+
__exportStar(require("./NoAccess"), exports);
|
|
19
|
+
__exportStar(require("./EmptyBlock"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./components"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
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]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import cn from 'classnames';
|
|
14
|
+
import styles from './styles.module.css';
|
|
15
|
+
export function BlockBasic(_a) {
|
|
16
|
+
var { className = '' } = _a, rest = __rest(_a, ["className"]);
|
|
17
|
+
return _jsx("div", Object.assign({}, rest, { className: cn(styles.container, className) }));
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BlockBasic';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BlockBasic';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
import { InfoBlock, InfoBlockProps } from '@snack-uikit/info-block';
|
|
3
|
+
export type EmptyBlockProps = WithSupportProps<Pick<InfoBlockProps, 'title' | 'description' | 'icon' | 'className'> & (Pick<InfoBlock.FooterProps, 'primaryButton' | 'secondaryButton'> | {
|
|
4
|
+
primaryButton?: never;
|
|
5
|
+
secondaryButton?: never;
|
|
6
|
+
})>;
|
|
7
|
+
export declare function EmptyBlock({ primaryButton, secondaryButton, className, title, description, icon, ...rest }: EmptyBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
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]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import cn from 'classnames';
|
|
14
|
+
import { extractSupportProps } from '@sbercloud/uikit-product-utils';
|
|
15
|
+
import { InfoBlock } from '@snack-uikit/info-block';
|
|
16
|
+
import styles from './styles.module.css';
|
|
17
|
+
export function EmptyBlock(_a) {
|
|
18
|
+
var { primaryButton, secondaryButton, className, title, description, icon } = _a, rest = __rest(_a, ["primaryButton", "secondaryButton", "className", "title", "description", "icon"]);
|
|
19
|
+
return (_jsx("div", Object.assign({ className: cn(styles.emptyBlock, className) }, extractSupportProps(rest), { children: _jsx(InfoBlock, { title: title, description: description, icon: icon, align: 'horizontal', size: 'l', footer: primaryButton ? (_jsx(InfoBlock.Footer, { primaryButton: primaryButton, secondaryButton: secondaryButton })) : undefined, className: styles.infoBlock }) })));
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EmptyBlock';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EmptyBlock';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
div.emptyBlock{
|
|
2
|
+
background-color:var(--sys-neutral-background1-level, #fdfdfd);
|
|
3
|
+
border-radius:calc(var(--dimension-1m, 8px) + var(--dimension-050m, 4px));
|
|
4
|
+
padding:var(--dimension-8m, 64px);
|
|
5
|
+
display:flex;
|
|
6
|
+
align-items:center;
|
|
7
|
+
justify-content:center;
|
|
8
|
+
flex-grow:1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.infoBlock{
|
|
12
|
+
max-width:624px;
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
export type NoAccessProps = WithSupportProps<{
|
|
3
|
+
serviceName?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function NoAccess({ serviceName, className, ...rest }: NoAccessProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
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]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import cn from 'classnames';
|
|
14
|
+
import { LockSVG } from '@sbercloud/uikit-product-icons';
|
|
15
|
+
import { useLocale } from '@sbercloud/uikit-product-locale';
|
|
16
|
+
import { extractSupportProps } from '@sbercloud/uikit-product-utils';
|
|
17
|
+
import { InfoBlock } from '@snack-uikit/info-block';
|
|
18
|
+
import { BlockBasic } from '../BlockBasic';
|
|
19
|
+
import styles from './styles.module.css';
|
|
20
|
+
export function NoAccess(_a) {
|
|
21
|
+
var { serviceName, className } = _a, rest = __rest(_a, ["serviceName", "className"]);
|
|
22
|
+
const { t } = useLocale('Layout');
|
|
23
|
+
return (_jsxs("div", Object.assign({}, extractSupportProps(rest), { className: cn(styles.wrapper, className), children: [serviceName && _jsx("div", { className: styles.serviceName, children: serviceName }), _jsx(BlockBasic, { className: styles.baseBlock, children: _jsx(InfoBlock, { size: 'm', icon: { icon: LockSVG }, title: t('noAccessTitle'), description: _jsxs("div", { className: styles.description, children: [_jsx("div", { className: styles.text, children: t('noAccessSubtitle') }), _jsx("div", { className: styles.text, children: t('noAccessText') })] }) }) })] })));
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './NoAccess';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './NoAccess';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.wrapper{
|
|
2
|
+
width:100%;
|
|
3
|
+
min-height:100%;
|
|
4
|
+
flex-grow:1;
|
|
5
|
+
box-sizing:border-box;
|
|
6
|
+
display:flex;
|
|
7
|
+
flex-direction:column;
|
|
8
|
+
position:relative;
|
|
9
|
+
max-width:1200px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.baseBlock{
|
|
13
|
+
display:flex;
|
|
14
|
+
flex-direction:column;
|
|
15
|
+
flex:1;
|
|
16
|
+
justify-content:center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.serviceName{
|
|
20
|
+
font-family:var(--sans-headline-m-font-family, SB Sans Interface);
|
|
21
|
+
font-weight:var(--sans-headline-m-font-weight, Semibold);
|
|
22
|
+
line-height:var(--sans-headline-m-line-height, 36px);
|
|
23
|
+
font-size:var(--sans-headline-m-font-size, 28px);
|
|
24
|
+
letter-spacing:var(--sans-headline-m-letter-spacing, -0.5px);
|
|
25
|
+
paragraph-spacing:var(--sans-headline-m-paragraph-spacing, 15.4px);
|
|
26
|
+
display:block;
|
|
27
|
+
margin-bottom:24px;
|
|
28
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.description{
|
|
32
|
+
margin-top:8px;
|
|
33
|
+
max-width:500px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.text{
|
|
37
|
+
display:block;
|
|
38
|
+
text-align:center;
|
|
39
|
+
white-space:break-spaces;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/uikit-product-layout",
|
|
3
3
|
"title": "Info",
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.64",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
7
7
|
"*.woff",
|
|
@@ -30,19 +30,20 @@
|
|
|
30
30
|
"name": "Akhremenko Grigorii",
|
|
31
31
|
"url": "https://github.com/AGrigorii"
|
|
32
32
|
},
|
|
33
|
+
"contributors": [],
|
|
33
34
|
"license": "Apache-2.0",
|
|
34
35
|
"publishConfig": {
|
|
35
36
|
"access": "public"
|
|
36
37
|
},
|
|
37
38
|
"scripts": {},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@cloud-ru/uikit-product-icons": "15.1.
|
|
40
|
-
"@cloud-ru/uikit-product-utils": "7.0.
|
|
40
|
+
"@cloud-ru/uikit-product-icons": "15.1.2",
|
|
41
|
+
"@cloud-ru/uikit-product-utils": "7.0.1",
|
|
41
42
|
"@snack-uikit/info-block": "0.6.13",
|
|
42
43
|
"classnames": "2.5.1"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
46
|
"@cloud-ru/uikit-product-locale": "*"
|
|
46
47
|
},
|
|
47
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "9c11b1e33e716c874534a1c162266c8591f2ed03"
|
|
48
49
|
}
|