@kvdbil/components 14.2.15 → 14.2.16
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,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("../../typography/ButtonText/index.js");require("react"),require("styled-components");const i={smaller:n.ButtonSmallTextStyle,small:n.ButtonRegularTextStyle,regular:n.ButtonRegularTextStyle,large:n.ButtonLargeTextStyle},e=(r,o)=>`
|
|
2
2
|
color: ${r.colors[o].main};
|
|
3
3
|
border: 2px solid ${r.colors[o].main};
|
|
4
4
|
background-color: transparent;
|
|
@@ -13,20 +13,17 @@
|
|
|
13
13
|
color: ${r.colors[o].light};
|
|
14
14
|
}
|
|
15
15
|
`,t=(r,o)=>`
|
|
16
|
-
color: ${
|
|
17
|
-
background-color: transparent;
|
|
16
|
+
color: ${r.colors[o].main};
|
|
18
17
|
|
|
19
|
-
:
|
|
20
|
-
color: ${r.colors[o].dark};
|
|
21
|
-
}
|
|
18
|
+
background-color: transparent;
|
|
22
19
|
|
|
23
|
-
:active {
|
|
20
|
+
:hover, :active {
|
|
24
21
|
color: ${r.colors[o].dark};
|
|
25
22
|
}
|
|
26
|
-
`,
|
|
23
|
+
`,l=r=>`
|
|
27
24
|
color: ${r.colors.gray.light1};
|
|
28
25
|
cursor: not-allowed;
|
|
29
|
-
`,
|
|
26
|
+
`,a={solid:(r,o,s)=>`
|
|
30
27
|
color: ${r.colors.text.light};
|
|
31
28
|
background-color: ${r.colors[o][s]};
|
|
32
29
|
|
|
@@ -39,11 +36,11 @@
|
|
|
39
36
|
border-color: ${r.colors[o].light};
|
|
40
37
|
filter: brightness(1.1)
|
|
41
38
|
}
|
|
42
|
-
`,outline:e,flat:t};exports.colorStyles=
|
|
43
|
-
${
|
|
39
|
+
`,outline:e,flat:t};exports.colorStyles=a,exports.disabledColorStyles=(r,o)=>o==="solid"?`
|
|
40
|
+
${l(r)};
|
|
44
41
|
background-color: ${r.colors.gray.light4};`:o==="outline"?`
|
|
45
|
-
${
|
|
46
|
-
border: 2px solid ${r.colors.gray.light1};`:
|
|
42
|
+
${l(r)};
|
|
43
|
+
border: 2px solid ${r.colors.gray.light1};`:l(r),exports.flatColorStyles=t,exports.fontSizes=i,exports.largeSizeStyles=()=>`
|
|
47
44
|
padding: 0.25rem 1.5rem;
|
|
48
45
|
min-height: 3.75rem;
|
|
49
46
|
`,exports.outlineColorStyles=e,exports.regularSizeStyles=()=>`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ButtonSmallTextStyle as
|
|
1
|
+
import{ButtonSmallTextStyle as i,ButtonRegularTextStyle as e,ButtonLargeTextStyle as a}from"../../typography/ButtonText/index.js";import"react";import"styled-components";const n={smaller:i,small:e,regular:e,large:a},d=()=>`
|
|
2
2
|
padding: 0.25rem 0.75rem;
|
|
3
3
|
min-height: 2.5rem;
|
|
4
4
|
`,g=()=>`
|
|
@@ -35,14 +35,11 @@ import{ButtonSmallTextStyle as a,ButtonRegularTextStyle as e,ButtonLargeTextStyl
|
|
|
35
35
|
color: ${o.colors[r].light};
|
|
36
36
|
}
|
|
37
37
|
`,s=(o,r)=>`
|
|
38
|
-
color: ${
|
|
39
|
-
background-color: transparent;
|
|
38
|
+
color: ${o.colors[r].main};
|
|
40
39
|
|
|
41
|
-
:
|
|
42
|
-
color: ${o.colors[r].dark};
|
|
43
|
-
}
|
|
40
|
+
background-color: transparent;
|
|
44
41
|
|
|
45
|
-
:active {
|
|
42
|
+
:hover, :active {
|
|
46
43
|
color: ${o.colors[r].dark};
|
|
47
44
|
}
|
|
48
45
|
`,l=o=>`
|
|
@@ -52,4 +49,4 @@ import{ButtonSmallTextStyle as a,ButtonRegularTextStyle as e,ButtonLargeTextStyl
|
|
|
52
49
|
${l(o)};
|
|
53
50
|
background-color: ${o.colors.gray.light4};`:r==="outline"?`
|
|
54
51
|
${l(o)};
|
|
55
|
-
border: 2px solid ${o.colors.gray.light1};`:l(o),
|
|
52
|
+
border: 2px solid ${o.colors.gray.light1};`:l(o),p={solid:h,outline:t,flat:s};export{p as colorStyles,$ as disabledColorStyles,s as flatColorStyles,n as fontSizes,m as largeSizeStyles,t as outlineColorStyles,g as regularSizeStyles,d as smallerAndSmallSizeStyles};
|