@fluentui/react-button 0.0.0-nightly-20240624-0406.1 → 0.0.0-nightly-20240626-0406.1
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.md +13 -13
- package/lib/components/MenuButton/useMenuButton.js +2 -2
- package/lib/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButton.js +2 -2
- package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
# Change Log - @fluentui/react-button
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Wed, 26 Jun 2024 04:45:54 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-nightly-
|
7
|
+
## [0.0.0-nightly-20240626-0406.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightly-20240626-0406.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.3.84..@fluentui/react-button_v0.0.0-nightly-
|
9
|
+
Wed, 26 Jun 2024 04:45:54 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.3.84..@fluentui/react-button_v0.0.0-nightly-20240626-0406.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
14
|
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
|
15
|
-
- Bump @fluentui/keyboard-keys to v0.0.0-nightly-
|
16
|
-
- Bump @fluentui/react-aria to v0.0.0-nightly-
|
17
|
-
- Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-
|
18
|
-
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly-
|
19
|
-
- Bump @fluentui/react-tabster to v0.0.0-nightly-
|
20
|
-
- Bump @fluentui/react-theme to v0.0.0-nightly-
|
21
|
-
- Bump @fluentui/react-utilities to v0.0.0-nightly-
|
22
|
-
- Bump @fluentui/react-conformance to v0.0.0-nightly-
|
23
|
-
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-
|
15
|
+
- Bump @fluentui/keyboard-keys to v0.0.0-nightly-20240626-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/73584f7108fffb563d04bbfe2c8b4c152f69e7e1) by beachball)
|
16
|
+
- Bump @fluentui/react-aria to v0.0.0-nightly-20240626-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/73584f7108fffb563d04bbfe2c8b4c152f69e7e1) by beachball)
|
17
|
+
- Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20240626-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/73584f7108fffb563d04bbfe2c8b4c152f69e7e1) by beachball)
|
18
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20240626-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/73584f7108fffb563d04bbfe2c8b4c152f69e7e1) by beachball)
|
19
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightly-20240626-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/73584f7108fffb563d04bbfe2c8b4c152f69e7e1) by beachball)
|
20
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly-20240626-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/73584f7108fffb563d04bbfe2c8b4c152f69e7e1) by beachball)
|
21
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly-20240626-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/73584f7108fffb563d04bbfe2c8b4c152f69e7e1) by beachball)
|
22
|
+
- Bump @fluentui/react-conformance to v0.0.0-nightly-20240626-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/73584f7108fffb563d04bbfe2c8b4c152f69e7e1) by beachball)
|
23
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20240626-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/73584f7108fffb563d04bbfe2c8b4c152f69e7e1) by beachball)
|
24
24
|
|
25
25
|
## [9.3.84](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.3.84)
|
26
26
|
|
@@ -7,8 +7,8 @@ import { useButton_unstable } from '../Button/index';
|
|
7
7
|
*/ export const useMenuButton_unstable = ({ menuIcon, ...props }, ref)=>{
|
8
8
|
'use no memo';
|
9
9
|
const buttonState = useButton_unstable(props, ref);
|
10
|
-
|
11
|
-
buttonState.root['aria-expanded'] =
|
10
|
+
// force aria-expanded to be a boolean, not a string
|
11
|
+
buttonState.root['aria-expanded'] = props['aria-expanded'] ? props['aria-expanded'] === 'true' || props['aria-expanded'] === true : false;
|
12
12
|
return {
|
13
13
|
// Button state
|
14
14
|
...buttonState,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["useMenuButton.tsx"],"sourcesContent":["import * as React from 'react';\nimport { ChevronDownRegular } from '@fluentui/react-icons';\nimport { slot } from '@fluentui/react-utilities';\nimport { useButton_unstable } from '../Button/index';\nimport type { MenuButtonProps, MenuButtonState } from './MenuButton.types';\n\n/**\n * Given user props, returns the final state for a MenuButton.\n */\nexport const useMenuButton_unstable = (\n { menuIcon, ...props }: MenuButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): MenuButtonState => {\n 'use no memo';\n\n const buttonState = useButton_unstable(props, ref);\n buttonState.root['aria-expanded'] = props['aria-expanded']
|
1
|
+
{"version":3,"sources":["useMenuButton.tsx"],"sourcesContent":["import * as React from 'react';\nimport { ChevronDownRegular } from '@fluentui/react-icons';\nimport { slot } from '@fluentui/react-utilities';\nimport { useButton_unstable } from '../Button/index';\nimport type { MenuButtonProps, MenuButtonState } from './MenuButton.types';\n\n/**\n * Given user props, returns the final state for a MenuButton.\n */\nexport const useMenuButton_unstable = (\n { menuIcon, ...props }: MenuButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): MenuButtonState => {\n 'use no memo';\n\n const buttonState = useButton_unstable(props, ref);\n // force aria-expanded to be a boolean, not a string\n buttonState.root['aria-expanded'] = props['aria-expanded']\n ? props['aria-expanded'] === 'true' || props['aria-expanded'] === true\n : false;\n\n return {\n // Button state\n ...buttonState,\n\n // State calculated from a set of props\n iconOnly: Boolean(!props.children),\n\n // Slots definition\n components: {\n root: 'button',\n icon: 'span',\n menuIcon: 'span',\n },\n\n menuIcon: slot.optional(menuIcon, {\n defaultProps: {\n children: <ChevronDownRegular />,\n },\n renderByDefault: true,\n elementType: 'span',\n }),\n };\n};\n"],"names":["React","ChevronDownRegular","slot","useButton_unstable","useMenuButton_unstable","menuIcon","props","ref","buttonState","root","iconOnly","Boolean","children","components","icon","optional","defaultProps","renderByDefault","elementType"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,kBAAkB,QAAQ,wBAAwB;AAC3D,SAASC,IAAI,QAAQ,4BAA4B;AACjD,SAASC,kBAAkB,QAAQ,kBAAkB;AAGrD;;CAEC,GACD,OAAO,MAAMC,yBAAyB,CACpC,EAAEC,QAAQ,EAAE,GAAGC,OAAwB,EACvCC;IAEA;IAEA,MAAMC,cAAcL,mBAAmBG,OAAOC;IAC9C,oDAAoD;IACpDC,YAAYC,IAAI,CAAC,gBAAgB,GAAGH,KAAK,CAAC,gBAAgB,GACtDA,KAAK,CAAC,gBAAgB,KAAK,UAAUA,KAAK,CAAC,gBAAgB,KAAK,OAChE;IAEJ,OAAO;QACL,eAAe;QACf,GAAGE,WAAW;QAEd,uCAAuC;QACvCE,UAAUC,QAAQ,CAACL,MAAMM,QAAQ;QAEjC,mBAAmB;QACnBC,YAAY;YACVJ,MAAM;YACNK,MAAM;YACNT,UAAU;QACZ;QAEAA,UAAUH,KAAKa,QAAQ,CAACV,UAAU;YAChCW,cAAc;gBACZJ,wBAAU,oBAACX;YACb;YACAgB,iBAAiB;YACjBC,aAAa;QACf;IACF;AACF,EAAE"}
|
@@ -16,8 +16,8 @@ const _index = require("../Button/index");
|
|
16
16
|
const useMenuButton_unstable = ({ menuIcon, ...props }, ref)=>{
|
17
17
|
'use no memo';
|
18
18
|
const buttonState = (0, _index.useButton_unstable)(props, ref);
|
19
|
-
|
20
|
-
buttonState.root['aria-expanded'] =
|
19
|
+
// force aria-expanded to be a boolean, not a string
|
20
|
+
buttonState.root['aria-expanded'] = props['aria-expanded'] ? props['aria-expanded'] === 'true' || props['aria-expanded'] === true : false;
|
21
21
|
return {
|
22
22
|
// Button state
|
23
23
|
...buttonState,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["useMenuButton.js"],"sourcesContent":["import * as React from 'react';\nimport { ChevronDownRegular } from '@fluentui/react-icons';\nimport { slot } from '@fluentui/react-utilities';\nimport { useButton_unstable } from '../Button/index';\n/**\n * Given user props, returns the final state for a MenuButton.\n */ export const useMenuButton_unstable = ({ menuIcon, ...props }, ref)=>{\n 'use no memo';\n const buttonState = useButton_unstable(props, ref);\n
|
1
|
+
{"version":3,"sources":["useMenuButton.js"],"sourcesContent":["import * as React from 'react';\nimport { ChevronDownRegular } from '@fluentui/react-icons';\nimport { slot } from '@fluentui/react-utilities';\nimport { useButton_unstable } from '../Button/index';\n/**\n * Given user props, returns the final state for a MenuButton.\n */ export const useMenuButton_unstable = ({ menuIcon, ...props }, ref)=>{\n 'use no memo';\n const buttonState = useButton_unstable(props, ref);\n // force aria-expanded to be a boolean, not a string\n buttonState.root['aria-expanded'] = props['aria-expanded'] ? props['aria-expanded'] === 'true' || props['aria-expanded'] === true : false;\n return {\n // Button state\n ...buttonState,\n // State calculated from a set of props\n iconOnly: Boolean(!props.children),\n // Slots definition\n components: {\n root: 'button',\n icon: 'span',\n menuIcon: 'span'\n },\n menuIcon: slot.optional(menuIcon, {\n defaultProps: {\n children: /*#__PURE__*/ React.createElement(ChevronDownRegular, null)\n },\n renderByDefault: true,\n elementType: 'span'\n })\n };\n};\n"],"names":["useMenuButton_unstable","menuIcon","props","ref","buttonState","useButton_unstable","root","iconOnly","Boolean","children","components","icon","slot","optional","defaultProps","React","createElement","ChevronDownRegular","renderByDefault","elementType"],"mappings":";;;;+BAMiBA;;;eAAAA;;;;iEANM;4BACY;gCACd;uBACc;AAGxB,MAAMA,yBAAyB,CAAC,EAAEC,QAAQ,EAAE,GAAGC,OAAO,EAAEC;IAC/D;IACA,MAAMC,cAAcC,IAAAA,yBAAkB,EAACH,OAAOC;IAC9C,oDAAoD;IACpDC,YAAYE,IAAI,CAAC,gBAAgB,GAAGJ,KAAK,CAAC,gBAAgB,GAAGA,KAAK,CAAC,gBAAgB,KAAK,UAAUA,KAAK,CAAC,gBAAgB,KAAK,OAAO;IACpI,OAAO;QACH,eAAe;QACf,GAAGE,WAAW;QACd,uCAAuC;QACvCG,UAAUC,QAAQ,CAACN,MAAMO,QAAQ;QACjC,mBAAmB;QACnBC,YAAY;YACRJ,MAAM;YACNK,MAAM;YACNV,UAAU;QACd;QACAA,UAAUW,oBAAI,CAACC,QAAQ,CAACZ,UAAU;YAC9Ba,cAAc;gBACVL,UAAU,WAAW,GAAGM,OAAMC,aAAa,CAACC,8BAAkB,EAAE;YACpE;YACAC,iBAAiB;YACjBC,aAAa;QACjB;IACJ;AACJ"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-button",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20240626-0406.1",
|
4
4
|
"description": "Fluent UI React Button component.",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -27,20 +27,20 @@
|
|
27
27
|
"devDependencies": {
|
28
28
|
"@fluentui/a11y-testing": "*",
|
29
29
|
"@fluentui/eslint-plugin": "*",
|
30
|
-
"@fluentui/react-conformance": "0.0.0-nightly-
|
31
|
-
"@fluentui/react-conformance-griffel": "0.0.0-nightly-
|
30
|
+
"@fluentui/react-conformance": "0.0.0-nightly-20240626-0406.1",
|
31
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20240626-0406.1",
|
32
32
|
"@fluentui/scripts-api-extractor": "*",
|
33
33
|
"@fluentui/scripts-tasks": "*"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"@fluentui/keyboard-keys": "0.0.0-nightly-
|
37
|
-
"@fluentui/react-aria": "0.0.0-nightly-
|
38
|
-
"@fluentui/react-icons": "^2.0.
|
39
|
-
"@fluentui/react-jsx-runtime": "0.0.0-nightly-
|
40
|
-
"@fluentui/react-shared-contexts": "0.0.0-nightly-
|
41
|
-
"@fluentui/react-tabster": "0.0.0-nightly-
|
42
|
-
"@fluentui/react-theme": "0.0.0-nightly-
|
43
|
-
"@fluentui/react-utilities": "0.0.0-nightly-
|
36
|
+
"@fluentui/keyboard-keys": "0.0.0-nightly-20240626-0406.1",
|
37
|
+
"@fluentui/react-aria": "0.0.0-nightly-20240626-0406.1",
|
38
|
+
"@fluentui/react-icons": "^2.0.245",
|
39
|
+
"@fluentui/react-jsx-runtime": "0.0.0-nightly-20240626-0406.1",
|
40
|
+
"@fluentui/react-shared-contexts": "0.0.0-nightly-20240626-0406.1",
|
41
|
+
"@fluentui/react-tabster": "0.0.0-nightly-20240626-0406.1",
|
42
|
+
"@fluentui/react-theme": "0.0.0-nightly-20240626-0406.1",
|
43
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20240626-0406.1",
|
44
44
|
"@griffel/react": "^1.5.22",
|
45
45
|
"@swc/helpers": "^0.5.1"
|
46
46
|
},
|