@purr-react-styled-components/utils.helpers 0.0.7 → 0.0.8

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 ADDED
@@ -0,0 +1,58 @@
1
+ 'use strict';var e=require('styled-components');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var e__default=/*#__PURE__*/_interopDefault(e);var i=o=>o?.$variant==="outlined"?o?.$disabled?e.css`
2
+ border: 1px solid #e5e7eb;
3
+ border-radius: 8px;
4
+ opacity: 0.5;
5
+ cursor: not-allowed;
6
+ `:e.css`
7
+ border: 1px solid #e5e7eb;
8
+ border-radius: 8px;
9
+ cursor: pointer;
10
+
11
+ &:hover {
12
+ background-color: #fafaf9;
13
+ }
14
+ `:o?.$variant==="filled"?o?.$disabled?e.css`
15
+ background-color: #e5e7eb;
16
+ border: 1px solid #e5e7eb;
17
+ border-radius: 8px;
18
+ opacity: 0.5;
19
+ cursor: not-allowed;
20
+ `:e.css`
21
+ background-color: #fafaf9;
22
+ border: 1px solid #e5e7eb;
23
+ border-radius: 8px;
24
+ cursor: pointer;
25
+
26
+ &:hover {
27
+ background-color: #fafaf9;
28
+ border: 1px solid #fafaf9;
29
+ }
30
+ `:o?.$disabled?e.css`
31
+ border-bottom: 1px solid #e5e7eb;
32
+ border-radius: 8px 8px 0px 0px;
33
+ opacity: 0.5;
34
+ cursor: not-allowed;
35
+ `:e.css`
36
+ border-bottom: 1px solid #e5e7eb;
37
+ border-radius: 8px 8px 0px 0px;
38
+ cursor: pointer;
39
+
40
+ &:hover {
41
+ border-bottom: 1px solid #fafaf9;
42
+ }
43
+ `,a=e__default.default.button`
44
+ background: transparent;
45
+ border: none;
46
+ padding: 0;
47
+ margin: 0;
48
+ display: inline-block;
49
+ cursor: pointer;
50
+
51
+ &:focus {
52
+ outline: none;
53
+ }
54
+
55
+ &:active {
56
+ outline: none;
57
+ }
58
+ `;exports.getInvisibleButton=a;exports.getVariantStyle=i;
@@ -0,0 +1,11 @@
1
+ import * as styled_components_dist_types from 'styled-components/dist/types';
2
+ import * as react from 'react';
3
+ import * as styled_components from 'styled-components';
4
+
5
+ declare const getVariantStyle: (props: {
6
+ $variant: "outlined" | "filled" | "standard";
7
+ $disabled: boolean;
8
+ }) => styled_components.RuleSet<object>;
9
+ declare const getInvisibleButton: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
10
+
11
+ export { getInvisibleButton, getVariantStyle };
@@ -0,0 +1,11 @@
1
+ import * as styled_components_dist_types from 'styled-components/dist/types';
2
+ import * as react from 'react';
3
+ import * as styled_components from 'styled-components';
4
+
5
+ declare const getVariantStyle: (props: {
6
+ $variant: "outlined" | "filled" | "standard";
7
+ $disabled: boolean;
8
+ }) => styled_components.RuleSet<object>;
9
+ declare const getInvisibleButton: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
10
+
11
+ export { getInvisibleButton, getVariantStyle };
package/dist/index.js ADDED
@@ -0,0 +1,58 @@
1
+ import e,{css}from'styled-components';var i=o=>o?.$variant==="outlined"?o?.$disabled?css`
2
+ border: 1px solid #e5e7eb;
3
+ border-radius: 8px;
4
+ opacity: 0.5;
5
+ cursor: not-allowed;
6
+ `:css`
7
+ border: 1px solid #e5e7eb;
8
+ border-radius: 8px;
9
+ cursor: pointer;
10
+
11
+ &:hover {
12
+ background-color: #fafaf9;
13
+ }
14
+ `:o?.$variant==="filled"?o?.$disabled?css`
15
+ background-color: #e5e7eb;
16
+ border: 1px solid #e5e7eb;
17
+ border-radius: 8px;
18
+ opacity: 0.5;
19
+ cursor: not-allowed;
20
+ `:css`
21
+ background-color: #fafaf9;
22
+ border: 1px solid #e5e7eb;
23
+ border-radius: 8px;
24
+ cursor: pointer;
25
+
26
+ &:hover {
27
+ background-color: #fafaf9;
28
+ border: 1px solid #fafaf9;
29
+ }
30
+ `:o?.$disabled?css`
31
+ border-bottom: 1px solid #e5e7eb;
32
+ border-radius: 8px 8px 0px 0px;
33
+ opacity: 0.5;
34
+ cursor: not-allowed;
35
+ `:css`
36
+ border-bottom: 1px solid #e5e7eb;
37
+ border-radius: 8px 8px 0px 0px;
38
+ cursor: pointer;
39
+
40
+ &:hover {
41
+ border-bottom: 1px solid #fafaf9;
42
+ }
43
+ `,a=e.button`
44
+ background: transparent;
45
+ border: none;
46
+ padding: 0;
47
+ margin: 0;
48
+ display: inline-block;
49
+ cursor: pointer;
50
+
51
+ &:focus {
52
+ outline: none;
53
+ }
54
+
55
+ &:active {
56
+ outline: none;
57
+ }
58
+ `;export{a as getInvisibleButton,i as getVariantStyle};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purr-react-styled-components/utils.helpers",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",