@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 CHANGED
@@ -1,26 +1,26 @@
1
1
  # Change Log - @fluentui/react-button
2
2
 
3
- This log was last generated on Mon, 24 Jun 2024 04:46:27 GMT and should not be manually modified.
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-20240624-0406.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightly-20240624-0406.1)
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
- Mon, 24 Jun 2024 04:46:27 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.3.84..@fluentui/react-button_v0.0.0-nightly-20240624-0406.1)
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-20240624-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/3bdf1ff4d50e4897137a175d8e677e755ad367a4) by beachball)
16
- - Bump @fluentui/react-aria to v0.0.0-nightly-20240624-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/3bdf1ff4d50e4897137a175d8e677e755ad367a4) by beachball)
17
- - Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20240624-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/3bdf1ff4d50e4897137a175d8e677e755ad367a4) by beachball)
18
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20240624-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/3bdf1ff4d50e4897137a175d8e677e755ad367a4) by beachball)
19
- - Bump @fluentui/react-tabster to v0.0.0-nightly-20240624-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/3bdf1ff4d50e4897137a175d8e677e755ad367a4) by beachball)
20
- - Bump @fluentui/react-theme to v0.0.0-nightly-20240624-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/3bdf1ff4d50e4897137a175d8e677e755ad367a4) by beachball)
21
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20240624-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/3bdf1ff4d50e4897137a175d8e677e755ad367a4) by beachball)
22
- - Bump @fluentui/react-conformance to v0.0.0-nightly-20240624-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/3bdf1ff4d50e4897137a175d8e677e755ad367a4) by beachball)
23
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20240624-0406.1 ([commit](https://github.com/microsoft/fluentui/commit/3bdf1ff4d50e4897137a175d8e677e755ad367a4) by beachball)
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
- var _props_ariaexpanded;
11
- buttonState.root['aria-expanded'] = (_props_ariaexpanded = props['aria-expanded']) !== null && _props_ariaexpanded !== void 0 ? _props_ariaexpanded : false;
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'] ?? 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;QACVD;IAApCE,YAAYC,IAAI,CAAC,gBAAgB,GAAGH,CAAAA,sBAAAA,KAAK,CAAC,gBAAgB,cAAtBA,iCAAAA,sBAA0B;IAE9D,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"}
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
- var _props_ariaexpanded;
20
- buttonState.root['aria-expanded'] = (_props_ariaexpanded = props['aria-expanded']) !== null && _props_ariaexpanded !== void 0 ? _props_ariaexpanded : false;
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 var _props_ariaexpanded;\n buttonState.root['aria-expanded'] = (_props_ariaexpanded = props['aria-expanded']) !== null && _props_ariaexpanded !== void 0 ? _props_ariaexpanded : 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","_props_ariaexpanded","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,IAAIG;IACJF,YAAYG,IAAI,CAAC,gBAAgB,GAAG,AAACD,CAAAA,sBAAsBJ,KAAK,CAAC,gBAAgB,AAAD,MAAO,QAAQI,wBAAwB,KAAK,IAAIA,sBAAsB;IACtJ,OAAO;QACH,eAAe;QACf,GAAGF,WAAW;QACd,uCAAuC;QACvCI,UAAUC,QAAQ,CAACP,MAAMQ,QAAQ;QACjC,mBAAmB;QACnBC,YAAY;YACRJ,MAAM;YACNK,MAAM;YACNX,UAAU;QACd;QACAA,UAAUY,oBAAI,CAACC,QAAQ,CAACb,UAAU;YAC9Bc,cAAc;gBACVL,UAAU,WAAW,GAAGM,OAAMC,aAAa,CAACC,8BAAkB,EAAE;YACpE;YACAC,iBAAiB;YACjBC,aAAa;QACjB;IACJ;AACJ"}
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-20240624-0406.1",
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-20240624-0406.1",
31
- "@fluentui/react-conformance-griffel": "0.0.0-nightly-20240624-0406.1",
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-20240624-0406.1",
37
- "@fluentui/react-aria": "0.0.0-nightly-20240624-0406.1",
38
- "@fluentui/react-icons": "^2.0.239",
39
- "@fluentui/react-jsx-runtime": "0.0.0-nightly-20240624-0406.1",
40
- "@fluentui/react-shared-contexts": "0.0.0-nightly-20240624-0406.1",
41
- "@fluentui/react-tabster": "0.0.0-nightly-20240624-0406.1",
42
- "@fluentui/react-theme": "0.0.0-nightly-20240624-0406.1",
43
- "@fluentui/react-utilities": "0.0.0-nightly-20240624-0406.1",
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
  },