forstok-ui-lib 8.8.0 → 8.8.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "8.8.0",
3
+ "version": "8.8.1",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -1,31 +1,31 @@
1
- import styled, { css } from 'styled-components'
1
+ import styled, { css } from "styled-components";
2
2
 
3
- import IconCheckTick from '../../assets/images/icons/checkmark-tick.svg'
3
+ import IconCheckTick from "../../assets/images/icons/checkmark-tick.svg";
4
4
 
5
5
  export const RadioContainer = styled.div`
6
6
  display: grid;
7
7
  grid-auto-flow: column;
8
8
  justify-self: self-start;
9
- `
9
+ `;
10
10
 
11
11
  export const RadioSpan = styled.span<{ $mode?: string }>`
12
12
  position: relative;
13
13
  cursor: pointer;
14
14
  display: inline-block;
15
15
  height: 16px;
16
- transition: .28s ease;
16
+ transition: 0.28s ease;
17
17
  user-select: none;
18
18
  padding-left: 22px;
19
- &:before,
19
+ &:before,
20
20
  &:after {
21
- content: '';
21
+ content: "";
22
22
  position: absolute;
23
23
  left: 0;
24
24
  top: 0;
25
25
  width: 10px;
26
26
  height: 10px;
27
27
  z-index: 0;
28
- transition: .28s ease;
28
+ transition: 0.28s ease;
29
29
  border: 2px solid #5a5a5a;
30
30
  border-radius: 50%;
31
31
  }
@@ -37,25 +37,25 @@ export const RadioSpan = styled.span<{ $mode?: string }>`
37
37
  font-size: 90%;
38
38
  color: #2d3c48;
39
39
  }
40
- ${({ $mode }:{ $mode?: string }) => {
41
- if ($mode === 'check') {
42
- return css`
43
- &:before,
40
+ ${({ $mode }: { $mode?: string }) => {
41
+ if ($mode === "check") {
42
+ return css`
43
+ &:before,
44
44
  &:after {
45
45
  border: none;
46
46
  }
47
- `
48
- } else if ($mode === 'sort') {
49
- return css`
47
+ `;
48
+ } else if ($mode === "sort") {
49
+ return css`
50
50
  padding-left: 0;
51
- &:before,
51
+ &:before,
52
52
  &:after {
53
53
  border: none;
54
54
  }
55
- `
56
- }
57
- }}
58
- `
55
+ `;
56
+ }
57
+ }}
58
+ `;
59
59
 
60
60
  export const RadioInput = styled.input<{ $mode?: string }>`
61
61
  position: absolute;
@@ -72,11 +72,11 @@ export const RadioInput = styled.input<{ $mode?: string }>`
72
72
  border: 2px solid transparent;
73
73
  }
74
74
  }
75
- ${({ $mode }:{ $mode?: string }) => {
76
- if ($mode === 'check') {
77
- return css`
75
+ ${({ $mode }: { $mode?: string }) => {
76
+ if ($mode === "check") {
77
+ return css`
78
78
  &:checked + ${RadioSpan} {
79
- &:before,
79
+ &:before,
80
80
  &:after {
81
81
  border: none;
82
82
  transform: none;
@@ -87,11 +87,11 @@ export const RadioInput = styled.input<{ $mode?: string }>`
87
87
  width: 14px;
88
88
  }
89
89
  }
90
- `
91
- } else if ($mode === 'sort') {
92
- return css`
90
+ `;
91
+ } else if ($mode === "sort") {
92
+ return css`
93
93
  &:checked + ${RadioSpan} {
94
- &:before,
94
+ &:before,
95
95
  &:after {
96
96
  border: none;
97
97
  transform: none;
@@ -101,7 +101,20 @@ export const RadioInput = styled.input<{ $mode?: string }>`
101
101
  width: 14px;
102
102
  }
103
103
  }
104
- `
104
+ `;
105
+ } else if ($mode === "blue") {
106
+ return css`
107
+ &:checked + ${RadioSpan} {
108
+ &:before {
109
+ border: 2px solid var(--pri-clr-ln__fc);
110
+ }
111
+ &:after {
112
+ transform: scale(0.6);
113
+ background-color: var(--pri-clr-ln__fc);
114
+ border: 2px solid transparent;
115
+ }
116
+ }
117
+ `;
105
118
  }
106
119
  }}
107
- `
120
+ `;