@cocso-ui/css 0.0.5-beta.30 → 0.0.5-beta.32

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": "@cocso-ui/css",
3
- "version": "0.0.5-beta.30",
3
+ "version": "0.0.5-beta.32",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cocso/cocso-ui.git",
package/react/body.css CHANGED
@@ -7,17 +7,17 @@
7
7
  }
8
8
 
9
9
  .cocso-body--size_lg {
10
- font-size: 19px;
10
+ font-size: 18px;
11
11
  }
12
12
 
13
13
  .cocso-body--size_md {
14
- font-size: 17px;
14
+ font-size: 16px;
15
15
  }
16
16
 
17
17
  .cocso-body--size_sm {
18
- font-size: 15px;
18
+ font-size: 14px;
19
19
  }
20
20
 
21
21
  .cocso-body--size_xs {
22
- font-size: 13px;
22
+ font-size: 12px;
23
23
  }
package/react/button.css CHANGED
@@ -38,42 +38,42 @@
38
38
  padding-inline: var(--number-5);
39
39
  min-width: var(--number-11);
40
40
  min-height: var(--number-11);
41
- font-size: 13px;
41
+ font-size: 12px;
42
42
  }
43
43
 
44
44
  .cocso-button--size_xs {
45
45
  padding-inline: var(--number-6);
46
46
  min-width: var(--number-12);
47
47
  min-height: var(--number-12);
48
- font-size: 15px;
48
+ font-size: 14px;
49
49
  }
50
50
 
51
51
  .cocso-button--size_sm {
52
52
  padding-inline: var(--number-7);
53
53
  min-width: var(--number-14);
54
54
  min-height: var(--number-14);
55
- font-size: 15px;
55
+ font-size: 14px;
56
56
  }
57
57
 
58
58
  .cocso-button--size_md {
59
59
  padding-inline: var(--number-8);
60
60
  min-width: var(--number-16);
61
61
  min-height: var(--number-16);
62
- font-size: 17px;
62
+ font-size: 16px;
63
63
  }
64
64
 
65
65
  .cocso-button--size_lg {
66
66
  padding-inline: var(--number-9);
67
67
  min-width: var(--number-17);
68
68
  min-height: var(--number-17);
69
- font-size: 19px;
69
+ font-size: 18px;
70
70
  }
71
71
 
72
72
  .cocso-button--size_xl {
73
73
  padding-inline: var(--number-10);
74
74
  min-width: var(--number-18);
75
75
  min-height: var(--number-18);
76
- font-size: 19px;
76
+ font-size: 18px;
77
77
  }
78
78
 
79
79
  .cocso-button--variant_primary {
package/react/heading.css CHANGED
@@ -19,15 +19,15 @@
19
19
  }
20
20
 
21
21
  .cocso-heading--size_sm {
22
- font-size: 19px;
22
+ font-size: 18px;
23
23
  }
24
24
 
25
25
  .cocso-heading--size_xs {
26
- font-size: 17px;
26
+ font-size: 16px;
27
27
  }
28
28
 
29
29
  .cocso-heading--size_2xs {
30
- font-size: 15px;
30
+ font-size: 14px;
31
31
  }
32
32
 
33
33
  @media (min-width: 768px) {
package/react/label.css CHANGED
@@ -7,17 +7,17 @@
7
7
  }
8
8
 
9
9
  .cocso-label--size_lg {
10
- font-size: 19px;
10
+ font-size: 18px;
11
11
  }
12
12
 
13
13
  .cocso-label--size_md {
14
- font-size: 17px;
14
+ font-size: 16px;
15
15
  }
16
16
 
17
17
  .cocso-label--size_sm {
18
- font-size: 15px;
18
+ font-size: 14px;
19
19
  }
20
20
 
21
21
  .cocso-label--size_xs {
22
- font-size: 13px;
22
+ font-size: 12px;
23
23
  }
package/react/link.css CHANGED
@@ -26,19 +26,19 @@
26
26
  }
27
27
 
28
28
  .cocso-link--size_lg {
29
- font-size: 19px;
29
+ font-size: 18px;
30
30
  }
31
31
 
32
32
  .cocso-link--size_md {
33
- font-size: 17px;
33
+ font-size: 16px;
34
34
  }
35
35
 
36
36
  .cocso-link--size_sm {
37
- font-size: 15px;
37
+ font-size: 14px;
38
38
  }
39
39
 
40
40
  .cocso-link--size_xs {
41
- font-size: 13px;
41
+ font-size: 12px;
42
42
  }
43
43
 
44
44
  .cocso-link--indicator_false {
@@ -12,7 +12,7 @@
12
12
  width: 100%;
13
13
  height: 100%;
14
14
  color: var(--color-text-basic);
15
- font-size: 15px;
15
+ font-size: 16px;
16
16
  font-weight: var(--font-weight-medium);
17
17
  text-align: center;
18
18
  text-transform: uppercase;
@@ -0,0 +1,61 @@
1
+ .cocso-switch-wrapper {
2
+ display: flex;
3
+ align-items: center;
4
+ gap: var(--number-5);
5
+ }
6
+
7
+ .cocso-switch {
8
+ position: relative;
9
+ cursor: pointer;
10
+ border-radius: var(--number-max);
11
+ background-color: var(--cocso-switch-background);
12
+ opacity: 1;
13
+ --cocso-switch-background: var(--color-palette-secondary-200);
14
+ }
15
+
16
+ .cocso-switch[data-state="checked"] {
17
+ --cocso-switch-background: var(--color-palette-primary-500);
18
+ }
19
+
20
+ .cocso-switch--disabled_true {
21
+ cursor: not-allowed;
22
+ opacity: 0.5;
23
+ }
24
+
25
+ .cocso-switch--size_lg {
26
+ width: var(--number-14);
27
+ height: var(--number-10);
28
+ }
29
+
30
+ .cocso-switch--size_md {
31
+ width: var(--number-12);
32
+ height: var(--number-9);
33
+ }
34
+
35
+ .cocso-switch-thumb {
36
+ display: block;
37
+ border-radius: var(--number-max);
38
+ background-color: var(--color-background-white);
39
+ transition: transform 0.1s ease;
40
+ will-change: transform;
41
+ }
42
+
43
+ .cocso-switch-thumb--size_lg {
44
+ width: var(--number-9);
45
+ height: var(--number-9);
46
+ transform: translateX(var(--number-2));
47
+ }
48
+
49
+ .cocso-switch-thumb--size_lg[data-state="checked"] {
50
+ transform: translateX(calc(var(--number-14) - var(--number-9) - var(--number-2)));
51
+ }
52
+
53
+ .cocso-switch-thumb--size_md {
54
+ width: var(--number-8);
55
+ height: var(--number-8);
56
+ transform: translateX(var(--number-2));
57
+ }
58
+
59
+ .cocso-switch-thumb--size_md[data-state="checked"] {
60
+ transform: translateX(calc(var(--number-12) - var(--number-8) - var(--number-2)));
61
+ }
package/root.css CHANGED
@@ -12,3 +12,4 @@
12
12
  @import './react/modal.css';
13
13
  @import './react/one-time-password-field.css';
14
14
  @import './react/spinner.css';
15
+ @import './react/switch.css';