@kvdbil/components 14.2.12 → 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 l=require("../../typography/ButtonText/index.js");require("react"),require("styled-components");const a={smaller:l.ButtonSmallTextStyle,small:l.ButtonRegularTextStyle,regular:l.ButtonRegularTextStyle,large:l.ButtonLargeTextStyle},e=(r,o)=>`
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: ${o!=="neutral"?r.colors[o].main:r.colors.neutral.light};
17
- background-color: transparent;
16
+ color: ${r.colors[o].main};
18
17
 
19
- :hover {
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
- `,n=r=>`
23
+ `,l=r=>`
27
24
  color: ${r.colors.gray.light1};
28
25
  cursor: not-allowed;
29
- `,i={solid:(r,o,s)=>`
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=i,exports.disabledColorStyles=(r,o)=>o==="solid"?`
43
- ${n(r)};
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
- ${n(r)};
46
- border: 2px solid ${r.colors.gray.light1};`:n(r),exports.flatColorStyles=t,exports.fontSizes=a,exports.largeSizeStyles=()=>`
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 a,ButtonRegularTextStyle as e,ButtonLargeTextStyle as i}from"../../typography/ButtonText/index.js";import"react";import"styled-components";const n={smaller:a,small:e,regular:e,large:i},d=()=>`
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: ${r!=="neutral"?o.colors[r].main:o.colors.neutral.light};
39
- background-color: transparent;
38
+ color: ${o.colors[r].main};
40
39
 
41
- :hover {
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),u={solid:h,outline:t,flat:s};export{u as colorStyles,$ as disabledColorStyles,s as flatColorStyles,n as fontSizes,m as largeSizeStyles,t as outlineColorStyles,g as regularSizeStyles,d as smallerAndSmallSizeStyles};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kvdbil/components",
3
- "version": "14.2.12",
3
+ "version": "14.2.16",
4
4
  "sideEffects": false,
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -18,7 +18,7 @@
18
18
  "test:watch": "cross-env DEBUG_PRINT_LIMIT=14000 jest --verbose --watchAll",
19
19
  "type-check": "tsc",
20
20
  "generateIcons": "svgr --icon 1em --template ./src/icons/template.js -d ./src/icons/components ./src/icons/svgs --typescript",
21
- "build": "yarn run generateIcons && rollup -c && yarn create-declaration",
21
+ "build": "yarn run generateIcons && yarn lint && yarn test && rollup -c && yarn create-declaration",
22
22
  "build:rollup": "rollup -c && cp package.json dist/",
23
23
  "build:storybook": "storybook build",
24
24
  "lint": "eslint --fix --ext .js,.jsx,.ts,.tsx,.mdx src",