@fluentui/react-badge 9.0.0-nightly.b5b7401007.0 → 9.0.0-rc.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. package/CHANGELOG.json +382 -28
  2. package/CHANGELOG.md +88 -13
  3. package/dist/react-badge.d.ts +33 -28
  4. package/lib/Badge.js.map +1 -1
  5. package/lib/CounterBadge.js.map +1 -1
  6. package/lib/PresenceBadge.js.map +1 -1
  7. package/lib/components/Badge/Badge.d.ts +1 -1
  8. package/lib/components/Badge/Badge.js +8 -8
  9. package/lib/components/Badge/Badge.js.map +1 -1
  10. package/lib/components/Badge/Badge.types.d.ts +4 -5
  11. package/lib/components/Badge/Badge.types.js.map +1 -1
  12. package/lib/components/Badge/index.d.ts +1 -1
  13. package/lib/components/Badge/index.js +0 -1
  14. package/lib/components/Badge/index.js.map +1 -1
  15. package/lib/components/Badge/renderBadge.d.ts +1 -1
  16. package/lib/components/Badge/renderBadge.js +9 -7
  17. package/lib/components/Badge/renderBadge.js.map +1 -1
  18. package/lib/components/Badge/useBadge.d.ts +1 -1
  19. package/lib/components/Badge/useBadge.js +19 -22
  20. package/lib/components/Badge/useBadge.js.map +1 -1
  21. package/lib/components/Badge/useBadgeStyles.d.ts +2 -1
  22. package/lib/components/Badge/useBadgeStyles.js +210 -203
  23. package/lib/components/Badge/useBadgeStyles.js.map +1 -1
  24. package/lib/components/CounterBadge/CounterBadge.d.ts +1 -1
  25. package/lib/components/CounterBadge/CounterBadge.js +8 -8
  26. package/lib/components/CounterBadge/CounterBadge.js.map +1 -1
  27. package/lib/components/CounterBadge/CounterBadge.types.d.ts +9 -9
  28. package/lib/components/CounterBadge/CounterBadge.types.js.map +1 -1
  29. package/lib/components/CounterBadge/index.js.map +1 -1
  30. package/lib/components/CounterBadge/useCounterBadge.d.ts +1 -1
  31. package/lib/components/CounterBadge/useCounterBadge.js +19 -25
  32. package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
  33. package/lib/components/CounterBadge/useCounterBadgeStyles.d.ts +2 -1
  34. package/lib/components/CounterBadge/useCounterBadgeStyles.js +10 -40
  35. package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  36. package/lib/components/PresenceBadge/PresenceBadge.d.ts +1 -1
  37. package/lib/components/PresenceBadge/PresenceBadge.js +8 -8
  38. package/lib/components/PresenceBadge/PresenceBadge.js.map +1 -1
  39. package/lib/components/PresenceBadge/PresenceBadge.types.d.ts +7 -5
  40. package/lib/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
  41. package/lib/components/PresenceBadge/index.js.map +1 -1
  42. package/lib/components/PresenceBadge/presenceIcons.d.ts +11 -0
  43. package/lib/components/PresenceBadge/presenceIcons.js +128 -0
  44. package/lib/components/PresenceBadge/presenceIcons.js.map +1 -0
  45. package/lib/components/PresenceBadge/usePresenceBadge.d.ts +1 -1
  46. package/lib/components/PresenceBadge/usePresenceBadge.js +36 -25
  47. package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  48. package/lib/components/PresenceBadge/usePresenceBadgeStyles.d.ts +2 -1
  49. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +43 -46
  50. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  51. package/lib/index.js.map +1 -1
  52. package/lib-commonjs/Badge.js +1 -1
  53. package/lib-commonjs/Badge.js.map +1 -1
  54. package/lib-commonjs/CounterBadge.js +1 -1
  55. package/lib-commonjs/CounterBadge.js.map +1 -1
  56. package/lib-commonjs/PresenceBadge.js +1 -1
  57. package/lib-commonjs/PresenceBadge.js.map +1 -1
  58. package/lib-commonjs/components/Badge/Badge.d.ts +1 -1
  59. package/lib-commonjs/components/Badge/Badge.js +9 -9
  60. package/lib-commonjs/components/Badge/Badge.js.map +1 -1
  61. package/lib-commonjs/components/Badge/Badge.types.d.ts +4 -5
  62. package/lib-commonjs/components/Badge/Badge.types.js.map +1 -1
  63. package/lib-commonjs/components/Badge/index.d.ts +1 -1
  64. package/lib-commonjs/components/Badge/index.js +1 -3
  65. package/lib-commonjs/components/Badge/index.js.map +1 -1
  66. package/lib-commonjs/components/Badge/renderBadge.d.ts +1 -1
  67. package/lib-commonjs/components/Badge/renderBadge.js +13 -12
  68. package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
  69. package/lib-commonjs/components/Badge/useBadge.d.ts +1 -1
  70. package/lib-commonjs/components/Badge/useBadge.js +22 -26
  71. package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
  72. package/lib-commonjs/components/Badge/useBadgeStyles.d.ts +2 -1
  73. package/lib-commonjs/components/Badge/useBadgeStyles.js +214 -205
  74. package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
  75. package/lib-commonjs/components/CounterBadge/CounterBadge.d.ts +1 -1
  76. package/lib-commonjs/components/CounterBadge/CounterBadge.js +9 -9
  77. package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
  78. package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +9 -9
  79. package/lib-commonjs/components/CounterBadge/CounterBadge.types.js.map +1 -1
  80. package/lib-commonjs/components/CounterBadge/index.js +1 -1
  81. package/lib-commonjs/components/CounterBadge/index.js.map +1 -1
  82. package/lib-commonjs/components/CounterBadge/useCounterBadge.d.ts +1 -1
  83. package/lib-commonjs/components/CounterBadge/useCounterBadge.js +21 -28
  84. package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
  85. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.d.ts +2 -1
  86. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +13 -42
  87. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  88. package/lib-commonjs/components/PresenceBadge/PresenceBadge.d.ts +1 -1
  89. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js +9 -9
  90. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
  91. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.d.ts +7 -5
  92. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
  93. package/lib-commonjs/components/PresenceBadge/index.js +1 -1
  94. package/lib-commonjs/components/PresenceBadge/index.js.map +1 -1
  95. package/lib-commonjs/components/PresenceBadge/presenceIcons.d.ts +11 -0
  96. package/lib-commonjs/components/PresenceBadge/presenceIcons.js +136 -0
  97. package/lib-commonjs/components/PresenceBadge/presenceIcons.js.map +1 -0
  98. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.d.ts +1 -1
  99. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +38 -28
  100. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  101. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.d.ts +2 -1
  102. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +46 -48
  103. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  104. package/lib-commonjs/index.js +1 -1
  105. package/lib-commonjs/index.js.map +1 -1
  106. package/package.json +14 -15
  107. package/lib/common/isConformant.d.ts +0 -4
  108. package/lib/common/isConformant.js +0 -13
  109. package/lib/common/isConformant.js.map +0 -1
  110. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  111. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -111
  112. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
  113. package/lib-commonjs/common/isConformant.d.ts +0 -4
  114. package/lib-commonjs/common/isConformant.js +0 -24
  115. package/lib-commonjs/common/isConformant.js.map +0 -1
  116. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  117. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -127
  118. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
@@ -1,127 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.CancelIcon = exports.SkypeArrowIcon = exports.SkypeCheckIcon = exports.SkypeClockIcon = exports.SkypeMinusIcon = exports.renderIcon = void 0;
7
-
8
- var tslib_1 = /*#__PURE__*/require("tslib");
9
-
10
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
11
-
12
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
13
-
14
- var React = /*#__PURE__*/require("react");
15
-
16
- var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
17
- "root": {
18
- "mc9l5x": "f14t3ns0",
19
- "ha4doy": "fmrv4ls",
20
- "fb3t49": "fdgdznj",
21
- "a9b677": "fhson10",
22
- "Bqenvij": "f1un31zh"
23
- },
24
- "svg": {
25
- "Bqenvij": "f1l02sjl",
26
- "Bkfmm31": "f1w9h62z",
27
- "ha4doy": "f12kltsn"
28
- }
29
- }, {
30
- "d": [".f14t3ns0{display:inline-block;}", ".fmrv4ls{vertical-align:middle;}", ".fdgdznj{speak:none;}", ".fhson10{width:1em;}", ".f1un31zh{height:1em;}", ".f1l02sjl{height:100%;}", ".f1w9h62z{fill:currentColor;}", ".f12kltsn{vertical-align:top;}"]
31
- }); //
32
- // !!! A temporary workaround to avoid dependencies on any icon packages.
33
- // !!! A usage of converged icon package should be considered.
34
- //
35
-
36
-
37
- var useIconProps = function (props) {
38
- var _a;
39
-
40
- var containerProps = props['aria-label'] ? {} : (_a = {
41
- role: 'presentation'
42
- }, _a['aria-hidden'] = true, _a);
43
- var nativeProps = react_utilities_1.getNativeProps(props, react_utilities_1.htmlElementProperties);
44
- var styles = useStyles();
45
- var rootClasses = styles.root;
46
- var svgClasses = styles.svg;
47
- return {
48
- containerProps: containerProps,
49
- nativeProps: nativeProps,
50
- rootClasses: rootClasses,
51
- svgClasses: svgClasses
52
- };
53
- };
54
-
55
- var renderIcon = function (SVGElement) {
56
- return function (props) {
57
- var _a = useIconProps(props),
58
- containerProps = _a.containerProps,
59
- nativeProps = _a.nativeProps,
60
- rootClasses = _a.rootClasses,
61
- svgClasses = _a.svgClasses;
62
-
63
- return React.createElement('span', tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, containerProps), nativeProps), {
64
- className: react_make_styles_1.mergeClasses(rootClasses, props.className)
65
- }), React.createElement(SVGElement, {
66
- svgClasses: svgClasses
67
- }));
68
- };
69
- };
70
-
71
- exports.renderIcon = renderIcon;
72
- var SkypeMinusIcon = /*#__PURE__*/exports.renderIcon(function (props) {
73
- return React.createElement("svg", {
74
- xmlns: "http://www.w3.org/2000/svg",
75
- viewBox: "0 0 2048 2048",
76
- className: props.svgClasses
77
- }, React.createElement("path", {
78
- d: "M1591 823q42 0 78 16t64 43 43 63 16 79q0 42-16 78t-43 64-63 43-79 16H395q-42 0-78-16t-64-43-42-63-16-79q0-42 15-78t43-64 63-43 79-16h1196z"
79
- }));
80
- });
81
- exports.SkypeMinusIcon = SkypeMinusIcon;
82
- SkypeMinusIcon.displayName = 'SkypeMinusIcon';
83
- var SkypeClockIcon = /*#__PURE__*/exports.renderIcon(function (props) {
84
- return React.createElement("svg", {
85
- xmlns: "http://www.w3.org/2000/svg",
86
- viewBox: "0 0 2048 2048",
87
- className: props.svgClasses
88
- }, React.createElement("path", {
89
- d: "M1431 1705q28 28 43 65t15 77q0 42-15 78t-43 64-63 43-79 16q-83 0-142-59l-594-593q-28-28-43-65t-15-77V201q0-42 15-78t43-64 63-43 79-16q42 0 78 16t64 43 43 63 16 79v970l535 534z"
90
- }));
91
- });
92
- exports.SkypeClockIcon = SkypeClockIcon;
93
- SkypeClockIcon.displayName = 'SkypeClockIcon';
94
- var SkypeCheckIcon = /*#__PURE__*/exports.renderIcon(function (props) {
95
- return React.createElement("svg", {
96
- xmlns: "http://www.w3.org/2000/svg",
97
- viewBox: "0 0 2048 2048",
98
- className: props.svgClasses
99
- }, React.createElement("path", {
100
- d: "M1570 437q42 0 78 15t64 43 42 63 16 79q0 40-15 77t-43 65l-794 795q-28 28-65 43t-77 16q-40 0-77-15t-65-44l-362-362q-28-28-43-65t-16-77q0-42 16-78t43-64 63-42 79-16q40 0 77 15t65 43l220 220 652-653q28-28 65-43t77-15z"
101
- }));
102
- });
103
- exports.SkypeCheckIcon = SkypeCheckIcon;
104
- SkypeCheckIcon.displayName = 'SkypeCheckIcon';
105
- var SkypeArrowIcon = /*#__PURE__*/exports.renderIcon(function (props) {
106
- return React.createElement("svg", {
107
- xmlns: "http://www.w3.org/2000/svg",
108
- viewBox: "0 0 2048 2048",
109
- className: props.svgClasses
110
- }, React.createElement("path", {
111
- d: "M1980 964q0 41-15 77t-43 63-63 42-77 16H739l281 280q28 27 43 64t15 76q0 41-15 77t-43 63-63 42-77 16q-39 0-75-15t-65-43l-615-616q-33-33-47-68t-14-82q0-39 17-73t44-61l615-616q28-28 65-43t76-15q41 0 77 16t62 43 42 63 16 77q0 39-15 75t-43 64L739 766h1043q41 0 77 15t63 43 42 63 16 77z"
112
- }));
113
- });
114
- exports.SkypeArrowIcon = SkypeArrowIcon;
115
- SkypeArrowIcon.displayName = 'SkypeArrowIcon';
116
- var CancelIcon = /*#__PURE__*/exports.renderIcon(function (props) {
117
- return React.createElement("svg", {
118
- xmlns: "http://www.w3.org/2000/svg",
119
- viewBox: "0 0 2048 2048",
120
- className: props.svgClasses
121
- }, React.createElement("path", {
122
- d: "M1115 1024l690 691-90 90-691-690-691 690-90-90 690-691-690-691 90-90 691 690 691-690 90 90-690 691z"
123
- }));
124
- });
125
- exports.CancelIcon = CancelIcon;
126
- CancelIcon.displayName = 'CancelIcon';
127
- //# sourceMappingURL=DefaultPresenceBadgeIcons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/PresenceBadge/DefaultPresenceBadgeIcons.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAEA,IAAM,SAAS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