@cocso-ui/css 0.0.5-beta.31 → 0.0.5-beta.33

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.31",
3
+ "version": "0.0.5-beta.33",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cocso/cocso-ui.git",
@@ -0,0 +1,39 @@
1
+ .cocso-pagination {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ margin-inline: auto;
6
+ }
7
+
8
+ .cocso-pagination-arrow:disabled {
9
+ opacity: 0.5;
10
+ cursor: not-allowed;
11
+ }
12
+
13
+ .cocso-pagination-arrow > svg {
14
+ width: var(--number-8);
15
+ height: var(--number-8);
16
+ flex-shrink: 0;
17
+ }
18
+
19
+ .cocso-pagination-arrow, .cocso-pagination-item {
20
+ display: inline-flex;
21
+ align-items: center;
22
+ justify-content: center;
23
+ width: var(--number-13);
24
+ height: var(--number-13);
25
+ color: var(--cocso-pagination-color);
26
+ font-size: 16px;
27
+ font-weight: var(--cocso-pagination-font-weight);
28
+ border-radius: var(--number-3);
29
+ background-color: var(--cocso-pagination-background);
30
+ --cocso-pagination-color: var(--color-text-basic);
31
+ --cocso-pagination-background: inherit;
32
+ --cocso-pagination-font-weight: inherit;
33
+ }
34
+
35
+ .cocso-pagination-item[data-active="true"] {
36
+ --cocso-pagination-color: var(--color-palette-gray-0);
37
+ --cocso-pagination-background: var(--color-element-primary);
38
+ --cocso-pagination-font-weight: var(--font-weight-semi-bold);
39
+ }
@@ -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
@@ -11,4 +11,6 @@
11
11
  @import './react/link.css';
12
12
  @import './react/modal.css';
13
13
  @import './react/one-time-password-field.css';
14
+ @import './react/pagination.css';
14
15
  @import './react/spinner.css';
16
+ @import './react/switch.css';