allaw-ui 1.0.122 → 1.0.124

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.
@@ -6,6 +6,7 @@ export interface TinyInfoProps {
6
6
  text: string;
7
7
  href?: string;
8
8
  className?: string;
9
+ align?: "left" | "center" | "right";
9
10
  uppercase?: boolean;
10
11
  }
11
12
  declare const TinyInfo: React.FC<TinyInfoProps>;
@@ -6,9 +6,9 @@ var toUpperCaseWithAccents = function (str) {
6
6
  });
7
7
  };
8
8
  var TinyInfo = function (_a) {
9
- var variant = _a.variant, _b = _a.color, color = _b === void 0 ? "noir" : _b, text = _a.text, href = _a.href, className = _a.className, _c = _a.uppercase, uppercase = _c === void 0 ? false : _c;
9
+ var variant = _a.variant, _b = _a.color, color = _b === void 0 ? "noir" : _b, text = _a.text, href = _a.href, className = _a.className, _c = _a.uppercase, uppercase = _c === void 0 ? false : _c, _d = _a.align, align = _d === void 0 ? "center" : _d;
10
10
  var processedText = uppercase ? toUpperCaseWithAccents(text) : text;
11
- var content = (React.createElement("span", { className: "tiny-info ".concat(variant, " ").concat(color ? "color-".concat(color) : "", " ").concat(className || ""), dangerouslySetInnerHTML: { __html: processedText } }));
11
+ var content = (React.createElement("span", { className: "tiny-info ".concat(variant, " ").concat(color ? "color-".concat(color) : "", " ").concat(className || ""), dangerouslySetInnerHTML: { __html: processedText }, style: { textAlign: align } }));
12
12
  return href ? (React.createElement("a", { href: href, className: "tiny-info-link ".concat(className || "") }, content)) : (content);
13
13
  };
14
14
  export default TinyInfo;
@@ -20,9 +20,9 @@ var BlogBottomSection = function (_a) {
20
20
  React.createElement("div", { className: styles.blogSplitSection }),
21
21
  React.createElement("div", { className: styles.blogBottomSectionDown },
22
22
  React.createElement("div", { className: styles.blogTitle },
23
- React.createElement(Heading, { variant: "h6", text: Title, color: "noir", align: "center" })),
23
+ React.createElement(Heading, { variant: "h6", text: Title, color: "noir", align: "left" })),
24
24
  React.createElement("div", { className: styles.blogDescription },
25
- React.createElement(TinyInfo, { variant: "medium14", text: Description, color: "noir" })))));
25
+ React.createElement(TinyInfo, { variant: "medium14", text: Description, color: "noir", align: "left" })))));
26
26
  };
27
27
  var BlogArticle = function (_a) {
28
28
  var Article_URL = _a.Article_URL, Image_URL = _a.Image_URL, Tags = _a.Tags, Date = _a.Date, Title = _a.Title, Description = _a.Description, _b = _a.Preview, Preview = _b === void 0 ? false : _b, onClick = _a.onClick;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "1.0.122",
3
+ "version": "1.0.124",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",