allaw-ui 2.9.4 → 2.9.5

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.
@@ -2,7 +2,7 @@
2
2
  import React, { useEffect, useState } from "react";
3
3
  import "./Heading.css";
4
4
  var Heading = function (_a) {
5
- 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, responsiveSize = _a.responsiveSize, _d = _a.as, Component = _d === void 0 ? "span" : _d;
5
+ var variant = _a.variant, _b = _a.color, color = _b === void 0 ? "pure-white" : _b, text = _a.text, _c = _a.align, align = _c === void 0 ? "left" : _c, responsiveSize = _a.responsiveSize, _d = _a.as, Component = _d === void 0 ? "span" : _d;
6
6
  var _e = useState(variant), currentVariant = _e[0], setCurrentVariant = _e[1];
7
7
  useEffect(function () {
8
8
  if (!responsiveSize)
@@ -75,4 +75,5 @@ export const H6: any;
75
75
  export const H7: any;
76
76
  export const ResponsiveHeading: any;
77
77
  export const CustomElement: any;
78
+ export const CenteredHeading: any;
78
79
  import Heading from "./Heading";
@@ -61,8 +61,8 @@ export default {
61
61
  backgrounds: {
62
62
  default: "light",
63
63
  values: [
64
- { name: "light", value: "#ffffff" },
65
64
  { name: "grey", value: "#728ea7" },
65
+ { name: "light", value: "#ffffff" },
66
66
  { name: "figma", value: "#404040" },
67
67
  { name: "dark", value: "#171e25" },
68
68
  ],
@@ -140,3 +140,11 @@ CustomElement.args = {
140
140
  text: "This heading uses a paragraph tag",
141
141
  as: "p",
142
142
  };
143
+ export var CenteredHeading = Template.bind({});
144
+ CenteredHeading.args = {
145
+ variant: "h3",
146
+ color: "bleu-allaw",
147
+ text: "This heading is centered",
148
+ align: "center",
149
+ as: "h3",
150
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "2.9.4",
3
+ "version": "2.9.5",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",