allaw-ui 0.0.304 → 0.0.305

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.
@@ -4,7 +4,6 @@
4
4
  font-family: Poppins;
5
5
  font-style: normal;
6
6
  line-height: normal;
7
- text-align: center;
8
7
  }
9
8
 
10
9
  .heading.h1 {
@@ -65,4 +64,14 @@
65
64
  color: var(--pure-white);
66
65
  }
67
66
 
68
- /* Ajoutez d'autres couleurs si nécessaire */
67
+ .heading.align-left {
68
+ text-align: left;
69
+ }
70
+
71
+ .heading.align-justify {
72
+ text-align: justify;
73
+ }
74
+
75
+ .heading.align-center {
76
+ text-align: center;
77
+ }
@@ -4,6 +4,7 @@ export interface HeadingProps {
4
4
  variant: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "h7";
5
5
  color?: "bleu-allaw" | "mid-grey" | "dark-grey" | "noir" | "pure-white";
6
6
  text: React.ReactNode;
7
+ align?: "left" | "justify" | "center";
7
8
  }
8
9
  declare const Heading: React.FC<HeadingProps>;
9
10
  export default Heading;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import "./Heading.css";
3
3
  var Heading = function (_a) {
4
- var variant = _a.variant, _b = _a.color, color = _b === void 0 ? "pure-white" : _b, text = _a.text;
5
- return React.createElement("div", { className: "heading ".concat(variant, " color-").concat(color) }, text);
4
+ var variant = _a.variant, _b = _a.color, color = _b === void 0 ? "pure-white" : _b, text = _a.text, _c = _a.align, align = _c === void 0 ? "center" : _c;
5
+ return (React.createElement("div", { className: "heading ".concat(variant, " color-").concat(color, " align-").concat(align) }, text));
6
6
  };
7
7
  export default Heading;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "0.0.304",
3
+ "version": "0.0.305",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",