allaw-ui 1.0.166 → 1.0.167

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.
@@ -73,7 +73,7 @@
73
73
  -webkit-line-clamp: 3;
74
74
  overflow: hidden;
75
75
  text-overflow: ellipsis;
76
- max-height: calc(16px * 1.3 * 3);
76
+ max-height: calc(16px * 1.3 * 3 + 2px);
77
77
  text-align: left;
78
78
  font-size: 16px;
79
79
  font-style: normal;
@@ -8,6 +8,7 @@ export interface ParagraphProps {
8
8
  maxChars?: number;
9
9
  size?: "default" | "small";
10
10
  className?: string;
11
+ onClick?: () => void;
11
12
  }
12
13
  declare const Paragraph: React.FC<ParagraphProps>;
13
14
  export default Paragraph;
@@ -13,7 +13,7 @@ import React from "react";
13
13
  import "./Paragraph.css";
14
14
  import { convertToHtml } from "../../../utils/utils";
15
15
  var Paragraph = function (_a) {
16
- var variant = _a.variant, color = _a.color, text = _a.text, maxLines = _a.maxLines, maxChars = _a.maxChars, _b = _a.size, size = _b === void 0 ? "default" : _b, className = _a.className;
16
+ var variant = _a.variant, color = _a.color, text = _a.text, maxLines = _a.maxLines, maxChars = _a.maxChars, _b = _a.size, size = _b === void 0 ? "default" : _b, className = _a.className, onClick = _a.onClick;
17
17
  var truncateText = function (text, maxChars) {
18
18
  if (text.length <= maxChars)
19
19
  return text;
@@ -28,6 +28,6 @@ var Paragraph = function (_a) {
28
28
  WebkitBoxOrient: "vertical",
29
29
  overflow: "hidden",
30
30
  }
31
- : {})), dangerouslySetInnerHTML: { __html: truncatedText } }));
31
+ : {})), onClick: onClick, dangerouslySetInnerHTML: { __html: truncatedText } }));
32
32
  };
33
33
  export default Paragraph;
@@ -31,6 +31,9 @@ declare namespace _default {
31
31
  }
32
32
  export { control_3 as control };
33
33
  }
34
+ namespace onClick {
35
+ let action: string;
36
+ }
34
37
  }
35
38
  export namespace parameters {
36
39
  namespace backgrounds {
@@ -38,6 +38,7 @@ export default {
38
38
  options: ["default", "small"],
39
39
  },
40
40
  },
41
+ onClick: { action: "clicked" },
41
42
  },
42
43
  parameters: {
43
44
  backgrounds: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "1.0.166",
3
+ "version": "1.0.167",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",