@fluentui/react-badge 0.0.0-nightly906d31cfa320211115.1 → 0.0.0-nightlyc0273fdc6920211123.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/CHANGELOG.json +28 -16
  2. package/CHANGELOG.md +13 -11
  3. package/dist/react-badge.d.ts +12 -7
  4. package/lib/components/Badge/Badge.types.d.ts +1 -1
  5. package/lib/components/CounterBadge/CounterBadge.types.d.ts +7 -2
  6. package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
  7. package/lib/components/CounterBadge/useCounterBadgeStyles.js +2 -31
  8. package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  9. package/lib/components/PresenceBadge/PresenceBadge.types.d.ts +6 -5
  10. package/lib/components/PresenceBadge/presenceIcons.d.ts +11 -0
  11. package/lib/components/PresenceBadge/presenceIcons.js +128 -0
  12. package/lib/components/PresenceBadge/presenceIcons.js.map +1 -0
  13. package/lib/components/PresenceBadge/usePresenceBadge.js +29 -15
  14. package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  15. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +34 -42
  16. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  17. package/lib-commonjs/components/Badge/Badge.types.d.ts +1 -1
  18. package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +7 -2
  19. package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
  20. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +2 -31
  21. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  22. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.d.ts +6 -5
  23. package/lib-commonjs/components/PresenceBadge/presenceIcons.d.ts +11 -0
  24. package/lib-commonjs/components/PresenceBadge/presenceIcons.js +136 -0
  25. package/lib-commonjs/components/PresenceBadge/presenceIcons.js.map +1 -0
  26. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +28 -14
  27. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  28. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +34 -43
  29. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  30. package/package.json +8 -7
  31. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  32. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -98
  33. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
  34. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  35. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -113
  36. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,52 +2,64 @@
2
2
  "name": "@fluentui/react-badge",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 15 Nov 2021 04:16:24 GMT",
6
- "tag": "@fluentui/react-badge_v0.0.0-nightly906d31cfa320211115.1",
7
- "version": "0.0.0-nightly906d31cfa320211115.1",
5
+ "date": "Tue, 23 Nov 2021 04:19:27 GMT",
6
+ "tag": "@fluentui/react-badge_v0.0.0-nightlyc0273fdc6920211123.1",
7
+ "version": "0.0.0-nightlyc0273fdc6920211123.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-badge",
13
- "commit": "05edacbae8d85aa6b3d4164f9cd7d1465b47f246",
13
+ "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "lingfangao@hotmail.com",
18
+ "package": "@fluentui/react-badge",
19
+ "commit": "c5c66cb39e6906f506bf30c9e56c0839f10e2d51",
20
+ "comment": "Reduce colour set and align with base badge colours"
21
+ },
22
+ {
23
+ "author": "lingfangao@hotmail.com",
24
+ "package": "@fluentui/react-badge",
25
+ "commit": "48e52fc91e41ab721c9842f8f68ac84ad569a851",
26
+ "comment": "Remove props and return correct presence icons"
27
+ },
16
28
  {
17
29
  "author": "beachball",
18
30
  "package": "@fluentui/react-badge",
19
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly906d31cfa320211115.1",
20
- "commit": "05edacbae8d85aa6b3d4164f9cd7d1465b47f246"
31
+ "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyc0273fdc6920211123.1",
32
+ "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e"
21
33
  },
22
34
  {
23
35
  "author": "beachball",
24
36
  "package": "@fluentui/react-badge",
25
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly906d31cfa320211115.1",
26
- "commit": "05edacbae8d85aa6b3d4164f9cd7d1465b47f246"
37
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightlyc0273fdc6920211123.1",
38
+ "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e"
27
39
  },
28
40
  {
29
41
  "author": "beachball",
30
42
  "package": "@fluentui/react-badge",
31
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly906d31cfa320211115.1",
32
- "commit": "05edacbae8d85aa6b3d4164f9cd7d1465b47f246"
43
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyc0273fdc6920211123.1",
44
+ "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e"
33
45
  },
34
46
  {
35
47
  "author": "beachball",
36
48
  "package": "@fluentui/react-badge",
37
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly906d31cfa320211115.1",
38
- "commit": "05edacbae8d85aa6b3d4164f9cd7d1465b47f246"
49
+ "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyc0273fdc6920211123.1",
50
+ "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e"
39
51
  },
40
52
  {
41
53
  "author": "beachball",
42
54
  "package": "@fluentui/react-badge",
43
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly906d31cfa320211115.1",
44
- "commit": "05edacbae8d85aa6b3d4164f9cd7d1465b47f246"
55
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyc0273fdc6920211123.1",
56
+ "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e"
45
57
  },
46
58
  {
47
59
  "author": "beachball",
48
60
  "package": "@fluentui/react-badge",
49
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly906d31cfa320211115.1",
50
- "commit": "05edacbae8d85aa6b3d4164f9cd7d1465b47f246"
61
+ "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyc0273fdc6920211123.1",
62
+ "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e"
51
63
  }
52
64
  ]
53
65
  }
package/CHANGELOG.md CHANGED
@@ -1,23 +1,25 @@
1
1
  # Change Log - @fluentui/react-badge
2
2
 
3
- This log was last generated on Mon, 15 Nov 2021 04:16:24 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 23 Nov 2021 04:19:27 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly906d31cfa320211115.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v0.0.0-nightly906d31cfa320211115.1)
7
+ ## [0.0.0-nightlyc0273fdc6920211123.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v0.0.0-nightlyc0273fdc6920211123.1)
8
8
 
9
- Mon, 15 Nov 2021 04:16:24 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.3..@fluentui/react-badge_v0.0.0-nightly906d31cfa320211115.1)
9
+ Tue, 23 Nov 2021 04:19:27 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.3..@fluentui/react-badge_v0.0.0-nightlyc0273fdc6920211123.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/05edacbae8d85aa6b3d4164f9cd7d1465b47f246) by email not defined)
15
- - Bump @fluentui/react-make-styles to v0.0.0-nightly906d31cfa320211115.1 ([commit](https://github.com/microsoft/fluentui/commit/05edacbae8d85aa6b3d4164f9cd7d1465b47f246) by beachball)
16
- - Bump @fluentui/react-theme to v0.0.0-nightly906d31cfa320211115.1 ([commit](https://github.com/microsoft/fluentui/commit/05edacbae8d85aa6b3d4164f9cd7d1465b47f246) by beachball)
17
- - Bump @fluentui/react-utilities to v0.0.0-nightly906d31cfa320211115.1 ([commit](https://github.com/microsoft/fluentui/commit/05edacbae8d85aa6b3d4164f9cd7d1465b47f246) by beachball)
18
- - Bump @fluentui/babel-make-styles to v0.0.0-nightly906d31cfa320211115.1 ([commit](https://github.com/microsoft/fluentui/commit/05edacbae8d85aa6b3d4164f9cd7d1465b47f246) by beachball)
19
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly906d31cfa320211115.1 ([commit](https://github.com/microsoft/fluentui/commit/05edacbae8d85aa6b3d4164f9cd7d1465b47f246) by beachball)
20
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly906d31cfa320211115.1 ([commit](https://github.com/microsoft/fluentui/commit/05edacbae8d85aa6b3d4164f9cd7d1465b47f246) by beachball)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by email not defined)
15
+ - Reduce colour set and align with base badge colours ([PR #20596](https://github.com/microsoft/fluentui/pull/20596) by lingfangao@hotmail.com)
16
+ - Remove props and return correct presence icons ([PR #20630](https://github.com/microsoft/fluentui/pull/20630) by lingfangao@hotmail.com)
17
+ - Bump @fluentui/react-make-styles to v0.0.0-nightlyc0273fdc6920211123.1 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by beachball)
18
+ - Bump @fluentui/react-theme to v0.0.0-nightlyc0273fdc6920211123.1 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by beachball)
19
+ - Bump @fluentui/react-utilities to v0.0.0-nightlyc0273fdc6920211123.1 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by beachball)
20
+ - Bump @fluentui/babel-make-styles to v0.0.0-nightlyc0273fdc6920211123.1 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by beachball)
21
+ - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyc0273fdc6920211123.1 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by beachball)
22
+ - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyc0273fdc6920211123.1 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by beachball)
21
23
 
22
24
  ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.3)
23
25
 
@@ -42,7 +42,7 @@ export declare type BadgeCommons = {
42
42
  export declare type BadgeProps = ComponentProps<Partial<BadgeSlots>> & Partial<BadgeCommons>;
43
43
 
44
44
  export declare type BadgeSlots = {
45
- root: ObjectShorthandProps<React_2.HTMLAttributes<HTMLElement>>;
45
+ root: ObjectShorthandProps<Omit<React_2.HTMLAttributes<HTMLElement>, 'color'>>;
46
46
  icon?: ObjectShorthandProps<React_2.HTMLAttributes<HTMLElement>>;
47
47
  };
48
48
 
@@ -86,17 +86,22 @@ export declare type CounterBadgeCommons = {
86
86
  * @default filled
87
87
  */
88
88
  appearance: 'filled' | 'ghost';
89
+ /**
90
+ * Semantic colors for a counter badge
91
+ * @default brand
92
+ */
93
+ color: Extract<BadgeProps['color'], 'brand' | 'danger' | 'important' | 'informative'>;
89
94
  };
90
95
 
91
96
  /**
92
97
  * {@docCategory CounterBadge}
93
98
  */
94
- export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape'> & Partial<CounterBadgeCommons>;
99
+ export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape' | 'color'> & Partial<CounterBadgeCommons>;
95
100
 
96
101
  /**
97
102
  * {@docCategory CounterBadge}
98
103
  */
99
- export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape'> & CounterBadgeCommons;
104
+ export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape' | 'color'> & CounterBadgeCommons;
100
105
 
101
106
  /**
102
107
  * Define a styled Badge, using the `useBadge` hook.
@@ -105,7 +110,7 @@ export declare const PresenceBadge: ForwardRefComponent<PresenceBadgeProps>;
105
110
 
106
111
  export declare const presenceBadgeClassName = "fui-PresenceBadge";
107
112
 
108
- export declare interface PresenceBadgeCommons {
113
+ export declare type PresenceBadgeCommons = {
109
114
  /**
110
115
  * Represents several status
111
116
  * @default available
@@ -117,11 +122,11 @@ export declare interface PresenceBadgeCommons {
117
122
  * @default false
118
123
  */
119
124
  outOfOffice: boolean;
120
- }
125
+ } & BadgeCommons;
121
126
 
122
- export declare type PresenceBadgeProps = BadgeProps & Partial<PresenceBadgeCommons>;
127
+ export declare type PresenceBadgeProps = ComponentProps<Partial<Pick<BadgeSlots, 'root'>>> & Partial<Pick<PresenceBadgeCommons, 'status' | 'outOfOffice' | 'size'>>;
123
128
 
124
- export declare type PresenceBadgeState = BadgeState & PresenceBadgeCommons;
129
+ export declare type PresenceBadgeState = PresenceBadgeCommons & ComponentState<BadgeSlots>;
125
130
 
126
131
  export declare type PresenceBadgeStatus = 'busy' | 'outOfOffice' | 'away' | 'available' | 'offline' | 'doNotDisturb';
127
132
 
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { ComponentProps, ComponentState, ObjectShorthandProps } from '@fluentui/react-utilities';
3
3
  export declare type BadgeSlots = {
4
- root: ObjectShorthandProps<React.HTMLAttributes<HTMLElement>>;
4
+ root: ObjectShorthandProps<Omit<React.HTMLAttributes<HTMLElement>, 'color'>>;
5
5
  icon?: ObjectShorthandProps<React.HTMLAttributes<HTMLElement>>;
6
6
  };
7
7
  export declare type BadgeCommons = {
@@ -30,12 +30,17 @@ export declare type CounterBadgeCommons = {
30
30
  * @default filled
31
31
  */
32
32
  appearance: 'filled' | 'ghost';
33
+ /**
34
+ * Semantic colors for a counter badge
35
+ * @default brand
36
+ */
37
+ color: Extract<BadgeProps['color'], 'brand' | 'danger' | 'important' | 'informative'>;
33
38
  };
34
39
  /**
35
40
  * {@docCategory CounterBadge}
36
41
  */
37
- export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape'> & Partial<CounterBadgeCommons>;
42
+ export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape' | 'color'> & Partial<CounterBadgeCommons>;
38
43
  /**
39
44
  * {@docCategory CounterBadge}
40
45
  */
41
- export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape'> & CounterBadgeCommons;
46
+ export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape' | 'color'> & CounterBadgeCommons;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CounterBadge/useCounterBadge.ts"],"names":[],"mappings":"AACA,SAAS,QAAT,QAAyB,gBAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,eAAe,GAAG,CAAC,KAAD,EAA2B,GAA3B,KAA6E;AAC1G,QAAM;AACJ,IAAA,KAAK,GAAG,UADJ;AAEJ,IAAA,UAAU,GAAG,QAFT;AAGJ,IAAA,QAAQ,GAAG,KAHP;AAIJ,IAAA,aAAa,GAAG,EAJZ;AAKJ,IAAA,KAAK,GAAG,CALJ;AAMJ,IAAA,GAAG,GAAG;AANF,MAOF,KAPJ;AASA,QAAM,KAAK,GAAsB,EAC/B,GAAG,QAAQ,CAAC,KAAD,EAAQ,GAAR,CADoB;AAE/B,IAAA,KAF+B;AAG/B,IAAA,UAH+B;AAI/B,IAAA,QAJ+B;AAK/B,IAAA,aAL+B;AAM/B,IAAA,KAN+B;AAO/B,IAAA;AA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yles = /*#__PURE__*/__styles({
6
6
  "root": {
7
7
  "Bf4jedk": "fgfkb25"
8
8
  },
9
- "warning": {
10
- "De3pzq": "fic4z9l",
11
- "g2u3we": "f1g6aqbb",
12
- "h3c5rm": ["f1xc4egn", "f1y13pv"],
13
- "B9xav0g": "f12f05r9",
14
- "zhjwy3": ["f1y13pv", "f1xc4egn"]
15
- },
16
- "important": {
17
- "De3pzq": "f1y11cvn",
18
- "g2u3we": "f9ag23u",
19
- "h3c5rm": ["fzlvby", "fj2uge6"],
20
- "B9xav0g": "fk41dq4",
21
- "zhjwy3": ["fj2uge6", "fzlvby"]
22
- },
23
- "severe": {
24
- "De3pzq": "ftpr1dl",
25
- "g2u3we": "fx7g4rx",
26
- "h3c5rm": ["f1edxl4n", "f5hlgd2"],
27
- "B9xav0g": "f5ppncr",
28
- "zhjwy3": ["f5hlgd2", "f1edxl4n"]
29
- },
30
- "informative": {
31
- "De3pzq": "f6zwqgc",
32
- "g2u3we": "f1pdtvjr",
33
- "h3c5rm": ["f1ctwv29", "f1m7luuw"],
34
- "B9xav0g": "f1ijpqjr",
35
- "zhjwy3": ["f1m7luuw", "f1ctwv29"],
36
- "sj55zd": "f11d4kpn"
37
- },
38
9
  "dot": {
39
10
  "a9b677": "f16dn6v3",
40
11
  "Bqenvij": "f3mu39s",
@@ -47,7 +18,7 @@ const useStyles = /*#__PURE__*/__styles({
47
18
  "mc9l5x": "fjseox"
48
19
  }
49
20
  }, {
50
- "d": [".fgfkb25{min-width:auto;}", ".fic4z9l{background-color:#c50f1f;}", ".f1g6aqbb{border-top-color:#c50f1f;}", ".f1xc4egn{border-right-color:#c50f1f;}", ".f1y13pv{border-left-color:#c50f1f;}", ".f12f05r9{border-bottom-color:#c50f1f;}", ".f1y11cvn{background-color:#242424;}", ".f9ag23u{border-top-color:#242424;}", ".fzlvby{border-right-color:#242424;}", ".fj2uge6{border-left-color:#242424;}", ".fk41dq4{border-bottom-color:#242424;}", ".ftpr1dl{background-color:#d13438;}", ".fx7g4rx{border-top-color:#d13438;}", ".f1edxl4n{border-right-color:#d13438;}", ".f5hlgd2{border-left-color:#d13438;}", ".f5ppncr{border-bottom-color:#d13438;}", ".f6zwqgc{background-color:#ebebeb;}", ".f1pdtvjr{border-top-color:#ebebeb;}", ".f1ctwv29{border-right-color:#ebebeb;}", ".f1m7luuw{border-left-color:#ebebeb;}", ".f1ijpqjr{border-bottom-color:#ebebeb;}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".f16dn6v3{width:6px;}", ".f3mu39s{height:6px;}", ".f1g0x7ka{padding-top:0;}", ".fhxju0i{padding-right:0;}", ".f1cnd47f{padding-left:0;}", ".f1qch9an{padding-bottom:0;}", ".fjseox{display:none;}"]
21
+ "d": [".fgfkb25{min-width:auto;}", ".f16dn6v3{width:6px;}", ".f3mu39s{height:6px;}", ".f1g0x7ka{padding-top:0;}", ".fhxju0i{padding-right:0;}", ".f1cnd47f{padding-left:0;}", ".f1qch9an{padding-bottom:0;}", ".fjseox{display:none;}"]
51
22
  });
52
23
  /**
53
24
  * Applies style classnames to slots
@@ -56,7 +27,7 @@ const useStyles = /*#__PURE__*/__styles({
56
27
 
57
28
  export const useCounterBadgeStyles = state => {
58
29
  const styles = useStyles();
59
- state.root.className = mergeClasses(counterBadgeClassName, styles.root, state.color === 'warning' && styles.warning, state.color === 'important' && styles.important, state.color === 'severe' && styles.severe, state.color === 'informative' && styles.informative, state.dot && styles.dot, !state.showZero && state.count === 0 && !state.dot && styles.hide, state.root.className);
30
+ state.root.className = mergeClasses(counterBadgeClassName, styles.root, state.dot && styles.dot, !state.showZero && state.count === 0 && !state.dot && styles.hide, state.root.className);
60
31
  return useBadgeStyles(state);
61
32
  };
62
33
  //# sourceMappingURL=useCounterBadgeStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CounterBadge/useCounterBadgeStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,kBAAyC,6BAAzC;AACA,SAAS,cAAT,QAA+B,y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AAO,MAAM,qBAAqB,GAAG,kBAA9B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAcA;;AAEG;;;AACH,OAAO,MAAM,qBAAqB,GAAI,KAAD,IAAgD;AACnF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,qBADiC,EAEjC,MAAM,CAAC,IAF0B,EAGjC,KAAK,CAAC,GAAN,IAAa,MAAM,CAAC,GAHa,EAIjC,CAAC,KAAK,CAAC,QAAP,IAAmB,KAAK,CAAC,KAAN,KAAgB,CAAnC,IAAwC,CAAC,KAAK,CAAC,GAA/C,IAAsD,MAAM,CAAC,IAJ5B,EAKjC,KAAK,CAAC,IAAN,CAAW,SALsB,CAAnC;AAOA,SAAO,cAAc,CAAC,KAAD,CAArB;AACD,CAVM","sourceRoot":""}
@@ -1,6 +1,7 @@
1
- import type { BadgeProps, BadgeState } from '../Badge/index';
1
+ import type { ComponentProps, ComponentState } from '@fluentui/react-utilities';
2
+ import type { BadgeCommons, BadgeSlots } from '../Badge/index';
2
3
  export declare type PresenceBadgeStatus = 'busy' | 'outOfOffice' | 'away' | 'available' | 'offline' | 'doNotDisturb';
3
- export interface PresenceBadgeCommons {
4
+ export declare type PresenceBadgeCommons = {
4
5
  /**
5
6
  * Represents several status
6
7
  * @default available
@@ -12,6 +13,6 @@ export interface PresenceBadgeCommons {
12
13
  * @default false
13
14
  */
14
15
  outOfOffice: boolean;
15
- }
16
- export declare type PresenceBadgeProps = BadgeProps & Partial<PresenceBadgeCommons>;
17
- export declare type PresenceBadgeState = BadgeState & PresenceBadgeCommons;
16
+ } & BadgeCommons;
17
+ export declare type PresenceBadgeProps = ComponentProps<Partial<Pick<BadgeSlots, 'root'>>> & Partial<Pick<PresenceBadgeCommons, 'status' | 'outOfOffice' | 'size'>>;
18
+ export declare type PresenceBadgeState = PresenceBadgeCommons & ComponentState<BadgeSlots>;
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import type { PresenceBadgeState } from './PresenceBadge.types';
3
+ export declare const presenceAwayFilled: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
4
+ export declare const presenceAvailableRegular: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
5
+ export declare const presenceAvailableFilled: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
6
+ export declare const presenceBusyFilled: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
7
+ export declare const presenceDndFilled: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
8
+ export declare const presenceDndRegular: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
9
+ export declare const presenceOofRegular: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
10
+ export declare const presenceOfflineRegular: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
11
+ export declare const presenceUnknownRegular: Record<PresenceBadgeState['size'], React.FunctionComponent | null>;
@@ -0,0 +1,128 @@
1
+ import { PresenceAvailable10Regular, PresenceAvailable12Regular, PresenceAvailable16Regular, PresenceAvailable10Filled, PresenceAvailable12Filled, PresenceAvailable16Filled, PresenceAway10Filled, PresenceAway12Filled, PresenceAway16Filled, PresenceBusy10Filled, PresenceBusy12Filled, PresenceBusy16Filled, PresenceDnd10Regular, PresenceDnd12Regular, PresenceDnd16Regular, PresenceDnd10Filled, PresenceDnd12Filled, PresenceDnd16Filled, PresenceOof10Regular, PresenceOof12Regular, PresenceOof16Regular, PresenceOffline10Regular, PresenceOffline12Regular, PresenceOffline16Regular, PresenceUnknown10Regular, PresenceUnknown12Regular, PresenceUnknown16Regular } from '@fluentui/react-icons';
2
+ export const presenceAwayFilled = {
3
+ // FIXME not all presence icon sizes are available
4
+ // https://github.com/microsoft/fluentui/issues/20650
5
+ tiny: PresenceAway10Filled,
6
+ 'extra-small': PresenceAway10Filled,
7
+ small: PresenceAway12Filled,
8
+ medium: PresenceAway16Filled,
9
+ // FIXME not all presence icon sizes are available
10
+ // https://github.com/microsoft/fluentui/issues/20650
11
+ large: PresenceAway16Filled,
12
+ // FIXME not all presence icon sizes are available
13
+ // https://github.com/microsoft/fluentui/issues/20650
14
+ 'extra-large': PresenceAway16Filled
15
+ };
16
+ export const presenceAvailableRegular = {
17
+ // FIXME not all presence icon sizes are available
18
+ // https://github.com/microsoft/fluentui/issues/20650
19
+ tiny: PresenceAvailable10Regular,
20
+ 'extra-small': PresenceAvailable10Regular,
21
+ small: PresenceAvailable12Regular,
22
+ medium: PresenceAvailable16Regular,
23
+ // FIXME not all presence icon sizes are available
24
+ // https://github.com/microsoft/fluentui/issues/20650
25
+ large: PresenceAvailable16Regular,
26
+ // FIXME not all presence icon sizes are available
27
+ // https://github.com/microsoft/fluentui/issues/20650
28
+ 'extra-large': PresenceAvailable16Regular
29
+ };
30
+ export const presenceAvailableFilled = {
31
+ // FIXME not all presence icon sizes are available
32
+ // https://github.com/microsoft/fluentui/issues/20650
33
+ tiny: PresenceAvailable10Filled,
34
+ 'extra-small': PresenceAvailable10Filled,
35
+ small: PresenceAvailable12Filled,
36
+ medium: PresenceAvailable16Filled,
37
+ // FIXME not all presence icon sizes are available
38
+ // https://github.com/microsoft/fluentui/issues/20650
39
+ large: PresenceAvailable16Filled,
40
+ // FIXME not all presence icon sizes are available
41
+ // https://github.com/microsoft/fluentui/issues/20650
42
+ 'extra-large': PresenceAvailable16Filled
43
+ };
44
+ export const presenceBusyFilled = {
45
+ // FIXME not all presence icon sizes are available
46
+ // https://github.com/microsoft/fluentui/issues/20650
47
+ tiny: PresenceBusy10Filled,
48
+ 'extra-small': PresenceBusy10Filled,
49
+ small: PresenceBusy12Filled,
50
+ medium: PresenceBusy16Filled,
51
+ // FIXME not all presence icon sizes are available
52
+ // https://github.com/microsoft/fluentui/issues/20650
53
+ large: PresenceBusy16Filled,
54
+ // FIXME not all presence icon sizes are available
55
+ // https://github.com/microsoft/fluentui/issues/20650
56
+ 'extra-large': PresenceBusy16Filled
57
+ };
58
+ export const presenceDndFilled = {
59
+ // FIXME not all presence icon sizes are available
60
+ // https://github.com/microsoft/fluentui/issues/20650
61
+ tiny: PresenceDnd10Filled,
62
+ 'extra-small': PresenceDnd10Filled,
63
+ small: PresenceDnd12Filled,
64
+ medium: PresenceDnd16Filled,
65
+ // FIXME not all presence icon sizes are available
66
+ // https://github.com/microsoft/fluentui/issues/20650
67
+ large: PresenceDnd16Filled,
68
+ // FIXME not all presence icon sizes are available
69
+ // https://github.com/microsoft/fluentui/issues/20650
70
+ 'extra-large': PresenceDnd16Filled
71
+ };
72
+ export const presenceDndRegular = {
73
+ // FIXME not all presence icon sizes are available
74
+ // https://github.com/microsoft/fluentui/issues/20650
75
+ tiny: PresenceDnd10Regular,
76
+ 'extra-small': PresenceDnd10Regular,
77
+ small: PresenceDnd12Regular,
78
+ medium: PresenceDnd16Regular,
79
+ // FIXME not all presence icon sizes are available
80
+ // https://github.com/microsoft/fluentui/issues/20650
81
+ large: PresenceDnd16Regular,
82
+ // FIXME not all presence icon sizes are available
83
+ // https://github.com/microsoft/fluentui/issues/20650
84
+ 'extra-large': PresenceDnd16Regular
85
+ };
86
+ export const presenceOofRegular = {
87
+ // FIXME not all presence icon sizes are available
88
+ // https://github.com/microsoft/fluentui/issues/20650
89
+ tiny: PresenceOof10Regular,
90
+ 'extra-small': PresenceOof10Regular,
91
+ small: PresenceOof12Regular,
92
+ medium: PresenceOof16Regular,
93
+ // FIXME not all presence icon sizes are available
94
+ // https://github.com/microsoft/fluentui/issues/20650
95
+ large: PresenceOof16Regular,
96
+ // FIXME not all presence icon sizes are available
97
+ // https://github.com/microsoft/fluentui/issues/20650
98
+ 'extra-large': PresenceOof16Regular
99
+ };
100
+ export const presenceOfflineRegular = {
101
+ // FIXME not all presence icon sizes are available
102
+ // https://github.com/microsoft/fluentui/issues/20650
103
+ tiny: PresenceOffline10Regular,
104
+ 'extra-small': PresenceOffline10Regular,
105
+ small: PresenceOffline12Regular,
106
+ medium: PresenceOffline16Regular,
107
+ // FIXME not all presence icon sizes are available
108
+ // https://github.com/microsoft/fluentui/issues/20650
109
+ large: PresenceOffline16Regular,
110
+ // FIXME not all presence icon sizes are available
111
+ // https://github.com/microsoft/fluentui/issues/20650
112
+ 'extra-large': PresenceOffline16Regular
113
+ };
114
+ export const presenceUnknownRegular = {
115
+ // FIXME not all presence icon sizes are available
116
+ // https://github.com/microsoft/fluentui/issues/20650
117
+ tiny: PresenceUnknown10Regular,
118
+ 'extra-small': PresenceUnknown10Regular,
119
+ small: PresenceUnknown12Regular,
120
+ medium: PresenceUnknown16Regular,
121
+ // FIXME not all presence icon sizes are available
122
+ // https://github.com/microsoft/fluentui/issues/20650
123
+ large: PresenceUnknown16Regular,
124
+ // FIXME not all presence icon sizes are available
125
+ // https://github.com/microsoft/fluentui/issues/20650
126
+ 'extra-large': PresenceUnknown16Regular
127
+ };
128
+ //# sourceMappingURL=presenceIcons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/PresenceBadge/presenceIcons.ts"],"names":[],"mappings":"AACA,SACE,0BADF,EAEE,0BAFF,EAGE,0BAHF,EAIE,yBAJF,EAKE,yBALF,EAME,yBANF,EAOE,oBAPF,EAQE,oBARF,EASE,oBATF,EAUE,oBAVF,EAWE,oBAXF,EAYE,oBAZF,EAaE,oBAbF,EAcE,oBAdF,EAeE,oBAfF,EAgBE,mBAhBF,EAiBE,mBAjBF,EAkBE,mBAlBF,EAmBE,oBAnBF,EAoBE,oBApBF,EAqBE,oBArBF,EAsBE,wBAtBF,EAuBE,wBAvBF,EAwBE,wBAxBF,EAyBE,wBAzBF,EA0BE,wBA1BF,EA2BE,wBA3BF,QA4BO,uBA5BP;AA+BA,OAAO,MAAM,kBAAkB,GAAuE;AACpG;AACA;AACA,EAAA,IAAI,EAAE,oBAH8F;AAIpG,iBAAe,oBAJqF;AAKpG,EAAA,KAAK,EAAE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AE,oBAL6F;AAMpG,EAAA,MAAM,EAAE,oBAN4F;AAOpG;AACA;AACA,EAAA,KAAK,EAAE,oBAT6F;AAUpG;AACA;AACA,iBAAe;AAZqF,CAA/F;AAeP,OAAO,MAAM,kBAAkB,GAAuE;AACpG;AACA;AACA,EAAA,IAAI,EAAE,oBAH8F;AAIpG,iBAAe,oBAJqF;AAKpG,EAAA,KAAK,EAAE,oBAL6F;AAMpG,EAAA,MAAM,EAAE,oBAN4F;AAOpG;AACA;AACA,EAAA,KAAK,EAAE,oBAT6F;AAUpG;AACA;AACA,iBAAe;AAZqF,CAA/F;AAeP,OAAO,MAAM,sBAAsB,GAAuE;AACxG;AACA;AACA,EAAA,IAAI,EAAE,wBAHkG;AAIxG,iBAAe,wBAJyF;AAKxG,EAAA,KAAK,EAAE,wBALiG;AAMxG,EAAA,MAAM,EAAE,wBANgG;AAOxG;AACA;AACA,EAAA,KAAK,EAAE,wBATiG;AAUxG;AACA;AACA,iBAAe;AAZyF,CAAnG;AAeP,OAAO,MAAM,sBAAsB,GAAuE;AACxG;AACA;AACA,EAAA,IAAI,EAAE,wBAHkG;AAIxG,iBAAe,wBAJyF;AAKxG,EAAA,KAAK,EAAE,wBALiG;AAMxG,EAAA,MAAM,EAAE,wBANgG;AAOxG;AACA;AACA,EAAA,KAAK,EAAE,wBATiG;AAUxG;AACA;AACA,iBAAe;AAZyF,CAAnG","sourceRoot":""}
@@ -1,37 +1,51 @@
1
1
  import * as React from 'react';
2
2
  import { resolveShorthand } from '@fluentui/react-utilities';
3
+ import { presenceAvailableFilled, presenceAvailableRegular, presenceAwayFilled, presenceBusyFilled, presenceDndFilled, presenceDndRegular, presenceOfflineRegular, presenceOofRegular, presenceUnknownRegular } from './presenceIcons';
3
4
  import { useBadge } from '../Badge/index';
4
- import { SkypeMinusIcon, SkypeClockIcon, SkypeArrowIcon, SkypeCheckIcon, CancelIcon } from './DefaultPresenceBadgeIcons';
5
-
6
- const iconMap = outOfOffice => ({
7
- busy: null,
8
- available: outOfOffice ? /*#__PURE__*/React.createElement(SkypeArrowIcon, null) : /*#__PURE__*/React.createElement(SkypeCheckIcon, null),
9
- away: outOfOffice ? /*#__PURE__*/React.createElement(SkypeArrowIcon, null) : /*#__PURE__*/React.createElement(SkypeClockIcon, null),
10
- offline: /*#__PURE__*/React.createElement(CancelIcon, null),
11
- outOfOffice: /*#__PURE__*/React.createElement(SkypeArrowIcon, null),
12
- doNotDisturb: /*#__PURE__*/React.createElement(SkypeMinusIcon, null)
13
- });
5
+
6
+ const iconMap = (status, outOfOffice, size) => {
7
+ switch (status) {
8
+ case 'available':
9
+ return outOfOffice ? presenceAvailableRegular[size] : presenceAvailableFilled[size];
10
+
11
+ case 'away':
12
+ return outOfOffice ? presenceOfflineRegular[size] : presenceAwayFilled[size];
13
+
14
+ case 'busy':
15
+ return outOfOffice ? presenceUnknownRegular[size] : presenceBusyFilled[size];
16
+
17
+ case 'doNotDisturb':
18
+ return outOfOffice ? presenceDndRegular[size] : presenceDndFilled[size];
19
+
20
+ case 'offline':
21
+ return presenceOfflineRegular[size];
22
+
23
+ case 'outOfOffice':
24
+ return presenceOofRegular[size];
25
+ }
26
+ };
14
27
  /**
15
28
  * Returns the props and state required to render the component
16
29
  */
17
30
 
18
31
 
19
32
  export const usePresenceBadge = (props, ref) => {
20
- var _a, _b, _c;
33
+ var _a, _b;
21
34
 
22
35
  const state = { ...useBadge({
23
- size: 'small',
36
+ size: 'medium',
24
37
  ...props,
25
- icon: resolveShorthand(props.icon, {
38
+ icon: resolveShorthand(undefined, {
26
39
  required: true
27
40
  })
28
41
  }, ref),
29
42
  status: (_a = props.status) !== null && _a !== void 0 ? _a : 'available',
30
43
  outOfOffice: (_b = props.outOfOffice) !== null && _b !== void 0 ? _b : false
31
44
  };
45
+ const IconElement = iconMap(state.status, state.outOfOffice, state.size);
32
46
 
33
- if (!((_c = state.icon) === null || _c === void 0 ? void 0 : _c.children)) {
34
- state.icon.children = iconMap(state.outOfOffice)[state.status];
47
+ if (IconElement) {
48
+ state.icon.children = /*#__PURE__*/React.createElement(IconElement, null);
35
49
  }
36
50
 
37
51
  return state;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PresenceBadge/usePresenceBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,gBAAT,QAAiC,2BAAjC;AACA,SAAS,QAAT,QAAyB,gBAAzB;AACA,SACE,cADF,EAEE,cAFF,EAGE,cAHF,EAIE,cAJF,EAKE,UALF,QAMO,6BANP;;AASA,MAAM,OAAO,GAA8E,WAAW,KAAK;AACzG,EAAA,IAAI,EAAE,IADmG;AAEzG,EAAA,SAAS,EAAE,WAAW,gBAAG,KAAA,CAAA,aAAA,CAAC,cAAD,EAAe,IAAf,CAAH,gBAAwB,KAAA,CAAA,aAAA,CAAC,cAAD,EAAe,IAAf,CAF2D;AAGzG,EAAA,IAAI,EAAE,WAAW,gBAAG,KAAA,CAAA,aAAA,CAAC,cAAD,EAAe,IAAf,CAAH,gBAAwB,KAAA,CAAA,aAAA,CAAC,cAAD,EAAe,IAAf,CAHgE;AAIzG,EAAA,OAAO,eAAE,KAAA,CAAA,aAAA,CAAC,UAAD,EAAW,IAAX,CAJgG;AAKzG,EAAA,WAAW,eAAE,KAAA,CAAA,aAAA,CAAC,cAAD,EAAe,IAAf,CAL4F;AAMzG,EAAA,YAAY,eAAE,KAAA,CAAA,aAAA,CAAC,cAAD,EAAe,IAAf;AAN2F,CAAL,CAAtG;AASA;;AAEG;;;AACH,OAAO,MAAM,gBAAgB,GAAG,CAAC,KAAD,EAA4B,GAA5B,KAA+E;;;AAC7G,QAAM,KAAK,GAAuB,EAChC,GAAG,QAAQ,CACT;AACE,MAAA,IAAI,EAAE,OADR;AAEE,SAAG,KAFL;AAGE,MAAA,IAAI,EAAE,gBAAgB,CAAC,KAAK,CAAC,IAAP,EAAa;AACjC,QAAA,QAAQ,EAAE;AADuB,OAAb;AAHxB,KADS,EAQT,GARS,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