@cgi-learning-hub/ui 1.8.0-dev.1756387373 → 1.8.0-dev.1756391933
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";const
|
|
1
|
+
"use strict";const p=require("react/jsx-runtime"),x=require("../../DefaultPropsProvider--EgnwFDi.cjs"),B=require("../../Button-7-ViQGIl.cjs"),v=x.styled(B.Button)(({color:e,theme:s})=>{var d,a,c,b,m,f;const n=(c=(a=(d=s.components)==null?void 0:d.MuiButton)==null?void 0:a.variants)==null?void 0:c.find(i=>{var o;return((o=i.props)==null?void 0:o.variant)==="outlined"}),u=(f=(m=(b=s.components)==null?void 0:b.MuiButton)==null?void 0:m.variants)==null?void 0:f.find(i=>{var o;return((o=i.props)==null?void 0:o.variant)==="contained"}),r=n==null?void 0:n.style,t=u==null?void 0:u.style;return{minHeight:38,textTransform:"none",transition:"all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&.MuiButton-outlined":{...r??{},borderRadius:(r==null?void 0:r.borderRadius)??5,borderWidth:(r==null?void 0:r.borderWidth)??2,textTransform:(r==null?void 0:r.textTransform)??"none"},"&.MuiButton-contained":{...t??{},borderRadius:(t==null?void 0:t.borderRadius)??5,borderWidth:(t==null?void 0:t.borderWidth)??2,textTransform:(t==null?void 0:t.textTransform)??"none"}}}),R=({variant:e="outlined",...s})=>p.jsx(v,{variant:e,...s});module.exports=R;
|
|
@@ -1,32 +1,44 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { s as
|
|
3
|
-
import { B as
|
|
4
|
-
const
|
|
5
|
-
var
|
|
6
|
-
const
|
|
7
|
-
(
|
|
8
|
-
var
|
|
9
|
-
return ((
|
|
1
|
+
import { jsx as B } from "react/jsx-runtime";
|
|
2
|
+
import { s as c } from "../../DefaultPropsProvider-BwYGfRVu.js";
|
|
3
|
+
import { B as x } from "../../Button-Bb0YW9kM.js";
|
|
4
|
+
const T = c(x)(({ color: a, theme: s }) => {
|
|
5
|
+
var m, d, f, b, e, p;
|
|
6
|
+
const n = (f = (d = (m = s.components) == null ? void 0 : m.MuiButton) == null ? void 0 : d.variants) == null ? void 0 : f.find(
|
|
7
|
+
(u) => {
|
|
8
|
+
var t;
|
|
9
|
+
return ((t = u.props) == null ? void 0 : t.variant) === "outlined";
|
|
10
10
|
}
|
|
11
|
-
),
|
|
11
|
+
), i = (p = (e = (b = s.components) == null ? void 0 : b.MuiButton) == null ? void 0 : e.variants) == null ? void 0 : p.find(
|
|
12
|
+
(u) => {
|
|
13
|
+
var t;
|
|
14
|
+
return ((t = u.props) == null ? void 0 : t.variant) === "contained";
|
|
15
|
+
}
|
|
16
|
+
), r = n == null ? void 0 : n.style, o = i == null ? void 0 : i.style;
|
|
12
17
|
return {
|
|
13
18
|
minHeight: 38,
|
|
14
|
-
textTransform:
|
|
19
|
+
textTransform: "none",
|
|
15
20
|
transition: "all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
16
21
|
"&.MuiButton-outlined": {
|
|
17
|
-
...
|
|
18
|
-
borderRadius: (
|
|
19
|
-
borderWidth: (
|
|
22
|
+
...r ?? {},
|
|
23
|
+
borderRadius: (r == null ? void 0 : r.borderRadius) ?? 5,
|
|
24
|
+
borderWidth: (r == null ? void 0 : r.borderWidth) ?? 2,
|
|
25
|
+
textTransform: (r == null ? void 0 : r.textTransform) ?? "none"
|
|
20
26
|
/* "&:hover": {
|
|
21
27
|
//backgroundColor: theme.palette[color].main,
|
|
22
28
|
color: theme.palette.common.white,
|
|
23
29
|
},*/
|
|
30
|
+
},
|
|
31
|
+
"&.MuiButton-contained": {
|
|
32
|
+
...o ?? {},
|
|
33
|
+
borderRadius: (o == null ? void 0 : o.borderRadius) ?? 5,
|
|
34
|
+
borderWidth: (o == null ? void 0 : o.borderWidth) ?? 2,
|
|
35
|
+
textTransform: (o == null ? void 0 : o.textTransform) ?? "none"
|
|
24
36
|
}
|
|
25
37
|
};
|
|
26
|
-
}),
|
|
27
|
-
variant:
|
|
28
|
-
...
|
|
29
|
-
}) => /* @__PURE__ */
|
|
38
|
+
}), R = ({
|
|
39
|
+
variant: a = "outlined",
|
|
40
|
+
...s
|
|
41
|
+
}) => /* @__PURE__ */ B(T, { variant: a, ...s });
|
|
30
42
|
export {
|
|
31
|
-
|
|
43
|
+
R as default
|
|
32
44
|
};
|
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.1756391933",
|
|
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",
|