@gravity-ui/page-constructor 5.0.0 → 5.1.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.
Files changed (30) hide show
  1. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.css +6 -0
  2. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +4 -10
  3. package/build/cjs/sub-blocks/BasicCard/BasicCard.css +7 -0
  4. package/build/cjs/sub-blocks/BasicCard/BasicCard.js +4 -10
  5. package/build/cjs/sub-blocks/Content/Content.css +6 -2
  6. package/build/cjs/sub-blocks/Content/Content.js +3 -10
  7. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +3 -0
  8. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +2 -8
  9. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.css +6 -0
  10. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +5 -11
  11. package/build/esm/sub-blocks/BasicCard/BasicCard.css +7 -0
  12. package/build/esm/sub-blocks/BasicCard/BasicCard.js +5 -11
  13. package/build/esm/sub-blocks/Content/Content.css +6 -2
  14. package/build/esm/sub-blocks/Content/Content.js +4 -11
  15. package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +3 -0
  16. package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +3 -9
  17. package/package.json +4 -4
  18. package/widget/index.js +1 -1
  19. package/build/cjs/sub-blocks/renderCardFooterControlsContainer/CardFooterControlsContainer.css +0 -3
  20. package/build/cjs/sub-blocks/renderCardFooterControlsContainer/renderCardFooterControlsContainer.d.ts +0 -3
  21. package/build/cjs/sub-blocks/renderCardFooterControlsContainer/renderCardFooterControlsContainer.js +0 -9
  22. package/build/cjs/utils/renderContentControls/ContentControls.css +0 -6
  23. package/build/cjs/utils/renderContentControls/renderContentControls.d.ts +0 -11
  24. package/build/cjs/utils/renderContentControls/renderContentControls.js +0 -16
  25. package/build/esm/sub-blocks/renderCardFooterControlsContainer/CardFooterControlsContainer.css +0 -3
  26. package/build/esm/sub-blocks/renderCardFooterControlsContainer/renderCardFooterControlsContainer.d.ts +0 -3
  27. package/build/esm/sub-blocks/renderCardFooterControlsContainer/renderCardFooterControlsContainer.js +0 -6
  28. package/build/esm/utils/renderContentControls/ContentControls.css +0 -6
  29. package/build/esm/utils/renderContentControls/renderContentControls.d.ts +0 -12
  30. package/build/esm/utils/renderContentControls/renderContentControls.js +0 -14
@@ -1,3 +0,0 @@
1
- .pc-card-footer-controls {
2
- margin-top: 0px;
3
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const renderCardFooterControlsContainer: (children: React.ReactElement) => JSX.Element;
3
- export default renderCardFooterControlsContainer;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
5
- const components_1 = require("../../components");
6
- const utils_1 = require("../../utils");
7
- const b = (0, utils_1.block)('card-footer-controls-containe');
8
- const renderCardFooterControlsContainer = (children) => (react_1.default.createElement(components_1.CardBase.Footer, { className: b() }, children));
9
- exports.default = renderCardFooterControlsContainer;
@@ -1,6 +0,0 @@
1
- .pc-content-controls__links_size_s, .pc-content-controls__buttons_size_s {
2
- margin-top: 16px;
3
- }
4
- .pc-content-controls__links_size_l, .pc-content-controls__buttons_size_l {
5
- margin-top: 24px;
6
- }
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { ButtonProps, ContentSize, LinkProps } from '../../models';
3
- type ContentControlsArgs = {
4
- links?: LinkProps[];
5
- buttons?: ButtonProps[];
6
- titleId?: string;
7
- size?: ContentSize;
8
- qa?: Record<string, string>;
9
- };
10
- declare const renderContentControls: ({ links, buttons, titleId, size, qa }: ContentControlsArgs, renderContainer?: (children: React.ReactElement) => React.ReactElement) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
11
- export default renderContentControls;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
5
- const components_1 = require("../../components");
6
- const utils_1 = require("../../utils");
7
- const b = (0, utils_1.block)('content-controls');
8
- const renderContentControls = ({ links, buttons, titleId, size = 's', qa = {} }, renderContainer = (children) => children) => {
9
- const { links: linksQa, link: linkQa, buttons: buttonsQa, button: buttonQa } = qa;
10
- return links || buttons
11
- ? renderContainer(react_1.default.createElement(react_1.Fragment, null,
12
- react_1.default.createElement(components_1.Links, { className: b('links', { size }), size: size, links: links, titleId: titleId, qa: linksQa, linkQa: linkQa }),
13
- react_1.default.createElement(components_1.Buttons, { className: b('buttons', { size }), size: size, buttons: buttons, titleId: titleId, qa: buttonsQa, buttonQa: buttonQa })))
14
- : null;
15
- };
16
- exports.default = renderContentControls;
@@ -1,3 +0,0 @@
1
- .pc-card-footer-controls {
2
- margin-top: 0px;
3
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const renderCardFooterControlsContainer: (children: React.ReactElement) => JSX.Element;
3
- export default renderCardFooterControlsContainer;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { CardBase } from '../../components';
3
- import { block } from '../../utils';
4
- const b = block('card-footer-controls-containe');
5
- const renderCardFooterControlsContainer = (children) => (React.createElement(CardBase.Footer, { className: b() }, children));
6
- export default renderCardFooterControlsContainer;
@@ -1,6 +0,0 @@
1
- .pc-content-controls__links_size_s, .pc-content-controls__buttons_size_s {
2
- margin-top: 16px;
3
- }
4
- .pc-content-controls__links_size_l, .pc-content-controls__buttons_size_l {
5
- margin-top: 24px;
6
- }
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { ButtonProps, ContentSize, LinkProps } from '../../models';
3
- import './ContentControls.css';
4
- type ContentControlsArgs = {
5
- links?: LinkProps[];
6
- buttons?: ButtonProps[];
7
- titleId?: string;
8
- size?: ContentSize;
9
- qa?: Record<string, string>;
10
- };
11
- declare const renderContentControls: ({ links, buttons, titleId, size, qa }: ContentControlsArgs, renderContainer?: (children: React.ReactElement) => React.ReactElement) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
12
- export default renderContentControls;
@@ -1,14 +0,0 @@
1
- import React, { Fragment } from 'react';
2
- import { Buttons, Links } from '../../components';
3
- import { block } from '../../utils';
4
- import './ContentControls.css';
5
- const b = block('content-controls');
6
- const renderContentControls = ({ links, buttons, titleId, size = 's', qa = {} }, renderContainer = (children) => children) => {
7
- const { links: linksQa, link: linkQa, buttons: buttonsQa, button: buttonQa } = qa;
8
- return links || buttons
9
- ? renderContainer(React.createElement(Fragment, null,
10
- React.createElement(Links, { className: b('links', { size }), size: size, links: links, titleId: titleId, qa: linksQa, linkQa: linkQa }),
11
- React.createElement(Buttons, { className: b('buttons', { size }), size: size, buttons: buttons, titleId: titleId, qa: buttonsQa, buttonQa: buttonQa })))
12
- : null;
13
- };
14
- export default renderContentControls;