@cgi-learning-hub/ui 1.8.0-dev.1757065909 → 1.8.0-dev.1757076760
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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("../../createSvgIcon-CcWpa9Le.cjs"),n=require("../Button/Button.cjs.js"),o=t.createSvgIcon(e.jsx("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd"),r=t.createSvgIcon(e.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),c={title:"Components/Button",component:n},
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("../../createSvgIcon-CcWpa9Le.cjs"),n=require("../Button/Button.cjs.js"),o=t.createSvgIcon(e.jsx("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd"),r=t.createSvgIcon(e.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),c={title:"Components/Button",component:n,argTypes:{color:{control:"select",options:["inherit","default","primary","secondary","error","info","success","warning"]},disabled:{control:"boolean"}}},s={args:{children:"Enregistrer",color:"primary",disabled:!1,startIcon:e.jsx(r,{}),variant:"contained",onClick:()=>alert("Alert")}},a={args:{children:"Ajouter un utilisateur",color:"secondary",disabled:!1,startIcon:e.jsx(o,{}),variant:"outlined",onClick:()=>alert("Alert")}},l={args:{children:"Annuler",color:"secondary",disabled:!1,variant:"text",onClick:()=>alert("Alert")}};exports.Contained=s;exports.Outlined=a;exports.Text=l;exports.default=c;
|
|
@@ -1,19 +1,37 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as t } from "../../createSvgIcon-DFIM5PqN.js";
|
|
3
|
+
import r from "../Button/Button.es.js";
|
|
4
|
+
const e = t(/* @__PURE__ */ o("path", {
|
|
5
5
|
d: "M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"
|
|
6
|
-
}), "PersonAdd"),
|
|
6
|
+
}), "PersonAdd"), n = t(/* @__PURE__ */ o("path", {
|
|
7
7
|
d: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"
|
|
8
8
|
}), "Save"), l = {
|
|
9
9
|
title: "Components/Button",
|
|
10
|
-
component:
|
|
10
|
+
component: r,
|
|
11
|
+
argTypes: {
|
|
12
|
+
color: {
|
|
13
|
+
control: "select",
|
|
14
|
+
options: [
|
|
15
|
+
"inherit",
|
|
16
|
+
"default",
|
|
17
|
+
"primary",
|
|
18
|
+
"secondary",
|
|
19
|
+
"error",
|
|
20
|
+
"info",
|
|
21
|
+
"success",
|
|
22
|
+
"warning"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
disabled: {
|
|
26
|
+
control: "boolean"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
11
29
|
}, i = {
|
|
12
30
|
args: {
|
|
13
31
|
children: "Enregistrer",
|
|
14
32
|
color: "primary",
|
|
15
33
|
disabled: !1,
|
|
16
|
-
startIcon: /* @__PURE__ */
|
|
34
|
+
startIcon: /* @__PURE__ */ o(n, {}),
|
|
17
35
|
variant: "contained",
|
|
18
36
|
onClick: () => alert("Alert")
|
|
19
37
|
}
|
|
@@ -22,7 +40,7 @@ const n = o(/* @__PURE__ */ t("path", {
|
|
|
22
40
|
children: "Ajouter un utilisateur",
|
|
23
41
|
color: "secondary",
|
|
24
42
|
disabled: !1,
|
|
25
|
-
startIcon: /* @__PURE__ */
|
|
43
|
+
startIcon: /* @__PURE__ */ o(e, {}),
|
|
26
44
|
variant: "outlined",
|
|
27
45
|
onClick: () => alert("Alert")
|
|
28
46
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "1.8.0-dev.
|
|
3
|
+
"version": "1.8.0-dev.1757076760",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "CGI Learning-hub Team",
|
|
6
6
|
"description": "@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features",
|