@fluentui/react-badge 9.0.0-alpha.83 → 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 (148) hide show
  1. package/CHANGELOG.json +53 -8
  2. package/CHANGELOG.md +22 -8
  3. package/dist/react-badge.d.ts +57 -111
  4. package/lib/Badge.js.map +1 -1
  5. package/lib/CounterBadge.js.map +1 -1
  6. package/lib/PresenceBadge.js.map +1 -1
  7. package/lib/common/isConformant.js +2 -0
  8. package/lib/common/isConformant.js.map +1 -1
  9. package/lib/components/Badge/Badge.d.ts +1 -1
  10. package/lib/components/Badge/Badge.js.map +1 -1
  11. package/lib/components/Badge/Badge.types.d.ts +18 -27
  12. package/lib/components/Badge/Badge.types.js.map +1 -1
  13. package/lib/components/Badge/index.js.map +1 -1
  14. package/lib/components/Badge/renderBadge.js +3 -4
  15. package/lib/components/Badge/renderBadge.js.map +1 -1
  16. package/lib/components/Badge/useBadge.d.ts +1 -5
  17. package/lib/components/Badge/useBadge.js +29 -18
  18. package/lib/components/Badge/useBadge.js.map +1 -1
  19. package/lib/components/Badge/useBadgeStyles.js +1 -1
  20. package/lib/components/Badge/useBadgeStyles.js.map +1 -1
  21. package/lib/components/CounterBadge/CounterBadge.d.ts +2 -8
  22. package/lib/components/CounterBadge/CounterBadge.js.map +1 -1
  23. package/lib/components/CounterBadge/CounterBadge.types.d.ts +23 -37
  24. package/lib/components/CounterBadge/CounterBadge.types.js.map +1 -1
  25. package/lib/components/CounterBadge/index.js.map +1 -1
  26. package/lib/components/CounterBadge/useCounterBadge.d.ts +1 -5
  27. package/lib/components/CounterBadge/useCounterBadge.js +25 -19
  28. package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
  29. package/lib/components/CounterBadge/useCounterBadgeStyles.js +1 -1
  30. package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  31. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +1 -1
  32. package/lib/components/PresenceBadge/PresenceBadge.d.ts +2 -4
  33. package/lib/components/PresenceBadge/PresenceBadge.js.map +1 -1
  34. package/lib/components/PresenceBadge/PresenceBadge.types.d.ts +6 -17
  35. package/lib/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
  36. package/lib/components/PresenceBadge/index.js.map +1 -1
  37. package/lib/components/PresenceBadge/usePresenceBadge.d.ts +1 -5
  38. package/lib/components/PresenceBadge/usePresenceBadge.js +15 -21
  39. package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  40. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +1 -1
  41. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  42. package/lib/index.js.map +1 -1
  43. package/lib-commonjs/Badge.js.map +1 -1
  44. package/lib-commonjs/CounterBadge.js.map +1 -1
  45. package/lib-commonjs/PresenceBadge.js.map +1 -1
  46. package/lib-commonjs/common/isConformant.js +2 -0
  47. package/lib-commonjs/common/isConformant.js.map +1 -1
  48. package/lib-commonjs/components/Badge/Badge.d.ts +1 -1
  49. package/lib-commonjs/components/Badge/Badge.js.map +1 -1
  50. package/lib-commonjs/components/Badge/Badge.types.d.ts +18 -27
  51. package/lib-commonjs/components/Badge/Badge.types.js.map +1 -1
  52. package/lib-commonjs/components/Badge/index.js.map +1 -1
  53. package/lib-commonjs/components/Badge/renderBadge.js +2 -4
  54. package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
  55. package/lib-commonjs/components/Badge/useBadge.d.ts +1 -5
  56. package/lib-commonjs/components/Badge/useBadge.js +30 -19
  57. package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
  58. package/lib-commonjs/components/Badge/useBadgeStyles.js +1 -1
  59. package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
  60. package/lib-commonjs/components/CounterBadge/CounterBadge.d.ts +2 -8
  61. package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
  62. package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +23 -37
  63. package/lib-commonjs/components/CounterBadge/CounterBadge.types.js.map +1 -1
  64. package/lib-commonjs/components/CounterBadge/index.js.map +1 -1
  65. package/lib-commonjs/components/CounterBadge/useCounterBadge.d.ts +1 -5
  66. package/lib-commonjs/components/CounterBadge/useCounterBadge.js +27 -21
  67. package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
  68. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +1 -1
  69. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  70. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +1 -1
  71. package/lib-commonjs/components/PresenceBadge/PresenceBadge.d.ts +2 -4
  72. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
  73. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.d.ts +6 -17
  74. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
  75. package/lib-commonjs/components/PresenceBadge/index.js.map +1 -1
  76. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.d.ts +1 -5
  77. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +16 -22
  78. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  79. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +1 -1
  80. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  81. package/lib-commonjs/index.js.map +1 -1
  82. package/package.json +6 -6
  83. package/lib-amd/Badge.d.ts +0 -1
  84. package/lib-amd/Badge.js +0 -6
  85. package/lib-amd/Badge.js.map +0 -1
  86. package/lib-amd/CounterBadge.d.ts +0 -1
  87. package/lib-amd/CounterBadge.js +0 -6
  88. package/lib-amd/CounterBadge.js.map +0 -1
  89. package/lib-amd/PresenceBadge.d.ts +0 -1
  90. package/lib-amd/PresenceBadge.js +0 -6
  91. package/lib-amd/PresenceBadge.js.map +0 -1
  92. package/lib-amd/common/isConformant.d.ts +0 -4
  93. package/lib-amd/common/isConformant.js +0 -15
  94. package/lib-amd/common/isConformant.js.map +0 -1
  95. package/lib-amd/components/Badge/Badge.d.ts +0 -6
  96. package/lib-amd/components/Badge/Badge.js +0 -15
  97. package/lib-amd/components/Badge/Badge.js.map +0 -1
  98. package/lib-amd/components/Badge/Badge.types.d.ts +0 -47
  99. package/lib-amd/components/Badge/Badge.types.js +0 -5
  100. package/lib-amd/components/Badge/Badge.types.js.map +0 -1
  101. package/lib-amd/components/Badge/index.d.ts +0 -5
  102. package/lib-amd/components/Badge/index.js +0 -10
  103. package/lib-amd/components/Badge/index.js.map +0 -1
  104. package/lib-amd/components/Badge/renderBadge.d.ts +0 -2
  105. package/lib-amd/components/Badge/renderBadge.js +0 -14
  106. package/lib-amd/components/Badge/renderBadge.js.map +0 -1
  107. package/lib-amd/components/Badge/useBadge.d.ts +0 -10
  108. package/lib-amd/components/Badge/useBadge.js +0 -25
  109. package/lib-amd/components/Badge/useBadge.js.map +0 -1
  110. package/lib-amd/components/Badge/useBadgeStyles.d.ts +0 -5
  111. package/lib-amd/components/Badge/useBadgeStyles.js +0 -234
  112. package/lib-amd/components/Badge/useBadgeStyles.js.map +0 -1
  113. package/lib-amd/components/CounterBadge/CounterBadge.d.ts +0 -12
  114. package/lib-amd/components/CounterBadge/CounterBadge.js +0 -15
  115. package/lib-amd/components/CounterBadge/CounterBadge.js.map +0 -1
  116. package/lib-amd/components/CounterBadge/CounterBadge.types.d.ts +0 -55
  117. package/lib-amd/components/CounterBadge/CounterBadge.types.js +0 -5
  118. package/lib-amd/components/CounterBadge/CounterBadge.types.js.map +0 -1
  119. package/lib-amd/components/CounterBadge/index.d.ts +0 -4
  120. package/lib-amd/components/CounterBadge/index.js +0 -9
  121. package/lib-amd/components/CounterBadge/index.js.map +0 -1
  122. package/lib-amd/components/CounterBadge/useCounterBadge.d.ts +0 -10
  123. package/lib-amd/components/CounterBadge/useCounterBadge.js +0 -28
  124. package/lib-amd/components/CounterBadge/useCounterBadge.js.map +0 -1
  125. package/lib-amd/components/CounterBadge/useCounterBadgeStyles.d.ts +0 -5
  126. package/lib-amd/components/CounterBadge/useCounterBadgeStyles.js +0 -46
  127. package/lib-amd/components/CounterBadge/useCounterBadgeStyles.js.map +0 -1
  128. package/lib-amd/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  129. package/lib-amd/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -64
  130. package/lib-amd/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
  131. package/lib-amd/components/PresenceBadge/PresenceBadge.d.ts +0 -8
  132. package/lib-amd/components/PresenceBadge/PresenceBadge.js +0 -15
  133. package/lib-amd/components/PresenceBadge/PresenceBadge.js.map +0 -1
  134. package/lib-amd/components/PresenceBadge/PresenceBadge.types.d.ts +0 -28
  135. package/lib-amd/components/PresenceBadge/PresenceBadge.types.js +0 -5
  136. package/lib-amd/components/PresenceBadge/PresenceBadge.types.js.map +0 -1
  137. package/lib-amd/components/PresenceBadge/index.d.ts +0 -4
  138. package/lib-amd/components/PresenceBadge/index.js +0 -9
  139. package/lib-amd/components/PresenceBadge/index.js.map +0 -1
  140. package/lib-amd/components/PresenceBadge/usePresenceBadge.d.ts +0 -10
  141. package/lib-amd/components/PresenceBadge/usePresenceBadge.js +0 -37
  142. package/lib-amd/components/PresenceBadge/usePresenceBadge.js.map +0 -1
  143. package/lib-amd/components/PresenceBadge/usePresenceBadgeStyles.d.ts +0 -5
  144. package/lib-amd/components/PresenceBadge/usePresenceBadgeStyles.js +0 -58
  145. package/lib-amd/components/PresenceBadge/usePresenceBadgeStyles.js.map +0 -1
  146. package/lib-amd/index.d.ts +0 -5
  147. package/lib-amd/index.js +0 -10
  148. package/lib-amd/index.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,52 @@
2
2
  "name": "@fluentui/react-badge",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 21 Sep 2021 07:40:35 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",
6
51
  "tag": "@fluentui/react-badge_v9.0.0-alpha.83",
7
52
  "version": "9.0.0-alpha.83",
8
53
  "comments": {
@@ -11,37 +56,37 @@
11
56
  "author": "gcox@microsoft.com",
12
57
  "package": "@fluentui/react-badge",
13
58
  "comment": "Updating to types over interfaces",
14
- "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
59
+ "commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
15
60
  },
16
61
  {
17
62
  "author": "beachball",
18
63
  "package": "@fluentui/react-badge",
19
64
  "comment": "Bump @fluentui/react-make-styles to v9.0.0-alpha.69",
20
- "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
65
+ "commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
21
66
  },
22
67
  {
23
68
  "author": "beachball",
24
69
  "package": "@fluentui/react-badge",
25
70
  "comment": "Bump @fluentui/react-theme to v9.0.0-alpha.23",
26
- "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
71
+ "commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
27
72
  },
28
73
  {
29
74
  "author": "beachball",
30
75
  "package": "@fluentui/react-badge",
31
76
  "comment": "Bump @fluentui/babel-make-styles to v9.0.0-alpha.51",
32
- "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
77
+ "commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
33
78
  },
34
79
  {
35
80
  "author": "beachball",
36
81
  "package": "@fluentui/react-badge",
37
82
  "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.44",
38
- "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
83
+ "commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
39
84
  },
40
85
  {
41
86
  "author": "beachball",
42
87
  "package": "@fluentui/react-badge",
43
88
  "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.13",
44
- "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
89
+ "commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
45
90
  }
46
91
  ],
47
92
  "none": [
@@ -49,7 +94,7 @@
49
94
  "author": "elcraig@microsoft.com",
50
95
  "package": "@fluentui/react-badge",
51
96
  "comment": "Remove unnecessary docCategory tags",
52
- "commit": "7ac237dbe5b9a3e452581f7478f811f43bba9f19"
97
+ "commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
53
98
  }
54
99
  ]
55
100
  }
package/CHANGELOG.md CHANGED
@@ -1,22 +1,36 @@
1
1
  # Change Log - @fluentui/react-badge
2
2
 
3
- This log was last generated on Tue, 21 Sep 2021 07:40:35 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
+
7
21
  ## [9.0.0-alpha.83](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-alpha.83)
8
22
 
9
- Tue, 21 Sep 2021 07:40:35 GMT
23
+ Tue, 21 Sep 2021 07:42:34 GMT
10
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)
11
25
 
12
26
  ### Changes
13
27
 
14
- - Updating to types over interfaces ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by gcox@microsoft.com)
15
- - Bump @fluentui/react-make-styles to v9.0.0-alpha.69 ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by beachball)
16
- - Bump @fluentui/react-theme to v9.0.0-alpha.23 ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by beachball)
17
- - Bump @fluentui/babel-make-styles to v9.0.0-alpha.51 ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by beachball)
18
- - Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.44 ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by beachball)
19
- - Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.13 ([PR #19880](https://github.com/microsoft/fluentui/pull/19880) by beachball)
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)
20
34
 
21
35
  ## [9.0.0-alpha.82](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-alpha.82)
22
36
 
@@ -1,182 +1,128 @@
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
8
  */
9
- 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>>;
10
10
 
11
11
  export declare type BadgeAppearance = 'filled' | 'outline' | 'ghost' | 'tint';
12
12
 
13
13
  export declare type BadgeColors = 'brand' | 'danger' | 'severe' | 'warning' | 'success' | 'important' | 'informative' | 'subtle';
14
14
 
15
- export declare type BadgeProps = ComponentPropsCompat & React_2.HTMLAttributes<HTMLElement> & {
15
+ export declare type BadgeCommons = {
16
16
  /**
17
17
  * A Badge can be sized.
18
- * @defaultvalue medium
18
+ * @default medium
19
19
  */
20
- size?: BadgeSize;
20
+ size: BadgeSize;
21
21
  /**
22
22
  * A Badge can be square, circular or rounded
23
- * @defaultvalue circular
23
+ * @default circular
24
24
  */
25
- shape?: BadgeShape;
25
+ shape: BadgeShape;
26
26
  /**
27
27
  * A Badge can be filled, outline, ghost, inverted
28
- * @defaultvalue filled
28
+ * @default filled
29
29
  */
30
- appearance?: BadgeAppearance;
30
+ appearance: BadgeAppearance;
31
31
  /**
32
32
  * A Badge has a preset of colors
33
- * @defaultvalue filled
33
+ * @default brand
34
34
  */
35
- color?: BadgeColors;
36
- /**
37
- * Icon slot
38
- */
39
- icon?: ShorthandPropsCompat<React_2.HTMLAttributes<HTMLElement>>;
35
+ color: BadgeColors;
40
36
  /**
41
37
  * Position for Icon to be rendered
42
- * @defaultvalue before
38
+ * @default before
43
39
  */
44
- iconPosition?: 'before' | 'after';
40
+ iconPosition: 'before' | 'after';
45
41
  };
46
42
 
47
- export declare type BadgeShape = 'rounded' | 'square' | 'circular';
43
+ export declare type BadgeProps = ComponentProps<Partial<BadgeSlots>> & Partial<BadgeCommons>;
48
44
 
49
- /**
50
- * Consts listing which props are shorthand props.
51
- */
52
- export declare const badgeShorthandPropsCompat: readonly ["icon"];
45
+ export declare type BadgeShape = 'rounded' | 'square' | 'circular';
53
46
 
54
47
  export declare type BadgeSize = 'smallest' | 'smaller' | 'small' | 'medium' | 'large' | 'larger' | 'largest';
55
48
 
56
- export declare type BadgeState = BadgeProps & {
57
- /**
58
- * Ref to the root slot
59
- */
60
- ref: React_2.RefObject<HTMLElement>;
61
- /**
62
- * Icon slot when processed by internal state
63
- */
64
- icon?: ObjectShorthandPropsCompat<React_2.HTMLAttributes<HTMLSpanElement>>;
49
+ export declare type BadgeSlots = {
50
+ root: Omit<IntrinsicShorthandProps<'div'>, 'color'>;
51
+ icon?: IntrinsicShorthandProps<'span'>;
65
52
  };
66
53
 
67
- /**
68
- * Define a styled CounterBadge, using the `useCounterBadge` hook.
69
- */
70
- export declare const CounterBadge: React_2.ForwardRefExoticComponent<Pick<BadgeProps, "children" | "as" | "className" | "icon" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "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" | "size" | "iconPosition"> & {
71
- shape?: "rounded" | "circular" | undefined;
72
- appearance?: "filled" | "ghost" | undefined;
73
- overflowCount?: number | undefined;
74
- count?: number | undefined;
75
- showZero?: boolean | undefined;
76
- dot?: boolean | undefined;
77
- } & React_2.RefAttributes<HTMLElement>>;
78
-
79
- export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape'> & {
80
- /**
81
- * A Badge can be circular or rounded
82
- * @defaultvalue circular
83
- */
84
- shape?: Extract<BadgeProps['shape'], 'rounded' | 'circular'>;
85
- /**
86
- * A Badge can be filled, ghost
87
- * @defaultvalue filled
88
- */
89
- appearance?: Extract<BadgeProps['appearance'], 'filled' | 'ghost'>;
90
- /**
91
- * Max number to be displayed
92
- * @defaultvalue 99
93
- */
94
- overflowCount?: number;
95
- /**
96
- * Value displayed by the Badge
97
- * @defaultvalue 0
98
- */
99
- count?: number;
100
- /**
101
- * If the badge should be shown when count is 0
102
- * @defaultvalue false
103
- */
104
- showZero?: boolean;
105
- /**
106
- * If a dot badge should be displayed
107
- * @defaultvalue false
108
- */
109
- dot?: boolean;
110
- };
54
+ export declare type BadgeState = ComponentState<BadgeSlots> & BadgeCommons;
111
55
 
112
56
  /**
113
- * Consts listing which props are shorthand props.
57
+ * Define a styled CounterBadge, using the `useCounterBadge` hook.
114
58
  */
115
- 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>>;
116
60
 
117
- export declare type CounterBadgeState = BadgeState & {
61
+ export declare type CounterBadgeCommons = {
118
62
  /**
119
63
  * Max number to be displayed
120
- * @defaultvalue 99
64
+ * @default 99
121
65
  */
122
66
  overflowCount: number;
123
67
  /**
124
68
  * Value displayed by the Badge
125
- * @defaultvalue 0
69
+ * @default 0
126
70
  */
127
71
  count: number;
128
72
  /**
129
73
  * If the badge should be shown when count is 0
130
- * @defaultvalue false
74
+ * @default false
131
75
  */
132
76
  showZero: boolean;
133
77
  /**
134
78
  * If a dot badge should be displayed
135
- * @defaultvalue false
79
+ * @default false
136
80
  */
137
81
  dot: boolean;
138
- };
139
-
140
- /**
141
- * Define a styled Badge, using the `useBadge` hook.
142
- */
143
- export declare const PresenceBadge: React_2.ForwardRefExoticComponent<Pick<BadgeProps, "children" | "as" | "className" | "icon" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "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" | "size" | "iconPosition"> & {
144
- status?: "available" | "busy" | "outOfOffice" | "away" | "offline" | "doNotDisturb" | undefined;
145
- outOfOffice?: boolean | undefined;
146
- } & React_2.RefAttributes<HTMLElement>>;
147
-
148
- export declare type PresenceBadgeProps = Omit<BadgeProps, 'shape' | 'appearance'> & {
149
82
  /**
150
- * Represents several status
151
- * @defaultvalue available
83
+ * A Badge can be circular or rounded
84
+ * @default circular
152
85
  */
153
- status?: PresenceBadgeStatus;
86
+ shape: 'rounded' | 'circular';
154
87
  /**
155
- * Modifies the display to indicate that the user is out of office.
156
- * This can be combined with any status to display an out-of-office version of that status
157
- * @defaultvalue false
88
+ * A Badge can be filled, ghost
89
+ * @default filled
158
90
  */
159
- outOfOffice?: boolean;
91
+ appearance: 'filled' | 'ghost';
160
92
  };
161
93
 
162
94
  /**
163
- * Consts listing which props are shorthand props.
95
+ * {@docCategory CounterBadge}
164
96
  */
165
- export declare const presenceBadgeShorthandPropsCompat: (keyof PresenceBadgeProps)[];
97
+ export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape'> & Partial<CounterBadgeCommons>;
166
98
 
167
- export declare type PresenceBadgeState = Omit<BadgeState, 'shape' | 'appearance'> & {
99
+ /**
100
+ * {@docCategory CounterBadge}
101
+ */
102
+ export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape'> & CounterBadgeCommons;
103
+
104
+ /**
105
+ * Define a styled Badge, using the `useBadge` hook.
106
+ */
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 {
168
110
  /**
169
111
  * Represents several status
170
- * @defaultvalue available
112
+ * @default available
171
113
  */
172
114
  status: PresenceBadgeStatus;
173
115
  /**
174
116
  * Modifies the display to indicate that the user is out of office.
175
117
  * This can be combined with any status to display an out-of-office version of that status
176
- * @defaultvalue false
118
+ * @default false
177
119
  */
178
120
  outOfOffice: boolean;
179
- };
121
+ }
122
+
123
+ export declare type PresenceBadgeProps = BadgeProps & Partial<PresenceBadgeCommons>;
124
+
125
+ export declare type PresenceBadgeState = BadgeState & PresenceBadgeCommons;
180
126
 
181
127
  export declare type PresenceBadgeStatus = 'busy' | 'outOfOffice' | 'away' | 'available' | 'offline' | 'doNotDisturb';
182
128
 
@@ -185,7 +131,7 @@ export declare const renderBadge: (state: BadgeState) => JSX.Element;
185
131
  /**
186
132
  * Returns the props and state required to render the component
187
133
  */
188
- 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;
189
135
 
190
136
  /**
191
137
  * Applies style classnames to slots
@@ -195,7 +141,7 @@ export declare const useBadgeStyles: (state: BadgeState) => BadgeState;
195
141
  /**
196
142
  * Returns the props and state required to render the component
197
143
  */
198
- 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;
199
145
 
200
146
  /**
201
147
  * Applies style classnames to slots
@@ -205,7 +151,7 @@ export declare const useCounterBadgeStyles: (state: CounterBadgeState) => Counte
205
151
  /**
206
152
  * Returns the props and state required to render the component
207
153
  */
208
- 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;
209
155
 
210
156
  /**
211
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":""}
@@ -3,4 +3,4 @@ import type { BadgeProps } from './Badge.types';
3
3
  /**
4
4
  * Define a styled Badge, using the `useBadge` hook.
5
5
  */
6
- export declare const Badge: React.FunctionComponent<BadgeProps & React.RefAttributes<HTMLElement>>;
6
+ export declare const Badge: React.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.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,YAAzB;AACA,SAAS,cAAT,QAA+B,kBAA/B;AACA,SAAS,WAAT,QAA4B,eAA5B;AAGA;;AAEG;;AACH,OAAO,IAAM,KAAK,gBAA2E,KAAK,CAAC,UAAN,CAG3F,UAAC,KAAD,EAAQ,GAAR,EAAW;AACX,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAD,EAAQ,GAAR,CAAtB;AACA,EAAA,cAAc,CAAC,KAAD,CAAd;AAEA,SAAO,WAAW,CAAC,KAAD,CAAlB;AACD,CAR4F,CAAtF;AAUP,KAAK,CAAC,WAAN,GAAoB,OAApB","sourcesContent":["import * as React from 'react';\nimport { useBadge } from './useBadge';\nimport { useBadgeStyles } from './useBadgeStyles';\nimport { renderBadge } from './renderBadge';\nimport type { BadgeProps } from './Badge.types';\n\n/**\n * Define a styled Badge, using the `useBadge` hook.\n */\nexport const Badge: React.FunctionComponent<BadgeProps & React.RefAttributes<HTMLElement>> = React.forwardRef<\n HTMLElement,\n BadgeProps\n>((props, ref) => {\n const state = useBadge(props, ref);\n useBadgeStyles(state);\n\n return renderBadge(state);\n});\n\nBadge.displayName = 'Badge';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,YAAzB;AACA,SAAS,cAAT,QAA+B,kBAA/B;AACA,SAAS,WAAT,QAA4B,eAA5B;AAGA;;AAEG;;AACH,OAAO,IAAM,KAAK,gBAAG,KAAK,CAAC,UAAN,CAA6C,UAAC,KAAD,EAAQ,GAAR,EAAW;AAC3E,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAD,EAAQ,GAAR,CAAtB;AACA,EAAA,cAAc,CAAC,KAAD,CAAd;AAEA,SAAO,WAAW,CAAC,KAAD,CAAlB;AACD,CALoB,CAAd;AAOP,KAAK,CAAC,WAAN,GAAoB,OAApB","sourceRoot":""}
@@ -1,47 +1,38 @@
1
- import * as React from 'react';
2
- import type { ComponentPropsCompat, ShorthandPropsCompat, ObjectShorthandPropsCompat } from '@fluentui/react-utilities';
1
+ import type { IntrinsicShorthandProps, ComponentProps, ComponentState } from '@fluentui/react-utilities';
3
2
  export declare type BadgeSize = 'smallest' | 'smaller' | 'small' | 'medium' | 'large' | 'larger' | 'largest';
4
3
  export declare type BadgeAppearance = 'filled' | 'outline' | 'ghost' | 'tint';
5
4
  export declare type BadgeShape = 'rounded' | 'square' | 'circular';
6
5
  export declare type BadgeColors = 'brand' | 'danger' | 'severe' | 'warning' | 'success' | 'important' | 'informative' | 'subtle';
7
- export declare type BadgeProps = ComponentPropsCompat & React.HTMLAttributes<HTMLElement> & {
6
+ export declare type BadgeSlots = {
7
+ root: Omit<IntrinsicShorthandProps<'div'>, 'color'>;
8
+ icon?: IntrinsicShorthandProps<'span'>;
9
+ };
10
+ export declare type BadgeCommons = {
8
11
  /**
9
12
  * A Badge can be sized.
10
- * @defaultvalue medium
13
+ * @default medium
11
14
  */
12
- size?: BadgeSize;
15
+ size: BadgeSize;
13
16
  /**
14
17
  * A Badge can be square, circular or rounded
15
- * @defaultvalue circular
18
+ * @default circular
16
19
  */
17
- shape?: BadgeShape;
20
+ shape: BadgeShape;
18
21
  /**
19
22
  * A Badge can be filled, outline, ghost, inverted
20
- * @defaultvalue filled
23
+ * @default filled
21
24
  */
22
- appearance?: BadgeAppearance;
25
+ appearance: BadgeAppearance;
23
26
  /**
24
27
  * A Badge has a preset of colors
25
- * @defaultvalue filled
26
- */
27
- color?: BadgeColors;
28
- /**
29
- * Icon slot
28
+ * @default brand
30
29
  */
31
- icon?: ShorthandPropsCompat<React.HTMLAttributes<HTMLElement>>;
30
+ color: BadgeColors;
32
31
  /**
33
32
  * Position for Icon to be rendered
34
- * @defaultvalue before
35
- */
36
- iconPosition?: 'before' | 'after';
37
- };
38
- export declare type BadgeState = BadgeProps & {
39
- /**
40
- * Ref to the root slot
41
- */
42
- ref: React.RefObject<HTMLElement>;
43
- /**
44
- * Icon slot when processed by internal state
33
+ * @default before
45
34
  */
46
- icon?: ObjectShorthandPropsCompat<React.HTMLAttributes<HTMLSpanElement>>;
35
+ iconPosition: 'before' | 'after';
47
36
  };
37
+ export declare type BadgeProps = ComponentProps<Partial<BadgeSlots>> & Partial<BadgeCommons>;
38
+ export declare type BadgeState = ComponentState<BadgeSlots> & BadgeCommons;
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.types.js","sourceRoot":"../src/","sources":["components/Badge/Badge.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport type { ComponentPropsCompat, ShorthandPropsCompat, ObjectShorthandPropsCompat } from '@fluentui/react-utilities';\n\nexport type BadgeSize = 'smallest' | 'smaller' | 'small' | 'medium' | 'large' | 'larger' | 'largest';\n\nexport type BadgeAppearance = 'filled' | 'outline' | 'ghost' | 'tint';\n\nexport type BadgeShape = 'rounded' | 'square' | 'circular';\n\nexport type BadgeColors =\n | 'brand'\n | 'danger'\n | 'severe'\n | 'warning'\n | 'success'\n | 'important'\n | 'informative'\n | 'subtle';\n\nexport type BadgeProps = ComponentPropsCompat &\n React.HTMLAttributes<HTMLElement> & {\n /**\n * A Badge can be sized.\n * @defaultvalue medium\n */\n size?: BadgeSize;\n\n /**\n * A Badge can be square, circular or rounded\n * @defaultvalue circular\n */\n shape?: BadgeShape;\n\n /**\n * A Badge can be filled, outline, ghost, inverted\n * @defaultvalue filled\n */\n appearance?: BadgeAppearance;\n\n /**\n * A Badge has a preset of colors\n * @defaultvalue filled\n */\n color?: BadgeColors;\n\n /**\n * Icon slot\n */\n icon?: ShorthandPropsCompat<React.HTMLAttributes<HTMLElement>>;\n\n /**\n * Position for Icon to be rendered\n * @defaultvalue before\n */\n iconPosition?: 'before' | 'after';\n };\n\nexport type BadgeState = BadgeProps & {\n /**\n * Ref to the root slot\n */\n ref: React.RefObject<HTMLElement>;\n /**\n * Icon slot when processed by internal state\n */\n icon?: ObjectShorthandPropsCompat<React.HTMLAttributes<HTMLSpanElement>>;\n};\n"]}
1
+ {"version":3,"file":"Badge.types.js","sourceRoot":"","sources":["../../../src/components/Badge/Badge.types.ts"],"names":[],"mappings":""}