allaw-ui 1.0.133 → 1.0.135

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.
Files changed (23) hide show
  1. package/dist/components/atoms/typography/Heading.css +77 -0
  2. package/dist/components/atoms/typography/Heading.d.ts +1 -0
  3. package/dist/components/atoms/typography/Heading.js +2 -2
  4. package/dist/components/atoms/typography/Heading.stories.d.ts +1 -19
  5. package/dist/components/atoms/typography/Heading.stories.js +9 -40
  6. package/dist/components/molecules/blogCard/BlogCard.js +2 -2
  7. package/dist/components/molecules/blogHeader/BlogHeader.js +1 -1
  8. package/dist/components/molecules/blogText/BlogText.d.ts +7 -0
  9. package/dist/components/molecules/{blogTextBlock/BlogTextBlock.js → blogText/BlogText.js} +4 -4
  10. package/dist/components/molecules/{blogTextBlock/BlogTextBlock.stories.d.ts → blogText/BlogText.stories.d.ts} +2 -2
  11. package/dist/components/molecules/{blogTextBlock/BlogTextBlock.stories.js → blogText/BlogText.stories.js} +5 -5
  12. package/dist/components/molecules/blogText/index.d.ts +2 -0
  13. package/dist/components/molecules/blogText/index.js +1 -0
  14. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.js +1 -1
  15. package/dist/components/molecules/caseCardCompact/CaseCardCompact.js +2 -1
  16. package/dist/index.d.ts +2 -2
  17. package/dist/index.js +1 -1
  18. package/package.json +1 -1
  19. package/dist/components/atoms/typography/Heading.module.css +0 -43
  20. package/dist/components/molecules/blogTextBlock/BlogTextBlock.d.ts +0 -7
  21. package/dist/components/molecules/blogTextBlock/index.d.ts +0 -2
  22. package/dist/components/molecules/blogTextBlock/index.js +0 -1
  23. /package/dist/components/molecules/{blogTextBlock/BlogTextBlock.module.css → blogText/BlogText.module.css} +0 -0
@@ -0,0 +1,77 @@
1
+ @import "../../../styles/colors.css";
2
+
3
+ .heading {
4
+ font-family: Poppins;
5
+ font-style: normal;
6
+ line-height: normal;
7
+ }
8
+
9
+ .heading.h1 {
10
+ font-size: 60px;
11
+ font-weight: 600;
12
+ letter-spacing: 0.5px;
13
+ }
14
+
15
+ .heading.h2 {
16
+ font-size: 36px;
17
+ font-weight: 600;
18
+ letter-spacing: 0.38px;
19
+ }
20
+
21
+ .heading.h3 {
22
+ font-size: 28px;
23
+ font-weight: 600;
24
+ letter-spacing: 0.28px;
25
+ }
26
+
27
+ .heading.h4 {
28
+ font-size: 24px;
29
+ font-weight: 600;
30
+ }
31
+
32
+ .heading.h5 {
33
+ font-size: 24px;
34
+ font-weight: 500;
35
+ }
36
+
37
+ .heading.h6 {
38
+ font-size: 18px;
39
+ font-weight: 600;
40
+ }
41
+
42
+ .heading.h7 {
43
+ font-size: 14px;
44
+ font-weight: 600;
45
+ }
46
+
47
+ .heading.color-bleu-allaw {
48
+ color: var(--bleu-allaw);
49
+ }
50
+
51
+ .heading.color-mid-grey {
52
+ color: var(--mid-grey);
53
+ }
54
+
55
+ .heading.color-dark-grey {
56
+ color: var(--dark-grey);
57
+ }
58
+
59
+ .heading.color-noir {
60
+ color: var(--noir);
61
+ }
62
+
63
+ .heading.color-pure-white {
64
+ color: var(--pure-white);
65
+ }
66
+
67
+ .heading.align-left {
68
+ text-align: left;
69
+ }
70
+
71
+ .heading.align-justify {
72
+ text-align: justify;
73
+ }
74
+
75
+ .heading.align-center {
76
+ text-align: center;
77
+ }
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import "./Heading.css";
2
3
  export interface HeadingProps {
3
4
  variant: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "h7";
4
5
  color?: "bleu-allaw" | "mid-grey" | "dark-grey" | "noir" | "pure-white";
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
- import styles from "./Heading.module.css";
2
+ import "./Heading.css";
3
3
  var Heading = function (_a) {
4
4
  var variant = _a.variant, _b = _a.color, color = _b === void 0 ? "pure-white" : _b, text = _a.text, _c = _a.align, align = _c === void 0 ? "center" : _c;
5
- return (React.createElement("span", { className: "".concat(styles.heading, " ").concat(styles[variant], " ").concat(styles["color-".concat(color)], " ").concat(styles["align-".concat(align)]) }, text));
5
+ return (React.createElement("span", { className: "heading ".concat(variant, " color-").concat(color, " align-").concat(align) }, text));
6
6
  };
7
7
  export default Heading;
@@ -22,24 +22,6 @@ declare namespace _default {
22
22
  let control_2: string;
23
23
  export { control_2 as control };
24
24
  }
25
- namespace responsiveSettings {
26
- export namespace control_3 {
27
- let type_2: null;
28
- export { type_2 as type };
29
- }
30
- export { control_3 as control };
31
- export let description: string;
32
- export namespace table {
33
- export namespace type_3 {
34
- let summary: string;
35
- }
36
- export { type_3 as type };
37
- export namespace defaultValue {
38
- let summary_1: string;
39
- export { summary_1 as summary };
40
- }
41
- }
42
- }
43
25
  }
44
26
  export namespace parameters {
45
27
  namespace backgrounds {
@@ -59,5 +41,5 @@ export const H3: any;
59
41
  export const H4: any;
60
42
  export const H5: any;
61
43
  export const H6: any;
62
- export const ResponsiveExample: any;
44
+ export const H7: any;
63
45
  import Heading from "./Heading";
@@ -20,7 +20,7 @@ export default {
20
20
  variant: {
21
21
  control: {
22
22
  type: "select",
23
- options: ["h1", "h2", "h3", "h4", "h5", "h6"],
23
+ options: ["h1", "h2", "h3", "h4", "h5", "h6", "h7"],
24
24
  },
25
25
  },
26
26
  color: {
@@ -32,20 +32,6 @@ export default {
32
32
  text: {
33
33
  control: "text",
34
34
  },
35
- responsiveSettings: {
36
- control: {
37
- type: null,
38
- },
39
- description: "An array of responsive settings. Each object defines the styles for specific min and max widths.",
40
- table: {
41
- type: {
42
- summary: "Array<{ maxWidth: number, minWidth: number, styles: React.CSSProperties }>",
43
- },
44
- defaultValue: {
45
- summary: "[]",
46
- },
47
- },
48
- },
49
35
  },
50
36
  parameters: {
51
37
  backgrounds: {
@@ -64,13 +50,13 @@ export var H1 = Template.bind({});
64
50
  H1.args = {
65
51
  variant: "h1",
66
52
  color: "pure-white",
67
- text: "Poppins – SemiBold – 50px",
53
+ text: "Poppins – SemiBold – 60px",
68
54
  };
69
55
  export var H2 = Template.bind({});
70
56
  H2.args = {
71
57
  variant: "h2",
72
58
  color: "pure-white",
73
- text: "Poppins – SemiBold – 38px",
59
+ text: "Poppins – SemiBold – 36px",
74
60
  };
75
61
  export var H3 = Template.bind({});
76
62
  H3.args = {
@@ -88,34 +74,17 @@ export var H5 = Template.bind({});
88
74
  H5.args = {
89
75
  variant: "h5",
90
76
  color: "pure-white",
91
- text: "Poppins – Medium – 18px",
77
+ text: "Poppins – Medium – 24px",
92
78
  };
93
79
  export var H6 = Template.bind({});
94
80
  H6.args = {
95
81
  variant: "h6",
96
82
  color: "pure-white",
97
- text: "Poppins – SemiBold – 14px",
83
+ text: "Poppins – SemiBold – 18px",
98
84
  };
99
- export var ResponsiveExample = Template.bind({});
100
- ResponsiveExample.args = {
101
- variant: "h2",
85
+ export var H7 = Template.bind({});
86
+ H7.args = {
87
+ variant: "h7",
102
88
  color: "pure-white",
103
- text: "Responsive Heading Example",
104
- responsiveSettings: [
105
- {
106
- maxWidth: 1000,
107
- minWidth: 768,
108
- styles: { fontSize: "36px", lineHeight: "42px", letterSpacing: "0.38px" },
109
- },
110
- {
111
- maxWidth: 767,
112
- minWidth: 480,
113
- styles: { fontSize: "28px", lineHeight: "34px", letterSpacing: "0.28px" },
114
- },
115
- {
116
- maxWidth: 479,
117
- minWidth: 0,
118
- styles: { fontSize: "16px", lineHeight: "26px", letterSpacing: "0.2px" },
119
- },
120
- ],
89
+ text: "Poppins SemiBold – 14px",
121
90
  };
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import styles from "./BlogCard.module.css";
3
3
  import Link from "next/link";
4
- import { OtherStatusTag } from "../../atoms/tags";
5
- import { TinyInfo } from "../../atoms/typography";
4
+ import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
5
+ import TinyInfo from "../../atoms/typography/TinyInfo";
6
6
  import Image from "next/image";
7
7
  var BlogTopSection = function (_a) {
8
8
  var Image_URL = _a.Image_URL, Title = _a.Title;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { TinyInfo } from "../../atoms/typography";
2
+ import TinyInfo from "../../atoms/typography/TinyInfo";
3
3
  import Image from "next/image";
4
4
  import styles from "./BlogHeader.module.css";
5
5
  function BlogHeader(_a) {
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ export type BlogTextProps = {
3
+ Title: string;
4
+ Article: string;
5
+ };
6
+ declare function BlogText({ Title, Article }: BlogTextProps): React.JSX.Element;
7
+ export default BlogText;
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
- import { Paragraph } from "src/components/atoms/typography";
3
- import styles from "./BlogTextBlock.module.css";
4
- function BlogTextBlock(_a) {
2
+ import Paragraph from "../../atoms/typography/Paragraph";
3
+ import styles from "./BlogText.module.css";
4
+ function BlogText(_a) {
5
5
  var Title = _a.Title, Article = _a.Article;
6
6
  return (React.createElement("section", { className: styles.BlogTextContainerWrapper },
7
7
  React.createElement("div", { className: styles.BlogTextContainer },
8
8
  React.createElement("h3", { className: styles.BlogTextTitle }, Title),
9
9
  React.createElement(Paragraph, { variant: "semiBold", color: "dark-grey", text: Article, className: styles.BlogTextCustomParagraph }))));
10
10
  }
11
- export default BlogTextBlock;
11
+ export default BlogText;
@@ -1,6 +1,6 @@
1
1
  declare namespace _default {
2
2
  export let title: string;
3
- export { BlogTextBlock as component };
3
+ export { BlogText as component };
4
4
  export let tags: string[];
5
5
  export namespace argTypes {
6
6
  namespace Title {
@@ -27,4 +27,4 @@ export default _default;
27
27
  export const ShortTitleAndContent: any;
28
28
  export const LongTitleAndContent: any;
29
29
  export const ArticleWithLineBreaks: any;
30
- import BlogTextBlock from "./BlogTextBlock";
30
+ import BlogText from "../blogText/BlogText";
@@ -10,10 +10,10 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import React from "react";
13
- import BlogTextBlock from "./BlogTextBlock";
13
+ import BlogText from "../blogText/BlogText";
14
14
  export default {
15
- title: "Components/molecules/Blog/BlogTextBlock",
16
- component: BlogTextBlock,
15
+ title: "Components/molecules/Blog/BlogText",
16
+ component: BlogText,
17
17
  tags: ["autodocs"],
18
18
  argTypes: {
19
19
  Title: {
@@ -28,12 +28,12 @@ export default {
28
28
  parameters: {
29
29
  docs: {
30
30
  description: {
31
- component: "Le composant `BlogTextBlock` est conçu pour afficher un titre et un long article ou contenu dans un format structuré, idéal pour les sections de texte des blogs.",
31
+ component: "Le composant `BlogText` est conçu pour afficher un titre et un long article ou contenu dans un format structuré, idéal pour les sections de texte des blogs.",
32
32
  },
33
33
  },
34
34
  },
35
35
  };
36
- var Template = function (args) { return React.createElement(BlogTextBlock, __assign({}, args)); };
36
+ var Template = function (args) { return React.createElement(BlogText, __assign({}, args)); };
37
37
  export var ShortTitleAndContent = Template.bind({});
38
38
  ShortTitleAndContent.args = {
39
39
  Title: "Introduction",
@@ -0,0 +1,2 @@
1
+ export { default as BlogText } from "./BlogText";
2
+ export type { BlogTextProps } from "./BlogText";
@@ -0,0 +1 @@
1
+ export { default as BlogText } from "./BlogText";
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import styles from "./BlogTextImageBlock.module.css";
3
3
  import Image from "next/image";
4
- import { Paragraph } from "src/components/atoms/typography";
4
+ import Paragraph from "../../atoms/typography/Paragraph";
5
5
  function BlogTextImageBlock(_a) {
6
6
  var Title = _a.Title, Article = _a.Article, Image_URL = _a.Image_URL;
7
7
  return (React.createElement("section", { className: styles.BlogTextImageBlockWrapper },
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
- import { Paragraph, SmallTitle } from "../../atoms/typography";
2
+ import Paragraph from "../../atoms/typography/Paragraph";
3
+ import SmallTitle from "../../atoms/typography/SmallTitle";
3
4
  import FolderStatusTag from "../../atoms/tags/FolderStatusTag";
4
5
  import "./caseCardCompact.css";
5
6
  import "../../../styles/icons.css";
package/dist/index.d.ts CHANGED
@@ -66,7 +66,7 @@ export { default as BlogHeader } from "./components/molecules/blogHeader/BlogHea
66
66
  export type { BlogHeaderProps } from "./components/molecules/blogHeader/BlogHeader";
67
67
  export { default as BlogCard } from "./components/molecules/blogCard/BlogCard";
68
68
  export type { BlogCardProps } from "./components/molecules/blogCard/BlogCard";
69
- export { default as BlogTextBlock } from "./components/molecules/blogTextBlock/BlogTextBlock";
70
- export type { BlogTextBlockProps } from "./components/molecules/blogTextBlock/BlogTextBlock";
69
+ export { default as BlogText } from "./components/molecules/blogText/BlogText";
70
+ export type { BlogTextProps } from "./components/molecules/blogText/BlogText";
71
71
  export { default as blogTextImageBlock } from "./components/molecules/blogTextImageBlock/BlogTextImageBlock";
72
72
  export type { BlogTextImageBlockProps } from "./components/molecules/blogTextImageBlock/BlogTextImageBlock";
package/dist/index.js CHANGED
@@ -82,5 +82,5 @@ export { default as ProCard } from "./components/molecules/proCard/ProCard";
82
82
  export { default as Pagination } from "./components/molecules/pagination/Pagination";
83
83
  export { default as BlogHeader } from "./components/molecules/blogHeader/BlogHeader";
84
84
  export { default as BlogCard } from "./components/molecules/blogCard/BlogCard";
85
- export { default as BlogTextBlock } from "./components/molecules/blogTextBlock/BlogTextBlock";
85
+ export { default as BlogText } from "./components/molecules/blogText/BlogText";
86
86
  export { default as blogTextImageBlock } from "./components/molecules/blogTextImageBlock/BlogTextImageBlock";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "1.0.133",
3
+ "version": "1.0.135",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,43 +0,0 @@
1
- .heading {
2
- font-weight: bold;
3
- }
4
-
5
- .h1 {
6
- font-size: 32px;
7
- }
8
-
9
- .h2 {
10
- font-size: 28px;
11
- }
12
-
13
- .color-bleu-allaw {
14
- color: #25beeb;
15
- }
16
-
17
- .color-mid-grey {
18
- color: #728ea7;
19
- }
20
-
21
- .color-dark-grey {
22
- color: #495867;
23
- }
24
-
25
- .color-noir {
26
- color: #000000;
27
- }
28
-
29
- .color-pure-white {
30
- color: #ffffff;
31
- }
32
-
33
- .align-left {
34
- text-align: left;
35
- }
36
-
37
- .align-center {
38
- text-align: center;
39
- }
40
-
41
- .align-justify {
42
- text-align: justify;
43
- }
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- export type BlogTextBlockProps = {
3
- Title: string;
4
- Article: string;
5
- };
6
- declare function BlogTextBlock({ Title, Article }: BlogTextBlockProps): React.JSX.Element;
7
- export default BlogTextBlock;
@@ -1,2 +0,0 @@
1
- export { default as BlogTextBlock } from "./BlogTextBlock";
2
- export type { BlogTextBlockProps } from "./BlogTextBlock";
@@ -1 +0,0 @@
1
- export { default as BlogTextBlock } from "./BlogTextBlock";