@fluentui/react-badge 9.0.0-alpha.80 → 9.0.0-alpha.84

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 (155) hide show
  1. package/CHANGELOG.json +137 -1
  2. package/CHANGELOG.md +48 -2
  3. package/Spec.md +7 -22
  4. package/dist/react-badge.d.ts +57 -137
  5. package/lib/Badge.js.map +1 -1
  6. package/lib/CounterBadge.js.map +1 -1
  7. package/lib/PresenceBadge.js.map +1 -1
  8. package/lib/common/isConformant.js +2 -0
  9. package/lib/common/isConformant.js.map +1 -1
  10. package/lib/components/Badge/Badge.d.ts +1 -2
  11. package/lib/components/Badge/Badge.js +0 -1
  12. package/lib/components/Badge/Badge.js.map +1 -1
  13. package/lib/components/Badge/Badge.types.d.ts +19 -46
  14. package/lib/components/Badge/Badge.types.js.map +1 -1
  15. package/lib/components/Badge/index.js.map +1 -1
  16. package/lib/components/Badge/renderBadge.js +3 -4
  17. package/lib/components/Badge/renderBadge.js.map +1 -1
  18. package/lib/components/Badge/useBadge.d.ts +1 -5
  19. package/lib/components/Badge/useBadge.js +29 -18
  20. package/lib/components/Badge/useBadge.js.map +1 -1
  21. package/lib/components/Badge/useBadgeStyles.js +1 -1
  22. package/lib/components/Badge/useBadgeStyles.js.map +1 -1
  23. package/lib/components/CounterBadge/CounterBadge.d.ts +1 -2
  24. package/lib/components/CounterBadge/CounterBadge.js +0 -1
  25. package/lib/components/CounterBadge/CounterBadge.js.map +1 -1
  26. package/lib/components/CounterBadge/CounterBadge.types.d.ts +24 -44
  27. package/lib/components/CounterBadge/CounterBadge.types.js.map +1 -1
  28. package/lib/components/CounterBadge/index.js.map +1 -1
  29. package/lib/components/CounterBadge/useCounterBadge.d.ts +1 -5
  30. package/lib/components/CounterBadge/useCounterBadge.js +25 -19
  31. package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
  32. package/lib/components/CounterBadge/useCounterBadgeStyles.js +1 -1
  33. package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  34. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +1 -1
  35. package/lib/components/PresenceBadge/PresenceBadge.d.ts +1 -2
  36. package/lib/components/PresenceBadge/PresenceBadge.js +0 -1
  37. package/lib/components/PresenceBadge/PresenceBadge.js.map +1 -1
  38. package/lib/components/PresenceBadge/PresenceBadge.types.d.ts +5 -25
  39. package/lib/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
  40. package/lib/components/PresenceBadge/index.js.map +1 -1
  41. package/lib/components/PresenceBadge/usePresenceBadge.d.ts +1 -5
  42. package/lib/components/PresenceBadge/usePresenceBadge.js +15 -21
  43. package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  44. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +1 -1
  45. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  46. package/lib/index.js.map +1 -1
  47. package/lib-commonjs/Badge.js.map +1 -1
  48. package/lib-commonjs/CounterBadge.js.map +1 -1
  49. package/lib-commonjs/PresenceBadge.js.map +1 -1
  50. package/lib-commonjs/common/isConformant.js +2 -0
  51. package/lib-commonjs/common/isConformant.js.map +1 -1
  52. package/lib-commonjs/components/Badge/Badge.d.ts +1 -2
  53. package/lib-commonjs/components/Badge/Badge.js +0 -1
  54. package/lib-commonjs/components/Badge/Badge.js.map +1 -1
  55. package/lib-commonjs/components/Badge/Badge.types.d.ts +19 -46
  56. package/lib-commonjs/components/Badge/Badge.types.js.map +1 -1
  57. package/lib-commonjs/components/Badge/index.js.map +1 -1
  58. package/lib-commonjs/components/Badge/renderBadge.js +2 -4
  59. package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
  60. package/lib-commonjs/components/Badge/useBadge.d.ts +1 -5
  61. package/lib-commonjs/components/Badge/useBadge.js +30 -19
  62. package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
  63. package/lib-commonjs/components/Badge/useBadgeStyles.js +1 -1
  64. package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
  65. package/lib-commonjs/components/CounterBadge/CounterBadge.d.ts +1 -2
  66. package/lib-commonjs/components/CounterBadge/CounterBadge.js +0 -1
  67. package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
  68. package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +24 -44
  69. package/lib-commonjs/components/CounterBadge/CounterBadge.types.js.map +1 -1
  70. package/lib-commonjs/components/CounterBadge/index.js.map +1 -1
  71. package/lib-commonjs/components/CounterBadge/useCounterBadge.d.ts +1 -5
  72. package/lib-commonjs/components/CounterBadge/useCounterBadge.js +27 -21
  73. package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
  74. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +1 -1
  75. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  76. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +1 -1
  77. package/lib-commonjs/components/PresenceBadge/PresenceBadge.d.ts +1 -2
  78. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js +0 -1
  79. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
  80. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.d.ts +5 -25
  81. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
  82. package/lib-commonjs/components/PresenceBadge/index.js.map +1 -1
  83. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.d.ts +1 -5
  84. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +16 -22
  85. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  86. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +1 -1
  87. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  88. package/lib-commonjs/index.js.map +1 -1
  89. package/package.json +9 -9
  90. package/lib-amd/Badge.d.ts +0 -1
  91. package/lib-amd/Badge.js +0 -6
  92. package/lib-amd/Badge.js.map +0 -1
  93. package/lib-amd/CounterBadge.d.ts +0 -1
  94. package/lib-amd/CounterBadge.js +0 -6
  95. package/lib-amd/CounterBadge.js.map +0 -1
  96. package/lib-amd/PresenceBadge.d.ts +0 -1
  97. package/lib-amd/PresenceBadge.js +0 -6
  98. package/lib-amd/PresenceBadge.js.map +0 -1
  99. package/lib-amd/common/isConformant.d.ts +0 -4
  100. package/lib-amd/common/isConformant.js +0 -15
  101. package/lib-amd/common/isConformant.js.map +0 -1
  102. package/lib-amd/components/Badge/Badge.d.ts +0 -7
  103. package/lib-amd/components/Badge/Badge.js +0 -16
  104. package/lib-amd/components/Badge/Badge.js.map +0 -1
  105. package/lib-amd/components/Badge/Badge.types.d.ts +0 -65
  106. package/lib-amd/components/Badge/Badge.types.js +0 -5
  107. package/lib-amd/components/Badge/Badge.types.js.map +0 -1
  108. package/lib-amd/components/Badge/index.d.ts +0 -5
  109. package/lib-amd/components/Badge/index.js +0 -10
  110. package/lib-amd/components/Badge/index.js.map +0 -1
  111. package/lib-amd/components/Badge/renderBadge.d.ts +0 -2
  112. package/lib-amd/components/Badge/renderBadge.js +0 -14
  113. package/lib-amd/components/Badge/renderBadge.js.map +0 -1
  114. package/lib-amd/components/Badge/useBadge.d.ts +0 -10
  115. package/lib-amd/components/Badge/useBadge.js +0 -25
  116. package/lib-amd/components/Badge/useBadge.js.map +0 -1
  117. package/lib-amd/components/Badge/useBadgeStyles.d.ts +0 -5
  118. package/lib-amd/components/Badge/useBadgeStyles.js +0 -234
  119. package/lib-amd/components/Badge/useBadgeStyles.js.map +0 -1
  120. package/lib-amd/components/CounterBadge/CounterBadge.d.ts +0 -7
  121. package/lib-amd/components/CounterBadge/CounterBadge.js +0 -16
  122. package/lib-amd/components/CounterBadge/CounterBadge.js.map +0 -1
  123. package/lib-amd/components/CounterBadge/CounterBadge.types.d.ts +0 -61
  124. package/lib-amd/components/CounterBadge/CounterBadge.types.js +0 -5
  125. package/lib-amd/components/CounterBadge/CounterBadge.types.js.map +0 -1
  126. package/lib-amd/components/CounterBadge/index.d.ts +0 -4
  127. package/lib-amd/components/CounterBadge/index.js +0 -9
  128. package/lib-amd/components/CounterBadge/index.js.map +0 -1
  129. package/lib-amd/components/CounterBadge/useCounterBadge.d.ts +0 -10
  130. package/lib-amd/components/CounterBadge/useCounterBadge.js +0 -28
  131. package/lib-amd/components/CounterBadge/useCounterBadge.js.map +0 -1
  132. package/lib-amd/components/CounterBadge/useCounterBadgeStyles.d.ts +0 -5
  133. package/lib-amd/components/CounterBadge/useCounterBadgeStyles.js +0 -46
  134. package/lib-amd/components/CounterBadge/useCounterBadgeStyles.js.map +0 -1
  135. package/lib-amd/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  136. package/lib-amd/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -64
  137. package/lib-amd/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
  138. package/lib-amd/components/PresenceBadge/PresenceBadge.d.ts +0 -7
  139. package/lib-amd/components/PresenceBadge/PresenceBadge.js +0 -16
  140. package/lib-amd/components/PresenceBadge/PresenceBadge.js.map +0 -1
  141. package/lib-amd/components/PresenceBadge/PresenceBadge.types.d.ts +0 -37
  142. package/lib-amd/components/PresenceBadge/PresenceBadge.types.js +0 -5
  143. package/lib-amd/components/PresenceBadge/PresenceBadge.types.js.map +0 -1
  144. package/lib-amd/components/PresenceBadge/index.d.ts +0 -4
  145. package/lib-amd/components/PresenceBadge/index.js +0 -9
  146. package/lib-amd/components/PresenceBadge/index.js.map +0 -1
  147. package/lib-amd/components/PresenceBadge/usePresenceBadge.d.ts +0 -10
  148. package/lib-amd/components/PresenceBadge/usePresenceBadge.js +0 -37
  149. package/lib-amd/components/PresenceBadge/usePresenceBadge.js.map +0 -1
  150. package/lib-amd/components/PresenceBadge/usePresenceBadgeStyles.d.ts +0 -5
  151. package/lib-amd/components/PresenceBadge/usePresenceBadgeStyles.js +0 -58
  152. package/lib-amd/components/PresenceBadge/usePresenceBadgeStyles.js.map +0 -1
  153. package/lib-amd/index.d.ts +0 -5
  154. package/lib-amd/index.js +0 -10
  155. package/lib-amd/index.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,143 @@
2
2
  "name": "@fluentui/react-badge",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 16 Sep 2021 07:35:43 GMT",
5
+ "date": "Wed, 22 Sep 2021 10:08:31 GMT",
6
+ "tag": "@fluentui/react-badge_v9.0.0-alpha.84",
7
+ "version": "9.0.0-alpha.84",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "lingfangao@hotmail.com",
12
+ "package": "@fluentui/react-badge",
13
+ "comment": "refactor(Badge): Remove `mergeProps` and migrate to simple slots",
14
+ "commit": "bc3f1ec72fc7784a558b0dd6598ee0662f4649c1"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-badge",
19
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-alpha.70",
20
+ "commit": "bc3f1ec72fc7784a558b0dd6598ee0662f4649c1"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-badge",
25
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-alpha.50",
26
+ "commit": "bc3f1ec72fc7784a558b0dd6598ee0662f4649c1"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-badge",
31
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-alpha.52",
32
+ "commit": "bc3f1ec72fc7784a558b0dd6598ee0662f4649c1"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-badge",
37
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.45",
38
+ "commit": "bc3f1ec72fc7784a558b0dd6598ee0662f4649c1"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-badge",
43
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.14",
44
+ "commit": "bc3f1ec72fc7784a558b0dd6598ee0662f4649c1"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "date": "Tue, 21 Sep 2021 07:42:34 GMT",
51
+ "tag": "@fluentui/react-badge_v9.0.0-alpha.83",
52
+ "version": "9.0.0-alpha.83",
53
+ "comments": {
54
+ "prerelease": [
55
+ {
56
+ "author": "gcox@microsoft.com",
57
+ "package": "@fluentui/react-badge",
58
+ "comment": "Updating to types over interfaces",
59
+ "commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
60
+ },
61
+ {
62
+ "author": "beachball",
63
+ "package": "@fluentui/react-badge",
64
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-alpha.69",
65
+ "commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
66
+ },
67
+ {
68
+ "author": "beachball",
69
+ "package": "@fluentui/react-badge",
70
+ "comment": "Bump @fluentui/react-theme to v9.0.0-alpha.23",
71
+ "commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
72
+ },
73
+ {
74
+ "author": "beachball",
75
+ "package": "@fluentui/react-badge",
76
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-alpha.51",
77
+ "commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
78
+ },
79
+ {
80
+ "author": "beachball",
81
+ "package": "@fluentui/react-badge",
82
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.44",
83
+ "commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
84
+ },
85
+ {
86
+ "author": "beachball",
87
+ "package": "@fluentui/react-badge",
88
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.13",
89
+ "commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
90
+ }
91
+ ],
92
+ "none": [
93
+ {
94
+ "author": "elcraig@microsoft.com",
95
+ "package": "@fluentui/react-badge",
96
+ "comment": "Remove unnecessary docCategory tags",
97
+ "commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
98
+ }
99
+ ]
100
+ }
101
+ },
102
+ {
103
+ "date": "Mon, 20 Sep 2021 07:36:26 GMT",
104
+ "tag": "@fluentui/react-badge_v9.0.0-alpha.82",
105
+ "version": "9.0.0-alpha.82",
106
+ "comments": {
107
+ "none": [
108
+ {
109
+ "author": "lingfangao@hotmail.com",
110
+ "package": "@fluentui/react-badge",
111
+ "comment": "chore: use versioon eslint-plugin and react-conformance in dev dependencies",
112
+ "commit": "b8a304770f77c0353553a152dad34421070400a6"
113
+ }
114
+ ],
115
+ "prerelease": [
116
+ {
117
+ "author": "lingfangao@hotmail.com",
118
+ "package": "@fluentui/react-badge",
119
+ "commit": "b8a304770f77c0353553a152dad34421070400a6",
120
+ "comment": "Bump @fluentui/react-badge to v9.0.0-alpha.82"
121
+ }
122
+ ]
123
+ }
124
+ },
125
+ {
126
+ "date": "Fri, 17 Sep 2021 07:35:26 GMT",
127
+ "tag": "@fluentui/react-badge_v9.0.0-alpha.81",
128
+ "version": "9.0.0-alpha.81",
129
+ "comments": {
130
+ "prerelease": [
131
+ {
132
+ "author": "Humberto.Morimoto@microsoft.com",
133
+ "package": "@fluentui/react-badge",
134
+ "commit": "90d71a0914acbb73a0365d60a85237e3d58ef575",
135
+ "comment": "Bump @fluentui/react-badge to v9.0.0-alpha.81"
136
+ }
137
+ ]
138
+ }
139
+ },
140
+ {
141
+ "date": "Thu, 16 Sep 2021 07:38:39 GMT",
6
142
  "tag": "@fluentui/react-badge_v9.0.0-alpha.80",
7
143
  "version": "9.0.0-alpha.80",
8
144
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,58 @@
1
1
  # Change Log - @fluentui/react-badge
2
2
 
3
- This log was last generated on Thu, 16 Sep 2021 07:35:43 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 22 Sep 2021 10:08:31 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-alpha.84](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-alpha.84)
8
+
9
+ Wed, 22 Sep 2021 10:08:31 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-alpha.83..@fluentui/react-badge_v9.0.0-alpha.84)
11
+
12
+ ### Changes
13
+
14
+ - refactor(Badge): Remove `mergeProps` and migrate to simple slots ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by lingfangao@hotmail.com)
15
+ - Bump @fluentui/react-make-styles to v9.0.0-alpha.70 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
16
+ - Bump @fluentui/react-utilities to v9.0.0-alpha.50 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
17
+ - Bump @fluentui/babel-make-styles to v9.0.0-alpha.52 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
18
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.45 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
19
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.14 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
20
+
21
+ ## [9.0.0-alpha.83](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-alpha.83)
22
+
23
+ Tue, 21 Sep 2021 07:42:34 GMT
24
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-alpha.82..@fluentui/react-badge_v9.0.0-alpha.83)
25
+
26
+ ### Changes
27
+
28
+ - Updating to types over interfaces ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by gcox@microsoft.com)
29
+ - Bump @fluentui/react-make-styles to v9.0.0-alpha.69 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
30
+ - Bump @fluentui/react-theme to v9.0.0-alpha.23 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
31
+ - Bump @fluentui/babel-make-styles to v9.0.0-alpha.51 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
32
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.44 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
33
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.13 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
34
+
35
+ ## [9.0.0-alpha.82](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-alpha.82)
36
+
37
+ Mon, 20 Sep 2021 07:36:26 GMT
38
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-alpha.81..@fluentui/react-badge_v9.0.0-alpha.82)
39
+
40
+ ### Changes
41
+
42
+ - Bump @fluentui/react-badge to v9.0.0-alpha.82 ([PR #19844](https://github.com/microsoft/fluentui/pull/19844) by lingfangao@hotmail.com)
43
+
44
+ ## [9.0.0-alpha.81](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-alpha.81)
45
+
46
+ Fri, 17 Sep 2021 07:35:26 GMT
47
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-alpha.80..@fluentui/react-badge_v9.0.0-alpha.81)
48
+
49
+ ### Changes
50
+
51
+ - Bump @fluentui/react-badge to v9.0.0-alpha.81 ([PR #19840](https://github.com/microsoft/fluentui/pull/19840) by Humberto.Morimoto@microsoft.com)
52
+
7
53
  ## [9.0.0-alpha.80](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-alpha.80)
8
54
 
9
- Thu, 16 Sep 2021 07:35:43 GMT
55
+ Thu, 16 Sep 2021 07:38:39 GMT
10
56
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-alpha.79..@fluentui/react-badge_v9.0.0-alpha.80)
11
57
 
12
58
  ### Changes
package/Spec.md CHANGED
@@ -36,7 +36,7 @@ type BadgeShape = 'rounded' | 'square' | 'circular';
36
36
 
37
37
  type BadgeSize = 'smallest' | 'smaller' | 'small' | 'medium' | 'large' | 'larger' | 'largest';
38
38
 
39
- interface BadgeProps extends ComponentProps, React.HTMLAttributes<HTMLElement> {
39
+ type BadgeProps extends ComponentProps, React.HTMLAttributes<HTMLElement> {
40
40
  /**
41
41
  * A Badge can be sized.
42
42
  */
@@ -119,15 +119,9 @@ interface BadgeProps extends ComponentProps, React.HTMLAttributes<HTMLElement> {
119
119
  A Presence Badge represents someone's availbility or status
120
120
 
121
121
  ```typescript
122
- /**
123
- * {@docCategory PresenceBadge}
124
- */
125
122
  export type PresenceBadgeStatus = 'busy' | 'oof' | 'away' | 'available' | 'offline';
126
123
 
127
- /**
128
- * {@docCategory PresenceBadge}
129
- */
130
- export interface PresenceBadgeProps extends Omit<BadgeProps, 'shape' | 'appearance'> {
124
+ export type PresenceBadgeProps = Omit<BadgeProps, 'shape' | 'appearance'> & {
131
125
  /**
132
126
  * A PresenceBadge can represent several status
133
127
  * @defaultvalue available
@@ -138,12 +132,9 @@ export interface PresenceBadgeProps extends Omit<BadgeProps, 'shape' | 'appearan
138
132
  * @defaultvalue true
139
133
  */
140
134
  inOffice?: boolean;
141
- }
135
+ };
142
136
 
143
- /**
144
- * {@docCategory Badge}
145
- */
146
- export interface PresenceBadgeState extends BadgeState {
137
+ export type PresenceBadgeState = BadgeState & {
147
138
  /**
148
139
  * A PresenceBadge can represent several status
149
140
  * @defaultvalue available
@@ -154,7 +145,7 @@ export interface PresenceBadgeState extends BadgeState {
154
145
  * @defaultvalue true
155
146
  */
156
147
  inOffice: boolean;
157
- }
148
+ };
158
149
  ```
159
150
 
160
151
  ### Counter Badge
@@ -162,15 +153,9 @@ export interface PresenceBadgeState extends BadgeState {
162
153
  A Counter Badge is a visual indicator for numeric values such as tallies and scores.
163
154
 
164
155
  ```typescript
165
- /**
166
- * {@docCategory CounterBadge}
167
- */
168
156
  export type CounterBadgeColors = 'accent' | 'warning' | 'important' | 'severe' | 'informative';
169
157
 
170
- /**
171
- * {@docCategory CounterBadge}
172
- */
173
- export interface CounterBadgeProps extends Omit<BadgeProps, 'appearance' | 'shape'> {
158
+ export type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape'> & {
174
159
  /**
175
160
  * A Badge can be circular or rounded
176
161
  * @defaultvalue circular
@@ -212,5 +197,5 @@ export interface CounterBadgeProps extends Omit<BadgeProps, 'appearance' | 'shap
212
197
  * @defaultvalue false
213
198
  */
214
199
  dot?: boolean;
215
- }
200
+ };
216
201
  ```
@@ -1,209 +1,129 @@
1
- import type { ComponentPropsCompat } from '@fluentui/react-utilities';
2
- import type { ObjectShorthandPropsCompat } from '@fluentui/react-utilities';
1
+ import type { ComponentProps } from '@fluentui/react-utilities';
2
+ import type { ComponentState } from '@fluentui/react-utilities';
3
+ import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
3
4
  import * as React_2 from 'react';
4
- import type { ShorthandPropsCompat } from '@fluentui/react-utilities';
5
5
 
6
6
  /**
7
7
  * Define a styled Badge, using the `useBadge` hook.
8
- * {@docCategory Badge}
9
8
  */
10
- export declare const Badge: React_2.FunctionComponent<BadgeProps & React_2.RefAttributes<HTMLElement>>;
9
+ export declare const Badge: React_2.ForwardRefExoticComponent<Pick<BadgeProps, "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "as" | "icon" | "shape" | "size" | "appearance" | "iconPosition"> & React_2.RefAttributes<HTMLDivElement>>;
11
10
 
12
- /**
13
- * {@docCategory Badge}
14
- */
15
11
  export declare type BadgeAppearance = 'filled' | 'outline' | 'ghost' | 'tint';
16
12
 
17
- /**
18
- * {@docCategory Badge}
19
- */
20
13
  export declare type BadgeColors = 'brand' | 'danger' | 'severe' | 'warning' | 'success' | 'important' | 'informative' | 'subtle';
21
14
 
22
- /**
23
- * {@docCategory Badge}
24
- */
25
- export declare interface BadgeProps extends ComponentPropsCompat, React_2.HTMLAttributes<HTMLElement> {
15
+ export declare type BadgeCommons = {
26
16
  /**
27
17
  * A Badge can be sized.
28
- * @defaultvalue medium
18
+ * @default medium
29
19
  */
30
- size?: BadgeSize;
20
+ size: BadgeSize;
31
21
  /**
32
22
  * A Badge can be square, circular or rounded
33
- * @defaultvalue circular
23
+ * @default circular
34
24
  */
35
- shape?: BadgeShape;
25
+ shape: BadgeShape;
36
26
  /**
37
27
  * A Badge can be filled, outline, ghost, inverted
38
- * @defaultvalue filled
28
+ * @default filled
39
29
  */
40
- appearance?: BadgeAppearance;
30
+ appearance: BadgeAppearance;
41
31
  /**
42
32
  * A Badge has a preset of colors
43
- * @defaultvalue filled
44
- */
45
- color?: BadgeColors;
46
- /**
47
- * Icon slot
33
+ * @default brand
48
34
  */
49
- icon?: ShorthandPropsCompat<React_2.HTMLAttributes<HTMLElement>>;
35
+ color: BadgeColors;
50
36
  /**
51
37
  * Position for Icon to be rendered
52
- * @defaultvalue before
38
+ * @default before
53
39
  */
54
- iconPosition?: 'before' | 'after';
55
- }
40
+ iconPosition: 'before' | 'after';
41
+ };
56
42
 
57
- /**
58
- * {@docCategory Badge}
59
- */
60
- export declare type BadgeShape = 'rounded' | 'square' | 'circular';
43
+ export declare type BadgeProps = ComponentProps<Partial<BadgeSlots>> & Partial<BadgeCommons>;
61
44
 
62
- /**
63
- * Consts listing which props are shorthand props.
64
- */
65
- export declare const badgeShorthandPropsCompat: readonly ["icon"];
45
+ export declare type BadgeShape = 'rounded' | 'square' | 'circular';
66
46
 
67
- /**
68
- * {@docCategory Badge}
69
- */
70
47
  export declare type BadgeSize = 'smallest' | 'smaller' | 'small' | 'medium' | 'large' | 'larger' | 'largest';
71
48
 
72
- /**
73
- * {@docCategory Badge}
74
- */
75
- export declare interface BadgeState extends BadgeProps {
76
- /**
77
- * Ref to the root slot
78
- */
79
- ref: React_2.RefObject<HTMLElement>;
80
- /**
81
- * Icon slot when processed by internal state
82
- */
83
- icon?: ObjectShorthandPropsCompat<React_2.HTMLAttributes<HTMLSpanElement>>;
84
- }
85
-
86
- /**
87
- * Define a styled CounterBadge, using the `useCounterBadge` hook.
88
- * {@docCategory CounterBadge}
89
- */
90
- export declare const CounterBadge: React_2.ForwardRefExoticComponent<CounterBadgeProps & React_2.RefAttributes<HTMLElement>>;
49
+ export declare type BadgeSlots = {
50
+ root: Omit<IntrinsicShorthandProps<'div'>, 'color'>;
51
+ icon?: IntrinsicShorthandProps<'span'>;
52
+ };
91
53
 
92
- /**
93
- * {@docCategory CounterBadge}
94
- */
95
- export declare interface CounterBadgeProps extends Omit<BadgeProps, 'appearance' | 'shape'> {
96
- /**
97
- * A Badge can be circular or rounded
98
- * @defaultvalue circular
99
- */
100
- shape?: Extract<BadgeProps['shape'], 'rounded' | 'circular'>;
101
- /**
102
- * A Badge can be filled, ghost
103
- * @defaultvalue filled
104
- */
105
- appearance?: Extract<BadgeProps['appearance'], 'filled' | 'ghost'>;
106
- /**
107
- * Max number to be displayed
108
- * @defaultvalue 99
109
- */
110
- overflowCount?: number;
111
- /**
112
- * Value displayed by the Badge
113
- * @defaultvalue 0
114
- */
115
- count?: number;
116
- /**
117
- * If the badge should be shown when count is 0
118
- * @defaultvalue false
119
- */
120
- showZero?: boolean;
121
- /**
122
- * If a dot badge should be displayed
123
- * @defaultvalue false
124
- */
125
- dot?: boolean;
126
- }
54
+ export declare type BadgeState = ComponentState<BadgeSlots> & BadgeCommons;
127
55
 
128
56
  /**
129
- * Consts listing which props are shorthand props.
57
+ * Define a styled CounterBadge, using the `useCounterBadge` hook.
130
58
  */
131
- export declare const counterBadgeShorthandPropsCompat: readonly ["icon"];
59
+ export declare const CounterBadge: React_2.ForwardRefExoticComponent<Pick<CounterBadgeProps, "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "as" | "icon" | "shape" | "size" | "appearance" | "iconPosition" | "overflowCount" | "count" | "showZero" | "dot"> & React_2.RefAttributes<HTMLElement>>;
132
60
 
133
- /**
134
- * {@docCategory CounterBadge}
135
- */
136
- export declare interface CounterBadgeState extends BadgeState {
61
+ export declare type CounterBadgeCommons = {
137
62
  /**
138
63
  * Max number to be displayed
139
- * @defaultvalue 99
64
+ * @default 99
140
65
  */
141
66
  overflowCount: number;
142
67
  /**
143
68
  * Value displayed by the Badge
144
- * @defaultvalue 0
69
+ * @default 0
145
70
  */
146
71
  count: number;
147
72
  /**
148
73
  * If the badge should be shown when count is 0
149
- * @defaultvalue false
74
+ * @default false
150
75
  */
151
76
  showZero: boolean;
152
77
  /**
153
78
  * If a dot badge should be displayed
154
- * @defaultvalue false
79
+ * @default false
155
80
  */
156
81
  dot: boolean;
157
- }
158
-
159
- /**
160
- * Define a styled Badge, using the `useBadge` hook.
161
- * {@docCategory Badge}
162
- */
163
- export declare const PresenceBadge: React_2.ForwardRefExoticComponent<PresenceBadgeProps & React_2.RefAttributes<HTMLElement>>;
164
-
165
- /**
166
- * {@docCategory PresenceBadge}
167
- */
168
- export declare interface PresenceBadgeProps extends Omit<BadgeProps, 'shape' | 'appearance'> {
169
82
  /**
170
- * Represents several status
171
- * @defaultvalue available
83
+ * A Badge can be circular or rounded
84
+ * @default circular
172
85
  */
173
- status?: PresenceBadgeStatus;
86
+ shape: 'rounded' | 'circular';
174
87
  /**
175
- * Modifies the display to indicate that the user is out of office.
176
- * This can be combined with any status to display an out-of-office version of that status
177
- * @defaultvalue false
88
+ * A Badge can be filled, ghost
89
+ * @default filled
178
90
  */
179
- outOfOffice?: boolean;
180
- }
91
+ appearance: 'filled' | 'ghost';
92
+ };
93
+
94
+ /**
95
+ * {@docCategory CounterBadge}
96
+ */
97
+ export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape'> & Partial<CounterBadgeCommons>;
181
98
 
182
99
  /**
183
- * Consts listing which props are shorthand props.
100
+ * {@docCategory CounterBadge}
184
101
  */
185
- export declare const presenceBadgeShorthandPropsCompat: (keyof PresenceBadgeProps)[];
102
+ export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape'> & CounterBadgeCommons;
186
103
 
187
104
  /**
188
- * {@docCategory Badge}
105
+ * Define a styled Badge, using the `useBadge` hook.
189
106
  */
190
- export declare interface PresenceBadgeState extends Omit<BadgeState, 'shape' | 'appearance'> {
107
+ export declare const PresenceBadge: React_2.ForwardRefExoticComponent<Pick<PresenceBadgeProps, "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "as" | "icon" | "shape" | "size" | "appearance" | "iconPosition" | "outOfOffice" | "status"> & React_2.RefAttributes<HTMLElement>>;
108
+
109
+ export declare interface PresenceBadgeCommons {
191
110
  /**
192
111
  * Represents several status
193
- * @defaultvalue available
112
+ * @default available
194
113
  */
195
114
  status: PresenceBadgeStatus;
196
115
  /**
197
116
  * Modifies the display to indicate that the user is out of office.
198
117
  * This can be combined with any status to display an out-of-office version of that status
199
- * @defaultvalue false
118
+ * @default false
200
119
  */
201
120
  outOfOffice: boolean;
202
121
  }
203
122
 
204
- /**
205
- * {@docCategory PresenceBadge}
206
- */
123
+ export declare type PresenceBadgeProps = BadgeProps & Partial<PresenceBadgeCommons>;
124
+
125
+ export declare type PresenceBadgeState = BadgeState & PresenceBadgeCommons;
126
+
207
127
  export declare type PresenceBadgeStatus = 'busy' | 'outOfOffice' | 'away' | 'available' | 'offline' | 'doNotDisturb';
208
128
 
209
129
  export declare const renderBadge: (state: BadgeState) => JSX.Element;
@@ -211,7 +131,7 @@ export declare const renderBadge: (state: BadgeState) => JSX.Element;
211
131
  /**
212
132
  * Returns the props and state required to render the component
213
133
  */
214
- export declare const useBadge: (props: BadgeProps, ref: React_2.Ref<HTMLElement>, defaultProps?: BadgeProps | undefined) => BadgeState;
134
+ export declare const useBadge: (props: BadgeProps, ref: React_2.Ref<HTMLElement>) => BadgeState;
215
135
 
216
136
  /**
217
137
  * Applies style classnames to slots
@@ -221,7 +141,7 @@ export declare const useBadgeStyles: (state: BadgeState) => BadgeState;
221
141
  /**
222
142
  * Returns the props and state required to render the component
223
143
  */
224
- export declare const useCounterBadge: (props: CounterBadgeProps, ref: React_2.Ref<HTMLElement>, defaultProps?: CounterBadgeProps | undefined) => CounterBadgeState;
144
+ export declare const useCounterBadge: (props: CounterBadgeProps, ref: React_2.Ref<HTMLElement>) => CounterBadgeState;
225
145
 
226
146
  /**
227
147
  * Applies style classnames to slots
@@ -231,7 +151,7 @@ export declare const useCounterBadgeStyles: (state: CounterBadgeState) => Counte
231
151
  /**
232
152
  * Returns the props and state required to render the component
233
153
  */
234
- export declare const usePresenceBadge: (props: PresenceBadgeProps, ref: React_2.Ref<HTMLElement>, defaultProps?: PresenceBadgeProps | undefined) => PresenceBadgeState;
154
+ export declare const usePresenceBadge: (props: PresenceBadgeProps, ref: React_2.Ref<HTMLElement>) => PresenceBadgeState;
235
155
 
236
156
  /**
237
157
  * Applies style classnames to slots
package/lib/Badge.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sourceRoot":"../src/","sources":["Badge.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC","sourcesContent":["export * from './components/Badge/index';\n"]}
1
+ {"version":3,"file":"Badge.js","sourceRoot":"","sources":["../src/Badge.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CounterBadge.js","sourceRoot":"../src/","sources":["CounterBadge.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC","sourcesContent":["export * from './components/CounterBadge/index';\n"]}
1
+ {"version":3,"file":"CounterBadge.js","sourceRoot":"","sources":["../src/CounterBadge.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PresenceBadge.js","sourceRoot":"../src/","sources":["PresenceBadge.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC","sourcesContent":["export * from './components/PresenceBadge/index';\n"]}
1
+ {"version":3,"file":"PresenceBadge.js","sourceRoot":"","sources":["../src/PresenceBadge.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC"}
@@ -4,6 +4,8 @@ export function isConformant(testInfo) {
4
4
  var defaultOptions = {
5
5
  asPropHandlesRef: true,
6
6
  componentPath: module.parent.filename.replace('.test', ''),
7
+ // https://github.com/microsoft/fluentui/issues/19522
8
+ skipAsPropTests: true,
7
9
  extraTests: makeStylesTests
8
10
  };
9
11
  baseIsConformant(defaultOptions, testInfo);
@@ -1 +1 @@
1
- {"version":3,"sources":["common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AACA,OAAO,eAAP,MAA4B,yCAA5B;AAGA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,UAAU,EAAE;AAH+C,GAA7D;AAMA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourcesContent":["import { isConformant as baseIsConformant } from '@fluentui/react-conformance';\nimport makeStylesTests from '@fluentui/react-conformance-make-styles';\nimport type { IsConformantOptions, TestObject } from '@fluentui/react-conformance';\n\nexport function isConformant<TProps = {}>(\n testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & { componentPath?: string },\n) {\n const defaultOptions: Partial<IsConformantOptions<TProps>> = {\n asPropHandlesRef: true,\n componentPath: module!.parent!.filename.replace('.test', ''),\n extraTests: makeStylesTests as TestObject<TProps>,\n };\n\n baseIsConformant(defaultOptions, testInfo);\n}\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AACA,OAAO,eAAP,MAA4B,yCAA5B;AAGA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D;AACA,IAAA,eAAe,EAAE,IAJ0C;AAK3D,IAAA,UAAU,EAAE;AAL+C,GAA7D;AAQA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}