@cleartrip/ct-design-conditional-wrap 4.0.0-SNAPSHOT-rnfinaltest25.0 → 4.0.0-SNAPSHOT-rnfinaltest30.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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function({condition:e,wrap:t,children:r}){return e?t(r):r};
1
+ "use strict";function e({condition:e,wrap:t,children:r}){return e?t(r):r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConditionalWrap=e,exports.default=e;
2
2
  //# sourceMappingURL=ct-design-conditional-wrapper.browser.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-design-conditional-wrapper.browser.cjs.js","sources":["../packages/components/ConditionalWrap/src/index.ts"],"sourcesContent":[null],"names":["condition","wrap","children"],"mappings":"oFAEA,UAAyBA,UACvBA,EAASC,KACTA,EAAIC,SACJA,IAMA,OAAOF,EAAYC,EAAKC,GAAYA,CACtC"}
1
+ {"version":3,"file":"ct-design-conditional-wrapper.browser.cjs.js","sources":["../packages/components/ConditionalWrap/src/index.ts"],"sourcesContent":[null],"names":["ConditionalWrap","condition","wrap","children"],"mappings":"aAEM,SAAUA,GAAgBC,UAC9BA,EAASC,KACTA,EAAIC,SACJA,IAMA,OAAOF,EAAYC,EAAKC,GAAYA,CACtC"}
@@ -1,2 +1,2 @@
1
- function n({condition:n,wrap:r,children:t}){return n?r(t):t}export{n as default};
1
+ function n({condition:n,wrap:r,children:t}){return n?r(t):t}export{n as ConditionalWrap,n as default};
2
2
  //# sourceMappingURL=ct-design-conditional-wrapper.browser.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-design-conditional-wrapper.browser.esm.js","sources":["../packages/components/ConditionalWrap/src/index.ts"],"sourcesContent":[null],"names":["ConditionalWrap","condition","wrap","children"],"mappings":"AAEA,SAASA,GAAgBC,UACvBA,EAASC,KACTA,EAAIC,SACJA,IAMA,OAAOF,EAAYC,EAAKC,GAAYA,CACtC"}
1
+ {"version":3,"file":"ct-design-conditional-wrapper.browser.esm.js","sources":["../packages/components/ConditionalWrap/src/index.ts"],"sourcesContent":[null],"names":["ConditionalWrap","condition","wrap","children"],"mappings":"AAEM,SAAUA,GAAgBC,UAC9BA,EAASC,KACTA,EAAIC,SACJA,IAMA,OAAOF,EAAYC,EAAKC,GAAYA,CACtC"}
@@ -6,5 +6,6 @@ function ConditionalWrap({ condition, wrap, children, }) {
6
6
  return condition ? wrap(children) : children;
7
7
  }
8
8
 
9
+ exports.ConditionalWrap = ConditionalWrap;
9
10
  exports.default = ConditionalWrap;
10
11
  //# sourceMappingURL=ct-design-conditional-wrapper.cjs.js.map
@@ -1 +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,EACvB,SAAS,EACT,IAAI,EACJ,QAAQ,GAKT,EAAA;AACC,IAAA,OAAO,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AAC/C;;;;"}
1
+ {"version":3,"file":"ct-design-conditional-wrapper.cjs.js","sources":["../packages/components/ConditionalWrap/src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAEM,SAAU,eAAe,CAAC,EAC9B,SAAS,EACT,IAAI,EACJ,QAAQ,GAKT,EAAA;AACC,IAAA,OAAO,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AAC/C;;;;;"}
@@ -2,5 +2,5 @@ function ConditionalWrap({ condition, wrap, children, }) {
2
2
  return condition ? wrap(children) : children;
3
3
  }
4
4
 
5
- export { ConditionalWrap as default };
5
+ export { ConditionalWrap, ConditionalWrap as default };
6
6
  //# sourceMappingURL=ct-design-conditional-wrapper.esm.js.map
@@ -1 +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,EACvB,SAAS,EACT,IAAI,EACJ,QAAQ,GAKT,EAAA;AACC,IAAA,OAAO,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AAC/C;;;;"}
1
+ {"version":3,"file":"ct-design-conditional-wrapper.esm.js","sources":["../packages/components/ConditionalWrap/src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEM,SAAU,eAAe,CAAC,EAC9B,SAAS,EACT,IAAI,EACJ,QAAQ,GAKT,EAAA;AACC,IAAA,OAAO,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AAC/C;;;;"}
@@ -8,6 +8,7 @@
8
8
  return condition ? wrap(children) : children;
9
9
  }
10
10
 
11
+ exports.ConditionalWrap = ConditionalWrap;
11
12
  exports.default = ConditionalWrap;
12
13
 
13
14
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1 +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,EACvB,SAAS,EACT,IAAI,EACJ,QAAQ,GAKT,EAAA;IACC,IAAA,OAAO,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IAC/C;;;;;;;;;;"}
1
+ {"version":3,"file":"ct-design-conditional-wrapper.umd.js","sources":["../packages/components/ConditionalWrap/src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;IAEM,SAAU,eAAe,CAAC,EAC9B,SAAS,EACT,IAAI,EACJ,QAAQ,GAKT,EAAA;IACC,IAAA,OAAO,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IAC/C;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- declare function ConditionalWrap({ condition, wrap, children, }: {
2
+ export declare function ConditionalWrap({ condition, wrap, children, }: {
3
3
  condition: boolean;
4
4
  wrap: (component: typeof children) => ReactElement;
5
5
  children: ReactElement;
@@ -1 +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,EACvB,SAAS,EACT,IAAI,EACJ,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,CAAC,SAAS,EAAE,OAAO,QAAQ,KAAK,YAAY,CAAC;IACnD,QAAQ,EAAE,YAAY,CAAC;CACxB,GAAG,YAAY,CAEf;AAED,eAAe,eAAe,CAAC"}
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,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,IAAI,EACJ,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,CAAC,SAAS,EAAE,OAAO,QAAQ,KAAK,YAAY,CAAC;IACnD,QAAQ,EAAE,YAAY,CAAC;CACxB,GAAG,YAAY,CAEf;AAED,eAAe,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleartrip/ct-design-conditional-wrap",
3
- "version": "4.0.0-SNAPSHOT-rnfinaltest25.0",
3
+ "version": "4.0.0-SNAPSHOT-rnfinaltest30.0",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "./dist/ct-design-conditional-wrapper.cjs.js",
@@ -23,7 +23,7 @@
23
23
  "src"
24
24
  ],
25
25
  "dependencies": {
26
- "@cleartrip/ct-design-theme": "4.0.0-SNAPSHOT-rnfinaltest25.0"
26
+ "@cleartrip/ct-design-theme": "4.0.0-SNAPSHOT-rnfinaltest30.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": ">=16.8.0",
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
 
3
- function ConditionalWrap({
3
+ export function ConditionalWrap({
4
4
  condition,
5
5
  wrap,
6
6
  children,