allaw-ui 4.6.5 → 4.6.7

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.
@@ -1,5 +1,3 @@
1
- @import "../../../styles/colors.css";
2
-
3
1
  .card {
4
2
  background: white;
5
3
  border-radius: 12px;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ export interface EmptyMessageProps {
3
+ message: string;
4
+ icon?: string;
5
+ variant?: "medium12" | "medium14" | "semiBold12" | "semiBold14" | "bold14";
6
+ color?: "bleu-allaw" | "mid-grey" | "dark-grey" | "noir" | "pure-white";
7
+ align?: "left" | "center" | "right";
8
+ height?: string;
9
+ className?: string;
10
+ }
11
+ declare const EmptyMessage: React.FC<EmptyMessageProps>;
12
+ export default EmptyMessage;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import styles from "./emptyMessage.module.css";
3
+ import TinyInfo from "../../atoms/typography/TinyInfo";
4
+ var EmptyMessage = function (_a) {
5
+ var message = _a.message, icon = _a.icon, _b = _a.variant, variant = _b === void 0 ? "medium14" : _b, _c = _a.color, color = _c === void 0 ? "mid-grey" : _c, _d = _a.align, align = _d === void 0 ? "center" : _d, _e = _a.height, height = _e === void 0 ? "100%" : _e, className = _a.className;
6
+ return (React.createElement("div", { className: "".concat(styles.noElement, " ").concat(className || ""), style: { height: height } },
7
+ React.createElement(TinyInfo, { variant: variant, text: message, align: align, color: color, startIcon: icon })));
8
+ };
9
+ export default EmptyMessage;
@@ -0,0 +1,75 @@
1
+ declare namespace _default {
2
+ export let title: string;
3
+ export { EmptyMessage as component };
4
+ export let tags: string[];
5
+ export namespace argTypes {
6
+ namespace message {
7
+ let control: string;
8
+ let description: string;
9
+ }
10
+ namespace icon {
11
+ let control_1: string;
12
+ export { control_1 as control };
13
+ let description_1: string;
14
+ export { description_1 as description };
15
+ }
16
+ namespace variant {
17
+ export namespace control_2 {
18
+ let type: string;
19
+ let options: string[];
20
+ }
21
+ export { control_2 as control };
22
+ let description_2: string;
23
+ export { description_2 as description };
24
+ }
25
+ namespace color {
26
+ export namespace control_3 {
27
+ let type_1: string;
28
+ export { type_1 as type };
29
+ let options_1: string[];
30
+ export { options_1 as options };
31
+ }
32
+ export { control_3 as control };
33
+ let description_3: string;
34
+ export { description_3 as description };
35
+ }
36
+ namespace align {
37
+ export namespace control_4 {
38
+ let type_2: string;
39
+ export { type_2 as type };
40
+ let options_2: string[];
41
+ export { options_2 as options };
42
+ }
43
+ export { control_4 as control };
44
+ let description_4: string;
45
+ export { description_4 as description };
46
+ }
47
+ namespace height {
48
+ let control_5: string;
49
+ export { control_5 as control };
50
+ let description_5: string;
51
+ export { description_5 as description };
52
+ }
53
+ }
54
+ export namespace parameters {
55
+ namespace backgrounds {
56
+ let _default: string;
57
+ export { _default as default };
58
+ export let values: {
59
+ name: string;
60
+ value: string;
61
+ }[];
62
+ }
63
+ }
64
+ }
65
+ export default _default;
66
+ export const Default: any;
67
+ export const WithIcon: any;
68
+ export const WithCalendarIcon: any;
69
+ export const WithUserIcon: any;
70
+ export const DarkGrey: any;
71
+ export const LeftAligned: any;
72
+ export const CustomHeight: any;
73
+ export const SmallVariant: any;
74
+ export const BoldVariant: any;
75
+ import EmptyMessage from "./EmptyMessage";
@@ -0,0 +1,115 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import React from "react";
13
+ import EmptyMessage from "./EmptyMessage";
14
+ import "../../../styles/global.css";
15
+ export default {
16
+ title: "Components/Molecules/EmptyMessage",
17
+ component: EmptyMessage,
18
+ tags: ["autodocs"],
19
+ argTypes: {
20
+ message: {
21
+ control: "text",
22
+ description: "Message à afficher",
23
+ },
24
+ icon: {
25
+ control: "text",
26
+ description: "Nom de l'icône à afficher (optionnel)",
27
+ },
28
+ variant: {
29
+ control: {
30
+ type: "select",
31
+ options: ["medium12", "medium14", "semiBold12", "semiBold14", "bold14"],
32
+ },
33
+ description: "Variante de typographie",
34
+ },
35
+ color: {
36
+ control: {
37
+ type: "select",
38
+ options: ["bleu-allaw", "mid-grey", "dark-grey", "noir", "pure-white"],
39
+ },
40
+ description: "Couleur du texte",
41
+ },
42
+ align: {
43
+ control: {
44
+ type: "select",
45
+ options: ["left", "center", "right"],
46
+ },
47
+ description: "Alignement du texte",
48
+ },
49
+ height: {
50
+ control: "text",
51
+ description: "Hauteur du conteneur",
52
+ },
53
+ },
54
+ parameters: {
55
+ backgrounds: {
56
+ default: "light",
57
+ values: [
58
+ { name: "light", value: "#ffffff" },
59
+ { name: "grey", value: "#f5f5f5" },
60
+ { name: "dark", value: "#333333" },
61
+ ],
62
+ },
63
+ },
64
+ };
65
+ var Template = function (args) { return React.createElement(EmptyMessage, __assign({}, args)); };
66
+ export var Default = Template.bind({});
67
+ Default.args = {
68
+ message: "Aucun élément à afficher",
69
+ };
70
+ export var WithIcon = Template.bind({});
71
+ WithIcon.args = {
72
+ message: "Aucun document trouvé",
73
+ icon: "allaw-icon-file",
74
+ };
75
+ export var WithCalendarIcon = Template.bind({});
76
+ WithCalendarIcon.args = {
77
+ message: "Aucun rendez-vous à venir",
78
+ icon: "allaw-icon-calendar",
79
+ };
80
+ export var WithUserIcon = Template.bind({});
81
+ WithUserIcon.args = {
82
+ message: "Aucun client trouvé",
83
+ icon: "allaw-icon-user",
84
+ };
85
+ export var DarkGrey = Template.bind({});
86
+ DarkGrey.args = {
87
+ message: "Aucune donnée disponible",
88
+ color: "dark-grey",
89
+ variant: "semiBold14",
90
+ };
91
+ export var LeftAligned = Template.bind({});
92
+ LeftAligned.args = {
93
+ message: "Liste vide",
94
+ align: "left",
95
+ icon: "allaw-icon-list",
96
+ };
97
+ export var CustomHeight = Template.bind({});
98
+ CustomHeight.args = {
99
+ message: "Contenu indisponible",
100
+ height: "200px",
101
+ icon: "allaw-icon-warning",
102
+ };
103
+ export var SmallVariant = Template.bind({});
104
+ SmallVariant.args = {
105
+ message: "Aucun résultat",
106
+ variant: "medium12",
107
+ color: "mid-grey",
108
+ };
109
+ export var BoldVariant = Template.bind({});
110
+ BoldVariant.args = {
111
+ message: "Section vide",
112
+ variant: "bold14",
113
+ color: "dark-grey",
114
+ icon: "allaw-icon-folder",
115
+ };
@@ -0,0 +1,30 @@
1
+ @import "../../../styles/colors.css";
2
+
3
+ .noElement {
4
+ display: flex;
5
+ justify-content: center;
6
+ align-items: center;
7
+ height: 100%;
8
+ padding: 1rem;
9
+ border: 1px solid #e6edf5;
10
+ border-radius: 0.5rem;
11
+ background: var(--Primary-Blanc, #fff);
12
+ min-height: 120px;
13
+ width: 100%;
14
+ box-sizing: border-box;
15
+ }
16
+
17
+ /* Responsive adjustments */
18
+ @media (max-width: 640px) {
19
+ .noElement {
20
+ padding: 0.75rem;
21
+ min-height: 100px;
22
+ }
23
+ }
24
+
25
+ @media (max-width: 480px) {
26
+ .noElement {
27
+ padding: 0.5rem;
28
+ min-height: 80px;
29
+ }
30
+ }
@@ -0,0 +1,2 @@
1
+ export { default as EmptyMessage } from "./EmptyMessage";
2
+ export type { EmptyMessageProps } from "./EmptyMessage";
@@ -0,0 +1 @@
1
+ export { default as EmptyMessage } from "./EmptyMessage";
package/dist/index.d.ts CHANGED
@@ -125,3 +125,5 @@ export type { BlogTextImageBlockProps } from "./components/molecules/blogTextIma
125
125
  export { default as FileUploader } from "./components/molecules/fileUploader/FileUploader";
126
126
  export type { FileUploaderProps } from "./components/molecules/fileUploader/FileUploader";
127
127
  export { default as AvatarBubble } from "./components/molecules/proSwitch/AvatarBubble";
128
+ export { default as EmptyMessage } from "./components/molecules/emptyMessage/EmptyMessage";
129
+ export type { EmptyMessageProps } from "./components/molecules/emptyMessage/EmptyMessage";
package/dist/index.js CHANGED
@@ -120,3 +120,5 @@ export { default as blogTextImageBlock } from "./components/molecules/blogTextIm
120
120
  // File Uploader
121
121
  export { default as FileUploader } from "./components/molecules/fileUploader/FileUploader";
122
122
  export { default as AvatarBubble } from "./components/molecules/proSwitch/AvatarBubble";
123
+ // Empty Message
124
+ export { default as EmptyMessage } from "./components/molecules/emptyMessage/EmptyMessage";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "4.6.5",
3
+ "version": "4.6.7",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",