@cgi-learning-hub/ui 1.3.4-dev.1734361486 → 1.3.4-dev.1734362003
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"),c=require("react"),t=require("../Button/Button.cjs.js"),u=require("../Dialog/Dialog.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("react"),t=require("../Button/Button.cjs.js"),u=require("../Dialog/Dialog.cjs.js"),i=require("../../DialogTitle-kTwRLVKr.cjs"),l=require("../../DialogContent-C8YTQP0Y.cjs"),d=a=>{const[s,o]=c.useState(!1),r=()=>o(!0),n=()=>o(!1);return e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"outlined",onClick:r,children:"Open dialog"}),e.jsxs(u,{...a,open:s,onClose:n,children:[e.jsx(i.DialogTitle,{children:"Dialog title"}),e.jsx(l.DialogContent,{children:e.jsxs(i.DialogContentText,{children:["Dialog content text",e.jsx("br",{}),e.jsx("br",{}),"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."]})}),e.jsxs(l.DialogActions,{children:[e.jsx(t,{variant:"text",onClick:n,children:"Cancel"}),e.jsx(t,{variant:"text",onClick:()=>!0,children:"Save"})]})]})]})},m={title:"Components/Dialog",component:d,argTypes:{disableEscapeKeyDown:{control:"boolean"},fullScreen:{control:"boolean"},fullWidth:{control:"boolean"},maxWidth:{control:"select",options:["xs","sm","md","lg","xl",!1]},showCloseButton:{control:"boolean"}}},p={args:{disableEscapeKeyDown:!1,fullScreen:!1,fullWidth:!1,maxWidth:"sm",showCloseButton:!0}};exports.Default=p;exports.default=m;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as e, Fragment as s, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as c } from "react";
|
|
3
3
|
import t from "../Button/Button.es.js";
|
|
4
4
|
import u from "../Dialog/Dialog.es.js";
|
|
@@ -6,19 +6,19 @@ import { a as m, D as d } from "../../DialogTitle-BeUT_vuo.js";
|
|
|
6
6
|
import { a as p, D as f } from "../../DialogContent-BD5Ba5iS.js";
|
|
7
7
|
const g = (n) => {
|
|
8
8
|
const [a, i] = c(!1), r = () => i(!0), l = () => i(!1);
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ e(s, { children: [
|
|
10
|
+
/* @__PURE__ */ o(t, { variant: "outlined", onClick: r, children: "Open dialog" }),
|
|
11
|
+
/* @__PURE__ */ e(u, { ...n, open: a, onClose: l, children: [
|
|
12
|
+
/* @__PURE__ */ o(m, { children: "Dialog title" }),
|
|
13
|
+
/* @__PURE__ */ o(p, { children: /* @__PURE__ */ e(d, { children: [
|
|
14
14
|
"Dialog content text",
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
15
|
+
/* @__PURE__ */ o("br", {}),
|
|
16
|
+
/* @__PURE__ */ o("br", {}),
|
|
17
17
|
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
|
18
18
|
] }) }),
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ e(f, { children: [
|
|
20
|
+
/* @__PURE__ */ o(t, { variant: "text", onClick: l, children: "Cancel" }),
|
|
21
|
+
/* @__PURE__ */ o(t, { variant: "text", onClick: () => !0, children: "Save" })
|
|
22
22
|
] })
|
|
23
23
|
] })
|
|
24
24
|
] });
|
|
@@ -38,17 +38,21 @@ const g = (n) => {
|
|
|
38
38
|
maxWidth: {
|
|
39
39
|
control: "select",
|
|
40
40
|
options: ["xs", "sm", "md", "lg", "xl", !1]
|
|
41
|
+
},
|
|
42
|
+
showCloseButton: {
|
|
43
|
+
control: "boolean"
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
|
-
},
|
|
46
|
+
}, w = {
|
|
44
47
|
args: {
|
|
45
48
|
disableEscapeKeyDown: !1,
|
|
46
49
|
fullScreen: !1,
|
|
47
50
|
fullWidth: !1,
|
|
48
|
-
maxWidth: "sm"
|
|
51
|
+
maxWidth: "sm",
|
|
52
|
+
showCloseButton: !0
|
|
49
53
|
}
|
|
50
54
|
};
|
|
51
55
|
export {
|
|
52
|
-
|
|
56
|
+
w as Default,
|
|
53
57
|
q as default
|
|
54
58
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "1.3.4-dev.
|
|
3
|
+
"version": "1.3.4-dev.1734362003",
|
|
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",
|