allaw-ui 0.0.306 → 0.0.308

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.
@@ -0,0 +1,32 @@
1
+ .breadcrumb {
2
+ font-family: "Open Sans", sans-serif;
3
+ line-height: 1;
4
+ }
5
+
6
+ .breadcrumb-link {
7
+ text-decoration: none;
8
+ vertical-align: middle;
9
+ display: inline-block;
10
+ }
11
+
12
+ .breadcrumb-separator {
13
+ color: var(--mid-grey);
14
+ font-size: 12px;
15
+ margin: 0 0.625rem;
16
+ vertical-align: middle;
17
+ display: inline-block;
18
+ }
19
+
20
+ .breadcrumb-separator i {
21
+ vertical-align: middle;
22
+ line-height: 1;
23
+ }
24
+
25
+ .breadcrumb-link:last-child {
26
+ pointer-events: none;
27
+ }
28
+
29
+ .breadcrumb-link .tiny-info {
30
+ vertical-align: middle;
31
+ display: inline-block;
32
+ }
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import "./Breadcrumb.css";
3
+ export interface BreadcrumbItem {
4
+ key: number;
5
+ label: string;
6
+ link: string;
7
+ }
8
+ export interface BreadcrumbProps {
9
+ items: BreadcrumbItem[];
10
+ }
11
+ declare const Breadcrumb: React.FC<BreadcrumbProps>;
12
+ export default Breadcrumb;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import "./Breadcrumb.css";
3
+ import TinyInfo from "../../atoms/typography/TinyInfo";
4
+ var Breadcrumb = function (_a) {
5
+ var items = _a.items;
6
+ return (React.createElement("nav", { className: "breadcrumb" }, items.map(function (item, index) { return (React.createElement(React.Fragment, { key: item.key },
7
+ index > 0 && (React.createElement("span", { className: "breadcrumb-separator" },
8
+ React.createElement("i", { className: "allaw-icon-chevron-right" }))),
9
+ React.createElement("a", { href: item.link, className: "breadcrumb-link" },
10
+ React.createElement(TinyInfo, { variant: "medium14", color: index === items.length - 1 ? "dark-grey" : "mid-grey", text: item.label })))); })));
11
+ };
12
+ export default Breadcrumb;
@@ -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.306",
3
+ "version": "0.0.308",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",