@razorpay/blade 11.24.3 → 11.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/build/lib/native/components/Avatar/TrustedBadgeIcon.native.js +7 -0
  2. package/build/lib/native/components/Avatar/TrustedBadgeIcon.native.js.map +1 -0
  3. package/build/lib/native/components/Indicator/Indicator.js +2 -1
  4. package/build/lib/native/components/Indicator/Indicator.js.map +1 -1
  5. package/build/lib/native/components/StepGroup/StepItemMarker.js +1 -1
  6. package/build/lib/native/components/StepGroup/StepItemMarker.js.map +1 -1
  7. package/build/lib/native/components/index.js +1 -0
  8. package/build/lib/native/components/index.js.map +1 -1
  9. package/build/lib/web/development/components/Avatar/Avatar.web.js +42 -3
  10. package/build/lib/web/development/components/Avatar/Avatar.web.js.map +1 -1
  11. package/build/lib/web/development/components/Avatar/AvatarButton.js +8 -3
  12. package/build/lib/web/development/components/Avatar/AvatarButton.js.map +1 -1
  13. package/build/lib/web/development/components/Avatar/StyledAvatar.js +11 -5
  14. package/build/lib/web/development/components/Avatar/StyledAvatar.js.map +1 -1
  15. package/build/lib/web/development/components/Avatar/StyledAvatarButton.js +10 -6
  16. package/build/lib/web/development/components/Avatar/StyledAvatarButton.js.map +1 -1
  17. package/build/lib/web/development/components/Avatar/TrustedBadgeIcon.web.js +195 -0
  18. package/build/lib/web/development/components/Avatar/TrustedBadgeIcon.web.js.map +1 -0
  19. package/build/lib/web/development/components/Avatar/avatarTokens.js +61 -1
  20. package/build/lib/web/development/components/Avatar/avatarTokens.js.map +1 -1
  21. package/build/lib/web/development/components/Avatar/index.js +1 -0
  22. package/build/lib/web/development/components/Avatar/index.js.map +1 -1
  23. package/build/lib/web/development/components/Indicator/Indicator.js +7 -2
  24. package/build/lib/web/development/components/Indicator/Indicator.js.map +1 -1
  25. package/build/lib/web/development/components/StepGroup/StepItemMarker.js +0 -1
  26. package/build/lib/web/development/components/StepGroup/StepItemMarker.js.map +1 -1
  27. package/build/lib/web/development/components/index.js +1 -0
  28. package/build/lib/web/development/components/index.js.map +1 -1
  29. package/build/lib/web/production/components/Avatar/Avatar.web.js +42 -3
  30. package/build/lib/web/production/components/Avatar/Avatar.web.js.map +1 -1
  31. package/build/lib/web/production/components/Avatar/AvatarButton.js +8 -3
  32. package/build/lib/web/production/components/Avatar/AvatarButton.js.map +1 -1
  33. package/build/lib/web/production/components/Avatar/StyledAvatar.js +11 -5
  34. package/build/lib/web/production/components/Avatar/StyledAvatar.js.map +1 -1
  35. package/build/lib/web/production/components/Avatar/StyledAvatarButton.js +10 -6
  36. package/build/lib/web/production/components/Avatar/StyledAvatarButton.js.map +1 -1
  37. package/build/lib/web/production/components/Avatar/TrustedBadgeIcon.web.js +195 -0
  38. package/build/lib/web/production/components/Avatar/TrustedBadgeIcon.web.js.map +1 -0
  39. package/build/lib/web/production/components/Avatar/avatarTokens.js +61 -1
  40. package/build/lib/web/production/components/Avatar/avatarTokens.js.map +1 -1
  41. package/build/lib/web/production/components/Avatar/index.js +1 -0
  42. package/build/lib/web/production/components/Avatar/index.js.map +1 -1
  43. package/build/lib/web/production/components/Indicator/Indicator.js +7 -2
  44. package/build/lib/web/production/components/Indicator/Indicator.js.map +1 -1
  45. package/build/lib/web/production/components/StepGroup/StepItemMarker.js +0 -1
  46. package/build/lib/web/production/components/StepGroup/StepItemMarker.js.map +1 -1
  47. package/build/lib/web/production/components/index.js +1 -0
  48. package/build/lib/web/production/components/index.js.map +1 -1
  49. package/build/types/components/index.d.ts +23 -17
  50. package/build/types/components/index.native.d.ts +20 -17
  51. package/package.json +1 -1
@@ -0,0 +1,195 @@
1
+ import '../Icons/useIconProps/index.js';
2
+ import '../Icons/_Svg/index.js';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+ import useIconProps from '../Icons/useIconProps/useIconProps.js';
5
+ import Svg from '../Icons/_Svg/Svg/Svg.web.js';
6
+ import Path from '../Icons/_Svg/Path/Path.web.js';
7
+
8
+ var TrustedBadgeIcon = function TrustedBadgeIcon(props) {
9
+ var _useIconProps = useIconProps(props),
10
+ width = _useIconProps.width,
11
+ height = _useIconProps.height;
12
+ return /*#__PURE__*/jsxs(Svg, {
13
+ display: "block",
14
+ width: width,
15
+ height: height,
16
+ viewBox: "0 0 19 20",
17
+ fill: "none",
18
+ children: [/*#__PURE__*/jsx(Path, {
19
+ d: "M18.1763 3.12496C14.4216 3.12496 11.5452 2.14992 9.11271 0C6.68058 2.14992 3.80428 3.12496 0.0498704 3.12496C0.0498704 8.72327 -1.22466 16.7433 9.11271 20C19.4508 16.7432 18.1763 8.72327 18.1763 3.12496Z",
20
+ fill: "url(#paint0_linear_89597_146569)"
21
+ }), /*#__PURE__*/jsx("g", {
22
+ filter: "url(#filter0_i_89597_146569)",
23
+ children: /*#__PURE__*/jsx(Path, {
24
+ d: "M16.9345 4.04107C13.6801 4.04107 11.1869 3.19596 9.07861 1.33252C6.97056 3.19596 4.47753 4.04107 1.2234 4.04107C1.2234 8.8934 0.118706 15.8448 9.07861 18.6675C18.0391 15.8447 16.9345 8.8934 16.9345 4.04107Z",
25
+ fill: "url(#paint1_linear_89597_146569)"
26
+ })
27
+ }), /*#__PURE__*/jsx("g", {
28
+ opacity: "0.21",
29
+ filter: "url(#filter1_f_89597_146569)",
30
+ children: /*#__PURE__*/jsx(Path, {
31
+ fillRule: "evenodd",
32
+ clipRule: "evenodd",
33
+ d: "M8.5245 2.30005C8.52447 2.30007 8.52443 2.3001 8.67861 2.48494C8.83278 2.66978 8.83273 2.66982 8.83268 2.66987L8.83254 2.66998L8.83095 2.67126L8.82684 2.67456C8.82335 2.67735 8.81835 2.68132 8.81188 2.68641C8.79895 2.69659 8.78014 2.71123 8.7557 2.72983C8.70683 2.76703 8.63543 2.82008 8.5436 2.8849C8.36002 3.0145 8.0943 3.19147 7.76321 3.38298C7.10245 3.76518 6.1741 4.20952 5.11373 4.44724C4.07693 4.67968 3.24422 4.80779 2.66922 4.87785C2.38171 4.91288 2.15861 4.9334 2.00659 4.94519C2.00136 4.94559 1.99621 4.94599 1.99115 4.94637C1.98673 5.02812 1.98148 5.13199 1.97603 5.2548C1.96151 5.58157 1.94554 6.04208 1.93973 6.57633C1.92809 7.64707 1.95743 9.00508 2.11864 10.1751L1.63775 10.2395C1.4718 9.03519 1.44272 7.65004 1.45445 6.57119C1.46032 6.03065 1.47648 5.56477 1.49118 5.23384C1.49853 5.06835 1.50552 4.93652 1.51068 4.8459C1.51326 4.80058 1.51539 4.76556 1.51688 4.74177C1.51762 4.72988 1.5182 4.72079 1.5186 4.71463L1.51923 4.70512C1.51923 4.70508 1.51924 4.70505 1.76136 4.72097L1.51924 4.70505L1.53378 4.48989L1.75214 4.48178L1.75223 4.48178L1.75254 4.48177L1.75466 4.48168C1.75668 4.48159 1.75989 4.48145 1.76428 4.48125C1.77307 4.48084 1.7866 4.48016 1.80477 4.47912C1.8411 4.47706 1.89597 4.47357 1.96855 4.46794C2.1137 4.45668 2.32965 4.43686 2.60973 4.40273C3.16991 4.33448 3.98651 4.20902 5.00618 3.98042C6.00229 3.75711 6.88327 3.337 7.51772 2.97002C7.83423 2.78694 8.08758 2.61813 8.26117 2.4956C8.34792 2.43436 8.41464 2.38476 8.45923 2.35081C8.48152 2.33385 8.49828 2.3208 8.50924 2.31218C8.51471 2.30787 8.51874 2.30466 8.52129 2.30263L8.52398 2.30047L8.5245 2.30005Z",
34
+ fill: "url(#paint2_linear_89597_146569)"
35
+ })
36
+ }), /*#__PURE__*/jsxs("g", {
37
+ filter: "url(#filter2_d_89597_146569)",
38
+ children: [/*#__PURE__*/jsx(Path, {
39
+ d: "M8.17223 7.68163L7.72705 9.30015L10.2744 7.67253L8.60851 13.8131L10.3002 13.8147L12.7611 4.74487L8.17223 7.68163Z",
40
+ fill: "white"
41
+ }), /*#__PURE__*/jsx(Path, {
42
+ d: "M5.42984 11.2342L4.72949 13.8156H8.19707C8.19707 13.8156 9.61539 8.5655 9.61579 8.56396C9.61446 8.5648 5.42984 11.2342 5.42984 11.2342Z",
43
+ fill: "white"
44
+ })]
45
+ }), /*#__PURE__*/jsxs("defs", {
46
+ children: [/*#__PURE__*/jsxs("filter", {
47
+ id: "filter0_i_89597_146569",
48
+ x: "1.18018",
49
+ y: "1.33252",
50
+ width: "16.087",
51
+ height: "18.0108",
52
+ filterUnits: "userSpaceOnUse",
53
+ colorInterpolationFilters: "sRGB",
54
+ children: [/*#__PURE__*/jsx("feFlood", {
55
+ floodOpacity: "0",
56
+ result: "BackgroundImageFix"
57
+ }), /*#__PURE__*/jsx("feBlend", {
58
+ mode: "normal",
59
+ "in": "SourceGraphic",
60
+ in2: "BackgroundImageFix",
61
+ result: "shape"
62
+ }), /*#__PURE__*/jsx("feColorMatrix", {
63
+ "in": "SourceAlpha",
64
+ type: "matrix",
65
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
66
+ result: "hardAlpha"
67
+ }), /*#__PURE__*/jsx("feOffset", {
68
+ dx: "0.289647",
69
+ dy: "0.675842"
70
+ }), /*#__PURE__*/jsx("feGaussianBlur", {
71
+ stdDeviation: "0.917215"
72
+ }), /*#__PURE__*/jsx("feComposite", {
73
+ in2: "hardAlpha",
74
+ operator: "arithmetic",
75
+ k2: "-1",
76
+ k3: "1"
77
+ }), /*#__PURE__*/jsx("feColorMatrix", {
78
+ type: "matrix",
79
+ values: "0 0 0 0 0.0409375 0 0 0 0 0.545833 0 0 0 0 0.297457 0 0 0 1 0"
80
+ }), /*#__PURE__*/jsx("feBlend", {
81
+ mode: "normal",
82
+ in2: "shape",
83
+ result: "effect1_innerShadow_89597_146569"
84
+ })]
85
+ }), /*#__PURE__*/jsxs("filter", {
86
+ id: "filter1_f_89597_146569",
87
+ x: "0.973095",
88
+ y: "1.821",
89
+ width: "8.33848",
90
+ height: "8.89756",
91
+ filterUnits: "userSpaceOnUse",
92
+ colorInterpolationFilters: "sRGB",
93
+ children: [/*#__PURE__*/jsx("feFlood", {
94
+ floodOpacity: "0",
95
+ result: "BackgroundImageFix"
96
+ }), /*#__PURE__*/jsx("feBlend", {
97
+ mode: "normal",
98
+ "in": "SourceGraphic",
99
+ in2: "BackgroundImageFix",
100
+ result: "shape"
101
+ }), /*#__PURE__*/jsx("feGaussianBlur", {
102
+ stdDeviation: "0.239527",
103
+ result: "effect1_foregroundBlur_89597_146569"
104
+ })]
105
+ }), /*#__PURE__*/jsxs("filter", {
106
+ id: "filter2_d_89597_146569",
107
+ x: "3.18471",
108
+ y: "3.29664",
109
+ width: "12.473",
110
+ height: "13.5121",
111
+ filterUnits: "userSpaceOnUse",
112
+ colorInterpolationFilters: "sRGB",
113
+ children: [/*#__PURE__*/jsx("feFlood", {
114
+ floodOpacity: "0",
115
+ result: "BackgroundImageFix"
116
+ }), /*#__PURE__*/jsx("feColorMatrix", {
117
+ "in": "SourceAlpha",
118
+ type: "matrix",
119
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
120
+ result: "hardAlpha"
121
+ }), /*#__PURE__*/jsx("feOffset", {
122
+ dx: "0.675842",
123
+ dy: "0.772391"
124
+ }), /*#__PURE__*/jsx("feGaussianBlur", {
125
+ stdDeviation: "1.11031"
126
+ }), /*#__PURE__*/jsx("feColorMatrix", {
127
+ type: "matrix",
128
+ values: "0 0 0 0 0.126389 0 0 0 0 0.541667 0 0 0 0 0.337377 0 0 0 0.3 0"
129
+ }), /*#__PURE__*/jsx("feBlend", {
130
+ mode: "normal",
131
+ in2: "BackgroundImageFix",
132
+ result: "effect1_dropShadow_89597_146569"
133
+ }), /*#__PURE__*/jsx("feBlend", {
134
+ mode: "normal",
135
+ "in": "SourceGraphic",
136
+ in2: "effect1_dropShadow_89597_146569",
137
+ result: "shape"
138
+ })]
139
+ }), /*#__PURE__*/jsxs("linearGradient", {
140
+ id: "paint0_linear_89597_146569",
141
+ x1: "21.5964",
142
+ y1: "16.117",
143
+ x2: "-1.81118",
144
+ y2: "4.46791",
145
+ gradientUnits: "userSpaceOnUse",
146
+ children: [/*#__PURE__*/jsx("stop", {
147
+ offset: "0.10771",
148
+ stopColor: "#30CF66"
149
+ }), /*#__PURE__*/jsx("stop", {
150
+ offset: "0.670861",
151
+ stopColor: "#80F399"
152
+ }), /*#__PURE__*/jsx("stop", {
153
+ offset: "0.876285",
154
+ stopColor: "#93F9BC"
155
+ }), /*#__PURE__*/jsx("stop", {
156
+ offset: "0.953125",
157
+ stopColor: "#A9F19D"
158
+ })]
159
+ }), /*#__PURE__*/jsxs("linearGradient", {
160
+ id: "paint1_linear_89597_146569",
161
+ x1: "15.5081",
162
+ y1: "18.6675",
163
+ x2: "-4.34671",
164
+ y2: "4.13441",
165
+ gradientUnits: "userSpaceOnUse",
166
+ children: [/*#__PURE__*/jsx("stop", {
167
+ stopColor: "#2EAE52"
168
+ }), /*#__PURE__*/jsx("stop", {
169
+ offset: "1",
170
+ stopColor: "#6CE8AB",
171
+ stopOpacity: "0.3"
172
+ })]
173
+ }), /*#__PURE__*/jsxs("linearGradient", {
174
+ id: "paint2_linear_89597_146569",
175
+ x1: "9.75263",
176
+ y1: "1.99064",
177
+ x2: "2.49084",
178
+ y2: "9.77064",
179
+ gradientUnits: "userSpaceOnUse",
180
+ children: [/*#__PURE__*/jsx("stop", {
181
+ stopColor: "white"
182
+ }), /*#__PURE__*/jsx("stop", {
183
+ offset: "0.544957",
184
+ stopColor: "#7AF09B"
185
+ }), /*#__PURE__*/jsx("stop", {
186
+ offset: "1",
187
+ stopColor: "white"
188
+ })]
189
+ })]
190
+ })]
191
+ });
192
+ };
193
+
194
+ export { TrustedBadgeIcon };
195
+ //# sourceMappingURL=TrustedBadgeIcon.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TrustedBadgeIcon.web.js","sources":["../../../../../../src/components/Avatar/TrustedBadgeIcon.web.tsx"],"sourcesContent":["import type { IconComponent } from '~components/Icons';\nimport useIconProps from '~components/Icons/useIconProps';\nimport Svg, { Path } from '~components/Icons/_Svg';\n\nconst TrustedBadgeIcon: IconComponent = (props) => {\n const { width, height } = useIconProps(props);\n return (\n <Svg display=\"block\" width={width} height={height} viewBox=\"0 0 19 20\" fill=\"none\">\n <Path\n d=\"M18.1763 3.12496C14.4216 3.12496 11.5452 2.14992 9.11271 0C6.68058 2.14992 3.80428 3.12496 0.0498704 3.12496C0.0498704 8.72327 -1.22466 16.7433 9.11271 20C19.4508 16.7432 18.1763 8.72327 18.1763 3.12496Z\"\n fill=\"url(#paint0_linear_89597_146569)\"\n />\n <g filter=\"url(#filter0_i_89597_146569)\">\n <Path\n d=\"M16.9345 4.04107C13.6801 4.04107 11.1869 3.19596 9.07861 1.33252C6.97056 3.19596 4.47753 4.04107 1.2234 4.04107C1.2234 8.8934 0.118706 15.8448 9.07861 18.6675C18.0391 15.8447 16.9345 8.8934 16.9345 4.04107Z\"\n fill=\"url(#paint1_linear_89597_146569)\"\n />\n </g>\n <g opacity=\"0.21\" filter=\"url(#filter1_f_89597_146569)\">\n <Path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8.5245 2.30005C8.52447 2.30007 8.52443 2.3001 8.67861 2.48494C8.83278 2.66978 8.83273 2.66982 8.83268 2.66987L8.83254 2.66998L8.83095 2.67126L8.82684 2.67456C8.82335 2.67735 8.81835 2.68132 8.81188 2.68641C8.79895 2.69659 8.78014 2.71123 8.7557 2.72983C8.70683 2.76703 8.63543 2.82008 8.5436 2.8849C8.36002 3.0145 8.0943 3.19147 7.76321 3.38298C7.10245 3.76518 6.1741 4.20952 5.11373 4.44724C4.07693 4.67968 3.24422 4.80779 2.66922 4.87785C2.38171 4.91288 2.15861 4.9334 2.00659 4.94519C2.00136 4.94559 1.99621 4.94599 1.99115 4.94637C1.98673 5.02812 1.98148 5.13199 1.97603 5.2548C1.96151 5.58157 1.94554 6.04208 1.93973 6.57633C1.92809 7.64707 1.95743 9.00508 2.11864 10.1751L1.63775 10.2395C1.4718 9.03519 1.44272 7.65004 1.45445 6.57119C1.46032 6.03065 1.47648 5.56477 1.49118 5.23384C1.49853 5.06835 1.50552 4.93652 1.51068 4.8459C1.51326 4.80058 1.51539 4.76556 1.51688 4.74177C1.51762 4.72988 1.5182 4.72079 1.5186 4.71463L1.51923 4.70512C1.51923 4.70508 1.51924 4.70505 1.76136 4.72097L1.51924 4.70505L1.53378 4.48989L1.75214 4.48178L1.75223 4.48178L1.75254 4.48177L1.75466 4.48168C1.75668 4.48159 1.75989 4.48145 1.76428 4.48125C1.77307 4.48084 1.7866 4.48016 1.80477 4.47912C1.8411 4.47706 1.89597 4.47357 1.96855 4.46794C2.1137 4.45668 2.32965 4.43686 2.60973 4.40273C3.16991 4.33448 3.98651 4.20902 5.00618 3.98042C6.00229 3.75711 6.88327 3.337 7.51772 2.97002C7.83423 2.78694 8.08758 2.61813 8.26117 2.4956C8.34792 2.43436 8.41464 2.38476 8.45923 2.35081C8.48152 2.33385 8.49828 2.3208 8.50924 2.31218C8.51471 2.30787 8.51874 2.30466 8.52129 2.30263L8.52398 2.30047L8.5245 2.30005Z\"\n fill=\"url(#paint2_linear_89597_146569)\"\n />\n </g>\n <g filter=\"url(#filter2_d_89597_146569)\">\n <Path\n d=\"M8.17223 7.68163L7.72705 9.30015L10.2744 7.67253L8.60851 13.8131L10.3002 13.8147L12.7611 4.74487L8.17223 7.68163Z\"\n fill=\"white\"\n />\n <Path\n d=\"M5.42984 11.2342L4.72949 13.8156H8.19707C8.19707 13.8156 9.61539 8.5655 9.61579 8.56396C9.61446 8.5648 5.42984 11.2342 5.42984 11.2342Z\"\n fill=\"white\"\n />\n </g>\n <defs>\n <filter\n id=\"filter0_i_89597_146569\"\n x=\"1.18018\"\n y=\"1.33252\"\n width=\"16.087\"\n height=\"18.0108\"\n filterUnits=\"userSpaceOnUse\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feFlood floodOpacity=\"0\" result=\"BackgroundImageFix\" />\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\" />\n <feColorMatrix\n in=\"SourceAlpha\"\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n result=\"hardAlpha\"\n />\n <feOffset dx=\"0.289647\" dy=\"0.675842\" />\n <feGaussianBlur stdDeviation=\"0.917215\" />\n <feComposite in2=\"hardAlpha\" operator=\"arithmetic\" k2=\"-1\" k3=\"1\" />\n <feColorMatrix\n type=\"matrix\"\n values=\"0 0 0 0 0.0409375 0 0 0 0 0.545833 0 0 0 0 0.297457 0 0 0 1 0\"\n />\n <feBlend mode=\"normal\" in2=\"shape\" result=\"effect1_innerShadow_89597_146569\" />\n </filter>\n <filter\n id=\"filter1_f_89597_146569\"\n x=\"0.973095\"\n y=\"1.821\"\n width=\"8.33848\"\n height=\"8.89756\"\n filterUnits=\"userSpaceOnUse\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feFlood floodOpacity=\"0\" result=\"BackgroundImageFix\" />\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\" />\n <feGaussianBlur stdDeviation=\"0.239527\" result=\"effect1_foregroundBlur_89597_146569\" />\n </filter>\n <filter\n id=\"filter2_d_89597_146569\"\n x=\"3.18471\"\n y=\"3.29664\"\n width=\"12.473\"\n height=\"13.5121\"\n filterUnits=\"userSpaceOnUse\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feFlood floodOpacity=\"0\" result=\"BackgroundImageFix\" />\n <feColorMatrix\n in=\"SourceAlpha\"\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n result=\"hardAlpha\"\n />\n <feOffset dx=\"0.675842\" dy=\"0.772391\" />\n <feGaussianBlur stdDeviation=\"1.11031\" />\n <feColorMatrix\n type=\"matrix\"\n values=\"0 0 0 0 0.126389 0 0 0 0 0.541667 0 0 0 0 0.337377 0 0 0 0.3 0\"\n />\n <feBlend\n mode=\"normal\"\n in2=\"BackgroundImageFix\"\n result=\"effect1_dropShadow_89597_146569\"\n />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"effect1_dropShadow_89597_146569\"\n result=\"shape\"\n />\n </filter>\n <linearGradient\n id=\"paint0_linear_89597_146569\"\n x1=\"21.5964\"\n y1=\"16.117\"\n x2=\"-1.81118\"\n y2=\"4.46791\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0.10771\" stopColor=\"#30CF66\" />\n <stop offset=\"0.670861\" stopColor=\"#80F399\" />\n <stop offset=\"0.876285\" stopColor=\"#93F9BC\" />\n <stop offset=\"0.953125\" stopColor=\"#A9F19D\" />\n </linearGradient>\n <linearGradient\n id=\"paint1_linear_89597_146569\"\n x1=\"15.5081\"\n y1=\"18.6675\"\n x2=\"-4.34671\"\n y2=\"4.13441\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stopColor=\"#2EAE52\" />\n <stop offset=\"1\" stopColor=\"#6CE8AB\" stopOpacity=\"0.3\" />\n </linearGradient>\n <linearGradient\n id=\"paint2_linear_89597_146569\"\n x1=\"9.75263\"\n y1=\"1.99064\"\n x2=\"2.49084\"\n y2=\"9.77064\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stopColor=\"white\" />\n <stop offset=\"0.544957\" stopColor=\"#7AF09B\" />\n <stop offset=\"1\" stopColor=\"white\" />\n </linearGradient>\n </defs>\n </Svg>\n );\n};\n\nexport { TrustedBadgeIcon };\n"],"names":["TrustedBadgeIcon","props","_useIconProps","useIconProps","width","height","_jsxs","Svg","display","viewBox","fill","children","_jsx","Path","d","filter","opacity","fillRule","clipRule","id","x","y","filterUnits","colorInterpolationFilters","floodOpacity","result","mode","in2","type","values","dx","dy","stdDeviation","operator","k2","k3","x1","y1","x2","y2","gradientUnits","offset","stopColor","stopOpacity"],"mappings":";;;;;;;AAIA,IAAMA,gBAA+B,GAAG,SAAlCA,gBAA+BA,CAAIC,KAAK,EAAK;AACjD,EAAA,IAAAC,aAAA,GAA0BC,YAAY,CAACF,KAAK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A,CAAA,MAAA,EAAA;AAAM6B,UAAAA,MAAM,EAAC,UAAU;AAACC,UAAAA,SAAS,EAAC,SAAA;SAAW,CAAC,eAC9C9B,GAAA,CAAA,MAAA,EAAA;AAAM6B,UAAAA,MAAM,EAAC,GAAG;AAACC,UAAAA,SAAS,EAAC,OAAA;AAAO,SAAE,CAAC,CAAA;AAAA,OACvB,CAAC,CAAA;AAAA,KACb,CAAC,CAAA;AAAA,GACJ,CAAC,CAAA;AAEV;;;;"}
@@ -44,6 +44,66 @@ var avatarBorderRadiusTokens = {
44
44
  circle: 'max',
45
45
  square: 'medium'
46
46
  };
47
+ var avatarToBottomAddonSize = {
48
+ xsmall: 'xsmall',
49
+ small: 'xsmall',
50
+ medium: 'small',
51
+ large: 'medium',
52
+ xlarge: 'large'
53
+ };
54
+ var avatarToIndicatorSize = {
55
+ xsmall: 'small',
56
+ small: 'small',
57
+ medium: 'medium',
58
+ large: 'medium',
59
+ xlarge: 'large'
60
+ };
61
+ var avatarTopAddonOffsets = {
62
+ circle: {
63
+ xsmall: {
64
+ right: '0px',
65
+ top: '0px'
66
+ },
67
+ small: {
68
+ right: '1px',
69
+ top: '1px'
70
+ },
71
+ medium: {
72
+ right: '1px',
73
+ top: '2px'
74
+ },
75
+ large: {
76
+ right: '4px',
77
+ top: '2px'
78
+ },
79
+ xlarge: {
80
+ right: '4px',
81
+ top: '2px'
82
+ }
83
+ },
84
+ square: {
85
+ xsmall: {
86
+ right: '-2px',
87
+ top: '-2px'
88
+ },
89
+ small: {
90
+ right: '-2px',
91
+ top: '-2px'
92
+ },
93
+ medium: {
94
+ right: '-2px',
95
+ top: '-2px'
96
+ },
97
+ large: {
98
+ right: '-3px',
99
+ top: '-3px'
100
+ },
101
+ xlarge: {
102
+ right: '-4px',
103
+ top: '-4px'
104
+ }
105
+ }
106
+ };
47
107
 
48
- export { avatarBorderRadiusTokens, avatarColorTokens, avatarIconSizeTokens, avatarSizeTokens, avatarTextSizeMapping };
108
+ export { avatarBorderRadiusTokens, avatarColorTokens, avatarIconSizeTokens, avatarSizeTokens, avatarTextSizeMapping, avatarToBottomAddonSize, avatarToIndicatorSize, avatarTopAddonOffsets };
49
109
  //# sourceMappingURL=avatarTokens.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatarTokens.js","sources":["../../../../../../src/components/Avatar/avatarTokens.ts"],"sourcesContent":["import { size } from '~tokens/global';\n\nconst avatarSizeTokens = {\n xsmall: size[20],\n small: size[28],\n medium: size[36],\n large: size[48],\n xlarge: size[56],\n} as const;\n\nconst avatarIconSizeTokens = {\n xsmall: 'small',\n small: 'medium',\n medium: 'medium',\n large: 'large',\n xlarge: 'xlarge',\n} as const;\n\nconst avatarTextSizeMapping = {\n xsmall: 'xsmall',\n small: 'xsmall',\n medium: 'small',\n large: 'medium',\n xlarge: 'medium',\n} as const;\n\nconst avatarColorTokens = {\n text: {\n primary: 'interactive.text.primary.normal',\n positive: 'interactive.text.positive.normal',\n negative: 'interactive.text.negative.normal',\n notice: 'interactive.text.notice.normal',\n information: 'interactive.text.information.normal',\n neutral: 'interactive.text.neutral.normal',\n },\n background: {\n primary: 'interactive.background.primary.faded',\n positive: 'interactive.background.positive.faded',\n negative: 'interactive.background.negative.faded',\n notice: 'interactive.background.notice.faded',\n information: 'interactive.background.information.faded',\n neutral: 'interactive.background.neutral.faded',\n },\n} as const;\n\nconst avatarBorderRadiusTokens = {\n circle: 'max',\n square: 'medium',\n} as const;\n\nexport {\n avatarSizeTokens,\n avatarIconSizeTokens,\n avatarTextSizeMapping,\n avatarColorTokens,\n avatarBorderRadiusTokens,\n};\n"],"names":["avatarSizeTokens","xsmall","size","small","medium","large","xlarge","avatarIconSizeTokens","avatarTextSizeMapping","avatarColorTokens","text","primary","positive","negative","notice","information","neutral","background","avatarBorderRadiusTokens","circle","square"],"mappings":";;;AAEA,IAAMA,gBAAgB,GAAG;AACvBC,EAAAA,MAAM,EAAEC,IAAI,CAAC,EAAE,CAAC;AAChBC,EAAAA,KAAK,EAAED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"file":"avatarTokens.js","sources":["../../../../../../src/components/Avatar/avatarTokens.ts"],"sourcesContent":["import { size } from '~tokens/global';\n\nconst avatarSizeTokens = {\n xsmall: size[20],\n small: size[28],\n medium: size[36],\n large: size[48],\n xlarge: size[56],\n} as const;\n\nconst avatarIconSizeTokens = {\n xsmall: 'small',\n small: 'medium',\n medium: 'medium',\n large: 'large',\n xlarge: 'xlarge',\n} as const;\n\nconst avatarTextSizeMapping = {\n xsmall: 'xsmall',\n small: 'xsmall',\n medium: 'small',\n large: 'medium',\n xlarge: 'medium',\n} as const;\n\nconst avatarColorTokens = {\n text: {\n primary: 'interactive.text.primary.normal',\n positive: 'interactive.text.positive.normal',\n negative: 'interactive.text.negative.normal',\n notice: 'interactive.text.notice.normal',\n information: 'interactive.text.information.normal',\n neutral: 'interactive.text.neutral.normal',\n },\n background: {\n primary: 'interactive.background.primary.faded',\n positive: 'interactive.background.positive.faded',\n negative: 'interactive.background.negative.faded',\n notice: 'interactive.background.notice.faded',\n information: 'interactive.background.information.faded',\n neutral: 'interactive.background.neutral.faded',\n },\n} as const;\n\nconst avatarBorderRadiusTokens = {\n circle: 'max',\n square: 'medium',\n} as const;\n\nconst avatarToBottomAddonSize = {\n xsmall: 'xsmall',\n small: 'xsmall',\n medium: 'small',\n large: 'medium',\n xlarge: 'large',\n} as const;\n\nconst avatarToIndicatorSize = {\n xsmall: 'small',\n small: 'small',\n medium: 'medium',\n large: 'medium',\n xlarge: 'large',\n} as const;\n\nconst avatarTopAddonOffsets = {\n circle: {\n xsmall: {\n right: '0px',\n top: '0px',\n },\n small: {\n right: '1px',\n top: '1px',\n },\n medium: {\n right: '1px',\n top: '2px',\n },\n large: {\n right: '4px',\n top: '2px',\n },\n xlarge: {\n right: '4px',\n top: '2px',\n },\n },\n square: {\n xsmall: {\n right: '-2px',\n top: '-2px',\n },\n small: {\n right: '-2px',\n top: '-2px',\n },\n medium: {\n right: '-2px',\n top: '-2px',\n },\n large: {\n right: '-3px',\n top: '-3px',\n },\n xlarge: {\n right: '-4px',\n top: '-4px',\n },\n },\n} as const;\n\nexport {\n avatarSizeTokens,\n avatarIconSizeTokens,\n avatarTextSizeMapping,\n avatarColorTokens,\n avatarBorderRadiusTokens,\n avatarToBottomAddonSize,\n avatarToIndicatorSize,\n avatarTopAddonOffsets,\n};\n"],"names":["avatarSizeTokens","xsmall","size","small","medium","large","xlarge","avatarIconSizeTokens","avatarTextSizeMapping","avatarColorTokens","text","primary","positive","negative","notice","information","neutral","background","avatarBorderRadiusTokens","circle","square","avatarToBottomAddonSize","avatarToIndicatorSize","avatarTopAddonOffsets","right","top"],"mappings":";;;AAEA,IAAMA,gBAAgB,GAAG;AACvBC,EAAAA,MAAM,EAAEC,IAAI,CAAC,EAAE,CAAC;AAChBC,EAAAA,KAAK,EAAED,IAAI,CAAC,EAAE,CAAC;AACfE,EAAAA,MAAM,EAAEF,IAAI,CAAC,EAAE,CAAC;AAChBG,EAAAA,KAAK,EAAEH,IAAI,CAAC,EAAE,CAAC;EACfI,MAAM,EAAEJ,IAAI,CAAC,EAAE,CAAA;AACjB,EAAU;AAEV,IAAMK,oBAAoB,GAAG;AAC3BN,EAAAA,MAAM,EAAE,OAAO;AACfE,EAAAA,KAAK,EAAE,QAAQ;AACfC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,MAAM,EAAE,QAAA;AACV,EAAU;AAEV,IAAME,qBAAqB,GAAG;AAC5BP,EAAAA,MAAM,EAAE,QAAQ;AAChBE,EAAAA,KAAK,EAAE,QAAQ;AACfC,EAAAA,MAAM,EAAE,OAAO;AACfC,EAAAA,KAAK,EAAE,QAAQ;AACfC,EAAAA,MAAM,EAAE,QAAA;AACV,EAAU;AAEV,IAAMG,iBAAiB,GAAG;AACxBC,EAAAA,IAAI,EAAE;AACJC,IAAAA,OAAO,EAAE,iCAAiC;AAC1CC,IAAAA,QAAQ,EAAE,kCAAkC;AAC5CC,IAAAA,QAAQ,EAAE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DpB,IAAAA,KAAK,EAAE;AACLmB,MAAAA,KAAK,EAAE,KAAK;AACZC,MAAAA,GAAG,EAAE,KAAA;KACN;AACDnB,IAAAA,MAAM,EAAE;AACNkB,MAAAA,KAAK,EAAE,KAAK;AACZC,MAAAA,GAAG,EAAE,KAAA;AACP,KAAA;GACD;AACDL,EAAAA,MAAM,EAAE;AACNnB,IAAAA,MAAM,EAAE;AACNuB,MAAAA,KAAK,EAAE,MAAM;AACbC,MAAAA,GAAG,EAAE,MAAA;KACN;AACDtB,IAAAA,KAAK,EAAE;AACLqB,MAAAA,KAAK,EAAE,MAAM;AACbC,MAAAA,GAAG,EAAE,MAAA;KACN;AACDrB,IAAAA,MAAM,EAAE;AACNoB,MAAAA,KAAK,EAAE,MAAM;AACbC,MAAAA,GAAG,EAAE,MAAA;KACN;AACDpB,IAAAA,KAAK,EAAE;AACLmB,MAAAA,KAAK,EAAE,MAAM;AACbC,MAAAA,GAAG,EAAE,MAAA;KACN;AACDnB,IAAAA,MAAM,EAAE;AACNkB,MAAAA,KAAK,EAAE,MAAM;AACbC,MAAAA,GAAG,EAAE,MAAA;AACP,KAAA;AACF,GAAA;AACF;;;;"}
@@ -1,3 +1,4 @@
1
1
  export { Avatar } from './Avatar.web.js';
2
2
  export { AvatarGroup } from './AvatarGroup.web.js';
3
+ export { TrustedBadgeIcon } from './TrustedBadgeIcon.web.js';
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -11,6 +11,7 @@ import '../../utils/index.js';
11
11
  import '../../utils/metaAttribute/index.js';
12
12
  import '../Box/styledProps/index.js';
13
13
  import '../../utils/makeAccessible/index.js';
14
+ import '../../utils/assignWithoutSideEffects/index.js';
14
15
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
15
16
  import useTheme from '../BladeProvider/useTheme.js';
16
17
  import { getStringFromReactText } from '../../utils/getStringChildren/getStringChildren.js';
@@ -23,11 +24,12 @@ import { getStyledProps } from '../Box/styledProps/getStyledProps.js';
23
24
  import Svg from '../Icons/_Svg/Svg/Svg.web.js';
24
25
  import Circle from '../Icons/_Svg/Circle/Circle.web.js';
25
26
  import { Text } from '../Typography/Text/Text.js';
27
+ import { assignWithoutSideEffects } from '../../utils/assignWithoutSideEffects/assignWithoutSideEffects.js';
26
28
 
27
29
  var _excluded = ["accessibilityLabel", "children", "size", "color", "emphasis", "testID"];
28
30
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
29
31
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30
- var Indicator = function Indicator(_ref) {
32
+ var _Indicator = function _Indicator(_ref) {
31
33
  var accessibilityLabel = _ref.accessibilityLabel,
32
34
  children = _ref.children,
33
35
  _ref$size = _ref.size,
@@ -86,7 +88,7 @@ var Indicator = function Indicator(_ref) {
86
88
  fill: fillColorInner
87
89
  })
88
90
  }), /*#__PURE__*/jsx(BaseBox, {
89
- marginLeft: "spacing.2",
91
+ marginLeft: childrenString ? 'spacing.2' : 'spacing.0',
90
92
  children: /*#__PURE__*/jsx(Text, {
91
93
  weight: "medium",
92
94
  color: "surface.text.gray.subtle",
@@ -98,6 +100,9 @@ var Indicator = function Indicator(_ref) {
98
100
  })
99
101
  }));
100
102
  };
103
+ var Indicator = /*#__PURE__*/assignWithoutSideEffects(_Indicator, {
104
+ componentId: 'Indicator'
105
+ });
101
106
 
102
107
  export { Indicator };
103
108
  //# sourceMappingURL=Indicator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Indicator.js","sources":["../../../../../../src/components/Indicator/Indicator.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport { indicatorDotSizes, textSizeMapping } from './indicatorTokens';\nimport { useTheme } from '~components/BladeProvider';\nimport BaseBox from '~components/Box/BaseBox';\nimport Svg from '~components/Icons/_Svg';\nimport Circle from '~components/Icons/_Svg/Circle';\nimport { Text } from '~components/Typography';\nimport { getStringFromReactText } from '~src/utils/getStringChildren';\nimport type { StringChildrenType, TestID } from '~utils/types';\nimport type { FeedbackColors } from '~tokens/theme/theme';\nimport { isReactNative } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport { makeAccessible } from '~utils/makeAccessible';\n\ntype IndicatorCommonProps = {\n /**\n * Sets the color tone\n *\n * @default neutral\n */\n color?: FeedbackColors | 'primary';\n\n /**\n * Sets the emphasis of the indicator\n *\n * If set to intense it will show a background circle\n *\n * @default subtle\n */\n emphasis?: 'subtle' | 'intense';\n\n /**\n * Size of the indicator\n *\n * @default medium\n */\n size?: 'small' | 'medium' | 'large';\n} & TestID &\n StyledPropsBlade;\n\ntype IndicatorWithoutA11yLabel = {\n /**\n * A text label to show alongside the indicator dot\n */\n children: StringChildrenType;\n\n /**\n * a11y label for screen readers\n */\n accessibilityLabel?: string;\n};\n\ntype IndicatorWithA11yLabel = {\n /**\n * a11y label for screen readers\n */\n accessibilityLabel: string;\n\n /**\n * A text label to show alongside the indicator dot\n */\n children?: StringChildrenType;\n};\n\ntype IndicatorProps = IndicatorCommonProps & (IndicatorWithA11yLabel | IndicatorWithoutA11yLabel);\n\nconst Indicator = ({\n accessibilityLabel,\n children,\n size = 'medium',\n color = 'neutral',\n emphasis = 'subtle',\n testID,\n ...styledProps\n}: IndicatorProps): ReactElement => {\n const { theme } = useTheme();\n const childrenString = getStringFromReactText(children);\n const isIntense = emphasis === 'intense';\n const isPrimary = color === 'primary';\n\n const fillColorOuter = isPrimary\n ? theme.colors.surface.background.primary.subtle\n : theme.colors.feedback.background[color].subtle;\n const fillColorInner = isPrimary\n ? theme.colors.surface.icon.primary.normal\n : theme.colors.feedback.icon[color].intense;\n\n const isWeb = !isReactNative();\n const a11yProps = makeAccessible({\n label: accessibilityLabel ?? childrenString,\n ...(isWeb && { role: 'status' }),\n });\n\n const svgSize = isIntense\n ? indicatorDotSizes[emphasis][size].outer\n : indicatorDotSizes[emphasis][size].inner;\n\n return (\n <BaseBox\n display={(isWeb ? 'inline-flex' : 'flex') as never}\n {...a11yProps}\n {...metaAttribute({ name: MetaConstants.Indicator, testID })}\n {...getStyledProps(styledProps)}\n >\n <BaseBox display=\"flex\" flexDirection=\"row\" alignItems=\"center\">\n <Svg width={String(svgSize)} height={String(svgSize)} viewBox=\"0 0 10 10\" fill=\"none\">\n {isIntense ? (\n <>\n <Circle cx=\"5\" cy=\"5\" r=\"5\" fill={fillColorOuter} />\n <Circle cx=\"5\" cy=\"5\" r=\"2.5\" fill={fillColorInner} />\n </>\n ) : (\n <Circle cx=\"5\" cy=\"5\" r=\"5\" fill={fillColorInner} />\n )}\n </Svg>\n <BaseBox marginLeft=\"spacing.2\">\n <Text\n weight=\"medium\"\n color=\"surface.text.gray.subtle\"\n textAlign=\"left\"\n size={textSizeMapping[size]}\n >\n {children}\n </Text>\n </BaseBox>\n </BaseBox>\n </BaseBox>\n );\n};\n\nexport type { IndicatorProps };\nexport { Indicator };\n"],"names":["Indicator","_ref","accessibilityLabel","children","_ref$size","size","_ref$color","color","_ref$emphasis","emphasis","testID","styledProps","_objectWithoutProperties","_excluded","_useTheme","useTheme","theme","childrenString","getStringFromReactText","isIntense","isPrimary","fillColorOuter","colors","surface","background","primary","subtle","feedback","fillColorInner","icon","normal","intense","isWeb","isReactNative","a11yProps","makeAccessible","_objectSpread","label","role","svgSize","indicatorDotSizes","outer","inner","_jsx","BaseBox","display","metaAttribute","name","MetaConstants","getStyledProps","_jsxs","flexDirection","alignItems","Svg","width","String","height","viewBox","fill","_Fragment","Circle","cx","cy","r","marginLeft","Text","weight","textAlign","textSizeMapping"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAQqB;AAAA,EAAA,IAPlCC,kBAAkB,GAAAD,IAAA,CAAlBC,kBAAkB;IAClBC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,SAAA,GAAAH,IAAA,CACRI,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,SAAA;IAAAE,UAAA,GAAAL,IAAA,CACfM,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,SAAS,GAAAA,UAAA;IAAAE,aAAA,GAAAP,IAAA,CACjBQ,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,aAAA;IACnBE,MAAM,GAAAT,IAAA,CAANS,MAAM;AACHC,IAAAA,WAAW,GAAAC,wBAAA,CAAAX,IAAA,EAAAY,SAAA,CAAA,CAAA;AAEd,EAAA,IAAAC,SAAA,GAAkBC,QAAQ,EAAE;IAApBC,KAAK,GAAAF,SAAA,CAALE,KAAK,CAAA;AACb,EAAA,IAAMC,cAAc,GAAGC,sBAAsB,CAACf,QAAQ,CAAC,CAAA;AACvD,EAAA,IAAMgB,SAAS,GAAGV,QAAQ,KAAK,SAAS,CAAA;AACxC,EAAA,IAAMW,SAAS,GAAGb,KAAK,KAAK,SAAS,CAAA;EAErC,IAAMc,cAAc,GAAGD,SAAS,GAC5BJ,KAAK,CAACM,MAAM,CAACC,OAAO,CAACC,UAAU,CAACC,OAAO,C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AA,QAAA,EAE3BA,QAAAA;SACG,CAAA;AAAC,OACA,CAAC,CAAA;KACH,CAAA;AAAC,GAAA,CACH,CAAC,CAAA;AAEd;;;;"}
1
+ {"version":3,"file":"Indicator.js","sources":["../../../../../../src/components/Indicator/Indicator.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport { indicatorDotSizes, textSizeMapping } from './indicatorTokens';\nimport { useTheme } from '~components/BladeProvider';\nimport BaseBox from '~components/Box/BaseBox';\nimport Svg from '~components/Icons/_Svg';\nimport Circle from '~components/Icons/_Svg/Circle';\nimport { Text } from '~components/Typography';\nimport { getStringFromReactText } from '~src/utils/getStringChildren';\nimport type { StringChildrenType, TestID } from '~utils/types';\nimport type { FeedbackColors } from '~tokens/theme/theme';\nimport { isReactNative } from '~utils';\nimport { metaAttribute, MetaConstants } from '~utils/metaAttribute';\nimport { getStyledProps } from '~components/Box/styledProps';\nimport type { StyledPropsBlade } from '~components/Box/styledProps';\nimport { makeAccessible } from '~utils/makeAccessible';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\n\ntype IndicatorProps = {\n /**\n * Sets the color tone\n *\n * @default neutral\n */\n color?: FeedbackColors | 'primary';\n\n /**\n * Sets the emphasis of the indicator\n *\n * If set to intense it will show a background circle\n *\n * @default subtle\n */\n emphasis?: 'subtle' | 'intense';\n\n /**\n * Size of the indicator\n *\n * @default medium\n */\n size?: 'small' | 'medium' | 'large';\n /**\n * A text label to show alongside the indicator dot\n */\n children?: StringChildrenType;\n /**\n * a11y label for screen readers\n */\n accessibilityLabel?: string;\n} & TestID &\n StyledPropsBlade;\n\nconst _Indicator = ({\n accessibilityLabel,\n children,\n size = 'medium',\n color = 'neutral',\n emphasis = 'subtle',\n testID,\n ...styledProps\n}: IndicatorProps): ReactElement => {\n const { theme } = useTheme();\n const childrenString = getStringFromReactText(children);\n const isIntense = emphasis === 'intense';\n const isPrimary = color === 'primary';\n\n const fillColorOuter = isPrimary\n ? theme.colors.surface.background.primary.subtle\n : theme.colors.feedback.background[color].subtle;\n const fillColorInner = isPrimary\n ? theme.colors.surface.icon.primary.normal\n : theme.colors.feedback.icon[color].intense;\n\n const isWeb = !isReactNative();\n const a11yProps = makeAccessible({\n label: accessibilityLabel ?? childrenString,\n ...(isWeb && { role: 'status' }),\n });\n\n const svgSize = isIntense\n ? indicatorDotSizes[emphasis][size].outer\n : indicatorDotSizes[emphasis][size].inner;\n\n return (\n <BaseBox\n display={(isWeb ? 'inline-flex' : 'flex') as never}\n {...a11yProps}\n {...metaAttribute({ name: MetaConstants.Indicator, testID })}\n {...getStyledProps(styledProps)}\n >\n <BaseBox display=\"flex\" flexDirection=\"row\" alignItems=\"center\">\n <Svg width={String(svgSize)} height={String(svgSize)} viewBox=\"0 0 10 10\" fill=\"none\">\n {isIntense ? (\n <>\n <Circle cx=\"5\" cy=\"5\" r=\"5\" fill={fillColorOuter} />\n <Circle cx=\"5\" cy=\"5\" r=\"2.5\" fill={fillColorInner} />\n </>\n ) : (\n <Circle cx=\"5\" cy=\"5\" r=\"5\" fill={fillColorInner} />\n )}\n </Svg>\n <BaseBox marginLeft={childrenString ? 'spacing.2' : 'spacing.0'}>\n <Text\n weight=\"medium\"\n color=\"surface.text.gray.subtle\"\n textAlign=\"left\"\n size={textSizeMapping[size]}\n >\n {children}\n </Text>\n </BaseBox>\n </BaseBox>\n </BaseBox>\n );\n};\n\nconst Indicator = assignWithoutSideEffects(_Indicator, {\n componentId: 'Indicator',\n});\n\nexport type { IndicatorProps };\nexport { Indicator };\n"],"names":["_Indicator","_ref","accessibilityLabel","children","_ref$size","size","_ref$color","color","_ref$emphasis","emphasis","testID","styledProps","_objectWithoutProperties","_excluded","_useTheme","useTheme","theme","childrenString","getStringFromReactText","isIntense","isPrimary","fillColorOuter","colors","surface","background","primary","subtle","feedback","fillColorInner","icon","normal","intense","isWeb","isReactNative","a11yProps","makeAccessible","_objectSpread","label","role","svgSize","indicatorDotSizes","outer","inner","_jsx","BaseBox","display","metaAttribute","name","MetaConstants","Indicator","getStyledProps","_jsxs","flexDirection","alignItems","Svg","width","String","height","viewBox","fill","_Fragment","Circle","cx","cy","r","marginLeft","Text","weight","textAlign","textSizeMapping","assignWithoutSideEffects","componentId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA,EAQoB;AAAA,EAAA,IAPlCC,kBAAkB,GAAAD,IAAA,CAAlBC,kBAAkB;IAClBC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,SAAA,GAAAH,IAAA,CACRI,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,SAAA;IAAAE,UAAA,GAAAL,IAAA,CACfM,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,SAAS,GAAAA,UAAA;IAAAE,aAAA,GAAAP,IAAA,CACjBQ,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,aAAA;IACnBE,MAAM,GAAAT,IAAA,CAANS,MAAM;AACHC,IAAAA,WAAW,GAAAC,wBAAA,CAAAX,IAAA,EAAAY,SAAA,CAAA,CAAA;AAEd,EAAA,IAAAC,SAAA,GAAkBC,QAAQ,EAAE;IAApBC,KAAK,GAAAF,SAAA,CAALE,KAAK,CAAA;AACb,EAAA,IAAMC,cAAc,GAAGC,sBAAsB,CAACf,QAAQ,CAAC,CAAA;AACvD,EAAA,IAAMgB,SAAS,GAAGV,QAAQ,KAAK,SAAS,CAAA;AACxC,EAAA,IAAMW,SAAS,GAAGb,KAAK,KAAK,SAAS,CAAA;EAErC,IAAMc,cAAc,GAAGD,SAAS,GAC5BJ,KAAK,CAACM,MAAM,CAACC,OAAO,CAACC,UAAU,CAACC,OAAO,CAACC,MAAM,GAC9CV,KAAK,CAACM,MAAM,CAACK,QAAQ,CAACH,UAA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;AAAC,OACA,CAAC,CAAA;KACH,CAAA;AAAC,GAAA,CACH,CAAC,CAAA;AAEd,CAAC,CAAA;AAED,IAAM8C,SAAS,gBAAGqB,wBAAwB,CAACtE,UAAU,EAAE;AACrDuE,EAAAA,WAAW,EAAE,WAAA;AACf,CAAC;;;;"}
@@ -36,7 +36,6 @@ var StepItemIndicator = function StepItemIndicator(_ref2) {
36
36
  margin: makeSize(spacingTokens.markerMargin),
37
37
  children: /*#__PURE__*/jsx(Indicator, {
38
38
  position: "relative",
39
- marginLeft: "spacing.2",
40
39
  color: color,
41
40
  size: size,
42
41
  accessibilityLabel: "".concat(color, " indicator")
@@ -1 +1 @@
1
- {"version":3,"file":"StepItemMarker.js","sources":["../../../../../../src/components/StepGroup/StepItemMarker.tsx"],"sourcesContent":["import { useStepGroup } from './StepGroupContext';\nimport { getMarkerLineSpacings, iconSizeTokens } from './tokens';\nimport type { BaseBoxProps } from '~components/Box/BaseBox';\nimport BaseBox from '~components/Box/BaseBox';\nimport type { IconComponent } from '~components/Icons';\nimport type { IndicatorProps } from '~components/Indicator';\nimport { Indicator } from '~components/Indicator';\nimport { makeSize } from '~utils';\n\ntype MarkerBackgroundCircleProps = {\n color: IndicatorProps['color'];\n size: BaseBoxProps['width'];\n margin: BaseBoxProps['margin'];\n children: BaseBoxProps['children'];\n};\n\nconst MarkerBackgroundCircle = ({\n color,\n size,\n margin,\n children,\n}: MarkerBackgroundCircleProps): React.ReactElement => {\n return (\n <BaseBox\n backgroundColor={\n color === 'primary'\n ? 'surface.background.primary.subtle'\n : `feedback.background.${color}.subtle`\n }\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n height={size}\n width={size}\n borderRadius=\"round\"\n margin={margin}\n >\n {children}\n </BaseBox>\n );\n};\n\nconst StepItemIndicator = ({ color }: { color: IndicatorProps['color'] }): React.ReactElement => {\n const { size } = useStepGroup();\n const spacingTokens = getMarkerLineSpacings(size);\n\n return (\n <MarkerBackgroundCircle\n color={color}\n size={makeSize(spacingTokens.markerBackgroundSize)}\n margin={makeSize(spacingTokens.markerMargin)}\n >\n <Indicator\n position=\"relative\"\n marginLeft=\"spacing.2\"\n color={color}\n size={size}\n accessibilityLabel={`${color} indicator`}\n />\n </MarkerBackgroundCircle>\n );\n};\n\ntype StepItemIconProps = {\n icon: IconComponent;\n color: IndicatorProps['color'];\n};\n\nconst StepItemIcon = ({ icon: Icon, color = 'neutral' }: StepItemIconProps): React.ReactElement => {\n const { size } = useStepGroup();\n const spacingTokens = getMarkerLineSpacings(size);\n\n return (\n <MarkerBackgroundCircle\n color={color}\n size={makeSize(spacingTokens.markerBackgroundSize)}\n margin={makeSize(spacingTokens.markerMargin)}\n >\n <Icon\n size={iconSizeTokens[size]}\n color={\n color === 'primary' ? 'surface.icon.primary.normal' : `feedback.icon.${color}.intense`\n }\n />\n </MarkerBackgroundCircle>\n );\n};\n\nexport { StepItemIndicator, StepItemIcon };\n"],"names":["MarkerBackgroundCircle","_ref","color","size","margin","children","_jsx","BaseBox","backgroundColor","concat","display","alignItems","justifyContent","height","width","borderRadius","StepItemIndicator","_ref2","_useStepGroup","useStepGroup","spacingTokens","getMarkerLineSpacings","makeSize","markerBackgroundSize","markerMargin","Indicator","position","marginLeft","accessibilityLabel","StepItemIcon","_ref3","Icon","icon","_ref3$color","_useStepGroup2","iconSizeTokens"],"mappings":";;;;;;;;;;AAgBA,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAAC,IAAA,EAK2B;AAAA,EAAA,IAJrDC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,MAAM,GAAAH,IAAA,CAANG,MAAM;IACNC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ,CAAA;EAER,oBACEC,GAAA,CAACC,OAAO,EAAA;IACNC,eAAe,EACbN,KAAK,KAAK,SAAS,GACf,mCAAmC,GAAAO,sBAAAA,CAAAA,MAAA,CACZP,KAAK,EACjC,SAAA,CA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,GAAAH,KAAA,CAAQ5B,KAAK;AAALA,IAAAA,KAAK,GAAA+B,WAAA,KAAG,KAAA,CAAA,GAAA,SAAS,GAAAA,WAAA,CAAA;AACnD,EAAA,IAAAC,cAAA,GAAiBf,YAAY,EAAE;IAAvBhB,IAAI,GAAA+B,cAAA,CAAJ/B,IAAI,CAAA;AACZ,EAAA,IAAMiB,aAAa,GAAGC,qBAAqB,CAAClB,IAAI,CAAC,CAAA;EAEjD,oBACEG,GAAA,CAACN,sBAAsB,EAAA;AACrBE,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,IAAI,EAAEmB,QAAQ,CAACF,aAAa,CAACG,oBAAoB,CAAE;AACnDnB,IAAAA,MAAM,EAAEkB,QAAQ,CAACF,aAAa,CAACI,YAAY,CAAE;IAAAnB,QAAA,eAE7CC,GAAA,CAACyB,IAAI,EAAA;AACH5B,MAAAA,IAAI,EAAEgC,cAAc,CAAChC,IAAI,CAAE;MAC3BD,KAAK,EACHA,KAAK,KAAK,SAAS,GAAG,6BAA6B,GAAA,gBAAA,CAAAO,MAAA,CAAoBP,KAAK,EAAA,UAAA,CAAA;KAE/E,CAAA;AAAC,GACoB,CAAC,CAAA;AAE7B;;;;"}
1
+ {"version":3,"file":"StepItemMarker.js","sources":["../../../../../../src/components/StepGroup/StepItemMarker.tsx"],"sourcesContent":["import { useStepGroup } from './StepGroupContext';\nimport { getMarkerLineSpacings, iconSizeTokens } from './tokens';\nimport type { BaseBoxProps } from '~components/Box/BaseBox';\nimport BaseBox from '~components/Box/BaseBox';\nimport type { IconComponent } from '~components/Icons';\nimport type { IndicatorProps } from '~components/Indicator';\nimport { Indicator } from '~components/Indicator';\nimport { makeSize } from '~utils';\n\ntype MarkerBackgroundCircleProps = {\n color: IndicatorProps['color'];\n size: BaseBoxProps['width'];\n margin: BaseBoxProps['margin'];\n children: BaseBoxProps['children'];\n};\n\nconst MarkerBackgroundCircle = ({\n color,\n size,\n margin,\n children,\n}: MarkerBackgroundCircleProps): React.ReactElement => {\n return (\n <BaseBox\n backgroundColor={\n color === 'primary'\n ? 'surface.background.primary.subtle'\n : `feedback.background.${color}.subtle`\n }\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n height={size}\n width={size}\n borderRadius=\"round\"\n margin={margin}\n >\n {children}\n </BaseBox>\n );\n};\n\nconst StepItemIndicator = ({ color }: { color: IndicatorProps['color'] }): React.ReactElement => {\n const { size } = useStepGroup();\n const spacingTokens = getMarkerLineSpacings(size);\n\n return (\n <MarkerBackgroundCircle\n color={color}\n size={makeSize(spacingTokens.markerBackgroundSize)}\n margin={makeSize(spacingTokens.markerMargin)}\n >\n <Indicator\n position=\"relative\"\n color={color}\n size={size}\n accessibilityLabel={`${color} indicator`}\n />\n </MarkerBackgroundCircle>\n );\n};\n\ntype StepItemIconProps = {\n icon: IconComponent;\n color: IndicatorProps['color'];\n};\n\nconst StepItemIcon = ({ icon: Icon, color = 'neutral' }: StepItemIconProps): React.ReactElement => {\n const { size } = useStepGroup();\n const spacingTokens = getMarkerLineSpacings(size);\n\n return (\n <MarkerBackgroundCircle\n color={color}\n size={makeSize(spacingTokens.markerBackgroundSize)}\n margin={makeSize(spacingTokens.markerMargin)}\n >\n <Icon\n size={iconSizeTokens[size]}\n color={\n color === 'primary' ? 'surface.icon.primary.normal' : `feedback.icon.${color}.intense`\n }\n />\n </MarkerBackgroundCircle>\n );\n};\n\nexport { StepItemIndicator, StepItemIcon };\n"],"names":["MarkerBackgroundCircle","_ref","color","size","margin","children","_jsx","BaseBox","backgroundColor","concat","display","alignItems","justifyContent","height","width","borderRadius","StepItemIndicator","_ref2","_useStepGroup","useStepGroup","spacingTokens","getMarkerLineSpacings","makeSize","markerBackgroundSize","markerMargin","Indicator","position","accessibilityLabel","StepItemIcon","_ref3","Icon","icon","_ref3$color","_useStepGroup2","iconSizeTokens"],"mappings":";;;;;;;;;;AAgBA,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAAC,IAAA,EAK2B;AA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ACbC,MAAAA,IAAI,EAAEA,IAAK;MACXwB,kBAAkB,EAAA,EAAA,CAAAlB,MAAA,CAAKP,KAAK,EAAA,YAAA,CAAA;KAC7B,CAAA;AAAC,GACoB,CAAC,CAAA;AAE7B,EAAC;AAOD,IAAM0B,YAAY,GAAG,SAAfA,YAAYA,CAAAC,KAAA,EAAiF;AAAA,EAAA,IAArEC,IAAI,GAAAD,KAAA,CAAVE,IAAI;IAAAC,WAAA,GAAAH,KAAA,CAAQ3B,KAAK;AAALA,IAAAA,KAAK,GAAA8B,WAAA,KAAG,KAAA,CAAA,GAAA,SAAS,GAAAA,WAAA,CAAA;AACnD,EAAA,IAAAC,cAAA,GAAiBd,YAAY,EAAE;IAAvBhB,IAAI,GAAA8B,cAAA,CAAJ9B,IAAI,CAAA;AACZ,EAAA,IAAMiB,aAAa,GAAGC,qBAAqB,CAAClB,IAAI,CAAC,CAAA;EAEjD,oBACEG,GAAA,CAACN,sBAAsB,EAAA;AACrBE,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,IAAI,EAAEmB,QAAQ,CAACF,aAAa,CAACG,oBAAoB,CAAE;AACnDnB,IAAAA,MAAM,EAAEkB,QAAQ,CAACF,aAAa,CAACI,YAAY,CAAE;IAAAnB,QAAA,eAE7CC,GAAA,CAACwB,IAAI,EAAA;AACH3B,MAAAA,IAAI,EAAE+B,cAAc,CAAC/B,IAAI,CAAE;MAC3BD,KAAK,EACHA,KAAK,KAAK,SAAS,GAAG,6BAA6B,GAAA,gBAAA,CAAAO,MAAA,CAAoBP,KAAK,EAAA,UAAA,CAAA;KAE/E,CAAA;AAAC,GACoB,CAAC,CAAA;AAE7B;;;;"}
@@ -66,6 +66,7 @@ export { Alert } from './Alert/Alert.js';
66
66
  export { Amount } from './Amount/Amount.js';
67
67
  export { Avatar } from './Avatar/Avatar.web.js';
68
68
  export { AvatarGroup } from './Avatar/AvatarGroup.web.js';
69
+ export { TrustedBadgeIcon } from './Avatar/TrustedBadgeIcon.web.js';
69
70
  export { Badge } from './Badge/Badge.js';
70
71
  export { BladeProvider } from './BladeProvider/BladeProvider.web.js';
71
72
  export { default as useTheme } from './BladeProvider/useTheme.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -4,20 +4,25 @@ import React__default from 'react';
4
4
  import { StyledAvatar } from './StyledAvatar.js';
5
5
  import { useAvatarGroupContext } from './AvatarGroupContext.js';
6
6
  import { AvatarButton } from './AvatarButton.js';
7
+ import { avatarTopAddonOffsets, avatarToIndicatorSize, avatarToBottomAddonSize } from './avatarTokens.js';
7
8
  import '../Box/styledProps/index.js';
8
9
  import '../../utils/metaAttribute/index.js';
9
10
  import '../../utils/assignWithoutSideEffects/index.js';
10
11
  import '../../utils/logger/index.js';
11
12
  import '../Icons/index.js';
12
- import { jsx } from 'react/jsx-runtime';
13
+ import '../Box/BaseBox/index.js';
14
+ import '../../utils/isValidAllowedChildren/index.js';
15
+ import { jsx, jsxs } from 'react/jsx-runtime';
13
16
  import { throwBladeError } from '../../utils/logger/logger.js';
17
+ import { getComponentId } from '../../utils/isValidAllowedChildren/isValidAllowedChildren.js';
14
18
  import UserIcon from '../Icons/UserIcon/UserIcon.js';
15
19
  import { metaAttribute } from '../../utils/metaAttribute/metaAttribute.web.js';
16
20
  import { MetaConstants } from '../../utils/metaAttribute/metaConstants.js';
17
21
  import { getStyledProps } from '../Box/styledProps/getStyledProps.js';
22
+ import { BaseBox } from '../Box/BaseBox/BaseBox.web.js';
18
23
  import { assignWithoutSideEffects } from '../../utils/assignWithoutSideEffects/assignWithoutSideEffects.js';
19
24
 
20
- var _excluded = ["name", "color", "size", "variant", "icon", "href", "target", "rel", "src", "alt", "srcSet", "crossOrigin", "referrerPolicy", "testID", "onBlur", "onFocus", "onClick", "onMouseLeave", "onMouseMove", "onMouseDown", "onPointerDown", "onPointerEnter", "onTouchStart", "onTouchEnd"];
25
+ var _excluded = ["name", "color", "size", "variant", "icon", "href", "target", "rel", "isSelected", "bottomAddon", "topAddon", "src", "alt", "srcSet", "crossOrigin", "referrerPolicy", "testID", "onBlur", "onFocus", "onClick", "onMouseLeave", "onMouseMove", "onMouseDown", "onPointerDown", "onPointerEnter", "onTouchStart", "onTouchEnd"];
21
26
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
27
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23
28
  var getInitials = function getInitials(name) {
@@ -41,6 +46,9 @@ var _Avatar = function _Avatar(_ref, ref) {
41
46
  href = _ref.href,
42
47
  target = _ref.target,
43
48
  rel = _ref.rel,
49
+ isSelected = _ref.isSelected,
50
+ BottomAddon = _ref.bottomAddon,
51
+ topAddon = _ref.topAddon,
44
52
  src = _ref.src,
45
53
  alt = _ref.alt,
46
54
  srcSet = _ref.srcSet,
@@ -65,9 +73,16 @@ var _Avatar = function _Avatar(_ref, ref) {
65
73
  message: '"alt" or "name" prop is required when the "src" prop is provided.'
66
74
  });
67
75
  }
76
+ if (topAddon && getComponentId(topAddon) !== 'Indicator') {
77
+ throwBladeError({
78
+ moduleName: 'Avatar',
79
+ message: 'TopAddon only accepts `Indicator` component.'
80
+ });
81
+ }
68
82
  }
69
83
  var groupProps = useAvatarGroupContext();
70
84
  var avatarSize = (_groupProps$size = groupProps === null || groupProps === void 0 ? void 0 : groupProps.size) !== null && _groupProps$size !== void 0 ? _groupProps$size : size;
85
+ var isInteractive = Boolean(onClick || href);
71
86
  var commonButtonProps = {
72
87
  variant: variant,
73
88
  color: color,
@@ -77,6 +92,7 @@ var _Avatar = function _Avatar(_ref, ref) {
77
92
  rel: rel,
78
93
  onBlur: onBlur,
79
94
  onFocus: onFocus,
95
+ isSelected: isSelected,
80
96
  onClick: onClick,
81
97
  onMouseLeave: onMouseLeave,
82
98
  onMouseMove: onMouseMove,
@@ -110,6 +126,7 @@ var _Avatar = function _Avatar(_ref, ref) {
110
126
  icon: icon !== null && icon !== void 0 ? icon : UserIcon
111
127
  }));
112
128
  };
129
+ var isSquare = variant === 'square';
113
130
  return /*#__PURE__*/jsx(StyledAvatar, _objectSpread(_objectSpread(_objectSpread({}, metaAttribute({
114
131
  name: MetaConstants.Avatar,
115
132
  testID: testID
@@ -117,7 +134,29 @@ var _Avatar = function _Avatar(_ref, ref) {
117
134
  backgroundColor: "surface.background.gray.intense",
118
135
  variant: variant,
119
136
  size: avatarSize,
120
- children: getChildrenToRender()
137
+ isInteractive: isInteractive,
138
+ children: /*#__PURE__*/jsxs(BaseBox, {
139
+ width: "100%",
140
+ height: "100%",
141
+ position: "relative",
142
+ children: [topAddon ? /*#__PURE__*/jsx(BaseBox, {
143
+ position: "absolute",
144
+ top: avatarTopAddonOffsets[variant][size].top,
145
+ right: avatarTopAddonOffsets[variant][size].right,
146
+ children: /*#__PURE__*/React__default.cloneElement(topAddon, {
147
+ size: avatarToIndicatorSize[size],
148
+ display: 'block'
149
+ })
150
+ }) : null, getChildrenToRender(), BottomAddon ? /*#__PURE__*/jsx(BaseBox, {
151
+ position: "absolute",
152
+ bottom: isSquare ? '-10%' : '0%',
153
+ right: isSquare ? '-10%' : '0%',
154
+ children: /*#__PURE__*/jsx(BottomAddon, {
155
+ display: "block",
156
+ size: avatarToBottomAddonSize[size]
157
+ })
158
+ }) : null]
159
+ })
121
160
  }));
122
161
  };
123
162