@agilant/toga-blox 1.0.25 → 1.0.26

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.
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  const ImageContainer = (props) => {
3
- const { imageUrl, backgroundColor, borderRadius, size, alternativeText, userInitials, additionalClasses, inlineBackgroundColor, } = props;
3
+ const { imageUrl, backgroundColor, borderRadius, size, alternativeText, userInitials, additionalClasses, inlineBackgroundColor, imageClasses } = props;
4
4
  return (_jsx("div", { style: {
5
5
  backgroundColor: inlineBackgroundColor
6
6
  ? inlineBackgroundColor
7
7
  : backgroundColor,
8
- }, className: `${borderRadius} ${backgroundColor} ${size} flex items-center justify-center overflow-hidden ${additionalClasses}`, children: imageUrl ? (_jsx("img", { src: imageUrl, alt: alternativeText, className: `${size}` })) : (_jsx("p", { className: `text-xs text-white w-full h-full flex justify-center items-center `, children: userInitials || "N/A" })) }));
8
+ }, className: `${borderRadius} ${backgroundColor} ${size} flex items-center justify-center overflow-hidden ${additionalClasses}`, children: imageUrl ? (_jsx("img", { src: imageUrl, alt: alternativeText, className: `${imageClasses}` })) : (_jsx("p", { className: `text-xs text-white w-full h-full flex justify-center items-center `, children: userInitials || "N/A" })) }));
9
9
  };
10
10
  export default ImageContainer;
@@ -40,6 +40,14 @@ export default {
40
40
  control: "none",
41
41
  description: "Additional styling classes of the image container.",
42
42
  },
43
+ inlineBackgroundColor: {
44
+ control: "none",
45
+ description: "Inline background color of the image container.",
46
+ },
47
+ imageClasses: {
48
+ control: "none",
49
+ description: "Additional styling classes of the image.",
50
+ }
43
51
  },
44
52
  };
45
53
  const Template = (args) => (_jsx(ImageContainer, { ...args }));
@@ -7,4 +7,5 @@ export interface ImageContainerProps {
7
7
  userInitials?: string;
8
8
  additionalClasses?: string;
9
9
  inlineBackgroundColor?: string;
10
+ imageClasses?: string;
10
11
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agilant/toga-blox",
3
3
  "private": false,
4
- "version": "1.0.25",
4
+ "version": "1.0.26",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",