@cleartrip/ct-design-conditional-wrap 1.0.0-beta

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,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){var r=e.condition,t=e.wrap,n=e.children;return r?t(n):n};
2
+ //# sourceMappingURL=ct-design-conditional-wrapper.browser.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ct-design-conditional-wrapper.browser.cjs.js","sources":["../packages/components/ConditionalWrap/src/index.ts"],"sourcesContent":[null],"names":["_a","condition","wrap","children"],"mappings":"oFAEA,SAAyBA,GACxB,IAAAC,cACAC,EAAIF,EAAAE,KACJC,EAAQH,EAAAG,SAMR,OAAOF,EAAYC,EAAKC,GAAYA,CACrC"}
@@ -0,0 +1,2 @@
1
+ function n(n){var r=n.condition,t=n.wrap,a=n.children;return r?t(a):a}export{n as default};
2
+ //# sourceMappingURL=ct-design-conditional-wrapper.browser.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ct-design-conditional-wrapper.browser.esm.js","sources":["../packages/components/ConditionalWrap/src/index.ts"],"sourcesContent":[null],"names":["ConditionalWrap","_a","condition","wrap","children"],"mappings":"AAEA,SAASA,EAAgBC,GACxB,IAAAC,cACAC,EAAIF,EAAAE,KACJC,EAAQH,EAAAG,SAMR,OAAOF,EAAYC,EAAKC,GAAYA,CACrC"}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ function ConditionalWrap(_a) {
6
+ var condition = _a.condition, wrap = _a.wrap, children = _a.children;
7
+ return condition ? wrap(children) : children;
8
+ }
9
+
10
+ exports.default = ConditionalWrap;
11
+ //# sourceMappingURL=ct-design-conditional-wrapper.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ct-design-conditional-wrapper.cjs.js","sources":["../packages/components/ConditionalWrap/src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAEA,SAAS,eAAe,CAAC,EAQxB,EAAA;AAPA,IAAA,IAAA,SAAS,eAAA,EACT,IAAI,GAAA,EAAA,CAAA,IAAA,EACJ,QAAQ,GAAA,EAAA,CAAA,QAAA,CAAA;AAMR,IAAA,OAAO,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AAC9C;;;;"}
@@ -0,0 +1,7 @@
1
+ function ConditionalWrap(_a) {
2
+ var condition = _a.condition, wrap = _a.wrap, children = _a.children;
3
+ return condition ? wrap(children) : children;
4
+ }
5
+
6
+ export { ConditionalWrap as default };
7
+ //# sourceMappingURL=ct-design-conditional-wrapper.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ct-design-conditional-wrapper.esm.js","sources":["../packages/components/ConditionalWrap/src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA,SAAS,eAAe,CAAC,EAQxB,EAAA;AAPA,IAAA,IAAA,SAAS,eAAA,EACT,IAAI,GAAA,EAAA,CAAA,IAAA,EACJ,QAAQ,GAAA,EAAA,CAAA,QAAA,CAAA;AAMR,IAAA,OAAO,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AAC9C;;;;"}
@@ -0,0 +1,17 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystem = {}));
5
+ })(this, (function (exports) { 'use strict';
6
+
7
+ function ConditionalWrap(_a) {
8
+ var condition = _a.condition, wrap = _a.wrap, children = _a.children;
9
+ return condition ? wrap(children) : children;
10
+ }
11
+
12
+ exports.default = ConditionalWrap;
13
+
14
+ Object.defineProperty(exports, '__esModule', { value: true });
15
+
16
+ }));
17
+ //# sourceMappingURL=ct-design-conditional-wrapper.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ct-design-conditional-wrapper.umd.js","sources":["../packages/components/ConditionalWrap/src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;IAEA,SAAS,eAAe,CAAC,EAQxB,EAAA;IAPA,IAAA,IAAA,SAAS,eAAA,EACT,IAAI,GAAA,EAAA,CAAA,IAAA,EACJ,QAAQ,GAAA,EAAA,CAAA,QAAA,CAAA;IAMR,IAAA,OAAO,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IAC9C;;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ import { ReactElement } from 'react';
2
+ declare function ConditionalWrap({ condition, wrap, children, }: {
3
+ condition: boolean;
4
+ wrap: (component: typeof children) => ReactElement;
5
+ children: ReactElement;
6
+ }): ReactElement;
7
+ export default ConditionalWrap;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/ConditionalWrap/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,iBAAS,eAAe,CAAC,EACxB,SAAS,EACT,IAAI,EACJ,QAAQ,GACR,EAAE;IACF,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,CAAC,SAAS,EAAE,OAAO,QAAQ,KAAK,YAAY,CAAC;IACnD,QAAQ,EAAE,YAAY,CAAC;CACvB,GAAG,YAAY,CAEf;AAED,eAAe,eAAe,CAAC"}