@entropix/react 0.3.0 → 1.0.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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +994 -1015
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/accordion.css +54 -56
- package/dist/styles/button.css +113 -115
- package/dist/styles/checkbox.css +99 -101
- package/dist/styles/dialog.css +86 -88
- package/dist/styles/index.css +0 -2
- package/dist/styles/input.css +142 -144
- package/dist/styles/layout.css +103 -105
- package/dist/styles/menu.css +49 -51
- package/dist/styles/radio.css +103 -105
- package/dist/styles/select.css +123 -125
- package/dist/styles/switch.css +45 -44
- package/dist/styles/tabs.css +68 -70
- package/dist/styles/toggle.css +38 -40
- package/package.json +2 -2
package/dist/styles/select.css
CHANGED
|
@@ -1,150 +1,148 @@
|
|
|
1
1
|
/* Select — @entropix/react */
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
3
|
+
.entropix-select {
|
|
4
|
+
--select-border-color: var(--entropix-color-border-default);
|
|
5
|
+
--select-border-radius: var(--entropix-radius-md);
|
|
6
|
+
--select-bg: var(--entropix-color-bg-primary);
|
|
7
|
+
--select-dropdown-shadow: var(--entropix-shadow-lg);
|
|
8
|
+
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: var(--entropix-spacing-1);
|
|
12
|
+
position: relative;
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
16
15
|
|
|
17
|
-
|
|
16
|
+
/* === Label === */
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
.entropix-select-label {
|
|
19
|
+
display: block;
|
|
20
|
+
font-family: var(--entropix-font-family-sans);
|
|
21
|
+
font-size: var(--entropix-font-size-sm);
|
|
22
|
+
font-weight: var(--entropix-font-weight-medium);
|
|
23
|
+
color: var(--entropix-color-text-primary);
|
|
24
|
+
line-height: var(--entropix-line-height-normal);
|
|
25
|
+
}
|
|
27
26
|
|
|
28
|
-
|
|
27
|
+
/* === Trigger === */
|
|
28
|
+
|
|
29
|
+
.entropix-select-trigger {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
gap: var(--entropix-spacing-2);
|
|
34
|
+
width: 100%;
|
|
35
|
+
border: 1px solid var(--select-border-color);
|
|
36
|
+
border-radius: var(--select-border-radius);
|
|
37
|
+
background: var(--select-bg);
|
|
38
|
+
color: var(--entropix-color-text-primary);
|
|
39
|
+
font-family: var(--entropix-font-family-sans);
|
|
40
|
+
font-size: var(--entropix-font-size-sm);
|
|
41
|
+
line-height: var(--entropix-line-height-normal);
|
|
42
|
+
padding: var(--entropix-spacing-2) var(--entropix-spacing-3);
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
user-select: none;
|
|
45
|
+
text-align: left;
|
|
46
|
+
transition:
|
|
47
|
+
border-color var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
48
|
+
box-shadow var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
49
|
+
}
|
|
29
50
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
border: 1px solid var(--select-border-color);
|
|
37
|
-
border-radius: var(--select-border-radius);
|
|
38
|
-
background: var(--select-bg);
|
|
39
|
-
color: var(--entropix-color-text-primary);
|
|
40
|
-
font-family: var(--entropix-font-family-sans);
|
|
41
|
-
font-size: var(--entropix-font-size-sm);
|
|
42
|
-
line-height: var(--entropix-line-height-normal);
|
|
43
|
-
padding: var(--entropix-spacing-2) var(--entropix-spacing-3);
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
user-select: none;
|
|
46
|
-
text-align: left;
|
|
47
|
-
transition:
|
|
48
|
-
border-color var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
49
|
-
box-shadow var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
50
|
-
}
|
|
51
|
+
.entropix-select-trigger__value {
|
|
52
|
+
flex: 1;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
}
|
|
51
57
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
.entropix-select-trigger__chevron {
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
font-size: var(--entropix-font-size-xs);
|
|
61
|
+
color: var(--entropix-color-text-secondary);
|
|
62
|
+
line-height: 1;
|
|
63
|
+
}
|
|
58
64
|
|
|
59
|
-
|
|
60
|
-
flex-shrink: 0;
|
|
61
|
-
font-size: var(--entropix-font-size-xs);
|
|
62
|
-
color: var(--entropix-color-text-secondary);
|
|
63
|
-
line-height: 1;
|
|
64
|
-
}
|
|
65
|
+
/* === Trigger Hover === */
|
|
65
66
|
|
|
66
|
-
|
|
67
|
+
.entropix-select-trigger:hover:not(:disabled) {
|
|
68
|
+
border-color: var(--entropix-color-border-hover);
|
|
69
|
+
}
|
|
67
70
|
|
|
68
|
-
|
|
69
|
-
border-color: var(--entropix-color-border-hover);
|
|
70
|
-
}
|
|
71
|
+
/* === Trigger Focus === */
|
|
71
72
|
|
|
72
|
-
|
|
73
|
+
.entropix-select-trigger:focus-visible {
|
|
74
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
75
|
+
outline-offset: 2px;
|
|
76
|
+
}
|
|
73
77
|
|
|
74
|
-
|
|
75
|
-
outline: 2px solid var(--entropix-color-border-focus);
|
|
76
|
-
outline-offset: 2px;
|
|
77
|
-
}
|
|
78
|
+
/* === Trigger Disabled === */
|
|
78
79
|
|
|
79
|
-
|
|
80
|
+
.entropix-select-trigger:disabled {
|
|
81
|
+
opacity: 0.5;
|
|
82
|
+
cursor: not-allowed;
|
|
83
|
+
pointer-events: none;
|
|
84
|
+
}
|
|
80
85
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
/* === Content (Dropdown) === */
|
|
87
|
+
|
|
88
|
+
.entropix-select-content {
|
|
89
|
+
position: absolute;
|
|
90
|
+
top: 100%;
|
|
91
|
+
left: 0;
|
|
92
|
+
right: 0;
|
|
93
|
+
z-index: 50;
|
|
94
|
+
margin-top: var(--entropix-spacing-1);
|
|
95
|
+
border: 1px solid var(--select-border-color);
|
|
96
|
+
border-radius: var(--select-border-radius);
|
|
97
|
+
background: var(--select-bg);
|
|
98
|
+
box-shadow: var(--select-dropdown-shadow);
|
|
99
|
+
padding: var(--entropix-spacing-1) 0;
|
|
100
|
+
max-height: 240px;
|
|
101
|
+
overflow-y: auto;
|
|
102
|
+
}
|
|
86
103
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
max-height: 240px;
|
|
102
|
-
overflow-y: auto;
|
|
103
|
-
}
|
|
104
|
+
/* === Option === */
|
|
105
|
+
|
|
106
|
+
.entropix-select-option {
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
padding: var(--entropix-spacing-2) var(--entropix-spacing-3);
|
|
110
|
+
font-family: var(--entropix-font-family-sans);
|
|
111
|
+
font-size: var(--entropix-font-size-sm);
|
|
112
|
+
color: var(--entropix-color-text-primary);
|
|
113
|
+
line-height: var(--entropix-line-height-normal);
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
user-select: none;
|
|
116
|
+
transition: background var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
117
|
+
}
|
|
104
118
|
|
|
105
|
-
|
|
119
|
+
.entropix-select-option:hover:not([data-disabled]) {
|
|
120
|
+
background: var(--entropix-color-action-secondary-hover);
|
|
121
|
+
}
|
|
106
122
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
font-family: var(--entropix-font-family-sans);
|
|
112
|
-
font-size: var(--entropix-font-size-sm);
|
|
113
|
-
color: var(--entropix-color-text-primary);
|
|
114
|
-
line-height: var(--entropix-line-height-normal);
|
|
115
|
-
cursor: pointer;
|
|
116
|
-
user-select: none;
|
|
117
|
-
transition: background var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
118
|
-
}
|
|
123
|
+
.entropix-select-option[data-state="selected"] {
|
|
124
|
+
background: var(--entropix-color-action-secondary-default);
|
|
125
|
+
font-weight: var(--entropix-font-weight-medium);
|
|
126
|
+
}
|
|
119
127
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
128
|
+
.entropix-select-option[data-state="selected"]:hover {
|
|
129
|
+
background: var(--entropix-color-action-secondary-hover);
|
|
130
|
+
}
|
|
123
131
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
132
|
+
.entropix-select-option[data-disabled] {
|
|
133
|
+
opacity: 0.5;
|
|
134
|
+
cursor: not-allowed;
|
|
135
|
+
pointer-events: none;
|
|
136
|
+
}
|
|
128
137
|
|
|
129
|
-
|
|
130
|
-
background: var(--entropix-color-action-secondary-hover);
|
|
131
|
-
}
|
|
138
|
+
/* === Responsive — Touch-friendly sizing on mobile === */
|
|
132
139
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
pointer-events: none;
|
|
140
|
+
@media (max-width: 767px) {
|
|
141
|
+
.entropix-select-trigger {
|
|
142
|
+
min-height: 44px;
|
|
137
143
|
}
|
|
138
144
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
@media (max-width: 767px) {
|
|
142
|
-
.entropix-select-trigger {
|
|
143
|
-
min-height: 44px;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.entropix-select-option {
|
|
147
|
-
min-height: 44px;
|
|
148
|
-
}
|
|
145
|
+
.entropix-select-option {
|
|
146
|
+
min-height: 44px;
|
|
149
147
|
}
|
|
150
148
|
}
|
package/dist/styles/switch.css
CHANGED
|
@@ -1,52 +1,53 @@
|
|
|
1
1
|
/* Switch — @entropix/react */
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
.entropix-switch {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
width: 44px;
|
|
8
|
+
height: 24px;
|
|
9
|
+
padding: 2px;
|
|
10
|
+
border: none;
|
|
11
|
+
border-radius: var(--entropix-radius-full);
|
|
12
|
+
background: var(--entropix-color-gray-300);
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
transition: background var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
15
|
+
font-size: 0;
|
|
16
|
+
color: transparent;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
}
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
.entropix-switch::after {
|
|
21
|
+
content: "";
|
|
22
|
+
display: block;
|
|
23
|
+
width: 20px;
|
|
24
|
+
height: 20px;
|
|
25
|
+
border-radius: var(--entropix-radius-full);
|
|
26
|
+
background: var(--entropix-color-white);
|
|
27
|
+
box-shadow: var(--entropix-shadow-sm);
|
|
28
|
+
transition: transform var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
29
|
+
}
|
|
28
30
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
.entropix-switch[data-state="checked"] {
|
|
32
|
+
background: var(--entropix-color-action-primary-default);
|
|
33
|
+
}
|
|
34
|
+
.entropix-switch[data-state="checked"]::after {
|
|
35
|
+
transform: translateX(20px);
|
|
36
|
+
}
|
|
35
37
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
.entropix-switch:hover:not(:disabled) {
|
|
39
|
+
background: var(--entropix-color-gray-400);
|
|
40
|
+
}
|
|
41
|
+
.entropix-switch[data-state="checked"]:hover:not(:disabled) {
|
|
42
|
+
background: var(--entropix-color-action-primary-hover);
|
|
43
|
+
}
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
.entropix-switch:disabled {
|
|
46
|
+
opacity: 0.5;
|
|
47
|
+
cursor: not-allowed;
|
|
48
|
+
}
|
|
47
49
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
50
|
+
.entropix-switch:focus-visible {
|
|
51
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
52
|
+
outline-offset: 2px;
|
|
52
53
|
}
|
package/dist/styles/tabs.css
CHANGED
|
@@ -1,86 +1,84 @@
|
|
|
1
1
|
/* Tabs — @entropix/react */
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
3
|
+
.entropix-tabs {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
}
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
+
}
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
+
}
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
.entropix-tab:hover:not(:disabled) {
|
|
38
|
+
color: var(--entropix-color-text-primary);
|
|
39
|
+
}
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
+
}
|
|
46
45
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
.entropix-tab:disabled,
|
|
47
|
+
.entropix-tab[aria-disabled="true"] {
|
|
48
|
+
opacity: 0.5;
|
|
49
|
+
cursor: not-allowed;
|
|
50
|
+
}
|
|
52
51
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
+
}
|
|
58
57
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
.entropix-tabpanel {
|
|
59
|
+
padding: var(--entropix-spacing-4);
|
|
60
|
+
}
|
|
62
61
|
|
|
63
|
-
|
|
62
|
+
/* === Responsive — Scrollable tabs on mobile === */
|
|
64
63
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
+
}
|
|
72
71
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
.entropix-tablist::-webkit-scrollbar {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
76
75
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
.entropix-tab {
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
flex-shrink: 0;
|
|
79
|
+
}
|
|
81
80
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
81
|
+
.entropix-tabpanel {
|
|
82
|
+
padding: var(--entropix-spacing-3);
|
|
85
83
|
}
|
|
86
84
|
}
|
package/dist/styles/toggle.css
CHANGED
|
@@ -1,47 +1,45 @@
|
|
|
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
|
-
|
|
22
|
-
}
|
|
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
|
+
}
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
.entropix-toggle:hover:not(:disabled) {
|
|
24
|
+
background: var(--entropix-color-action-secondary-hover);
|
|
25
|
+
}
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
+
}
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
.entropix-toggle:disabled {
|
|
37
|
+
opacity: 0.5;
|
|
38
|
+
cursor: not-allowed;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
42
41
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
42
|
+
.entropix-toggle:focus-visible {
|
|
43
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
44
|
+
outline-offset: 2px;
|
|
47
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entropix/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.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": "1.0.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"react": "^18.0.0 || ^19.0.0",
|