@fluentui/react-badge 9.0.0-alpha.92 → 9.0.0-beta.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. package/CHANGELOG.json +277 -1
  2. package/CHANGELOG.md +67 -2
  3. package/dist/react-badge.d.ts +18 -7
  4. package/lib/components/Badge/Badge.js +2 -2
  5. package/lib/components/Badge/Badge.js.map +1 -1
  6. package/lib/components/Badge/Badge.types.d.ts +1 -1
  7. package/lib/components/Badge/renderBadge.js +6 -7
  8. package/lib/components/Badge/renderBadge.js.map +1 -1
  9. package/lib/components/Badge/useBadge.js +19 -22
  10. package/lib/components/Badge/useBadge.js.map +1 -1
  11. package/lib/components/Badge/useBadgeStyles.d.ts +1 -0
  12. package/lib/components/Badge/useBadgeStyles.js +35 -35
  13. package/lib/components/Badge/useBadgeStyles.js.map +1 -1
  14. package/lib/components/CounterBadge/CounterBadge.js +2 -2
  15. package/lib/components/CounterBadge/CounterBadge.js.map +1 -1
  16. package/lib/components/CounterBadge/CounterBadge.types.d.ts +7 -2
  17. package/lib/components/CounterBadge/useCounterBadge.js +18 -24
  18. package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
  19. package/lib/components/CounterBadge/useCounterBadgeStyles.d.ts +1 -0
  20. package/lib/components/CounterBadge/useCounterBadgeStyles.js +6 -34
  21. package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  22. package/lib/components/PresenceBadge/PresenceBadge.js +2 -2
  23. package/lib/components/PresenceBadge/PresenceBadge.js.map +1 -1
  24. package/lib/components/PresenceBadge/PresenceBadge.types.d.ts +6 -5
  25. package/lib/components/PresenceBadge/presenceIcons.d.ts +11 -0
  26. package/lib/components/PresenceBadge/presenceIcons.js +128 -0
  27. package/lib/components/PresenceBadge/presenceIcons.js.map +1 -0
  28. package/lib/components/PresenceBadge/usePresenceBadge.js +35 -24
  29. package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  30. package/lib/components/PresenceBadge/usePresenceBadgeStyles.d.ts +1 -0
  31. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +38 -45
  32. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  33. package/lib-commonjs/Badge.js +1 -1
  34. package/lib-commonjs/CounterBadge.js +1 -1
  35. package/lib-commonjs/PresenceBadge.js +1 -1
  36. package/lib-commonjs/components/Badge/Badge.js +6 -6
  37. package/lib-commonjs/components/Badge/Badge.js.map +1 -1
  38. package/lib-commonjs/components/Badge/Badge.types.d.ts +1 -1
  39. package/lib-commonjs/components/Badge/index.js +1 -1
  40. package/lib-commonjs/components/Badge/renderBadge.js +8 -10
  41. package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
  42. package/lib-commonjs/components/Badge/useBadge.js +20 -24
  43. package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
  44. package/lib-commonjs/components/Badge/useBadgeStyles.d.ts +1 -0
  45. package/lib-commonjs/components/Badge/useBadgeStyles.js +38 -37
  46. package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
  47. package/lib-commonjs/components/CounterBadge/CounterBadge.js +6 -6
  48. package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
  49. package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +7 -2
  50. package/lib-commonjs/components/CounterBadge/index.js +1 -1
  51. package/lib-commonjs/components/CounterBadge/useCounterBadge.js +19 -26
  52. package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
  53. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.d.ts +1 -0
  54. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +10 -37
  55. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  56. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js +6 -6
  57. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
  58. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.d.ts +6 -5
  59. package/lib-commonjs/components/PresenceBadge/index.js +1 -1
  60. package/lib-commonjs/components/PresenceBadge/presenceIcons.d.ts +11 -0
  61. package/lib-commonjs/components/PresenceBadge/presenceIcons.js +136 -0
  62. package/lib-commonjs/components/PresenceBadge/presenceIcons.js.map +1 -0
  63. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +36 -26
  64. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  65. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.d.ts +1 -0
  66. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +40 -47
  67. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  68. package/lib-commonjs/index.js +1 -1
  69. package/package.json +11 -10
  70. package/lib/common/isConformant.d.ts +0 -4
  71. package/lib/common/isConformant.js +0 -13
  72. package/lib/common/isConformant.js.map +0 -1
  73. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  74. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -111
  75. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
  76. package/lib-commonjs/common/isConformant.d.ts +0 -4
  77. package/lib-commonjs/common/isConformant.js +0 -24
  78. package/lib-commonjs/common/isConformant.js.map +0 -1
  79. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  80. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -127
  81. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
@@ -1,6 +1,7 @@
1
1
  import { mergeClasses, __styles } from '@fluentui/react-make-styles';
2
+ export const badgeClassName = 'fui-Badge';
2
3
 
3
- var useStyles = /*#__PURE__*/__styles({
4
+ const useStyles = /*#__PURE__*/__styles({
4
5
  "root": {
5
6
  "mc9l5x": "ftuwxu6",
6
7
  "B7ck84d": "f1ewtqcl",
@@ -98,10 +99,10 @@ var useStyles = /*#__PURE__*/__styles({
98
99
  "rootTint": {
99
100
  "De3pzq": "f16xkysk",
100
101
  "sj55zd": "faj9fo0",
101
- "g2u3we": "fwhevhj",
102
- "h3c5rm": ["f61n433", "f1q8l70w"],
103
- "B9xav0g": "fv1dfc8",
104
- "zhjwy3": ["f1q8l70w", "f61n433"]
102
+ "g2u3we": "f161y7kd",
103
+ "h3c5rm": ["f1c8dzaj", "f1sl6hi9"],
104
+ "B9xav0g": "f1619yhw",
105
+ "zhjwy3": ["f1sl6hi9", "f1c8dzaj"]
105
106
  },
106
107
  "rootFilledDanger": {
107
108
  "De3pzq": "fdl5y0r",
@@ -132,10 +133,10 @@ var useStyles = /*#__PURE__*/__styles({
132
133
  "rootFilledSevere": {
133
134
  "De3pzq": "f1s438gw",
134
135
  "sj55zd": "f1phragk",
135
- "g2u3we": "fwhevhj",
136
- "h3c5rm": ["f61n433", "f1q8l70w"],
137
- "B9xav0g": "fv1dfc8",
138
- "zhjwy3": ["f1q8l70w", "f61n433"]
136
+ "g2u3we": "fghlq4f",
137
+ "h3c5rm": ["f1gn591s", "fjscplz"],
138
+ "B9xav0g": "fb073pr",
139
+ "zhjwy3": ["fjscplz", "f1gn591s"]
139
140
  },
140
141
  "rootOutlineSevere": {
141
142
  "sj55zd": "f1l8vj45",
@@ -184,10 +185,10 @@ var useStyles = /*#__PURE__*/__styles({
184
185
  "rootFilledSuccess": {
185
186
  "De3pzq": "flxk52p",
186
187
  "sj55zd": "f1phragk",
187
- "g2u3we": "fwhevhj",
188
- "h3c5rm": ["f61n433", "f1q8l70w"],
189
- "B9xav0g": "fv1dfc8",
190
- "zhjwy3": ["f1q8l70w", "f61n433"]
188
+ "g2u3we": "fghlq4f",
189
+ "h3c5rm": ["f1gn591s", "fjscplz"],
190
+ "B9xav0g": "fb073pr",
191
+ "zhjwy3": ["fjscplz", "f1gn591s"]
191
192
  },
192
193
  "rootOutlineSuccess": {
193
194
  "sj55zd": "f1sms7z7",
@@ -242,7 +243,6 @@ var useStyles = /*#__PURE__*/__styles({
242
243
  "zhjwy3": ["fjscplz", "f1gn591s"]
243
244
  },
244
245
  "rootOutlineInformative": {
245
- "De3pzq": "f1s438gw",
246
246
  "sj55zd": "f11z005f",
247
247
  "g2u3we": "f1o6yoc8",
248
248
  "h3c5rm": ["fdav146", "f6dh4jx"],
@@ -269,11 +269,11 @@ var useStyles = /*#__PURE__*/__styles({
269
269
  "zhjwy3": ["fjscplz", "f1gn591s"]
270
270
  },
271
271
  "rootOutlineSubtle": {
272
- "sj55zd": "f1phragk",
273
- "g2u3we": "fm1ebug",
274
- "h3c5rm": ["f28omuz", "f1uhflii"],
275
- "B9xav0g": "f1ixw5o4",
276
- "zhjwy3": ["f1uhflii", "f28omuz"]
272
+ "sj55zd": "fqpbvvt",
273
+ "g2u3we": "fgtodeh",
274
+ "h3c5rm": ["fm9lria", "fvwj3xt"],
275
+ "B9xav0g": "f7asi1z",
276
+ "zhjwy3": ["fvwj3xt", "fm9lria"]
277
277
  },
278
278
  "rootTintSubtle": {
279
279
  "De3pzq": "fxugw4r",
@@ -284,7 +284,7 @@ var useStyles = /*#__PURE__*/__styles({
284
284
  "zhjwy3": ["fw35ms5", "f7pw515"]
285
285
  },
286
286
  "rootGhostSubtle": {
287
- "sj55zd": "f1phragk"
287
+ "sj55zd": "fqpbvvt"
288
288
  },
289
289
  "icon": {
290
290
  "mc9l5x": "f22iagw",
@@ -293,27 +293,27 @@ var useStyles = /*#__PURE__*/__styles({
293
293
  "Bqenvij": "f1l02sjl"
294
294
  }
295
295
  }, {
296
- "d": [".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f1ewtqcl{box-sizing:border-box;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1vp46cd{border-top-color:var(--colorBrandBackground);}", ".f1lxz1cr{border-right-color:var(--colorBrandBackground);}", ".ff8nh0i{border-left-color:var(--colorBrandBackground);}", ".fe9j8it{border-bottom-color:var(--colorBrandBackground);}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".f10pi13n{position:relative;}", ".f16dn6v3{width:6px;}", ".f3mu39s{height:6px;}", ".f130uwy9{font-size:4px;}", ".fpd43o0{width:10px;}", ".f30q22z{height:10px;}", ".f1tccstq{font-size:6px;}", ".fq2vo04{min-width:16px;}", ".fd461yt{height:16px;}", ".f1sgzk6v{padding-right:6px;}", ".f1bg5zqg{padding-left:6px;}", ".f4xv25i{gap:4px;}", ".f1n0apg3{font-size:8px;}", ".fjamq6b{height:20px;}", ".f11u7vat{min-width:20px;}", ".f19lj068{padding-right:8px;}", ".f177v4lu{padding-left:8px;}", ".fnmn6fi{font-size:10px;}", ".f17fgpbq{min-width:24px;}", ".frvgh55{height:24px;}", ".f1ugzwwg{font-size:12px;}", ".f19jf40t{gap:6px;}", ".fwbmr0d{min-width:32px;}", ".f1d2rq10{height:32px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".f18zi460{border-top-width:var(--strokeWidthThick);}", ".f1wpluaz{border-right-width:var(--strokeWidthThick);}", ".fsfsuhs{border-left-width:var(--strokeWidthThick);}", ".fmklw6v{border-bottom-width:var(--strokeWidthThick);}", ".ft85np5{border-radius:var(--borderRadiusMedium);}", ".fq9zq91{border-radius:var(--borderRadiusSmall);}", ".f1rt4pet{border-radius:99px;}", ".f2imlf6{background:transparent;}", ".f1ern45e{border-top-style:none;}", ".f1n71otn{border-right-style:none;}", ".f1deefiw{border-left-style:none;}", ".f1h8hb77{border-bottom-style:none;}", ".f1817uup{color:var(--colorBrandBackground);}", ".f16xkysk{background-color:var(--colorBrandBackground2);}", ".faj9fo0{color:var(--colorBrandForeground2);}", ".fwhevhj{border-top-color:none;}", ".f61n433{border-right-color:none;}", ".f1q8l70w{border-left-color:none;}", ".fv1dfc8{border-bottom-color:none;}", ".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}", ".f11ttmz8{border-top-color:var(--colorPaletteRedBackground3);}", ".f1ratw88{border-right-color:var(--colorPaletteRedBackground3);}", ".f459ikj{border-left-color:var(--colorPaletteRedBackground3);}", ".fvovscg{border-bottom-color:var(--colorPaletteRedBackground3);}", ".f1whyuy6{color:var(--colorPaletteRedForeground3);}", ".f1tg094z{border-top-color:var(--colorPaletteRedForeground3);}", ".f19abfc5{border-right-color:var(--colorPaletteRedForeground3);}", ".f1cj97ds{border-left-color:var(--colorPaletteRedForeground3);}", ".f1i5u4jy{border-bottom-color:var(--colorPaletteRedForeground3);}", ".ff0poqj{background-color:var(--colorPaletteRedBackground1);}", ".f1hcrxcs{color:var(--colorPaletteRedForeground1);}", ".fkvqoq2{border-top-color:var(--colorPaletteRedForeground2);}", ".f1abpjw7{border-right-color:var(--colorPaletteRedForeground2);}", ".fzsnz0r{border-left-color:var(--colorPaletteRedForeground2);}", ".f9kvmvw{border-bottom-color:var(--colorPaletteRedForeground2);}", ".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}", ".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}", ".f1wahxdx{border-top-color:var(--colorPaletteDarkOrangeForeground3);}", ".fpbzgcg{border-right-color:var(--colorPaletteDarkOrangeForeground3);}", ".f1g7u8zt{border-left-color:var(--colorPaletteDarkOrangeForeground3);}", ".f1wrnc4t{border-bottom-color:var(--colorPaletteDarkOrangeForeground3);}", ".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}", ".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}", ".f18s257e{border-top-color:var(--colorPaletteDarkOrangeForeground2);}", ".f13ptu4t{border-right-color:var(--colorPaletteDarkOrangeForeground2);}", ".fiwx4jo{border-left-color:var(--colorPaletteDarkOrangeForeground2);}", ".f1geyuz0{border-bottom-color:var(--colorPaletteDarkOrangeForeground2);}", ".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".f1gyeiz5{border-top-color:var(--colorPaletteYellowBackground3);}", ".f1jnj1iq{border-right-color:var(--colorPaletteYellowBackground3);}", ".fd1epeu{border-left-color:var(--colorPaletteYellowBackground3);}", ".f102bkgo{border-bottom-color:var(--colorPaletteYellowBackground3);}", ".fpti2h4{color:var(--colorPaletteYellowForeground2);}", ".fbahunb{border-top-color:var(--colorPaletteYellowForeground2);}", ".fa2hcp6{border-right-color:var(--colorPaletteYellowForeground2);}", ".f1cr20yc{border-left-color:var(--colorPaletteYellowForeground2);}", ".f1fbl5g1{border-bottom-color:var(--colorPaletteYellowForeground2);}", ".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}", ".f1e2bpek{border-top-color:var(--colorPaletteYellowBackground2);}", ".fnu3uvp{border-right-color:var(--colorPaletteYellowBackground2);}", ".fdpwmi9{border-left-color:var(--colorPaletteYellowBackground2);}", ".fk8fs0c{border-bottom-color:var(--colorPaletteYellowBackground2);}", ".flxk52p{background-color:var(--colorPaletteGreenBackground3);}", ".f1sms7z7{color:var(--colorPaletteGreenForeground2);}", ".f7obisw{border-top-color:var(--colorPaletteGreenForeground2);}", ".f108f34s{border-right-color:var(--colorPaletteGreenForeground2);}", ".f1chpoyh{border-left-color:var(--colorPaletteGreenForeground2);}", ".f1xtovf2{border-bottom-color:var(--colorPaletteGreenForeground2);}", ".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}", ".ffmvakt{color:var(--colorPaletteGreenForeground1);}", ".f3m3qtd{border-top-color:var(--colorPaletteGreenBackground2);}", ".f1bjyn17{border-right-color:var(--colorPaletteGreenBackground2);}", ".fksln3n{border-left-color:var(--colorPaletteGreenBackground2);}", ".frg4y0o{border-bottom-color:var(--colorPaletteGreenBackground2);}", ".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}", ".f1c73kur{background-color:var(--colorNeutralForeground1);}", ".fr0bkrk{color:var(--colorNeutralBackground1);}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".fnp0ra0{border-top-color:var(--colorNeutralForeground1);}", ".fanr40h{border-right-color:var(--colorNeutralForeground1);}", ".f1nwaeql{border-left-color:var(--colorNeutralForeground1);}", ".f15ntglx{border-bottom-color:var(--colorNeutralForeground1);}", ".f945g0u{background-color:var(--colorNeutralForeground3);}", ".f3vzo32{background-color:var(--colorNeutralBackground5);}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".f11z005f{color:var(--colorNeutralBackground5);}", ".f1o6yoc8{border-top-color:var(--colorNeutralBackground5);}", ".fdav146{border-right-color:var(--colorNeutralBackground5);}", ".f6dh4jx{border-left-color:var(--colorNeutralBackground5);}", ".fhjohzm{border-bottom-color:var(--colorNeutralBackground5);}", ".f1ctqxl6{background-color:var(--colorNeutralBackground4);}", ".f68mrw8{border-top-color:var(--colorNeutralStroke2);}", ".f7pw515{border-right-color:var(--colorNeutralStroke2);}", ".fw35ms5{border-left-color:var(--colorNeutralStroke2);}", ".frpde29{border-bottom-color:var(--colorNeutralStroke2);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fm1ebug{border-top-color:var(--colorNeutralForegroundOnBrand);}", ".f28omuz{border-right-color:var(--colorNeutralForegroundOnBrand);}", ".f1uhflii{border-left-color:var(--colorNeutralForegroundOnBrand);}", ".f1ixw5o4{border-bottom-color:var(--colorNeutralForegroundOnBrand);}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".fxe27oy{-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;}", ".f1l02sjl{height:100%;}"]
296
+ "d": [".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f1ewtqcl{box-sizing:border-box;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1vp46cd{border-top-color:var(--colorBrandBackground);}", ".f1lxz1cr{border-right-color:var(--colorBrandBackground);}", ".ff8nh0i{border-left-color:var(--colorBrandBackground);}", ".fe9j8it{border-bottom-color:var(--colorBrandBackground);}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".f10pi13n{position:relative;}", ".f16dn6v3{width:6px;}", ".f3mu39s{height:6px;}", ".f130uwy9{font-size:4px;}", ".fpd43o0{width:10px;}", ".f30q22z{height:10px;}", ".f1tccstq{font-size:6px;}", ".fq2vo04{min-width:16px;}", ".fd461yt{height:16px;}", ".f1sgzk6v{padding-right:6px;}", ".f1bg5zqg{padding-left:6px;}", ".f4xv25i{gap:4px;}", ".f1n0apg3{font-size:8px;}", ".fjamq6b{height:20px;}", ".f11u7vat{min-width:20px;}", ".f19lj068{padding-right:8px;}", ".f177v4lu{padding-left:8px;}", ".fnmn6fi{font-size:10px;}", ".f17fgpbq{min-width:24px;}", ".frvgh55{height:24px;}", ".f1ugzwwg{font-size:12px;}", ".f19jf40t{gap:6px;}", ".fwbmr0d{min-width:32px;}", ".f1d2rq10{height:32px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".f18zi460{border-top-width:var(--strokeWidthThick);}", ".f1wpluaz{border-right-width:var(--strokeWidthThick);}", ".fsfsuhs{border-left-width:var(--strokeWidthThick);}", ".fmklw6v{border-bottom-width:var(--strokeWidthThick);}", ".ft85np5{border-radius:var(--borderRadiusMedium);}", ".fq9zq91{border-radius:var(--borderRadiusSmall);}", ".f1rt4pet{border-radius:99px;}", ".f2imlf6{background:transparent;}", ".f1ern45e{border-top-style:none;}", ".f1n71otn{border-right-style:none;}", ".f1deefiw{border-left-style:none;}", ".f1h8hb77{border-bottom-style:none;}", ".f1817uup{color:var(--colorBrandBackground);}", ".f16xkysk{background-color:var(--colorBrandBackground2);}", ".faj9fo0{color:var(--colorBrandForeground2);}", ".f161y7kd{border-top-color:var(--colorBrandStroke2);}", ".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}", ".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}", ".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}", ".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}", ".f11ttmz8{border-top-color:var(--colorPaletteRedBackground3);}", ".f1ratw88{border-right-color:var(--colorPaletteRedBackground3);}", ".f459ikj{border-left-color:var(--colorPaletteRedBackground3);}", ".fvovscg{border-bottom-color:var(--colorPaletteRedBackground3);}", ".f1whyuy6{color:var(--colorPaletteRedForeground3);}", ".f1tg094z{border-top-color:var(--colorPaletteRedForeground3);}", ".f19abfc5{border-right-color:var(--colorPaletteRedForeground3);}", ".f1cj97ds{border-left-color:var(--colorPaletteRedForeground3);}", ".f1i5u4jy{border-bottom-color:var(--colorPaletteRedForeground3);}", ".ff0poqj{background-color:var(--colorPaletteRedBackground1);}", ".f1hcrxcs{color:var(--colorPaletteRedForeground1);}", ".fkvqoq2{border-top-color:var(--colorPaletteRedForeground2);}", ".f1abpjw7{border-right-color:var(--colorPaletteRedForeground2);}", ".fzsnz0r{border-left-color:var(--colorPaletteRedForeground2);}", ".f9kvmvw{border-bottom-color:var(--colorPaletteRedForeground2);}", ".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}", ".f1wahxdx{border-top-color:var(--colorPaletteDarkOrangeForeground3);}", ".fpbzgcg{border-right-color:var(--colorPaletteDarkOrangeForeground3);}", ".f1g7u8zt{border-left-color:var(--colorPaletteDarkOrangeForeground3);}", ".f1wrnc4t{border-bottom-color:var(--colorPaletteDarkOrangeForeground3);}", ".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}", ".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}", ".f18s257e{border-top-color:var(--colorPaletteDarkOrangeForeground2);}", ".f13ptu4t{border-right-color:var(--colorPaletteDarkOrangeForeground2);}", ".fiwx4jo{border-left-color:var(--colorPaletteDarkOrangeForeground2);}", ".f1geyuz0{border-bottom-color:var(--colorPaletteDarkOrangeForeground2);}", ".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".f1gyeiz5{border-top-color:var(--colorPaletteYellowBackground3);}", ".f1jnj1iq{border-right-color:var(--colorPaletteYellowBackground3);}", ".fd1epeu{border-left-color:var(--colorPaletteYellowBackground3);}", ".f102bkgo{border-bottom-color:var(--colorPaletteYellowBackground3);}", ".fpti2h4{color:var(--colorPaletteYellowForeground2);}", ".fbahunb{border-top-color:var(--colorPaletteYellowForeground2);}", ".fa2hcp6{border-right-color:var(--colorPaletteYellowForeground2);}", ".f1cr20yc{border-left-color:var(--colorPaletteYellowForeground2);}", ".f1fbl5g1{border-bottom-color:var(--colorPaletteYellowForeground2);}", ".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}", ".f1e2bpek{border-top-color:var(--colorPaletteYellowBackground2);}", ".fnu3uvp{border-right-color:var(--colorPaletteYellowBackground2);}", ".fdpwmi9{border-left-color:var(--colorPaletteYellowBackground2);}", ".fk8fs0c{border-bottom-color:var(--colorPaletteYellowBackground2);}", ".flxk52p{background-color:var(--colorPaletteGreenBackground3);}", ".f1sms7z7{color:var(--colorPaletteGreenForeground2);}", ".f7obisw{border-top-color:var(--colorPaletteGreenForeground2);}", ".f108f34s{border-right-color:var(--colorPaletteGreenForeground2);}", ".f1chpoyh{border-left-color:var(--colorPaletteGreenForeground2);}", ".f1xtovf2{border-bottom-color:var(--colorPaletteGreenForeground2);}", ".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}", ".ffmvakt{color:var(--colorPaletteGreenForeground1);}", ".f3m3qtd{border-top-color:var(--colorPaletteGreenBackground2);}", ".f1bjyn17{border-right-color:var(--colorPaletteGreenBackground2);}", ".fksln3n{border-left-color:var(--colorPaletteGreenBackground2);}", ".frg4y0o{border-bottom-color:var(--colorPaletteGreenBackground2);}", ".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}", ".f1c73kur{background-color:var(--colorNeutralForeground1);}", ".fr0bkrk{color:var(--colorNeutralBackground1);}", ".fnp0ra0{border-top-color:var(--colorNeutralForeground1);}", ".fanr40h{border-right-color:var(--colorNeutralForeground1);}", ".f1nwaeql{border-left-color:var(--colorNeutralForeground1);}", ".f15ntglx{border-bottom-color:var(--colorNeutralForeground1);}", ".f945g0u{background-color:var(--colorNeutralForeground3);}", ".f3vzo32{background-color:var(--colorNeutralBackground5);}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".f11z005f{color:var(--colorNeutralBackground5);}", ".f1o6yoc8{border-top-color:var(--colorNeutralBackground5);}", ".fdav146{border-right-color:var(--colorNeutralBackground5);}", ".f6dh4jx{border-left-color:var(--colorNeutralBackground5);}", ".fhjohzm{border-bottom-color:var(--colorNeutralBackground5);}", ".f1ctqxl6{background-color:var(--colorNeutralBackground4);}", ".f68mrw8{border-top-color:var(--colorNeutralStroke2);}", ".f7pw515{border-right-color:var(--colorNeutralStroke2);}", ".fw35ms5{border-left-color:var(--colorNeutralStroke2);}", ".frpde29{border-bottom-color:var(--colorNeutralStroke2);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".fgtodeh{border-top-color:var(--colorNeutralForegroundInverted);}", ".fm9lria{border-right-color:var(--colorNeutralForegroundInverted);}", ".fvwj3xt{border-left-color:var(--colorNeutralForegroundInverted);}", ".f7asi1z{border-bottom-color:var(--colorNeutralForegroundInverted);}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".fxe27oy{-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;}", ".f1l02sjl{height:100%;}"]
297
297
  });
298
298
  /**
299
299
  * Applies style classnames to slots
300
300
  */
301
301
 
302
302
 
303
- export var useBadgeStyles = function (state) {
304
- var styles = useStyles();
305
- var isGhost = state.appearance === 'ghost';
306
- var isOutline = state.appearance === 'outline';
307
- var isTint = state.appearance === 'tint';
308
- var isFilled = state.appearance === 'filled';
309
- var isDanger = state.color === 'danger';
310
- var isSevere = state.color === 'severe';
311
- var isWarning = state.color === 'warning';
312
- var isSuccess = state.color === 'success';
313
- var isImportant = state.color === 'important';
314
- var isInformative = state.color === 'informative';
315
- var isSubtle = state.color === 'subtle';
316
- state.root.className = mergeClasses(styles.root, state.size === 'tiny' && styles.rootTiny, state.size === 'extra-small' && styles.rootExtraSmall, state.size === 'small' && styles.rootSmall, state.size === 'medium' && styles.rootMedium, state.size === 'large' && styles.rootLarge, state.size === 'extra-large' && styles.rootExtraLarge, state.shape === 'circular' && styles.rootCircular, state.shape === 'rounded' && styles.rootRounded, state.shape === 'rounded' && (state.size === 'small' || state.size === 'extra-small' || state.size === 'tiny') && styles.rootRoundedSmallToTiny, isGhost && styles.rootGhost, isOutline && styles.rootOutline, isTint && styles.rootTint, isFilled && isDanger && styles.rootFilledDanger, isOutline && isDanger && styles.rootOutlineDanger, isTint && isDanger && styles.rootTintDanger, isGhost && isDanger && styles.rootGhostDanger, isFilled && isSevere && styles.rootFilledSevere, isOutline && isSevere && styles.rootOutlineSevere, isTint && isSevere && styles.rootTintSevere, isGhost && isSevere && styles.rootGhostSevere, isFilled && isWarning && styles.rootFilledWarning, isOutline && isWarning && styles.rootOutlineWarning, isTint && isWarning && styles.rootTintWarning, isGhost && isWarning && styles.rootGhostWarning, isFilled && isSuccess && styles.rootFilledSuccess, isOutline && isSuccess && styles.rootOutlineSuccess, isTint && isSuccess && styles.rootTintSuccess, isGhost && isSuccess && styles.rootGhostSuccess, isFilled && isImportant && styles.rootFilledImportant, isOutline && isImportant && styles.rootOutlineImportant, isTint && isImportant && styles.rootTintImportant, isGhost && isImportant && styles.rootGhostImportant, isFilled && isInformative && styles.rootFilledInformative, isOutline && isInformative && styles.rootOutlineInformative, isTint && isInformative && styles.rootTintInformative, isGhost && isInformative && styles.rootGhostInformative, isFilled && isSubtle && styles.rootFilledSubtle, isOutline && isSubtle && styles.rootOutlineSubtle, isTint && isSubtle && styles.rootTintSubtle, isGhost && isSubtle && styles.rootGhostSubtle, state.root.className);
303
+ export const useBadgeStyles = state => {
304
+ const styles = useStyles();
305
+ const isGhost = state.appearance === 'ghost';
306
+ const isOutline = state.appearance === 'outline';
307
+ const isTint = state.appearance === 'tint';
308
+ const isFilled = state.appearance === 'filled';
309
+ const isDanger = state.color === 'danger';
310
+ const isSevere = state.color === 'severe';
311
+ const isWarning = state.color === 'warning';
312
+ const isSuccess = state.color === 'success';
313
+ const isImportant = state.color === 'important';
314
+ const isInformative = state.color === 'informative';
315
+ const isSubtle = state.color === 'subtle';
316
+ state.root.className = mergeClasses(badgeClassName, styles.root, state.size === 'tiny' && styles.rootTiny, state.size === 'extra-small' && styles.rootExtraSmall, state.size === 'small' && styles.rootSmall, state.size === 'medium' && styles.rootMedium, state.size === 'large' && styles.rootLarge, state.size === 'extra-large' && styles.rootExtraLarge, state.shape === 'circular' && styles.rootCircular, state.shape === 'rounded' && styles.rootRounded, state.shape === 'rounded' && (state.size === 'small' || state.size === 'extra-small' || state.size === 'tiny') && styles.rootRoundedSmallToTiny, isGhost && styles.rootGhost, isOutline && styles.rootOutline, isTint && styles.rootTint, isFilled && isDanger && styles.rootFilledDanger, isOutline && isDanger && styles.rootOutlineDanger, isTint && isDanger && styles.rootTintDanger, isGhost && isDanger && styles.rootGhostDanger, isFilled && isSevere && styles.rootFilledSevere, isOutline && isSevere && styles.rootOutlineSevere, isTint && isSevere && styles.rootTintSevere, isGhost && isSevere && styles.rootGhostSevere, isFilled && isWarning && styles.rootFilledWarning, isOutline && isWarning && styles.rootOutlineWarning, isTint && isWarning && styles.rootTintWarning, isGhost && isWarning && styles.rootGhostWarning, isFilled && isSuccess && styles.rootFilledSuccess, isOutline && isSuccess && styles.rootOutlineSuccess, isTint && isSuccess && styles.rootTintSuccess, isGhost && isSuccess && styles.rootGhostSuccess, isFilled && isImportant && styles.rootFilledImportant, isOutline && isImportant && styles.rootOutlineImportant, isTint && isImportant && styles.rootTintImportant, isGhost && isImportant && styles.rootGhostImportant, isFilled && isInformative && styles.rootFilledInformative, isOutline && isInformative && styles.rootOutlineInformative, isTint && isInformative && styles.rootTintInformative, isGhost && isInformative && styles.rootGhostInformative, isFilled && isSubtle && styles.rootFilledSubtle, isOutline && isSubtle && styles.rootOutlineSubtle, isTint && isSubtle && styles.rootTintSubtle, isGhost && isSubtle && styles.rootGhostSubtle, state.root.className);
317
317
 
318
318
  if (state.icon) {
319
319
  state.icon.className = mergeClasses(styles.icon, state.icon.className);
@@ -1 +1 @@
1
- {"version":3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jC,QAAQ,IAAI,aAAZ,IAA6B,MAAM,CAAC,qBArCH,EAsCjC,SAAS,IAAI,aAAb,IAA8B,MAAM,CAAC,sBAtCJ,EAuCjC,MAAM,IAAI,aAAV,IAA2B,MAAM,CAAC,mBAvCD,EAwCjC,OAAO,IAAI,aAAX,IAA4B,MAAM,CAAC,oBAxCF,EAyCjC,QAAQ,IAAI,QAAZ,IAAwB,MAAM,CAAC,gBAzCE,EA0CjC,SAAS,IAAI,QAAb,IAAyB,MAAM,CAAC,iBA1CC,EA2CjC,MAAM,IAAI,QAAV,IAAsB,MAAM,CAAC,cA3CI,EA4CjC,OAAO,IAAI,QAAX,IAAuB,MAAM,CAAC,eA5CG,EA6CjC,KAAK,CAAC,IAAN,CAAW,SA7CsB,CAAnC;;AAgDA,MAAI,KAAK,CAAC,IAAV,EAAgB;AACd,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,MAAM,CAAC,IAAR,EAAc,KAAK,CAAC,IAAN,CAAW,SAAzB,CAAnC;AACD;;AAED,SAAO,KAAP;AACD,CAnEM","sourceRoot":""}
@@ -6,8 +6,8 @@ import { renderBadge } from '../Badge/index';
6
6
  * Define a styled CounterBadge, using the `useCounterBadge` hook.
7
7
  */
8
8
 
9
- export var CounterBadge = /*#__PURE__*/React.forwardRef(function (props, ref) {
10
- var state = useCounterBadge(props, ref);
9
+ export const CounterBadge = /*#__PURE__*/React.forwardRef((props, ref) => {
10
+ const state = useCounterBadge(props, ref);
11
11
  useCounterBadgeStyles(state);
12
12
  return renderBadge(state);
13
13
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CounterBadge/CounterBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,eAAT,QAAgC,mBAAhC;AACA,SAAS,qBAAT,QAAsC,yBAAtC;AACA,SAAS,WAAT,QAA4B,gBAA5B;AAIA;;AAEG;;AACH,OAAO,IAAM,YAAY,gBAA2C,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AAC9F,MAAM,KAAK,GAAG,eAAe,CAAC,KAAD,EAAQ,GAAR,CAA7B;AACA,EAAA,qBAAqB,CAAC,KAAD,CAArB;AAEA,SAAO,WAAW,CAAC,KAAD,CAAlB;AACD,CALmE,CAA7D;AAOP,YAAY,CAAC,WAAb,GAA2B,cAA3B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/CounterBadge/CounterBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,eAAT,QAAgC,mBAAhC;AACA,SAAS,qBAAT,QAAsC,yBAAtC;AACA,SAAS,WAAT,QAA4B,gBAA5B;AAIA;;AAEG;;AACH,OAAO,MAAM,YAAY,gBAA2C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAClG,QAAM,KAAK,GAAG,eAAe,CAAC,KAAD,EAAQ,GAAR,CAA7B;AACA,EAAA,qBAAqB,CAAC,KAAD,CAArB;AAEA,SAAO,WAAW,CAAC,KAAD,CAAlB;AACD,CALmE,CAA7D;AAOP,YAAY,CAAC,WAAb,GAA2B,cAA3B","sourceRoot":""}
@@ -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,34 +1,28 @@
1
- import { __assign } from "tslib";
2
1
  import { useBadge } from '../Badge/index';
3
2
  /**
4
3
  * Returns the props and state required to render the component
5
4
  */
6
5
 
7
- export var useCounterBadge = function (props, ref) {
8
- var _a = props.shape,
9
- shape = _a === void 0 ? 'circular' : _a,
10
- _b = props.appearance,
11
- appearance = _b === void 0 ? 'filled' : _b,
12
- _c = props.showZero,
13
- showZero = _c === void 0 ? false : _c,
14
- _d = props.overflowCount,
15
- overflowCount = _d === void 0 ? 99 : _d,
16
- _e = props.count,
17
- count = _e === void 0 ? 0 : _e,
18
- _f = props.dot,
19
- dot = _f === void 0 ? false : _f;
20
-
21
- var state = __assign(__assign({}, useBadge(props, ref)), {
22
- shape: shape,
23
- appearance: appearance,
24
- showZero: showZero,
25
- overflowCount: overflowCount,
26
- count: count,
27
- dot: dot
28
- });
6
+ export const useCounterBadge = (props, ref) => {
7
+ const {
8
+ shape = 'circular',
9
+ appearance = 'filled',
10
+ showZero = false,
11
+ overflowCount = 99,
12
+ count = 0,
13
+ dot = false
14
+ } = props;
15
+ const state = { ...useBadge(props, ref),
16
+ shape,
17
+ appearance,
18
+ showZero,
19
+ overflowCount,
20
+ count,
21
+ dot
22
+ };
29
23
 
30
24
  if (!state.dot && !state.root.children) {
31
- state.root.children = state.count > state.overflowCount ? state.overflowCount + "+" : "" + state.count;
25
+ state.root.children = state.count > state.overflowCount ? `${state.overflowCount}+` : `${state.count}`;
32
26
  }
33
27
 
34
28
  return state;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CounterBadge/useCounterBadge.ts"],"names":[],"mappings":";AACA,SAAS,QAAT,QAAyB,gBAAzB;AAGA;;AAEG;;AACH,OAAO,IAAM,eAAe,GAAG,UAAC,KAAD,EAA2B,GAA3B,EAAsD;AAEjF,MAAA,E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ACD;;AAED,SAAO,KAAP;AACD,CAzBM","sourceRoot":""}
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,GAAI,QAAQ,CAAC,KAAD,EAAQ,GAAR,CADmB;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;AAP+B,GAAjC;;AAUA,MAAI,CAAC,KAAK,CAAC,GAAP,IAAc,CAAC,KAAK,CAAC,IAAN,CAAW,QAA9B,EAAwC;AACtC,IAAA,KAAK,CAAC,IAAN,CAAW,QAAX,GAAsB,KAAK,CAAC,KAAN,GAAc,KAAK,CAAC,aAApB,GAAoC,GAAG,KAAK,CAAC,aAAa,GAA1D,GAAgE,GAAG,KAAK,CAAC,KAAK,EAApG;AACD;;AAED,SAAO,KAAP;AACD,CAzBM","sourceRoot":""}
@@ -1,4 +1,5 @@
1
1
  import type { CounterBadgeState } from './CounterBadge.types';
2
+ export declare const counterBadgeClassName = "fui-CounterBadge";
2
3
  /**
3
4
  * Applies style classnames to slots
4
5
  */
@@ -1,39 +1,11 @@
1
1
  import { mergeClasses, __styles } from '@fluentui/react-make-styles';
2
2
  import { useBadgeStyles } from '../Badge/useBadgeStyles';
3
+ export const counterBadgeClassName = 'fui-CounterBadge';
3
4
 
4
- var useStyles = /*#__PURE__*/__styles({
5
+ const useStyles = /*#__PURE__*/__styles({
5
6
  "root": {
6
7
  "Bf4jedk": "fgfkb25"
7
8
  },
8
- "warning": {
9
- "De3pzq": "fic4z9l",
10
- "g2u3we": "f1g6aqbb",
11
- "h3c5rm": ["f1xc4egn", "f1y13pv"],
12
- "B9xav0g": "f12f05r9",
13
- "zhjwy3": ["f1y13pv", "f1xc4egn"]
14
- },
15
- "important": {
16
- "De3pzq": "f1y11cvn",
17
- "g2u3we": "f9ag23u",
18
- "h3c5rm": ["fzlvby", "fj2uge6"],
19
- "B9xav0g": "fk41dq4",
20
- "zhjwy3": ["fj2uge6", "fzlvby"]
21
- },
22
- "severe": {
23
- "De3pzq": "ftpr1dl",
24
- "g2u3we": "fx7g4rx",
25
- "h3c5rm": ["f1edxl4n", "f5hlgd2"],
26
- "B9xav0g": "f5ppncr",
27
- "zhjwy3": ["f5hlgd2", "f1edxl4n"]
28
- },
29
- "informative": {
30
- "De3pzq": "f6zwqgc",
31
- "g2u3we": "f1pdtvjr",
32
- "h3c5rm": ["f1ctwv29", "f1m7luuw"],
33
- "B9xav0g": "f1ijpqjr",
34
- "zhjwy3": ["f1m7luuw", "f1ctwv29"],
35
- "sj55zd": "f11d4kpn"
36
- },
37
9
  "dot": {
38
10
  "a9b677": "f16dn6v3",
39
11
  "Bqenvij": "f3mu39s",
@@ -46,16 +18,16 @@ var useStyles = /*#__PURE__*/__styles({
46
18
  "mc9l5x": "fjseox"
47
19
  }
48
20
  }, {
49
- "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;}"]
50
22
  });
51
23
  /**
52
24
  * Applies style classnames to slots
53
25
  */
54
26
 
55
27
 
56
- export var useCounterBadgeStyles = function (state) {
57
- var styles = useStyles();
58
- state.root.className = mergeClasses(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);
28
+ export const useCounterBadgeStyles = state => {
29
+ const styles = useStyles();
30
+ state.root.className = mergeClasses(counterBadgeClassName, styles.root, state.dot && styles.dot, !state.showZero && state.count === 0 && !state.dot && styles.hide, state.root.className);
59
31
  return useBadgeStyles(state);
60
32
  };
61
33
  //# sourceMappingURL=useCounterBadgeStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CounterBadge/useCounterBadgeStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,kBAAyC,6BAAzC;AACA,SAA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9B;;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":""}
@@ -6,8 +6,8 @@ import { renderBadge } from '../../Badge';
6
6
  * Define a styled Badge, using the `useBadge` hook.
7
7
  */
8
8
 
9
- export var PresenceBadge = /*#__PURE__*/React.forwardRef(function (props, ref) {
10
- var state = usePresenceBadge(props, ref);
9
+ export const PresenceBadge = /*#__PURE__*/React.forwardRef((props, ref) => {
10
+ const state = usePresenceBadge(props, ref);
11
11
  usePresenceBadgeStyles(state);
12
12
  return renderBadge(state);
13
13
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PresenceBadge/PresenceBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,gBAAT,QAAiC,oBAAjC;AACA,SAAS,sBAAT,QAAuC,0BAAvC;AACA,SAAS,WAAT,QAA4B,aAA5B;AAIA;;AAEG;;AACH,OAAO,IAAM,aAAa,gBAA4C,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AAChG,MAAM,KAAK,GAAG,gBAAgB,CAAC,KAAD,EAAQ,GAAR,CAA9B;AACA,EAAA,sBAAsB,CAAC,KAAD,CAAtB;AAEA,SAAO,WAAW,CAAC,KAAD,CAAlB;AACD,CALqE,CAA/D;AAOP,aAAa,CAAC,WAAd,GAA4B,eAA5B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/PresenceBadge/PresenceBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,gBAAT,QAAiC,oBAAjC;AACA,SAAS,sBAAT,QAAuC,0BAAvC;AACA,SAAS,WAAT,QAA4B,aAA5B;AAIA;;AAEG;;AACH,OAAO,MAAM,aAAa,gBAA4C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACpG,QAAM,KAAK,GAAG,gBAAgB,CAAC,KAAD,EAAQ,GAAR,CAA9B;AACA,EAAA,sBAAsB,CAAC,KAAD,CAAtB;AAEA,SAAO,WAAW,CAAC,KAAD,CAAlB;AACD,CALqE,CAA/D;AAOP,aAAa,CAAC,WAAd,GAA4B,eAA5B","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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