allaw-ui 0.0.337 → 0.0.339
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.
- package/dist/components/atoms/typography/Paragraph.d.ts +1 -1
- package/dist/components/atoms/typography/Paragraph.js +2 -4
- package/dist/components/molecules/checkboxForm/CheckboxForm.css +1 -7
- package/dist/components/molecules/checkboxForm/CheckboxForm.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -9,9 +9,7 @@ var Paragraph = function (_a) {
|
|
|
9
9
|
return text.slice(0, maxChars) + "...";
|
|
10
10
|
};
|
|
11
11
|
// Tronquer le texte si maxChars est défini
|
|
12
|
-
var truncatedText = maxChars
|
|
13
|
-
? truncateText(text, maxChars)
|
|
14
|
-
: text;
|
|
12
|
+
var truncatedText = maxChars ? truncateText(text, maxChars) : text;
|
|
15
13
|
return (React.createElement("p", { className: "paragraph ".concat(variant, " ").concat(color ? "color-".concat(color) : ""), style: maxLines
|
|
16
14
|
? {
|
|
17
15
|
WebkitLineClamp: maxLines,
|
|
@@ -19,6 +17,6 @@ var Paragraph = function (_a) {
|
|
|
19
17
|
WebkitBoxOrient: "vertical",
|
|
20
18
|
overflow: "hidden",
|
|
21
19
|
}
|
|
22
|
-
: {} }
|
|
20
|
+
: {}, dangerouslySetInnerHTML: { __html: truncatedText } }));
|
|
23
21
|
};
|
|
24
22
|
export default Paragraph;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.checkbox-form {
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
|
-
gap:
|
|
4
|
+
gap: 8px;
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -22,9 +22,3 @@
|
|
|
22
22
|
.checkbox-form-required {
|
|
23
23
|
color: var(--dark-grey, #456073);
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
.checkbox-form-link {
|
|
27
|
-
color: var(--allaw-blue, #25beeb);
|
|
28
|
-
text-decoration: underline;
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
}
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { default as TabNavigation } from "./components/atoms/buttons/TabNavigati
|
|
|
10
10
|
export { default as TertiaryButton } from "./components/atoms/buttons/TertiaryButton";
|
|
11
11
|
export { default as OAuthProviderButton } from "./components/atoms/buttons/OAuthProviderButton";
|
|
12
12
|
export { default as Checkbox } from "./components/atoms/checkboxes/Checkbox";
|
|
13
|
+
export { default as Filter } from "./components/atoms/filter/Filter";
|
|
13
14
|
export { default as Input } from "./components/atoms/inputs/Input";
|
|
14
15
|
export type { InputProps, InputRef } from "./components/atoms/inputs/Input";
|
|
15
16
|
export { default as SearchBar } from "./components/atoms/inputs/SearchBar";
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,8 @@ export { default as TertiaryButton } from "./components/atoms/buttons/TertiaryBu
|
|
|
13
13
|
export { default as OAuthProviderButton } from "./components/atoms/buttons/OAuthProviderButton";
|
|
14
14
|
// Checkboxes
|
|
15
15
|
export { default as Checkbox } from "./components/atoms/checkboxes/Checkbox";
|
|
16
|
+
// Checkboxes
|
|
17
|
+
export { default as Filter } from "./components/atoms/filter/Filter";
|
|
16
18
|
// Inputs
|
|
17
19
|
export { default as Input } from "./components/atoms/inputs/Input";
|
|
18
20
|
export { default as SearchBar } from "./components/atoms/inputs/SearchBar";
|