allaw-ui 0.0.307 → 0.0.309

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,6 +4,8 @@ export interface TinyInfoProps {
4
4
  variant: "bold14" | "medium14" | "semiBold12" | "medium12";
5
5
  color?: "bleu-allaw" | "mid-grey" | "dark-grey" | "noir" | "pure-white" | "actions-error";
6
6
  text: string;
7
+ href?: string;
8
+ className?: string;
7
9
  }
8
10
  declare const TinyInfo: React.FC<TinyInfoProps>;
9
11
  export default TinyInfo;
@@ -1,8 +1,9 @@
1
1
  import React from "react";
2
2
  import "./TinyInfo.css";
3
3
  var TinyInfo = function (_a) {
4
- var variant = _a.variant, _b = _a.color, color = _b === void 0 ? "noir" : _b, text = _a.text;
5
- return (React.createElement("p", { className: "tiny-info ".concat(variant, " ").concat(color ? "color-".concat(color) : ""), dangerouslySetInnerHTML: { __html: text } }));
4
+ var variant = _a.variant, _b = _a.color, color = _b === void 0 ? "noir" : _b, text = _a.text, href = _a.href, className = _a.className;
5
+ var content = (React.createElement("span", { className: "tiny-info ".concat(variant, " ").concat(color ? "color-".concat(color) : "", " ").concat(className || ""), dangerouslySetInnerHTML: { __html: text } }));
6
+ return href ? (React.createElement("a", { href: href, className: "tiny-info-link ".concat(className || "") }, content)) : (content);
6
7
  };
7
8
  export default TinyInfo;
8
9
  TinyInfo.displayName = "TinyInfo";
@@ -0,0 +1,2 @@
1
+ export { default as Breadcrumb } from "./Breadcrumb";
2
+ export type { BreadcrumbProps } from "./Breadcrumb";
@@ -0,0 +1 @@
1
+ export { default as Breadcrumb } from "./Breadcrumb";
package/dist/index.d.ts CHANGED
@@ -34,3 +34,4 @@ export { default as DocumentCard } from "./components/molecules/documentCard/Doc
34
34
  export { default as EmployeeCard } from "./components/molecules/employeeCard/EmployeeCard";
35
35
  export { default as Stepper } from "./components/molecules/stepper/Stepper";
36
36
  export { default as CheckboxForm } from "./components/molecules/checkboxForm/CheckboxForm";
37
+ export { default as Breadcrumb } from "./components/molecules/breadcrumb/Breadcrumb";
package/dist/index.js CHANGED
@@ -50,3 +50,5 @@ export { default as EmployeeCard } from "./components/molecules/employeeCard/Emp
50
50
  export { default as Stepper } from "./components/molecules/stepper/Stepper";
51
51
  // CheckboxForm
52
52
  export { default as CheckboxForm } from "./components/molecules/checkboxForm/CheckboxForm";
53
+ // Breadcrumb
54
+ export { default as Breadcrumb } from "./components/molecules/breadcrumb/Breadcrumb";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "0.0.307",
3
+ "version": "0.0.309",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",