@financial-times/cp-content-pipeline-ui 9.12.1 → 9.13.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 (32) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/lib/components/ContentLayout/index.d.ts +24 -0
  3. package/lib/components/ContentLayout/index.js +34 -0
  4. package/lib/components/ContentLayout/index.js.map +1 -0
  5. package/lib/components/ContentLayout/test/index.spec.d.ts +1 -0
  6. package/lib/components/ContentLayout/test/index.spec.js +57 -0
  7. package/lib/components/ContentLayout/test/index.spec.js.map +1 -0
  8. package/lib/components/content-tree/Clip/components/index.d.ts +0 -2
  9. package/lib/components/content-tree/Clip/components/index.js +1 -5
  10. package/lib/components/content-tree/Clip/components/index.js.map +1 -1
  11. package/lib/components/content-tree/Clip/template/component.d.ts +1 -1
  12. package/lib/components/content-tree/Clip/template/component.js +3 -3
  13. package/lib/components/content-tree/Clip/template/component.js.map +1 -1
  14. package/lib/components/content-tree/Clip/test/snapshot.spec.js +26 -0
  15. package/lib/components/content-tree/Clip/test/snapshot.spec.js.map +1 -1
  16. package/package.json +4 -4
  17. package/src/components/ContentLayout/index.tsx +91 -0
  18. package/src/components/ContentLayout/test/__snapshots__/index.spec.tsx.snap +96 -0
  19. package/src/components/ContentLayout/test/index.spec.tsx +81 -0
  20. package/src/components/content-tree/Clip/components/index.tsx +0 -2
  21. package/src/components/content-tree/Clip/template/component.tsx +23 -24
  22. package/src/components/content-tree/Clip/test/__snapshots__/snapshot.spec.tsx.snap +277 -0
  23. package/src/components/content-tree/Clip/test/snapshot.spec.tsx +40 -0
  24. package/tsconfig.tsbuildinfo +1 -1
  25. package/lib/components/content-tree/Clip/components/Container.d.ts +0 -6
  26. package/lib/components/content-tree/Clip/components/Container.js +0 -13
  27. package/lib/components/content-tree/Clip/components/Container.js.map +0 -1
  28. package/lib/components/content-tree/Clip/components/ContentLayout.d.ts +0 -6
  29. package/lib/components/content-tree/Clip/components/ContentLayout.js +0 -13
  30. package/lib/components/content-tree/Clip/components/ContentLayout.js.map +0 -1
  31. package/src/components/content-tree/Clip/components/Container.tsx +0 -32
  32. package/src/components/content-tree/Clip/components/ContentLayout.tsx +0 -18
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface ContainerProps {
3
- dataLayout: string;
4
- }
5
- export declare const Container: React.FC<React.PropsWithChildren<ContainerProps>>;
6
- export {};
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Container = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const Container = ({ dataLayout, children, }) => {
9
- return dataLayout === 'full-grid' ? (react_1.default.createElement("div", { className: "n-content-layout__container", "data-component": "clip-set" }, children)) : dataLayout === 'mid-grid' ? (react_1.default.createElement("div", { className: "n-content-layout__container", "data-component": "clip-set" },
10
- react_1.default.createElement("div", { "data-o-grid-colspan": "12 S12 M12 L10 XL10", className: "n-content-layout__container--mid-grid" }, children))) : (react_1.default.createElement("div", { className: "n-content-layout__container--in-line", "data-component": "clip-set" }, children));
11
- };
12
- exports.Container = Container;
13
- //# sourceMappingURL=Container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../../../src/components/content-tree/Clip/components/Container.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAMlB,MAAM,SAAS,GAAsD,CAAC,EAC3E,UAAU,EACV,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,UAAU,KAAK,WAAW,CAAC,CAAC,CAAC,CAClC,uCAAK,SAAS,EAAC,6BAA6B,oBAAgB,UAAU,IACnE,QAAQ,CACL,CACP,CAAC,CAAC,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,CAC9B,uCAAK,SAAS,EAAC,6BAA6B,oBAAgB,UAAU;QACpE,8DACsB,qBAAqB,EACzC,SAAS,EAAC,uCAAuC,IAEhD,QAAQ,CACL,CACF,CACP,CAAC,CAAC,CAAC,CACF,uCACE,SAAS,EAAC,sCAAsC,oBACjC,UAAU,IAExB,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAA;AAzBY,QAAA,SAAS,aAyBrB"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface ContentLayoutProps {
3
- dataLayout: string;
4
- }
5
- export declare const ContentLayout: React.FC<React.PropsWithChildren<ContentLayoutProps>>;
6
- export {};
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ContentLayout = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- // data-layout-width='full-grid' prevent clashes with ads and share bar
9
- const ContentLayout = ({ dataLayout, children }) => {
10
- return dataLayout !== 'in-line' ? (react_1.default.createElement("div", { className: "n-content-layout", "data-layout-width": "full-grid" }, children)) : (react_1.default.createElement(react_1.default.Fragment, null, children));
11
- };
12
- exports.ContentLayout = ContentLayout;
13
- //# sourceMappingURL=ContentLayout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContentLayout.js","sourceRoot":"","sources":["../../../../../src/components/content-tree/Clip/components/ContentLayout.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAMzB,uEAAuE;AAChE,MAAM,aAAa,GAEtB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC/B,OAAO,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,CAChC,uCAAK,SAAS,EAAC,kBAAkB,uBAAmB,WAAW,IAC5D,QAAQ,CACL,CACP,CAAC,CAAC,CAAC,CACF,8DAAG,QAAQ,CAAI,CAChB,CAAA;AACH,CAAC,CAAA;AAVY,QAAA,aAAa,iBAUzB"}
@@ -1,32 +0,0 @@
1
- import React from 'react'
2
-
3
- interface ContainerProps {
4
- dataLayout: string
5
- }
6
-
7
- export const Container: React.FC<React.PropsWithChildren<ContainerProps>> = ({
8
- dataLayout,
9
- children,
10
- }) => {
11
- return dataLayout === 'full-grid' ? (
12
- <div className="n-content-layout__container" data-component="clip-set">
13
- {children}
14
- </div>
15
- ) : dataLayout === 'mid-grid' ? (
16
- <div className="n-content-layout__container" data-component="clip-set">
17
- <div
18
- data-o-grid-colspan="12 S12 M12 L10 XL10"
19
- className="n-content-layout__container--mid-grid"
20
- >
21
- {children}
22
- </div>
23
- </div>
24
- ) : (
25
- <div
26
- className="n-content-layout__container--in-line"
27
- data-component="clip-set"
28
- >
29
- {children}
30
- </div>
31
- )
32
- }
@@ -1,18 +0,0 @@
1
- import React from 'react'
2
-
3
- interface ContentLayoutProps {
4
- dataLayout: string
5
- }
6
-
7
- // data-layout-width='full-grid' prevent clashes with ads and share bar
8
- export const ContentLayout: React.FC<
9
- React.PropsWithChildren<ContentLayoutProps>
10
- > = ({ dataLayout, children }) => {
11
- return dataLayout !== 'in-line' ? (
12
- <div className="n-content-layout" data-layout-width="full-grid">
13
- {children}
14
- </div>
15
- ) : (
16
- <>{children}</>
17
- )
18
- }