@fluentui/react-badge 0.0.0-nightlyc9ccb6f37d20211122.1 → 0.0.0-nightlyd3bf09bf8120211201.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/CHANGELOG.json +93 -16
  2. package/CHANGELOG.md +29 -11
  3. package/dist/react-badge.d.ts +5 -5
  4. package/lib/components/Badge/Badge.types.d.ts +1 -1
  5. package/lib/components/Badge/useBadgeStyles.js +42 -30
  6. package/lib/components/Badge/useBadgeStyles.js.map +1 -1
  7. package/lib/components/CounterBadge/useCounterBadgeStyles.js +1 -1
  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 +38 -43
  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/Badge/useBadgeStyles.js +41 -29
  19. package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
  20. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.d.ts +6 -5
  21. package/lib-commonjs/components/PresenceBadge/presenceIcons.d.ts +11 -0
  22. package/lib-commonjs/components/PresenceBadge/presenceIcons.js +136 -0
  23. package/lib-commonjs/components/PresenceBadge/presenceIcons.js.map +1 -0
  24. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +28 -14
  25. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  26. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +37 -43
  27. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  28. package/package.json +11 -9
  29. package/lib/common/isConformant.d.ts +0 -4
  30. package/lib/common/isConformant.js +0 -13
  31. package/lib/common/isConformant.js.map +0 -1
  32. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  33. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -98
  34. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
  35. package/lib-commonjs/common/isConformant.d.ts +0 -4
  36. package/lib-commonjs/common/isConformant.js +0 -24
  37. package/lib-commonjs/common/isConformant.js.map +0 -1
  38. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  39. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -113
  40. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
@@ -1,113 +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
- const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
9
-
10
- const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
-
12
- const React = /*#__PURE__*/require("react");
13
-
14
- const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
15
- "root": {
16
- "mc9l5x": "f14t3ns0",
17
- "ha4doy": "fmrv4ls",
18
- "fb3t49": "fdgdznj",
19
- "a9b677": "fhson10",
20
- "Bqenvij": "f1un31zh"
21
- },
22
- "svg": {
23
- "Bqenvij": "f1l02sjl",
24
- "Bkfmm31": "f1w9h62z",
25
- "ha4doy": "f12kltsn"
26
- }
27
- }, {
28
- "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;}"]
29
- }); //
30
- // !!! A temporary workaround to avoid dependencies on any icon packages.
31
- // !!! A usage of converged icon package should be considered.
32
- //
33
-
34
-
35
- const useIconProps = props => {
36
- const containerProps = props['aria-label'] ? {} : {
37
- role: 'presentation',
38
- ['aria-hidden']: true
39
- };
40
- const nativeProps = react_utilities_1.getNativeProps(props, react_utilities_1.htmlElementProperties);
41
- const styles = useStyles();
42
- const rootClasses = styles.root;
43
- const svgClasses = styles.svg;
44
- return {
45
- containerProps,
46
- nativeProps,
47
- rootClasses,
48
- svgClasses
49
- };
50
- };
51
-
52
- const renderIcon = SVGElement => props => {
53
- const {
54
- containerProps,
55
- nativeProps,
56
- rootClasses,
57
- svgClasses
58
- } = useIconProps(props);
59
- return React.createElement('span', { ...containerProps,
60
- ...nativeProps,
61
- className: react_make_styles_1.mergeClasses(rootClasses, props.className)
62
- }, React.createElement(SVGElement, {
63
- svgClasses: svgClasses
64
- }));
65
- };
66
-
67
- exports.renderIcon = renderIcon;
68
- const SkypeMinusIcon = /*#__PURE__*/exports.renderIcon(props => React.createElement("svg", {
69
- xmlns: "http://www.w3.org/2000/svg",
70
- viewBox: "0 0 2048 2048",
71
- className: props.svgClasses
72
- }, React.createElement("path", {
73
- 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"
74
- })));
75
- exports.SkypeMinusIcon = SkypeMinusIcon;
76
- SkypeMinusIcon.displayName = 'SkypeMinusIcon';
77
- const SkypeClockIcon = /*#__PURE__*/exports.renderIcon(props => React.createElement("svg", {
78
- xmlns: "http://www.w3.org/2000/svg",
79
- viewBox: "0 0 2048 2048",
80
- className: props.svgClasses
81
- }, React.createElement("path", {
82
- 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"
83
- })));
84
- exports.SkypeClockIcon = SkypeClockIcon;
85
- SkypeClockIcon.displayName = 'SkypeClockIcon';
86
- const SkypeCheckIcon = /*#__PURE__*/exports.renderIcon(props => React.createElement("svg", {
87
- xmlns: "http://www.w3.org/2000/svg",
88
- viewBox: "0 0 2048 2048",
89
- className: props.svgClasses
90
- }, React.createElement("path", {
91
- 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"
92
- })));
93
- exports.SkypeCheckIcon = SkypeCheckIcon;
94
- SkypeCheckIcon.displayName = 'SkypeCheckIcon';
95
- const SkypeArrowIcon = /*#__PURE__*/exports.renderIcon(props => 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: "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"
101
- })));
102
- exports.SkypeArrowIcon = SkypeArrowIcon;
103
- SkypeArrowIcon.displayName = 'SkypeArrowIcon';
104
- const CancelIcon = /*#__PURE__*/exports.renderIcon(props => React.createElement("svg", {
105
- xmlns: "http://www.w3.org/2000/svg",
106
- viewBox: "0 0 2048 2048",
107
- className: props.svgClasses
108
- }, React.createElement("path", {
109
- 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"
110
- })));
111
- exports.CancelIcon = CancelIcon;
112
- CancelIcon.displayName = 'CancelIcon';
113
- //# sourceMappingURL=DefaultPresenceBadgeIcons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/PresenceBadge/DefaultPresenceBadgeIcons.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAEA,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB,C,CAeA;AACA;AACA;AACA;;;AAEA,MAAM,YAAY,GAAI,KAAD,IAAiD;AACpE,QAAM,cAAc,GAAG,KAAK,CAAC,YAAD,CAAL,GACnB,EADmB,GAEnB;AACE,IAAA,IAAI,EAAE,cADR;AAEE,KAAC,aAAD,GAAiB;AAFnB,GAFJ;AAMA,QAAM,WAAW,GAAG,iBAAA,CAAA,cAAA,CAAkD,KAAlD,EAAyD,iBAAA,CAAA,qBAAzD,CAApB;AACA,QAAM,MAAM,GAAG,SAAS,EAAxB;AAEA,QAAM,WAAW,GAAG,MAAM,CAAC,IAA3B;AACA,QAAM,UAAU,GAAG,MAAM,CAAC,GAA1B;AAEA,SAAO;AAAE,IAAA,cAAF;AAAkB,IAAA,WAAlB;AAA+B,IAAA,WAA/B;AAA4C,IAAA;AAA5C,GAAP;AACD,CAdD;;AAgBO,MAAM,UAAU,GACrB,UADwB,IAE4B,KAAK,IAAG;AAC5D,QAAM;AAAE,IAAA,cAAF;AAAkB,IAAA,WAAlB;AAA+B,IAAA,WAA/B;AAA4C,IAAA;AAA5C,MAA2D,YAAY,CAAC,KAAD,CAA7E;AAEA,SAAO,KAAK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