@cleartrip/talos-fixed-bottom 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.
@@ -0,0 +1,4 @@
1
+ import { IFixedBottomProps } from "./type";
2
+ declare const FixedBottom: (props: IFixedBottomProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default FixedBottom;
4
+ //# sourceMappingURL=FixedBottom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FixedBottom.d.ts","sourceRoot":"","sources":["../packages/components/fixed-bottom/src/FixedBottom.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAE3C,QAAA,MAAM,WAAW,UAAW,iBAAiB,4CAW5C,CAAA;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as FixedBottom } from "./FixedBottom";
2
+ export * from "./type";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/fixed-bottom/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Theme } from "@cleartrip/ct-design-components";
2
+ export declare const styles: (theme: Theme) => {
3
+ fixedBottom: {
4
+ position: string;
5
+ bottom: number;
6
+ left: number;
7
+ right: number;
8
+ };
9
+ };
10
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../packages/components/fixed-bottom/src/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAA;AAEvD,eAAO,MAAM,MAAM,UAAW,KAAK;;;;;;;CASlC,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),i=require("@cleartrip/ct-design-components");exports.FixedBottom=function(o){var n=o.children,s=i.useTheme(),c=r.useMemo(function(){return{fixedBottom:{position:"sticky",bottom:0,left:0,right:0}}},[s]);return t.jsx(i.Container,e.__assign({css:c.fixedBottom,id:"fixed-bottom"},{children:n}))};
2
+ //# sourceMappingURL=talos-fixed-bottom.browser.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"talos-fixed-bottom.browser.cjs.js","sources":["../packages/components/fixed-bottom/src/FixedBottom.tsx","../packages/components/fixed-bottom/src/style.ts"],"sourcesContent":[null,null],"names":["props","children","theme","useTheme","staticStyles","useMemo","fixedBottom","position","bottom","left","right","_jsx","jsx","Container","__assign","css","id"],"mappings":"uJAOoB,SAACA,GACT,IAAAC,EAAaD,EAAKC,SAEpBC,EAAQC,EAAAA,WACRC,EAAeC,UAAQ,WAAM,MCR5B,CACHC,YAAa,CACTC,SAAU,SACVC,OAAQ,EACRC,KAAM,EACNC,MAAO,GDGiC,EAAE,CAACR,IAEnD,OACIS,EAACC,IAAAC,EAASA,UAACC,EAAAA,SAAA,CAAAC,IAAKX,EAAaE,YAAaU,GAAG,0BACxCf,IAGb"}
@@ -0,0 +1,2 @@
1
+ import{__assign as t}from"tslib";import{jsx as o}from"react/jsx-runtime";import{useMemo as r}from"react";import{useTheme as i,Container as e}from"@cleartrip/ct-design-components";var m=function(m){var n=m.children,c=i(),f=r(function(){return{fixedBottom:{position:"sticky",bottom:0,left:0,right:0}}},[c]);return o(e,t({css:f.fixedBottom,id:"fixed-bottom"},{children:n}))};export{m as FixedBottom};
2
+ //# sourceMappingURL=talos-fixed-bottom.browser.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"talos-fixed-bottom.browser.esm.js","sources":["../packages/components/fixed-bottom/src/style.ts","../packages/components/fixed-bottom/src/FixedBottom.tsx"],"sourcesContent":[null,null],"names":["FixedBottom","props","children","theme","useTheme","staticStyles","useMemo","fixedBottom","position","bottom","left","right","_jsx","Container","__assign","css","id"],"mappings":"mLAEO,ICKDA,EAAc,SAACC,GACT,IAAAC,EAAaD,EAAKC,SAEpBC,EAAQC,IACRC,EAAeC,EAAQ,WAAM,MDR5B,CACHC,YAAa,CACTC,SAAU,SACVC,OAAQ,EACRC,KAAM,EACNC,MAAO,GCGiC,EAAE,CAACR,IAEnD,OACIS,EAACC,EAAUC,EAAA,CAAAC,IAAKV,EAAaE,YAAaS,GAAG,0BACxCd,IAGb"}
@@ -0,0 +1,27 @@
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 styles = function (theme) {
9
+ return {
10
+ fixedBottom: {
11
+ position: "sticky",
12
+ bottom: 0,
13
+ left: 0,
14
+ right: 0,
15
+ },
16
+ };
17
+ };
18
+
19
+ var FixedBottom = function (props) {
20
+ var children = props.children;
21
+ var theme = ctDesignComponents.useTheme();
22
+ var staticStyles = react.useMemo(function () { return styles(); }, [theme]);
23
+ return (jsxRuntime.jsx(ctDesignComponents.Container, tslib.__assign({ css: staticStyles.fixedBottom, id: "fixed-bottom" }, { children: children })));
24
+ };
25
+
26
+ exports.FixedBottom = FixedBottom;
27
+ //# sourceMappingURL=talos-fixed-bottom.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"talos-fixed-bottom.cjs.js","sources":["../packages/components/fixed-bottom/src/style.ts","../packages/components/fixed-bottom/src/FixedBottom.tsx"],"sourcesContent":[null,null],"names":["useTheme","useMemo","_jsx","Container","__assign"],"mappings":";;;;;;;AAEO,IAAM,MAAM,GAAG,UAAC,KAAY,EAAA;IAC/B,OAAO;AACH,QAAA,WAAW,EAAE;AACT,YAAA,QAAQ,EAAE,QAAQ;AAClB,YAAA,MAAM,EAAE,CAAC;AACT,YAAA,IAAI,EAAE,CAAC;AACP,YAAA,KAAK,EAAE,CAAC;AACX,SAAA;KACJ,CAAA;AACL,CAAC;;ACJK,IAAA,WAAW,GAAG,UAAC,KAAwB,EAAA;AACjC,IAAA,IAAA,QAAQ,GAAK,KAAK,CAAA,QAAV,CAAW;AAE3B,IAAA,IAAM,KAAK,GAAGA,2BAAQ,EAAE,CAAC;AACzB,IAAA,IAAM,YAAY,GAAGC,aAAO,CAAC,YAAA,EAAM,OAAA,MAAM,CAAM,CAAC,GAAA,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AAE3D,IAAA,QACIC,cAAC,CAAAC,4BAAS,EAACC,cAAA,CAAA,EAAA,GAAG,EAAE,YAAY,CAAC,WAAW,EAAE,EAAE,EAAC,cAAc,gBACtD,QAAQ,EAAA,CAAA,CACD,EACf;AACL;;;;"}
@@ -0,0 +1,25 @@
1
+ import { __assign } from 'tslib';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { useMemo } from 'react';
4
+ import { useTheme, Container } from '@cleartrip/ct-design-components';
5
+
6
+ var styles = function (theme) {
7
+ return {
8
+ fixedBottom: {
9
+ position: "sticky",
10
+ bottom: 0,
11
+ left: 0,
12
+ right: 0,
13
+ },
14
+ };
15
+ };
16
+
17
+ var FixedBottom = function (props) {
18
+ var children = props.children;
19
+ var theme = useTheme();
20
+ var staticStyles = useMemo(function () { return styles(); }, [theme]);
21
+ return (jsx(Container, __assign({ css: staticStyles.fixedBottom, id: "fixed-bottom" }, { children: children })));
22
+ };
23
+
24
+ export { FixedBottom };
25
+ //# sourceMappingURL=talos-fixed-bottom.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"talos-fixed-bottom.esm.js","sources":["../packages/components/fixed-bottom/src/style.ts","../packages/components/fixed-bottom/src/FixedBottom.tsx"],"sourcesContent":[null,null],"names":["_jsx"],"mappings":";;;;;AAEO,IAAM,MAAM,GAAG,UAAC,KAAY,EAAA;IAC/B,OAAO;AACH,QAAA,WAAW,EAAE;AACT,YAAA,QAAQ,EAAE,QAAQ;AAClB,YAAA,MAAM,EAAE,CAAC;AACT,YAAA,IAAI,EAAE,CAAC;AACP,YAAA,KAAK,EAAE,CAAC;AACX,SAAA;KACJ,CAAA;AACL,CAAC;;ACJK,IAAA,WAAW,GAAG,UAAC,KAAwB,EAAA;AACjC,IAAA,IAAA,QAAQ,GAAK,KAAK,CAAA,QAAV,CAAW;AAE3B,IAAA,IAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;AACzB,IAAA,IAAM,YAAY,GAAG,OAAO,CAAC,YAAA,EAAM,OAAA,MAAM,CAAM,CAAC,GAAA,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AAE3D,IAAA,QACIA,GAAC,CAAA,SAAS,EAAC,QAAA,CAAA,EAAA,GAAG,EAAE,YAAY,CAAC,WAAW,EAAE,EAAE,EAAC,cAAc,gBACtD,QAAQ,EAAA,CAAA,CACD,EACf;AACL;;;;"}