@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.
@@ -1,84 +1,86 @@
1
1
  /* Tabs — @entropix/react */
2
2
 
3
- .entropix-tabs {
4
- display: flex;
5
- flex-direction: column;
6
- }
3
+ @layer entropix {
4
+ .entropix-tabs {
5
+ display: flex;
6
+ flex-direction: column;
7
+ }
7
8
 
8
- .entropix-tablist {
9
- display: flex;
10
- gap: var(--entropix-spacing-1);
11
- border-bottom: 1px solid var(--entropix-color-border-default);
12
- }
13
- .entropix-tablist[data-orientation="vertical"] {
14
- flex-direction: column;
15
- border-bottom: none;
16
- border-right: 1px solid var(--entropix-color-border-default);
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
- display: inline-flex;
21
- align-items: center;
22
- justify-content: center;
23
- padding: var(--entropix-spacing-2) var(--entropix-spacing-4);
24
- border: none;
25
- border-bottom: 2px solid transparent;
26
- background: transparent;
27
- font-family: var(--entropix-font-family-sans);
28
- font-size: var(--entropix-font-size-sm);
29
- font-weight: var(--entropix-font-weight-medium);
30
- color: var(--entropix-color-text-secondary);
31
- cursor: pointer;
32
- transition:
33
- color var(--entropix-duration-fast) var(--entropix-easing-default),
34
- border-color var(--entropix-duration-fast) var(--entropix-easing-default);
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
- color: var(--entropix-color-text-primary);
39
- }
38
+ .entropix-tab:hover:not(:disabled) {
39
+ color: var(--entropix-color-text-primary);
40
+ }
40
41
 
41
- .entropix-tab[data-state="active"] {
42
- color: var(--entropix-color-action-primary-default);
43
- border-bottom-color: var(--entropix-color-action-primary-default);
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
- opacity: 0.5;
49
- cursor: not-allowed;
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
- outline: 2px solid var(--entropix-color-border-focus);
54
- outline-offset: -2px;
55
- border-radius: var(--entropix-radius-sm);
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
- padding: var(--entropix-spacing-4);
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
- .entropix-tablist {
66
- overflow-x: auto;
67
- -webkit-overflow-scrolling: touch;
68
- scrollbar-width: none;
69
- -ms-overflow-style: none;
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
- .entropix-tablist::-webkit-scrollbar {
73
- display: none;
74
- }
73
+ .entropix-tablist::-webkit-scrollbar {
74
+ display: none;
75
+ }
75
76
 
76
- .entropix-tab {
77
- white-space: nowrap;
78
- flex-shrink: 0;
79
- }
77
+ .entropix-tab {
78
+ white-space: nowrap;
79
+ flex-shrink: 0;
80
+ }
80
81
 
81
- .entropix-tabpanel {
82
- padding: var(--entropix-spacing-3);
82
+ .entropix-tabpanel {
83
+ padding: var(--entropix-spacing-3);
84
+ }
83
85
  }
84
86
  }
@@ -1,45 +1,47 @@
1
1
  /* Toggle (checkbox) — @entropix/react */
2
2
 
3
- .entropix-toggle {
4
- display: inline-flex;
5
- align-items: center;
6
- justify-content: center;
7
- padding: var(--entropix-spacing-2) var(--entropix-spacing-3);
8
- border: 1px solid var(--entropix-color-border-default);
9
- border-radius: var(--entropix-radius-md);
10
- background: var(--entropix-color-bg-primary);
11
- color: var(--entropix-color-text-primary);
12
- font-family: var(--entropix-font-family-sans);
13
- font-size: var(--entropix-font-size-sm);
14
- font-weight: var(--entropix-font-weight-medium);
15
- cursor: pointer;
16
- user-select: none;
17
- transition:
18
- background var(--entropix-duration-fast) var(--entropix-easing-default),
19
- border-color var(--entropix-duration-fast) var(--entropix-easing-default),
20
- color var(--entropix-duration-fast) var(--entropix-easing-default);
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
- background: var(--entropix-color-action-secondary-hover);
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
- background: var(--entropix-color-action-primary-default);
29
- color: var(--entropix-color-text-inverse);
30
- border-color: transparent;
31
- }
32
- .entropix-toggle[data-state="checked"]:hover:not(:disabled) {
33
- background: var(--entropix-color-action-primary-hover);
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
- opacity: 0.5;
38
- cursor: not-allowed;
39
- pointer-events: none;
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
- outline: 2px solid var(--entropix-color-border-focus);
44
- outline-offset: 2px;
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.2.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.2.0"
54
+ "@entropix/core": "0.3.0"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "react": "^18.0.0 || ^19.0.0",