@fluentui/react-jsx-runtime 9.0.0 → 9.0.2

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/CHANGELOG.json CHANGED
@@ -2,7 +2,43 @@
2
2
  "name": "@fluentui/react-jsx-runtime",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 16 Aug 2023 17:38:21 GMT",
5
+ "date": "Thu, 24 Aug 2023 10:23:06 GMT",
6
+ "tag": "@fluentui/react-jsx-runtime_v9.0.2",
7
+ "version": "9.0.2",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "bernardo.sunderhus@gmail.com",
12
+ "package": "@fluentui/react-jsx-runtime",
13
+ "commit": "d7f04c2b9e5b36267f7d822fe493fc57cf5bc492",
14
+ "comment": "chore: decrease bundle size & adds fixtures"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-jsx-runtime",
19
+ "comment": "Bump @fluentui/react-utilities to v9.12.0",
20
+ "commit": "3f6c5a749ef403c06b9c9e753df9afbb84a2ecb5"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Wed, 23 Aug 2023 12:01:49 GMT",
27
+ "tag": "@fluentui/react-jsx-runtime_v9.0.1",
28
+ "version": "9.0.1",
29
+ "comments": {
30
+ "patch": [
31
+ {
32
+ "author": "beachball",
33
+ "package": "@fluentui/react-jsx-runtime",
34
+ "comment": "Bump @fluentui/react-utilities to v9.11.2",
35
+ "commit": "f94b6d05d7642563cb96e2718402fbbbab65cbbc"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Wed, 16 Aug 2023 17:41:07 GMT",
6
42
  "tag": "@fluentui/react-jsx-runtime_v9.0.0",
7
43
  "version": "9.0.0",
8
44
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,31 @@
1
1
  # Change Log - @fluentui/react-jsx-runtime
2
2
 
3
- This log was last generated on Wed, 16 Aug 2023 17:38:21 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 24 Aug 2023 10:23:06 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.2)
8
+
9
+ Thu, 24 Aug 2023 10:23:06 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.1..@fluentui/react-jsx-runtime_v9.0.2)
11
+
12
+ ### Patches
13
+
14
+ - chore: decrease bundle size & adds fixtures ([PR #28962](https://github.com/microsoft/fluentui/pull/28962) by bernardo.sunderhus@gmail.com)
15
+ - Bump @fluentui/react-utilities to v9.12.0 ([PR #28973](https://github.com/microsoft/fluentui/pull/28973) by beachball)
16
+
17
+ ## [9.0.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.1)
18
+
19
+ Wed, 23 Aug 2023 12:01:49 GMT
20
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.0..@fluentui/react-jsx-runtime_v9.0.1)
21
+
22
+ ### Patches
23
+
24
+ - Bump @fluentui/react-utilities to v9.11.2 ([PR #28957](https://github.com/microsoft/fluentui/pull/28957) by beachball)
25
+
7
26
  ## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-jsx-runtime_v9.0.0)
8
27
 
9
- Wed, 16 Aug 2023 17:38:21 GMT
28
+ Wed, 16 Aug 2023 17:41:07 GMT
10
29
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-jsx-runtime_v9.0.0-alpha.16..@fluentui/react-jsx-runtime_v9.0.0)
11
30
 
12
31
  ### Patches
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+ import { isSlot } from '@fluentui/react-utilities';
3
+ import { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';
4
+ import { createCompatSlotComponent } from '../utils/createCompatSlotComponent';
5
+ /**
6
+ * @internal
7
+ */ export const createJSX = (runtime)=>{
8
+ const jsxFromSlotComponent = (type, overrideProps, key, source, self)=>{
9
+ const { elementType , renderFunction , props: slotProps } = getMetadataFromSlotComponent(type);
10
+ const props = {
11
+ ...slotProps,
12
+ ...overrideProps
13
+ };
14
+ if (renderFunction) {
15
+ return runtime(React.Fragment, {
16
+ children: renderFunction(elementType, props)
17
+ }, key, source, self);
18
+ }
19
+ return runtime(elementType, props, key, source, self);
20
+ };
21
+ return (type, overrideProps, key, source, self)=>{
22
+ // TODO:
23
+ // this is for backwards compatibility with getSlotsNext
24
+ // it should be removed once getSlotsNext is obsolete
25
+ if (isSlot(overrideProps)) {
26
+ return jsxFromSlotComponent(createCompatSlotComponent(type, overrideProps), null, key, source, self);
27
+ }
28
+ if (isSlot(type)) {
29
+ return jsxFromSlotComponent(type, overrideProps, key, source, self);
30
+ }
31
+ return runtime(type, overrideProps, key, source, self);
32
+ };
33
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["createJSX.ts"],"sourcesContent":["import * as React from 'react';\nimport { isSlot, type SlotComponentType, type UnknownSlotProps } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport type { JSXRuntime } from '../utils/types';\nimport { createCompatSlotComponent } from '../utils/createCompatSlotComponent';\n\n/**\n * @internal\n */\nexport const createJSX = (runtime: JSXRuntime) => {\n const jsxFromSlotComponent = <Props extends UnknownSlotProps>(\n type: SlotComponentType<Props>,\n overrideProps: Props | null,\n key?: React.Key,\n source?: unknown,\n self?: unknown,\n ): React.ReactElement<Props> => {\n const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);\n\n const props: Props = { ...slotProps, ...overrideProps };\n\n if (renderFunction) {\n return runtime(\n React.Fragment,\n {\n children: renderFunction(elementType, props),\n },\n key,\n source,\n self,\n ) as React.ReactElement<Props>;\n }\n return runtime(elementType, props, key, source, self);\n };\n\n return <Props extends {}>(\n type: React.ElementType<Props>,\n overrideProps: Props | null,\n key?: React.Key,\n source?: unknown,\n self?: unknown,\n ): React.ReactElement<Props> => {\n // TODO:\n // this is for backwards compatibility with getSlotsNext\n // it should be removed once getSlotsNext is obsolete\n if (isSlot<Props>(overrideProps)) {\n return jsxFromSlotComponent(createCompatSlotComponent(type, overrideProps), null, key, source, self);\n }\n if (isSlot<Props>(type)) {\n return jsxFromSlotComponent(type, overrideProps, key, source, self);\n }\n return runtime(type, overrideProps, key, source, self);\n };\n};\n"],"names":["React","isSlot","getMetadataFromSlotComponent","createCompatSlotComponent","createJSX","runtime","jsxFromSlotComponent","type","overrideProps","key","source","self","elementType","renderFunction","props","slotProps","Fragment","children"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,MAAM,QAAuD,4BAA4B;AAClG,SAASC,4BAA4B,QAAQ,wCAAwC;AAErF,SAASC,yBAAyB,QAAQ,qCAAqC;AAE/E;;CAEC,GACD,OAAO,MAAMC,YAAY,CAACC,UAAwB;IAChD,MAAMC,uBAAuB,CAC3BC,MACAC,eACAC,KACAC,QACAC,OAC8B;QAC9B,MAAM,EAAEC,YAAW,EAAEC,eAAc,EAAEC,OAAOC,UAAS,EAAE,GAAGb,6BAA6BK;QAEvF,MAAMO,QAAe;YAAE,GAAGC,SAAS;YAAE,GAAGP,aAAa;QAAC;QAEtD,IAAIK,gBAAgB;YAClB,OAAOR,QACLL,MAAMgB,QAAQ,EACd;gBACEC,UAAUJ,eAAeD,aAAaE;YACxC,GACAL,KACAC,QACAC;QAEJ,CAAC;QACD,OAAON,QAAQO,aAAaE,OAAOL,KAAKC,QAAQC;IAClD;IAEA,OAAO,CACLJ,MACAC,eACAC,KACAC,QACAC,OAC8B;QAC9B,QAAQ;QACR,wDAAwD;QACxD,qDAAqD;QACrD,IAAIV,OAAcO,gBAAgB;YAChC,OAAOF,qBAAqBH,0BAA0BI,MAAMC,gBAAgB,IAAI,EAAEC,KAAKC,QAAQC;QACjG,CAAC;QACD,IAAIV,OAAcM,OAAO;YACvB,OAAOD,qBAAqBC,MAAMC,eAAeC,KAAKC,QAAQC;QAChE,CAAC;QACD,OAAON,QAAQE,MAAMC,eAAeC,KAAKC,QAAQC;IACnD;AACF,EAAE"}
@@ -1,17 +1,4 @@
1
- import { isSlot } from '@fluentui/react-utilities';
2
- import { jsxDEVFromSlotComponent } from './jsx/jsxDEVFromSlotComponent';
3
- import { createCompatSlotComponent } from './utils/createCompatSlotComponent';
4
1
  import { DevRuntime } from './utils/DevRuntime';
2
+ import { createJSX } from './jsx/createJSX';
5
3
  export { Fragment } from 'react';
6
- export function jsxDEV(type, props, key, source, self) {
7
- // TODO:
8
- // this is for backwards compatibility with getSlotsNext
9
- // it should be removed once getSlotsNext is obsolete
10
- if (isSlot(props)) {
11
- return jsxDEVFromSlotComponent(createCompatSlotComponent(type, props), null, key, source, self);
12
- }
13
- if (isSlot(type)) {
14
- return jsxDEVFromSlotComponent(type, props, key, source, self);
15
- }
16
- return DevRuntime.jsxDEV(type, props, key, source, self);
17
- }
4
+ export const jsxDEV = createJSX(DevRuntime.jsxDEV);
@@ -1 +1 @@
1
- {"version":3,"sources":["jsx-dev-runtime.ts"],"sourcesContent":["import type * as React from 'react';\nimport { isSlot } from '@fluentui/react-utilities';\nimport { jsxDEVFromSlotComponent } from './jsx/jsxDEVFromSlotComponent';\nimport { createCompatSlotComponent } from './utils/createCompatSlotComponent';\nimport { DevRuntime } from './utils/DevRuntime';\n\nexport { Fragment } from 'react';\n\nexport function jsxDEV<P extends {}>(\n type: React.ElementType<P>,\n props: P,\n key?: React.Key,\n source?: boolean,\n self?: unknown,\n): React.ReactElement<P> {\n // TODO:\n // this is for backwards compatibility with getSlotsNext\n // it should be removed once getSlotsNext is obsolete\n if (isSlot<P>(props)) {\n return jsxDEVFromSlotComponent(createCompatSlotComponent(type, props), null, key, source, self);\n }\n if (isSlot<P>(type)) {\n return jsxDEVFromSlotComponent(type, props, key, source, self);\n }\n return DevRuntime.jsxDEV(type, props, key, source, self);\n}\n"],"names":["isSlot","jsxDEVFromSlotComponent","createCompatSlotComponent","DevRuntime","Fragment","jsxDEV","type","props","key","source","self"],"mappings":"AACA,SAASA,MAAM,QAAQ,4BAA4B;AACnD,SAASC,uBAAuB,QAAQ,gCAAgC;AACxE,SAASC,yBAAyB,QAAQ,oCAAoC;AAC9E,SAASC,UAAU,QAAQ,qBAAqB;AAEhD,SAASC,QAAQ,QAAQ,QAAQ;AAEjC,OAAO,SAASC,OACdC,IAA0B,EAC1BC,KAAQ,EACRC,GAAe,EACfC,MAAgB,EAChBC,IAAc,EACS;IACvB,QAAQ;IACR,wDAAwD;IACxD,qDAAqD;IACrD,IAAIV,OAAUO,QAAQ;QACpB,OAAON,wBAAwBC,0BAA0BI,MAAMC,QAAQ,IAAI,EAAEC,KAAKC,QAAQC;IAC5F,CAAC;IACD,IAAIV,OAAUM,OAAO;QACnB,OAAOL,wBAAwBK,MAAMC,OAAOC,KAAKC,QAAQC;IAC3D,CAAC;IACD,OAAOP,WAAWE,MAAM,CAACC,MAAMC,OAAOC,KAAKC,QAAQC;AACrD,CAAC"}
1
+ {"version":3,"sources":["jsx-dev-runtime.ts"],"sourcesContent":["import { DevRuntime } from './utils/DevRuntime';\nimport { createJSX } from './jsx/createJSX';\n\nexport { Fragment } from 'react';\n\nexport const jsxDEV = createJSX(DevRuntime.jsxDEV);\n"],"names":["DevRuntime","createJSX","Fragment","jsxDEV"],"mappings":"AAAA,SAASA,UAAU,QAAQ,qBAAqB;AAChD,SAASC,SAAS,QAAQ,kBAAkB;AAE5C,SAASC,QAAQ,QAAQ,QAAQ;AAEjC,OAAO,MAAMC,SAASF,UAAUD,WAAWG,MAAM,EAAE"}
@@ -1,30 +1,5 @@
1
- import { isSlot } from '@fluentui/react-utilities';
2
- import { jsxDynamicFromSlotComponent } from './jsx/jsxDynamicFromSlotComponent';
3
- import { jsxStaticFromSlotComponent } from './jsx/jsxStaticFromSlotComponent';
4
- import { createCompatSlotComponent } from './utils/createCompatSlotComponent';
5
1
  import { Runtime } from './utils/Runtime';
2
+ import { createJSX } from './jsx/createJSX';
6
3
  export { Fragment } from 'react';
7
- export function jsx(type, props, key) {
8
- // TODO:
9
- // this is for backwards compatibility with getSlotsNext
10
- // it should be removed once getSlotsNext is obsolete
11
- if (isSlot(props)) {
12
- return jsxDynamicFromSlotComponent(createCompatSlotComponent(type, props), null, key);
13
- }
14
- if (isSlot(type)) {
15
- return jsxDynamicFromSlotComponent(type, props, key);
16
- }
17
- return Runtime.jsx(type, props, key);
18
- }
19
- export function jsxs(type, props, key) {
20
- // TODO:
21
- // this is for backwards compatibility with getSlotsNext
22
- // it should be removed once getSlotsNext is obsolete
23
- if (isSlot(props)) {
24
- return jsxStaticFromSlotComponent(createCompatSlotComponent(type, props), null, key);
25
- }
26
- if (isSlot(type)) {
27
- return jsxStaticFromSlotComponent(type, props, key);
28
- }
29
- return Runtime.jsxs(type, props, key);
30
- }
4
+ export const jsx = createJSX(Runtime.jsx);
5
+ export const jsxs = createJSX(Runtime.jsxs);
@@ -1 +1 @@
1
- {"version":3,"sources":["jsx-runtime.ts"],"sourcesContent":["import type * as React from 'react';\nimport { isSlot } from '@fluentui/react-utilities';\nimport { jsxDynamicFromSlotComponent } from './jsx/jsxDynamicFromSlotComponent';\nimport { jsxStaticFromSlotComponent } from './jsx/jsxStaticFromSlotComponent';\nimport { createCompatSlotComponent } from './utils/createCompatSlotComponent';\nimport { Runtime } from './utils/Runtime';\n\nexport { Fragment } from 'react';\n\nexport function jsx<P extends {}>(type: React.ElementType<P>, props: P, key?: React.Key): React.ReactElement<P> {\n // TODO:\n // this is for backwards compatibility with getSlotsNext\n // it should be removed once getSlotsNext is obsolete\n if (isSlot<P>(props)) {\n return jsxDynamicFromSlotComponent(createCompatSlotComponent(type, props), null, key);\n }\n if (isSlot<P>(type)) {\n return jsxDynamicFromSlotComponent(type, props, key);\n }\n return Runtime.jsx(type, props, key);\n}\n\nexport function jsxs<P extends {}>(type: React.ElementType<P>, props: P, key?: React.Key): React.ReactElement<P> {\n // TODO:\n // this is for backwards compatibility with getSlotsNext\n // it should be removed once getSlotsNext is obsolete\n if (isSlot<P>(props)) {\n return jsxStaticFromSlotComponent(createCompatSlotComponent(type, props), null, key);\n }\n if (isSlot<P>(type)) {\n return jsxStaticFromSlotComponent(type, props, key);\n }\n return Runtime.jsxs(type, props, key);\n}\n"],"names":["isSlot","jsxDynamicFromSlotComponent","jsxStaticFromSlotComponent","createCompatSlotComponent","Runtime","Fragment","jsx","type","props","key","jsxs"],"mappings":"AACA,SAASA,MAAM,QAAQ,4BAA4B;AACnD,SAASC,2BAA2B,QAAQ,oCAAoC;AAChF,SAASC,0BAA0B,QAAQ,mCAAmC;AAC9E,SAASC,yBAAyB,QAAQ,oCAAoC;AAC9E,SAASC,OAAO,QAAQ,kBAAkB;AAE1C,SAASC,QAAQ,QAAQ,QAAQ;AAEjC,OAAO,SAASC,IAAkBC,IAA0B,EAAEC,KAAQ,EAAEC,GAAe,EAAyB;IAC9G,QAAQ;IACR,wDAAwD;IACxD,qDAAqD;IACrD,IAAIT,OAAUQ,QAAQ;QACpB,OAAOP,4BAA4BE,0BAA0BI,MAAMC,QAAQ,IAAI,EAAEC;IACnF,CAAC;IACD,IAAIT,OAAUO,OAAO;QACnB,OAAON,4BAA4BM,MAAMC,OAAOC;IAClD,CAAC;IACD,OAAOL,QAAQE,GAAG,CAACC,MAAMC,OAAOC;AAClC,CAAC;AAED,OAAO,SAASC,KAAmBH,IAA0B,EAAEC,KAAQ,EAAEC,GAAe,EAAyB;IAC/G,QAAQ;IACR,wDAAwD;IACxD,qDAAqD;IACrD,IAAIT,OAAUQ,QAAQ;QACpB,OAAON,2BAA2BC,0BAA0BI,MAAMC,QAAQ,IAAI,EAAEC;IAClF,CAAC;IACD,IAAIT,OAAUO,OAAO;QACnB,OAAOL,2BAA2BK,MAAMC,OAAOC;IACjD,CAAC;IACD,OAAOL,QAAQM,IAAI,CAACH,MAAMC,OAAOC;AACnC,CAAC"}
1
+ {"version":3,"sources":["jsx-runtime.ts"],"sourcesContent":["import { Runtime } from './utils/Runtime';\nimport { createJSX } from './jsx/createJSX';\n\nexport { Fragment } from 'react';\n\nexport const jsx = createJSX(Runtime.jsx);\nexport const jsxs = createJSX(Runtime.jsxs);\n"],"names":["Runtime","createJSX","Fragment","jsx","jsxs"],"mappings":"AAAA,SAASA,OAAO,QAAQ,kBAAkB;AAC1C,SAASC,SAAS,QAAQ,kBAAkB;AAE5C,SAASC,QAAQ,QAAQ,QAAQ;AAEjC,OAAO,MAAMC,MAAMF,UAAUD,QAAQG,GAAG,EAAE;AAC1C,OAAO,MAAMC,OAAOH,UAAUD,QAAQI,IAAI,EAAE"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "createJSX", {
6
+ enumerable: true,
7
+ get: ()=>createJSX
8
+ });
9
+ const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
+ const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _reactUtilities = require("@fluentui/react-utilities");
12
+ const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent");
13
+ const _createCompatSlotComponent = require("../utils/createCompatSlotComponent");
14
+ const createJSX = (runtime)=>{
15
+ const jsxFromSlotComponent = (type, overrideProps, key, source, self)=>{
16
+ const { elementType , renderFunction , props: slotProps } = (0, _getMetadataFromSlotComponent.getMetadataFromSlotComponent)(type);
17
+ const props = {
18
+ ...slotProps,
19
+ ...overrideProps
20
+ };
21
+ if (renderFunction) {
22
+ return runtime(_react.Fragment, {
23
+ children: renderFunction(elementType, props)
24
+ }, key, source, self);
25
+ }
26
+ return runtime(elementType, props, key, source, self);
27
+ };
28
+ return (type, overrideProps, key, source, self)=>{
29
+ // TODO:
30
+ // this is for backwards compatibility with getSlotsNext
31
+ // it should be removed once getSlotsNext is obsolete
32
+ if ((0, _reactUtilities.isSlot)(overrideProps)) {
33
+ return jsxFromSlotComponent((0, _createCompatSlotComponent.createCompatSlotComponent)(type, overrideProps), null, key, source, self);
34
+ }
35
+ if ((0, _reactUtilities.isSlot)(type)) {
36
+ return jsxFromSlotComponent(type, overrideProps, key, source, self);
37
+ }
38
+ return runtime(type, overrideProps, key, source, self);
39
+ };
40
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["createJSX.js"],"sourcesContent":["import * as React from 'react';\nimport { isSlot } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { createCompatSlotComponent } from '../utils/createCompatSlotComponent';\n/**\n * @internal\n */ export const createJSX = (runtime)=>{\n const jsxFromSlotComponent = (type, overrideProps, key, source, self)=>{\n const { elementType , renderFunction , props: slotProps } = getMetadataFromSlotComponent(type);\n const props = {\n ...slotProps,\n ...overrideProps\n };\n if (renderFunction) {\n return runtime(React.Fragment, {\n children: renderFunction(elementType, props)\n }, key, source, self);\n }\n return runtime(elementType, props, key, source, self);\n };\n return (type, overrideProps, key, source, self)=>{\n // TODO:\n // this is for backwards compatibility with getSlotsNext\n // it should be removed once getSlotsNext is obsolete\n if (isSlot(overrideProps)) {\n return jsxFromSlotComponent(createCompatSlotComponent(type, overrideProps), null, key, source, self);\n }\n if (isSlot(type)) {\n return jsxFromSlotComponent(type, overrideProps, key, source, self);\n }\n return runtime(type, overrideProps, key, source, self);\n };\n};\n"],"names":["createJSX","runtime","jsxFromSlotComponent","type","overrideProps","key","source","self","elementType","renderFunction","props","slotProps","getMetadataFromSlotComponent","React","Fragment","children","isSlot","createCompatSlotComponent"],"mappings":";;;;+BAMiBA;;aAAAA;;;6DANM;gCACA;8CACsB;2CACH;AAG/B,MAAMA,YAAY,CAACC,UAAU;IACpC,MAAMC,uBAAuB,CAACC,MAAMC,eAAeC,KAAKC,QAAQC,OAAO;QACnE,MAAM,EAAEC,YAAW,EAAGC,eAAc,EAAGC,OAAOC,UAAS,EAAG,GAAGC,IAAAA,0DAA4B,EAACT;QAC1F,MAAMO,QAAQ;YACV,GAAGC,SAAS;YACZ,GAAGP,aAAa;QACpB;QACA,IAAIK,gBAAgB;YAChB,OAAOR,QAAQY,OAAMC,QAAQ,EAAE;gBAC3BC,UAAUN,eAAeD,aAAaE;YAC1C,GAAGL,KAAKC,QAAQC;QACpB,CAAC;QACD,OAAON,QAAQO,aAAaE,OAAOL,KAAKC,QAAQC;IACpD;IACA,OAAO,CAACJ,MAAMC,eAAeC,KAAKC,QAAQC,OAAO;QAC7C,QAAQ;QACR,wDAAwD;QACxD,qDAAqD;QACrD,IAAIS,IAAAA,sBAAM,EAACZ,gBAAgB;YACvB,OAAOF,qBAAqBe,IAAAA,oDAAyB,EAACd,MAAMC,gBAAgB,IAAI,EAAEC,KAAKC,QAAQC;QACnG,CAAC;QACD,IAAIS,IAAAA,sBAAM,EAACb,OAAO;YACd,OAAOD,qBAAqBC,MAAMC,eAAeC,KAAKC,QAAQC;QAClE,CAAC;QACD,OAAON,QAAQE,MAAMC,eAAeC,KAAKC,QAAQC;IACrD;AACJ"}
@@ -12,20 +12,7 @@ _export(exports, {
12
12
  Fragment: ()=>_react.Fragment,
13
13
  jsxDEV: ()=>jsxDEV
14
14
  });
15
- const _reactUtilities = require("@fluentui/react-utilities");
16
- const _jsxDEVFromSlotComponent = require("./jsx/jsxDEVFromSlotComponent");
17
- const _createCompatSlotComponent = require("./utils/createCompatSlotComponent");
18
15
  const _devRuntime = require("./utils/DevRuntime");
16
+ const _createJSX = require("./jsx/createJSX");
19
17
  const _react = require("react");
20
- function jsxDEV(type, props, key, source, self) {
21
- // TODO:
22
- // this is for backwards compatibility with getSlotsNext
23
- // it should be removed once getSlotsNext is obsolete
24
- if ((0, _reactUtilities.isSlot)(props)) {
25
- return (0, _jsxDEVFromSlotComponent.jsxDEVFromSlotComponent)((0, _createCompatSlotComponent.createCompatSlotComponent)(type, props), null, key, source, self);
26
- }
27
- if ((0, _reactUtilities.isSlot)(type)) {
28
- return (0, _jsxDEVFromSlotComponent.jsxDEVFromSlotComponent)(type, props, key, source, self);
29
- }
30
- return _devRuntime.DevRuntime.jsxDEV(type, props, key, source, self);
31
- }
18
+ const jsxDEV = (0, _createJSX.createJSX)(_devRuntime.DevRuntime.jsxDEV);
@@ -1 +1 @@
1
- {"version":3,"sources":["jsx-dev-runtime.js"],"sourcesContent":["import { isSlot } from '@fluentui/react-utilities';\nimport { jsxDEVFromSlotComponent } from './jsx/jsxDEVFromSlotComponent';\nimport { createCompatSlotComponent } from './utils/createCompatSlotComponent';\nimport { DevRuntime } from './utils/DevRuntime';\nexport { Fragment } from 'react';\nexport function jsxDEV(type, props, key, source, self) {\n // TODO:\n // this is for backwards compatibility with getSlotsNext\n // it should be removed once getSlotsNext is obsolete\n if (isSlot(props)) {\n return jsxDEVFromSlotComponent(createCompatSlotComponent(type, props), null, key, source, self);\n }\n if (isSlot(type)) {\n return jsxDEVFromSlotComponent(type, props, key, source, self);\n }\n return DevRuntime.jsxDEV(type, props, key, source, self);\n}\n"],"names":["Fragment","jsxDEV","type","props","key","source","self","isSlot","jsxDEVFromSlotComponent","createCompatSlotComponent","DevRuntime"],"mappings":";;;;;;;;;;;IAISA,QAAQ,MAARA,eAAQ;IACDC,MAAM,MAANA;;gCALO;yCACiB;2CACE;4BACf;uBACF;AAClB,SAASA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,GAAG,EAAEC,MAAM,EAAEC,IAAI,EAAE;IACnD,QAAQ;IACR,wDAAwD;IACxD,qDAAqD;IACrD,IAAIC,IAAAA,sBAAM,EAACJ,QAAQ;QACf,OAAOK,IAAAA,gDAAuB,EAACC,IAAAA,oDAAyB,EAACP,MAAMC,QAAQ,IAAI,EAAEC,KAAKC,QAAQC;IAC9F,CAAC;IACD,IAAIC,IAAAA,sBAAM,EAACL,OAAO;QACd,OAAOM,IAAAA,gDAAuB,EAACN,MAAMC,OAAOC,KAAKC,QAAQC;IAC7D,CAAC;IACD,OAAOI,sBAAU,CAACT,MAAM,CAACC,MAAMC,OAAOC,KAAKC,QAAQC;AACvD"}
1
+ {"version":3,"sources":["jsx-dev-runtime.js"],"sourcesContent":["import { DevRuntime } from './utils/DevRuntime';\nimport { createJSX } from './jsx/createJSX';\nexport { Fragment } from 'react';\nexport const jsxDEV = createJSX(DevRuntime.jsxDEV);\n"],"names":["Fragment","jsxDEV","createJSX","DevRuntime"],"mappings":";;;;;;;;;;;IAESA,QAAQ,MAARA,eAAQ;IACJC,MAAM,MAANA;;4BAHc;2BACD;uBACD;AAClB,MAAMA,SAASC,IAAAA,oBAAS,EAACC,sBAAU,CAACF,MAAM"}
@@ -13,33 +13,8 @@ _export(exports, {
13
13
  jsx: ()=>jsx,
14
14
  jsxs: ()=>jsxs
15
15
  });
16
- const _reactUtilities = require("@fluentui/react-utilities");
17
- const _jsxDynamicFromSlotComponent = require("./jsx/jsxDynamicFromSlotComponent");
18
- const _jsxStaticFromSlotComponent = require("./jsx/jsxStaticFromSlotComponent");
19
- const _createCompatSlotComponent = require("./utils/createCompatSlotComponent");
20
16
  const _runtime = require("./utils/Runtime");
17
+ const _createJSX = require("./jsx/createJSX");
21
18
  const _react = require("react");
22
- function jsx(type, props, key) {
23
- // TODO:
24
- // this is for backwards compatibility with getSlotsNext
25
- // it should be removed once getSlotsNext is obsolete
26
- if ((0, _reactUtilities.isSlot)(props)) {
27
- return (0, _jsxDynamicFromSlotComponent.jsxDynamicFromSlotComponent)((0, _createCompatSlotComponent.createCompatSlotComponent)(type, props), null, key);
28
- }
29
- if ((0, _reactUtilities.isSlot)(type)) {
30
- return (0, _jsxDynamicFromSlotComponent.jsxDynamicFromSlotComponent)(type, props, key);
31
- }
32
- return _runtime.Runtime.jsx(type, props, key);
33
- }
34
- function jsxs(type, props, key) {
35
- // TODO:
36
- // this is for backwards compatibility with getSlotsNext
37
- // it should be removed once getSlotsNext is obsolete
38
- if ((0, _reactUtilities.isSlot)(props)) {
39
- return (0, _jsxStaticFromSlotComponent.jsxStaticFromSlotComponent)((0, _createCompatSlotComponent.createCompatSlotComponent)(type, props), null, key);
40
- }
41
- if ((0, _reactUtilities.isSlot)(type)) {
42
- return (0, _jsxStaticFromSlotComponent.jsxStaticFromSlotComponent)(type, props, key);
43
- }
44
- return _runtime.Runtime.jsxs(type, props, key);
45
- }
19
+ const jsx = (0, _createJSX.createJSX)(_runtime.Runtime.jsx);
20
+ const jsxs = (0, _createJSX.createJSX)(_runtime.Runtime.jsxs);
@@ -1 +1 @@
1
- {"version":3,"sources":["jsx-runtime.js"],"sourcesContent":["import { isSlot } from '@fluentui/react-utilities';\nimport { jsxDynamicFromSlotComponent } from './jsx/jsxDynamicFromSlotComponent';\nimport { jsxStaticFromSlotComponent } from './jsx/jsxStaticFromSlotComponent';\nimport { createCompatSlotComponent } from './utils/createCompatSlotComponent';\nimport { Runtime } from './utils/Runtime';\nexport { Fragment } from 'react';\nexport function jsx(type, props, key) {\n // TODO:\n // this is for backwards compatibility with getSlotsNext\n // it should be removed once getSlotsNext is obsolete\n if (isSlot(props)) {\n return jsxDynamicFromSlotComponent(createCompatSlotComponent(type, props), null, key);\n }\n if (isSlot(type)) {\n return jsxDynamicFromSlotComponent(type, props, key);\n }\n return Runtime.jsx(type, props, key);\n}\nexport function jsxs(type, props, key) {\n // TODO:\n // this is for backwards compatibility with getSlotsNext\n // it should be removed once getSlotsNext is obsolete\n if (isSlot(props)) {\n return jsxStaticFromSlotComponent(createCompatSlotComponent(type, props), null, key);\n }\n if (isSlot(type)) {\n return jsxStaticFromSlotComponent(type, props, key);\n }\n return Runtime.jsxs(type, props, key);\n}\n"],"names":["Fragment","jsx","jsxs","type","props","key","isSlot","jsxDynamicFromSlotComponent","createCompatSlotComponent","Runtime","jsxStaticFromSlotComponent"],"mappings":";;;;;;;;;;;IAKSA,QAAQ,MAARA,eAAQ;IACDC,GAAG,MAAHA;IAYAC,IAAI,MAAJA;;gCAlBO;6CACqB;4CACD;2CACD;yBAClB;uBACC;AAClB,SAASD,IAAIE,IAAI,EAAEC,KAAK,EAAEC,GAAG,EAAE;IAClC,QAAQ;IACR,wDAAwD;IACxD,qDAAqD;IACrD,IAAIC,IAAAA,sBAAM,EAACF,QAAQ;QACf,OAAOG,IAAAA,wDAA2B,EAACC,IAAAA,oDAAyB,EAACL,MAAMC,QAAQ,IAAI,EAAEC;IACrF,CAAC;IACD,IAAIC,IAAAA,sBAAM,EAACH,OAAO;QACd,OAAOI,IAAAA,wDAA2B,EAACJ,MAAMC,OAAOC;IACpD,CAAC;IACD,OAAOI,gBAAO,CAACR,GAAG,CAACE,MAAMC,OAAOC;AACpC;AACO,SAASH,KAAKC,IAAI,EAAEC,KAAK,EAAEC,GAAG,EAAE;IACnC,QAAQ;IACR,wDAAwD;IACxD,qDAAqD;IACrD,IAAIC,IAAAA,sBAAM,EAACF,QAAQ;QACf,OAAOM,IAAAA,sDAA0B,EAACF,IAAAA,oDAAyB,EAACL,MAAMC,QAAQ,IAAI,EAAEC;IACpF,CAAC;IACD,IAAIC,IAAAA,sBAAM,EAACH,OAAO;QACd,OAAOO,IAAAA,sDAA0B,EAACP,MAAMC,OAAOC;IACnD,CAAC;IACD,OAAOI,gBAAO,CAACP,IAAI,CAACC,MAAMC,OAAOC;AACrC"}
1
+ {"version":3,"sources":["jsx-runtime.js"],"sourcesContent":["import { Runtime } from './utils/Runtime';\nimport { createJSX } from './jsx/createJSX';\nexport { Fragment } from 'react';\nexport const jsx = createJSX(Runtime.jsx);\nexport const jsxs = createJSX(Runtime.jsxs);\n"],"names":["Fragment","jsx","jsxs","createJSX","Runtime"],"mappings":";;;;;;;;;;;IAESA,QAAQ,MAARA,eAAQ;IACJC,GAAG,MAAHA;IACAC,IAAI,MAAJA;;yBAJW;2BACE;uBACD;AAClB,MAAMD,MAAME,IAAAA,oBAAS,EAACC,gBAAO,CAACH,GAAG;AACjC,MAAMC,OAAOC,IAAAA,oBAAS,EAACC,gBAAO,CAACF,IAAI"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-jsx-runtime",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "description": "Custom JSX runtime for @fluentui/react-components",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -20,7 +20,8 @@
20
20
  "test": "jest --passWithNoTests",
21
21
  "type-check": "tsc -b tsconfig.json",
22
22
  "generate-api": "just-scripts generate-api",
23
- "test-ssr": "test-ssr \"./stories/**/*.stories.tsx\""
23
+ "test-ssr": "test-ssr \"./stories/**/*.stories.tsx\"",
24
+ "bundle-size": "monosize measure"
24
25
  },
25
26
  "devDependencies": {
26
27
  "@fluentui/eslint-plugin": "*",
@@ -30,7 +31,7 @@
30
31
  "@fluentui/scripts-tasks": "*"
31
32
  },
32
33
  "dependencies": {
33
- "@fluentui/react-utilities": "^9.11.1",
34
+ "@fluentui/react-utilities": "^9.12.0",
34
35
  "@swc/helpers": "^0.4.14"
35
36
  },
36
37
  "peerDependencies": {
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';
3
- import { DevRuntime } from '../utils/DevRuntime';
4
- export function jsxDEVFromSlotComponent(type, overrideProps, key, source, self) {
5
- const { elementType , renderFunction , props: slotProps } = getMetadataFromSlotComponent(type);
6
- const props = {
7
- ...slotProps,
8
- ...overrideProps
9
- };
10
- if (renderFunction) {
11
- return DevRuntime.jsxDEV(React.Fragment, {
12
- children: renderFunction(elementType, props)
13
- }, key, source, self);
14
- }
15
- return DevRuntime.jsxDEV(elementType, props, key, source, self);
16
- }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["jsxDEVFromSlotComponent.ts"],"sourcesContent":["import * as React from 'react';\nimport type { SlotComponentType, UnknownSlotProps } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { DevRuntime } from '../utils/DevRuntime';\n\nexport function jsxDEVFromSlotComponent<Props extends UnknownSlotProps>(\n type: SlotComponentType<Props>,\n overrideProps: Props | null,\n key?: React.Key,\n source?: unknown,\n self?: unknown,\n): React.ReactElement<Props> {\n const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);\n\n const props: Props = { ...slotProps, ...overrideProps };\n\n if (renderFunction) {\n return DevRuntime.jsxDEV(\n React.Fragment,\n {\n children: renderFunction(elementType, props),\n },\n key,\n source,\n self,\n ) as React.ReactElement<Props>;\n }\n\n return DevRuntime.jsxDEV(elementType, props, key, source, self);\n}\n"],"names":["React","getMetadataFromSlotComponent","DevRuntime","jsxDEVFromSlotComponent","type","overrideProps","key","source","self","elementType","renderFunction","props","slotProps","jsxDEV","Fragment","children"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,4BAA4B,QAAQ,wCAAwC;AACrF,SAASC,UAAU,QAAQ,sBAAsB;AAEjD,OAAO,SAASC,wBACdC,IAA8B,EAC9BC,aAA2B,EAC3BC,GAAe,EACfC,MAAgB,EAChBC,IAAc,EACa;IAC3B,MAAM,EAAEC,YAAW,EAAEC,eAAc,EAAEC,OAAOC,UAAS,EAAE,GAAGX,6BAA6BG;IAEvF,MAAMO,QAAe;QAAE,GAAGC,SAAS;QAAE,GAAGP,aAAa;IAAC;IAEtD,IAAIK,gBAAgB;QAClB,OAAOR,WAAWW,MAAM,CACtBb,MAAMc,QAAQ,EACd;YACEC,UAAUL,eAAeD,aAAaE;QACxC,GACAL,KACAC,QACAC;IAEJ,CAAC;IAED,OAAON,WAAWW,MAAM,CAACJ,aAAaE,OAAOL,KAAKC,QAAQC;AAC5D,CAAC"}
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- import { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';
3
- import { Runtime } from '../utils/Runtime';
4
- /**
5
- * @internal
6
- */ export function jsxDynamicFromSlotComponent(type, overrideProps, key) {
7
- const { elementType , renderFunction , props: slotProps } = getMetadataFromSlotComponent(type);
8
- const props = {
9
- ...slotProps,
10
- ...overrideProps
11
- };
12
- if (renderFunction) {
13
- return Runtime.jsx(React.Fragment, {
14
- children: renderFunction(elementType, props)
15
- }, key);
16
- }
17
- return Runtime.jsx(elementType, props, key);
18
- }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["jsxDynamicFromSlotComponent.ts"],"sourcesContent":["import * as React from 'react';\nimport type { SlotComponentType, UnknownSlotProps } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { Runtime } from '../utils/Runtime';\n\n/**\n * @internal\n */\nexport function jsxDynamicFromSlotComponent<Props extends UnknownSlotProps>(\n type: SlotComponentType<Props>,\n overrideProps: Props | null,\n key?: React.Key,\n): React.ReactElement<Props> {\n const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);\n\n const props: Props = { ...slotProps, ...overrideProps };\n\n if (renderFunction) {\n return Runtime.jsx(\n React.Fragment,\n {\n children: renderFunction(elementType, props),\n },\n key,\n ) as React.ReactElement<Props>;\n }\n\n return Runtime.jsx(elementType, props, key);\n}\n"],"names":["React","getMetadataFromSlotComponent","Runtime","jsxDynamicFromSlotComponent","type","overrideProps","key","elementType","renderFunction","props","slotProps","jsx","Fragment","children"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,4BAA4B,QAAQ,wCAAwC;AACrF,SAASC,OAAO,QAAQ,mBAAmB;AAE3C;;CAEC,GACD,OAAO,SAASC,4BACdC,IAA8B,EAC9BC,aAA2B,EAC3BC,GAAe,EACY;IAC3B,MAAM,EAAEC,YAAW,EAAEC,eAAc,EAAEC,OAAOC,UAAS,EAAE,GAAGT,6BAA6BG;IAEvF,MAAMK,QAAe;QAAE,GAAGC,SAAS;QAAE,GAAGL,aAAa;IAAC;IAEtD,IAAIG,gBAAgB;QAClB,OAAON,QAAQS,GAAG,CAChBX,MAAMY,QAAQ,EACd;YACEC,UAAUL,eAAeD,aAAaE;QACxC,GACAH;IAEJ,CAAC;IAED,OAAOJ,QAAQS,GAAG,CAACJ,aAAaE,OAAOH;AACzC,CAAC"}
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- import { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';
3
- import { Runtime } from '../utils/Runtime';
4
- /**
5
- * @internal
6
- */ export function jsxStaticFromSlotComponent(type, overrideProps, key) {
7
- const { elementType , renderFunction , props: slotProps } = getMetadataFromSlotComponent(type);
8
- const props = {
9
- ...slotProps,
10
- ...overrideProps
11
- };
12
- if (renderFunction) {
13
- return Runtime.jsxs(React.Fragment, {
14
- children: renderFunction(elementType, props)
15
- }, key);
16
- }
17
- return Runtime.jsxs(elementType, props, key);
18
- }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["jsxStaticFromSlotComponent.ts"],"sourcesContent":["import * as React from 'react';\nimport type { SlotComponentType, UnknownSlotProps } from '@fluentui/react-utilities';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { Runtime } from '../utils/Runtime';\n\n/**\n * @internal\n */\nexport function jsxStaticFromSlotComponent<Props extends UnknownSlotProps>(\n type: SlotComponentType<Props>,\n overrideProps: Props | null,\n key?: React.Key,\n): React.ReactElement<Props> {\n const { elementType, renderFunction, props: slotProps } = getMetadataFromSlotComponent(type);\n\n const props: Props = { ...slotProps, ...overrideProps };\n\n if (renderFunction) {\n return Runtime.jsxs(\n React.Fragment,\n {\n children: renderFunction(elementType, props),\n },\n key,\n ) as React.ReactElement<Props>;\n }\n\n return Runtime.jsxs(elementType, props, key);\n}\n"],"names":["React","getMetadataFromSlotComponent","Runtime","jsxStaticFromSlotComponent","type","overrideProps","key","elementType","renderFunction","props","slotProps","jsxs","Fragment","children"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,4BAA4B,QAAQ,wCAAwC;AACrF,SAASC,OAAO,QAAQ,mBAAmB;AAE3C;;CAEC,GACD,OAAO,SAASC,2BACdC,IAA8B,EAC9BC,aAA2B,EAC3BC,GAAe,EACY;IAC3B,MAAM,EAAEC,YAAW,EAAEC,eAAc,EAAEC,OAAOC,UAAS,EAAE,GAAGT,6BAA6BG;IAEvF,MAAMK,QAAe;QAAE,GAAGC,SAAS;QAAE,GAAGL,aAAa;IAAC;IAEtD,IAAIG,gBAAgB;QAClB,OAAON,QAAQS,IAAI,CACjBX,MAAMY,QAAQ,EACd;YACEC,UAAUL,eAAeD,aAAaE;QACxC,GACAH;IAEJ,CAAC;IAED,OAAOJ,QAAQS,IAAI,CAACJ,aAAaE,OAAOH;AAC1C,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "jsxDEVFromSlotComponent", {
6
- enumerable: true,
7
- get: ()=>jsxDEVFromSlotComponent
8
- });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent");
12
- const _devRuntime = require("../utils/DevRuntime");
13
- function jsxDEVFromSlotComponent(type, overrideProps, key, source, self) {
14
- const { elementType , renderFunction , props: slotProps } = (0, _getMetadataFromSlotComponent.getMetadataFromSlotComponent)(type);
15
- const props = {
16
- ...slotProps,
17
- ...overrideProps
18
- };
19
- if (renderFunction) {
20
- return _devRuntime.DevRuntime.jsxDEV(_react.Fragment, {
21
- children: renderFunction(elementType, props)
22
- }, key, source, self);
23
- }
24
- return _devRuntime.DevRuntime.jsxDEV(elementType, props, key, source, self);
25
- }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["jsxDEVFromSlotComponent.js"],"sourcesContent":["import * as React from 'react';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { DevRuntime } from '../utils/DevRuntime';\nexport function jsxDEVFromSlotComponent(type, overrideProps, key, source, self) {\n const { elementType , renderFunction , props: slotProps } = getMetadataFromSlotComponent(type);\n const props = {\n ...slotProps,\n ...overrideProps\n };\n if (renderFunction) {\n return DevRuntime.jsxDEV(React.Fragment, {\n children: renderFunction(elementType, props)\n }, key, source, self);\n }\n return DevRuntime.jsxDEV(elementType, props, key, source, self);\n}\n"],"names":["jsxDEVFromSlotComponent","type","overrideProps","key","source","self","elementType","renderFunction","props","slotProps","getMetadataFromSlotComponent","DevRuntime","jsxDEV","React","Fragment","children"],"mappings":";;;;+BAGgBA;;aAAAA;;;6DAHO;8CACsB;4BAClB;AACpB,SAASA,wBAAwBC,IAAI,EAAEC,aAAa,EAAEC,GAAG,EAAEC,MAAM,EAAEC,IAAI,EAAE;IAC5E,MAAM,EAAEC,YAAW,EAAGC,eAAc,EAAGC,OAAOC,UAAS,EAAG,GAAGC,IAAAA,0DAA4B,EAACT;IAC1F,MAAMO,QAAQ;QACV,GAAGC,SAAS;QACZ,GAAGP,aAAa;IACpB;IACA,IAAIK,gBAAgB;QAChB,OAAOI,sBAAU,CAACC,MAAM,CAACC,OAAMC,QAAQ,EAAE;YACrCC,UAAUR,eAAeD,aAAaE;QAC1C,GAAGL,KAAKC,QAAQC;IACpB,CAAC;IACD,OAAOM,sBAAU,CAACC,MAAM,CAACN,aAAaE,OAAOL,KAAKC,QAAQC;AAC9D"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "jsxDynamicFromSlotComponent", {
6
- enumerable: true,
7
- get: ()=>jsxDynamicFromSlotComponent
8
- });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent");
12
- const _runtime = require("../utils/Runtime");
13
- function jsxDynamicFromSlotComponent(type, overrideProps, key) {
14
- const { elementType , renderFunction , props: slotProps } = (0, _getMetadataFromSlotComponent.getMetadataFromSlotComponent)(type);
15
- const props = {
16
- ...slotProps,
17
- ...overrideProps
18
- };
19
- if (renderFunction) {
20
- return _runtime.Runtime.jsx(_react.Fragment, {
21
- children: renderFunction(elementType, props)
22
- }, key);
23
- }
24
- return _runtime.Runtime.jsx(elementType, props, key);
25
- }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["jsxDynamicFromSlotComponent.js"],"sourcesContent":["import * as React from 'react';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { Runtime } from '../utils/Runtime';\n/**\n * @internal\n */ export function jsxDynamicFromSlotComponent(type, overrideProps, key) {\n const { elementType , renderFunction , props: slotProps } = getMetadataFromSlotComponent(type);\n const props = {\n ...slotProps,\n ...overrideProps\n };\n if (renderFunction) {\n return Runtime.jsx(React.Fragment, {\n children: renderFunction(elementType, props)\n }, key);\n }\n return Runtime.jsx(elementType, props, key);\n}\n"],"names":["jsxDynamicFromSlotComponent","type","overrideProps","key","elementType","renderFunction","props","slotProps","getMetadataFromSlotComponent","Runtime","jsx","React","Fragment","children"],"mappings":";;;;+BAKoBA;;aAAAA;;;6DALG;8CACsB;yBACrB;AAGb,SAASA,4BAA4BC,IAAI,EAAEC,aAAa,EAAEC,GAAG,EAAE;IACtE,MAAM,EAAEC,YAAW,EAAGC,eAAc,EAAGC,OAAOC,UAAS,EAAG,GAAGC,IAAAA,0DAA4B,EAACP;IAC1F,MAAMK,QAAQ;QACV,GAAGC,SAAS;QACZ,GAAGL,aAAa;IACpB;IACA,IAAIG,gBAAgB;QAChB,OAAOI,gBAAO,CAACC,GAAG,CAACC,OAAMC,QAAQ,EAAE;YAC/BC,UAAUR,eAAeD,aAAaE;QAC1C,GAAGH;IACP,CAAC;IACD,OAAOM,gBAAO,CAACC,GAAG,CAACN,aAAaE,OAAOH;AAC3C"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "jsxStaticFromSlotComponent", {
6
- enumerable: true,
7
- get: ()=>jsxStaticFromSlotComponent
8
- });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _getMetadataFromSlotComponent = require("../utils/getMetadataFromSlotComponent");
12
- const _runtime = require("../utils/Runtime");
13
- function jsxStaticFromSlotComponent(type, overrideProps, key) {
14
- const { elementType , renderFunction , props: slotProps } = (0, _getMetadataFromSlotComponent.getMetadataFromSlotComponent)(type);
15
- const props = {
16
- ...slotProps,
17
- ...overrideProps
18
- };
19
- if (renderFunction) {
20
- return _runtime.Runtime.jsxs(_react.Fragment, {
21
- children: renderFunction(elementType, props)
22
- }, key);
23
- }
24
- return _runtime.Runtime.jsxs(elementType, props, key);
25
- }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["jsxStaticFromSlotComponent.js"],"sourcesContent":["import * as React from 'react';\nimport { getMetadataFromSlotComponent } from '../utils/getMetadataFromSlotComponent';\nimport { Runtime } from '../utils/Runtime';\n/**\n * @internal\n */ export function jsxStaticFromSlotComponent(type, overrideProps, key) {\n const { elementType , renderFunction , props: slotProps } = getMetadataFromSlotComponent(type);\n const props = {\n ...slotProps,\n ...overrideProps\n };\n if (renderFunction) {\n return Runtime.jsxs(React.Fragment, {\n children: renderFunction(elementType, props)\n }, key);\n }\n return Runtime.jsxs(elementType, props, key);\n}\n"],"names":["jsxStaticFromSlotComponent","type","overrideProps","key","elementType","renderFunction","props","slotProps","getMetadataFromSlotComponent","Runtime","jsxs","React","Fragment","children"],"mappings":";;;;+BAKoBA;;aAAAA;;;6DALG;8CACsB;yBACrB;AAGb,SAASA,2BAA2BC,IAAI,EAAEC,aAAa,EAAEC,GAAG,EAAE;IACrE,MAAM,EAAEC,YAAW,EAAGC,eAAc,EAAGC,OAAOC,UAAS,EAAG,GAAGC,IAAAA,0DAA4B,EAACP;IAC1F,MAAMK,QAAQ;QACV,GAAGC,SAAS;QACZ,GAAGL,aAAa;IACpB;IACA,IAAIG,gBAAgB;QAChB,OAAOI,gBAAO,CAACC,IAAI,CAACC,OAAMC,QAAQ,EAAE;YAChCC,UAAUR,eAAeD,aAAaE;QAC1C,GAAGH;IACP,CAAC;IACD,OAAOM,gBAAO,CAACC,IAAI,CAACN,aAAaE,OAAOH;AAC5C"}