@fluentui/react-badge 9.0.0-alpha.81 → 9.0.0-alpha.85
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +161 -1
- package/CHANGELOG.md +52 -2
- package/Spec.md +7 -22
- package/dist/react-badge.d.ts +57 -137
- package/lib/Badge.js.map +1 -1
- package/lib/CounterBadge.js.map +1 -1
- package/lib/PresenceBadge.js.map +1 -1
- package/lib/common/isConformant.js +2 -0
- package/lib/common/isConformant.js.map +1 -1
- package/lib/components/Badge/Badge.d.ts +1 -2
- package/lib/components/Badge/Badge.js +0 -1
- package/lib/components/Badge/Badge.js.map +1 -1
- package/lib/components/Badge/Badge.types.d.ts +19 -46
- package/lib/components/Badge/Badge.types.js.map +1 -1
- package/lib/components/Badge/index.js.map +1 -1
- package/lib/components/Badge/renderBadge.js +3 -4
- package/lib/components/Badge/renderBadge.js.map +1 -1
- package/lib/components/Badge/useBadge.d.ts +1 -5
- package/lib/components/Badge/useBadge.js +29 -18
- package/lib/components/Badge/useBadge.js.map +1 -1
- package/lib/components/Badge/useBadgeStyles.js +1 -1
- package/lib/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib/components/CounterBadge/CounterBadge.d.ts +1 -2
- package/lib/components/CounterBadge/CounterBadge.js +0 -1
- package/lib/components/CounterBadge/CounterBadge.js.map +1 -1
- package/lib/components/CounterBadge/CounterBadge.types.d.ts +24 -44
- package/lib/components/CounterBadge/CounterBadge.types.js.map +1 -1
- package/lib/components/CounterBadge/index.js.map +1 -1
- package/lib/components/CounterBadge/useCounterBadge.d.ts +1 -5
- package/lib/components/CounterBadge/useCounterBadge.js +25 -19
- package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
- package/lib/components/CounterBadge/useCounterBadgeStyles.js +1 -1
- package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +1 -1
- package/lib/components/PresenceBadge/PresenceBadge.d.ts +1 -2
- package/lib/components/PresenceBadge/PresenceBadge.js +0 -1
- package/lib/components/PresenceBadge/PresenceBadge.js.map +1 -1
- package/lib/components/PresenceBadge/PresenceBadge.types.d.ts +5 -25
- package/lib/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
- package/lib/components/PresenceBadge/index.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadge.d.ts +1 -5
- package/lib/components/PresenceBadge/usePresenceBadge.js +15 -21
- package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +1 -1
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Badge.js.map +1 -1
- package/lib-commonjs/CounterBadge.js.map +1 -1
- package/lib-commonjs/PresenceBadge.js.map +1 -1
- package/lib-commonjs/common/isConformant.js +2 -0
- package/lib-commonjs/common/isConformant.js.map +1 -1
- package/lib-commonjs/components/Badge/Badge.d.ts +1 -2
- package/lib-commonjs/components/Badge/Badge.js +0 -1
- package/lib-commonjs/components/Badge/Badge.js.map +1 -1
- package/lib-commonjs/components/Badge/Badge.types.d.ts +19 -46
- package/lib-commonjs/components/Badge/Badge.types.js.map +1 -1
- package/lib-commonjs/components/Badge/index.js.map +1 -1
- package/lib-commonjs/components/Badge/renderBadge.js +2 -4
- package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/useBadge.d.ts +1 -5
- package/lib-commonjs/components/Badge/useBadge.js +30 -19
- package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/useBadgeStyles.js +1 -1
- package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.d.ts +1 -2
- package/lib-commonjs/components/CounterBadge/CounterBadge.js +0 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +24 -44
- package/lib-commonjs/components/CounterBadge/CounterBadge.types.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/index.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadge.d.ts +1 -5
- package/lib-commonjs/components/CounterBadge/useCounterBadge.js +27 -21
- package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.d.ts +1 -2
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.js +0 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.d.ts +5 -25
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/index.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.d.ts +1 -5
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +16 -22
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +9 -9
- package/lib-amd/Badge.d.ts +0 -1
- package/lib-amd/Badge.js +0 -6
- package/lib-amd/Badge.js.map +0 -1
- package/lib-amd/CounterBadge.d.ts +0 -1
- package/lib-amd/CounterBadge.js +0 -6
- package/lib-amd/CounterBadge.js.map +0 -1
- package/lib-amd/PresenceBadge.d.ts +0 -1
- package/lib-amd/PresenceBadge.js +0 -6
- package/lib-amd/PresenceBadge.js.map +0 -1
- package/lib-amd/common/isConformant.d.ts +0 -4
- package/lib-amd/common/isConformant.js +0 -15
- package/lib-amd/common/isConformant.js.map +0 -1
- package/lib-amd/components/Badge/Badge.d.ts +0 -7
- package/lib-amd/components/Badge/Badge.js +0 -16
- package/lib-amd/components/Badge/Badge.js.map +0 -1
- package/lib-amd/components/Badge/Badge.types.d.ts +0 -65
- package/lib-amd/components/Badge/Badge.types.js +0 -5
- package/lib-amd/components/Badge/Badge.types.js.map +0 -1
- package/lib-amd/components/Badge/index.d.ts +0 -5
- package/lib-amd/components/Badge/index.js +0 -10
- package/lib-amd/components/Badge/index.js.map +0 -1
- package/lib-amd/components/Badge/renderBadge.d.ts +0 -2
- package/lib-amd/components/Badge/renderBadge.js +0 -14
- package/lib-amd/components/Badge/renderBadge.js.map +0 -1
- package/lib-amd/components/Badge/useBadge.d.ts +0 -10
- package/lib-amd/components/Badge/useBadge.js +0 -25
- package/lib-amd/components/Badge/useBadge.js.map +0 -1
- package/lib-amd/components/Badge/useBadgeStyles.d.ts +0 -5
- package/lib-amd/components/Badge/useBadgeStyles.js +0 -234
- package/lib-amd/components/Badge/useBadgeStyles.js.map +0 -1
- package/lib-amd/components/CounterBadge/CounterBadge.d.ts +0 -7
- package/lib-amd/components/CounterBadge/CounterBadge.js +0 -16
- package/lib-amd/components/CounterBadge/CounterBadge.js.map +0 -1
- package/lib-amd/components/CounterBadge/CounterBadge.types.d.ts +0 -61
- package/lib-amd/components/CounterBadge/CounterBadge.types.js +0 -5
- package/lib-amd/components/CounterBadge/CounterBadge.types.js.map +0 -1
- package/lib-amd/components/CounterBadge/index.d.ts +0 -4
- package/lib-amd/components/CounterBadge/index.js +0 -9
- package/lib-amd/components/CounterBadge/index.js.map +0 -1
- package/lib-amd/components/CounterBadge/useCounterBadge.d.ts +0 -10
- package/lib-amd/components/CounterBadge/useCounterBadge.js +0 -28
- package/lib-amd/components/CounterBadge/useCounterBadge.js.map +0 -1
- package/lib-amd/components/CounterBadge/useCounterBadgeStyles.d.ts +0 -5
- package/lib-amd/components/CounterBadge/useCounterBadgeStyles.js +0 -46
- package/lib-amd/components/CounterBadge/useCounterBadgeStyles.js.map +0 -1
- package/lib-amd/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
- package/lib-amd/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -64
- package/lib-amd/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
- package/lib-amd/components/PresenceBadge/PresenceBadge.d.ts +0 -7
- package/lib-amd/components/PresenceBadge/PresenceBadge.js +0 -16
- package/lib-amd/components/PresenceBadge/PresenceBadge.js.map +0 -1
- package/lib-amd/components/PresenceBadge/PresenceBadge.types.d.ts +0 -37
- package/lib-amd/components/PresenceBadge/PresenceBadge.types.js +0 -5
- package/lib-amd/components/PresenceBadge/PresenceBadge.types.js.map +0 -1
- package/lib-amd/components/PresenceBadge/index.d.ts +0 -4
- package/lib-amd/components/PresenceBadge/index.js +0 -9
- package/lib-amd/components/PresenceBadge/index.js.map +0 -1
- package/lib-amd/components/PresenceBadge/usePresenceBadge.d.ts +0 -10
- package/lib-amd/components/PresenceBadge/usePresenceBadge.js +0 -37
- package/lib-amd/components/PresenceBadge/usePresenceBadge.js.map +0 -1
- package/lib-amd/components/PresenceBadge/usePresenceBadgeStyles.d.ts +0 -5
- package/lib-amd/components/PresenceBadge/usePresenceBadgeStyles.js +0 -58
- package/lib-amd/components/PresenceBadge/usePresenceBadgeStyles.js.map +0 -1
- package/lib-amd/index.d.ts +0 -5
- package/lib-amd/index.js +0 -10
- package/lib-amd/index.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,167 @@
|
|
2
2
|
"name": "@fluentui/react-badge",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Thu, 23 Sep 2021 08:19:56 GMT",
|
6
|
+
"tag": "@fluentui/react-badge_v9.0.0-alpha.85",
|
7
|
+
"version": "9.0.0-alpha.85",
|
8
|
+
"comments": {
|
9
|
+
"prerelease": [
|
10
|
+
{
|
11
|
+
"author": "beachball",
|
12
|
+
"package": "@fluentui/react-badge",
|
13
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-alpha.71",
|
14
|
+
"commit": "95682da34c48813f7658032ae490d21d2f363b90"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "beachball",
|
18
|
+
"package": "@fluentui/react-badge",
|
19
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-alpha.51",
|
20
|
+
"commit": "95682da34c48813f7658032ae490d21d2f363b90"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "beachball",
|
24
|
+
"package": "@fluentui/react-badge",
|
25
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-alpha.53",
|
26
|
+
"commit": "95682da34c48813f7658032ae490d21d2f363b90"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "beachball",
|
30
|
+
"package": "@fluentui/react-badge",
|
31
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.46",
|
32
|
+
"commit": "95682da34c48813f7658032ae490d21d2f363b90"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "beachball",
|
36
|
+
"package": "@fluentui/react-badge",
|
37
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.15",
|
38
|
+
"commit": "95682da34c48813f7658032ae490d21d2f363b90"
|
39
|
+
}
|
40
|
+
]
|
41
|
+
}
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"date": "Wed, 22 Sep 2021 10:10:07 GMT",
|
45
|
+
"tag": "@fluentui/react-badge_v9.0.0-alpha.84",
|
46
|
+
"version": "9.0.0-alpha.84",
|
47
|
+
"comments": {
|
48
|
+
"prerelease": [
|
49
|
+
{
|
50
|
+
"author": "lingfangao@hotmail.com",
|
51
|
+
"package": "@fluentui/react-badge",
|
52
|
+
"comment": "refactor(Badge): Remove `mergeProps` and migrate to simple slots",
|
53
|
+
"commit": "bc3f1ec72fc7784a558b0dd6598ee0662f4649c1"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"author": "beachball",
|
57
|
+
"package": "@fluentui/react-badge",
|
58
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-alpha.70",
|
59
|
+
"commit": "bc3f1ec72fc7784a558b0dd6598ee0662f4649c1"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"author": "beachball",
|
63
|
+
"package": "@fluentui/react-badge",
|
64
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-alpha.50",
|
65
|
+
"commit": "bc3f1ec72fc7784a558b0dd6598ee0662f4649c1"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"author": "beachball",
|
69
|
+
"package": "@fluentui/react-badge",
|
70
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-alpha.52",
|
71
|
+
"commit": "bc3f1ec72fc7784a558b0dd6598ee0662f4649c1"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"author": "beachball",
|
75
|
+
"package": "@fluentui/react-badge",
|
76
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.45",
|
77
|
+
"commit": "bc3f1ec72fc7784a558b0dd6598ee0662f4649c1"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"author": "beachball",
|
81
|
+
"package": "@fluentui/react-badge",
|
82
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.14",
|
83
|
+
"commit": "bc3f1ec72fc7784a558b0dd6598ee0662f4649c1"
|
84
|
+
}
|
85
|
+
]
|
86
|
+
}
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"date": "Tue, 21 Sep 2021 07:42:34 GMT",
|
90
|
+
"tag": "@fluentui/react-badge_v9.0.0-alpha.83",
|
91
|
+
"version": "9.0.0-alpha.83",
|
92
|
+
"comments": {
|
93
|
+
"prerelease": [
|
94
|
+
{
|
95
|
+
"author": "gcox@microsoft.com",
|
96
|
+
"package": "@fluentui/react-badge",
|
97
|
+
"comment": "Updating to types over interfaces",
|
98
|
+
"commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"author": "beachball",
|
102
|
+
"package": "@fluentui/react-badge",
|
103
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-alpha.69",
|
104
|
+
"commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"author": "beachball",
|
108
|
+
"package": "@fluentui/react-badge",
|
109
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-alpha.23",
|
110
|
+
"commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"author": "beachball",
|
114
|
+
"package": "@fluentui/react-badge",
|
115
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-alpha.51",
|
116
|
+
"commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"author": "beachball",
|
120
|
+
"package": "@fluentui/react-badge",
|
121
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.44",
|
122
|
+
"commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"author": "beachball",
|
126
|
+
"package": "@fluentui/react-badge",
|
127
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.13",
|
128
|
+
"commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
|
129
|
+
}
|
130
|
+
],
|
131
|
+
"none": [
|
132
|
+
{
|
133
|
+
"author": "elcraig@microsoft.com",
|
134
|
+
"package": "@fluentui/react-badge",
|
135
|
+
"comment": "Remove unnecessary docCategory tags",
|
136
|
+
"commit": "363765ba3d08d2facbb97fb80ab54ff27ac714fd"
|
137
|
+
}
|
138
|
+
]
|
139
|
+
}
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"date": "Mon, 20 Sep 2021 07:36:26 GMT",
|
143
|
+
"tag": "@fluentui/react-badge_v9.0.0-alpha.82",
|
144
|
+
"version": "9.0.0-alpha.82",
|
145
|
+
"comments": {
|
146
|
+
"none": [
|
147
|
+
{
|
148
|
+
"author": "lingfangao@hotmail.com",
|
149
|
+
"package": "@fluentui/react-badge",
|
150
|
+
"comment": "chore: use versioon eslint-plugin and react-conformance in dev dependencies",
|
151
|
+
"commit": "b8a304770f77c0353553a152dad34421070400a6"
|
152
|
+
}
|
153
|
+
],
|
154
|
+
"prerelease": [
|
155
|
+
{
|
156
|
+
"author": "lingfangao@hotmail.com",
|
157
|
+
"package": "@fluentui/react-badge",
|
158
|
+
"commit": "b8a304770f77c0353553a152dad34421070400a6",
|
159
|
+
"comment": "Bump @fluentui/react-badge to v9.0.0-alpha.82"
|
160
|
+
}
|
161
|
+
]
|
162
|
+
}
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"date": "Fri, 17 Sep 2021 07:35:26 GMT",
|
6
166
|
"tag": "@fluentui/react-badge_v9.0.0-alpha.81",
|
7
167
|
"version": "9.0.0-alpha.81",
|
8
168
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,62 @@
|
|
1
1
|
# Change Log - @fluentui/react-badge
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Thu, 23 Sep 2021 08:19:56 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.0.0-alpha.85](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-alpha.85)
|
8
|
+
|
9
|
+
Thu, 23 Sep 2021 08:19:56 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-alpha.84..@fluentui/react-badge_v9.0.0-alpha.85)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- Bump @fluentui/react-make-styles to v9.0.0-alpha.71 ([commit](https://github.com/microsoft/fluentui/commit/95682da34c48813f7658032ae490d21d2f363b90) by beachball)
|
15
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.51 ([commit](https://github.com/microsoft/fluentui/commit/95682da34c48813f7658032ae490d21d2f363b90) by beachball)
|
16
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.53 ([commit](https://github.com/microsoft/fluentui/commit/95682da34c48813f7658032ae490d21d2f363b90) by beachball)
|
17
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.46 ([commit](https://github.com/microsoft/fluentui/commit/95682da34c48813f7658032ae490d21d2f363b90) by beachball)
|
18
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.15 ([commit](https://github.com/microsoft/fluentui/commit/95682da34c48813f7658032ae490d21d2f363b90) by beachball)
|
19
|
+
|
20
|
+
## [9.0.0-alpha.84](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-alpha.84)
|
21
|
+
|
22
|
+
Wed, 22 Sep 2021 10:10:07 GMT
|
23
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-alpha.83..@fluentui/react-badge_v9.0.0-alpha.84)
|
24
|
+
|
25
|
+
### Changes
|
26
|
+
|
27
|
+
- refactor(Badge): Remove `mergeProps` and migrate to simple slots ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by lingfangao@hotmail.com)
|
28
|
+
- Bump @fluentui/react-make-styles to v9.0.0-alpha.70 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
|
29
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.50 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
|
30
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.52 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
|
31
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.45 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
|
32
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.14 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
|
33
|
+
|
34
|
+
## [9.0.0-alpha.83](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-alpha.83)
|
35
|
+
|
36
|
+
Tue, 21 Sep 2021 07:42:34 GMT
|
37
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-alpha.82..@fluentui/react-badge_v9.0.0-alpha.83)
|
38
|
+
|
39
|
+
### Changes
|
40
|
+
|
41
|
+
- Updating to types over interfaces ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by gcox@microsoft.com)
|
42
|
+
- Bump @fluentui/react-make-styles to v9.0.0-alpha.69 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
|
43
|
+
- Bump @fluentui/react-theme to v9.0.0-alpha.23 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
|
44
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.51 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
|
45
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.44 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
|
46
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.13 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
|
47
|
+
|
48
|
+
## [9.0.0-alpha.82](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-alpha.82)
|
49
|
+
|
50
|
+
Mon, 20 Sep 2021 07:36:26 GMT
|
51
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-alpha.81..@fluentui/react-badge_v9.0.0-alpha.82)
|
52
|
+
|
53
|
+
### Changes
|
54
|
+
|
55
|
+
- Bump @fluentui/react-badge to v9.0.0-alpha.82 ([PR #19844](https://github.com/microsoft/fluentui/pull/19844) by lingfangao@hotmail.com)
|
56
|
+
|
7
57
|
## [9.0.0-alpha.81](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-alpha.81)
|
8
58
|
|
9
|
-
Fri, 17 Sep 2021 07:
|
59
|
+
Fri, 17 Sep 2021 07:35:26 GMT
|
10
60
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-alpha.80..@fluentui/react-badge_v9.0.0-alpha.81)
|
11
61
|
|
12
62
|
### 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
|
-
|
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
|
```
|
package/dist/react-badge.d.ts
CHANGED
@@ -1,209 +1,129 @@
|
|
1
|
-
import type {
|
2
|
-
import type {
|
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.
|
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
|
-
* @
|
18
|
+
* @default medium
|
29
19
|
*/
|
30
|
-
size
|
20
|
+
size: BadgeSize;
|
31
21
|
/**
|
32
22
|
* A Badge can be square, circular or rounded
|
33
|
-
* @
|
23
|
+
* @default circular
|
34
24
|
*/
|
35
|
-
shape
|
25
|
+
shape: BadgeShape;
|
36
26
|
/**
|
37
27
|
* A Badge can be filled, outline, ghost, inverted
|
38
|
-
* @
|
28
|
+
* @default filled
|
39
29
|
*/
|
40
|
-
appearance
|
30
|
+
appearance: BadgeAppearance;
|
41
31
|
/**
|
42
32
|
* A Badge has a preset of colors
|
43
|
-
* @
|
44
|
-
*/
|
45
|
-
color?: BadgeColors;
|
46
|
-
/**
|
47
|
-
* Icon slot
|
33
|
+
* @default brand
|
48
34
|
*/
|
49
|
-
|
35
|
+
color: BadgeColors;
|
50
36
|
/**
|
51
37
|
* Position for Icon to be rendered
|
52
|
-
* @
|
38
|
+
* @default before
|
53
39
|
*/
|
54
|
-
iconPosition
|
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
|
-
|
74
|
-
|
75
|
-
|
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
|
-
*
|
57
|
+
* Define a styled CounterBadge, using the `useCounterBadge` hook.
|
130
58
|
*/
|
131
|
-
export declare const
|
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
|
-
* @
|
64
|
+
* @default 99
|
140
65
|
*/
|
141
66
|
overflowCount: number;
|
142
67
|
/**
|
143
68
|
* Value displayed by the Badge
|
144
|
-
* @
|
69
|
+
* @default 0
|
145
70
|
*/
|
146
71
|
count: number;
|
147
72
|
/**
|
148
73
|
* If the badge should be shown when count is 0
|
149
|
-
* @
|
74
|
+
* @default false
|
150
75
|
*/
|
151
76
|
showZero: boolean;
|
152
77
|
/**
|
153
78
|
* If a dot badge should be displayed
|
154
|
-
* @
|
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
|
-
*
|
171
|
-
* @
|
83
|
+
* A Badge can be circular or rounded
|
84
|
+
* @default circular
|
172
85
|
*/
|
173
|
-
|
86
|
+
shape: 'rounded' | 'circular';
|
174
87
|
/**
|
175
|
-
*
|
176
|
-
*
|
177
|
-
* @defaultvalue false
|
88
|
+
* A Badge can be filled, ghost
|
89
|
+
* @default filled
|
178
90
|
*/
|
179
|
-
|
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
|
-
*
|
100
|
+
* {@docCategory CounterBadge}
|
184
101
|
*/
|
185
|
-
export declare
|
102
|
+
export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape'> & CounterBadgeCommons;
|
186
103
|
|
187
104
|
/**
|
188
|
-
*
|
105
|
+
* Define a styled Badge, using the `useBadge` hook.
|
189
106
|
*/
|
190
|
-
export declare
|
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
|
-
* @
|
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
|
-
* @
|
118
|
+
* @default false
|
200
119
|
*/
|
201
120
|
outOfOffice: boolean;
|
202
121
|
}
|
203
122
|
|
204
|
-
|
205
|
-
|
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
|
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
|
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
|
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":"
|
1
|
+
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../src/Badge.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
package/lib/CounterBadge.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CounterBadge.js","sourceRoot":"
|
1
|
+
{"version":3,"file":"CounterBadge.js","sourceRoot":"","sources":["../src/CounterBadge.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
|
package/lib/PresenceBadge.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PresenceBadge.js","sourceRoot":"
|
1
|
+
{"version":3,"file":"PresenceBadge.js","sourceRoot":"","sources":["../src/PresenceBadge.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC"}
|