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.
@@ -3,7 +3,7 @@ import "./Paragraph.css";
3
3
  export interface ParagraphProps {
4
4
  variant: "bold" | "semiBold" | "medium";
5
5
  color?: "bleu-allaw" | "mid-grey" | "dark-grey" | "noir" | "pure-white";
6
- text: React.ReactNode;
6
+ text: string;
7
7
  maxLines?: number;
8
8
  maxChars?: number;
9
9
  }
@@ -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
- : {} }, truncatedText));
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: 0.75rem;
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
- }
@@ -4,7 +4,7 @@ export interface CheckboxFormProps {
4
4
  checked?: boolean;
5
5
  onChange?: (checked: boolean) => void;
6
6
  isWhite?: boolean;
7
- label?: React.ReactNode;
7
+ label?: string;
8
8
  isRequired?: boolean;
9
9
  }
10
10
  declare const CheckboxForm: React.FC<CheckboxFormProps>;
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "0.0.337",
3
+ "version": "0.0.339",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",