@fluentui/react-tooltip 9.2.9 → 9.2.10
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +22 -1
- package/CHANGELOG.md +12 -2
- package/lib/components/Tooltip/renderTooltip.js +6 -5
- package/lib/components/Tooltip/renderTooltip.js.map +1 -1
- package/lib-commonjs/components/Tooltip/renderTooltip.js +5 -4
- package/lib-commonjs/components/Tooltip/renderTooltip.js.map +1 -1
- package/package.json +2 -1
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,28 @@
|
|
2
2
|
"name": "@fluentui/react-tooltip",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "Mon,
|
5
|
+
"date": "Mon, 24 Apr 2023 08:09:19 GMT",
|
6
|
+
"tag": "@fluentui/react-tooltip_v9.2.10",
|
7
|
+
"version": "9.2.10",
|
8
|
+
"comments": {
|
9
|
+
"patch": [
|
10
|
+
{
|
11
|
+
"author": "bernardo.sunderhus@gmail.com",
|
12
|
+
"package": "@fluentui/react-tooltip",
|
13
|
+
"commit": "cf79cc20319c377dda47c0a2b135eeb1b5b7efdf",
|
14
|
+
"comment": "chore: adopt custom JSX pragma"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "beachball",
|
18
|
+
"package": "@fluentui/react-tooltip",
|
19
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.2",
|
20
|
+
"commit": "948b5bf9871303d1742f1b9a17a3bd4006ce2fea"
|
21
|
+
}
|
22
|
+
]
|
23
|
+
}
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"date": "Mon, 17 Apr 2023 17:54:02 GMT",
|
6
27
|
"tag": "@fluentui/react-tooltip_v9.2.9",
|
7
28
|
"version": "9.2.9",
|
8
29
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,22 @@
|
|
1
1
|
# Change Log - @fluentui/react-tooltip
|
2
2
|
|
3
|
-
This log was last generated on Mon,
|
3
|
+
This log was last generated on Mon, 24 Apr 2023 08:09:19 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.2.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.2.10)
|
8
|
+
|
9
|
+
Mon, 24 Apr 2023 08:09:19 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.2.9..@fluentui/react-tooltip_v9.2.10)
|
11
|
+
|
12
|
+
### Patches
|
13
|
+
|
14
|
+
- chore: adopt custom JSX pragma ([PR #27630](https://github.com/microsoft/fluentui/pull/27630) by bernardo.sunderhus@gmail.com)
|
15
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.2 ([PR #27632](https://github.com/microsoft/fluentui/pull/27632) by beachball)
|
16
|
+
|
7
17
|
## [9.2.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.2.9)
|
8
18
|
|
9
|
-
Mon, 17 Apr 2023 17:
|
19
|
+
Mon, 17 Apr 2023 17:54:02 GMT
|
10
20
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.2.8..@fluentui/react-tooltip_v9.2.9)
|
11
21
|
|
12
22
|
### Patches
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import * as React from 'react';
|
1
|
+
/** @jsxRuntime classic */ /** @jsxFrag React.Fragment */ /** @jsx createElement */import * as React from 'react';
|
2
2
|
import { Portal } from '@fluentui/react-portal';
|
3
|
-
import {
|
3
|
+
import { createElement } from '@fluentui/react-jsx-runtime';
|
4
|
+
import { getSlotsNext } from '@fluentui/react-utilities';
|
4
5
|
/**
|
5
6
|
* Render the final JSX of Tooltip
|
6
7
|
*/
|
@@ -8,10 +9,10 @@ export const renderTooltip_unstable = state => {
|
|
8
9
|
const {
|
9
10
|
slots,
|
10
11
|
slotProps
|
11
|
-
} =
|
12
|
-
return /*#__PURE__*/
|
12
|
+
} = getSlotsNext(state);
|
13
|
+
return /*#__PURE__*/createElement(React.Fragment, null, state.children, state.shouldRenderTooltip && /*#__PURE__*/createElement(Portal, {
|
13
14
|
mountNode: state.mountNode
|
14
|
-
}, /*#__PURE__*/
|
15
|
+
}, /*#__PURE__*/createElement(slots.content, slotProps.content, state.withArrow && /*#__PURE__*/createElement("div", {
|
15
16
|
ref: state.arrowRef,
|
16
17
|
className: state.arrowClassName
|
17
18
|
}), state.content.children)));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","Portal","
|
1
|
+
{"version":3,"names":["React","Portal","createElement","getSlotsNext","renderTooltip_unstable","state","slots","slotProps","Fragment","children","shouldRenderTooltip","mountNode","content","withArrow","ref","arrowRef","className","arrowClassName"],"sources":["../../../src/components/Tooltip/renderTooltip.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsxFrag React.Fragment */\n/** @jsx createElement */\n\nimport * as React from 'react';\nimport { Portal } from '@fluentui/react-portal';\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport { getSlotsNext } from '@fluentui/react-utilities';\nimport type { TooltipSlots, TooltipState } from './Tooltip.types';\n\n/**\n * Render the final JSX of Tooltip\n */\nexport const renderTooltip_unstable = (state: TooltipState) => {\n const { slots, slotProps } = getSlotsNext<TooltipSlots>(state);\n\n return (\n <>\n {state.children}\n {state.shouldRenderTooltip && (\n <Portal mountNode={state.mountNode}>\n <slots.content {...slotProps.content}>\n {state.withArrow && <div ref={state.arrowRef} className={state.arrowClassName} />}\n {state.content.children}\n </slots.content>\n </Portal>\n )}\n </>\n );\n};\n"],"mappings":"AAAA,2BACA,+BACA,yBAEA,YAAYA,KAAA,MAAW;AACvB,SAASC,MAAM,QAAQ;AAEvB,SAASC,aAAa,QAAQ;AAE9B,SAASC,YAAY,QAAQ;AAG7B;;;AAGA,OAAO,MAAMC,sBAAA,GAA0BC,KAAA,IAAwB;EAC7D,MAAM;IAAEC,KAAA;IAAOC;EAAS,CAAE,GAAGJ,YAAA,CAA2BE,KAAA;EAExD,oBACEH,aAjBJ,CADAF,KAAA,CAAAQ,QAA8B,QAmBvBH,KAAA,CAAMI,QAAQ,EACdJ,KAAA,CAAMK,mBAAmB,iBACxBR,aApBR,CAoBSD,MAAA;IAAOU,SAAA,EAAWN,KAAA,CAAMM;kBACvBT,aArBV,CAqBWI,KAAA,CAAMM,OAAO,EAAKL,SAAA,CAAUK,OAAO,EACjCP,KAAA,CAAMQ,SAAS,iBAAIX,aAtBhC,CAsBiC;IAAIY,GAAA,EAAKT,KAAA,CAAMU,QAAQ;IAAEC,SAAA,EAAWX,KAAA,CAAMY;MAC9DZ,KAAA,CAAMO,OAAO,CAACH,QAAQ;AAMnC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";
|
1
|
+
/** @jsxRuntime classic */ /** @jsxFrag React.Fragment */ /** @jsx createElement */ "use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
@@ -9,12 +9,13 @@ Object.defineProperty(exports, "renderTooltip_unstable", {
|
|
9
9
|
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
10
10
|
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
11
11
|
const _reactPortal = require("@fluentui/react-portal");
|
12
|
+
const _reactJsxRuntime = require("@fluentui/react-jsx-runtime");
|
12
13
|
const _reactUtilities = require("@fluentui/react-utilities");
|
13
14
|
const renderTooltip_unstable = (state)=>{
|
14
|
-
const { slots , slotProps } = (0, _reactUtilities.
|
15
|
-
return /*#__PURE__*/
|
15
|
+
const { slots , slotProps } = (0, _reactUtilities.getSlotsNext)(state);
|
16
|
+
return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(_react.Fragment, null, state.children, state.shouldRenderTooltip && /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(_reactPortal.Portal, {
|
16
17
|
mountNode: state.mountNode
|
17
|
-
}, /*#__PURE__*/
|
18
|
+
}, /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.content, slotProps.content, state.withArrow && /*#__PURE__*/ (0, _reactJsxRuntime.createElement)("div", {
|
18
19
|
ref: state.arrowRef,
|
19
20
|
className: state.arrowClassName
|
20
21
|
}), state.content.children)));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../lib/components/Tooltip/renderTooltip.js"],"sourcesContent":["import * as React from 'react';\nimport { Portal } from '@fluentui/react-portal';\nimport {
|
1
|
+
{"version":3,"sources":["../../../lib/components/Tooltip/renderTooltip.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsxFrag React.Fragment */ /** @jsx createElement */import * as React from 'react';\nimport { Portal } from '@fluentui/react-portal';\nimport { createElement } from '@fluentui/react-jsx-runtime';\nimport { getSlotsNext } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of Tooltip\n */\nexport const renderTooltip_unstable = state => {\n const {\n slots,\n slotProps\n } = getSlotsNext(state);\n return /*#__PURE__*/createElement(React.Fragment, null, state.children, state.shouldRenderTooltip && /*#__PURE__*/createElement(Portal, {\n mountNode: state.mountNode\n }, /*#__PURE__*/createElement(slots.content, slotProps.content, state.withArrow && /*#__PURE__*/createElement(\"div\", {\n ref: state.arrowRef,\n className: state.arrowClassName\n }), state.content.children)));\n};\n//# sourceMappingURL=renderTooltip.js.map"],"names":["renderTooltip_unstable","state","slots","slotProps","getSlotsNext","createElement","React","Fragment","children","shouldRenderTooltip","Portal","mountNode","content","withArrow","ref","arrowRef","className","arrowClassName"],"mappings":"AAAA,wBAAwB,GAAG,4BAA4B,GAAG,uBAAuB;;;;+BAOpEA;;aAAAA;;;6DAP6F;6BACnF;iCACO;gCACD;AAItB,MAAMA,yBAAyBC,CAAAA,QAAS;IAC7C,MAAM,EACJC,MAAK,EACLC,UAAS,EACV,GAAGC,IAAAA,4BAAY,EAACH;IACjB,OAAO,WAAW,GAAEI,IAAAA,8BAAa,EAACC,OAAMC,QAAQ,EAAE,IAAI,EAAEN,MAAMO,QAAQ,EAAEP,MAAMQ,mBAAmB,IAAI,WAAW,GAAEJ,IAAAA,8BAAa,EAACK,mBAAM,EAAE;QACtIC,WAAWV,MAAMU,SAAS;IAC5B,GAAG,WAAW,GAAEN,IAAAA,8BAAa,EAACH,MAAMU,OAAO,EAAET,UAAUS,OAAO,EAAEX,MAAMY,SAAS,IAAI,WAAW,GAAER,IAAAA,8BAAa,EAAC,OAAO;QACnHS,KAAKb,MAAMc,QAAQ;QACnBC,WAAWf,MAAMgB,cAAc;IACjC,IAAIhB,MAAMW,OAAO,CAACJ,QAAQ;AAC5B,GACA,yCAAyC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-tooltip",
|
3
|
-
"version": "9.2.
|
3
|
+
"version": "9.2.10",
|
4
4
|
"description": "React components for building web experiences",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -33,6 +33,7 @@
|
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
35
|
"@fluentui/keyboard-keys": "^9.0.2",
|
36
|
+
"@fluentui/react-jsx-runtime": "9.0.0-alpha.2",
|
36
37
|
"@fluentui/react-portal": "^9.2.6",
|
37
38
|
"@fluentui/react-positioning": "^9.5.10",
|
38
39
|
"@fluentui/react-shared-contexts": "^9.3.3",
|