@purr-react-styled-components/utils.helpers 0.0.5 → 0.0.7
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/package.json +3 -1
- package/dist/_styled-css.d.ts +0 -5
- package/dist/index.cjs +0 -65
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -70
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purr-react-styled-components/utils.helpers",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -31,6 +31,8 @@
|
|
|
31
31
|
"scripts": {
|
|
32
32
|
"dev": "vite build --watch",
|
|
33
33
|
"build": "tsc && vite build",
|
|
34
|
+
"build:vite": "tsc && vite build",
|
|
35
|
+
"build:tsup": "tsup",
|
|
34
36
|
"lint": "eslint . --ext ts,tsx --max-warnings 0"
|
|
35
37
|
}
|
|
36
38
|
}
|
package/dist/_styled-css.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const getVariantStyle: (props: {
|
|
2
|
-
$variant: "outlined" | "filled" | "standard";
|
|
3
|
-
$disabled: boolean;
|
|
4
|
-
}) => import('styled-components').RuleSet<object>;
|
|
5
|
-
export declare const getInvisibleButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
package/dist/index.cjs
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("styled-components"),e=f=>(f==null?void 0:f.$variant)==="outlined"?f!=null&&f.$disabled?o.css`
|
|
2
|
-
border: 1px solid #ffffff80;
|
|
3
|
-
`:o.css`
|
|
4
|
-
border: 1px solid #ffffff3b;
|
|
5
|
-
|
|
6
|
-
&:hover {
|
|
7
|
-
border: 1px solid #ffffff;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&:focus,
|
|
11
|
-
&:focus-visible,
|
|
12
|
-
&:focus-within {
|
|
13
|
-
border: 1px solid #90caf9;
|
|
14
|
-
}
|
|
15
|
-
`:(f==null?void 0:f.$variant)==="filled"?f!=null&&f.$disabled?o.css`
|
|
16
|
-
border-bottom: 1px solid #ffffff80;
|
|
17
|
-
background-color: #ffffff17;
|
|
18
|
-
border-radius: 4px 4px 0px 0px;
|
|
19
|
-
`:o.css`
|
|
20
|
-
border-bottom: 1px solid #ffffffb3;
|
|
21
|
-
background-color: #ffffff17;
|
|
22
|
-
border-radius: 4px 4px 0px 0px;
|
|
23
|
-
|
|
24
|
-
&:hover {
|
|
25
|
-
border-bottom: 1px solid #ffffff;
|
|
26
|
-
background-color: #ffffff21;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&:focus,
|
|
30
|
-
&:focus-visible,
|
|
31
|
-
&:focus-within {
|
|
32
|
-
border-bottom: 1px solid #90caf9;
|
|
33
|
-
}
|
|
34
|
-
`:f!=null&&f.$disabled?o.css`
|
|
35
|
-
border-bottom: 1px solid #ffffff80;
|
|
36
|
-
border-radius: 0px;
|
|
37
|
-
`:o.css`
|
|
38
|
-
border-bottom: 1px solid #ffffffb3;
|
|
39
|
-
border-radius: 0px;
|
|
40
|
-
|
|
41
|
-
&:hover {
|
|
42
|
-
border-bottom: 1px solid #ffffff;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&:focus,
|
|
46
|
-
&:focus-visible,
|
|
47
|
-
&:focus-within {
|
|
48
|
-
border-bottom: 1px solid #90caf9;
|
|
49
|
-
}
|
|
50
|
-
`,i=o.button`
|
|
51
|
-
background: transparent;
|
|
52
|
-
border: none;
|
|
53
|
-
padding: 0;
|
|
54
|
-
margin: 0;
|
|
55
|
-
display: inline-block;
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
|
|
58
|
-
&:focus {
|
|
59
|
-
outline: none;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&:active {
|
|
63
|
-
outline: none;
|
|
64
|
-
}
|
|
65
|
-
`;exports.getInvisibleButton=i;exports.getVariantStyle=e;
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './_styled-css';
|
package/dist/index.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import i, { css as o } from "styled-components";
|
|
2
|
-
const e = (f) => (f == null ? void 0 : f.$variant) === "outlined" ? f != null && f.$disabled ? o`
|
|
3
|
-
border: 1px solid #ffffff80;
|
|
4
|
-
` : o`
|
|
5
|
-
border: 1px solid #ffffff3b;
|
|
6
|
-
|
|
7
|
-
&:hover {
|
|
8
|
-
border: 1px solid #ffffff;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&:focus,
|
|
12
|
-
&:focus-visible,
|
|
13
|
-
&:focus-within {
|
|
14
|
-
border: 1px solid #90caf9;
|
|
15
|
-
}
|
|
16
|
-
` : (f == null ? void 0 : f.$variant) === "filled" ? f != null && f.$disabled ? o`
|
|
17
|
-
border-bottom: 1px solid #ffffff80;
|
|
18
|
-
background-color: #ffffff17;
|
|
19
|
-
border-radius: 4px 4px 0px 0px;
|
|
20
|
-
` : o`
|
|
21
|
-
border-bottom: 1px solid #ffffffb3;
|
|
22
|
-
background-color: #ffffff17;
|
|
23
|
-
border-radius: 4px 4px 0px 0px;
|
|
24
|
-
|
|
25
|
-
&:hover {
|
|
26
|
-
border-bottom: 1px solid #ffffff;
|
|
27
|
-
background-color: #ffffff21;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:focus,
|
|
31
|
-
&:focus-visible,
|
|
32
|
-
&:focus-within {
|
|
33
|
-
border-bottom: 1px solid #90caf9;
|
|
34
|
-
}
|
|
35
|
-
` : f != null && f.$disabled ? o`
|
|
36
|
-
border-bottom: 1px solid #ffffff80;
|
|
37
|
-
border-radius: 0px;
|
|
38
|
-
` : o`
|
|
39
|
-
border-bottom: 1px solid #ffffffb3;
|
|
40
|
-
border-radius: 0px;
|
|
41
|
-
|
|
42
|
-
&:hover {
|
|
43
|
-
border-bottom: 1px solid #ffffff;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:focus,
|
|
47
|
-
&:focus-visible,
|
|
48
|
-
&:focus-within {
|
|
49
|
-
border-bottom: 1px solid #90caf9;
|
|
50
|
-
}
|
|
51
|
-
`, r = i.button`
|
|
52
|
-
background: transparent;
|
|
53
|
-
border: none;
|
|
54
|
-
padding: 0;
|
|
55
|
-
margin: 0;
|
|
56
|
-
display: inline-block;
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
|
|
59
|
-
&:focus {
|
|
60
|
-
outline: none;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&:active {
|
|
64
|
-
outline: none;
|
|
65
|
-
}
|
|
66
|
-
`;
|
|
67
|
-
export {
|
|
68
|
-
r as getInvisibleButton,
|
|
69
|
-
e as getVariantStyle
|
|
70
|
-
};
|