allaw-ui 4.7.1 → 4.7.2
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.
- package/dist/components/molecules/AiText/aiText.d.ts +7 -0
- package/dist/components/molecules/AiText/aiText.js +17 -0
- package/dist/components/molecules/AiText/aiText.module.css +201 -0
- package/dist/components/molecules/AiText/aiText.stories.d.ts +43 -0
- package/dist/components/molecules/AiText/aiText.stories.js +216 -0
- package/dist/components/molecules/AiText/index.d.ts +2 -0
- package/dist/components/molecules/AiText/index.js +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import styles from "./aiText.module.css";
|
|
4
|
+
var AiText = function (_a) {
|
|
5
|
+
var children = _a.children, className = _a.className;
|
|
6
|
+
return (React.createElement("div", { className: "".concat(styles.wrapper, " ").concat(className || "") },
|
|
7
|
+
React.createElement("div", { className: styles.glowContainer },
|
|
8
|
+
React.createElement("div", { className: "".concat(styles.glowLayer, " ").concat(styles.glowLayer1) }),
|
|
9
|
+
React.createElement("div", { className: "".concat(styles.glowLayer, " ").concat(styles.glowLayer2) }),
|
|
10
|
+
React.createElement("div", { className: "".concat(styles.glowLayer, " ").concat(styles.glowLayer3) }),
|
|
11
|
+
React.createElement("div", { className: "".concat(styles.glowLayer, " ").concat(styles.glowLayer4) }),
|
|
12
|
+
React.createElement("div", { className: "".concat(styles.glowLayer, " ").concat(styles.glowLayer5) }),
|
|
13
|
+
React.createElement("div", { className: "".concat(styles.glowLayer, " ").concat(styles.glowLayer6) }),
|
|
14
|
+
React.createElement("div", { className: styles.aiTextContainer },
|
|
15
|
+
React.createElement("div", { className: styles.content }, children)))));
|
|
16
|
+
};
|
|
17
|
+
export default AiText;
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/* Wrapper principal */
|
|
2
|
+
.wrapper {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Container pour l'effet glowing */
|
|
10
|
+
.glowContainer {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Couches d'effet glowing */
|
|
18
|
+
.glowLayer {
|
|
19
|
+
position: absolute;
|
|
20
|
+
z-index: -1;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
border-radius: 16px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.glowLayer::before {
|
|
26
|
+
content: "";
|
|
27
|
+
position: absolute;
|
|
28
|
+
z-index: -2;
|
|
29
|
+
background-repeat: no-repeat;
|
|
30
|
+
top: 50%;
|
|
31
|
+
left: 50%;
|
|
32
|
+
transform: translate(-50%, -50%);
|
|
33
|
+
transition: all 2s ease;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Couche 1 - Effet principal */
|
|
37
|
+
.glowLayer1 {
|
|
38
|
+
height: 100%;
|
|
39
|
+
width: 100%;
|
|
40
|
+
filter: blur(3px);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.glowLayer1::before {
|
|
44
|
+
width: 999px;
|
|
45
|
+
height: 999px;
|
|
46
|
+
background: conic-gradient(
|
|
47
|
+
#000,
|
|
48
|
+
#402fb5 5%,
|
|
49
|
+
#000 38%,
|
|
50
|
+
#000 50%,
|
|
51
|
+
#cf30aa 60%,
|
|
52
|
+
#000 87%
|
|
53
|
+
);
|
|
54
|
+
transform: translate(-50%, -50%) rotate(60deg);
|
|
55
|
+
animation: glowRotate1 4s linear infinite;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Couche 2-4 - Effets secondaires */
|
|
59
|
+
.glowLayer2,
|
|
60
|
+
.glowLayer3,
|
|
61
|
+
.glowLayer4 {
|
|
62
|
+
height: calc(100% - 5px);
|
|
63
|
+
width: calc(100% - 2px);
|
|
64
|
+
filter: blur(3px);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.glowLayer2::before,
|
|
68
|
+
.glowLayer3::before,
|
|
69
|
+
.glowLayer4::before {
|
|
70
|
+
width: 600px;
|
|
71
|
+
height: 600px;
|
|
72
|
+
background: conic-gradient(
|
|
73
|
+
rgba(0, 0, 0, 0),
|
|
74
|
+
#18116a,
|
|
75
|
+
rgba(0, 0, 0, 0) 10%,
|
|
76
|
+
rgba(0, 0, 0, 0) 50%,
|
|
77
|
+
#6e1b60,
|
|
78
|
+
rgba(0, 0, 0, 0) 60%
|
|
79
|
+
);
|
|
80
|
+
transform: translate(-50%, -50%) rotate(82deg);
|
|
81
|
+
animation: glowRotate2 4s linear infinite;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Couche 5 - Effet lumineux */
|
|
85
|
+
.glowLayer5 {
|
|
86
|
+
height: calc(100% - 8px);
|
|
87
|
+
width: calc(100% - 5px);
|
|
88
|
+
border-radius: 12px;
|
|
89
|
+
filter: blur(2px);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.glowLayer5::before {
|
|
93
|
+
width: 600px;
|
|
94
|
+
height: 600px;
|
|
95
|
+
background: conic-gradient(
|
|
96
|
+
rgba(0, 0, 0, 0) 0%,
|
|
97
|
+
#a099d8,
|
|
98
|
+
rgba(0, 0, 0, 0) 8%,
|
|
99
|
+
rgba(0, 0, 0, 0) 50%,
|
|
100
|
+
#dfa2da,
|
|
101
|
+
rgba(0, 0, 0, 0) 58%
|
|
102
|
+
);
|
|
103
|
+
transform: translate(-50%, -50%) rotate(83deg);
|
|
104
|
+
filter: brightness(1.4);
|
|
105
|
+
animation: glowRotate3 4s linear infinite;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Couche 6 - Effet final */
|
|
109
|
+
.glowLayer6 {
|
|
110
|
+
height: calc(100% - 12px);
|
|
111
|
+
width: calc(100% - 8px);
|
|
112
|
+
filter: blur(0.5px);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.glowLayer6::before {
|
|
116
|
+
width: 600px;
|
|
117
|
+
height: 600px;
|
|
118
|
+
background: conic-gradient(
|
|
119
|
+
#1c191c,
|
|
120
|
+
#402fb5 5%,
|
|
121
|
+
#1c191c 14%,
|
|
122
|
+
#1c191c 50%,
|
|
123
|
+
#cf30aa 60%,
|
|
124
|
+
#1c191c 64%
|
|
125
|
+
);
|
|
126
|
+
transform: translate(-50%, -50%) rotate(70deg);
|
|
127
|
+
filter: brightness(1.3);
|
|
128
|
+
animation: glowRotate4 4s linear infinite;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Animations de rotation */
|
|
132
|
+
@keyframes glowRotate1 {
|
|
133
|
+
from {
|
|
134
|
+
transform: translate(-50%, -50%) rotate(60deg);
|
|
135
|
+
}
|
|
136
|
+
to {
|
|
137
|
+
transform: translate(-50%, -50%) rotate(420deg);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@keyframes glowRotate2 {
|
|
142
|
+
from {
|
|
143
|
+
transform: translate(-50%, -50%) rotate(82deg);
|
|
144
|
+
}
|
|
145
|
+
to {
|
|
146
|
+
transform: translate(-50%, -50%) rotate(442deg);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@keyframes glowRotate3 {
|
|
151
|
+
from {
|
|
152
|
+
transform: translate(-50%, -50%) rotate(83deg);
|
|
153
|
+
}
|
|
154
|
+
to {
|
|
155
|
+
transform: translate(-50%, -50%) rotate(443deg);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@keyframes glowRotate4 {
|
|
160
|
+
from {
|
|
161
|
+
transform: translate(-50%, -50%) rotate(70deg);
|
|
162
|
+
}
|
|
163
|
+
to {
|
|
164
|
+
transform: translate(-50%, -50%) rotate(430deg);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* Container principal du contenu */
|
|
169
|
+
.aiTextContainer {
|
|
170
|
+
position: relative;
|
|
171
|
+
padding: 24px;
|
|
172
|
+
border: 2px solid #fff;
|
|
173
|
+
border-radius: 16px;
|
|
174
|
+
background: #ffffff;
|
|
175
|
+
z-index: 1;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* Contenu */
|
|
179
|
+
.content {
|
|
180
|
+
position: relative;
|
|
181
|
+
z-index: 1;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* Support pour prefers-reduced-motion */
|
|
185
|
+
@media (prefers-reduced-motion: reduce) {
|
|
186
|
+
.glowLayer::before {
|
|
187
|
+
animation: none;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* Responsive */
|
|
192
|
+
@media (max-width: 768px) {
|
|
193
|
+
.glowLayer {
|
|
194
|
+
border-radius: 12px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.aiTextContainer {
|
|
198
|
+
padding: 16px;
|
|
199
|
+
border-radius: 12px;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { AiText as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
namespace children {
|
|
6
|
+
namespace control {
|
|
7
|
+
let type: string;
|
|
8
|
+
}
|
|
9
|
+
let description: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export namespace parameters {
|
|
13
|
+
namespace docs {
|
|
14
|
+
export namespace description_1 {
|
|
15
|
+
let component: string;
|
|
16
|
+
}
|
|
17
|
+
export { description_1 as description };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export default _default;
|
|
22
|
+
export const Default: any;
|
|
23
|
+
export const WithButton: any;
|
|
24
|
+
export const WithForm: any;
|
|
25
|
+
export const WithList: any;
|
|
26
|
+
export const WithImage: any;
|
|
27
|
+
export const ComplexContent: any;
|
|
28
|
+
export function MultipleContainers(): React.JSX.Element;
|
|
29
|
+
export namespace MultipleContainers {
|
|
30
|
+
export namespace parameters_1 {
|
|
31
|
+
export namespace docs_1 {
|
|
32
|
+
export namespace description_2 {
|
|
33
|
+
let story: string;
|
|
34
|
+
}
|
|
35
|
+
export { description_2 as description };
|
|
36
|
+
}
|
|
37
|
+
export { docs_1 as docs };
|
|
38
|
+
}
|
|
39
|
+
export { parameters_1 as parameters };
|
|
40
|
+
}
|
|
41
|
+
export const CustomClassName: any;
|
|
42
|
+
import AiText from "./aiText";
|
|
43
|
+
import React from "react";
|
|
@@ -0,0 +1,216 @@
|
|
|
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 { Meta, StoryFn } from "@storybook/react";
|
|
14
|
+
import AiText, { AiTextProps } from "./aiText";
|
|
15
|
+
import Paragraph from "../../atoms/typography/Paragraph";
|
|
16
|
+
export default {
|
|
17
|
+
title: "Components/Molecules/AiText",
|
|
18
|
+
component: AiText,
|
|
19
|
+
argTypes: {
|
|
20
|
+
children: {
|
|
21
|
+
control: { type: "text" },
|
|
22
|
+
description: "Contenu à afficher dans le container avec effet glowing",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
parameters: {
|
|
26
|
+
docs: {
|
|
27
|
+
description: {
|
|
28
|
+
component: "Composant AiText - Container réutilisable avec effet glowing animé. Accepte n'importe quel contenu via children.",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
var Template = function (args) { return React.createElement(AiText, __assign({}, args)); };
|
|
34
|
+
export var Default = Template.bind({});
|
|
35
|
+
Default.args = {
|
|
36
|
+
children: (React.createElement(Paragraph, { text: "L'intelligence artificielle a analys\u00E9 votre demande et g\u00E9n\u00E8re automatiquement une r\u00E9ponse personnalis\u00E9e pour vous aider dans vos d\u00E9marches juridiques.", variant: "medium", size: "default" })),
|
|
37
|
+
};
|
|
38
|
+
Default.parameters = {
|
|
39
|
+
docs: {
|
|
40
|
+
description: {
|
|
41
|
+
story: "Container par défaut avec un composant Paragraph à l'intérieur.",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
export var WithButton = Template.bind({});
|
|
46
|
+
WithButton.args = {
|
|
47
|
+
children: (React.createElement("div", { style: { textAlign: "center" } },
|
|
48
|
+
React.createElement("h3", { style: { margin: "0 0 16px 0", color: "#25beeb" } }, "Action requise"),
|
|
49
|
+
React.createElement("p", { style: { margin: "0 0 20px 0", color: "#666" } }, "Confirmez-vous cette action ?"),
|
|
50
|
+
React.createElement("button", { style: {
|
|
51
|
+
padding: "12px 24px",
|
|
52
|
+
backgroundColor: "#25beeb",
|
|
53
|
+
color: "white",
|
|
54
|
+
border: "none",
|
|
55
|
+
borderRadius: "8px",
|
|
56
|
+
cursor: "pointer",
|
|
57
|
+
} }, "Confirmer"))),
|
|
58
|
+
};
|
|
59
|
+
WithButton.parameters = {
|
|
60
|
+
docs: {
|
|
61
|
+
description: {
|
|
62
|
+
story: "Container avec du contenu interactif : titre, texte et bouton.",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
export var WithForm = Template.bind({});
|
|
67
|
+
WithForm.args = {
|
|
68
|
+
children: (React.createElement("form", { style: { display: "flex", flexDirection: "column", gap: "16px" } },
|
|
69
|
+
React.createElement("h4", { style: { margin: "0 0 8px 0" } }, "Formulaire IA"),
|
|
70
|
+
React.createElement("input", { type: "text", placeholder: "Votre question...", style: {
|
|
71
|
+
padding: "12px",
|
|
72
|
+
border: "1px solid #ddd",
|
|
73
|
+
borderRadius: "6px",
|
|
74
|
+
fontSize: "14px",
|
|
75
|
+
} }),
|
|
76
|
+
React.createElement("textarea", { placeholder: "D\u00E9tails suppl\u00E9mentaires...", rows: 3, style: {
|
|
77
|
+
padding: "12px",
|
|
78
|
+
border: "1px solid #ddd",
|
|
79
|
+
borderRadius: "6px",
|
|
80
|
+
fontSize: "14px",
|
|
81
|
+
resize: "vertical",
|
|
82
|
+
} }),
|
|
83
|
+
React.createElement("button", { type: "submit", style: {
|
|
84
|
+
padding: "12px",
|
|
85
|
+
backgroundColor: "#25beeb",
|
|
86
|
+
color: "white",
|
|
87
|
+
border: "none",
|
|
88
|
+
borderRadius: "6px",
|
|
89
|
+
cursor: "pointer",
|
|
90
|
+
} }, "Analyser avec l'IA"))),
|
|
91
|
+
};
|
|
92
|
+
WithForm.parameters = {
|
|
93
|
+
docs: {
|
|
94
|
+
description: {
|
|
95
|
+
story: "Container avec un formulaire complet : inputs, textarea et bouton de soumission.",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
export var WithList = Template.bind({});
|
|
100
|
+
WithList.args = {
|
|
101
|
+
children: (React.createElement("div", null,
|
|
102
|
+
React.createElement("h4", { style: { margin: "0 0 16px 0", color: "#25beeb" } }, "R\u00E9sultats de l'analyse IA"),
|
|
103
|
+
React.createElement("ul", { style: { margin: 0, paddingLeft: "20px", lineHeight: "1.6" } },
|
|
104
|
+
React.createElement("li", null, "\u2705 Document analys\u00E9 avec succ\u00E8s"),
|
|
105
|
+
React.createElement("li", null, "\uD83D\uDCCA 3 points d'attention identifi\u00E9s"),
|
|
106
|
+
React.createElement("li", null, "\uD83D\uDCA1 2 recommandations g\u00E9n\u00E9r\u00E9es"),
|
|
107
|
+
React.createElement("li", null, "\u2696\uFE0F Conformit\u00E9 juridique v\u00E9rifi\u00E9e")))),
|
|
108
|
+
};
|
|
109
|
+
WithList.parameters = {
|
|
110
|
+
docs: {
|
|
111
|
+
description: {
|
|
112
|
+
story: "Container avec une liste de résultats et des emojis pour l'illustration.",
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
export var WithImage = Template.bind({});
|
|
117
|
+
WithImage.args = {
|
|
118
|
+
children: (React.createElement("div", { style: { textAlign: "center" } },
|
|
119
|
+
React.createElement("div", { style: {
|
|
120
|
+
width: "80px",
|
|
121
|
+
height: "80px",
|
|
122
|
+
backgroundColor: "#f0f8ff",
|
|
123
|
+
borderRadius: "50%",
|
|
124
|
+
display: "flex",
|
|
125
|
+
alignItems: "center",
|
|
126
|
+
justifyContent: "center",
|
|
127
|
+
margin: "0 auto 16px auto",
|
|
128
|
+
fontSize: "32px",
|
|
129
|
+
} }, "\uD83E\uDD16"),
|
|
130
|
+
React.createElement("h4", { style: { margin: "0 0 8px 0" } }, "Assistant IA"),
|
|
131
|
+
React.createElement("p", { style: { margin: 0, color: "#666", fontSize: "14px" } }, "Pr\u00EAt \u00E0 analyser vos documents"))),
|
|
132
|
+
};
|
|
133
|
+
WithImage.parameters = {
|
|
134
|
+
docs: {
|
|
135
|
+
description: {
|
|
136
|
+
story: "Container avec un avatar circulaire, titre et description centrés.",
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
};
|
|
140
|
+
export var ComplexContent = Template.bind({});
|
|
141
|
+
ComplexContent.args = {
|
|
142
|
+
children: (React.createElement("div", null,
|
|
143
|
+
React.createElement("div", { style: {
|
|
144
|
+
display: "flex",
|
|
145
|
+
alignItems: "center",
|
|
146
|
+
gap: "12px",
|
|
147
|
+
marginBottom: "16px",
|
|
148
|
+
} },
|
|
149
|
+
React.createElement("div", { style: { fontSize: "24px" } }, "\uD83C\uDF86"),
|
|
150
|
+
React.createElement("h3", { style: { margin: 0, color: "#25beeb" } }, "Analyse Compl\u00E8te")),
|
|
151
|
+
React.createElement("div", { style: {
|
|
152
|
+
padding: "16px",
|
|
153
|
+
backgroundColor: "#f8f9fa",
|
|
154
|
+
borderRadius: "8px",
|
|
155
|
+
marginBottom: "16px",
|
|
156
|
+
} },
|
|
157
|
+
React.createElement("p", { style: { margin: "0 0 12px 0", fontWeight: "bold" } }, "R\u00E9sultats de l'IA :"),
|
|
158
|
+
React.createElement("ul", { style: { margin: 0, paddingLeft: "20px" } },
|
|
159
|
+
React.createElement("li", null, "Analyse des clauses contractuelles"),
|
|
160
|
+
React.createElement("li", null, "\u00C9valuation des risques juridiques"),
|
|
161
|
+
React.createElement("li", null, "Propositions de solutions adapt\u00E9es"))),
|
|
162
|
+
React.createElement("div", { style: { display: "flex", gap: "12px", justifyContent: "flex-end" } },
|
|
163
|
+
React.createElement("button", { style: {
|
|
164
|
+
padding: "8px 16px",
|
|
165
|
+
backgroundColor: "transparent",
|
|
166
|
+
color: "#666",
|
|
167
|
+
border: "1px solid #ddd",
|
|
168
|
+
borderRadius: "6px",
|
|
169
|
+
cursor: "pointer",
|
|
170
|
+
} }, "Annuler"),
|
|
171
|
+
React.createElement("button", { style: {
|
|
172
|
+
padding: "8px 16px",
|
|
173
|
+
backgroundColor: "#25beeb",
|
|
174
|
+
color: "white",
|
|
175
|
+
border: "none",
|
|
176
|
+
borderRadius: "6px",
|
|
177
|
+
cursor: "pointer",
|
|
178
|
+
} }, "Valider")))),
|
|
179
|
+
};
|
|
180
|
+
ComplexContent.parameters = {
|
|
181
|
+
docs: {
|
|
182
|
+
description: {
|
|
183
|
+
story: "Exemple avec du contenu complexe : titre, zone d'information et boutons d'action.",
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
};
|
|
187
|
+
export var MultipleContainers = function () { return (React.createElement("div", { style: { display: "flex", flexDirection: "column", gap: "24px" } },
|
|
188
|
+
React.createElement(AiText, null,
|
|
189
|
+
React.createElement(Paragraph, { text: "Premier container avec du texte simple", variant: "bold", color: "bleu-allaw" })),
|
|
190
|
+
React.createElement(AiText, null,
|
|
191
|
+
React.createElement("div", { style: { display: "flex", alignItems: "center", gap: "12px" } },
|
|
192
|
+
React.createElement("span", { style: { fontSize: "20px" } }, "\u26A1"),
|
|
193
|
+
React.createElement(Paragraph, { text: "Container avec ic\u00F4ne et texte", variant: "medium" }))),
|
|
194
|
+
React.createElement(AiText, null,
|
|
195
|
+
React.createElement("div", { style: { textAlign: "center" } },
|
|
196
|
+
React.createElement("div", { style: { fontSize: "32px", marginBottom: "8px" } }, "\uD83C\uDFAF"),
|
|
197
|
+
React.createElement(Paragraph, { text: "Container centr\u00E9 avec emoji", variant: "semiBold", size: "small" }))))); };
|
|
198
|
+
MultipleContainers.parameters = {
|
|
199
|
+
docs: {
|
|
200
|
+
description: {
|
|
201
|
+
story: "Exemple avec plusieurs containers AiText montrant la flexibilité du composant avec différents types de contenu.",
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
};
|
|
205
|
+
export var CustomClassName = Template.bind({});
|
|
206
|
+
CustomClassName.args = {
|
|
207
|
+
children: (React.createElement(Paragraph, { text: "Container avec une classe CSS personnalis\u00E9e", variant: "medium" })),
|
|
208
|
+
className: "my-custom-class",
|
|
209
|
+
};
|
|
210
|
+
CustomClassName.parameters = {
|
|
211
|
+
docs: {
|
|
212
|
+
description: {
|
|
213
|
+
story: "Exemple montrant l'utilisation de la prop className pour personnaliser le style.",
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AiText } from "./aiText";
|
package/dist/index.d.ts
CHANGED
|
@@ -127,3 +127,5 @@ export type { FileUploaderProps } from "./components/molecules/fileUploader/File
|
|
|
127
127
|
export { default as AvatarBubble } from "./components/molecules/proSwitch/AvatarBubble";
|
|
128
128
|
export { default as EmptyMessage } from "./components/molecules/emptyMessage/EmptyMessage";
|
|
129
129
|
export type { EmptyMessageProps } from "./components/molecules/emptyMessage/EmptyMessage";
|
|
130
|
+
export { default as AiText } from "./components/molecules/AiText/aiText";
|
|
131
|
+
export type { AiTextProps } from "./components/molecules/AiText/aiText";
|
package/dist/index.js
CHANGED
|
@@ -122,3 +122,5 @@ export { default as FileUploader } from "./components/molecules/fileUploader/Fil
|
|
|
122
122
|
export { default as AvatarBubble } from "./components/molecules/proSwitch/AvatarBubble";
|
|
123
123
|
// Empty Message
|
|
124
124
|
export { default as EmptyMessage } from "./components/molecules/emptyMessage/EmptyMessage";
|
|
125
|
+
// AiText
|
|
126
|
+
export { default as AiText } from "./components/molecules/AiText/aiText";
|