@fluentui/react-button 0.0.0-nightly07d9ed6d1b20211221.1 → 0.0.0-nightly0bc161458e20220126.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.
Files changed (148) hide show
  1. package/CHANGELOG.json +74 -26
  2. package/CHANGELOG.md +19 -13
  3. package/dist/react-button.d.ts +20 -20
  4. package/lib/components/Button/Button.js +6 -6
  5. package/lib/components/Button/Button.js.map +1 -1
  6. package/lib/components/Button/Button.types.d.ts +1 -1
  7. package/lib/components/Button/index.d.ts +1 -1
  8. package/lib/components/Button/index.js +1 -1
  9. package/lib/components/Button/index.js.map +1 -1
  10. package/lib/components/Button/renderButton.d.ts +1 -1
  11. package/lib/components/Button/renderButton.js +2 -2
  12. package/lib/components/Button/renderButton.js.map +1 -1
  13. package/lib/components/Button/useButton.d.ts +1 -1
  14. package/lib/components/Button/useButton.js +1 -1
  15. package/lib/components/Button/useButton.js.map +1 -1
  16. package/lib/components/Button/useButtonStyles.d.ts +1 -1
  17. package/lib/components/Button/useButtonStyles.js +3 -2
  18. package/lib/components/Button/useButtonStyles.js.map +1 -1
  19. package/lib/components/CompoundButton/CompoundButton.js +6 -6
  20. package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
  21. package/lib/components/CompoundButton/index.d.ts +1 -1
  22. package/lib/components/CompoundButton/index.js +1 -1
  23. package/lib/components/CompoundButton/index.js.map +1 -1
  24. package/lib/components/CompoundButton/renderCompoundButton.d.ts +1 -1
  25. package/lib/components/CompoundButton/renderCompoundButton.js +2 -2
  26. package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
  27. package/lib/components/CompoundButton/useCompoundButton.d.ts +1 -1
  28. package/lib/components/CompoundButton/useCompoundButton.js +3 -3
  29. package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
  30. package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -1
  31. package/lib/components/CompoundButton/useCompoundButtonStyles.js +5 -4
  32. package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  33. package/lib/components/MenuButton/MenuButton.js +6 -6
  34. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  35. package/lib/components/MenuButton/index.d.ts +1 -1
  36. package/lib/components/MenuButton/index.js +1 -1
  37. package/lib/components/MenuButton/index.js.map +1 -1
  38. package/lib/components/MenuButton/renderMenuButton.d.ts +1 -1
  39. package/lib/components/MenuButton/renderMenuButton.js +2 -2
  40. package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
  41. package/lib/components/MenuButton/useMenuButton.d.ts +1 -1
  42. package/lib/components/MenuButton/useMenuButton.js +5 -5
  43. package/lib/components/MenuButton/useMenuButton.js.map +1 -1
  44. package/lib/components/MenuButton/useMenuButtonStyles.d.ts +1 -1
  45. package/lib/components/MenuButton/useMenuButtonStyles.js +4 -4
  46. package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  47. package/lib/components/SplitButton/SplitButton.js +6 -6
  48. package/lib/components/SplitButton/SplitButton.js.map +1 -1
  49. package/lib/components/SplitButton/SplitButton.types.d.ts +5 -3
  50. package/lib/components/SplitButton/index.d.ts +1 -1
  51. package/lib/components/SplitButton/index.js +1 -1
  52. package/lib/components/SplitButton/index.js.map +1 -1
  53. package/lib/components/SplitButton/renderSplitButton.d.ts +1 -1
  54. package/lib/components/SplitButton/renderSplitButton.js +2 -2
  55. package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
  56. package/lib/components/SplitButton/useSplitButton.d.ts +1 -1
  57. package/lib/components/SplitButton/useSplitButton.js +1 -1
  58. package/lib/components/SplitButton/useSplitButton.js.map +1 -1
  59. package/lib/components/SplitButton/useSplitButtonStyles.d.ts +1 -1
  60. package/lib/components/SplitButton/useSplitButtonStyles.js +3 -2
  61. package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  62. package/lib/components/ToggleButton/ToggleButton.js +6 -6
  63. package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
  64. package/lib/components/ToggleButton/index.d.ts +1 -1
  65. package/lib/components/ToggleButton/index.js +1 -1
  66. package/lib/components/ToggleButton/index.js.map +1 -1
  67. package/lib/components/ToggleButton/renderToggleButton.d.ts +1 -1
  68. package/lib/components/ToggleButton/renderToggleButton.js +1 -1
  69. package/lib/components/ToggleButton/renderToggleButton.js.map +1 -1
  70. package/lib/components/ToggleButton/useToggleButton.d.ts +1 -1
  71. package/lib/components/ToggleButton/useToggleButton.js +3 -3
  72. package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
  73. package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +1 -1
  74. package/lib/components/ToggleButton/useToggleButtonStyles.js +5 -4
  75. package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  76. package/lib-commonjs/components/Button/Button.js +3 -3
  77. package/lib-commonjs/components/Button/Button.js.map +1 -1
  78. package/lib-commonjs/components/Button/Button.types.d.ts +1 -1
  79. package/lib-commonjs/components/Button/index.d.ts +1 -1
  80. package/lib-commonjs/components/Button/index.js +3 -3
  81. package/lib-commonjs/components/Button/index.js.map +1 -1
  82. package/lib-commonjs/components/Button/renderButton.d.ts +1 -1
  83. package/lib-commonjs/components/Button/renderButton.js +4 -4
  84. package/lib-commonjs/components/Button/renderButton.js.map +1 -1
  85. package/lib-commonjs/components/Button/useButton.d.ts +1 -1
  86. package/lib-commonjs/components/Button/useButton.js +3 -3
  87. package/lib-commonjs/components/Button/useButton.js.map +1 -1
  88. package/lib-commonjs/components/Button/useButtonStyles.d.ts +1 -1
  89. package/lib-commonjs/components/Button/useButtonStyles.js +13 -11
  90. package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
  91. package/lib-commonjs/components/CompoundButton/CompoundButton.js +3 -3
  92. package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
  93. package/lib-commonjs/components/CompoundButton/index.d.ts +1 -1
  94. package/lib-commonjs/components/CompoundButton/index.js +3 -3
  95. package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
  96. package/lib-commonjs/components/CompoundButton/renderCompoundButton.d.ts +1 -1
  97. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +4 -4
  98. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
  99. package/lib-commonjs/components/CompoundButton/useCompoundButton.d.ts +1 -1
  100. package/lib-commonjs/components/CompoundButton/useCompoundButton.js +4 -4
  101. package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
  102. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -1
  103. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +16 -14
  104. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  105. package/lib-commonjs/components/MenuButton/MenuButton.js +3 -3
  106. package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
  107. package/lib-commonjs/components/MenuButton/index.d.ts +1 -1
  108. package/lib-commonjs/components/MenuButton/index.js +3 -3
  109. package/lib-commonjs/components/MenuButton/index.js.map +1 -1
  110. package/lib-commonjs/components/MenuButton/renderMenuButton.d.ts +1 -1
  111. package/lib-commonjs/components/MenuButton/renderMenuButton.js +4 -4
  112. package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
  113. package/lib-commonjs/components/MenuButton/useMenuButton.d.ts +1 -1
  114. package/lib-commonjs/components/MenuButton/useMenuButton.js +5 -5
  115. package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
  116. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +1 -1
  117. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +8 -8
  118. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  119. package/lib-commonjs/components/SplitButton/SplitButton.js +3 -3
  120. package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
  121. package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +5 -3
  122. package/lib-commonjs/components/SplitButton/index.d.ts +1 -1
  123. package/lib-commonjs/components/SplitButton/index.js +3 -3
  124. package/lib-commonjs/components/SplitButton/index.js.map +1 -1
  125. package/lib-commonjs/components/SplitButton/renderSplitButton.d.ts +1 -1
  126. package/lib-commonjs/components/SplitButton/renderSplitButton.js +4 -4
  127. package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
  128. package/lib-commonjs/components/SplitButton/useSplitButton.d.ts +1 -1
  129. package/lib-commonjs/components/SplitButton/useSplitButton.js +3 -3
  130. package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
  131. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +1 -1
  132. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +11 -9
  133. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  134. package/lib-commonjs/components/ToggleButton/ToggleButton.js +3 -3
  135. package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -1
  136. package/lib-commonjs/components/ToggleButton/index.d.ts +1 -1
  137. package/lib-commonjs/components/ToggleButton/index.js +3 -3
  138. package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
  139. package/lib-commonjs/components/ToggleButton/renderToggleButton.d.ts +1 -1
  140. package/lib-commonjs/components/ToggleButton/renderToggleButton.js +3 -3
  141. package/lib-commonjs/components/ToggleButton/renderToggleButton.js.map +1 -1
  142. package/lib-commonjs/components/ToggleButton/useToggleButton.d.ts +1 -1
  143. package/lib-commonjs/components/ToggleButton/useToggleButton.js +4 -4
  144. package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
  145. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +1 -1
  146. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +10 -8
  147. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  148. package/package.json +8 -10
package/CHANGELOG.json CHANGED
@@ -2,17 +2,41 @@
2
2
  "name": "@fluentui/react-button",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 21 Dec 2021 04:16:41 GMT",
6
- "tag": "@fluentui/react-button_v0.0.0-nightly07d9ed6d1b20211221.1",
7
- "version": "0.0.0-nightly07d9ed6d1b20211221.1",
5
+ "date": "Wed, 26 Jan 2022 04:16:44 GMT",
6
+ "tag": "@fluentui/react-button_v0.0.0-nightly0bc161458e20220126.1",
7
+ "version": "0.0.0-nightly0bc161458e20220126.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-button",
13
- "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8",
13
+ "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "Humberto.Morimoto@microsoft.com",
18
+ "package": "@fluentui/react-button",
19
+ "commit": "0bc161458eae5ae8d387172430496ce9829b1bb1",
20
+ "comment": "Using ComponentSlotProps instead of ObjectShorthandProps."
21
+ },
22
+ {
23
+ "author": "olfedias@microsoft.com",
24
+ "package": "@fluentui/react-button",
25
+ "commit": "0aa74f3ef5a64c647b5903e21af7ff5423d46182",
26
+ "comment": "Replace make-styles packages with griffel equivalents."
27
+ },
28
+ {
29
+ "author": "ololubek@microsoft.com",
30
+ "package": "@fluentui/react-button",
31
+ "commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
32
+ "comment": "Update react-icons usage to resizable icons"
33
+ },
34
+ {
35
+ "author": "behowell@microsoft.com",
36
+ "package": "@fluentui/react-button",
37
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
38
+ "comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
39
+ },
16
40
  {
17
41
  "author": "ololubek@microsoft.com",
18
42
  "package": "@fluentui/react-button",
@@ -20,61 +44,85 @@
20
44
  "comment": "(fix): Update react-icons dependency to latest version"
21
45
  },
22
46
  {
23
- "author": "olfedias@microsoft.com",
47
+ "author": "Humberto.Morimoto@microsoft.com",
24
48
  "package": "@fluentui/react-button",
25
- "commit": "54118b29fde686ef15fe95a3a97f3fd7edca34a3",
26
- "comment": "update styles to not use CSS shorthands"
49
+ "commit": "0a4c1a9af2f8bb29c3a3544f06964a8554cd692a",
50
+ "comment": "Replacing use of functions in makeStyles with direct use of tokens."
27
51
  },
28
52
  {
29
- "author": "beachball",
53
+ "author": "behowell@microsoft.com",
30
54
  "package": "@fluentui/react-button",
31
- "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly07d9ed6d1b20211221.1",
32
- "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8"
55
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
56
+ "comment": "Remove component's shorthandProps array"
33
57
  },
34
58
  {
35
- "author": "beachball",
59
+ "author": "behowell@microsoft.com",
36
60
  "package": "@fluentui/react-button",
37
- "comment": "Bump @fluentui/react-aria to v0.0.0-nightly07d9ed6d1b20211221.1",
38
- "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8"
61
+ "commit": "d778282b56baae57cb6b407debdbfb6beca76761",
62
+ "comment": "Remove fontSize from default menuIcon, as it is already set via css"
39
63
  },
40
64
  {
41
- "author": "beachball",
65
+ "author": "olfedias@microsoft.com",
66
+ "package": "@fluentui/react-button",
67
+ "commit": "54118b29fde686ef15fe95a3a97f3fd7edca34a3",
68
+ "comment": "update styles to not use CSS shorthands"
69
+ },
70
+ {
71
+ "author": "Humberto.Morimoto@microsoft.com",
72
+ "package": "@fluentui/react-button",
73
+ "commit": "00a5d945904c896a0664de6ba72c145a255f0848",
74
+ "comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
75
+ },
76
+ {
77
+ "author": "Humberto.Morimoto@microsoft.com",
42
78
  "package": "@fluentui/react-button",
43
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1",
44
- "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8"
79
+ "commit": "38c8bed2c707014688ae2ae689033fa36ef23075",
80
+ "comment": "Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster."
45
81
  },
46
82
  {
47
83
  "author": "beachball",
48
84
  "package": "@fluentui/react-button",
49
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly07d9ed6d1b20211221.1",
50
- "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8"
85
+ "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly0bc161458e20220126.1",
86
+ "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
51
87
  },
52
88
  {
53
89
  "author": "beachball",
54
90
  "package": "@fluentui/react-button",
55
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly07d9ed6d1b20211221.1",
56
- "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8"
91
+ "comment": "Bump @fluentui/react-aria to v0.0.0-nightly0bc161458e20220126.1",
92
+ "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
57
93
  },
58
94
  {
59
95
  "author": "beachball",
60
96
  "package": "@fluentui/react-button",
61
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1",
62
- "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8"
97
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly0bc161458e20220126.1",
98
+ "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
63
99
  },
64
100
  {
65
101
  "author": "beachball",
66
102
  "package": "@fluentui/react-button",
67
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1",
68
- "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8"
103
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly0bc161458e20220126.1",
104
+ "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
69
105
  },
70
106
  {
71
107
  "author": "beachball",
72
108
  "package": "@fluentui/react-button",
73
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1",
74
- "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8"
109
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly0bc161458e20220126.1",
110
+ "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
75
111
  }
76
112
  ],
77
113
  "none": [
114
+ {
115
+ "author": "olfedias@microsoft.com",
116
+ "package": "@fluentui/react-button",
117
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
118
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
119
+ },
120
+ {
121
+ "author": "martinhochel@microsoft.com",
122
+ "package": "@fluentui/react-button",
123
+ "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
124
+ "comment": "chore: use storybook runner for all vNext packages"
125
+ },
78
126
  {
79
127
  "author": "tkrasniqi@microsoft.com",
80
128
  "package": "@fluentui/react-button",
package/CHANGELOG.md CHANGED
@@ -1,27 +1,33 @@
1
1
  # Change Log - @fluentui/react-button
2
2
 
3
- This log was last generated on Tue, 21 Dec 2021 04:16:41 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 26 Jan 2022 04:16:44 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly07d9ed6d1b20211221.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightly07d9ed6d1b20211221.1)
7
+ ## [0.0.0-nightly0bc161458e20220126.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightly0bc161458e20220126.1)
8
8
 
9
- Tue, 21 Dec 2021 04:16:41 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.5..@fluentui/react-button_v0.0.0-nightly07d9ed6d1b20211221.1)
9
+ Wed, 26 Jan 2022 04:16:44 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.5..@fluentui/react-button_v0.0.0-nightly0bc161458e20220126.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) by email not defined)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by email not defined)
15
+ - Using ComponentSlotProps instead of ObjectShorthandProps. ([PR #20890](https://github.com/microsoft/fluentui/pull/20890) by Humberto.Morimoto@microsoft.com)
16
+ - Replace make-styles packages with griffel equivalents. ([PR #21436](https://github.com/microsoft/fluentui/pull/21436) by olfedias@microsoft.com)
17
+ - Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
18
+ - BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
15
19
  - (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
20
+ - Replacing use of functions in makeStyles with direct use of tokens. ([PR #21039](https://github.com/microsoft/fluentui/pull/21039) by Humberto.Morimoto@microsoft.com)
21
+ - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
22
+ - Remove fontSize from default menuIcon, as it is already set via css ([PR #21221](https://github.com/microsoft/fluentui/pull/21221) by behowell@microsoft.com)
16
23
  - update styles to not use CSS shorthands ([PR #20815](https://github.com/microsoft/fluentui/pull/20815) by olfedias@microsoft.com)
17
- - Bump @fluentui/keyboard-keys to v0.0.0-nightly07d9ed6d1b20211221.1 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) by beachball)
18
- - Bump @fluentui/react-aria to v0.0.0-nightly07d9ed6d1b20211221.1 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) by beachball)
19
- - Bump @fluentui/react-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) by beachball)
20
- - Bump @fluentui/react-tabster to v0.0.0-nightly07d9ed6d1b20211221.1 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) by beachball)
21
- - Bump @fluentui/react-utilities to v0.0.0-nightly07d9ed6d1b20211221.1 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) by beachball)
22
- - Bump @fluentui/babel-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) by beachball)
23
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) by beachball)
24
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) by beachball)
24
+ - Updating use of tokens.fontWeight now that we don't need to use casting. ([PR #21217](https://github.com/microsoft/fluentui/pull/21217) by Humberto.Morimoto@microsoft.com)
25
+ - Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster. ([PR #21035](https://github.com/microsoft/fluentui/pull/21035) by Humberto.Morimoto@microsoft.com)
26
+ - Bump @fluentui/keyboard-keys to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
27
+ - Bump @fluentui/react-aria to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
28
+ - Bump @fluentui/react-tabster to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
29
+ - Bump @fluentui/react-utilities to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
30
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
25
31
 
26
32
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.5)
27
33
 
@@ -1,9 +1,9 @@
1
1
  import { ARIAButtonShorthandProps } from '@fluentui/react-aria';
2
2
  import type { ComponentProps } from '@fluentui/react-utilities';
3
+ import type { ComponentSlotProps } from '@fluentui/react-utilities';
3
4
  import type { ComponentState } from '@fluentui/react-utilities';
4
5
  import { ForwardRefComponent } from '@fluentui/react-utilities';
5
6
  import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
6
- import type { ObjectShorthandProps } from '@fluentui/react-utilities';
7
7
  import * as React_2 from 'react';
8
8
 
9
9
  /**
@@ -43,7 +43,7 @@ export declare type ButtonCommons = {
43
43
  * A button can format its icon to appear before or after its content.
44
44
  * @default 'before'
45
45
  */
46
- iconPosition: 'before' | 'after';
46
+ iconPosition?: 'before' | 'after';
47
47
  /**
48
48
  * A button can be rounded, circular, or square.
49
49
  * @default 'rounded'
@@ -124,24 +124,24 @@ declare type MenuTriggerChildProps = Pick<React_2.HTMLAttributes<HTMLElement>, '
124
124
  /**
125
125
  * Renders a Button component by passing the state defined props to the appropriate slots.
126
126
  */
127
- declare const renderButton: (state: ButtonState) => JSX.Element;
128
- export { renderButton }
129
- export { renderButton as renderToggleButton }
127
+ declare const renderButton_unstable: (state: ButtonState) => JSX.Element;
128
+ export { renderButton_unstable }
129
+ export { renderButton_unstable as renderToggleButton_unstable }
130
130
 
131
131
  /**
132
132
  * Renders a CompoundButton component by passing the state defined props to the appropriate slots.
133
133
  */
134
- export declare const renderCompoundButton: (state: CompoundButtonState) => JSX.Element;
134
+ export declare const renderCompoundButton_unstable: (state: CompoundButtonState) => JSX.Element;
135
135
 
136
136
  /**
137
137
  * Renders a MenuButton component by passing the state defined props to the appropriate slots.
138
138
  */
139
- export declare const renderMenuButton: (state: MenuButtonState) => JSX.Element;
139
+ export declare const renderMenuButton_unstable: (state: MenuButtonState) => JSX.Element;
140
140
 
141
141
  /**
142
142
  * Renders a SplitButton component by passing the state defined props to the appropriate slots.
143
143
  */
144
- export declare const renderSplitButton: (state: SplitButtonState) => JSX.Element;
144
+ export declare const renderSplitButton_unstable: (state: SplitButtonState) => JSX.Element;
145
145
 
146
146
  /**
147
147
  * SplitButtons are a grouping of two interactive surfaces where the interacting with the first one triggers a primary
@@ -161,11 +161,11 @@ export declare type SplitButtonSlots = {
161
161
  /**
162
162
  * Button that opens menu with secondary actions in SplitButton.
163
163
  */
164
- menuButton?: ObjectShorthandProps<MenuButtonProps>;
164
+ menuButton?: ComponentSlotProps<typeof MenuButton>;
165
165
  /**
166
166
  * Button to perform primary action in SplitButton.
167
167
  */
168
- primaryActionButton?: ObjectShorthandProps<ButtonProps>;
168
+ primaryActionButton?: ComponentSlotProps<typeof Button>;
169
169
  };
170
170
 
171
171
  export declare type SplitButtonState = ComponentState<SplitButtonSlots> & Omit<ButtonState, 'components' | 'iconOnly' | 'root'> & Omit<MenuButtonState, 'components' | 'iconOnly' | 'root'>;
@@ -203,34 +203,34 @@ export declare type ToggleButtonState = ButtonState & ToggleButtonCommons;
203
203
  * @param props - User provided props to the Button component.
204
204
  * @param ref - User provided ref to be passed to the Button component.
205
205
  */
206
- export declare const useButton: (props: ButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
206
+ export declare const useButton_unstable: (props: ButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
207
207
 
208
- export declare const useButtonStyles: (state: ButtonState) => ButtonState;
208
+ export declare const useButtonStyles_unstable: (state: ButtonState) => ButtonState;
209
209
 
210
210
  /**
211
211
  * Given user props, defines default props for the CompoundButton, calls useButtonState, and returns processed state.
212
212
  * @param props - User provided props to the CompoundButton component.
213
213
  * @param ref - User provided ref to be passed to the CompoundButton component.
214
214
  */
215
- export declare const useCompoundButton: ({ contentContainer, secondaryContent, ...props }: CompoundButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonState;
215
+ export declare const useCompoundButton_unstable: ({ contentContainer, secondaryContent, ...props }: CompoundButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonState;
216
216
 
217
- export declare const useCompoundButtonStyles: (state: CompoundButtonState) => CompoundButtonState;
217
+ export declare const useCompoundButtonStyles_unstable: (state: CompoundButtonState) => CompoundButtonState;
218
218
 
219
219
  /**
220
220
  * Given user props, returns the final state for a MenuButton.
221
221
  */
222
- export declare const useMenuButton: ({ menuIcon, ...props }: MenuButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => MenuButtonState;
222
+ export declare const useMenuButton_unstable: ({ menuIcon, ...props }: MenuButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => MenuButtonState;
223
223
 
224
- export declare const useMenuButtonStyles: (state: MenuButtonState) => MenuButtonState;
224
+ export declare const useMenuButtonStyles_unstable: (state: MenuButtonState) => MenuButtonState;
225
225
 
226
226
  /**
227
227
  * Given user props, defines default props for the SplitButton and returns processed state.
228
228
  * @param props - User provided props to the SplitButton component.
229
229
  * @param ref - User provided ref to be passed to the SplitButton component.
230
230
  */
231
- export declare const useSplitButton: (props: SplitButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => SplitButtonState;
231
+ export declare const useSplitButton_unstable: (props: SplitButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => SplitButtonState;
232
232
 
233
- export declare const useSplitButtonStyles: (state: SplitButtonState) => SplitButtonState;
233
+ export declare const useSplitButtonStyles_unstable: (state: SplitButtonState) => SplitButtonState;
234
234
 
235
235
  /**
236
236
  * Given user props, defines default props for the ToggleButton, calls useButtonState and useChecked, and returns
@@ -238,8 +238,8 @@ export declare const useSplitButtonStyles: (state: SplitButtonState) => SplitBut
238
238
  * @param props - User provided props to the ToggleButton component.
239
239
  * @param ref - User provided ref to be passed to the ToggleButton component.
240
240
  */
241
- export declare const useToggleButton: ({ checked, defaultChecked, ...props }: ToggleButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToggleButtonState;
241
+ export declare const useToggleButton_unstable: ({ checked, defaultChecked, ...props }: ToggleButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToggleButtonState;
242
242
 
243
- export declare const useToggleButtonStyles: (state: ToggleButtonState) => ToggleButtonState;
243
+ export declare const useToggleButtonStyles_unstable: (state: ToggleButtonState) => ToggleButtonState;
244
244
 
245
245
  export { }
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { renderButton } from './renderButton';
3
- import { useButton } from './useButton';
4
- import { useButtonStyles } from './useButtonStyles';
2
+ import { renderButton_unstable } from './renderButton';
3
+ import { useButton_unstable } from './useButton';
4
+ import { useButtonStyles_unstable } from './useButtonStyles';
5
5
  /**
6
6
  * Buttons give people a way to trigger an action.
7
7
  */
8
8
 
9
9
  export const Button = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useButton(props, ref);
11
- useButtonStyles(state);
12
- return renderButton(state); // Casting is required due to lack of distributive union to support unions on @types/react
10
+ const state = useButton_unstable(props, ref);
11
+ useButtonStyles_unstable(state);
12
+ return renderButton_unstable(state); // Casting is required due to lack of distributive union to support unions on @types/react
13
13
  });
14
14
  Button.displayName = 'Button';
15
15
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,gBAA7B;AACA,SAAS,SAAT,QAA0B,aAA1B;AACA,SAAS,eAAT,QAAgC,mBAAhC;AAIA;;AAEG;;AACH,OAAO,MAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtF,QAAM,KAAK,GAAG,SAAS,CAAC,KAAD,EAAQ,GAAR,CAAvB;AAEA,EAAA,eAAe,CAAC,KAAD,CAAf;AAEA,SAAO,YAAY,CAAC,KAAD,CAAnB,CALsF,CAMtF;AACD,CAPuD,CAAjD;AASP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,QAAsC,gBAAtC;AACA,SAAS,kBAAT,QAAmC,aAAnC;AACA,SAAS,wBAAT,QAAyC,mBAAzC;AAIA;;AAEG;;AACH,OAAO,MAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtF,QAAM,KAAK,GAAG,kBAAkB,CAAC,KAAD,EAAQ,GAAR,CAAhC;AAEA,EAAA,wBAAwB,CAAC,KAAD,CAAxB;AAEA,SAAO,qBAAqB,CAAC,KAAD,CAA5B,CALsF,CAMtF;AACD,CAPuD,CAAjD;AASP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourceRoot":""}
@@ -40,7 +40,7 @@ export declare type ButtonCommons = {
40
40
  * A button can format its icon to appear before or after its content.
41
41
  * @default 'before'
42
42
  */
43
- iconPosition: 'before' | 'after';
43
+ iconPosition?: 'before' | 'after';
44
44
  /**
45
45
  * A button can be rounded, circular, or square.
46
46
  * @default 'rounded'
@@ -2,4 +2,4 @@ export * from './Button';
2
2
  export * from './Button.types';
3
3
  export * from './renderButton';
4
4
  export * from './useButton';
5
- export { buttonClassName, useButtonStyles } from './useButtonStyles';
5
+ export { buttonClassName, useButtonStyles_unstable } from './useButtonStyles';
@@ -2,5 +2,5 @@ export * from './Button';
2
2
  export * from './Button.types';
3
3
  export * from './renderButton';
4
4
  export * from './useButton';
5
- export { buttonClassName, useButtonStyles } from './useButtonStyles';
5
+ export { buttonClassName, useButtonStyles_unstable } from './useButtonStyles';
6
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -2,4 +2,4 @@ import type { ButtonState } from './Button.types';
2
2
  /**
3
3
  * Renders a Button component by passing the state defined props to the appropriate slots.
4
4
  */
5
- export declare const renderButton: (state: ButtonState) => JSX.Element;
5
+ export declare const renderButton_unstable: (state: ButtonState) => JSX.Element;
@@ -4,11 +4,11 @@ import { getSlots } from '@fluentui/react-utilities';
4
4
  * Renders a Button component by passing the state defined props to the appropriate slots.
5
5
  */
6
6
 
7
- export const renderButton = state => {
7
+ export const renderButton_unstable = state => {
8
8
  const {
9
9
  slots,
10
10
  slotProps
11
- } = getSlots(state, ['root', 'icon']);
11
+ } = getSlots(state);
12
12
  const {
13
13
  iconOnly,
14
14
  iconPosition
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Button/renderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,YAAY,GAAI,KAAD,IAAuB;AACjD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAc,KAAd,EAAqB,CAAC,MAAD,EAAS,MAAT,CAArB,CAArC;AACA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA6B,KAAnC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAD/B,EAEG,CAAC,QAAD,IAAa,KAAK,CAAC,IAAN,CAAW,QAF3B,EAGG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAH/B,CADF;AAOD,CAXM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Button/renderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,qBAAqB,GAAI,KAAD,IAAuB;AAC1D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAc,KAAd,CAArC;AACA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA6B,KAAnC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAD/B,EAEG,CAAC,QAAD,IAAa,KAAK,CAAC,IAAN,CAAW,QAF3B,EAGG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAH/B,CADF;AAOD,CAXM","sourceRoot":""}
@@ -5,4 +5,4 @@ import type { ButtonProps, ButtonState } from './Button.types';
5
5
  * @param props - User provided props to the Button component.
6
6
  * @param ref - User provided ref to be passed to the Button component.
7
7
  */
8
- export declare const useButton: (props: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
8
+ export declare const useButton_unstable: (props: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
@@ -6,7 +6,7 @@ import { getNativeElementProps, resolveShorthand } from '@fluentui/react-utiliti
6
6
  * @param ref - User provided ref to be passed to the Button component.
7
7
  */
8
8
 
9
- export const useButton = (props, ref) => {
9
+ export const useButton_unstable = (props, ref) => {
10
10
  const {
11
11
  appearance,
12
12
  as,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Button/useButton.ts"],"names":[],"mappings":"AACA,SAAS,aAAT,QAA8B,sBAA9B;AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;;;AAIG;;AACH,OAAO,MAAM,SAAS,GAAG,CAAC,KAAD,EAAqB,GAArB,KAA2F;AAClH,QAAM;AACJ,IAAA,UADI;AAEJ,IAAA,EAFI;AAGJ,IAAA,KAAK,GAAG,KAHJ;AAIJ,IAAA,QAAQ,GAAG,KAJP;AAKJ,IAAA,iBAAiB,GAAG,KALhB;AAMJ,IAAA,IANI;AAOJ,IAAA,YAAY,GAAG,QAPX;AAQJ,IAAA,KAAK,GAAG,SARJ;AASJ,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,IAAA,KAAK,GAAG,SARJ;AASJ,IAAA,IAAI,GAAG;AATH,MAUF,KAVJ;AAWA,QAAM,aAAa,GAAG,gBAAgB,CAAC,IAAD,CAAtC;AAEA,SAAO;AACL;AACA,IAAA,UAFK;AAGL,IAAA,KAHK;AAIL,IAAA,QAJK;AAKL,IAAA,iBALK;AAML,IAAA,YANK;AAOL,IAAA,KAPK;AAQL,IAAA,IARK;AAUL;AACA,IAAA,QAAQ,EAAE,OAAO,CAAC,CAAA,aAAa,KAAA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAa,KAAA,CAAb,GAAA,aAAa,CAAE,QAAf,KAA2B,CAAC,KAAK,CAAC,QAAnC,CAXZ;AAaL;AACA,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,QADI;AAEV,MAAA,IAAI,EAAE;AAFI,KAdP;AAmBL,IAAA,IAAI,EAAE,qBAAqB,CACzB,EAAE,IAAI,QADmB,EAEzB,aAAa,CAAC,KAAD,EAAQ;AACnB,MAAA,QAAQ,EAAE,IADS;AAEnB,MAAA,YAAY,EAAE;AACZ;AACA,QAAA,GAAG,EAAE,GAFO;AAGZ,QAAA,IAAI,EAAE,QAHM,CAGI;;AAHJ;AAFK,KAAR,CAFY,CAnBtB;AA8BL,IAAA,IAAI,EAAE;AA9BD,GAAP;AAgCD,CAjDM","sourceRoot":""}
@@ -8,4 +8,4 @@ export declare const buttonSpacing: {
8
8
  large: string;
9
9
  larger: string;
10
10
  };
11
- export declare const useButtonStyles: (state: ButtonState) => ButtonState;
11
+ export declare const useButtonStyles_unstable: (state: ButtonState) => ButtonState;
@@ -1,5 +1,6 @@
1
- import { shorthands, __styles, mergeClasses } from '@fluentui/react-make-styles';
1
+ import { shorthands, __styles, mergeClasses } from '@griffel/react';
2
2
  import { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';
3
+ import { tokens } from '@fluentui/react-theme';
3
4
  export const buttonClassName = 'fui-Button'; // TODO: These are named in design specs but not hoisted to global/alias yet.
4
5
  // We're tracking these here to determine how we can hoist them.
5
6
 
@@ -396,7 +397,7 @@ const useIconStyles = /*#__PURE__*/__styles({
396
397
  "d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fe5j1ua{font-size:20px;}", ".fjamq6b{height:20px;}", ".f64fuq3{width:20px;}", ".f1rt2boy{font-size:24px;}", ".frvgh55{height:24px;}", ".fq4mcun{width:24px;}"]
397
398
  });
398
399
 
399
- export const useButtonStyles = state => {
400
+ export const useButtonStyles_unstable = state => {
400
401
  const rootStyles = useRootStyles();
401
402
  const rootDisabledStyles = useRootDisabledStyles();
402
403
  const rootFocusStyles = useRootFocusStyles();
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Button/useButtonStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,YAAiC,YAAjC,QAAqD,6BAArD;AACA,SAAS,+BAAT,QAAgD,yBAAhD;AAGA,OAAO,MAAM,eAAe,GAAG,YAAxB,C,CAEP;AACA;;AACA,OAAO,MAAM,aAAa,GAAG;AAC3B,EAAA,QAAQ,EAAE,KADiB;AAE3B,EAAA,OAAO,EAAE,KAFkB;AAG3B,EAAA,KAAK,EAAE,KAHoB;AAI3B,EAAA,MAAM,EAAE,KAJmB;AAK3B,EAAA,KAAK,EAAE,MALoB;AAM3B,EAAA,MAAM,EAAE;AANmB,CAAtB;;AASP,MAAM,aAAa,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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I,kBAAkB,CAAC,IAAD,CArBG,EAuBjC;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAxBsB,CAAnC;;AA2BA,MAAI,KAAK,CAAC,IAAV,EAAgB;AACd,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,UAAU,CAAC,IAAZ,EAAkB,UAAU,CAAC,IAAD,CAA5B,EAAoC,KAAK,CAAC,IAAN,CAAW,SAA/C,CAAnC;AACD;;AAED,SAAO,KAAP;AACD,CAzCM","sourceRoot":""}
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { renderCompoundButton } from './renderCompoundButton';
3
- import { useCompoundButton } from './useCompoundButton';
4
- import { useCompoundButtonStyles } from './useCompoundButtonStyles';
2
+ import { renderCompoundButton_unstable } from './renderCompoundButton';
3
+ import { useCompoundButton_unstable } from './useCompoundButton';
4
+ import { useCompoundButtonStyles_unstable } from './useCompoundButtonStyles';
5
5
  /**
6
6
  * CompoundButtons are buttons that can have secondary content that adds extra information to the user.
7
7
  */
8
8
 
9
9
  export const CompoundButton = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useCompoundButton(props, ref);
11
- useCompoundButtonStyles(state);
12
- return renderCompoundButton(state); // Casting is required due to lack of distributive union to support unions on @types/react
10
+ const state = useCompoundButton_unstable(props, ref);
11
+ useCompoundButtonStyles_unstable(state);
12
+ return renderCompoundButton_unstable(state); // Casting is required due to lack of distributive union to support unions on @types/react
13
13
  });
14
14
  CompoundButton.displayName = 'CompoundButton';
15
15
  //# sourceMappingURL=CompoundButton.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CompoundButton/CompoundButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AACA,SAAS,uBAAT,QAAwC,2BAAxC;AAIA;;AAEG;;AACH,OAAO,MAAM,cAAc,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtG,QAAM,KAAK,GAAG,iBAAiB,CAAC,KAAD,EAAQ,GAAR,CAA/B;AAEA,EAAA,uBAAuB,CAAC,KAAD,CAAvB;AAEA,SAAO,oBAAoB,CAAC,KAAD,CAA3B,CALsG,CAMtG;AACD,CAPuE,CAAjE;AASP,cAAc,CAAC,WAAf,GAA6B,gBAA7B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/CompoundButton/CompoundButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AACA,SAAS,0BAAT,QAA2C,qBAA3C;AACA,SAAS,gCAAT,QAAiD,2BAAjD;AAIA;;AAEG;;AACH,OAAO,MAAM,cAAc,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtG,QAAM,KAAK,GAAG,0BAA0B,CAAC,KAAD,EAAQ,GAAR,CAAxC;AAEA,EAAA,gCAAgC,CAAC,KAAD,CAAhC;AAEA,SAAO,6BAA6B,CAAC,KAAD,CAApC,CALsG,CAMtG;AACD,CAPuE,CAAjE;AASP,cAAc,CAAC,WAAf,GAA6B,gBAA7B","sourceRoot":""}
@@ -2,4 +2,4 @@ export * from './CompoundButton';
2
2
  export * from './CompoundButton.types';
3
3
  export * from './renderCompoundButton';
4
4
  export * from './useCompoundButton';
5
- export { compoundButtonClassName, useCompoundButtonStyles } from './useCompoundButtonStyles';
5
+ export { compoundButtonClassName, useCompoundButtonStyles_unstable } from './useCompoundButtonStyles';
@@ -2,5 +2,5 @@ export * from './CompoundButton';
2
2
  export * from './CompoundButton.types';
3
3
  export * from './renderCompoundButton';
4
4
  export * from './useCompoundButton';
5
- export { compoundButtonClassName, useCompoundButtonStyles } from './useCompoundButtonStyles';
5
+ export { compoundButtonClassName, useCompoundButtonStyles_unstable } from './useCompoundButtonStyles';
6
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CompoundButton/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CompoundButton/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,gCAAgC,EAAE,MAAM,2BAA2B,CAAC"}
@@ -2,4 +2,4 @@ import type { CompoundButtonState } from './CompoundButton.types';
2
2
  /**
3
3
  * Renders a CompoundButton component by passing the state defined props to the appropriate slots.
4
4
  */
5
- export declare const renderCompoundButton: (state: CompoundButtonState) => JSX.Element;
5
+ export declare const renderCompoundButton_unstable: (state: CompoundButtonState) => JSX.Element;
@@ -4,11 +4,11 @@ import { getSlots } from '@fluentui/react-utilities';
4
4
  * Renders a CompoundButton component by passing the state defined props to the appropriate slots.
5
5
  */
6
6
 
7
- export const renderCompoundButton = state => {
7
+ export const renderCompoundButton_unstable = state => {
8
8
  const {
9
9
  slots,
10
10
  slotProps
11
- } = getSlots(state, ['root', 'contentContainer', 'icon', 'secondaryContent']);
11
+ } = getSlots(state);
12
12
  const {
13
13
  iconOnly,
14
14
  iconPosition
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CompoundButton/renderCompoundButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAA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AA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAD/B,EAEG,CAAC,QAAD,iBACC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,EACG,SAAS,CAAC,IAAV,CAAe,QADlB,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAFF,CAHJ,EAQG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAR/B,CADF;AAYD,CAhBM","sourceRoot":""}
@@ -5,4 +5,4 @@ import type { CompoundButtonProps, CompoundButtonState } from './CompoundButton.
5
5
  * @param props - User provided props to the CompoundButton component.
6
6
  * @param ref - User provided ref to be passed to the CompoundButton component.
7
7
  */
8
- export declare const useCompoundButton: ({ contentContainer, secondaryContent, ...props }: CompoundButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonState;
8
+ export declare const useCompoundButton_unstable: ({ contentContainer, secondaryContent, ...props }: CompoundButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonState;
@@ -1,18 +1,18 @@
1
1
  import { resolveShorthand } from '@fluentui/react-utilities';
2
- import { useButton } from '../Button/index';
2
+ import { useButton_unstable } from '../Button/index';
3
3
  /**
4
4
  * Given user props, defines default props for the CompoundButton, calls useButtonState, and returns processed state.
5
5
  * @param props - User provided props to the CompoundButton component.
6
6
  * @param ref - User provided ref to be passed to the CompoundButton component.
7
7
  */
8
8
 
9
- export const useCompoundButton = ({
9
+ export const useCompoundButton_unstable = ({
10
10
  contentContainer,
11
11
  secondaryContent,
12
12
  ...props
13
13
  }, ref) => {
14
14
  return { // Button state
15
- ...useButton(props, ref),
15
+ ...useButton_unstable(props, ref),
16
16
  // Slots definition
17
17
  components: {
18
18
  root: 'button',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CompoundButton/useCompoundButton.ts"],"names":[],"mappings":"AACA,SAAS,gBAAT,QAAiC,2BAAjC;AAEA,SAAS,SAAT,QAA0B,iBAA1B;AAEA;;;;AAIG;;AACH,OAAO,MAAM,iBAAiB,GAAG,CAC/B;AAAE,EAAA,gBAAF;AAAoB,EAAA,gBAApB;AAAsC,KAAG;AAAzC,CAD+B,EAE/B,GAF+B,KAGR;AACvB,SAAO,EACL;AACA,OAAG,SAAS,CAAC,KAAD,EAAQ,GAAR,CAFP;AAIL;AACA,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,QADI;AAEV,MAAA,IAAI,EAAE,MAFI;AAGV,MAAA,gBAAgB,EAAE,MAHR;AAIV,MAAA,gBAAgB,EAAE;AAJR,KALP;AAWL,IAAA,gBAAgB,EAAE,gBAAgB,CAAC,gBAAD,EAAmB;AAAE,MAAA,QAAQ,EAAE;AAAZ,KAAnB,CAX7B;AAYL,IAAA,gBAAgB,EAAE,gBAAgB,CAAC,gBAAD;AAZ7B,GAAP;AAcD,CAlBM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/CompoundButton/useCompoundButton.ts"],"names":[],"mappings":"AACA,SAAS,gBAAT,QAAiC,2BAAjC;AAEA,SAAS,kBAAT,QAAmC,iBAAnC;AAEA;;;;AAIG;;AACH,OAAO,MAAM,0BAA0B,GAAG,CACxC;AAAE,EAAA,gBAAF;AAAoB,EAAA,gBAApB;AAAsC,KAAG;AAAzC,CADwC,EAExC,GAFwC,KAGjB;AACvB,SAAO,EACL;AACA,OAAG,kBAAkB,CAAC,KAAD,EAAQ,GAAR,CAFhB;AAIL;AACA,IAAA,UAAU,EAAE;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