armtek-uikit-react 1.0.274 → 1.0.275

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.
@@ -23,10 +23,10 @@ const Avatar = React.forwardRef((props, ref) => {
23
23
  let displayIcon = icon;
24
24
  if (!props.icon && !props.name && !photo) displayIcon = "person";
25
25
  let content = photo ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: photo, className: "arm-avatar__img", alt: props.name, title: props.name }) : props.name ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "arm-avatar__name", children: getLetters(props.name) }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx("arm-avatar__icon", "material_icon_solid"), children: displayIcon });
26
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, ...divProps, className: clsx("arm-avatar", className, "arm-avatar_" + variant, {
26
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-testid": "avatar", ...divProps, className: clsx("arm-avatar", className, "arm-avatar_" + variant, {
27
27
  ["arm-avatar__photo"]: !!photo,
28
28
  ["arm-avatar__icon"]: !!displayIcon
29
- }, ["arm-avatar_" + size]), "data-testid": "avatar", children: [
29
+ }, ["arm-avatar_" + size]), children: [
30
30
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "arm-avatar__inner", children: href ? /* @__PURE__ */ jsxRuntime.jsx("a", { href, ...linkProps, className: "arm-avatar__text", children: content }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "arm-avatar__text", children: content }) }),
31
31
  status && /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx("arm-avatar__status", ["arm-avatar__status_" + status]) })
32
32
  ] }) });
@@ -21,10 +21,10 @@ const Avatar = forwardRef((props, ref) => {
21
21
  let displayIcon = icon;
22
22
  if (!props.icon && !props.name && !photo) displayIcon = "person";
23
23
  let content = photo ? /* @__PURE__ */ jsx("img", { src: photo, className: "arm-avatar__img", alt: props.name, title: props.name }) : props.name ? /* @__PURE__ */ jsx("span", { className: "arm-avatar__name", children: getLetters(props.name) }) : /* @__PURE__ */ jsx("span", { className: clsx("arm-avatar__icon", "material_icon_solid"), children: displayIcon });
24
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { ref, ...divProps, className: clsx("arm-avatar", className, "arm-avatar_" + variant, {
24
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { ref, "data-testid": "avatar", ...divProps, className: clsx("arm-avatar", className, "arm-avatar_" + variant, {
25
25
  ["arm-avatar__photo"]: !!photo,
26
26
  ["arm-avatar__icon"]: !!displayIcon
27
- }, ["arm-avatar_" + size]), "data-testid": "avatar", children: [
27
+ }, ["arm-avatar_" + size]), children: [
28
28
  /* @__PURE__ */ jsx("div", { className: "arm-avatar__inner", children: href ? /* @__PURE__ */ jsx("a", { href, ...linkProps, className: "arm-avatar__text", children: content }) : /* @__PURE__ */ jsx("span", { className: "arm-avatar__text", children: content }) }),
29
29
  status && /* @__PURE__ */ jsx("span", { className: clsx("arm-avatar__status", ["arm-avatar__status_" + status]) })
30
30
  ] }) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "armtek-uikit-react",
3
- "version": "1.0.274",
3
+ "version": "1.0.275",
4
4
  "description": "Armtek UIKit for React",
5
5
  "main": "lib/cjs/index.cjs",
6
6
  "module": "lib/esm/index.js",