@purr-react-styled-components/utils.helpers 0.0.4 → 0.0.6
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/index.cjs +35 -42
- package/dist/index.js +37 -44
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,53 +1,46 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
border: 1px solid #
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("styled-components"),o=e=>(e==null?void 0:e.$variant)==="outlined"?e!=null&&e.$disabled?r.css`
|
|
2
|
+
border: 1px solid #e5e7eb;
|
|
3
|
+
border-radius: 8px;
|
|
4
|
+
opacity: 0.5;
|
|
5
|
+
cursor: not-allowed;
|
|
6
|
+
`:r.css`
|
|
7
|
+
border: 1px solid #e5e7eb;
|
|
8
|
+
border-radius: 8px;
|
|
9
|
+
cursor: pointer;
|
|
5
10
|
|
|
6
11
|
&:hover {
|
|
7
|
-
|
|
12
|
+
background-color: #fafaf9;
|
|
8
13
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
border-bottom: 1px solid #ffffffb3;
|
|
21
|
-
background-color: #ffffff17;
|
|
22
|
-
border-radius: 4px 4px 0px 0px;
|
|
14
|
+
`:(e==null?void 0:e.$variant)==="filled"?e!=null&&e.$disabled?r.css`
|
|
15
|
+
background-color: #e5e7eb;
|
|
16
|
+
border: 1px solid #e5e7eb;
|
|
17
|
+
border-radius: 8px;
|
|
18
|
+
opacity: 0.5;
|
|
19
|
+
cursor: not-allowed;
|
|
20
|
+
`:r.css`
|
|
21
|
+
background-color: #fafaf9;
|
|
22
|
+
border: 1px solid #e5e7eb;
|
|
23
|
+
border-radius: 8px;
|
|
24
|
+
cursor: pointer;
|
|
23
25
|
|
|
24
26
|
&:hover {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&:focus,
|
|
30
|
-
&:focus-visible,
|
|
31
|
-
&:focus-within {
|
|
32
|
-
border-bottom: 1px solid #90caf9;
|
|
27
|
+
background-color: #fafaf9;
|
|
28
|
+
border: 1px solid #fafaf9;
|
|
33
29
|
}
|
|
34
|
-
`:
|
|
35
|
-
border-bottom: 1px solid #
|
|
36
|
-
border-radius: 0px;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
`:e!=null&&e.$disabled?r.css`
|
|
31
|
+
border-bottom: 1px solid #e5e7eb;
|
|
32
|
+
border-radius: 8px 8px 0px 0px;
|
|
33
|
+
opacity: 0.5;
|
|
34
|
+
cursor: not-allowed;
|
|
35
|
+
`:r.css`
|
|
36
|
+
border-bottom: 1px solid #e5e7eb;
|
|
37
|
+
border-radius: 8px 8px 0px 0px;
|
|
38
|
+
cursor: pointer;
|
|
40
39
|
|
|
41
40
|
&:hover {
|
|
42
|
-
border-bottom: 1px solid #
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&:focus,
|
|
46
|
-
&:focus-visible,
|
|
47
|
-
&:focus-within {
|
|
48
|
-
border-bottom: 1px solid #90caf9;
|
|
41
|
+
border-bottom: 1px solid #fafaf9;
|
|
49
42
|
}
|
|
50
|
-
`,
|
|
43
|
+
`,t=r.button`
|
|
51
44
|
background: transparent;
|
|
52
45
|
border: none;
|
|
53
46
|
padding: 0;
|
|
@@ -62,4 +55,4 @@
|
|
|
62
55
|
&:active {
|
|
63
56
|
outline: none;
|
|
64
57
|
}
|
|
65
|
-
`;exports.getInvisibleButton=
|
|
58
|
+
`;exports.getInvisibleButton=t;exports.getVariantStyle=o;
|
package/dist/index.js
CHANGED
|
@@ -1,54 +1,47 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
border: 1px solid #
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import o, { css as r } from "styled-components";
|
|
2
|
+
const i = (e) => (e == null ? void 0 : e.$variant) === "outlined" ? e != null && e.$disabled ? r`
|
|
3
|
+
border: 1px solid #e5e7eb;
|
|
4
|
+
border-radius: 8px;
|
|
5
|
+
opacity: 0.5;
|
|
6
|
+
cursor: not-allowed;
|
|
7
|
+
` : r`
|
|
8
|
+
border: 1px solid #e5e7eb;
|
|
9
|
+
border-radius: 8px;
|
|
10
|
+
cursor: pointer;
|
|
6
11
|
|
|
7
12
|
&:hover {
|
|
8
|
-
|
|
13
|
+
background-color: #fafaf9;
|
|
9
14
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
border-bottom: 1px solid #ffffffb3;
|
|
22
|
-
background-color: #ffffff17;
|
|
23
|
-
border-radius: 4px 4px 0px 0px;
|
|
15
|
+
` : (e == null ? void 0 : e.$variant) === "filled" ? e != null && e.$disabled ? r`
|
|
16
|
+
background-color: #e5e7eb;
|
|
17
|
+
border: 1px solid #e5e7eb;
|
|
18
|
+
border-radius: 8px;
|
|
19
|
+
opacity: 0.5;
|
|
20
|
+
cursor: not-allowed;
|
|
21
|
+
` : r`
|
|
22
|
+
background-color: #fafaf9;
|
|
23
|
+
border: 1px solid #e5e7eb;
|
|
24
|
+
border-radius: 8px;
|
|
25
|
+
cursor: pointer;
|
|
24
26
|
|
|
25
27
|
&:hover {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:focus,
|
|
31
|
-
&:focus-visible,
|
|
32
|
-
&:focus-within {
|
|
33
|
-
border-bottom: 1px solid #90caf9;
|
|
28
|
+
background-color: #fafaf9;
|
|
29
|
+
border: 1px solid #fafaf9;
|
|
34
30
|
}
|
|
35
|
-
` :
|
|
36
|
-
border-bottom: 1px solid #
|
|
37
|
-
border-radius: 0px;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
` : e != null && e.$disabled ? r`
|
|
32
|
+
border-bottom: 1px solid #e5e7eb;
|
|
33
|
+
border-radius: 8px 8px 0px 0px;
|
|
34
|
+
opacity: 0.5;
|
|
35
|
+
cursor: not-allowed;
|
|
36
|
+
` : r`
|
|
37
|
+
border-bottom: 1px solid #e5e7eb;
|
|
38
|
+
border-radius: 8px 8px 0px 0px;
|
|
39
|
+
cursor: pointer;
|
|
41
40
|
|
|
42
41
|
&:hover {
|
|
43
|
-
border-bottom: 1px solid #
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:focus,
|
|
47
|
-
&:focus-visible,
|
|
48
|
-
&:focus-within {
|
|
49
|
-
border-bottom: 1px solid #90caf9;
|
|
42
|
+
border-bottom: 1px solid #fafaf9;
|
|
50
43
|
}
|
|
51
|
-
`,
|
|
44
|
+
`, t = o.button`
|
|
52
45
|
background: transparent;
|
|
53
46
|
border: none;
|
|
54
47
|
padding: 0;
|
|
@@ -65,6 +58,6 @@ const e = (f) => (f == null ? void 0 : f.$variant) === "outlined" ? f != null &&
|
|
|
65
58
|
}
|
|
66
59
|
`;
|
|
67
60
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
61
|
+
t as getInvisibleButton,
|
|
62
|
+
i as getVariantStyle
|
|
70
63
|
};
|