@fluentui/react-badge 9.0.0-nightly.d730088d7f.0 → 9.0.0-rc.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. package/CHANGELOG.json +644 -25
  2. package/CHANGELOG.md +265 -104
  3. package/dist/index.d.ts +157 -0
  4. package/{lib → dist}/tsdoc-metadata.json +0 -0
  5. package/lib/Badge.js.map +1 -1
  6. package/lib/CounterBadge.js.map +1 -1
  7. package/lib/PresenceBadge.js.map +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.js.map +1 -1
  11. package/lib/components/Badge/index.js +0 -1
  12. package/lib/components/Badge/index.js.map +1 -1
  13. package/lib/components/Badge/renderBadge.js +9 -7
  14. package/lib/components/Badge/renderBadge.js.map +1 -1
  15. package/lib/components/Badge/useBadge.js +19 -22
  16. package/lib/components/Badge/useBadge.js.map +1 -1
  17. package/lib/components/Badge/useBadgeStyles.js +213 -203
  18. package/lib/components/Badge/useBadgeStyles.js.map +1 -1
  19. package/lib/components/CounterBadge/CounterBadge.js +8 -8
  20. package/lib/components/CounterBadge/CounterBadge.js.map +1 -1
  21. package/lib/components/CounterBadge/CounterBadge.types.js.map +1 -1
  22. package/lib/components/CounterBadge/index.js.map +1 -1
  23. package/lib/components/CounterBadge/useCounterBadge.js +18 -25
  24. package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
  25. package/lib/components/CounterBadge/useCounterBadgeStyles.js +18 -40
  26. package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  27. package/lib/components/PresenceBadge/PresenceBadge.js +8 -8
  28. package/lib/components/PresenceBadge/PresenceBadge.js.map +1 -1
  29. package/lib/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
  30. package/lib/components/PresenceBadge/index.js.map +1 -1
  31. package/lib/components/PresenceBadge/presenceIcons.js +128 -0
  32. package/lib/components/PresenceBadge/presenceIcons.js.map +1 -0
  33. package/lib/components/PresenceBadge/usePresenceBadge.js +52 -26
  34. package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  35. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +60 -46
  36. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  37. package/lib/index.js +3 -5
  38. package/lib/index.js.map +1 -1
  39. package/lib-commonjs/Badge.js +1 -1
  40. package/lib-commonjs/Badge.js.map +1 -1
  41. package/lib-commonjs/CounterBadge.js +1 -1
  42. package/lib-commonjs/CounterBadge.js.map +1 -1
  43. package/lib-commonjs/PresenceBadge.js +1 -1
  44. package/lib-commonjs/PresenceBadge.js.map +1 -1
  45. package/lib-commonjs/components/Badge/Badge.js +9 -9
  46. package/lib-commonjs/components/Badge/Badge.js.map +1 -1
  47. package/lib-commonjs/components/Badge/Badge.types.js.map +1 -1
  48. package/lib-commonjs/components/Badge/index.js +1 -3
  49. package/lib-commonjs/components/Badge/index.js.map +1 -1
  50. package/lib-commonjs/components/Badge/renderBadge.js +13 -12
  51. package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
  52. package/lib-commonjs/components/Badge/useBadge.js +22 -26
  53. package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
  54. package/lib-commonjs/components/Badge/useBadgeStyles.js +217 -205
  55. package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
  56. package/lib-commonjs/components/CounterBadge/CounterBadge.js +9 -9
  57. package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
  58. package/lib-commonjs/components/CounterBadge/CounterBadge.types.js.map +1 -1
  59. package/lib-commonjs/components/CounterBadge/index.js +1 -1
  60. package/lib-commonjs/components/CounterBadge/index.js.map +1 -1
  61. package/lib-commonjs/components/CounterBadge/useCounterBadge.js +20 -28
  62. package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
  63. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +21 -42
  64. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  65. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js +9 -9
  66. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
  67. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
  68. package/lib-commonjs/components/PresenceBadge/index.js +1 -1
  69. package/lib-commonjs/components/PresenceBadge/index.js.map +1 -1
  70. package/lib-commonjs/components/PresenceBadge/presenceIcons.js +136 -0
  71. package/lib-commonjs/components/PresenceBadge/presenceIcons.js.map +1 -0
  72. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +54 -29
  73. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  74. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +63 -48
  75. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  76. package/lib-commonjs/index.js +82 -6
  77. package/lib-commonjs/index.js.map +1 -1
  78. package/package.json +23 -27
  79. package/dist/react-badge.d.ts +0 -154
  80. package/lib/Badge.d.ts +0 -1
  81. package/lib/CounterBadge.d.ts +0 -1
  82. package/lib/PresenceBadge.d.ts +0 -1
  83. package/lib/common/isConformant.d.ts +0 -4
  84. package/lib/common/isConformant.js +0 -13
  85. package/lib/common/isConformant.js.map +0 -1
  86. package/lib/components/Badge/Badge.d.ts +0 -6
  87. package/lib/components/Badge/Badge.types.d.ts +0 -35
  88. package/lib/components/Badge/index.d.ts +0 -5
  89. package/lib/components/Badge/renderBadge.d.ts +0 -2
  90. package/lib/components/Badge/useBadge.d.ts +0 -6
  91. package/lib/components/Badge/useBadgeStyles.d.ts +0 -5
  92. package/lib/components/CounterBadge/CounterBadge.d.ts +0 -6
  93. package/lib/components/CounterBadge/CounterBadge.types.d.ts +0 -41
  94. package/lib/components/CounterBadge/index.d.ts +0 -4
  95. package/lib/components/CounterBadge/useCounterBadge.d.ts +0 -6
  96. package/lib/components/CounterBadge/useCounterBadgeStyles.d.ts +0 -5
  97. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  98. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -111
  99. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
  100. package/lib/components/PresenceBadge/PresenceBadge.d.ts +0 -6
  101. package/lib/components/PresenceBadge/PresenceBadge.types.d.ts +0 -17
  102. package/lib/components/PresenceBadge/index.d.ts +0 -4
  103. package/lib/components/PresenceBadge/usePresenceBadge.d.ts +0 -6
  104. package/lib/components/PresenceBadge/usePresenceBadgeStyles.d.ts +0 -5
  105. package/lib/index.d.ts +0 -5
  106. package/lib-commonjs/Badge.d.ts +0 -1
  107. package/lib-commonjs/CounterBadge.d.ts +0 -1
  108. package/lib-commonjs/PresenceBadge.d.ts +0 -1
  109. package/lib-commonjs/common/isConformant.d.ts +0 -4
  110. package/lib-commonjs/common/isConformant.js +0 -24
  111. package/lib-commonjs/common/isConformant.js.map +0 -1
  112. package/lib-commonjs/components/Badge/Badge.d.ts +0 -6
  113. package/lib-commonjs/components/Badge/Badge.types.d.ts +0 -35
  114. package/lib-commonjs/components/Badge/index.d.ts +0 -5
  115. package/lib-commonjs/components/Badge/renderBadge.d.ts +0 -2
  116. package/lib-commonjs/components/Badge/useBadge.d.ts +0 -6
  117. package/lib-commonjs/components/Badge/useBadgeStyles.d.ts +0 -5
  118. package/lib-commonjs/components/CounterBadge/CounterBadge.d.ts +0 -6
  119. package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +0 -41
  120. package/lib-commonjs/components/CounterBadge/index.d.ts +0 -4
  121. package/lib-commonjs/components/CounterBadge/useCounterBadge.d.ts +0 -6
  122. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.d.ts +0 -5
  123. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  124. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -127
  125. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
  126. package/lib-commonjs/components/PresenceBadge/PresenceBadge.d.ts +0 -6
  127. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.d.ts +0 -17
  128. package/lib-commonjs/components/PresenceBadge/index.d.ts +0 -4
  129. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.d.ts +0 -6
  130. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.d.ts +0 -5
  131. package/lib-commonjs/index.d.ts +0 -5
@@ -1,17 +1,16 @@
1
- import { mergeClasses, __styles } from '@fluentui/react-make-styles';
1
+ import { shorthands, mergeClasses, __styles } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
3
+ export const badgeClassNames = {
4
+ root: 'fui-Badge',
5
+ icon: 'fui-Badge__icon'
6
+ };
2
7
 
3
- var useStyles = /*#__PURE__*/__styles({
4
- "root": {
8
+ const useRootStyles = /*#__PURE__*/__styles({
9
+ "base": {
5
10
  "mc9l5x": "ftuwxu6",
6
11
  "B7ck84d": "f1ewtqcl",
7
12
  "Bt984gj": "f122n59",
8
13
  "Brf1p80": "f4d9j23",
9
- "De3pzq": "ffp7eso",
10
- "g2u3we": "f1vp46cd",
11
- "h3c5rm": ["f1lxz1cr", "ff8nh0i"],
12
- "B9xav0g": "fe9j8it",
13
- "zhjwy3": ["ff8nh0i", "f1lxz1cr"],
14
- "sj55zd": "f1phragk",
15
14
  "Bhrd7zp": "fl43uef",
16
15
  "B4j52fo": "f192inf7",
17
16
  "Bekrc4i": ["f5tn483", "f1ojsxk5"],
@@ -24,86 +23,98 @@ var useStyles = /*#__PURE__*/__styles({
24
23
  "Bahqtrf": "fk6fouc",
25
24
  "qhf8xq": "f10pi13n"
26
25
  },
27
- "rootTiny": {
26
+ "tiny": {
28
27
  "a9b677": "f16dn6v3",
29
28
  "Bqenvij": "f3mu39s",
30
29
  "Be2twd7": "f130uwy9"
31
30
  },
32
- "rootExtraSmall": {
31
+ "extra-small": {
33
32
  "a9b677": "fpd43o0",
34
33
  "Bqenvij": "f30q22z",
35
34
  "Be2twd7": "f1tccstq"
36
35
  },
37
- "rootSmall": {
36
+ "small": {
38
37
  "Bf4jedk": "fq2vo04",
39
38
  "Bqenvij": "fd461yt",
40
- "z189sj": ["f1sgzk6v", "f1bg5zqg"],
41
- "uwmqm3": ["f1bg5zqg", "f1sgzk6v"],
42
- "rmohyg": "f4xv25i",
39
+ "z8tnut": "fq1loh5",
40
+ "z189sj": ["f12huiiw", "f161knb0"],
41
+ "Byoj8tv": "futqtb8",
42
+ "uwmqm3": ["f161knb0", "f12huiiw"],
43
+ "i8kkvl": "f1q8lukm",
44
+ "Belr9w4": "f1ma2n7n",
43
45
  "Be2twd7": "f1n0apg3"
44
46
  },
45
- "rootMedium": {
47
+ "medium": {
46
48
  "Bqenvij": "fjamq6b",
47
49
  "Bf4jedk": "f11u7vat",
48
- "rmohyg": "f4xv25i",
49
- "z189sj": ["f19lj068", "f177v4lu"],
50
- "uwmqm3": ["f177v4lu", "f19lj068"],
50
+ "i8kkvl": "f1q8lukm",
51
+ "Belr9w4": "f1ma2n7n",
52
+ "z8tnut": "f10ra9hq",
53
+ "z189sj": ["f8wuabp", "fycuoez"],
54
+ "Byoj8tv": "f1y2xyjm",
55
+ "uwmqm3": ["fycuoez", "f8wuabp"],
51
56
  "Be2twd7": "fnmn6fi"
52
57
  },
53
- "rootLarge": {
58
+ "large": {
54
59
  "Bf4jedk": "f17fgpbq",
55
60
  "Bqenvij": "frvgh55",
56
- "z189sj": ["f19lj068", "f177v4lu"],
57
- "uwmqm3": ["f177v4lu", "f19lj068"],
61
+ "z8tnut": "f10ra9hq",
62
+ "z189sj": ["f8wuabp", "fycuoez"],
63
+ "Byoj8tv": "f1y2xyjm",
64
+ "uwmqm3": ["fycuoez", "f8wuabp"],
58
65
  "Be2twd7": "f1ugzwwg",
59
- "rmohyg": "f19jf40t"
66
+ "i8kkvl": "f1q8lukm",
67
+ "Belr9w4": "f1ma2n7n"
60
68
  },
61
- "rootExtraLarge": {
69
+ "extra-large": {
62
70
  "Bf4jedk": "fwbmr0d",
63
71
  "Bqenvij": "f1d2rq10",
64
- "z189sj": ["f11qrl6u", "fjlbh76"],
65
- "uwmqm3": ["fjlbh76", "f11qrl6u"],
66
- "rmohyg": "f19jf40t",
72
+ "z8tnut": "f1xp5gbu",
73
+ "z189sj": ["f1sgzk6v", "f1bg5zqg"],
74
+ "Byoj8tv": "f1d7kygh",
75
+ "uwmqm3": ["f1bg5zqg", "f1sgzk6v"],
76
+ "i8kkvl": "fgfbwa2",
77
+ "Belr9w4": "f1y3hx6l",
67
78
  "Be2twd7": "f1ugzwwg",
68
79
  "B4j52fo": "f18zi460",
69
80
  "Bekrc4i": ["f1wpluaz", "fsfsuhs"],
70
81
  "Bn0qgzm": "fmklw6v",
71
82
  "ibv6hh": ["fsfsuhs", "f1wpluaz"]
72
83
  },
73
- "rootRounded": {
74
- "Dimara": "ft85np5"
75
- },
76
- "rootRoundedSmallToTiny": {
77
- "Dimara": "fq9zq91"
78
- },
79
- "rootCircular": {
80
- "Dimara": "f1rt4pet"
81
- },
82
- "rootGhost": {
83
- "ayd6f0": "f2imlf6",
84
- "icvyot": "f1ern45e",
85
- "vrafjx": ["f1n71otn", "f1deefiw"],
86
- "oivjwe": "f1h8hb77",
87
- "wvpqe5": ["f1deefiw", "f1n71otn"],
88
- "sj55zd": "f1817uup"
84
+ "square": {},
85
+ "rounded": {
86
+ "Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
87
+ "Beyfa6y": ["f16jpd5f", "f1aa9q02"],
88
+ "B7oj6ja": ["f1jar5jt", "fyu767a"],
89
+ "Btl43ni": ["fyu767a", "f1jar5jt"]
90
+ },
91
+ "roundedSmallToTiny": {
92
+ "Bbmb7ep": ["f1g3puop", "fi2rrw2"],
93
+ "Beyfa6y": ["fi2rrw2", "f1g3puop"],
94
+ "B7oj6ja": ["f1rstyi9", "f1s4nn1u"],
95
+ "Btl43ni": ["f1s4nn1u", "f1rstyi9"]
96
+ },
97
+ "circular": {
98
+ "Bbmb7ep": ["fxyqdnz", "fib3qew"],
99
+ "Beyfa6y": ["fib3qew", "fxyqdnz"],
100
+ "B7oj6ja": ["f14p2bvz", "fdqj3q4"],
101
+ "Btl43ni": ["fdqj3q4", "f14p2bvz"]
102
+ },
103
+ "filled": {
104
+ "g2u3we": "fghlq4f",
105
+ "h3c5rm": ["f1gn591s", "fjscplz"],
106
+ "B9xav0g": "fb073pr",
107
+ "zhjwy3": ["fjscplz", "f1gn591s"]
89
108
  },
90
- "rootOutline": {
91
- "ayd6f0": "f2imlf6",
109
+ "filled-brand": {
110
+ "De3pzq": "ffp7eso",
111
+ "sj55zd": "f1phragk",
92
112
  "g2u3we": "f1vp46cd",
93
113
  "h3c5rm": ["f1lxz1cr", "ff8nh0i"],
94
114
  "B9xav0g": "fe9j8it",
95
- "zhjwy3": ["ff8nh0i", "f1lxz1cr"],
96
- "sj55zd": "f1817uup"
115
+ "zhjwy3": ["ff8nh0i", "f1lxz1cr"]
97
116
  },
98
- "rootTint": {
99
- "De3pzq": "f16xkysk",
100
- "sj55zd": "faj9fo0",
101
- "g2u3we": "fwhevhj",
102
- "h3c5rm": ["f61n433", "f1q8l70w"],
103
- "B9xav0g": "fv1dfc8",
104
- "zhjwy3": ["f1q8l70w", "f61n433"]
105
- },
106
- "rootFilledDanger": {
117
+ "filled-danger": {
107
118
  "De3pzq": "fdl5y0r",
108
119
  "sj55zd": "f1phragk",
109
120
  "g2u3we": "f11ttmz8",
@@ -111,51 +122,27 @@ var useStyles = /*#__PURE__*/__styles({
111
122
  "B9xav0g": "fvovscg",
112
123
  "zhjwy3": ["f459ikj", "f1ratw88"]
113
124
  },
114
- "rootOutlineDanger": {
115
- "sj55zd": "f1whyuy6",
116
- "g2u3we": "f1tg094z",
117
- "h3c5rm": ["f19abfc5", "f1cj97ds"],
118
- "B9xav0g": "f1i5u4jy",
119
- "zhjwy3": ["f1cj97ds", "f19abfc5"]
120
- },
121
- "rootTintDanger": {
122
- "De3pzq": "ff0poqj",
123
- "sj55zd": "f1hcrxcs",
124
- "g2u3we": "fkvqoq2",
125
- "h3c5rm": ["f1abpjw7", "fzsnz0r"],
126
- "B9xav0g": "f9kvmvw",
127
- "zhjwy3": ["fzsnz0r", "f1abpjw7"]
125
+ "filled-important": {
126
+ "De3pzq": "f1c73kur",
127
+ "sj55zd": "fr0bkrk"
128
128
  },
129
- "rootGhostDanger": {
130
- "sj55zd": "f1whyuy6"
129
+ "filled-informative": {
130
+ "De3pzq": "f3vzo32",
131
+ "sj55zd": "f11d4kpn"
131
132
  },
132
- "rootFilledSevere": {
133
+ "filled-severe": {
133
134
  "De3pzq": "f1s438gw",
134
- "sj55zd": "f1phragk",
135
- "g2u3we": "fwhevhj",
136
- "h3c5rm": ["f61n433", "f1q8l70w"],
137
- "B9xav0g": "fv1dfc8",
138
- "zhjwy3": ["f1q8l70w", "f61n433"]
139
- },
140
- "rootOutlineSevere": {
141
- "sj55zd": "f1l8vj45",
142
- "g2u3we": "f1wahxdx",
143
- "h3c5rm": ["fpbzgcg", "f1g7u8zt"],
144
- "B9xav0g": "f1wrnc4t",
145
- "zhjwy3": ["f1g7u8zt", "fpbzgcg"]
146
- },
147
- "rootTintSevere": {
148
- "De3pzq": "f1xzsg4",
149
- "sj55zd": "f1k5f75o",
150
- "g2u3we": "f18s257e",
151
- "h3c5rm": ["f13ptu4t", "fiwx4jo"],
152
- "B9xav0g": "f1geyuz0",
153
- "zhjwy3": ["fiwx4jo", "f13ptu4t"]
135
+ "sj55zd": "f1phragk"
154
136
  },
155
- "rootGhostSevere": {
156
- "sj55zd": "f1l8vj45"
137
+ "filled-subtle": {
138
+ "De3pzq": "fxugw4r",
139
+ "sj55zd": "f19n0e5"
157
140
  },
158
- "rootFilledWarning": {
141
+ "filled-success": {
142
+ "De3pzq": "flxk52p",
143
+ "sj55zd": "f1phragk"
144
+ },
145
+ "filled-warning": {
159
146
  "De3pzq": "ffq97bm",
160
147
  "sj55zd": "f19n0e5",
161
148
  "g2u3we": "f1gyeiz5",
@@ -163,119 +150,116 @@ var useStyles = /*#__PURE__*/__styles({
163
150
  "B9xav0g": "f102bkgo",
164
151
  "zhjwy3": ["fd1epeu", "f1jnj1iq"]
165
152
  },
166
- "rootOutlineWarning": {
167
- "sj55zd": "fpti2h4",
168
- "g2u3we": "fbahunb",
169
- "h3c5rm": ["fa2hcp6", "f1cr20yc"],
170
- "B9xav0g": "f1fbl5g1",
171
- "zhjwy3": ["f1cr20yc", "fa2hcp6"]
153
+ "ghost": {
154
+ "icvyot": "f1ern45e",
155
+ "vrafjx": ["f1n71otn", "f1deefiw"],
156
+ "oivjwe": "f1h8hb77",
157
+ "wvpqe5": ["f1deefiw", "f1n71otn"]
172
158
  },
173
- "rootTintWarning": {
174
- "De3pzq": "f10s6hli",
175
- "sj55zd": "fpti2h4",
176
- "g2u3we": "f1e2bpek",
177
- "h3c5rm": ["fnu3uvp", "fdpwmi9"],
178
- "B9xav0g": "fk8fs0c",
179
- "zhjwy3": ["fdpwmi9", "fnu3uvp"]
159
+ "ghost-brand": {
160
+ "sj55zd": "f1817uup"
180
161
  },
181
- "rootGhostWarning": {
182
- "sj55zd": "fpti2h4"
162
+ "ghost-danger": {
163
+ "sj55zd": "f1whyuy6"
183
164
  },
184
- "rootFilledSuccess": {
185
- "De3pzq": "flxk52p",
186
- "sj55zd": "f1phragk",
187
- "g2u3we": "fwhevhj",
188
- "h3c5rm": ["f61n433", "f1q8l70w"],
189
- "B9xav0g": "fv1dfc8",
190
- "zhjwy3": ["f1q8l70w", "f61n433"]
191
- },
192
- "rootOutlineSuccess": {
193
- "sj55zd": "f1sms7z7",
194
- "g2u3we": "f7obisw",
195
- "h3c5rm": ["f108f34s", "f1chpoyh"],
196
- "B9xav0g": "f1xtovf2",
197
- "zhjwy3": ["f1chpoyh", "f108f34s"]
198
- },
199
- "rootTintSuccess": {
200
- "De3pzq": "f2vsrz6",
201
- "sj55zd": "ffmvakt",
202
- "g2u3we": "f3m3qtd",
203
- "h3c5rm": ["f1bjyn17", "fksln3n"],
204
- "B9xav0g": "frg4y0o",
205
- "zhjwy3": ["fksln3n", "f1bjyn17"]
165
+ "ghost-important": {
166
+ "sj55zd": "f19n0e5"
167
+ },
168
+ "ghost-informative": {
169
+ "sj55zd": "f11d4kpn"
170
+ },
171
+ "ghost-severe": {
172
+ "sj55zd": "f1l8vj45"
206
173
  },
207
- "rootGhostSuccess": {
174
+ "ghost-subtle": {
175
+ "sj55zd": "fqpbvvt"
176
+ },
177
+ "ghost-success": {
208
178
  "sj55zd": "f1m7fhi8"
209
179
  },
210
- "rootFilledImportant": {
211
- "De3pzq": "f1c73kur",
212
- "sj55zd": "fr0bkrk",
213
- "g2u3we": "fghlq4f",
214
- "h3c5rm": ["f1gn591s", "fjscplz"],
215
- "B9xav0g": "fb073pr",
216
- "zhjwy3": ["fjscplz", "f1gn591s"]
180
+ "ghost-warning": {
181
+ "sj55zd": "fpti2h4"
217
182
  },
218
- "rootOutlineImportant": {
219
- "sj55zd": "f19n0e5",
220
- "g2u3we": "fnp0ra0",
221
- "h3c5rm": ["fanr40h", "f1nwaeql"],
222
- "B9xav0g": "f15ntglx",
223
- "zhjwy3": ["f1nwaeql", "fanr40h"]
183
+ "outline": {
184
+ "g2u3we": "f23ftbb",
185
+ "h3c5rm": ["f1gkuv52", "f1p1bl80"],
186
+ "B9xav0g": "fioka3i",
187
+ "zhjwy3": ["f1p1bl80", "f1gkuv52"]
224
188
  },
225
- "rootTintImportant": {
226
- "De3pzq": "f945g0u",
227
- "sj55zd": "fr0bkrk",
228
- "g2u3we": "fghlq4f",
229
- "h3c5rm": ["f1gn591s", "fjscplz"],
230
- "B9xav0g": "fb073pr",
231
- "zhjwy3": ["fjscplz", "f1gn591s"]
189
+ "outline-brand": {
190
+ "sj55zd": "f1817uup"
232
191
  },
233
- "rootGhostImportant": {
234
- "sj55zd": "f19n0e5"
192
+ "outline-danger": {
193
+ "sj55zd": "f1whyuy6"
235
194
  },
236
- "rootFilledInformative": {
237
- "De3pzq": "f3vzo32",
195
+ "outline-important": {
238
196
  "sj55zd": "f11d4kpn",
239
- "g2u3we": "fghlq4f",
240
- "h3c5rm": ["f1gn591s", "fjscplz"],
241
- "B9xav0g": "fb073pr",
242
- "zhjwy3": ["fjscplz", "f1gn591s"]
197
+ "g2u3we": "fq0vr37",
198
+ "h3c5rm": ["f1byw159", "f11cr0be"],
199
+ "B9xav0g": "f1c1zstj",
200
+ "zhjwy3": ["f11cr0be", "f1byw159"]
243
201
  },
244
- "rootOutlineInformative": {
245
- "De3pzq": "f1s438gw",
246
- "sj55zd": "f11z005f",
247
- "g2u3we": "f1o6yoc8",
248
- "h3c5rm": ["fdav146", "f6dh4jx"],
249
- "B9xav0g": "fhjohzm",
250
- "zhjwy3": ["f6dh4jx", "fdav146"]
251
- },
252
- "rootTintInformative": {
253
- "De3pzq": "f1ctqxl6",
202
+ "outline-informative": {
254
203
  "sj55zd": "f11d4kpn",
255
204
  "g2u3we": "f68mrw8",
256
205
  "h3c5rm": ["f7pw515", "fw35ms5"],
257
206
  "B9xav0g": "frpde29",
258
207
  "zhjwy3": ["fw35ms5", "f7pw515"]
259
208
  },
260
- "rootGhostInformative": {
261
- "sj55zd": "f11z005f"
209
+ "outline-severe": {
210
+ "sj55zd": "f1l8vj45"
262
211
  },
263
- "rootFilledSubtle": {
264
- "De3pzq": "fxugw4r",
265
- "sj55zd": "f19n0e5",
212
+ "outline-subtle": {
213
+ "sj55zd": "fqpbvvt"
214
+ },
215
+ "outline-success": {
216
+ "sj55zd": "f1sms7z7"
217
+ },
218
+ "outline-warning": {
219
+ "sj55zd": "fpti2h4"
220
+ },
221
+ "tint": {},
222
+ "tint-brand": {
223
+ "De3pzq": "f16xkysk",
224
+ "sj55zd": "faj9fo0",
225
+ "g2u3we": "f161y7kd",
226
+ "h3c5rm": ["f1c8dzaj", "f1sl6hi9"],
227
+ "B9xav0g": "f1619yhw",
228
+ "zhjwy3": ["f1sl6hi9", "f1c8dzaj"]
229
+ },
230
+ "tint-danger": {
231
+ "De3pzq": "ff0poqj",
232
+ "sj55zd": "f1hcrxcs",
233
+ "g2u3we": "f1oqjm8o",
234
+ "h3c5rm": ["fkgrb8g", "frb5wm0"],
235
+ "B9xav0g": "f1iai1ph",
236
+ "zhjwy3": ["frb5wm0", "fkgrb8g"]
237
+ },
238
+ "tint-important": {
239
+ "De3pzq": "f945g0u",
240
+ "sj55zd": "fr0bkrk",
266
241
  "g2u3we": "fghlq4f",
267
242
  "h3c5rm": ["f1gn591s", "fjscplz"],
268
243
  "B9xav0g": "fb073pr",
269
244
  "zhjwy3": ["fjscplz", "f1gn591s"]
270
245
  },
271
- "rootOutlineSubtle": {
272
- "sj55zd": "f1phragk",
273
- "g2u3we": "fm1ebug",
274
- "h3c5rm": ["f28omuz", "f1uhflii"],
275
- "B9xav0g": "f1ixw5o4",
276
- "zhjwy3": ["f1uhflii", "f28omuz"]
246
+ "tint-informative": {
247
+ "De3pzq": "f1ctqxl6",
248
+ "sj55zd": "f11d4kpn",
249
+ "g2u3we": "f68mrw8",
250
+ "h3c5rm": ["f7pw515", "fw35ms5"],
251
+ "B9xav0g": "frpde29",
252
+ "zhjwy3": ["fw35ms5", "f7pw515"]
277
253
  },
278
- "rootTintSubtle": {
254
+ "tint-severe": {
255
+ "De3pzq": "f1xzsg4",
256
+ "sj55zd": "f1k5f75o",
257
+ "g2u3we": "f18s257e",
258
+ "h3c5rm": ["f13ptu4t", "fiwx4jo"],
259
+ "B9xav0g": "f1geyuz0",
260
+ "zhjwy3": ["fiwx4jo", "f13ptu4t"]
261
+ },
262
+ "tint-subtle": {
279
263
  "De3pzq": "fxugw4r",
280
264
  "sj55zd": "f11d4kpn",
281
265
  "g2u3we": "f68mrw8",
@@ -283,40 +267,66 @@ var useStyles = /*#__PURE__*/__styles({
283
267
  "B9xav0g": "frpde29",
284
268
  "zhjwy3": ["fw35ms5", "f7pw515"]
285
269
  },
286
- "rootGhostSubtle": {
287
- "sj55zd": "f1phragk"
270
+ "tint-success": {
271
+ "De3pzq": "f2vsrz6",
272
+ "sj55zd": "ffmvakt",
273
+ "g2u3we": "f3m3qtd",
274
+ "h3c5rm": ["f1bjyn17", "fksln3n"],
275
+ "B9xav0g": "frg4y0o",
276
+ "zhjwy3": ["fksln3n", "f1bjyn17"]
288
277
  },
289
- "icon": {
278
+ "tint-warning": {
279
+ "De3pzq": "f10s6hli",
280
+ "sj55zd": "fpti2h4",
281
+ "g2u3we": "f1e2bpek",
282
+ "h3c5rm": ["fnu3uvp", "fdpwmi9"],
283
+ "B9xav0g": "fk8fs0c",
284
+ "zhjwy3": ["fdpwmi9", "fnu3uvp"]
285
+ }
286
+ }, {
287
+ "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;}", ".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;}", ".fq1loh5{padding-top:2px;}", ".f12huiiw{padding-right:2px;}", ".f161knb0{padding-left:2px;}", ".futqtb8{padding-bottom:2px;}", ".f1q8lukm{-webkit-column-gap:4px;column-gap:4px;}", ".f1ma2n7n{row-gap:4px;}", ".f1n0apg3{font-size:8px;}", ".fjamq6b{height:20px;}", ".f11u7vat{min-width:20px;}", ".f10ra9hq{padding-top:4px;}", ".f8wuabp{padding-right:4px;}", ".fycuoez{padding-left:4px;}", ".f1y2xyjm{padding-bottom:4px;}", ".fnmn6fi{font-size:10px;}", ".f17fgpbq{min-width:24px;}", ".frvgh55{height:24px;}", ".f1ugzwwg{font-size:12px;}", ".fwbmr0d{min-width:32px;}", ".f1d2rq10{height:32px;}", ".f1xp5gbu{padding-top:6px;}", ".f1sgzk6v{padding-right:6px;}", ".f1bg5zqg{padding-left:6px;}", ".f1d7kygh{padding-bottom:6px;}", ".fgfbwa2{-webkit-column-gap:6px;column-gap:6px;}", ".f1y3hx6l{row-gap:6px;}", ".f18zi460{border-top-width:var(--strokeWidthThick);}", ".f1wpluaz{border-right-width:var(--strokeWidthThick);}", ".fsfsuhs{border-left-width:var(--strokeWidthThick);}", ".fmklw6v{border-bottom-width:var(--strokeWidthThick);}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}", ".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}", ".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}", ".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}", ".fxyqdnz{border-bottom-right-radius:99px;}", ".fib3qew{border-bottom-left-radius:99px;}", ".f14p2bvz{border-top-right-radius:99px;}", ".fdqj3q4{border-top-left-radius:99px;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".f1vp46cd{border-top-color:var(--colorBrandBackground);}", ".f1lxz1cr{border-right-color:var(--colorBrandBackground);}", ".ff8nh0i{border-left-color:var(--colorBrandBackground);}", ".fe9j8it{border-bottom-color:var(--colorBrandBackground);}", ".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);}", ".f1c73kur{background-color:var(--colorNeutralForeground1);}", ".fr0bkrk{color:var(--colorNeutralBackground1);}", ".f3vzo32{background-color:var(--colorNeutralBackground5);}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".flxk52p{background-color:var(--colorPaletteGreenBackground3);}", ".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}", ".f1gyeiz5{border-top-color:var(--colorPaletteYellowBackground3);}", ".f1jnj1iq{border-right-color:var(--colorPaletteYellowBackground3);}", ".fd1epeu{border-left-color:var(--colorPaletteYellowBackground3);}", ".f102bkgo{border-bottom-color:var(--colorPaletteYellowBackground3);}", ".f1ern45e{border-top-style:none;}", ".f1n71otn{border-right-style:none;}", ".f1deefiw{border-left-style:none;}", ".f1h8hb77{border-bottom-style:none;}", ".f1817uup{color:var(--colorBrandBackground);}", ".f1whyuy6{color:var(--colorPaletteRedForeground3);}", ".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}", ".fpti2h4{color:var(--colorPaletteYellowForeground2);}", ".f23ftbb{border-top-color:currentColor;}", ".f1gkuv52{border-right-color:currentColor;}", ".f1p1bl80{border-left-color:currentColor;}", ".fioka3i{border-bottom-color:currentColor;}", ".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}", ".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}", ".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}", ".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}", ".f68mrw8{border-top-color:var(--colorNeutralStroke2);}", ".f7pw515{border-right-color:var(--colorNeutralStroke2);}", ".fw35ms5{border-left-color:var(--colorNeutralStroke2);}", ".frpde29{border-bottom-color:var(--colorNeutralStroke2);}", ".f1sms7z7{color:var(--colorPaletteGreenForeground2);}", ".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);}", ".ff0poqj{background-color:var(--colorPaletteRedBackground1);}", ".f1hcrxcs{color:var(--colorPaletteRedForeground1);}", ".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}", ".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}", ".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}", ".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}", ".f945g0u{background-color:var(--colorNeutralForeground3);}", ".f1ctqxl6{background-color:var(--colorNeutralBackground4);}", ".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);}", ".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);}", ".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);}"]
288
+ });
289
+
290
+ const useIconStyles = /*#__PURE__*/__styles({
291
+ "base": {
290
292
  "mc9l5x": "f22iagw",
291
293
  "Bmliigx": "fxe27oy",
292
294
  "Bt984gj": "f122n59",
293
295
  "Bqenvij": "f1l02sjl"
296
+ },
297
+ "tiny": {
298
+ "Be2twd7": "f1tccstq"
299
+ },
300
+ "extra-small": {
301
+ "Be2twd7": "fnmn6fi"
302
+ },
303
+ "small": {
304
+ "Be2twd7": "f1ugzwwg"
305
+ },
306
+ "medium": {
307
+ "Be2twd7": "f1ugzwwg"
308
+ },
309
+ "large": {
310
+ "Be2twd7": "f4ybsrx"
311
+ },
312
+ "extra-large": {
313
+ "Be2twd7": "fe5j1ua"
294
314
  }
295
315
  }, {
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%;}"]
316
+ "d": [".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;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f1l02sjl{height:100%;}", ".f1tccstq{font-size:6px;}", ".fnmn6fi{font-size:10px;}", ".f1ugzwwg{font-size:12px;}", ".f4ybsrx{font-size:16px;}", ".fe5j1ua{font-size:20px;}"]
297
317
  });
298
318
  /**
299
319
  * Applies style classnames to slots
300
320
  */
301
321
 
302
322
 
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);
323
+ export const useBadgeStyles_unstable = state => {
324
+ const rootStyles = useRootStyles();
325
+ state.root.className = mergeClasses(badgeClassNames.root, rootStyles.base, rootStyles[state.size], rootStyles[state.shape], state.shape === 'rounded' && (state.size === 'small' || state.size === 'extra-small' || state.size === 'tiny') && rootStyles.roundedSmallToTiny, rootStyles[state.appearance], rootStyles[`${state.appearance}-${state.color}`], state.root.className);
326
+ const iconStyles = useIconStyles();
317
327
 
318
328
  if (state.icon) {
319
- state.icon.className = mergeClasses(styles.icon, state.icon.className);
329
+ state.icon.className = mergeClasses(badgeClassNames.icon, iconStyles.base, iconStyles[state.size], state.icon.className);
320
330
  }
321
331
 
322
332
  return state;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Badge/useBadgeStyles.ts"],"names":[],"mappings":"AAAA,SAAS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kC;AACvE,QAAM,UAAU,GAAG,aAAa,EAAhC;AAEA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,eAAe,CAAC,IADiB,EAEjC,UAAU,CAAC,IAFsB,EAGjC,UAAU,CAAC,KAAK,CAAC,IAAP,CAHuB,EAIjC,UAAU,CAAC,KAAK,CAAC,KAAP,CAJuB,EAKjC,KAAK,CAAC,KAAN,KAAgB,SAAhB,KACG,KAAK,CAAC,IAAN,KAAe,OAAf,IAA0B,KAAK,CAAC,IAAN,KAAe,aAAzC,IAA0D,KAAK,CAAC,IAAN,KAAe,MAD5E,KAEE,UAAU,CAAC,kBAPoB,EAQjC,UAAU,CAAC,KAAK,CAAC,UAAP,CARuB,EASjC,UAAU,CAAC,GAAG,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,KAAK,EAAnC,CATuB,EAUjC,KAAK,CAAC,IAAN,CAAW,SAVsB,CAAnC;AAaA,QAAM,UAAU,GAAG,aAAa,EAAhC;;AACA,MAAI,KAAK,CAAC,IAAV,EAAgB;AACd,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,eAAe,CAAC,IADiB,EAEjC,UAAU,CAAC,IAFsB,EAGjC,UAAU,CAAC,KAAK,CAAC,IAAP,CAHuB,EAIjC,KAAK,CAAC,IAAN,CAAW,SAJsB,CAAnC;AAMD;;AAED,SAAO,KAAP;AACD,CA3BM","sourcesContent":["import { shorthands, mergeClasses, makeStyles } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { BadgeSlots, BadgeState } from './Badge.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const badgeClassNames: SlotClassNames<BadgeSlots> = {\n root: 'fui-Badge',\n icon: 'fui-Badge__icon',\n};\n\nconst useRootStyles = makeStyles({\n base: {\n display: 'inline-flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n justifyContent: 'center',\n fontWeight: tokens.fontWeightSemibold,\n ...shorthands.borderWidth(tokens.strokeWidthThin),\n ...shorthands.borderStyle('solid'),\n fontFamily: tokens.fontFamilyBase,\n position: 'relative',\n },\n\n // size\n\n tiny: {\n width: '6px',\n height: '6px',\n fontSize: '4px',\n },\n 'extra-small': {\n width: '10px',\n height: '10px',\n fontSize: '6px',\n },\n small: {\n minWidth: '16px',\n height: '16px',\n ...shorthands.padding('2px'),\n ...shorthands.gap('4px'),\n fontSize: '8px',\n },\n medium: {\n height: '20px',\n minWidth: '20px',\n ...shorthands.gap('4px'),\n ...shorthands.padding('4px'),\n fontSize: '10px',\n },\n large: {\n minWidth: '24px',\n height: '24px',\n ...shorthands.padding('4px'),\n fontSize: '12px',\n ...shorthands.gap('4px'),\n },\n 'extra-large': {\n minWidth: '32px',\n height: '32px',\n ...shorthands.padding('6px'),\n ...shorthands.gap('6px'),\n fontSize: '12px',\n ...shorthands.borderWidth(tokens.strokeWidthThick),\n },\n\n // shape\n\n square: {\n // Default border radius\n },\n rounded: {\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n },\n roundedSmallToTiny: {\n ...shorthands.borderRadius(tokens.borderRadiusSmall),\n },\n circular: {\n ...shorthands.borderRadius('99px'),\n },\n\n // appearance: filled\n\n filled: {\n ...shorthands.borderColor(tokens.colorTransparentStroke),\n },\n 'filled-brand': {\n backgroundColor: tokens.colorBrandBackground,\n color: tokens.colorNeutralForegroundOnBrand,\n ...shorthands.borderColor(tokens.colorBrandBackground),\n },\n 'filled-danger': {\n backgroundColor: tokens.colorPaletteRedBackground3,\n color: tokens.colorNeutralForegroundOnBrand,\n ...shorthands.borderColor(tokens.colorPaletteRedBackground3),\n },\n 'filled-important': {\n backgroundColor: tokens.colorNeutralForeground1,\n color: tokens.colorNeutralBackground1,\n },\n 'filled-informative': {\n backgroundColor: tokens.colorNeutralBackground5,\n color: tokens.colorNeutralForeground3,\n },\n 'filled-severe': {\n backgroundColor: tokens.colorPaletteDarkOrangeBackground3,\n color: tokens.colorNeutralForegroundOnBrand,\n },\n 'filled-subtle': {\n backgroundColor: tokens.colorNeutralBackground1,\n color: tokens.colorNeutralForeground1,\n },\n 'filled-success': {\n backgroundColor: tokens.colorPaletteGreenBackground3,\n color: tokens.colorNeutralForegroundOnBrand,\n },\n 'filled-warning': {\n backgroundColor: tokens.colorPaletteYellowBackground3,\n color: tokens.colorNeutralForeground1,\n ...shorthands.borderColor(tokens.colorPaletteYellowBackground3),\n },\n\n // appearance: ghost\n\n ghost: {\n ...shorthands.borderStyle('none'),\n },\n 'ghost-brand': {\n color: tokens.colorBrandBackground,\n },\n 'ghost-danger': {\n color: tokens.colorPaletteRedForeground3,\n },\n 'ghost-important': {\n color: tokens.colorNeutralForeground1,\n },\n 'ghost-informative': {\n color: tokens.colorNeutralForeground3,\n },\n 'ghost-severe': {\n color: tokens.colorPaletteDarkOrangeForeground3,\n },\n 'ghost-subtle': {\n color: tokens.colorNeutralForegroundInverted,\n },\n 'ghost-success': {\n color: tokens.colorPaletteGreenForeground3,\n },\n 'ghost-warning': {\n color: tokens.colorPaletteYellowForeground2,\n },\n\n // appearance: outline\n\n outline: {\n ...shorthands.borderColor('currentColor'),\n },\n 'outline-brand': {\n color: tokens.colorBrandBackground,\n },\n 'outline-danger': {\n color: tokens.colorPaletteRedForeground3,\n },\n 'outline-important': {\n color: tokens.colorNeutralForeground3,\n ...shorthands.borderColor(tokens.colorNeutralStrokeAccessible),\n },\n 'outline-informative': {\n color: tokens.colorNeutralForeground3,\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n },\n 'outline-severe': {\n color: tokens.colorPaletteDarkOrangeForeground3,\n },\n 'outline-subtle': {\n color: tokens.colorNeutralForegroundInverted,\n },\n 'outline-success': {\n color: tokens.colorPaletteGreenForeground2,\n },\n 'outline-warning': {\n color: tokens.colorPaletteYellowForeground2,\n },\n\n // appearance: tint\n\n tint: {\n // No shared colors between tint appearances\n },\n 'tint-brand': {\n backgroundColor: tokens.colorBrandBackground2,\n color: tokens.colorBrandForeground2,\n ...shorthands.borderColor(tokens.colorBrandStroke2),\n },\n 'tint-danger': {\n backgroundColor: tokens.colorPaletteRedBackground1,\n color: tokens.colorPaletteRedForeground1,\n ...shorthands.borderColor(tokens.colorPaletteRedBorder1),\n },\n 'tint-important': {\n backgroundColor: tokens.colorNeutralForeground3,\n color: tokens.colorNeutralBackground1,\n ...shorthands.borderColor(tokens.colorTransparentStroke),\n },\n 'tint-informative': {\n backgroundColor: tokens.colorNeutralBackground4,\n color: tokens.colorNeutralForeground3,\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n },\n 'tint-severe': {\n backgroundColor: tokens.colorPaletteDarkOrangeBackground1,\n color: tokens.colorPaletteDarkOrangeForeground1,\n ...shorthands.borderColor(tokens.colorPaletteDarkOrangeForeground2),\n },\n 'tint-subtle': {\n backgroundColor: tokens.colorNeutralBackground1,\n color: tokens.colorNeutralForeground3,\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n },\n 'tint-success': {\n backgroundColor: tokens.colorPaletteGreenBackground1,\n color: tokens.colorPaletteGreenForeground1,\n ...shorthands.borderColor(tokens.colorPaletteGreenBackground2),\n },\n 'tint-warning': {\n backgroundColor: tokens.colorPaletteYellowBackground1,\n color: tokens.colorPaletteYellowForeground2,\n ...shorthands.borderColor(tokens.colorPaletteYellowBackground2),\n },\n});\n\nconst useIconStyles = makeStyles({\n base: {\n display: 'flex',\n alignContent: 'center',\n alignItems: 'center',\n height: '100%',\n },\n\n // size\n\n tiny: {\n fontSize: '6px',\n },\n 'extra-small': {\n fontSize: '10px',\n },\n small: {\n fontSize: '12px',\n },\n medium: {\n fontSize: '12px',\n },\n large: {\n fontSize: '16px',\n },\n 'extra-large': {\n fontSize: '20px',\n },\n});\n\n/**\n * Applies style classnames to slots\n */\nexport const useBadgeStyles_unstable = (state: BadgeState): BadgeState => {\n const rootStyles = useRootStyles();\n\n state.root.className = mergeClasses(\n badgeClassNames.root,\n rootStyles.base,\n rootStyles[state.size],\n rootStyles[state.shape],\n state.shape === 'rounded' &&\n (state.size === 'small' || state.size === 'extra-small' || state.size === 'tiny') &&\n rootStyles.roundedSmallToTiny,\n rootStyles[state.appearance],\n rootStyles[`${state.appearance}-${state.color}` as const],\n state.root.className,\n );\n\n const iconStyles = useIconStyles();\n if (state.icon) {\n state.icon.className = mergeClasses(\n badgeClassNames.icon,\n iconStyles.base,\n iconStyles[state.size],\n state.icon.className,\n );\n }\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { useCounterBadge } from './useCounterBadge';
3
- import { useCounterBadgeStyles } from './useCounterBadgeStyles';
4
- import { renderBadge } from '../Badge/index';
2
+ import { useCounterBadge_unstable } from './useCounterBadge';
3
+ import { useCounterBadgeStyles_unstable } from './useCounterBadgeStyles';
4
+ import { renderBadge_unstable } from '../Badge/index';
5
5
  /**
6
- * Define a styled CounterBadge, using the `useCounterBadge` hook.
6
+ * Define a styled CounterBadge, using the `useCounterBadge_unstable` hook.
7
7
  */
8
8
 
9
- export var CounterBadge = /*#__PURE__*/React.forwardRef(function (props, ref) {
10
- var state = useCounterBadge(props, ref);
11
- useCounterBadgeStyles(state);
12
- return renderBadge(state);
9
+ export const CounterBadge = /*#__PURE__*/React.forwardRef((props, ref) => {
10
+ const state = useCounterBadge_unstable(props, ref);
11
+ useCounterBadgeStyles_unstable(state);
12
+ return renderBadge_unstable(state);
13
13
  });
14
14
  CounterBadge.displayName = 'CounterBadge';
15
15
  //# sourceMappingURL=CounterBadge.js.map