@fluentui/react-toolbar 9.1.16 → 9.1.18

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 (178) hide show
  1. package/CHANGELOG.json +139 -1
  2. package/CHANGELOG.md +38 -2
  3. package/lib/Toolbar.js +0 -1
  4. package/lib/Toolbar.js.map +1 -1
  5. package/lib/ToolbarButton.js +0 -1
  6. package/lib/ToolbarButton.js.map +1 -1
  7. package/lib/ToolbarDivider.js +0 -1
  8. package/lib/ToolbarDivider.js.map +1 -1
  9. package/lib/ToolbarGroup.js +0 -1
  10. package/lib/ToolbarGroup.js.map +1 -1
  11. package/lib/ToolbarRadioButton.js +0 -1
  12. package/lib/ToolbarRadioButton.js.map +1 -1
  13. package/lib/ToolbarRadioGroup.js +0 -1
  14. package/lib/ToolbarRadioGroup.js.map +1 -1
  15. package/lib/ToolbarToggleButton.js +0 -1
  16. package/lib/ToolbarToggleButton.js.map +1 -1
  17. package/lib/components/Toolbar/Toolbar.js +6 -8
  18. package/lib/components/Toolbar/Toolbar.js.map +1 -1
  19. package/lib/components/Toolbar/Toolbar.types.js +0 -1
  20. package/lib/components/Toolbar/Toolbar.types.js.map +1 -1
  21. package/lib/components/Toolbar/ToolbarContext.js +7 -8
  22. package/lib/components/Toolbar/ToolbarContext.js.map +1 -1
  23. package/lib/components/Toolbar/index.js +0 -1
  24. package/lib/components/Toolbar/index.js.map +1 -1
  25. package/lib/components/Toolbar/renderToolbar.js +6 -11
  26. package/lib/components/Toolbar/renderToolbar.js.map +1 -1
  27. package/lib/components/Toolbar/useToolbar.js +90 -94
  28. package/lib/components/Toolbar/useToolbar.js.map +1 -1
  29. package/lib/components/Toolbar/useToolbarContextValues.js +12 -19
  30. package/lib/components/Toolbar/useToolbarContextValues.js.map +1 -1
  31. package/lib/components/Toolbar/useToolbarStyles.styles.js.map +1 -1
  32. package/lib/components/ToolbarButton/ToolbarButton.js +6 -9
  33. package/lib/components/ToolbarButton/ToolbarButton.js.map +1 -1
  34. package/lib/components/ToolbarButton/ToolbarButton.types.js +1 -2
  35. package/lib/components/ToolbarButton/ToolbarButton.types.js.map +1 -1
  36. package/lib/components/ToolbarButton/index.js +0 -1
  37. package/lib/components/ToolbarButton/index.js.map +1 -1
  38. package/lib/components/ToolbarButton/useToolbarButton.js +10 -15
  39. package/lib/components/ToolbarButton/useToolbarButton.js.map +1 -1
  40. package/lib/components/ToolbarButton/useToolbarButtonStyles.styles.js.map +1 -1
  41. package/lib/components/ToolbarDivider/ToolbarDivider.js +5 -7
  42. package/lib/components/ToolbarDivider/ToolbarDivider.js.map +1 -1
  43. package/lib/components/ToolbarDivider/ToolbarDivider.types.js +1 -2
  44. package/lib/components/ToolbarDivider/ToolbarDivider.types.js.map +1 -1
  45. package/lib/components/ToolbarDivider/index.js +0 -1
  46. package/lib/components/ToolbarDivider/index.js.map +1 -1
  47. package/lib/components/ToolbarDivider/useToolbarDivider.js +6 -8
  48. package/lib/components/ToolbarDivider/useToolbarDivider.js.map +1 -1
  49. package/lib/components/ToolbarDivider/useToolbarDividerStyles.styles.js +1 -1
  50. package/lib/components/ToolbarDivider/useToolbarDividerStyles.styles.js.map +1 -1
  51. package/lib/components/ToolbarGroup/ToolbarGroup.js +6 -9
  52. package/lib/components/ToolbarGroup/ToolbarGroup.js.map +1 -1
  53. package/lib/components/ToolbarGroup/ToolbarGroup.types.js +1 -2
  54. package/lib/components/ToolbarGroup/ToolbarGroup.types.js.map +1 -1
  55. package/lib/components/ToolbarGroup/index.js +0 -1
  56. package/lib/components/ToolbarGroup/index.js.map +1 -1
  57. package/lib/components/ToolbarGroup/renderToolbarGroup.js +4 -9
  58. package/lib/components/ToolbarGroup/renderToolbarGroup.js.map +1 -1
  59. package/lib/components/ToolbarGroup/useToolbarGroup.js +11 -13
  60. package/lib/components/ToolbarGroup/useToolbarGroup.js.map +1 -1
  61. package/lib/components/ToolbarGroup/useToolbarGroupStyles.styles.js.map +1 -1
  62. package/lib/components/ToolbarRadioButton/ToolbarRadioButton.js +5 -7
  63. package/lib/components/ToolbarRadioButton/ToolbarRadioButton.js.map +1 -1
  64. package/lib/components/ToolbarRadioButton/ToolbarRadioButton.types.js +1 -2
  65. package/lib/components/ToolbarRadioButton/ToolbarRadioButton.types.js.map +1 -1
  66. package/lib/components/ToolbarRadioButton/index.js +0 -1
  67. package/lib/components/ToolbarRadioButton/index.js.map +1 -1
  68. package/lib/components/ToolbarRadioButton/useToolbarRadioButton.js +27 -31
  69. package/lib/components/ToolbarRadioButton/useToolbarRadioButton.js.map +1 -1
  70. package/lib/components/ToolbarRadioButton/useToolbarRadioButtonStyles.styles.js.map +1 -1
  71. package/lib/components/ToolbarRadioGroup/ToolbarRadioGroup.js +9 -12
  72. package/lib/components/ToolbarRadioGroup/ToolbarRadioGroup.js.map +1 -1
  73. package/lib/components/ToolbarRadioGroup/ToolbarRadioGroup.types.js +1 -2
  74. package/lib/components/ToolbarRadioGroup/ToolbarRadioGroup.types.js.map +1 -1
  75. package/lib/components/ToolbarRadioGroup/index.js +0 -1
  76. package/lib/components/ToolbarRadioGroup/index.js.map +1 -1
  77. package/lib/components/ToolbarToggleButton/ToolbarToggleButton.js +5 -7
  78. package/lib/components/ToolbarToggleButton/ToolbarToggleButton.js.map +1 -1
  79. package/lib/components/ToolbarToggleButton/ToolbarToggleButton.types.js +1 -2
  80. package/lib/components/ToolbarToggleButton/ToolbarToggleButton.types.js.map +1 -1
  81. package/lib/components/ToolbarToggleButton/index.js +0 -1
  82. package/lib/components/ToolbarToggleButton/index.js.map +1 -1
  83. package/lib/components/ToolbarToggleButton/useToolbarToggleButton.js +27 -31
  84. package/lib/components/ToolbarToggleButton/useToolbarToggleButton.js.map +1 -1
  85. package/lib/components/ToolbarToggleButton/useToolbarToggleButtonStyles.styles.js.map +1 -1
  86. package/lib/index.js +0 -1
  87. package/lib/index.js.map +1 -1
  88. package/lib-commonjs/Toolbar.js +0 -3
  89. package/lib-commonjs/Toolbar.js.map +1 -1
  90. package/lib-commonjs/ToolbarButton.js +0 -3
  91. package/lib-commonjs/ToolbarButton.js.map +1 -1
  92. package/lib-commonjs/ToolbarDivider.js +0 -3
  93. package/lib-commonjs/ToolbarDivider.js.map +1 -1
  94. package/lib-commonjs/ToolbarGroup.js +0 -3
  95. package/lib-commonjs/ToolbarGroup.js.map +1 -1
  96. package/lib-commonjs/ToolbarRadioButton.js +0 -3
  97. package/lib-commonjs/ToolbarRadioButton.js.map +1 -1
  98. package/lib-commonjs/ToolbarRadioGroup.js +0 -3
  99. package/lib-commonjs/ToolbarRadioGroup.js.map +1 -1
  100. package/lib-commonjs/ToolbarToggleButton.js +0 -3
  101. package/lib-commonjs/ToolbarToggleButton.js.map +1 -1
  102. package/lib-commonjs/components/Toolbar/Toolbar.js +1 -3
  103. package/lib-commonjs/components/Toolbar/Toolbar.js.map +1 -1
  104. package/lib-commonjs/components/Toolbar/Toolbar.types.js +0 -3
  105. package/lib-commonjs/components/Toolbar/Toolbar.types.js.map +1 -1
  106. package/lib-commonjs/components/Toolbar/ToolbarContext.js +2 -4
  107. package/lib-commonjs/components/Toolbar/ToolbarContext.js.map +1 -1
  108. package/lib-commonjs/components/Toolbar/index.js +0 -3
  109. package/lib-commonjs/components/Toolbar/index.js.map +1 -1
  110. package/lib-commonjs/components/Toolbar/renderToolbar.js +1 -3
  111. package/lib-commonjs/components/Toolbar/renderToolbar.js.map +1 -1
  112. package/lib-commonjs/components/Toolbar/useToolbar.js +1 -3
  113. package/lib-commonjs/components/Toolbar/useToolbar.js.map +1 -1
  114. package/lib-commonjs/components/Toolbar/useToolbarContextValues.js +1 -3
  115. package/lib-commonjs/components/Toolbar/useToolbarContextValues.js.map +1 -1
  116. package/lib-commonjs/components/Toolbar/useToolbarStyles.styles.js +0 -2
  117. package/lib-commonjs/components/Toolbar/useToolbarStyles.styles.js.map +1 -1
  118. package/lib-commonjs/components/ToolbarButton/ToolbarButton.js +1 -3
  119. package/lib-commonjs/components/ToolbarButton/ToolbarButton.js.map +1 -1
  120. package/lib-commonjs/components/ToolbarButton/ToolbarButton.types.js +0 -3
  121. package/lib-commonjs/components/ToolbarButton/ToolbarButton.types.js.map +1 -1
  122. package/lib-commonjs/components/ToolbarButton/index.js +0 -3
  123. package/lib-commonjs/components/ToolbarButton/index.js.map +1 -1
  124. package/lib-commonjs/components/ToolbarButton/useToolbarButton.js +1 -3
  125. package/lib-commonjs/components/ToolbarButton/useToolbarButton.js.map +1 -1
  126. package/lib-commonjs/components/ToolbarButton/useToolbarButtonStyles.styles.js +0 -2
  127. package/lib-commonjs/components/ToolbarButton/useToolbarButtonStyles.styles.js.map +1 -1
  128. package/lib-commonjs/components/ToolbarDivider/ToolbarDivider.js +1 -3
  129. package/lib-commonjs/components/ToolbarDivider/ToolbarDivider.js.map +1 -1
  130. package/lib-commonjs/components/ToolbarDivider/ToolbarDivider.types.js +0 -3
  131. package/lib-commonjs/components/ToolbarDivider/ToolbarDivider.types.js.map +1 -1
  132. package/lib-commonjs/components/ToolbarDivider/index.js +0 -3
  133. package/lib-commonjs/components/ToolbarDivider/index.js.map +1 -1
  134. package/lib-commonjs/components/ToolbarDivider/useToolbarDivider.js +1 -3
  135. package/lib-commonjs/components/ToolbarDivider/useToolbarDivider.js.map +1 -1
  136. package/lib-commonjs/components/ToolbarDivider/useToolbarDividerStyles.styles.js +1 -3
  137. package/lib-commonjs/components/ToolbarDivider/useToolbarDividerStyles.styles.js.map +1 -1
  138. package/lib-commonjs/components/ToolbarGroup/ToolbarGroup.js +1 -3
  139. package/lib-commonjs/components/ToolbarGroup/ToolbarGroup.js.map +1 -1
  140. package/lib-commonjs/components/ToolbarGroup/ToolbarGroup.types.js +0 -3
  141. package/lib-commonjs/components/ToolbarGroup/ToolbarGroup.types.js.map +1 -1
  142. package/lib-commonjs/components/ToolbarGroup/index.js +0 -3
  143. package/lib-commonjs/components/ToolbarGroup/index.js.map +1 -1
  144. package/lib-commonjs/components/ToolbarGroup/renderToolbarGroup.js +1 -3
  145. package/lib-commonjs/components/ToolbarGroup/renderToolbarGroup.js.map +1 -1
  146. package/lib-commonjs/components/ToolbarGroup/useToolbarGroup.js +1 -3
  147. package/lib-commonjs/components/ToolbarGroup/useToolbarGroup.js.map +1 -1
  148. package/lib-commonjs/components/ToolbarGroup/useToolbarGroupStyles.styles.js +0 -2
  149. package/lib-commonjs/components/ToolbarGroup/useToolbarGroupStyles.styles.js.map +1 -1
  150. package/lib-commonjs/components/ToolbarRadioButton/ToolbarRadioButton.js +1 -3
  151. package/lib-commonjs/components/ToolbarRadioButton/ToolbarRadioButton.js.map +1 -1
  152. package/lib-commonjs/components/ToolbarRadioButton/ToolbarRadioButton.types.js +0 -3
  153. package/lib-commonjs/components/ToolbarRadioButton/ToolbarRadioButton.types.js.map +1 -1
  154. package/lib-commonjs/components/ToolbarRadioButton/index.js +0 -3
  155. package/lib-commonjs/components/ToolbarRadioButton/index.js.map +1 -1
  156. package/lib-commonjs/components/ToolbarRadioButton/useToolbarRadioButton.js +1 -3
  157. package/lib-commonjs/components/ToolbarRadioButton/useToolbarRadioButton.js.map +1 -1
  158. package/lib-commonjs/components/ToolbarRadioButton/useToolbarRadioButtonStyles.styles.js +0 -2
  159. package/lib-commonjs/components/ToolbarRadioButton/useToolbarRadioButtonStyles.styles.js.map +1 -1
  160. package/lib-commonjs/components/ToolbarRadioGroup/ToolbarRadioGroup.js +1 -3
  161. package/lib-commonjs/components/ToolbarRadioGroup/ToolbarRadioGroup.js.map +1 -1
  162. package/lib-commonjs/components/ToolbarRadioGroup/ToolbarRadioGroup.types.js +0 -3
  163. package/lib-commonjs/components/ToolbarRadioGroup/ToolbarRadioGroup.types.js.map +1 -1
  164. package/lib-commonjs/components/ToolbarRadioGroup/index.js +0 -3
  165. package/lib-commonjs/components/ToolbarRadioGroup/index.js.map +1 -1
  166. package/lib-commonjs/components/ToolbarToggleButton/ToolbarToggleButton.js +1 -3
  167. package/lib-commonjs/components/ToolbarToggleButton/ToolbarToggleButton.js.map +1 -1
  168. package/lib-commonjs/components/ToolbarToggleButton/ToolbarToggleButton.types.js +0 -3
  169. package/lib-commonjs/components/ToolbarToggleButton/ToolbarToggleButton.types.js.map +1 -1
  170. package/lib-commonjs/components/ToolbarToggleButton/index.js +0 -3
  171. package/lib-commonjs/components/ToolbarToggleButton/index.js.map +1 -1
  172. package/lib-commonjs/components/ToolbarToggleButton/useToolbarToggleButton.js +1 -3
  173. package/lib-commonjs/components/ToolbarToggleButton/useToolbarToggleButton.js.map +1 -1
  174. package/lib-commonjs/components/ToolbarToggleButton/useToolbarToggleButtonStyles.styles.js +0 -2
  175. package/lib-commonjs/components/ToolbarToggleButton/useToolbarToggleButtonStyles.styles.js.map +1 -1
  176. package/lib-commonjs/index.js +0 -3
  177. package/lib-commonjs/index.js.map +1 -1
  178. package/package.json +12 -12
package/CHANGELOG.json CHANGED
@@ -2,7 +2,145 @@
2
2
  "name": "@fluentui/react-toolbar",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 25 May 2023 09:57:45 GMT",
5
+ "date": "Tue, 20 Jun 2023 12:34:51 GMT",
6
+ "tag": "@fluentui/react-toolbar_v9.1.18",
7
+ "version": "9.1.18",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@fluentui/react-toolbar",
13
+ "comment": "Bump @fluentui/react-button to v9.3.17",
14
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-toolbar",
19
+ "comment": "Bump @fluentui/react-divider to v9.2.16",
20
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-toolbar",
25
+ "comment": "Bump @fluentui/react-theme to v9.1.9",
26
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-toolbar",
31
+ "comment": "Bump @fluentui/react-utilities to v9.9.3",
32
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-toolbar",
37
+ "comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.7",
38
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-toolbar",
43
+ "comment": "Bump @fluentui/react-context-selector to v9.1.23",
44
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-toolbar",
49
+ "comment": "Bump @fluentui/react-radio to v9.1.18",
50
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-toolbar",
55
+ "comment": "Bump @fluentui/react-shared-contexts to v9.5.1",
56
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-toolbar",
61
+ "comment": "Bump @fluentui/react-tabster to v9.8.0",
62
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@fluentui/react-toolbar",
67
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.23",
68
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
69
+ }
70
+ ]
71
+ }
72
+ },
73
+ {
74
+ "date": "Wed, 31 May 2023 06:46:21 GMT",
75
+ "tag": "@fluentui/react-toolbar_v9.1.17",
76
+ "version": "9.1.17",
77
+ "comments": {
78
+ "patch": [
79
+ {
80
+ "author": "jirivyhnalek@microsoft.com",
81
+ "package": "@fluentui/react-toolbar",
82
+ "commit": "77ae630247eb49cecef7bbb3a8564a5e2a83a5fa",
83
+ "comment": "Fixed a bug where ToolbarDivider default styles were prioritized"
84
+ },
85
+ {
86
+ "author": "seanmonahan@microsoft.com",
87
+ "package": "@fluentui/react-toolbar",
88
+ "commit": "d640b972d7ac86bfb76ae6c6329f12cdd33b3b7c",
89
+ "comment": "chore: Update Griffel to v1.5.7."
90
+ },
91
+ {
92
+ "author": "beachball",
93
+ "package": "@fluentui/react-toolbar",
94
+ "comment": "Bump @fluentui/react-button to v9.3.16",
95
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
96
+ },
97
+ {
98
+ "author": "beachball",
99
+ "package": "@fluentui/react-toolbar",
100
+ "comment": "Bump @fluentui/react-divider to v9.2.15",
101
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
102
+ },
103
+ {
104
+ "author": "beachball",
105
+ "package": "@fluentui/react-toolbar",
106
+ "comment": "Bump @fluentui/react-utilities to v9.9.2",
107
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
108
+ },
109
+ {
110
+ "author": "beachball",
111
+ "package": "@fluentui/react-toolbar",
112
+ "comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.6",
113
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
114
+ },
115
+ {
116
+ "author": "beachball",
117
+ "package": "@fluentui/react-toolbar",
118
+ "comment": "Bump @fluentui/react-context-selector to v9.1.22",
119
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
120
+ },
121
+ {
122
+ "author": "beachball",
123
+ "package": "@fluentui/react-toolbar",
124
+ "comment": "Bump @fluentui/react-radio to v9.1.17",
125
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
126
+ },
127
+ {
128
+ "author": "beachball",
129
+ "package": "@fluentui/react-toolbar",
130
+ "comment": "Bump @fluentui/react-tabster to v9.7.5",
131
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
132
+ },
133
+ {
134
+ "author": "beachball",
135
+ "package": "@fluentui/react-toolbar",
136
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.22",
137
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
138
+ }
139
+ ]
140
+ }
141
+ },
142
+ {
143
+ "date": "Thu, 25 May 2023 10:00:48 GMT",
6
144
  "tag": "@fluentui/react-toolbar_v9.1.16",
7
145
  "version": "9.1.16",
8
146
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,48 @@
1
1
  # Change Log - @fluentui/react-toolbar
2
2
 
3
- This log was last generated on Thu, 25 May 2023 09:57:45 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 20 Jun 2023 12:34:51 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.1.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-toolbar_v9.1.18)
8
+
9
+ Tue, 20 Jun 2023 12:34:51 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toolbar_v9.1.17..@fluentui/react-toolbar_v9.1.18)
11
+
12
+ ### Patches
13
+
14
+ - Bump @fluentui/react-button to v9.3.17 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
15
+ - Bump @fluentui/react-divider to v9.2.16 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
16
+ - Bump @fluentui/react-theme to v9.1.9 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
17
+ - Bump @fluentui/react-utilities to v9.9.3 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
18
+ - Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.7 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
19
+ - Bump @fluentui/react-context-selector to v9.1.23 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
20
+ - Bump @fluentui/react-radio to v9.1.18 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
21
+ - Bump @fluentui/react-shared-contexts to v9.5.1 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
22
+ - Bump @fluentui/react-tabster to v9.8.0 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
23
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.23 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
24
+
25
+ ## [9.1.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-toolbar_v9.1.17)
26
+
27
+ Wed, 31 May 2023 06:46:21 GMT
28
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toolbar_v9.1.16..@fluentui/react-toolbar_v9.1.17)
29
+
30
+ ### Patches
31
+
32
+ - Fixed a bug where ToolbarDivider default styles were prioritized ([PR #28044](https://github.com/microsoft/fluentui/pull/28044) by jirivyhnalek@microsoft.com)
33
+ - chore: Update Griffel to v1.5.7. ([PR #27925](https://github.com/microsoft/fluentui/pull/27925) by seanmonahan@microsoft.com)
34
+ - Bump @fluentui/react-button to v9.3.16 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
35
+ - Bump @fluentui/react-divider to v9.2.15 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
36
+ - Bump @fluentui/react-utilities to v9.9.2 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
37
+ - Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.6 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
38
+ - Bump @fluentui/react-context-selector to v9.1.22 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
39
+ - Bump @fluentui/react-radio to v9.1.17 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
40
+ - Bump @fluentui/react-tabster to v9.7.5 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
41
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.22 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
42
+
7
43
  ## [9.1.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-toolbar_v9.1.16)
8
44
 
9
- Thu, 25 May 2023 09:57:45 GMT
45
+ Thu, 25 May 2023 10:00:48 GMT
10
46
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toolbar_v9.1.15..@fluentui/react-toolbar_v9.1.16)
11
47
 
12
48
  ### Patches
package/lib/Toolbar.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/Toolbar/index';
2
- //# sourceMappingURL=Toolbar.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Toolbar.ts"],"sourcesContent":["export * from './components/Toolbar/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Toolbar.ts"],"sourcesContent":["export * from './components/Toolbar/index';\n"],"names":[],"mappings":"AAAA,cAAc,6BAA6B"}
@@ -1,2 +1 @@
1
1
  export * from './components/ToolbarButton/index';
2
- //# sourceMappingURL=ToolbarButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/ToolbarButton.ts"],"sourcesContent":["export * from './components/ToolbarButton/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["ToolbarButton.ts"],"sourcesContent":["export * from './components/ToolbarButton/index';\n"],"names":[],"mappings":"AAAA,cAAc,mCAAmC"}
@@ -1,2 +1 @@
1
1
  export * from './components/ToolbarDivider/index';
2
- //# sourceMappingURL=ToolbarDivider.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/ToolbarDivider.ts"],"sourcesContent":["export * from './components/ToolbarDivider/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["ToolbarDivider.ts"],"sourcesContent":["export * from './components/ToolbarDivider/index';\n"],"names":[],"mappings":"AAAA,cAAc,oCAAoC"}
@@ -1,2 +1 @@
1
1
  export * from './components/ToolbarGroup/index';
2
- //# sourceMappingURL=ToolbarGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/ToolbarGroup.ts"],"sourcesContent":["export * from './components/ToolbarGroup/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["ToolbarGroup.ts"],"sourcesContent":["export * from './components/ToolbarGroup/index';\n"],"names":[],"mappings":"AAAA,cAAc,kCAAkC"}
@@ -1,2 +1 @@
1
1
  export * from './components/ToolbarRadioButton/index';
2
- //# sourceMappingURL=ToolbarRadioButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/ToolbarRadioButton.ts"],"sourcesContent":["export * from './components/ToolbarRadioButton/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["ToolbarRadioButton.ts"],"sourcesContent":["export * from './components/ToolbarRadioButton/index';\n"],"names":[],"mappings":"AAAA,cAAc,wCAAwC"}
@@ -1,2 +1 @@
1
1
  export * from './components/ToolbarRadioGroup/index';
2
- //# sourceMappingURL=ToolbarRadioGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/ToolbarRadioGroup.ts"],"sourcesContent":["export * from './components/ToolbarRadioGroup/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["ToolbarRadioGroup.ts"],"sourcesContent":["export * from './components/ToolbarRadioGroup/index';\n"],"names":[],"mappings":"AAAA,cAAc,uCAAuC"}
@@ -1,2 +1 @@
1
1
  export * from './components/ToolbarToggleButton/index';
2
- //# sourceMappingURL=ToolbarToggleButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/ToolbarToggleButton.ts"],"sourcesContent":["export * from './components/ToolbarToggleButton/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["ToolbarToggleButton.ts"],"sourcesContent":["export * from './components/ToolbarToggleButton/index';\n"],"names":[],"mappings":"AAAA,cAAc,yCAAyC"}
@@ -6,13 +6,11 @@ import { useToolbarContextValues_unstable } from './useToolbarContextValues';
6
6
  import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
7
7
  /**
8
8
  * Toolbar component
9
- */
10
- export const Toolbar = /*#__PURE__*/React.forwardRef((props, ref) => {
11
- const state = useToolbar_unstable(props, ref);
12
- const contextValues = useToolbarContextValues_unstable(state);
13
- useToolbarStyles_unstable(state);
14
- useCustomStyleHook_unstable('useToolbarStyles_unstable')(state);
15
- return renderToolbar_unstable(state, contextValues);
9
+ */ export const Toolbar = /*#__PURE__*/ React.forwardRef((props, ref)=>{
10
+ const state = useToolbar_unstable(props, ref);
11
+ const contextValues = useToolbarContextValues_unstable(state);
12
+ useToolbarStyles_unstable(state);
13
+ useCustomStyleHook_unstable('useToolbarStyles_unstable')(state);
14
+ return renderToolbar_unstable(state, contextValues);
16
15
  });
17
16
  Toolbar.displayName = 'Toolbar';
18
- //# sourceMappingURL=Toolbar.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useToolbar_unstable","renderToolbar_unstable","useToolbarStyles_unstable","useToolbarContextValues_unstable","useCustomStyleHook_unstable","Toolbar","forwardRef","props","ref","state","contextValues","displayName"],"sources":["../../../src/components/Toolbar/Toolbar.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useToolbar_unstable } from './useToolbar';\nimport { renderToolbar_unstable } from './renderToolbar';\nimport { useToolbarStyles_unstable } from './useToolbarStyles.styles';\nimport type { ToolbarProps } from './Toolbar.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useToolbarContextValues_unstable } from './useToolbarContextValues';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Toolbar component\n */\nexport const Toolbar: ForwardRefComponent<ToolbarProps> = React.forwardRef((props, ref) => {\n const state = useToolbar_unstable(props, ref);\n const contextValues = useToolbarContextValues_unstable(state);\n\n useToolbarStyles_unstable(state);\n\n useCustomStyleHook_unstable('useToolbarStyles_unstable')(state);\n\n return renderToolbar_unstable(state, contextValues);\n});\n\nToolbar.displayName = 'Toolbar';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,mBAAmB,QAAQ;AACpC,SAASC,sBAAsB,QAAQ;AACvC,SAASC,yBAAyB,QAAQ;AAG1C,SAASC,gCAAgC,QAAQ;AACjD,SAASC,2BAA2B,QAAQ;AAE5C;;;AAGA,OAAO,MAAMC,OAAA,gBAA6CN,KAAA,CAAMO,UAAU,CAAC,CAACC,KAAA,EAAOC,GAAA,KAAQ;EACzF,MAAMC,KAAA,GAAQT,mBAAA,CAAoBO,KAAA,EAAOC,GAAA;EACzC,MAAME,aAAA,GAAgBP,gCAAA,CAAiCM,KAAA;EAEvDP,yBAAA,CAA0BO,KAAA;EAE1BL,2BAAA,CAA4B,6BAA6BK,KAAA;EAEzD,OAAOR,sBAAA,CAAuBQ,KAAA,EAAOC,aAAA;AACvC;AAEAL,OAAA,CAAQM,WAAW,GAAG"}
1
+ {"version":3,"sources":["Toolbar.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useToolbar_unstable } from './useToolbar';\nimport { renderToolbar_unstable } from './renderToolbar';\nimport { useToolbarStyles_unstable } from './useToolbarStyles.styles';\nimport type { ToolbarProps } from './Toolbar.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useToolbarContextValues_unstable } from './useToolbarContextValues';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Toolbar component\n */\nexport const Toolbar: ForwardRefComponent<ToolbarProps> = React.forwardRef((props, ref) => {\n const state = useToolbar_unstable(props, ref);\n const contextValues = useToolbarContextValues_unstable(state);\n\n useToolbarStyles_unstable(state);\n\n useCustomStyleHook_unstable('useToolbarStyles_unstable')(state);\n\n return renderToolbar_unstable(state, contextValues);\n});\n\nToolbar.displayName = 'Toolbar';\n"],"names":["React","useToolbar_unstable","renderToolbar_unstable","useToolbarStyles_unstable","useToolbarContextValues_unstable","useCustomStyleHook_unstable","Toolbar","forwardRef","props","ref","state","contextValues","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,mBAAmB,QAAQ,eAAe;AACnD,SAASC,sBAAsB,QAAQ,kBAAkB;AACzD,SAASC,yBAAyB,QAAQ,4BAA4B;AAGtE,SAASC,gCAAgC,QAAQ,4BAA4B;AAC7E,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,wBAA6CN,MAAMO,UAAU,CAAC,CAACC,OAAOC,MAAQ;IACzF,MAAMC,QAAQT,oBAAoBO,OAAOC;IACzC,MAAME,gBAAgBP,iCAAiCM;IAEvDP,0BAA0BO;IAE1BL,4BAA4B,6BAA6BK;IAEzD,OAAOR,uBAAuBQ,OAAOC;AACvC,GAAG;AAEHL,QAAQM,WAAW,GAAG"}
@@ -1,2 +1 @@
1
1
  import * as React from 'react';
2
- //# sourceMappingURL=Toolbar.types.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React"],"sources":["../../../src/components/Toolbar/Toolbar.types.ts"],"sourcesContent":["import * as React from 'react';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type ToolbarSlots = {\n root: Slot<'div'>;\n};\n\nexport type ToolbarCheckedValueChangeData = {\n /** The items for this value that are checked */\n checkedItems: string[];\n /** The name of the value */\n name: string;\n};\n\nexport type ToolbarCheckedValueChangeEvent = React.MouseEvent | React.KeyboardEvent;\n\n/**\n * Toolbar Props\n */\nexport type ToolbarProps = ComponentProps<ToolbarSlots> & {\n /**\n * Toolbar can have small or medium size\n *\n * @default medium\n */\n size?: 'small' | 'medium' | 'large';\n\n /**\n * Toolbar can be vertical styled\n * @default false\n */\n vertical?: boolean;\n\n /**\n * Map of all checked values\n */\n checkedValues?: Record<string, string[]>;\n\n /**\n * Default values to be checked on mount\n */\n defaultCheckedValues?: Record<string, string[]>;\n\n /**\n * Callback when checked items change for value with a name\n *\n * @param event - React's original SyntheticEvent\n * @param data - A data object with relevant information\n */\n onCheckedValueChange?: (e: ToolbarCheckedValueChangeEvent, data: ToolbarCheckedValueChangeData) => void;\n};\n\n/**\n * State used in rendering Toolbar\n */\nexport type ToolbarState = ComponentState<ToolbarSlots> &\n Required<Pick<ToolbarProps, 'size' | 'checkedValues' | 'vertical'>> &\n Pick<ToolbarProps, 'defaultCheckedValues' | 'onCheckedValueChange'> & {\n /*\n * Toggles the state of a ToggleButton item\n */\n handleToggleButton: ToggableHandler;\n /*\n * Toggles the state of a ToggleButton item\n */\n handleRadio: ToggableHandler;\n };\n\nexport type ToolbarContextValue = Pick<ToolbarState, 'size' | 'vertical' | 'checkedValues'> & {\n handleToggleButton?: ToggableHandler;\n handleRadio?: ToggableHandler;\n};\n\nexport type ToolbarContextValues = {\n toolbar: ToolbarContextValue;\n};\n\nexport type UninitializedToolbarState = Omit<ToolbarState, 'checkedValues' | 'handleToggleButton' | 'handleRadio'> &\n Partial<Pick<ToolbarState, 'checkedValues'>>;\n\nexport type ToggableHandler = (\n e: React.MouseEvent | React.KeyboardEvent,\n name: string,\n value: string,\n checked?: boolean,\n) => void;\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW"}
1
+ {"version":3,"sources":["Toolbar.types.ts"],"sourcesContent":["import * as React from 'react';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type ToolbarSlots = {\n root: Slot<'div'>;\n};\n\nexport type ToolbarCheckedValueChangeData = {\n /** The items for this value that are checked */\n checkedItems: string[];\n /** The name of the value */\n name: string;\n};\n\nexport type ToolbarCheckedValueChangeEvent = React.MouseEvent | React.KeyboardEvent;\n\n/**\n * Toolbar Props\n */\nexport type ToolbarProps = ComponentProps<ToolbarSlots> & {\n /**\n * Toolbar can have small or medium size\n *\n * @default medium\n */\n size?: 'small' | 'medium' | 'large';\n\n /**\n * Toolbar can be vertical styled\n * @default false\n */\n vertical?: boolean;\n\n /**\n * Map of all checked values\n */\n checkedValues?: Record<string, string[]>;\n\n /**\n * Default values to be checked on mount\n */\n defaultCheckedValues?: Record<string, string[]>;\n\n /**\n * Callback when checked items change for value with a name\n *\n * @param event - React's original SyntheticEvent\n * @param data - A data object with relevant information\n */\n onCheckedValueChange?: (e: ToolbarCheckedValueChangeEvent, data: ToolbarCheckedValueChangeData) => void;\n};\n\n/**\n * State used in rendering Toolbar\n */\nexport type ToolbarState = ComponentState<ToolbarSlots> &\n Required<Pick<ToolbarProps, 'size' | 'checkedValues' | 'vertical'>> &\n Pick<ToolbarProps, 'defaultCheckedValues' | 'onCheckedValueChange'> & {\n /*\n * Toggles the state of a ToggleButton item\n */\n handleToggleButton: ToggableHandler;\n /*\n * Toggles the state of a ToggleButton item\n */\n handleRadio: ToggableHandler;\n };\n\nexport type ToolbarContextValue = Pick<ToolbarState, 'size' | 'vertical' | 'checkedValues'> & {\n handleToggleButton?: ToggableHandler;\n handleRadio?: ToggableHandler;\n};\n\nexport type ToolbarContextValues = {\n toolbar: ToolbarContextValue;\n};\n\nexport type UninitializedToolbarState = Omit<ToolbarState, 'checkedValues' | 'handleToggleButton' | 'handleRadio'> &\n Partial<Pick<ToolbarState, 'checkedValues'>>;\n\nexport type ToggableHandler = (\n e: React.MouseEvent | React.KeyboardEvent,\n name: string,\n value: string,\n checked?: boolean,\n) => void;\n"],"names":["React"],"mappings":"AAAA,YAAYA,WAAW,QAAQ"}
@@ -1,11 +1,10 @@
1
1
  import { createContext, useContextSelector } from '@fluentui/react-context-selector';
2
- export const ToolbarContext = /*#__PURE__*/createContext(undefined);
2
+ export const ToolbarContext = createContext(undefined);
3
3
  const toolbarContextDefaultValue = {
4
- size: 'medium',
5
- handleToggleButton: () => null,
6
- handleRadio: () => null,
7
- vertical: false,
8
- checkedValues: {}
4
+ size: 'medium',
5
+ handleToggleButton: ()=>null,
6
+ handleRadio: ()=>null,
7
+ vertical: false,
8
+ checkedValues: {}
9
9
  };
10
- export const useToolbarContext_unstable = selector => useContextSelector(ToolbarContext, (ctx = toolbarContextDefaultValue) => selector(ctx));
11
- //# sourceMappingURL=ToolbarContext.js.map
10
+ export const useToolbarContext_unstable = (selector)=>useContextSelector(ToolbarContext, (ctx = toolbarContextDefaultValue)=>selector(ctx));
@@ -1 +1 @@
1
- {"version":3,"names":["createContext","useContextSelector","ToolbarContext","undefined","toolbarContextDefaultValue","size","handleToggleButton","handleRadio","vertical","checkedValues","useToolbarContext_unstable","selector","ctx"],"sources":["../../../src/components/Toolbar/ToolbarContext.ts"],"sourcesContent":["import { ContextSelector, createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { Context } from '@fluentui/react-context-selector';\nimport type { ToolbarContextValue } from './Toolbar.types';\n\nexport const ToolbarContext = createContext<ToolbarContextValue | undefined>(undefined) as Context<ToolbarContextValue>;\n\nconst toolbarContextDefaultValue: ToolbarContextValue = {\n size: 'medium' as 'medium',\n handleToggleButton: () => null,\n handleRadio: () => null,\n vertical: false,\n checkedValues: {},\n};\n\nexport const useToolbarContext_unstable = <T>(selector: ContextSelector<ToolbarContextValue, T>): T =>\n useContextSelector(ToolbarContext, (ctx = toolbarContextDefaultValue) => selector(ctx));\n"],"mappings":"AAAA,SAA0BA,aAAa,EAAEC,kBAAkB,QAAQ;AAInE,OAAO,MAAMC,cAAA,gBAAiBF,aAAA,CAA+CG,SAAA;AAE7E,MAAMC,0BAAA,GAAkD;EACtDC,IAAA,EAAM;EACNC,kBAAA,EAAoBA,CAAA,KAAM,IAAI;EAC9BC,WAAA,EAAaA,CAAA,KAAM,IAAI;EACvBC,QAAA,EAAU,KAAK;EACfC,aAAA,EAAe,CAAC;AAClB;AAEA,OAAO,MAAMC,0BAAA,GAAiCC,QAAA,IAC5CV,kBAAA,CAAmBC,cAAA,EAAgB,CAACU,GAAA,GAAMR,0BAA0B,KAAKO,QAAA,CAASC,GAAA"}
1
+ {"version":3,"sources":["ToolbarContext.ts"],"sourcesContent":["import { ContextSelector, createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { Context } from '@fluentui/react-context-selector';\nimport type { ToolbarContextValue } from './Toolbar.types';\n\nexport const ToolbarContext = createContext<ToolbarContextValue | undefined>(undefined) as Context<ToolbarContextValue>;\n\nconst toolbarContextDefaultValue: ToolbarContextValue = {\n size: 'medium' as 'medium',\n handleToggleButton: () => null,\n handleRadio: () => null,\n vertical: false,\n checkedValues: {},\n};\n\nexport const useToolbarContext_unstable = <T>(selector: ContextSelector<ToolbarContextValue, T>): T =>\n useContextSelector(ToolbarContext, (ctx = toolbarContextDefaultValue) => selector(ctx));\n"],"names":["createContext","useContextSelector","ToolbarContext","undefined","toolbarContextDefaultValue","size","handleToggleButton","handleRadio","vertical","checkedValues","useToolbarContext_unstable","selector","ctx"],"mappings":"AAAA,SAA0BA,aAAa,EAAEC,kBAAkB,QAAQ,mCAAmC;AAItG,OAAO,MAAMC,iBAAiBF,cAA+CG,WAA2C;AAExH,MAAMC,6BAAkD;IACtDC,MAAM;IACNC,oBAAoB,IAAM,IAAI;IAC9BC,aAAa,IAAM,IAAI;IACvBC,UAAU,KAAK;IACfC,eAAe,CAAC;AAClB;AAEA,OAAO,MAAMC,6BAA6B,CAAIC,WAC5CV,mBAAmBC,gBAAgB,CAACU,MAAMR,0BAA0B,GAAKO,SAASC,MAAM"}
@@ -3,4 +3,3 @@ export * from './Toolbar.types';
3
3
  export * from './renderToolbar';
4
4
  export * from './useToolbar';
5
5
  export * from './useToolbarStyles.styles';
6
- //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/components/Toolbar/index.ts"],"sourcesContent":["export * from './Toolbar';\nexport * from './Toolbar.types';\nexport * from './renderToolbar';\nexport * from './useToolbar';\nexport * from './useToolbarStyles.styles';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Toolbar';\nexport * from './Toolbar.types';\nexport * from './renderToolbar';\nexport * from './useToolbar';\nexport * from './useToolbarStyles.styles';\n"],"names":[],"mappings":"AAAA,cAAc,YAAY;AAC1B,cAAc,kBAAkB;AAChC,cAAc,kBAAkB;AAChC,cAAc,eAAe;AAC7B,cAAc,4BAA4B"}
@@ -1,16 +1,11 @@
1
- /** @jsxRuntime classic */ /** @jsx createElement */import { createElement } from '@fluentui/react-jsx-runtime';
1
+ /** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';
2
2
  import { getSlotsNext } from '@fluentui/react-utilities';
3
3
  import { ToolbarContext } from './ToolbarContext';
4
4
  /**
5
5
  * Render the final JSX of Toolbar
6
- */
7
- export const renderToolbar_unstable = (state, contextValues) => {
8
- const {
9
- slots,
10
- slotProps
11
- } = getSlotsNext(state);
12
- return /*#__PURE__*/createElement(ToolbarContext.Provider, {
13
- value: contextValues.toolbar
14
- }, /*#__PURE__*/createElement(slots.root, slotProps.root, slotProps.root.children));
6
+ */ export const renderToolbar_unstable = (state, contextValues)=>{
7
+ const { slots , slotProps } = getSlotsNext(state);
8
+ return /*#__PURE__*/ createElement(ToolbarContext.Provider, {
9
+ value: contextValues.toolbar
10
+ }, /*#__PURE__*/ createElement(slots.root, slotProps.root, slotProps.root.children));
15
11
  };
16
- //# sourceMappingURL=renderToolbar.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createElement","getSlotsNext","ToolbarContext","renderToolbar_unstable","state","contextValues","slots","slotProps","Provider","value","toolbar","root","children"],"sources":["../../../src/components/Toolbar/renderToolbar.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\nimport { getSlotsNext } from '@fluentui/react-utilities';\nimport type { ToolbarState, ToolbarSlots, ToolbarContextValues } from './Toolbar.types';\nimport { ToolbarContext } from './ToolbarContext';\n\n/**\n * Render the final JSX of Toolbar\n */\nexport const renderToolbar_unstable = (state: ToolbarState, contextValues: ToolbarContextValues) => {\n const { slots, slotProps } = getSlotsNext<ToolbarSlots>(state);\n\n return (\n <ToolbarContext.Provider value={contextValues.toolbar}>\n <slots.root {...slotProps.root}>{slotProps.root.children}</slots.root>\n </ToolbarContext.Provider>\n );\n};\n"],"mappings":"AAAA,2BACA,yBAEA,SAASA,aAAa,QAAQ;AAC9B,SAASC,YAAY,QAAQ;AAE7B,SAASC,cAAc,QAAQ;AAE/B;;;AAGA,OAAO,MAAMC,sBAAA,GAAyBA,CAACC,KAAA,EAAqBC,aAAA,KAAwC;EAClG,MAAM;IAAEC,KAAA;IAAOC;EAAS,CAAE,GAAGN,YAAA,CAA2BG,KAAA;EAExD,oBACEJ,aAdJ,CAcKE,cAAA,CAAeM,QAAQ;IAACC,KAAA,EAAOJ,aAAA,CAAcK;kBAC5CV,aAfN,CAeOM,KAAA,CAAMK,IAAI,EAAKJ,SAAA,CAAUI,IAAI,EAAGJ,SAAA,CAAUI,IAAI,CAACC,QAAQ;AAG9D"}
1
+ {"version":3,"sources":["renderToolbar.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\nimport { getSlotsNext } from '@fluentui/react-utilities';\nimport type { ToolbarState, ToolbarSlots, ToolbarContextValues } from './Toolbar.types';\nimport { ToolbarContext } from './ToolbarContext';\n\n/**\n * Render the final JSX of Toolbar\n */\nexport const renderToolbar_unstable = (state: ToolbarState, contextValues: ToolbarContextValues) => {\n const { slots, slotProps } = getSlotsNext<ToolbarSlots>(state);\n\n return (\n <ToolbarContext.Provider value={contextValues.toolbar}>\n <slots.root {...slotProps.root}>{slotProps.root.children}</slots.root>\n </ToolbarContext.Provider>\n );\n};\n"],"names":["createElement","getSlotsNext","ToolbarContext","renderToolbar_unstable","state","contextValues","slots","slotProps","Provider","value","toolbar","root","children"],"mappings":"AAAA,wBAAwB,GACxB,uBAAuB,GAEvB,SAASA,aAAa,QAAQ,8BAA8B;AAC5D,SAASC,YAAY,QAAQ,4BAA4B;AAEzD,SAASC,cAAc,QAAQ,mBAAmB;AAElD;;CAEC,GACD,OAAO,MAAMC,yBAAyB,CAACC,OAAqBC,gBAAwC;IAClG,MAAM,EAAEC,MAAK,EAAEC,UAAS,EAAE,GAAGN,aAA2BG;IAExD,qBACE,AAdJ,cAcKF,eAAeM,QAAQ;QAACC,OAAOJ,cAAcK,OAAO;qBACnD,AAfN,cAeOJ,MAAMK,IAAI,EAAKJ,UAAUI,IAAI,EAAGJ,UAAUI,IAAI,CAACC,QAAQ;AAG9D,EAAE"}
@@ -10,103 +10,99 @@ import { useArrowNavigationGroup } from '@fluentui/react-tabster';
10
10
  *
11
11
  * @param props - props from this instance of Toolbar
12
12
  * @param ref - reference to root HTMLElement of Toolbar
13
- */
14
- export const useToolbar_unstable = (props, ref) => {
15
- const {
16
- size = 'medium',
17
- vertical = false
18
- } = props;
19
- const arrowNavigationProps = useArrowNavigationGroup({
20
- circular: true,
21
- axis: 'both'
22
- });
23
- const initialState = {
24
- size,
25
- vertical,
26
- // TODO add appropriate props/defaults
27
- components: {
28
- // TODO add each slot's element type or component
29
- root: 'div'
30
- },
31
- // TODO add appropriate slots, for example:
32
- // mySlot: resolveShorthand(props.mySlot),
33
- root: getNativeElementProps('div', {
34
- role: 'toolbar',
35
- ref,
36
- ...(vertical && {
37
- 'aria-orientation': 'vertical'
38
- }),
39
- ...arrowNavigationProps,
40
- ...props
41
- })
42
- };
43
- const [checkedValues, onCheckedValueChange] = useToolbarSelectableState({
44
- checkedValues: props.checkedValues,
45
- defaultCheckedValues: props.defaultCheckedValues,
46
- onCheckedValueChange: props.onCheckedValueChange
47
- });
48
- const handleToggleButton = useEventCallback((e, name, value, checked) => {
49
- if (name && value) {
50
- const checkedItems = (checkedValues === null || checkedValues === void 0 ? void 0 : checkedValues[name]) || [];
51
- const newCheckedItems = [...checkedItems];
52
- if (checked) {
53
- newCheckedItems.splice(newCheckedItems.indexOf(value), 1);
54
- } else {
55
- newCheckedItems.push(value);
56
- }
57
- onCheckedValueChange === null || onCheckedValueChange === void 0 ? void 0 : onCheckedValueChange(e, {
58
- name,
59
- checkedItems: newCheckedItems
60
- });
61
- }
62
- });
63
- const handleRadio = useEventCallback((e, name, value, checked) => {
64
- if (name && value) {
65
- onCheckedValueChange === null || onCheckedValueChange === void 0 ? void 0 : onCheckedValueChange(e, {
66
- name,
67
- checkedItems: [value]
68
- });
69
- }
70
- });
71
- return {
72
- ...initialState,
73
- handleToggleButton,
74
- handleRadio,
75
- checkedValues: checkedValues !== null && checkedValues !== void 0 ? checkedValues : {}
76
- };
13
+ */ export const useToolbar_unstable = (props, ref)=>{
14
+ const { size ='medium' , vertical =false } = props;
15
+ const arrowNavigationProps = useArrowNavigationGroup({
16
+ circular: true,
17
+ axis: 'both'
18
+ });
19
+ const initialState = {
20
+ size,
21
+ vertical,
22
+ // TODO add appropriate props/defaults
23
+ components: {
24
+ // TODO add each slot's element type or component
25
+ root: 'div'
26
+ },
27
+ // TODO add appropriate slots, for example:
28
+ // mySlot: resolveShorthand(props.mySlot),
29
+ root: getNativeElementProps('div', {
30
+ role: 'toolbar',
31
+ ref,
32
+ ...vertical && {
33
+ 'aria-orientation': 'vertical'
34
+ },
35
+ ...arrowNavigationProps,
36
+ ...props
37
+ })
38
+ };
39
+ const [checkedValues, onCheckedValueChange] = useToolbarSelectableState({
40
+ checkedValues: props.checkedValues,
41
+ defaultCheckedValues: props.defaultCheckedValues,
42
+ onCheckedValueChange: props.onCheckedValueChange
43
+ });
44
+ const handleToggleButton = useEventCallback((e, name, value, checked)=>{
45
+ if (name && value) {
46
+ const checkedItems = (checkedValues === null || checkedValues === void 0 ? void 0 : checkedValues[name]) || [];
47
+ const newCheckedItems = [
48
+ ...checkedItems
49
+ ];
50
+ if (checked) {
51
+ newCheckedItems.splice(newCheckedItems.indexOf(value), 1);
52
+ } else {
53
+ newCheckedItems.push(value);
54
+ }
55
+ onCheckedValueChange === null || onCheckedValueChange === void 0 ? void 0 : onCheckedValueChange(e, {
56
+ name,
57
+ checkedItems: newCheckedItems
58
+ });
59
+ }
60
+ });
61
+ const handleRadio = useEventCallback((e, name, value, checked)=>{
62
+ if (name && value) {
63
+ onCheckedValueChange === null || onCheckedValueChange === void 0 ? void 0 : onCheckedValueChange(e, {
64
+ name,
65
+ checkedItems: [
66
+ value
67
+ ]
68
+ });
69
+ }
70
+ });
71
+ return {
72
+ ...initialState,
73
+ handleToggleButton,
74
+ handleRadio,
75
+ checkedValues: checkedValues !== null && checkedValues !== void 0 ? checkedValues : {}
76
+ };
77
77
  };
78
78
  /**
79
79
  * Adds appropriate state values and handlers for selectable items
80
80
  * i.e checkboxes and radios
81
- */
82
- const useToolbarSelectableState = state => {
83
- const [checkedValues, setCheckedValues] = useControllableState({
84
- state: state.checkedValues,
85
- defaultState: state.defaultCheckedValues,
86
- initialState: {}
87
- });
88
- const {
89
- onCheckedValueChange: onCheckedValueChangeOriginal
90
- } = state;
91
- const onCheckedValueChange = useEventCallback((e, {
92
- name,
93
- checkedItems
94
- }) => {
95
- if (onCheckedValueChangeOriginal) {
96
- onCheckedValueChangeOriginal(e, {
97
- name,
98
- checkedItems
99
- });
100
- }
101
- setCheckedValues(s => {
102
- return s ? {
103
- ...s,
104
- [name]: checkedItems
105
- } : {
106
- [name]: checkedItems
107
- };
81
+ */ const useToolbarSelectableState = (state)=>{
82
+ const [checkedValues, setCheckedValues] = useControllableState({
83
+ state: state.checkedValues,
84
+ defaultState: state.defaultCheckedValues,
85
+ initialState: {}
86
+ });
87
+ const { onCheckedValueChange: onCheckedValueChangeOriginal } = state;
88
+ const onCheckedValueChange = useEventCallback((e, { name , checkedItems })=>{
89
+ if (onCheckedValueChangeOriginal) {
90
+ onCheckedValueChangeOriginal(e, {
91
+ name,
92
+ checkedItems
93
+ });
94
+ }
95
+ setCheckedValues((s)=>{
96
+ return s ? {
97
+ ...s,
98
+ [name]: checkedItems
99
+ } : {
100
+ [name]: checkedItems
101
+ };
102
+ });
108
103
  });
109
- });
110
- return [checkedValues, onCheckedValueChange];
104
+ return [
105
+ checkedValues,
106
+ onCheckedValueChange
107
+ ];
111
108
  };
112
- //# sourceMappingURL=useToolbar.js.map