@cleartrip/talos-body-content 1.1.0-TEST.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/BodyContent.d.ts +5 -0
- package/dist/BodyContent.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/style.d.ts +9 -0
- package/dist/style.d.ts.map +1 -0
- package/dist/talos-body-content.browser.cjs.js +2 -0
- package/dist/talos-body-content.browser.cjs.js.map +1 -0
- package/dist/talos-body-content.browser.esm.js +2 -0
- package/dist/talos-body-content.browser.esm.js.map +1 -0
- package/dist/talos-body-content.cjs.js +30 -0
- package/dist/talos-body-content.cjs.js.map +1 -0
- package/dist/talos-body-content.esm.js +28 -0
- package/dist/talos-body-content.esm.js.map +1 -0
- package/dist/talos-body-content.umd.js +30192 -0
- package/dist/talos-body-content.umd.js.map +1 -0
- package/dist/type.d.ts +7 -0
- package/dist/type.d.ts.map +1 -0
- package/package.json +31 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IWidgetProps } from "@cleartrip/talos-widget-types";
|
|
2
|
+
import type { IBodyContentProps } from "./type";
|
|
3
|
+
declare const BodyContent: ({ data }: IWidgetProps<IBodyContentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default BodyContent;
|
|
5
|
+
//# sourceMappingURL=BodyContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BodyContent.d.ts","sourceRoot":"","sources":["../packages/components/body-content/src/BodyContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEhD,QAAA,MAAM,WAAW,aAAc,aAAa,iBAAiB,CAAC,4CAgB7D,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/body-content/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,cAAc,QAAQ,CAAC"}
|
package/dist/style.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../packages/components/body-content/src/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAExD,eAAO,MAAM,mBAAmB,UAAW,KAAK;;;;;;CAQ/C,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),n=require("react"),t=require("@cleartrip/ct-design-components");exports.BodyContent=function(i){var o=(i.data||{}).content,s=void 0===o?[]:o,a=t.useTheme(),c=n.useMemo(function(){return function(e){return{root:{display:"flex",flexDirection:"column",gap:e.spacing[4]}}}(a)},[a]);return r.jsx(t.Container,e.__assign({css:c.root},{children:s.map(function(n,i){var o=n.text,s=void 0===o?"":o;return r.jsx(t.Typography,e.__assign({variant:"B3"},{children:s}),i)})}))};
|
|
2
|
+
//# sourceMappingURL=talos-body-content.browser.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"talos-body-content.browser.cjs.js","sources":["../packages/components/body-content/src/BodyContent.tsx","../packages/components/body-content/src/style.ts"],"sourcesContent":[null,null],"names":["_a","_b","data","content","theme","useTheme","staticStyles","useMemo","root","display","flexDirection","gap","spacing","getBodyContentStyle","_jsx","jsx","Container","__assign","css","children","map","idx","text","Typography","variant"],"mappings":"uJAUoB,SAACA,GAAE,IACbC,GADiBD,EAAAE,MACQ,CAAA,GAAbC,QAAZA,OAAO,IAAAF,EAAG,GAAEA,EACdG,EAAQC,EAAAA,WACRC,EAAeC,UAAQ,WAAM,OCXF,SAACH,GAClC,MAAO,CACLI,KAAM,CACJC,QAAS,OACTC,cAAe,SACfC,IAAKP,EAAMQ,QAAQ,IAGzB,CDGqCC,CAAoBT,EAAM,EAAE,CAACA,IAEhE,OACEU,EAACC,IAAAC,EAASA,UAACC,EAAAA,SAAA,CAAAC,IAAKZ,EAAaE,MAAI,CAAAW,SAC9BhB,EAAQiB,IAAI,SAACpB,EAAeqB,GAAb,IAAApB,EAAAD,EAAAsB,KAAAA,OAAO,IAAArB,EAAA,GAAEA,EACvB,OACEa,MAACS,EAAAA,WAAUN,EAAAA,SAAA,CAAWO,QAAQ,MAAI,CAAAL,SAC/BG,IADcD,OAO3B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as r}from"tslib";import{jsx as t}from"react/jsx-runtime";import{useMemo as n}from"react";import{useTheme as o,Container as i,Typography as e}from"@cleartrip/ct-design-components";var c=function(c){var a=(c.data||{}).content,m=void 0===a?[]:a,p=o(),f=n(function(){return function(r){return{root:{display:"flex",flexDirection:"column",gap:r.spacing[4]}}}(p)},[p]);return t(i,r({css:f.root},{children:m.map(function(n,o){var i=n.text;return t(e,r({variant:"B3"},{children:void 0===i?"":i}),o)})}))};export{c as BodyContent};
|
|
2
|
+
//# sourceMappingURL=talos-body-content.browser.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"talos-body-content.browser.esm.js","sources":["../packages/components/body-content/src/style.ts","../packages/components/body-content/src/BodyContent.tsx"],"sourcesContent":[null,null],"names":["BodyContent","_a","_b","data","content","theme","useTheme","staticStyles","useMemo","root","display","flexDirection","gap","spacing","getBodyContentStyle","_jsx","Container","__assign","css","children","map","idx","text","Typography","variant"],"mappings":"mMAEO,ICQDA,EAAc,SAACC,GAAE,IACbC,GADiBD,EAAAE,MACQ,CAAA,GAAbC,QAAZA,OAAO,IAAAF,EAAG,GAAEA,EACdG,EAAQC,IACRC,EAAeC,EAAQ,WAAM,ODXF,SAACH,GAClC,MAAO,CACLI,KAAM,CACJC,QAAS,OACTC,cAAe,SACfC,IAAKP,EAAMQ,QAAQ,IAGzB,CCGqCC,CAAoBT,EAAM,EAAE,CAACA,IAEhE,OACEU,EAACC,EAAUC,EAAA,CAAAC,IAAKX,EAAaE,MAAI,CAAAU,SAC9Bf,EAAQgB,IAAI,SAACnB,EAAeoB,GAAb,IAAAnB,EAAAD,EAAAqB,KACd,OACEP,EAACQ,EAAUN,EAAA,CAAWO,QAAQ,MAAI,CAAAL,cAFf,IAAAjB,EAAA,GAAEA,IAEJmB,OAO3B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib = require('tslib');
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var react = require('react');
|
|
6
|
+
var ctDesignComponents = require('@cleartrip/ct-design-components');
|
|
7
|
+
|
|
8
|
+
var getBodyContentStyle = function (theme) {
|
|
9
|
+
return {
|
|
10
|
+
root: {
|
|
11
|
+
display: "flex",
|
|
12
|
+
flexDirection: "column",
|
|
13
|
+
gap: theme.spacing[4],
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
var BodyContent = function (_a) {
|
|
19
|
+
var data = _a.data;
|
|
20
|
+
var _b = (data || {}).content, content = _b === void 0 ? [] : _b;
|
|
21
|
+
var theme = ctDesignComponents.useTheme();
|
|
22
|
+
var staticStyles = react.useMemo(function () { return getBodyContentStyle(theme); }, [theme]);
|
|
23
|
+
return (jsxRuntime.jsx(ctDesignComponents.Container, tslib.__assign({ css: staticStyles.root }, { children: content.map(function (_a, idx) {
|
|
24
|
+
var _b = _a.text, text = _b === void 0 ? "" : _b;
|
|
25
|
+
return (jsxRuntime.jsx(ctDesignComponents.Typography, tslib.__assign({ variant: "B3" }, { children: text }), idx));
|
|
26
|
+
}) })));
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
exports.BodyContent = BodyContent;
|
|
30
|
+
//# sourceMappingURL=talos-body-content.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"talos-body-content.cjs.js","sources":["../packages/components/body-content/src/style.ts","../packages/components/body-content/src/BodyContent.tsx"],"sourcesContent":[null,null],"names":["useTheme","useMemo","_jsx","Container","__assign","Typography"],"mappings":";;;;;;;AAEO,IAAM,mBAAmB,GAAG,UAAC,KAAY,EAAA;IAC9C,OAAO;AACL,QAAA,IAAI,EAAE;AACJ,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,aAAa,EAAE,QAAQ;AACvB,YAAA,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACtB,SAAA;KACF,CAAC;AACJ,CAAC;;ACAK,IAAA,WAAW,GAAG,UAAC,EAAyC,EAAA;AAAvC,IAAA,IAAA,IAAI,GAAA,EAAA,CAAA,IAAA,CAAA;AACjB,IAAA,IAAA,EAAiB,GAAA,CAAA,IAAI,IAAI,EAAE,EAAf,OAAA,EAAZ,OAAO,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAA,EAAA,CAAgB;AACpC,IAAA,IAAM,KAAK,GAAGA,2BAAQ,EAAE,CAAC;AACzB,IAAA,IAAM,YAAY,GAAGC,aAAO,CAAC,YAAA,EAAM,OAAA,mBAAmB,CAAC,KAAK,CAAC,GAAA,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AAExE,IAAA,QACEC,cAAC,CAAAC,4BAAS,EAACC,cAAA,CAAA,EAAA,GAAG,EAAE,YAAY,CAAC,IAAI,EAAA,EAAA,EAAA,QAAA,EAC9B,OAAO,CAAC,GAAG,CAAC,UAAC,EAAa,EAAE,GAAG,EAAA;AAAhB,YAAA,IAAA,EAAA,GAAA,EAAA,CAAA,IAAS,EAAT,IAAI,GAAG,EAAA,KAAA,KAAA,CAAA,GAAA,EAAE,GAAA,EAAA,CAAA;AACvB,YAAA,QACEF,cAAA,CAACG,6BAAU,EAAAD,cAAA,CAAA,EAAW,OAAO,EAAC,IAAI,EAAA,EAAA,EAAA,QAAA,EAC/B,IAAI,EAAA,CAAA,EADU,GAAG,CAEP,EACb;SACH,CAAC,EACQ,CAAA,CAAA,EACZ;AACJ;;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __assign } from 'tslib';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
import { useTheme, Container, Typography } from '@cleartrip/ct-design-components';
|
|
5
|
+
|
|
6
|
+
var getBodyContentStyle = function (theme) {
|
|
7
|
+
return {
|
|
8
|
+
root: {
|
|
9
|
+
display: "flex",
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
gap: theme.spacing[4],
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
var BodyContent = function (_a) {
|
|
17
|
+
var data = _a.data;
|
|
18
|
+
var _b = (data || {}).content, content = _b === void 0 ? [] : _b;
|
|
19
|
+
var theme = useTheme();
|
|
20
|
+
var staticStyles = useMemo(function () { return getBodyContentStyle(theme); }, [theme]);
|
|
21
|
+
return (jsx(Container, __assign({ css: staticStyles.root }, { children: content.map(function (_a, idx) {
|
|
22
|
+
var _b = _a.text, text = _b === void 0 ? "" : _b;
|
|
23
|
+
return (jsx(Typography, __assign({ variant: "B3" }, { children: text }), idx));
|
|
24
|
+
}) })));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { BodyContent };
|
|
28
|
+
//# sourceMappingURL=talos-body-content.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"talos-body-content.esm.js","sources":["../packages/components/body-content/src/style.ts","../packages/components/body-content/src/BodyContent.tsx"],"sourcesContent":[null,null],"names":["_jsx"],"mappings":";;;;;AAEO,IAAM,mBAAmB,GAAG,UAAC,KAAY,EAAA;IAC9C,OAAO;AACL,QAAA,IAAI,EAAE;AACJ,YAAA,OAAO,EAAE,MAAM;AACf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