@entropix/react 0.2.0 → 0.3.0
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/dist/index.css +1015 -970
- package/dist/index.css.map +1 -1
- package/dist/styles/accordion.css +56 -54
- package/dist/styles/button.css +115 -113
- package/dist/styles/checkbox.css +101 -93
- package/dist/styles/dialog.css +88 -86
- package/dist/styles/index.css +3 -0
- package/dist/styles/input.css +144 -133
- package/dist/styles/layout.css +105 -103
- package/dist/styles/menu.css +51 -49
- package/dist/styles/radio.css +105 -98
- package/dist/styles/select.css +125 -120
- package/dist/styles/switch.css +44 -42
- package/dist/styles/tabs.css +70 -68
- package/dist/styles/toggle.css +40 -38
- package/package.json +2 -2
package/dist/styles/tabs.css
CHANGED
|
@@ -1,84 +1,86 @@
|
|
|
1
1
|
/* Tabs — @entropix/react */
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
@layer entropix {
|
|
4
|
+
.entropix-tabs {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
}
|
|
7
8
|
|
|
8
|
-
.entropix-tablist {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
.entropix-tablist[data-orientation="vertical"] {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
9
|
+
.entropix-tablist {
|
|
10
|
+
display: flex;
|
|
11
|
+
gap: var(--entropix-spacing-1);
|
|
12
|
+
border-bottom: 1px solid var(--entropix-color-border-default);
|
|
13
|
+
}
|
|
14
|
+
.entropix-tablist[data-orientation="vertical"] {
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
border-bottom: none;
|
|
17
|
+
border-right: 1px solid var(--entropix-color-border-default);
|
|
18
|
+
}
|
|
18
19
|
|
|
19
|
-
.entropix-tab {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
20
|
+
.entropix-tab {
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
padding: var(--entropix-spacing-2) var(--entropix-spacing-4);
|
|
25
|
+
border: none;
|
|
26
|
+
border-bottom: 2px solid transparent;
|
|
27
|
+
background: transparent;
|
|
28
|
+
font-family: var(--entropix-font-family-sans);
|
|
29
|
+
font-size: var(--entropix-font-size-sm);
|
|
30
|
+
font-weight: var(--entropix-font-weight-medium);
|
|
31
|
+
color: var(--entropix-color-text-secondary);
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
transition:
|
|
34
|
+
color var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
35
|
+
border-color var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
36
|
+
}
|
|
36
37
|
|
|
37
|
-
.entropix-tab:hover:not(:disabled) {
|
|
38
|
-
|
|
39
|
-
}
|
|
38
|
+
.entropix-tab:hover:not(:disabled) {
|
|
39
|
+
color: var(--entropix-color-text-primary);
|
|
40
|
+
}
|
|
40
41
|
|
|
41
|
-
.entropix-tab[data-state="active"] {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
42
|
+
.entropix-tab[data-state="active"] {
|
|
43
|
+
color: var(--entropix-color-action-primary-default);
|
|
44
|
+
border-bottom-color: var(--entropix-color-action-primary-default);
|
|
45
|
+
}
|
|
45
46
|
|
|
46
|
-
.entropix-tab:disabled,
|
|
47
|
-
.entropix-tab[aria-disabled="true"] {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
47
|
+
.entropix-tab:disabled,
|
|
48
|
+
.entropix-tab[aria-disabled="true"] {
|
|
49
|
+
opacity: 0.5;
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
}
|
|
51
52
|
|
|
52
|
-
.entropix-tab:focus-visible {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
53
|
+
.entropix-tab:focus-visible {
|
|
54
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
55
|
+
outline-offset: -2px;
|
|
56
|
+
border-radius: var(--entropix-radius-sm);
|
|
57
|
+
}
|
|
57
58
|
|
|
58
|
-
.entropix-tabpanel {
|
|
59
|
-
|
|
60
|
-
}
|
|
59
|
+
.entropix-tabpanel {
|
|
60
|
+
padding: var(--entropix-spacing-4);
|
|
61
|
+
}
|
|
61
62
|
|
|
62
|
-
/* === Responsive — Scrollable tabs on mobile === */
|
|
63
|
+
/* === Responsive — Scrollable tabs on mobile === */
|
|
63
64
|
|
|
64
|
-
@media (max-width: 767px) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
@media (max-width: 767px) {
|
|
66
|
+
.entropix-tablist {
|
|
67
|
+
overflow-x: auto;
|
|
68
|
+
-webkit-overflow-scrolling: touch;
|
|
69
|
+
scrollbar-width: none;
|
|
70
|
+
-ms-overflow-style: none;
|
|
71
|
+
}
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
.entropix-tablist::-webkit-scrollbar {
|
|
74
|
+
display: none;
|
|
75
|
+
}
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
.entropix-tab {
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
flex-shrink: 0;
|
|
80
|
+
}
|
|
80
81
|
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
.entropix-tabpanel {
|
|
83
|
+
padding: var(--entropix-spacing-3);
|
|
84
|
+
}
|
|
83
85
|
}
|
|
84
86
|
}
|
package/dist/styles/toggle.css
CHANGED
|
@@ -1,45 +1,47 @@
|
|
|
1
1
|
/* Toggle (checkbox) — @entropix/react */
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
3
|
+
@layer entropix {
|
|
4
|
+
.entropix-toggle {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
padding: var(--entropix-spacing-2) var(--entropix-spacing-3);
|
|
9
|
+
border: 1px solid var(--entropix-color-border-default);
|
|
10
|
+
border-radius: var(--entropix-radius-md);
|
|
11
|
+
background: var(--entropix-color-bg-primary);
|
|
12
|
+
color: var(--entropix-color-text-primary);
|
|
13
|
+
font-family: var(--entropix-font-family-sans);
|
|
14
|
+
font-size: var(--entropix-font-size-sm);
|
|
15
|
+
font-weight: var(--entropix-font-weight-medium);
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
user-select: none;
|
|
18
|
+
transition:
|
|
19
|
+
background var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
20
|
+
border-color var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
21
|
+
color var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
22
|
+
}
|
|
22
23
|
|
|
23
|
-
.entropix-toggle:hover:not(:disabled) {
|
|
24
|
-
|
|
25
|
-
}
|
|
24
|
+
.entropix-toggle:hover:not(:disabled) {
|
|
25
|
+
background: var(--entropix-color-action-secondary-hover);
|
|
26
|
+
}
|
|
26
27
|
|
|
27
|
-
.entropix-toggle[data-state="checked"] {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
.entropix-toggle[data-state="checked"]:hover:not(:disabled) {
|
|
33
|
-
|
|
34
|
-
}
|
|
28
|
+
.entropix-toggle[data-state="checked"] {
|
|
29
|
+
background: var(--entropix-color-action-primary-default);
|
|
30
|
+
color: var(--entropix-color-text-inverse);
|
|
31
|
+
border-color: transparent;
|
|
32
|
+
}
|
|
33
|
+
.entropix-toggle[data-state="checked"]:hover:not(:disabled) {
|
|
34
|
+
background: var(--entropix-color-action-primary-hover);
|
|
35
|
+
}
|
|
35
36
|
|
|
36
|
-
.entropix-toggle:disabled {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
37
|
+
.entropix-toggle:disabled {
|
|
38
|
+
opacity: 0.5;
|
|
39
|
+
cursor: not-allowed;
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
}
|
|
41
42
|
|
|
42
|
-
.entropix-toggle:focus-visible {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
.entropix-toggle:focus-visible {
|
|
44
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
45
|
+
outline-offset: 2px;
|
|
46
|
+
}
|
|
45
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entropix/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "React (Web) components for the Entropix design system — styled with CSS custom properties and design tokens",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"dist"
|
|
52
52
|
],
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@entropix/core": "0.
|
|
54
|
+
"@entropix/core": "0.3.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"react": "^18.0.0 || ^19.0.0",
|