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