@fluentui/react-migration-v8-v9 9.2.0 → 9.2.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/.swcrc +30 -0
- package/CHANGELOG.json +73 -1
- package/CHANGELOG.md +27 -2
- package/lib/components/Button/ActionButtonShim.js.map +1 -1
- package/lib/components/Button/ButtonShim.js +4 -8
- package/lib/components/Button/ButtonShim.js.map +1 -1
- package/lib/components/Button/CommandButtonShim.js +1 -2
- package/lib/components/Button/CommandButtonShim.js.map +1 -1
- package/lib/components/Button/CompoundButtonShim.js +2 -2
- package/lib/components/Button/CompoundButtonShim.js.map +1 -1
- package/lib/components/Button/DefaultButtonShim.js.map +1 -1
- package/lib/components/Button/MenuButtonShim.js +4 -10
- package/lib/components/Button/MenuButtonShim.js.map +1 -1
- package/lib/components/Button/PrimaryButtonShim.js.map +1 -1
- package/lib/components/Button/ToggleButtonShim.js.map +1 -1
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Button/shimButtonProps.js +3 -5
- package/lib/components/Button/shimButtonProps.js.map +1 -1
- package/lib/components/Menu/MenuShim.js +12 -23
- package/lib/components/Menu/MenuShim.js.map +1 -1
- package/lib/components/Menu/index.js.map +1 -1
- package/lib/components/Menu/shimMenuProps.js +3 -5
- package/lib/components/Menu/shimMenuProps.js.map +1 -1
- package/lib/components/Stack/StackItemShim.js.map +1 -1
- package/lib/components/Stack/StackShim.js.map +1 -1
- package/lib/components/Stack/index.js.map +1 -1
- package/lib/components/Stack/stackUtils.js.map +1 -1
- package/lib/components/Theme/index.js.map +1 -1
- package/lib/components/Theme/themeDuplicates.js +1 -2
- package/lib/components/Theme/themeDuplicates.js.map +1 -1
- package/lib/components/Theme/v8ThemeShim.js +0 -12
- package/lib/components/Theme/v8ThemeShim.js.map +1 -1
- package/lib/components/Theme/v9BrandVariantsShim.js.map +1 -1
- package/lib/components/Theme/v9ThemeShim.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/components/Button/ActionButtonShim.js +21 -20
- package/lib-commonjs/components/Button/ActionButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/ButtonShim.js +25 -25
- package/lib-commonjs/components/Button/ButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/CommandButtonShim.js +9 -12
- package/lib-commonjs/components/Button/CommandButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/CompoundButtonShim.js +24 -23
- package/lib-commonjs/components/Button/CompoundButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/DefaultButtonShim.js +14 -13
- package/lib-commonjs/components/Button/DefaultButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/MenuButtonShim.js +24 -27
- package/lib-commonjs/components/Button/MenuButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/PrimaryButtonShim.js +15 -14
- package/lib-commonjs/components/Button/PrimaryButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/ToggleButtonShim.js +24 -23
- package/lib-commonjs/components/Button/ToggleButtonShim.js.map +1 -1
- package/lib-commonjs/components/Button/index.js +13 -12
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/shimButtonProps.js +33 -28
- package/lib-commonjs/components/Button/shimButtonProps.js.map +1 -1
- package/lib-commonjs/components/Menu/MenuShim.js +42 -52
- package/lib-commonjs/components/Menu/MenuShim.js.map +1 -1
- package/lib-commonjs/components/Menu/index.js +6 -5
- package/lib-commonjs/components/Menu/index.js.map +1 -1
- package/lib-commonjs/components/Menu/shimMenuProps.js +44 -38
- package/lib-commonjs/components/Menu/shimMenuProps.js.map +1 -1
- package/lib-commonjs/components/Stack/StackItemShim.js +195 -157
- package/lib-commonjs/components/Stack/StackItemShim.js.map +1 -1
- package/lib-commonjs/components/Stack/StackShim.js +273 -230
- package/lib-commonjs/components/Stack/StackShim.js.map +1 -1
- package/lib-commonjs/components/Stack/index.js +6 -5
- package/lib-commonjs/components/Stack/index.js.map +1 -1
- package/lib-commonjs/components/Stack/stackUtils.js +145 -151
- package/lib-commonjs/components/Stack/stackUtils.js.map +1 -1
- package/lib-commonjs/components/Theme/index.js +8 -7
- package/lib-commonjs/components/Theme/index.js.map +1 -1
- package/lib-commonjs/components/Theme/themeDuplicates.js +810 -786
- package/lib-commonjs/components/Theme/themeDuplicates.js.map +1 -1
- package/lib-commonjs/components/Theme/v8ThemeShim.js +285 -307
- package/lib-commonjs/components/Theme/v8ThemeShim.js.map +1 -1
- package/lib-commonjs/components/Theme/v9BrandVariantsShim.js +56 -61
- package/lib-commonjs/components/Theme/v9BrandVariantsShim.js.map +1 -1
- package/lib-commonjs/components/Theme/v9ThemeShim.js +183 -188
- package/lib-commonjs/components/Theme/v9ThemeShim.js.map +1 -1
- package/lib-commonjs/index.js +48 -200
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +11 -10
package/.swcrc
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/swcrc",
|
|
3
|
+
"exclude": [
|
|
4
|
+
"/testing",
|
|
5
|
+
"/**/*.cy.ts",
|
|
6
|
+
"/**/*.cy.tsx",
|
|
7
|
+
"/**/*.spec.ts",
|
|
8
|
+
"/**/*.spec.tsx",
|
|
9
|
+
"/**/*.test.ts",
|
|
10
|
+
"/**/*.test.tsx"
|
|
11
|
+
],
|
|
12
|
+
"jsc": {
|
|
13
|
+
"parser": {
|
|
14
|
+
"syntax": "typescript",
|
|
15
|
+
"tsx": true,
|
|
16
|
+
"decorators": false,
|
|
17
|
+
"dynamicImport": false
|
|
18
|
+
},
|
|
19
|
+
"externalHelpers": true,
|
|
20
|
+
"transform": {
|
|
21
|
+
"react": {
|
|
22
|
+
"runtime": "classic",
|
|
23
|
+
"useSpread": true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"target": "es2019"
|
|
27
|
+
},
|
|
28
|
+
"minify": false,
|
|
29
|
+
"sourceMaps": true
|
|
30
|
+
}
|
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,79 @@
|
|
|
2
2
|
"name": "@fluentui/react-migration-v8-v9",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Tue, 21 Mar 2023 21:18:53 GMT",
|
|
6
|
+
"tag": "@fluentui/react-migration-v8-v9_v9.2.2",
|
|
7
|
+
"version": "9.2.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "tristan.watanabe@gmail.com",
|
|
12
|
+
"package": "@fluentui/react-migration-v8-v9",
|
|
13
|
+
"commit": "2fac1a139149bd13b76b1306207bc988dca9c72c",
|
|
14
|
+
"comment": "chore: migrate to swc transpilation approach."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "tristan.watanabe@gmail.com",
|
|
18
|
+
"package": "@fluentui/react-migration-v8-v9",
|
|
19
|
+
"commit": "ead1c6d4c2ac3f3596b62b8cbc07b0a03041f11f",
|
|
20
|
+
"comment": "fix: add node field to package.json exports map."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "makotom@microsoft.com",
|
|
24
|
+
"package": "@fluentui/react-migration-v8-v9",
|
|
25
|
+
"commit": "7fde5c94869ff9841b142b7ff1d0a3df0ab58f74",
|
|
26
|
+
"comment": "chore: Bumping version of @fluentui/react-icons to ^2.0.196."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui/react-migration-v8-v9",
|
|
31
|
+
"comment": "Bump @fluentui/react-components to v9.18.3",
|
|
32
|
+
"commit": "b7a26f6263c80e3253c6b8338c33b73bae33e2b5"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui/react-migration-v8-v9",
|
|
37
|
+
"comment": "Bump @fluentui/react-theme to v9.1.7",
|
|
38
|
+
"commit": "b7a26f6263c80e3253c6b8338c33b73bae33e2b5"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@fluentui/react-migration-v8-v9",
|
|
43
|
+
"comment": "Bump @fluentui/react-utilities to v9.7.2",
|
|
44
|
+
"commit": "b7a26f6263c80e3253c6b8338c33b73bae33e2b5"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@fluentui/react-migration-v8-v9",
|
|
49
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.20",
|
|
50
|
+
"commit": "b7a26f6263c80e3253c6b8338c33b73bae33e2b5"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"date": "Thu, 16 Mar 2023 14:36:59 GMT",
|
|
57
|
+
"tag": "@fluentui/react-migration-v8-v9_v9.2.1",
|
|
58
|
+
"version": "9.2.1",
|
|
59
|
+
"comments": {
|
|
60
|
+
"patch": [
|
|
61
|
+
{
|
|
62
|
+
"author": "beachball",
|
|
63
|
+
"package": "@fluentui/react-migration-v8-v9",
|
|
64
|
+
"comment": "Bump @fluentui/react-components to v9.18.2",
|
|
65
|
+
"commit": "e7dcadf7cabae6bc6811ca04a630e7d850388f81"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"author": "beachball",
|
|
69
|
+
"package": "@fluentui/react-migration-v8-v9",
|
|
70
|
+
"comment": "Bump @fluentui/react-utilities to v9.7.1",
|
|
71
|
+
"commit": "e7dcadf7cabae6bc6811ca04a630e7d850388f81"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"date": "Wed, 15 Mar 2023 10:19:51 GMT",
|
|
6
78
|
"tag": "@fluentui/react-migration-v8-v9_v9.2.0",
|
|
7
79
|
"version": "9.2.0",
|
|
8
80
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,37 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-migration-v8-v9
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 21 Mar 2023 21:18:53 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.2.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-migration-v8-v9_v9.2.2)
|
|
8
|
+
|
|
9
|
+
Tue, 21 Mar 2023 21:18:53 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-migration-v8-v9_v9.2.1..@fluentui/react-migration-v8-v9_v9.2.2)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- chore: migrate to swc transpilation approach. ([PR #27250](https://github.com/microsoft/fluentui/pull/27250) by tristan.watanabe@gmail.com)
|
|
15
|
+
- fix: add node field to package.json exports map. ([PR #27154](https://github.com/microsoft/fluentui/pull/27154) by tristan.watanabe@gmail.com)
|
|
16
|
+
- chore: Bumping version of @fluentui/react-icons to ^2.0.196. ([PR #27100](https://github.com/microsoft/fluentui/pull/27100) by makotom@microsoft.com)
|
|
17
|
+
- Bump @fluentui/react-components to v9.18.3 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
|
|
18
|
+
- Bump @fluentui/react-theme to v9.1.7 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
|
|
19
|
+
- Bump @fluentui/react-utilities to v9.7.2 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
|
|
20
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.20 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
|
|
21
|
+
|
|
22
|
+
## [9.2.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-migration-v8-v9_v9.2.1)
|
|
23
|
+
|
|
24
|
+
Thu, 16 Mar 2023 14:36:59 GMT
|
|
25
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-migration-v8-v9_v9.2.0..@fluentui/react-migration-v8-v9_v9.2.1)
|
|
26
|
+
|
|
27
|
+
### Patches
|
|
28
|
+
|
|
29
|
+
- Bump @fluentui/react-components to v9.18.2 ([PR #27229](https://github.com/microsoft/fluentui/pull/27229) by beachball)
|
|
30
|
+
- Bump @fluentui/react-utilities to v9.7.1 ([PR #27229](https://github.com/microsoft/fluentui/pull/27229) by beachball)
|
|
31
|
+
|
|
7
32
|
## [9.2.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-migration-v8-v9_v9.2.0)
|
|
8
33
|
|
|
9
|
-
Wed, 15 Mar 2023 10:
|
|
34
|
+
Wed, 15 Mar 2023 10:19:51 GMT
|
|
10
35
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-migration-v8-v9_v9.1.13..@fluentui/react-migration-v8-v9_v9.2.0)
|
|
11
36
|
|
|
12
37
|
### Minor changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Button","shimButtonProps","ActionButtonShim","forwardRef","props","_ref","variantProps","variantClassName","shimProps","createElement","appearance"],"sources":["
|
|
1
|
+
{"version":3,"names":["React","Button","shimButtonProps","ActionButtonShim","forwardRef","props","_ref","variantProps","variantClassName","shimProps","createElement","appearance"],"sources":["../../../src/components/Button/ActionButtonShim.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { IButtonProps } from '@fluentui/react';\n\nimport { Button } from '@fluentui/react-components';\n\nimport { shimButtonProps } from './shimButtonProps';\n\n/**\n * Shims a v8 ActionButton to render a v9 Button\n */\nexport const ActionButtonShim: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLButtonElement>> =\n React.forwardRef((props, _ref) => {\n const variantProps = {\n ...props,\n variantClassName: 'ms-Button--action ms-Button--command',\n };\n\n const shimProps = shimButtonProps(variantProps);\n\n return <Button {...(props as React.RefAttributes<HTMLButtonElement>)} {...shimProps} appearance=\"transparent\" />;\n });\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAIvB,SAASC,MAAM,QAAQ;AAEvB,SAASC,eAAe,QAAQ;AAEhC;;;AAGA,OAAO,MAAMC,gBAAA,gBACXH,KAAA,CAAMI,UAAU,CAAC,CAACC,KAAA,EAAOC,IAAA,KAAS;EAChC,MAAMC,YAAA,GAAe;IACnB,GAAGF,KAAK;IACRG,gBAAA,EAAkB;EACpB;EAEA,MAAMC,SAAA,GAAYP,eAAA,CAAgBK,YAAA;EAElC,oBAAOP,KAAA,CAAAU,aAAA,CAACT,MAAA;IAAQ,GAAII,KAAK;IAA8C,GAAGI,SAAS;IAAEE,UAAA,EAAW;;AAClG"}
|
|
@@ -4,17 +4,13 @@ import { shimButtonProps } from './shimButtonProps';
|
|
|
4
4
|
import { ToggleButtonShim } from './ToggleButtonShim';
|
|
5
5
|
import { CompoundButtonShim } from './CompoundButtonShim';
|
|
6
6
|
export const ButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {
|
|
7
|
-
var
|
|
7
|
+
var _props_onRenderDescription;
|
|
8
8
|
const shimProps = shimButtonProps(props);
|
|
9
9
|
if (props.toggle) {
|
|
10
|
-
return /*#__PURE__*/React.createElement(ToggleButtonShim,
|
|
11
|
-
...props
|
|
12
|
-
}, props.children);
|
|
10
|
+
return /*#__PURE__*/React.createElement(ToggleButtonShim, props, props.children);
|
|
13
11
|
}
|
|
14
|
-
if (props.secondaryText || ((
|
|
15
|
-
return /*#__PURE__*/React.createElement(CompoundButtonShim,
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
12
|
+
if (props.secondaryText || ((_props_onRenderDescription = props.onRenderDescription) === null || _props_onRenderDescription === void 0 ? void 0 : _props_onRenderDescription.call(props, props))) {
|
|
13
|
+
return /*#__PURE__*/React.createElement(CompoundButtonShim, props);
|
|
18
14
|
}
|
|
19
15
|
return /*#__PURE__*/React.createElement(Button, {
|
|
20
16
|
...props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Button","shimButtonProps","ToggleButtonShim","CompoundButtonShim","ButtonShim","forwardRef","props","_ref","shimProps","toggle","createElement","children","secondaryText","
|
|
1
|
+
{"version":3,"names":["React","Button","shimButtonProps","ToggleButtonShim","CompoundButtonShim","ButtonShim","forwardRef","props","_ref","_props_onRenderDescription","shimProps","toggle","createElement","children","secondaryText","onRenderDescription","call"],"sources":["../../../src/components/Button/ButtonShim.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { IBaseButtonProps } from '@fluentui/react';\n\nimport { Button } from '@fluentui/react-components';\n\nimport { shimButtonProps } from './shimButtonProps';\nimport { ToggleButtonShim } from './ToggleButtonShim';\nimport { CompoundButtonShim } from './CompoundButtonShim';\n\nexport const ButtonShim: React.ForwardRefExoticComponent<IBaseButtonProps & React.RefAttributes<HTMLButtonElement>> =\n React.forwardRef((props, _ref) => {\n const shimProps = shimButtonProps(props);\n\n if (props.toggle) {\n return <ToggleButtonShim {...props}>{props.children}</ToggleButtonShim>;\n }\n if (props.secondaryText || props.onRenderDescription?.(props)) {\n return <CompoundButtonShim {...props} />;\n }\n\n return <Button {...(props as React.RefAttributes<HTMLButtonElement>)} {...shimProps} />;\n });\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAIvB,SAASC,MAAM,QAAQ;AAEvB,SAASC,eAAe,QAAQ;AAChC,SAASC,gBAAgB,QAAQ;AACjC,SAASC,kBAAkB,QAAQ;AAEnC,OAAO,MAAMC,UAAA,gBACXL,KAAA,CAAMM,UAAU,CAAC,CAACC,KAAA,EAAOC,IAAA,KAAS;MAMLC,0BAAA;EAL3B,MAAMC,SAAA,GAAYR,eAAA,CAAgBK,KAAA;EAElC,IAAIA,KAAA,CAAMI,MAAM,EAAE;IAChB,oBAAOX,KAAA,CAAAY,aAAA,CAACT,gBAAA,EAAqBI,KAAA,EAAQA,KAAA,CAAMM,QAAQ;EACrD;EACA,IAAIN,KAAA,CAAMO,aAAa,KAAI,CAAAL,0BAAA,GAAAF,KAAA,CAAMQ,mBAAmB,cAAzBN,0BAAA,uBAAAA,0BAAA,CAAAO,IAAA,CAAAT,KAAA,EAA4BA,KAAA,IAAQ;IAC7D,oBAAOP,KAAA,CAAAY,aAAA,CAACR,kBAAA,EAAuBG,KAAA;EACjC;EAEA,oBAAOP,KAAA,CAAAY,aAAA,CAACX,MAAA;IAAQ,GAAIM,KAAK;IAA8C,GAAGG;;AAC5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["ActionButtonShim","CommandButtonShim"],"sources":["../../../src/components/Button/CommandButtonShim.tsx"],"sourcesContent":["/**\n * Shims v8 CommandButtonShim to render a v9 Button\n */\nexport { ActionButtonShim as CommandButtonShim } from './ActionButtonShim';\n"],"mappings":"AAAA;;GAGA,SAASA,gBAAA,IAAoBC,iBAAiB,QAAQ"}
|
|
@@ -5,14 +5,14 @@ import { shimButtonProps } from './shimButtonProps';
|
|
|
5
5
|
* Shims v8 CompoundButton to render a v9 CompoundButton
|
|
6
6
|
*/
|
|
7
7
|
export const CompoundButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {
|
|
8
|
-
var
|
|
8
|
+
var _props_onRenderDescription;
|
|
9
9
|
const variantProps = {
|
|
10
10
|
...props,
|
|
11
11
|
variantClassName: props.primary ? 'ms-Button--compoundPrimary' : 'ms-Button--compound'
|
|
12
12
|
};
|
|
13
13
|
const shimProps = {
|
|
14
14
|
...shimButtonProps(variantProps),
|
|
15
|
-
secondaryContent: props.secondaryText || ((
|
|
15
|
+
secondaryContent: props.secondaryText || ((_props_onRenderDescription = props.onRenderDescription) === null || _props_onRenderDescription === void 0 ? void 0 : _props_onRenderDescription.call(props, props))
|
|
16
16
|
};
|
|
17
17
|
return /*#__PURE__*/React.createElement(CompoundButton, {
|
|
18
18
|
...props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","CompoundButton","shimButtonProps","CompoundButtonShim","forwardRef","props","_ref","variantProps","variantClassName","primary","shimProps","secondaryContent","secondaryText","
|
|
1
|
+
{"version":3,"names":["React","CompoundButton","shimButtonProps","CompoundButtonShim","forwardRef","props","_ref","_props_onRenderDescription","variantProps","variantClassName","primary","shimProps","secondaryContent","secondaryText","onRenderDescription","call","createElement"],"sources":["../../../src/components/Button/CompoundButtonShim.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { IButtonProps } from '@fluentui/react';\n\nimport { CompoundButton } from '@fluentui/react-components';\nimport type { CompoundButtonProps } from '@fluentui/react-components';\n\nimport { shimButtonProps } from './shimButtonProps';\n\n/**\n * Shims v8 CompoundButton to render a v9 CompoundButton\n */\nexport const CompoundButtonShim: React.ForwardRefExoticComponent<\n IButtonProps & React.RefAttributes<HTMLButtonElement>\n> = React.forwardRef((props, _ref) => {\n const variantProps = {\n ...props,\n variantClassName: props.primary ? 'ms-Button--compoundPrimary' : 'ms-Button--compound',\n };\n\n const shimProps: CompoundButtonProps = {\n ...shimButtonProps(variantProps),\n secondaryContent: props.secondaryText || props.onRenderDescription?.(props),\n };\n\n return <CompoundButton {...(props as React.RefAttributes<HTMLButtonElement>)} {...shimProps} />;\n});\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAIvB,SAASC,cAAc,QAAQ;AAG/B,SAASC,eAAe,QAAQ;AAEhC;;;AAGA,OAAO,MAAMC,kBAAA,gBAETH,KAAA,CAAMI,UAAU,CAAC,CAACC,KAAA,EAAOC,IAAA,KAAS;MAQOC,0BAAA;EAP3C,MAAMC,YAAA,GAAe;IACnB,GAAGH,KAAK;IACRI,gBAAA,EAAkBJ,KAAA,CAAMK,OAAO,GAAG,+BAA+B;EACnE;EAEA,MAAMC,SAAA,GAAiC;IACrC,GAAGT,eAAA,CAAgBM,YAAA,CAAa;IAChCI,gBAAA,EAAkBP,KAAA,CAAMQ,aAAa,KAAI,CAAAN,0BAAA,GAAAF,KAAA,CAAMS,mBAAmB,cAAzBP,0BAAA,uBAAAA,0BAAA,CAAAQ,IAAA,CAAAV,KAAA,EAA4BA,KAAA;EACvE;EAEA,oBAAOL,KAAA,CAAAgB,aAAA,CAACf,cAAA;IAAgB,GAAII,KAAK;IAA8C,GAAGM;;AACpF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ButtonShim","DefaultButtonShim","forwardRef","props","_ref","createElement","variantClassName","primary"],"sources":["
|
|
1
|
+
{"version":3,"names":["React","ButtonShim","DefaultButtonShim","forwardRef","props","_ref","createElement","variantClassName","primary"],"sources":["../../../src/components/Button/DefaultButtonShim.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { IButtonProps } from '@fluentui/react';\n\nimport { ButtonShim } from './ButtonShim';\n\n/**\n * Shims a v8 DefaultButton to render a v9 Button\n */\nexport const DefaultButtonShim: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLButtonElement>> =\n React.forwardRef((props, _ref) => {\n return <ButtonShim {...props} variantClassName={props.primary ? 'ms-Button--primary' : 'ms-Button--default'} />;\n });\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAIvB,SAASC,UAAU,QAAQ;AAE3B;;;AAGA,OAAO,MAAMC,iBAAA,gBACXF,KAAA,CAAMG,UAAU,CAAC,CAACC,KAAA,EAAOC,IAAA,KAAS;EAChC,oBAAOL,KAAA,CAAAM,aAAA,CAACL,UAAA;IAAY,GAAGG,KAAK;IAAEG,gBAAA,EAAkBH,KAAA,CAAMI,OAAO,GAAG,uBAAuB;;AACzF"}
|
|
@@ -3,7 +3,7 @@ import { MenuButton, Menu, MenuList, MenuPopover, MenuTrigger } from '@fluentui/
|
|
|
3
3
|
import { MenuItemShim, shimMenuProps } from '../Menu/index';
|
|
4
4
|
import { shimButtonProps } from './shimButtonProps';
|
|
5
5
|
export const MenuButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {
|
|
6
|
-
var
|
|
6
|
+
var _props_menuProps;
|
|
7
7
|
const variantProps = {
|
|
8
8
|
...props,
|
|
9
9
|
variantClassName: props.primary ? 'ms-Button--primary' : 'ms-Button--default'
|
|
@@ -12,16 +12,10 @@ export const MenuButtonShim = /*#__PURE__*/React.forwardRef((props, _ref) => {
|
|
|
12
12
|
...shimButtonProps(variantProps)
|
|
13
13
|
};
|
|
14
14
|
const shimmedMenuProps = props.menuProps ? shimMenuProps(props.menuProps) : {};
|
|
15
|
-
return /*#__PURE__*/React.createElement(Menu,
|
|
16
|
-
...shimmedMenuProps
|
|
17
|
-
}, /*#__PURE__*/React.createElement(MenuTrigger, null, /*#__PURE__*/React.createElement(MenuButton, {
|
|
18
|
-
...shimProps
|
|
19
|
-
})), /*#__PURE__*/React.createElement(MenuPopover, null, /*#__PURE__*/React.createElement(MenuList, null, (_a = props.menuProps) === null || _a === void 0 ? void 0 : _a.items.map(item =>
|
|
20
|
-
/*#__PURE__*/
|
|
15
|
+
return /*#__PURE__*/React.createElement(Menu, shimmedMenuProps, /*#__PURE__*/React.createElement(MenuTrigger, null, /*#__PURE__*/React.createElement(MenuButton, shimProps)), /*#__PURE__*/React.createElement(MenuPopover, null, /*#__PURE__*/React.createElement(MenuList, null, (_props_menuProps = props.menuProps) === null || _props_menuProps === void 0 ? void 0 : _props_menuProps.items.map(item =>
|
|
21
16
|
// key is added through item spread
|
|
22
17
|
// eslint-disable-next-line react/jsx-key
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})))));
|
|
18
|
+
/*#__PURE__*/
|
|
19
|
+
React.createElement(MenuItemShim, item)))));
|
|
26
20
|
});
|
|
27
21
|
//# sourceMappingURL=MenuButtonShim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","MenuButton","Menu","MenuList","MenuPopover","MenuTrigger","MenuItemShim","shimMenuProps","shimButtonProps","MenuButtonShim","forwardRef","props","_ref","variantProps","variantClassName","primary","shimProps","shimmedMenuProps","menuProps","createElement","
|
|
1
|
+
{"version":3,"names":["React","MenuButton","Menu","MenuList","MenuPopover","MenuTrigger","MenuItemShim","shimMenuProps","shimButtonProps","MenuButtonShim","forwardRef","props","_ref","_props_menuProps","variantProps","variantClassName","primary","shimProps","shimmedMenuProps","menuProps","createElement","items","map","item"],"sources":["../../../src/components/Button/MenuButtonShim.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { IButtonProps } from '@fluentui/react';\nimport { MenuButton, Menu, MenuList, MenuPopover, MenuTrigger } from '@fluentui/react-components';\nimport type { MenuButtonProps } from '@fluentui/react-components';\nimport { MenuItemShim, shimMenuProps } from '../Menu/index';\n\nimport { shimButtonProps } from './shimButtonProps';\n\nexport const MenuButtonShim: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLButtonElement>> =\n React.forwardRef((props, _ref) => {\n const variantProps = {\n ...props,\n variantClassName: props.primary ? 'ms-Button--primary' : 'ms-Button--default',\n };\n\n const shimProps: MenuButtonProps = {\n ...shimButtonProps(variantProps),\n };\n\n const shimmedMenuProps = props.menuProps ? shimMenuProps(props.menuProps) : {};\n\n return (\n <Menu {...shimmedMenuProps}>\n <MenuTrigger>\n <MenuButton {...shimProps} />\n </MenuTrigger>\n <MenuPopover>\n <MenuList>\n {props.menuProps?.items.map(item => (\n // key is added through item spread\n // eslint-disable-next-line react/jsx-key\n <MenuItemShim {...item} />\n ))}\n </MenuList>\n </MenuPopover>\n </Menu>\n );\n });\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAGvB,SAASC,UAAU,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,WAAW,EAAEC,WAAW,QAAQ;AAErE,SAASC,YAAY,EAAEC,aAAa,QAAQ;AAE5C,SAASC,eAAe,QAAQ;AAEhC,OAAO,MAAMC,cAAA,gBACXT,KAAA,CAAMU,UAAU,CAAC,CAACC,KAAA,EAAOC,IAAA,KAAS;MAmBvBC,gBAAA;EAlBT,MAAMC,YAAA,GAAe;IACnB,GAAGH,KAAK;IACRI,gBAAA,EAAkBJ,KAAA,CAAMK,OAAO,GAAG,uBAAuB;EAC3D;EAEA,MAAMC,SAAA,GAA6B;IACjC,GAAGT,eAAA,CAAgBM,YAAA;EACrB;EAEA,MAAMI,gBAAA,GAAmBP,KAAA,CAAMQ,SAAS,GAAGZ,aAAA,CAAcI,KAAA,CAAMQ,SAAS,IAAI,CAAC,CAAC;EAE9E,oBACEnB,KAAA,CAAAoB,aAAA,CAAClB,IAAA,EAASgB,gBAAA,eACRlB,KAAA,CAAAoB,aAAA,CAACf,WAAA,qBACCL,KAAA,CAAAoB,aAAA,CAACnB,UAAA,EAAegB,SAAA,iBAElBjB,KAAA,CAAAoB,aAAA,CAAChB,WAAA,qBACCJ,KAAA,CAAAoB,aAAA,CAACjB,QAAA,QACE,CAAAU,gBAAA,GAAAF,KAAA,CAAMQ,SAAS,cAAfN,gBAAA,uBAAAA,gBAAA,CAAiBQ,KAAA,CAAMC,GAAG,CAACC,IAAA;EAC1B;EACA;;EACAvB,KAAA,CAAAoB,aAAA,CAACd,YAAA,EAAiBiB,IAAA,EAClB;AAKZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ButtonShim","PrimaryButtonShim","forwardRef","props","_ref","createElement","primary","variantClassName"],"sources":["
|
|
1
|
+
{"version":3,"names":["React","ButtonShim","PrimaryButtonShim","forwardRef","props","_ref","createElement","primary","variantClassName"],"sources":["../../../src/components/Button/PrimaryButtonShim.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { IButtonProps } from '@fluentui/react';\nimport { ButtonShim } from './ButtonShim';\n\n/**\n * Shims v8 PrimaryButton to render a v9 Button\n */\nexport const PrimaryButtonShim: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLButtonElement>> =\n React.forwardRef((props, _ref) => {\n return <ButtonShim {...props} primary variantClassName=\"ms-Button--primary\" />;\n });\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAGvB,SAASC,UAAU,QAAQ;AAE3B;;;AAGA,OAAO,MAAMC,iBAAA,gBACXF,KAAA,CAAMG,UAAU,CAAC,CAACC,KAAA,EAAOC,IAAA,KAAS;EAChC,oBAAOL,KAAA,CAAAM,aAAA,CAACL,UAAA;IAAY,GAAGG,KAAK;IAAEG,OAAA,MAAO;IAACC,gBAAA,EAAiB;;AACzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ToggleButton","shimButtonProps","ToggleButtonShim","forwardRef","props","_ref","variantProps","variantClassName","primary","shimProps","checked","defaultChecked","createElement"],"sources":["
|
|
1
|
+
{"version":3,"names":["React","ToggleButton","shimButtonProps","ToggleButtonShim","forwardRef","props","_ref","variantProps","variantClassName","primary","shimProps","checked","defaultChecked","createElement"],"sources":["../../../src/components/Button/ToggleButtonShim.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { IButtonProps } from '@fluentui/react';\n\nimport { ToggleButton } from '@fluentui/react-components';\nimport type { ToggleButtonProps } from '@fluentui/react-components';\n\nimport { shimButtonProps } from './shimButtonProps';\n\n/**\n * Shims v8 ToggleButton to render a v9 ToggleButton\n */\nexport const ToggleButtonShim: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLButtonElement>> =\n React.forwardRef((props, _ref) => {\n const variantProps = {\n ...props,\n variantClassName: props.primary ? 'ms-Button--compoundPrimary' : 'ms-Button--compound',\n };\n\n const shimProps: ToggleButtonProps = {\n ...shimButtonProps(variantProps),\n checked: props.checked,\n defaultChecked: props.defaultChecked,\n };\n\n return <ToggleButton {...(props as React.RefAttributes<HTMLButtonElement>)} {...shimProps} />;\n });\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAIvB,SAASC,YAAY,QAAQ;AAG7B,SAASC,eAAe,QAAQ;AAEhC;;;AAGA,OAAO,MAAMC,gBAAA,gBACXH,KAAA,CAAMI,UAAU,CAAC,CAACC,KAAA,EAAOC,IAAA,KAAS;EAChC,MAAMC,YAAA,GAAe;IACnB,GAAGF,KAAK;IACRG,gBAAA,EAAkBH,KAAA,CAAMI,OAAO,GAAG,+BAA+B;EACnE;EAEA,MAAMC,SAAA,GAA+B;IACnC,GAAGR,eAAA,CAAgBK,YAAA,CAAa;IAChCI,OAAA,EAASN,KAAA,CAAMM,OAAO;IACtBC,cAAA,EAAgBP,KAAA,CAAMO;EACxB;EAEA,oBAAOZ,KAAA,CAAAa,aAAA,CAACZ,YAAA;IAAc,GAAII,KAAK;IAA8C,GAAGK;;AAClF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/Button/index.ts"],"sourcesContent":["export * from './ActionButtonShim';\nexport * from './ButtonShim';\nexport * from './CommandButtonShim';\nexport * from './CompoundButtonShim';\nexport * from './DefaultButtonShim';\nexport * from './MenuButtonShim';\nexport * from './PrimaryButtonShim';\nexport * from './shimButtonProps';\nexport * from './ToggleButtonShim';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Icon } from '@fluentui/react';
|
|
3
3
|
export const shimButtonProps = props => {
|
|
4
|
-
var _a;
|
|
5
4
|
//TODO: Icon shim. This still renders the v8 icon.
|
|
6
|
-
const icon = props.onRenderIcon ? props.onRenderIcon(props) : props.iconProps ? /*#__PURE__*/React.createElement(Icon,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const variantClassName = ((_a = props.variantClassName) !== null && _a !== void 0 ? _a : props.primary) ? 'ms-Button--primary' : 'ms-Button--default';
|
|
5
|
+
const icon = props.onRenderIcon ? props.onRenderIcon(props) : props.iconProps ? /*#__PURE__*/React.createElement(Icon, props.iconProps) : undefined;
|
|
6
|
+
var _props_variantClassName;
|
|
7
|
+
const variantClassName = ((_props_variantClassName = props.variantClassName) !== null && _props_variantClassName !== void 0 ? _props_variantClassName : props.primary) ? 'ms-Button--primary' : 'ms-Button--default';
|
|
10
8
|
const className = [props.baseClassName, variantClassName, props.className].filter(Boolean).join(' ');
|
|
11
9
|
return {
|
|
12
10
|
// spread incoming props to propagate HTML properties not part of IBaseButtonProps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Icon","shimButtonProps","props","icon","onRenderIcon","iconProps","createElement","undefined","
|
|
1
|
+
{"version":3,"names":["React","Icon","shimButtonProps","props","icon","onRenderIcon","iconProps","createElement","undefined","_props_variantClassName","variantClassName","primary","className","baseClassName","filter","Boolean","join","appearance","disabled","disabledFocusable","allowDisabledFocus","ariaHidden","ariaLabel","key","uniqueId","children","onRenderChildren","onRenderText","text"],"sources":["../../../src/components/Button/shimButtonProps.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Icon } from '@fluentui/react';\nimport type { IBaseButtonProps } from '@fluentui/react';\n\nimport type { ButtonProps } from '@fluentui/react-components';\n\nexport const shimButtonProps = (props: IBaseButtonProps & React.RefAttributes<HTMLButtonElement>): ButtonProps => {\n //TODO: Icon shim. This still renders the v8 icon.\n const icon = props.onRenderIcon ? (\n props.onRenderIcon(props)\n ) : props.iconProps ? (\n <Icon {...props.iconProps} />\n ) : undefined;\n\n const variantClassName = props.variantClassName ?? props.primary ? 'ms-Button--primary' : 'ms-Button--default';\n const className = [props.baseClassName, variantClassName, props.className].filter(Boolean).join(' ');\n\n return {\n // spread incoming props to propagate HTML properties not part of IBaseButtonProps\n ...props,\n appearance: props.primary ? 'primary' : undefined,\n className,\n disabled: props.disabled,\n disabledFocusable: props.allowDisabledFocus,\n 'aria-hidden': props.ariaHidden,\n 'aria-label': props.ariaLabel,\n icon,\n key: props.key || props.uniqueId,\n children: props.onRenderChildren\n ? props.onRenderChildren(props)\n : props.onRenderText\n ? props.onRenderText(props)\n : props.text || props.children,\n } as ButtonProps;\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAEvB,SAASC,IAAI,QAAQ;AAKrB,OAAO,MAAMC,eAAA,GAAmBC,KAAA,IAAkF;EAChH;EACA,MAAMC,IAAA,GAAOD,KAAA,CAAME,YAAY,GAC7BF,KAAA,CAAME,YAAY,CAACF,KAAA,IACjBA,KAAA,CAAMG,SAAS,gBACjBN,KAAA,CAAAO,aAAA,CAACN,IAAA,EAASE,KAAA,CAAMG,SAAS,IACvBE,SAAS;MAEYC,uBAAA;EAAzB,MAAMC,gBAAA,GAAmB,EAAAD,uBAAA,GAAAN,KAAA,CAAMO,gBAAgB,cAAtBD,uBAAA,cAAAA,uBAAA,GAA0BN,KAAA,CAAMQ,OAAO,IAAG,uBAAuB,oBAAoB;EAC9G,MAAMC,SAAA,GAAY,CAACT,KAAA,CAAMU,aAAa,EAAEH,gBAAA,EAAkBP,KAAA,CAAMS,SAAS,CAAC,CAACE,MAAM,CAACC,OAAA,EAASC,IAAI,CAAC;EAEhG,OAAO;IACL;IACA,GAAGb,KAAK;IACRc,UAAA,EAAYd,KAAA,CAAMQ,OAAO,GAAG,YAAYH,SAAS;IACjDI,SAAA;IACAM,QAAA,EAAUf,KAAA,CAAMe,QAAQ;IACxBC,iBAAA,EAAmBhB,KAAA,CAAMiB,kBAAkB;IAC3C,eAAejB,KAAA,CAAMkB,UAAU;IAC/B,cAAclB,KAAA,CAAMmB,SAAS;IAC7BlB,IAAA;IACAmB,GAAA,EAAKpB,KAAA,CAAMoB,GAAG,IAAIpB,KAAA,CAAMqB,QAAQ;IAChCC,QAAA,EAAUtB,KAAA,CAAMuB,gBAAgB,GAC5BvB,KAAA,CAAMuB,gBAAgB,CAACvB,KAAA,IACvBA,KAAA,CAAMwB,YAAY,GAClBxB,KAAA,CAAMwB,YAAY,CAACxB,KAAA,IACnBA,KAAA,CAAMyB,IAAI,IAAIzB,KAAA,CAAMsB;EAC1B;AACF"}
|
|
@@ -3,49 +3,38 @@ import { ContextualMenuItemType } from '@fluentui/react';
|
|
|
3
3
|
import { MenuItem, MenuDivider, MenuGroup, MenuGroupHeader, MenuTrigger, Menu, MenuList, MenuPopover, MenuItemCheckbox } from '@fluentui/react-components';
|
|
4
4
|
import { shimMenuHeaderProps, shimMenuItemCheckboxProps, shimMenuItemProps, shimMenuProps } from './shimMenuProps';
|
|
5
5
|
export const MenuItemShim = props => {
|
|
6
|
-
var
|
|
6
|
+
var _props_subMenuProps;
|
|
7
7
|
if (props.itemType === ContextualMenuItemType.Divider) {
|
|
8
8
|
const shimProps = shimMenuItemProps(props);
|
|
9
|
-
return /*#__PURE__*/React.createElement(MenuDivider,
|
|
10
|
-
...shimProps
|
|
11
|
-
});
|
|
9
|
+
return /*#__PURE__*/React.createElement(MenuDivider, shimProps);
|
|
12
10
|
}
|
|
13
11
|
if (props.itemType === ContextualMenuItemType.Section) {
|
|
12
|
+
var _props_subMenuProps1;
|
|
14
13
|
const shimProps = shimMenuHeaderProps(props);
|
|
15
|
-
return /*#__PURE__*/React.createElement(MenuGroup, null, /*#__PURE__*/React.createElement(MenuGroupHeader, null, shimProps.children), (
|
|
16
|
-
/*#__PURE__*/
|
|
14
|
+
return /*#__PURE__*/React.createElement(MenuGroup, null, /*#__PURE__*/React.createElement(MenuGroupHeader, null, shimProps.children), (_props_subMenuProps1 = props.subMenuProps) === null || _props_subMenuProps1 === void 0 ? void 0 : _props_subMenuProps1.items.map(item =>
|
|
17
15
|
// key is added through item spread
|
|
18
16
|
// eslint-disable-next-line react/jsx-key
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})));
|
|
17
|
+
/*#__PURE__*/
|
|
18
|
+
React.createElement(MenuItemShim, item)));
|
|
22
19
|
}
|
|
23
20
|
if (props.canCheck) {
|
|
24
21
|
const shimProps = shimMenuItemCheckboxProps(props);
|
|
25
|
-
return /*#__PURE__*/React.createElement(MenuItemCheckbox,
|
|
26
|
-
...shimProps
|
|
27
|
-
});
|
|
22
|
+
return /*#__PURE__*/React.createElement(MenuItemCheckbox, shimProps);
|
|
28
23
|
}
|
|
29
24
|
// Nested Menu to handle submenus
|
|
30
|
-
if (((
|
|
25
|
+
if (((_props_subMenuProps = props.subMenuProps) === null || _props_subMenuProps === void 0 ? void 0 : _props_subMenuProps.items) && props.subMenuProps.items.length > 0) {
|
|
31
26
|
const shimmedMenuProps = shimMenuProps(props.subMenuProps);
|
|
32
27
|
const shimmedItemProps = shimMenuItemProps(props);
|
|
33
|
-
return /*#__PURE__*/React.createElement(Menu, {
|
|
34
|
-
...shimmedMenuProps
|
|
35
|
-
}, /*#__PURE__*/React.createElement(MenuTrigger, null, /*#__PURE__*/React.createElement(MenuItem, {
|
|
28
|
+
return /*#__PURE__*/React.createElement(Menu, shimmedMenuProps, /*#__PURE__*/React.createElement(MenuTrigger, null, /*#__PURE__*/React.createElement(MenuItem, {
|
|
36
29
|
...shimmedItemProps,
|
|
37
30
|
hasSubmenu: true
|
|
38
31
|
})), /*#__PURE__*/React.createElement(MenuPopover, null, /*#__PURE__*/React.createElement(MenuList, null, props.subMenuProps.items.map(item =>
|
|
39
|
-
/*#__PURE__*/
|
|
40
32
|
// key is added through item spread
|
|
41
33
|
// eslint-disable-next-line react/jsx-key
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
})))));
|
|
34
|
+
/*#__PURE__*/
|
|
35
|
+
React.createElement(MenuItemShim, item)))));
|
|
45
36
|
}
|
|
46
37
|
const shimProps = shimMenuItemProps(props);
|
|
47
|
-
return /*#__PURE__*/React.createElement(MenuItem,
|
|
48
|
-
...shimProps
|
|
49
|
-
});
|
|
38
|
+
return /*#__PURE__*/React.createElement(MenuItem, shimProps);
|
|
50
39
|
};
|
|
51
40
|
//# sourceMappingURL=MenuShim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ContextualMenuItemType","MenuItem","MenuDivider","MenuGroup","MenuGroupHeader","MenuTrigger","Menu","MenuList","MenuPopover","MenuItemCheckbox","shimMenuHeaderProps","shimMenuItemCheckboxProps","shimMenuItemProps","shimMenuProps","MenuItemShim","props","itemType","Divider","shimProps","createElement","Section","
|
|
1
|
+
{"version":3,"names":["React","ContextualMenuItemType","MenuItem","MenuDivider","MenuGroup","MenuGroupHeader","MenuTrigger","Menu","MenuList","MenuPopover","MenuItemCheckbox","shimMenuHeaderProps","shimMenuItemCheckboxProps","shimMenuItemProps","shimMenuProps","MenuItemShim","props","_props_subMenuProps","itemType","Divider","shimProps","createElement","Section","_props_subMenuProps1","children","subMenuProps","items","map","item","canCheck","length","shimmedMenuProps","shimmedItemProps","hasSubmenu"],"sources":["../../../src/components/Menu/MenuShim.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { ContextualMenuItemType } from '@fluentui/react';\nimport type { IContextualMenuItem } from '@fluentui/react';\nimport {\n MenuItem,\n MenuDivider,\n MenuGroup,\n MenuGroupHeader,\n MenuTrigger,\n Menu,\n MenuList,\n MenuPopover,\n MenuItemCheckbox,\n MenuDividerProps,\n} from '@fluentui/react-components';\n\nimport { shimMenuHeaderProps, shimMenuItemCheckboxProps, shimMenuItemProps, shimMenuProps } from './shimMenuProps';\n\nexport const MenuItemShim = (props: IContextualMenuItem) => {\n if (props.itemType === ContextualMenuItemType.Divider) {\n const shimProps = shimMenuItemProps(props);\n return <MenuDivider {...(shimProps as MenuDividerProps)} />;\n }\n\n if (props.itemType === ContextualMenuItemType.Section) {\n const shimProps = shimMenuHeaderProps(props);\n return (\n <MenuGroup>\n <MenuGroupHeader>{shimProps.children}</MenuGroupHeader>\n {/* //TODO: sectionProps handling */}\n {props.subMenuProps?.items.map(item => (\n // key is added through item spread\n // eslint-disable-next-line react/jsx-key\n <MenuItemShim {...item} />\n ))}\n </MenuGroup>\n );\n }\n\n if (props.canCheck) {\n const shimProps = shimMenuItemCheckboxProps(props);\n return <MenuItemCheckbox {...shimProps} />;\n }\n\n // Nested Menu to handle submenus\n if (props.subMenuProps?.items && props.subMenuProps.items.length > 0) {\n const shimmedMenuProps = shimMenuProps(props.subMenuProps);\n const shimmedItemProps = shimMenuItemProps(props);\n\n return (\n <Menu {...shimmedMenuProps}>\n <MenuTrigger>\n <MenuItem {...shimmedItemProps} hasSubmenu />\n </MenuTrigger>\n <MenuPopover>\n <MenuList>\n {props.subMenuProps.items.map(item => (\n // key is added through item spread\n // eslint-disable-next-line react/jsx-key\n <MenuItemShim {...item} />\n ))}\n </MenuList>\n </MenuPopover>\n </Menu>\n );\n }\n\n const shimProps = shimMenuItemProps(props);\n return <MenuItem {...shimProps} />;\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAEvB,SAASC,sBAAsB,QAAQ;AAEvC,SACEC,QAAQ,EACRC,WAAW,EACXC,SAAS,EACTC,eAAe,EACfC,WAAW,EACXC,IAAI,EACJC,QAAQ,EACRC,WAAW,EACXC,gBAAgB,QAEX;AAEP,SAASC,mBAAmB,EAAEC,yBAAyB,EAAEC,iBAAiB,EAAEC,aAAa,QAAQ;AAEjG,OAAO,MAAMC,YAAA,GAAgBC,KAAA,IAA+B;MA2BtDC,mBAAA;EA1BJ,IAAID,KAAA,CAAME,QAAQ,KAAKjB,sBAAA,CAAuBkB,OAAO,EAAE;IACrD,MAAMC,SAAA,GAAYP,iBAAA,CAAkBG,KAAA;IACpC,oBAAOhB,KAAA,CAAAqB,aAAA,CAAClB,WAAA,EAAiBiB,SAAA;EAC3B;EAEA,IAAIJ,KAAA,CAAME,QAAQ,KAAKjB,sBAAA,CAAuBqB,OAAO,EAAE;QAMhDC,oBAAA;IALL,MAAMH,SAAA,GAAYT,mBAAA,CAAoBK,KAAA;IACtC,oBACEhB,KAAA,CAAAqB,aAAA,CAACjB,SAAA,qBACCJ,KAAA,CAAAqB,aAAA,CAAChB,eAAA,QAAiBe,SAAA,CAAUI,QAAQ,GAEnC,CAAAD,oBAAA,GAAAP,KAAA,CAAMS,YAAY,cAAlBF,oBAAA,uBAAAA,oBAAA,CAAoBG,KAAA,CAAMC,GAAG,CAACC,IAAA;IAC7B;IACA;;IACA5B,KAAA,CAAAqB,aAAA,CAACN,YAAA,EAAiBa,IAAA,EAClB;EAGR;EAEA,IAAIZ,KAAA,CAAMa,QAAQ,EAAE;IAClB,MAAMT,SAAA,GAAYR,yBAAA,CAA0BI,KAAA;IAC5C,oBAAOhB,KAAA,CAAAqB,aAAA,CAACX,gBAAA,EAAqBU,SAAA;EAC/B;EAEA;EACA,IAAI,EAAAH,mBAAA,GAAAD,KAAA,CAAMS,YAAY,cAAlBR,mBAAA,uBAAAA,mBAAA,CAAoBS,KAAK,KAAIV,KAAA,CAAMS,YAAY,CAACC,KAAK,CAACI,MAAM,GAAG,GAAG;IACpE,MAAMC,gBAAA,GAAmBjB,aAAA,CAAcE,KAAA,CAAMS,YAAY;IACzD,MAAMO,gBAAA,GAAmBnB,iBAAA,CAAkBG,KAAA;IAE3C,oBACEhB,KAAA,CAAAqB,aAAA,CAACd,IAAA,EAASwB,gBAAA,eACR/B,KAAA,CAAAqB,aAAA,CAACf,WAAA,qBACCN,KAAA,CAAAqB,aAAA,CAACnB,QAAA;MAAU,GAAG8B,gBAAgB;MAAEC,UAAA;sBAElCjC,KAAA,CAAAqB,aAAA,CAACZ,WAAA,qBACCT,KAAA,CAAAqB,aAAA,CAACb,QAAA,QACEQ,KAAA,CAAMS,YAAY,CAACC,KAAK,CAACC,GAAG,CAACC,IAAA;IAC5B;IACA;;IACA5B,KAAA,CAAAqB,aAAA,CAACN,YAAA,EAAiBa,IAAA;EAM9B;EAEA,MAAMR,SAAA,GAAYP,iBAAA,CAAkBG,KAAA;EACpC,oBAAOhB,KAAA,CAAAqB,aAAA,CAACnB,QAAA,EAAakB,SAAA;AACvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/components/Menu/index.ts"],"sourcesContent":["export * from './MenuShim';\nexport * from './shimMenuProps';\n"],"mappings":"AAAA,cAAc;AACd,cAAc"}
|
|
@@ -8,9 +8,7 @@ export const shimMenuProps = props => {
|
|
|
8
8
|
};
|
|
9
9
|
export const shimMenuItemProps = props => {
|
|
10
10
|
//TODO: Handle menuItem.onRenderIcon
|
|
11
|
-
const icon = props.iconProps ? /*#__PURE__*/React.createElement(Icon,
|
|
12
|
-
...props.iconProps
|
|
13
|
-
}) : undefined;
|
|
11
|
+
const icon = props.iconProps ? /*#__PURE__*/React.createElement(Icon, props.iconProps) : undefined;
|
|
14
12
|
return {
|
|
15
13
|
...props,
|
|
16
14
|
'aria-label': props.ariaLabel,
|
|
@@ -27,9 +25,9 @@ export const shimMenuItemCheckboxProps = props => {
|
|
|
27
25
|
};
|
|
28
26
|
};
|
|
29
27
|
export const shimMenuHeaderProps = props => {
|
|
30
|
-
var
|
|
28
|
+
var _props_sectionProps;
|
|
31
29
|
return {
|
|
32
|
-
children: (
|
|
30
|
+
children: (_props_sectionProps = props.sectionProps) === null || _props_sectionProps === void 0 ? void 0 : _props_sectionProps.title
|
|
33
31
|
};
|
|
34
32
|
};
|
|
35
33
|
//# sourceMappingURL=shimMenuProps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Icon","shimMenuProps","props","hasIcons","items","some","i","iconProps","hasCheckmarks","canCheck","checked","shimMenuItemProps","icon","createElement","undefined","ariaLabel","children","text","secondaryContent","secondaryText","shimMenuItemCheckboxProps","name","value","shimMenuHeaderProps","
|
|
1
|
+
{"version":3,"names":["React","Icon","shimMenuProps","props","hasIcons","items","some","i","iconProps","hasCheckmarks","canCheck","checked","shimMenuItemProps","icon","createElement","undefined","ariaLabel","children","text","secondaryContent","secondaryText","shimMenuItemCheckboxProps","name","value","shimMenuHeaderProps","_props_sectionProps","sectionProps","title"],"sources":["../../../src/components/Menu/shimMenuProps.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Icon } from '@fluentui/react';\nimport type { IContextualMenuItem, IContextualMenuProps } from '@fluentui/react';\nimport type { MenuItemProps, MenuGroupHeaderProps, MenuItemCheckboxProps, MenuProps } from '@fluentui/react-menu';\n\nexport const shimMenuProps = (props: IContextualMenuProps): Partial<MenuProps> => {\n return {\n hasIcons: props?.items.some(i => i.iconProps),\n hasCheckmarks: props?.items.some(i => i.canCheck || i.checked),\n };\n};\n\nexport const shimMenuItemProps = (props: IContextualMenuItem): MenuItemProps => {\n //TODO: Handle menuItem.onRenderIcon\n const icon = props.iconProps ? <Icon {...props.iconProps} /> : undefined;\n\n return {\n ...props,\n 'aria-label': props.ariaLabel,\n children: props.text,\n icon,\n secondaryContent: props.secondaryText,\n } as MenuItemProps;\n};\n\nexport const shimMenuItemCheckboxProps = (props: IContextualMenuItem): MenuItemCheckboxProps => {\n return {\n ...shimMenuItemProps(props),\n name: props.text || 'name',\n value: props.value || 'value',\n };\n};\n\nexport const shimMenuHeaderProps = (props: IContextualMenuItem): MenuGroupHeaderProps => {\n return {\n children: props.sectionProps?.title,\n };\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAEvB,SAASC,IAAI,QAAQ;AAIrB,OAAO,MAAMC,aAAA,GAAiBC,KAAA,IAAoD;EAChF,OAAO;IACLC,QAAA,EAAUD,KAAA,aAAAA,KAAA,uBAAAA,KAAA,CAAOE,KAAK,CAACC,IAAI,CAACC,CAAA,IAAKA,CAAA,CAAEC,SAAS,CAAC;IAC7CC,aAAA,EAAeN,KAAA,aAAAA,KAAA,uBAAAA,KAAA,CAAOE,KAAK,CAACC,IAAI,CAACC,CAAA,IAAKA,CAAA,CAAEG,QAAQ,IAAIH,CAAA,CAAEI,OAAO;EAC/D;AACF;AAEA,OAAO,MAAMC,iBAAA,GAAqBT,KAAA,IAA8C;EAC9E;EACA,MAAMU,IAAA,GAAOV,KAAA,CAAMK,SAAS,gBAAGR,KAAA,CAAAc,aAAA,CAACb,IAAA,EAASE,KAAA,CAAMK,SAAS,IAAOO,SAAS;EAExE,OAAO;IACL,GAAGZ,KAAK;IACR,cAAcA,KAAA,CAAMa,SAAS;IAC7BC,QAAA,EAAUd,KAAA,CAAMe,IAAI;IACpBL,IAAA;IACAM,gBAAA,EAAkBhB,KAAA,CAAMiB;EAC1B;AACF;AAEA,OAAO,MAAMC,yBAAA,GAA6BlB,KAAA,IAAsD;EAC9F,OAAO;IACL,GAAGS,iBAAA,CAAkBT,KAAA,CAAM;IAC3BmB,IAAA,EAAMnB,KAAA,CAAMe,IAAI,IAAI;IACpBK,KAAA,EAAOpB,KAAA,CAAMoB,KAAK,IAAI;EACxB;AACF;AAEA,OAAO,MAAMC,mBAAA,GAAuBrB,KAAA,IAAqD;MAE3EsB,mBAAA;EADZ,OAAO;IACLR,QAAA,EAAU,CAAAQ,mBAAA,GAAAtB,KAAA,CAAMuB,YAAY,cAAlBD,mBAAA,uBAAAA,mBAAA,CAAoBE;EAChC;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","__styles","mergeClasses","stackItemClassNames","root","useStackItemShimStyles","Bqenvij","a9b677","disableShrink","Bnnss6s","verticalFill","d","useFlexAlignSelfStyles","auto","qb2dma","baseline","center","start","end","stretch","useFlexGrowStyles","Bh6795r","inherit","initial","revert","unset","useFlexShrinkStyles","useFlexOrderStyles","Bxn5svx","StackItemShim","props","grow","shrink","align","order","className","children","styles","alignSelfStyles","shrinkFlexStyles","growFlexStyles","orderFlexStyles","stackItemStyles","push","flexGrow","rootStyles","createElement"],"sources":["
|
|
1
|
+
{"version":3,"names":["React","__styles","mergeClasses","stackItemClassNames","root","useStackItemShimStyles","Bqenvij","a9b677","disableShrink","Bnnss6s","verticalFill","d","useFlexAlignSelfStyles","auto","qb2dma","baseline","center","start","end","stretch","useFlexGrowStyles","Bh6795r","inherit","initial","revert","unset","useFlexShrinkStyles","useFlexOrderStyles","Bxn5svx","StackItemShim","props","grow","shrink","align","order","className","children","styles","alignSelfStyles","shrinkFlexStyles","growFlexStyles","orderFlexStyles","stackItemStyles","push","flexGrow","rootStyles","createElement"],"sources":["../../../src/components/Stack/StackItemShim.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { IStackItemProps } from '@fluentui/react';\nimport { makeStyles, mergeClasses } from '@griffel/react';\n\nconst stackItemClassNames = {\n root: 'ms-StackItem',\n};\n\nconst useStackItemShimStyles = makeStyles({\n root: {\n height: 'auto',\n width: 'auto',\n },\n disableShrink: {\n flexShrink: 0,\n },\n verticalFill: {\n height: '100%',\n },\n});\n\nconst useFlexAlignSelfStyles = makeStyles({\n auto: {\n alignSelf: 'auto',\n },\n baseline: {\n alignSelf: 'baseline',\n },\n center: {\n alignSelf: 'center',\n },\n start: {\n alignSelf: 'flex-start',\n },\n end: {\n alignSelf: 'flex-end',\n },\n stretch: {\n alignSelf: 'stretch',\n },\n});\n\nconst useFlexGrowStyles = makeStyles({\n inherit: {\n flexGrow: 'inherit',\n },\n initial: {\n flexGrow: 'initial',\n },\n revert: {\n flexGrow: 'revert',\n },\n unset: {\n flexGrow: 'unset',\n },\n '1': {\n flexGrow: 1,\n },\n '2': {\n flexGrow: 2,\n },\n '3': {\n flexGrow: 3,\n },\n});\n\nconst useFlexShrinkStyles = makeStyles({\n inherit: {\n flexShrink: 'inherit',\n },\n initial: {\n flexShrink: 'initial',\n },\n revert: {\n flexShrink: 'revert',\n },\n unset: {\n flexShrink: 'unset',\n },\n 0: {\n flexShrink: 0,\n },\n 1: {\n flexShrink: 1,\n },\n 2: {\n flexShrink: 2,\n },\n});\n\nconst useFlexOrderStyles = makeStyles({\n inherit: {\n order: 'inherit',\n },\n initial: {\n order: 'initial',\n },\n unset: {\n order: 'unset',\n },\n revert: {\n order: 'revert',\n },\n '-3': {\n order: -3,\n },\n '-2': {\n order: -2,\n },\n '-1': {\n order: -1,\n },\n '0': {\n order: 0,\n },\n '1': {\n order: 1,\n },\n '2': {\n order: 2,\n },\n '3': {\n order: 3,\n },\n});\n\nexport const StackItemShim = (props: IStackItemProps) => {\n const { grow, shrink, disableShrink, align, verticalFill, order, className, children } = props;\n\n const styles = useStackItemShimStyles();\n const alignSelfStyles = useFlexAlignSelfStyles();\n const shrinkFlexStyles = useFlexShrinkStyles();\n const growFlexStyles: Record<string, string> = useFlexGrowStyles();\n const orderFlexStyles: Record<string, string> = useFlexOrderStyles();\n\n const stackItemStyles = [styles.root, align && alignSelfStyles[align], verticalFill && styles.verticalFill];\n\n if (order) {\n stackItemStyles.push(orderFlexStyles[order]);\n }\n\n if (grow) {\n const flexGrow = grow === true ? growFlexStyles[1] : growFlexStyles[grow];\n stackItemStyles.push(flexGrow);\n }\n\n if (shrink && !disableShrink) {\n stackItemStyles.push(shrinkFlexStyles[1]);\n } else if (disableShrink || (!grow && !shrink)) {\n stackItemStyles.push(shrinkFlexStyles[0]);\n }\n\n if (disableShrink) {\n stackItemStyles.push(styles.disableShrink);\n }\n\n const rootStyles = mergeClasses(stackItemClassNames.root, ...stackItemStyles, className);\n\n return <div className={rootStyles}>{children}</div>;\n};\n"],"mappings":"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"}
|