@cloud-ru/uikit-product-page-layout 0.21.3 → 0.21.5
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 +22 -0
- package/dist/cjs/components/DefaultSubHeader/DefaultSubHeader.d.ts +9 -0
- package/dist/cjs/components/DefaultSubHeader/DefaultSubHeader.js +26 -0
- package/dist/cjs/components/DefaultSubHeader/index.d.ts +1 -0
- package/dist/cjs/components/DefaultSubHeader/index.js +17 -0
- package/dist/cjs/components/DefaultSubHeader/styles.module.css +19 -0
- package/dist/cjs/components/Headline/Headline.d.ts +11 -0
- package/dist/cjs/components/Headline/Headline.js +29 -0
- package/dist/cjs/components/Headline/index.d.ts +1 -0
- package/dist/cjs/components/Headline/index.js +17 -0
- package/dist/cjs/components/Headline/styles.module.css +52 -0
- package/dist/cjs/components/PageCatalog/PageCatalog.d.ts +7 -0
- package/dist/cjs/components/PageCatalog/PageCatalog.js +26 -0
- package/dist/cjs/components/PageCatalog/index.d.ts +1 -0
- package/dist/cjs/components/PageCatalog/index.js +17 -0
- package/dist/cjs/components/PageCatalog/styles.module.css +16 -0
- package/dist/cjs/components/PageForm/PageForm.d.ts +40 -0
- package/dist/cjs/components/PageForm/PageForm.js +39 -0
- package/dist/cjs/components/PageForm/constants.d.ts +13 -0
- package/dist/cjs/components/PageForm/constants.js +16 -0
- package/dist/cjs/components/PageForm/hooks.d.ts +8 -0
- package/dist/cjs/components/PageForm/hooks.js +21 -0
- package/dist/cjs/components/PageForm/index.d.ts +3 -0
- package/dist/cjs/components/PageForm/index.js +19 -0
- package/dist/cjs/components/PageForm/styles.module.css +61 -0
- package/dist/cjs/components/PageForm/types.d.ts +4 -0
- package/dist/cjs/components/PageForm/types.js +2 -0
- package/dist/cjs/components/PageLoading/PageLoading.d.ts +5 -0
- package/dist/cjs/components/PageLoading/PageLoading.js +26 -0
- package/dist/cjs/components/PageLoading/index.d.ts +1 -0
- package/dist/cjs/components/PageLoading/index.js +17 -0
- package/dist/cjs/components/PageLoading/styles.module.css +12 -0
- package/dist/cjs/components/PageServices/PageServices.d.ts +18 -0
- package/dist/cjs/components/PageServices/PageServices.js +45 -0
- package/dist/cjs/components/PageServices/index.d.ts +1 -0
- package/dist/cjs/components/PageServices/index.js +17 -0
- package/dist/cjs/components/PageServices/styles.module.css +44 -0
- package/dist/cjs/components/PageSidebar/PageSidebar.d.ts +19 -0
- package/dist/cjs/components/PageSidebar/PageSidebar.js +55 -0
- package/dist/cjs/components/PageSidebar/contexts.d.ts +13 -0
- package/dist/cjs/components/PageSidebar/contexts.js +21 -0
- package/dist/cjs/components/PageSidebar/helperComponents/SidebarSearch/SidebarSearch.d.ts +1 -0
- package/dist/cjs/components/PageSidebar/helperComponents/SidebarSearch/SidebarSearch.js +26 -0
- package/dist/cjs/components/PageSidebar/helperComponents/SidebarSearch/index.d.ts +1 -0
- package/dist/cjs/components/PageSidebar/helperComponents/SidebarSearch/index.js +5 -0
- package/dist/cjs/components/PageSidebar/helperComponents/SidebarSearch/styles.module.css +23 -0
- package/dist/cjs/components/PageSidebar/helperComponents/SidebarSearchToggle/SidebarSearchToggle.d.ts +1 -0
- package/dist/cjs/components/PageSidebar/helperComponents/SidebarSearchToggle/SidebarSearchToggle.js +18 -0
- package/dist/cjs/components/PageSidebar/helperComponents/SidebarSearchToggle/index.d.ts +1 -0
- package/dist/cjs/components/PageSidebar/helperComponents/SidebarSearchToggle/index.js +5 -0
- package/dist/cjs/components/PageSidebar/helperComponents/SidebarTitle/SidebarTitle.d.ts +9 -0
- package/dist/cjs/components/PageSidebar/helperComponents/SidebarTitle/SidebarTitle.js +15 -0
- package/dist/cjs/components/PageSidebar/helperComponents/SidebarTitle/index.d.ts +1 -0
- package/dist/cjs/components/PageSidebar/helperComponents/SidebarTitle/index.js +17 -0
- package/dist/cjs/components/PageSidebar/helperComponents/SidebarTitle/styles.module.css +18 -0
- package/dist/cjs/components/PageSidebar/hooks/useItemsCreator.d.ts +8 -0
- package/dist/cjs/components/PageSidebar/hooks/useItemsCreator.js +95 -0
- package/dist/cjs/components/PageSidebar/hooks/useSearchFilter.d.ts +10 -0
- package/dist/cjs/components/PageSidebar/hooks/useSearchFilter.js +47 -0
- package/dist/cjs/components/PageSidebar/index.d.ts +2 -0
- package/dist/cjs/components/PageSidebar/index.js +17 -0
- package/dist/cjs/components/PageSidebar/styles.module.css +76 -0
- package/dist/cjs/components/PageSidebar/types.d.ts +40 -0
- package/dist/cjs/components/PageSidebar/types.js +2 -0
- package/dist/cjs/components/index.d.ts +6 -0
- package/dist/cjs/components/index.js +22 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +17 -0
- package/dist/esm/components/DefaultSubHeader/DefaultSubHeader.d.ts +9 -0
- package/dist/esm/components/DefaultSubHeader/DefaultSubHeader.js +20 -0
- package/dist/esm/components/DefaultSubHeader/index.d.ts +1 -0
- package/dist/esm/components/DefaultSubHeader/index.js +1 -0
- package/dist/esm/components/DefaultSubHeader/styles.module.css +19 -0
- package/dist/esm/components/Headline/Headline.d.ts +11 -0
- package/dist/esm/components/Headline/Headline.js +23 -0
- package/dist/esm/components/Headline/index.d.ts +1 -0
- package/dist/esm/components/Headline/index.js +1 -0
- package/dist/esm/components/Headline/styles.module.css +52 -0
- package/dist/esm/components/PageCatalog/PageCatalog.d.ts +7 -0
- package/dist/esm/components/PageCatalog/PageCatalog.js +20 -0
- package/dist/esm/components/PageCatalog/index.d.ts +1 -0
- package/dist/esm/components/PageCatalog/index.js +1 -0
- package/dist/esm/components/PageCatalog/styles.module.css +16 -0
- package/dist/esm/components/PageForm/PageForm.d.ts +40 -0
- package/dist/esm/components/PageForm/PageForm.js +33 -0
- package/dist/esm/components/PageForm/constants.d.ts +13 -0
- package/dist/esm/components/PageForm/constants.js +13 -0
- package/dist/esm/components/PageForm/hooks.d.ts +8 -0
- package/dist/esm/components/PageForm/hooks.js +17 -0
- package/dist/esm/components/PageForm/index.d.ts +3 -0
- package/dist/esm/components/PageForm/index.js +3 -0
- package/dist/esm/components/PageForm/styles.module.css +61 -0
- package/dist/esm/components/PageForm/types.d.ts +4 -0
- package/dist/esm/components/PageForm/types.js +1 -0
- package/dist/esm/components/PageLoading/PageLoading.d.ts +5 -0
- package/dist/esm/components/PageLoading/PageLoading.js +20 -0
- package/dist/esm/components/PageLoading/index.d.ts +1 -0
- package/dist/esm/components/PageLoading/index.js +1 -0
- package/dist/esm/components/PageLoading/styles.module.css +12 -0
- package/dist/esm/components/PageServices/PageServices.d.ts +18 -0
- package/dist/esm/components/PageServices/PageServices.js +39 -0
- package/dist/esm/components/PageServices/index.d.ts +1 -0
- package/dist/esm/components/PageServices/index.js +1 -0
- package/dist/esm/components/PageServices/styles.module.css +44 -0
- package/dist/esm/components/PageSidebar/PageSidebar.d.ts +19 -0
- package/dist/esm/components/PageSidebar/PageSidebar.js +49 -0
- package/dist/esm/components/PageSidebar/contexts.d.ts +13 -0
- package/dist/esm/components/PageSidebar/contexts.js +16 -0
- package/dist/esm/components/PageSidebar/helperComponents/SidebarSearch/SidebarSearch.d.ts +1 -0
- package/dist/esm/components/PageSidebar/helperComponents/SidebarSearch/SidebarSearch.js +20 -0
- package/dist/esm/components/PageSidebar/helperComponents/SidebarSearch/index.d.ts +1 -0
- package/dist/esm/components/PageSidebar/helperComponents/SidebarSearch/index.js +1 -0
- package/dist/esm/components/PageSidebar/helperComponents/SidebarSearch/styles.module.css +23 -0
- package/dist/esm/components/PageSidebar/helperComponents/SidebarSearchToggle/SidebarSearchToggle.d.ts +1 -0
- package/dist/esm/components/PageSidebar/helperComponents/SidebarSearchToggle/SidebarSearchToggle.js +15 -0
- package/dist/esm/components/PageSidebar/helperComponents/SidebarSearchToggle/index.d.ts +1 -0
- package/dist/esm/components/PageSidebar/helperComponents/SidebarSearchToggle/index.js +1 -0
- package/dist/esm/components/PageSidebar/helperComponents/SidebarTitle/SidebarTitle.d.ts +9 -0
- package/dist/esm/components/PageSidebar/helperComponents/SidebarTitle/SidebarTitle.js +9 -0
- package/dist/esm/components/PageSidebar/helperComponents/SidebarTitle/index.d.ts +1 -0
- package/dist/esm/components/PageSidebar/helperComponents/SidebarTitle/index.js +1 -0
- package/dist/esm/components/PageSidebar/helperComponents/SidebarTitle/styles.module.css +18 -0
- package/dist/esm/components/PageSidebar/hooks/useItemsCreator.d.ts +8 -0
- package/dist/esm/components/PageSidebar/hooks/useItemsCreator.js +91 -0
- package/dist/esm/components/PageSidebar/hooks/useSearchFilter.d.ts +10 -0
- package/dist/esm/components/PageSidebar/hooks/useSearchFilter.js +43 -0
- package/dist/esm/components/PageSidebar/index.d.ts +2 -0
- package/dist/esm/components/PageSidebar/index.js +1 -0
- package/dist/esm/components/PageSidebar/styles.module.css +76 -0
- package/dist/esm/components/PageSidebar/types.d.ts +40 -0
- package/dist/esm/components/PageSidebar/types.js +1 -0
- package/dist/esm/components/index.d.ts +6 -0
- package/dist/esm/components/index.js +6 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.21.5 (2025-11-13)
|
|
7
|
+
|
|
8
|
+
### Only dependencies have been changed
|
|
9
|
+
* [@cloud-ru/uikit-product-copy-line@0.7.65](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/copy-line/CHANGELOG.md)
|
|
10
|
+
* [@cloud-ru/uikit-product-icons@15.1.3](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
|
|
11
|
+
* [@cloud-ru/uikit-product-utils@7.0.2](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 0.21.4 (2025-11-12)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **PD-3377:** contributors update to publish all packages ([719fd3e](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/719fd3e1249e247443b125c47ea408d92c8395c3))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## 0.21.3 (2025-11-12)
|
|
7
29
|
|
|
8
30
|
### Only dependencies have been changed
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CopyLineProps } from '@sbercloud/uikit-product-copy-line';
|
|
3
|
+
import { WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
4
|
+
export type DefaultSubHeaderProps = WithSupportProps<{
|
|
5
|
+
label: string;
|
|
6
|
+
value: CopyLineProps;
|
|
7
|
+
labelTooltip?: ReactNode;
|
|
8
|
+
}>;
|
|
9
|
+
export declare function DefaultSubHeader({ label, labelTooltip, value, ...rest }: DefaultSubHeaderProps): 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.DefaultSubHeader = DefaultSubHeader;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const uikit_product_copy_line_1 = require("@sbercloud/uikit-product-copy-line");
|
|
20
|
+
const uikit_product_utils_1 = require("@sbercloud/uikit-product-utils");
|
|
21
|
+
const tooltip_1 = require("@snack-uikit/tooltip");
|
|
22
|
+
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
23
|
+
function DefaultSubHeader(_a) {
|
|
24
|
+
var { label, labelTooltip, value } = _a, rest = __rest(_a, ["label", "labelTooltip", "value"]);
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: styles_module_scss_1.default.subheader }, (0, uikit_product_utils_1.extractSupportProps)(rest), { children: [(0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.label, children: [label, labelTooltip && (0, jsx_runtime_1.jsx)(tooltip_1.QuestionTooltip, { tip: labelTooltip })] }), (0, jsx_runtime_1.jsx)(uikit_product_copy_line_1.CopyLine, Object.assign({}, value))] })));
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DefaultSubHeader';
|
|
@@ -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("./DefaultSubHeader"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.subheader{
|
|
2
|
+
display:flex;
|
|
3
|
+
flex-direction:row;
|
|
4
|
+
align-items:center;
|
|
5
|
+
gap:calc(var(--dimension-2m, 16px) - var(--dimension-050m, 4px));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.label{
|
|
9
|
+
font-family:var(--sans-body-m-font-family, SB Sans Interface);
|
|
10
|
+
font-weight:var(--sans-body-m-font-weight, Regular);
|
|
11
|
+
line-height:var(--sans-body-m-line-height, 20px);
|
|
12
|
+
font-size:var(--sans-body-m-font-size, 14px);
|
|
13
|
+
letter-spacing:var(--sans-body-m-letter-spacing, 0.1px);
|
|
14
|
+
paragraph-spacing:var(--sans-body-m-paragraph-spacing, 7.7px);
|
|
15
|
+
display:flex;
|
|
16
|
+
flex-direction:row;
|
|
17
|
+
align-items:center;
|
|
18
|
+
gap:var(--dimension-050m, 4px);
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
3
|
+
export type HeadlineProps = WithSupportProps<{
|
|
4
|
+
title: string;
|
|
5
|
+
beforeHeadline?: ReactNode;
|
|
6
|
+
afterHeadline?: ReactNode;
|
|
7
|
+
actions?: ReactNode;
|
|
8
|
+
subHeader?: ReactNode;
|
|
9
|
+
truncateTitle?: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
export declare function Headline({ title, actions, beforeHeadline, afterHeadline, subHeader, truncateTitle, ...rest }: HeadlineProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,29 @@
|
|
|
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.Headline = Headline;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const uikit_product_utils_1 = require("@sbercloud/uikit-product-utils");
|
|
20
|
+
const truncate_string_1 = require("@snack-uikit/truncate-string");
|
|
21
|
+
const typography_1 = require("@snack-uikit/typography");
|
|
22
|
+
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
23
|
+
function Headline(_a) {
|
|
24
|
+
var { title, actions, beforeHeadline, afterHeadline, subHeader, truncateTitle } = _a, rest = __rest(_a, ["title", "actions", "beforeHeadline", "afterHeadline", "subHeader", "truncateTitle"]);
|
|
25
|
+
const needsRender = Boolean(title || beforeHeadline || afterHeadline || subHeader || actions);
|
|
26
|
+
if (!needsRender)
|
|
27
|
+
return null;
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: styles_module_scss_1.default.headline }, (0, uikit_product_utils_1.extractSupportProps)(rest), { children: [(0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.headlineLayout, children: [(0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.titleLayout, children: [beforeHeadline && (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.prefixButtonWrapper, children: beforeHeadline }), (0, jsx_runtime_1.jsx)(typography_1.Typography.SansHeadlineM, { tag: 'h1', className: styles_module_scss_1.default.title, children: truncateTitle ? (0, jsx_runtime_1.jsx)(truncate_string_1.TruncateString, { variant: 'end', text: title, maxLines: 1 }) : title }), afterHeadline && (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.statusWrapper, children: afterHeadline })] }), Boolean(actions) && (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.actions, children: actions })] }), subHeader && (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.subHeader, children: subHeader })] })));
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Headline';
|
|
@@ -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("./Headline"), exports);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.headline{
|
|
2
|
+
display:flex;
|
|
3
|
+
flex-direction:column;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.headlineLayout{
|
|
7
|
+
display:flex;
|
|
8
|
+
flex-direction:row;
|
|
9
|
+
gap:var(--dimension-1m, 8px);
|
|
10
|
+
align-items:flex-start;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.titleLayout{
|
|
14
|
+
display:flex;
|
|
15
|
+
flex-direction:row;
|
|
16
|
+
gap:var(--dimension-1m, 8px);
|
|
17
|
+
align-items:flex-start;
|
|
18
|
+
width:100%;
|
|
19
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.title{
|
|
23
|
+
min-width:0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.prefixButtonWrapper{
|
|
27
|
+
display:flex;
|
|
28
|
+
align-items:center;
|
|
29
|
+
height:var(--sans-headline-m-line-height, 36px);
|
|
30
|
+
flex-shrink:0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.statusWrapper{
|
|
34
|
+
display:flex;
|
|
35
|
+
align-items:center;
|
|
36
|
+
height:var(--sans-headline-m-line-height, 36px);
|
|
37
|
+
flex-shrink:0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.actions{
|
|
41
|
+
height:var(--sans-headline-m-line-height, 36px);
|
|
42
|
+
display:flex;
|
|
43
|
+
align-items:center;
|
|
44
|
+
gap:8px;
|
|
45
|
+
flex-shrink:0;
|
|
46
|
+
justify-content:flex-end;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.subHeader{
|
|
50
|
+
margin-top:4px;
|
|
51
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
52
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
3
|
+
import { HeadlineProps } from '../Headline';
|
|
4
|
+
export type PageCatalogProps = WithSupportProps<PropsWithChildren<Pick<HeadlineProps, 'title' | 'actions'> & {
|
|
5
|
+
className?: string;
|
|
6
|
+
}>>;
|
|
7
|
+
export declare function PageCatalog({ children, title, actions, className, ...rest }: PageCatalogProps): 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.PageCatalog = PageCatalog;
|
|
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 Headline_1 = require("../Headline");
|
|
22
|
+
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
23
|
+
function PageCatalog(_a) {
|
|
24
|
+
var { children, title, actions, className } = _a, rest = __rest(_a, ["children", "title", "actions", "className"]);
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: (0, classnames_1.default)(styles_module_scss_1.default.catalog, className) }, (0, uikit_product_utils_1.extractSupportProps)(rest), { children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, actions: actions }), (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.content, children: children })] })));
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PageCatalog';
|
|
@@ -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("./PageCatalog"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.catalog{
|
|
2
|
+
display:flex;
|
|
3
|
+
flex-direction:column;
|
|
4
|
+
gap:var(--dimension-3m, 24px);
|
|
5
|
+
padding:var(--dimension-3m, 24px);
|
|
6
|
+
margin:0 auto;
|
|
7
|
+
box-sizing:border-box;
|
|
8
|
+
max-width:min(100%, 1248px);
|
|
9
|
+
min-width:992px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.content{
|
|
13
|
+
display:flex;
|
|
14
|
+
flex-direction:column;
|
|
15
|
+
flex-grow:1;
|
|
16
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
3
|
+
import { ButtonFilledProps, ButtonOutlineProps, ButtonSimpleProps } from '@snack-uikit/button';
|
|
4
|
+
import { TooltipProps } from '@snack-uikit/tooltip';
|
|
5
|
+
import { HeadlineProps } from '../Headline';
|
|
6
|
+
import { ButtonPrimaryVariant, ButtonSecondaryVariant } from './types';
|
|
7
|
+
export type PageFormProps = WithSupportProps<PropsWithChildren<Pick<HeadlineProps, 'title' | 'subHeader'> & {
|
|
8
|
+
className?: string;
|
|
9
|
+
stepper?: ReactNode;
|
|
10
|
+
priceSummary?: {
|
|
11
|
+
total: ReactNode;
|
|
12
|
+
content?: ReactNode;
|
|
13
|
+
};
|
|
14
|
+
sideBlock?: {
|
|
15
|
+
label: string;
|
|
16
|
+
content: ReactNode;
|
|
17
|
+
}[];
|
|
18
|
+
footer?: {
|
|
19
|
+
buttonPrimary: ({
|
|
20
|
+
variant: ButtonPrimaryVariant;
|
|
21
|
+
} | {
|
|
22
|
+
variant: 'custom';
|
|
23
|
+
label: string;
|
|
24
|
+
}) & {
|
|
25
|
+
tooltip?: TooltipProps;
|
|
26
|
+
} & Omit<ButtonFilledProps, 'label'>;
|
|
27
|
+
buttonSecondary?: ({
|
|
28
|
+
variant: ButtonSecondaryVariant;
|
|
29
|
+
} | {
|
|
30
|
+
variant: 'custom';
|
|
31
|
+
label: string;
|
|
32
|
+
}) & {
|
|
33
|
+
tooltip?: TooltipProps;
|
|
34
|
+
} & Omit<ButtonOutlineProps, 'label'>;
|
|
35
|
+
buttonAdditional?: ButtonSimpleProps & {
|
|
36
|
+
tooltip?: TooltipProps;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}>>;
|
|
40
|
+
export declare function PageForm({ children, stepper, title, subHeader, className, footer, sideBlock, priceSummary, ...rest }: PageFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
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.PageForm = PageForm;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
20
|
+
const react_1 = require("react");
|
|
21
|
+
const uikit_product_utils_1 = require("@sbercloud/uikit-product-utils");
|
|
22
|
+
const button_1 = require("@snack-uikit/button");
|
|
23
|
+
const Headline_1 = require("../Headline");
|
|
24
|
+
const hooks_1 = require("./hooks");
|
|
25
|
+
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
26
|
+
function PageForm(_a) {
|
|
27
|
+
var _b, _c;
|
|
28
|
+
var { children, stepper, title, subHeader, className, footer, sideBlock, priceSummary } = _a, rest = __rest(_a, ["children", "stepper", "title", "subHeader", "className", "footer", "sideBlock", "priceSummary"]);
|
|
29
|
+
const getButtonLabel = (0, hooks_1.useGetButtonLabel)();
|
|
30
|
+
const moreItems = (0, react_1.useMemo)(() => [priceSummary === null || priceSummary === void 0 ? void 0 : priceSummary.content].concat(sideBlock === null || sideBlock === void 0 ? void 0 : sideBlock.map(item => item.content)).filter(Boolean), [priceSummary === null || priceSummary === void 0 ? void 0 : priceSummary.content, sideBlock]);
|
|
31
|
+
const PrimaryButton = (0, hooks_1.useButtonWithTooltip)({ Button: button_1.ButtonFilled, tooltip: footer === null || footer === void 0 ? void 0 : footer.buttonPrimary.tooltip });
|
|
32
|
+
const SecondaryButton = (0, hooks_1.useButtonWithTooltip)({ Button: button_1.ButtonOutline, tooltip: (_b = footer === null || footer === void 0 ? void 0 : footer.buttonSecondary) === null || _b === void 0 ? void 0 : _b.tooltip });
|
|
33
|
+
const AdditionalButton = (0, hooks_1.useButtonWithTooltip)({ Button: button_1.ButtonSimple, tooltip: (_c = footer === null || footer === void 0 ? void 0 : footer.buttonAdditional) === null || _c === void 0 ? void 0 : _c.tooltip });
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: (0, classnames_1.default)(styles_module_scss_1.default.container, className) }, (0, uikit_product_utils_1.extractSupportProps)(rest), { children: [(0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.form, children: [(0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.headline, children: (0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, subHeader: subHeader }) }), stepper, (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.body, children: children }), footer && ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.footer, children: [footer.buttonSecondary && ((0, jsx_runtime_1.jsx)(SecondaryButton, Object.assign({}, footer.buttonSecondary, { size: 'm', appearance: 'neutral', label: footer.buttonSecondary.variant === 'custom'
|
|
35
|
+
? footer.buttonSecondary.label
|
|
36
|
+
: getButtonLabel(footer.buttonSecondary.variant) }))), (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.mainActions, children: [footer.buttonAdditional && (0, jsx_runtime_1.jsx)(AdditionalButton, Object.assign({}, footer.buttonAdditional, { size: 'm' })), (0, jsx_runtime_1.jsx)(PrimaryButton, Object.assign({}, footer.buttonPrimary, { size: 'm', label: footer.buttonPrimary.variant === 'custom'
|
|
37
|
+
? footer.buttonPrimary.label
|
|
38
|
+
: getButtonLabel(footer.buttonPrimary.variant) }))] })] }))] }), (moreItems === null || moreItems === void 0 ? void 0 : moreItems.length) > 0 && (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.sideItems, children: moreItems })] })));
|
|
39
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const BUTTON_PRIMARY_VARIANT: {
|
|
2
|
+
readonly Continue: "continue";
|
|
3
|
+
readonly Create: "create";
|
|
4
|
+
readonly Save: "save";
|
|
5
|
+
readonly Rent: "rent";
|
|
6
|
+
readonly Send: "send";
|
|
7
|
+
readonly Restore: "restore";
|
|
8
|
+
readonly Add: "add";
|
|
9
|
+
};
|
|
10
|
+
export declare const BUTTON_SECONDARY_VARIANT: {
|
|
11
|
+
readonly Cancel: "cancel";
|
|
12
|
+
readonly Back: "back";
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BUTTON_SECONDARY_VARIANT = exports.BUTTON_PRIMARY_VARIANT = void 0;
|
|
4
|
+
exports.BUTTON_PRIMARY_VARIANT = {
|
|
5
|
+
Continue: 'continue',
|
|
6
|
+
Create: 'create',
|
|
7
|
+
Save: 'save',
|
|
8
|
+
Rent: 'rent',
|
|
9
|
+
Send: 'send',
|
|
10
|
+
Restore: 'restore',
|
|
11
|
+
Add: 'add',
|
|
12
|
+
};
|
|
13
|
+
exports.BUTTON_SECONDARY_VARIANT = {
|
|
14
|
+
Cancel: 'cancel',
|
|
15
|
+
Back: 'back',
|
|
16
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { TooltipProps } from '@snack-uikit/tooltip';
|
|
3
|
+
import { ButtonPrimaryVariant, ButtonSecondaryVariant } from './types';
|
|
4
|
+
export declare function useButtonWithTooltip<T extends Record<string, unknown>>({ Button, tooltip, }: {
|
|
5
|
+
tooltip?: TooltipProps;
|
|
6
|
+
Button: ForwardRefExoticComponent<T>;
|
|
7
|
+
}): ForwardRefExoticComponent<T> | ((props: T) => import("react/jsx-runtime").JSX.Element);
|
|
8
|
+
export declare function useGetButtonLabel(): (variant: ButtonPrimaryVariant | ButtonSecondaryVariant) => string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useButtonWithTooltip = useButtonWithTooltip;
|
|
4
|
+
exports.useGetButtonLabel = useGetButtonLabel;
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const uikit_product_locale_1 = require("@sbercloud/uikit-product-locale");
|
|
7
|
+
const tooltip_1 = require("@snack-uikit/tooltip");
|
|
8
|
+
function useButtonWithTooltip({ Button, tooltip, }) {
|
|
9
|
+
if (tooltip) {
|
|
10
|
+
return function ButtonWithTooltip(props) {
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(tooltip_1.Tooltip, Object.assign({}, tooltip, { children: (0, jsx_runtime_1.jsx)(Button, Object.assign({}, props)) })));
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
return Button;
|
|
15
|
+
}
|
|
16
|
+
function useGetButtonLabel() {
|
|
17
|
+
const { t } = (0, uikit_product_locale_1.useLocale)('PageLayout');
|
|
18
|
+
return function getButtonLabel(variant) {
|
|
19
|
+
return t(`PageForm.${variant}`);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -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("./PageForm"), exports);
|
|
18
|
+
__exportStar(require("./constants"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
.container{
|
|
2
|
+
padding:var(--dimension-3m, 24px);
|
|
3
|
+
min-width:-moz-fit-content;
|
|
4
|
+
min-width:fit-content;
|
|
5
|
+
display:flex;
|
|
6
|
+
justify-content:center;
|
|
7
|
+
gap:24px;
|
|
8
|
+
min-height:100%;
|
|
9
|
+
box-sizing:border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.form{
|
|
13
|
+
display:flex;
|
|
14
|
+
flex-direction:column;
|
|
15
|
+
gap:32px;
|
|
16
|
+
width:800px;
|
|
17
|
+
background-color:var(--sys-neutral-background1-level, #fdfdfd);
|
|
18
|
+
padding:56px;
|
|
19
|
+
flex-shrink:0;
|
|
20
|
+
border-radius:16px;
|
|
21
|
+
min-height:100%;
|
|
22
|
+
box-sizing:border-box;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.headline{
|
|
26
|
+
position:relative;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.footer{
|
|
30
|
+
display:flex;
|
|
31
|
+
justify-content:space-between;
|
|
32
|
+
align-items:center;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.mainActions{
|
|
36
|
+
display:flex;
|
|
37
|
+
align-items:center;
|
|
38
|
+
margin-left:auto;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.sideItems{
|
|
42
|
+
display:flex;
|
|
43
|
+
flex-direction:column;
|
|
44
|
+
gap:16px;
|
|
45
|
+
width:304px;
|
|
46
|
+
position:sticky;
|
|
47
|
+
top:24px;
|
|
48
|
+
align-self:flex-start;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.body{
|
|
52
|
+
font-family:var(--sans-body-m-font-family, SB Sans Interface);
|
|
53
|
+
font-weight:var(--sans-body-m-font-weight, Regular);
|
|
54
|
+
line-height:var(--sans-body-m-line-height, 20px);
|
|
55
|
+
font-size:var(--sans-body-m-font-size, 14px);
|
|
56
|
+
letter-spacing:var(--sans-body-m-letter-spacing, 0.1px);
|
|
57
|
+
paragraph-spacing:var(--sans-body-m-paragraph-spacing, 7.7px);
|
|
58
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
59
|
+
background-color:var(--sys-neutral-background1-level, #fdfdfd);
|
|
60
|
+
flex:1;
|
|
61
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ValueOf } from '@snack-uikit/utils';
|
|
2
|
+
import { BUTTON_PRIMARY_VARIANT, BUTTON_SECONDARY_VARIANT } from './constants';
|
|
3
|
+
export type ButtonPrimaryVariant = ValueOf<typeof BUTTON_PRIMARY_VARIANT>;
|
|
4
|
+
export type ButtonSecondaryVariant = ValueOf<typeof BUTTON_SECONDARY_VARIANT>;
|
|
@@ -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.PageLoading = PageLoading;
|
|
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 loaders_1 = require("@snack-uikit/loaders");
|
|
22
|
+
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
23
|
+
function PageLoading(_a) {
|
|
24
|
+
var { className } = _a, rest = __rest(_a, ["className"]);
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, classnames_1.default)(styles_module_scss_1.default.wrapper, className) }, (0, uikit_product_utils_1.extractSupportProps)(rest), { children: (0, jsx_runtime_1.jsx)(loaders_1.Spinner, { size: 'm', className: styles_module_scss_1.default.spinner }) })));
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PageLoading';
|
|
@@ -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("./PageLoading"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.wrapper{
|
|
2
|
+
box-sizing:border-box;
|
|
3
|
+
width:100%;
|
|
4
|
+
height:100%;
|
|
5
|
+
color:var(--sys-neutral-accent-default, #787b8a);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.spinner{
|
|
9
|
+
position:fixed;
|
|
10
|
+
top:calc(50% - var(--size-loader-loader-m, 48px) / 2);
|
|
11
|
+
left:calc(50% - var(--size-loader-loader-m, 48px) / 2);
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
3
|
+
import { HeadlineProps } from '../Headline';
|
|
4
|
+
import { PageSidebarProps } from '../PageSidebar';
|
|
5
|
+
export type PageServicesProps = WithSupportProps<PropsWithChildren<Pick<HeadlineProps, 'title' | 'actions' | 'subHeader' | 'afterHeadline' | 'beforeHeadline' | 'truncateTitle'> & {
|
|
6
|
+
className?: string;
|
|
7
|
+
sidebar?: PageSidebarProps;
|
|
8
|
+
autoHeight?: boolean;
|
|
9
|
+
}>>;
|
|
10
|
+
export declare const PageServices: import("react").ForwardRefExoticComponent<{
|
|
11
|
+
'data-test-id'?: string;
|
|
12
|
+
} & import("react").AriaAttributes & Pick<HeadlineProps, "title" | "actions" | "beforeHeadline" | "afterHeadline" | "subHeader" | "truncateTitle"> & {
|
|
13
|
+
className?: string;
|
|
14
|
+
sidebar?: PageSidebarProps;
|
|
15
|
+
autoHeight?: boolean;
|
|
16
|
+
} & {
|
|
17
|
+
children?: import("react").ReactNode | undefined;
|
|
18
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|