@entropix/react 0.1.1 → 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.cjs +468 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1043 -588
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +183 -2
- package/dist/index.d.ts +183 -2
- package/dist/index.js +462 -4
- package/dist/index.js.map +1 -1
- package/dist/styles/accordion.css +56 -54
- package/dist/styles/button.css +115 -113
- package/dist/styles/checkbox.css +121 -0
- package/dist/styles/dialog.css +88 -86
- package/dist/styles/index.css +7 -0
- package/dist/styles/input.css +178 -0
- package/dist/styles/layout.css +105 -103
- package/dist/styles/menu.css +51 -49
- package/dist/styles/radio.css +130 -0
- package/dist/styles/select.css +150 -0
- package/dist/styles/switch.css +44 -42
- package/dist/styles/tabs.css +70 -68
- package/dist/styles/toggle.css +40 -38
- package/package.json +4 -4
package/dist/index.css
CHANGED
|
@@ -1,641 +1,1096 @@
|
|
|
1
1
|
/* src/styles/button.css */
|
|
2
|
-
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
gap: var(--entropix-button-gap);
|
|
7
|
-
border: 1px solid transparent;
|
|
8
|
-
font-family: var(--entropix-font-family-sans);
|
|
9
|
-
font-size: var(--entropix-button-font-size);
|
|
10
|
-
font-weight: var(--entropix-button-font-weight);
|
|
11
|
-
line-height: var(--entropix-button-line-height);
|
|
12
|
-
border-radius: var(--entropix-button-border-radius);
|
|
13
|
-
padding: var(--entropix-button-padding-y) var(--entropix-button-padding-x);
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
text-decoration: none;
|
|
16
|
-
user-select: none;
|
|
17
|
-
transition:
|
|
18
|
-
background var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
19
|
-
color var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
20
|
-
border-color var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
21
|
-
box-shadow var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
22
|
-
}
|
|
23
|
-
.entropix-button--primary {
|
|
24
|
-
background: var(--entropix-button-primary-bg);
|
|
25
|
-
color: var(--entropix-button-primary-text);
|
|
26
|
-
border-color: var(--entropix-button-primary-border);
|
|
27
|
-
}
|
|
28
|
-
.entropix-button--primary:hover:not(:disabled) {
|
|
29
|
-
background: var(--entropix-button-primary-bg-hover);
|
|
30
|
-
}
|
|
31
|
-
.entropix-button--primary:active:not(:disabled) {
|
|
32
|
-
background: var(--entropix-button-primary-bg-active);
|
|
33
|
-
}
|
|
34
|
-
.entropix-button--secondary {
|
|
35
|
-
background: var(--entropix-button-secondary-bg);
|
|
36
|
-
color: var(--entropix-button-secondary-text);
|
|
37
|
-
border-color: var(--entropix-button-secondary-border);
|
|
38
|
-
}
|
|
39
|
-
.entropix-button--secondary:hover:not(:disabled) {
|
|
40
|
-
background: var(--entropix-button-secondary-bg-hover);
|
|
41
|
-
}
|
|
42
|
-
.entropix-button--secondary:active:not(:disabled) {
|
|
43
|
-
background: var(--entropix-button-secondary-bg-active);
|
|
44
|
-
}
|
|
45
|
-
.entropix-button--outline {
|
|
46
|
-
background: transparent;
|
|
47
|
-
color: var(--entropix-color-text-primary);
|
|
48
|
-
border-color: var(--entropix-color-border-default);
|
|
49
|
-
}
|
|
50
|
-
.entropix-button--outline:hover:not(:disabled) {
|
|
51
|
-
background: var(--entropix-color-action-secondary-hover);
|
|
52
|
-
}
|
|
53
|
-
.entropix-button--outline:active:not(:disabled) {
|
|
54
|
-
background: var(--entropix-color-action-secondary-active);
|
|
55
|
-
}
|
|
56
|
-
.entropix-button--ghost {
|
|
57
|
-
background: transparent;
|
|
58
|
-
color: var(--entropix-color-text-primary);
|
|
59
|
-
border-color: transparent;
|
|
60
|
-
}
|
|
61
|
-
.entropix-button--ghost:hover:not(:disabled) {
|
|
62
|
-
background: var(--entropix-color-action-secondary-default);
|
|
63
|
-
}
|
|
64
|
-
.entropix-button--ghost:active:not(:disabled) {
|
|
65
|
-
background: var(--entropix-color-action-secondary-hover);
|
|
66
|
-
}
|
|
67
|
-
.entropix-button--danger {
|
|
68
|
-
background: var(--entropix-button-danger-bg);
|
|
69
|
-
color: var(--entropix-button-danger-text);
|
|
70
|
-
border-color: var(--entropix-button-danger-border);
|
|
71
|
-
}
|
|
72
|
-
.entropix-button--danger:hover:not(:disabled) {
|
|
73
|
-
background: var(--entropix-button-danger-bg-hover);
|
|
74
|
-
}
|
|
75
|
-
.entropix-button--danger:active:not(:disabled) {
|
|
76
|
-
background: var(--entropix-button-danger-bg-active);
|
|
77
|
-
}
|
|
78
|
-
.entropix-button--sm {
|
|
79
|
-
padding: var(--entropix-spacing-1) var(--entropix-spacing-3);
|
|
80
|
-
font-size: var(--entropix-font-size-xs);
|
|
81
|
-
border-radius: var(--entropix-radius-sm);
|
|
82
|
-
}
|
|
83
|
-
.entropix-button--md {
|
|
84
|
-
padding: var(--entropix-button-padding-y) var(--entropix-button-padding-x);
|
|
85
|
-
font-size: var(--entropix-button-font-size);
|
|
86
|
-
}
|
|
87
|
-
.entropix-button--lg {
|
|
88
|
-
padding: var(--entropix-spacing-3) var(--entropix-spacing-6);
|
|
89
|
-
font-size: var(--entropix-font-size-base);
|
|
90
|
-
border-radius: var(--entropix-radius-lg);
|
|
91
|
-
}
|
|
92
|
-
.entropix-button:disabled,
|
|
93
|
-
.entropix-button[data-state=disabled],
|
|
94
|
-
.entropix-button[data-state=loading] {
|
|
95
|
-
opacity: 0.5;
|
|
96
|
-
cursor: not-allowed;
|
|
97
|
-
pointer-events: none;
|
|
98
|
-
}
|
|
99
|
-
.entropix-button:focus-visible {
|
|
100
|
-
outline: 2px solid var(--entropix-color-border-focus);
|
|
101
|
-
outline-offset: 2px;
|
|
102
|
-
}
|
|
103
|
-
@media (max-width: 767px) {
|
|
2
|
+
@layer entropix {
|
|
104
3
|
.entropix-button {
|
|
105
|
-
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
gap: var(--entropix-button-gap);
|
|
8
|
+
border: 1px solid transparent;
|
|
9
|
+
font-family: var(--entropix-font-family-sans);
|
|
10
|
+
font-size: var(--entropix-button-font-size);
|
|
11
|
+
font-weight: var(--entropix-button-font-weight);
|
|
12
|
+
line-height: var(--entropix-button-line-height);
|
|
13
|
+
border-radius: var(--entropix-button-border-radius);
|
|
14
|
+
padding: var(--entropix-button-padding-y) var(--entropix-button-padding-x);
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
text-decoration: none;
|
|
17
|
+
user-select: none;
|
|
18
|
+
transition:
|
|
19
|
+
background var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
20
|
+
color var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
21
|
+
border-color var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
22
|
+
box-shadow var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
23
|
+
}
|
|
24
|
+
.entropix-button--primary {
|
|
25
|
+
background: var(--entropix-button-primary-bg);
|
|
26
|
+
color: var(--entropix-button-primary-text);
|
|
27
|
+
border-color: var(--entropix-button-primary-border);
|
|
28
|
+
}
|
|
29
|
+
.entropix-button--primary:hover:not(:disabled) {
|
|
30
|
+
background: var(--entropix-button-primary-bg-hover);
|
|
31
|
+
}
|
|
32
|
+
.entropix-button--primary:active:not(:disabled) {
|
|
33
|
+
background: var(--entropix-button-primary-bg-active);
|
|
34
|
+
}
|
|
35
|
+
.entropix-button--secondary {
|
|
36
|
+
background: var(--entropix-button-secondary-bg);
|
|
37
|
+
color: var(--entropix-button-secondary-text);
|
|
38
|
+
border-color: var(--entropix-button-secondary-border);
|
|
39
|
+
}
|
|
40
|
+
.entropix-button--secondary:hover:not(:disabled) {
|
|
41
|
+
background: var(--entropix-button-secondary-bg-hover);
|
|
42
|
+
}
|
|
43
|
+
.entropix-button--secondary:active:not(:disabled) {
|
|
44
|
+
background: var(--entropix-button-secondary-bg-active);
|
|
45
|
+
}
|
|
46
|
+
.entropix-button--outline {
|
|
47
|
+
background: transparent;
|
|
48
|
+
color: var(--entropix-color-text-primary);
|
|
49
|
+
border-color: var(--entropix-color-border-default);
|
|
50
|
+
}
|
|
51
|
+
.entropix-button--outline:hover:not(:disabled) {
|
|
52
|
+
background: var(--entropix-color-action-secondary-hover);
|
|
53
|
+
}
|
|
54
|
+
.entropix-button--outline:active:not(:disabled) {
|
|
55
|
+
background: var(--entropix-color-action-secondary-active);
|
|
56
|
+
}
|
|
57
|
+
.entropix-button--ghost {
|
|
58
|
+
background: transparent;
|
|
59
|
+
color: var(--entropix-color-text-primary);
|
|
60
|
+
border-color: transparent;
|
|
61
|
+
}
|
|
62
|
+
.entropix-button--ghost:hover:not(:disabled) {
|
|
63
|
+
background: var(--entropix-color-action-secondary-default);
|
|
64
|
+
}
|
|
65
|
+
.entropix-button--ghost:active:not(:disabled) {
|
|
66
|
+
background: var(--entropix-color-action-secondary-hover);
|
|
67
|
+
}
|
|
68
|
+
.entropix-button--danger {
|
|
69
|
+
background: var(--entropix-button-danger-bg);
|
|
70
|
+
color: var(--entropix-button-danger-text);
|
|
71
|
+
border-color: var(--entropix-button-danger-border);
|
|
72
|
+
}
|
|
73
|
+
.entropix-button--danger:hover:not(:disabled) {
|
|
74
|
+
background: var(--entropix-button-danger-bg-hover);
|
|
75
|
+
}
|
|
76
|
+
.entropix-button--danger:active:not(:disabled) {
|
|
77
|
+
background: var(--entropix-button-danger-bg-active);
|
|
106
78
|
}
|
|
107
79
|
.entropix-button--sm {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
80
|
+
padding: var(--entropix-spacing-1) var(--entropix-spacing-3);
|
|
81
|
+
font-size: var(--entropix-font-size-xs);
|
|
82
|
+
border-radius: var(--entropix-radius-sm);
|
|
83
|
+
}
|
|
84
|
+
.entropix-button--md {
|
|
85
|
+
padding: var(--entropix-button-padding-y) var(--entropix-button-padding-x);
|
|
86
|
+
font-size: var(--entropix-button-font-size);
|
|
87
|
+
}
|
|
88
|
+
.entropix-button--lg {
|
|
89
|
+
padding: var(--entropix-spacing-3) var(--entropix-spacing-6);
|
|
90
|
+
font-size: var(--entropix-font-size-base);
|
|
91
|
+
border-radius: var(--entropix-radius-lg);
|
|
92
|
+
}
|
|
93
|
+
.entropix-button:disabled,
|
|
94
|
+
.entropix-button[data-state=disabled],
|
|
95
|
+
.entropix-button[data-state=loading] {
|
|
96
|
+
opacity: 0.5;
|
|
97
|
+
cursor: not-allowed;
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
}
|
|
100
|
+
.entropix-button:focus-visible {
|
|
101
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
102
|
+
outline-offset: 2px;
|
|
103
|
+
}
|
|
104
|
+
@media (max-width: 767px) {
|
|
105
|
+
.entropix-button {
|
|
106
|
+
min-height: 44px;
|
|
107
|
+
}
|
|
108
|
+
.entropix-button--sm {
|
|
109
|
+
min-height: 36px;
|
|
110
|
+
padding: var(--entropix-spacing-2) var(--entropix-spacing-3);
|
|
111
|
+
font-size: var(--entropix-font-size-sm);
|
|
112
|
+
}
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
/* src/styles/toggle.css */
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
117
|
+
@layer entropix {
|
|
118
|
+
.entropix-toggle {
|
|
119
|
+
display: inline-flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
padding: var(--entropix-spacing-2) var(--entropix-spacing-3);
|
|
123
|
+
border: 1px solid var(--entropix-color-border-default);
|
|
124
|
+
border-radius: var(--entropix-radius-md);
|
|
125
|
+
background: var(--entropix-color-bg-primary);
|
|
126
|
+
color: var(--entropix-color-text-primary);
|
|
127
|
+
font-family: var(--entropix-font-family-sans);
|
|
128
|
+
font-size: var(--entropix-font-size-sm);
|
|
129
|
+
font-weight: var(--entropix-font-weight-medium);
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
user-select: none;
|
|
132
|
+
transition:
|
|
133
|
+
background var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
134
|
+
border-color var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
135
|
+
color var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
136
|
+
}
|
|
137
|
+
.entropix-toggle:hover:not(:disabled) {
|
|
138
|
+
background: var(--entropix-color-action-secondary-hover);
|
|
139
|
+
}
|
|
140
|
+
.entropix-toggle[data-state=checked] {
|
|
141
|
+
background: var(--entropix-color-action-primary-default);
|
|
142
|
+
color: var(--entropix-color-text-inverse);
|
|
143
|
+
border-color: transparent;
|
|
144
|
+
}
|
|
145
|
+
.entropix-toggle[data-state=checked]:hover:not(:disabled) {
|
|
146
|
+
background: var(--entropix-color-action-primary-hover);
|
|
147
|
+
}
|
|
148
|
+
.entropix-toggle:disabled {
|
|
149
|
+
opacity: 0.5;
|
|
150
|
+
cursor: not-allowed;
|
|
151
|
+
pointer-events: none;
|
|
152
|
+
}
|
|
153
|
+
.entropix-toggle:focus-visible {
|
|
154
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
155
|
+
outline-offset: 2px;
|
|
156
|
+
}
|
|
153
157
|
}
|
|
154
158
|
|
|
155
159
|
/* src/styles/switch.css */
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
160
|
+
@layer entropix {
|
|
161
|
+
.entropix-switch {
|
|
162
|
+
position: relative;
|
|
163
|
+
display: inline-flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
width: 44px;
|
|
166
|
+
height: 24px;
|
|
167
|
+
padding: 2px;
|
|
168
|
+
border: none;
|
|
169
|
+
border-radius: var(--entropix-radius-full);
|
|
170
|
+
background: var(--entropix-color-gray-300);
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
transition: background var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
173
|
+
}
|
|
174
|
+
.entropix-switch::after {
|
|
175
|
+
content: "";
|
|
176
|
+
display: block;
|
|
177
|
+
width: 20px;
|
|
178
|
+
height: 20px;
|
|
179
|
+
border-radius: var(--entropix-radius-full);
|
|
180
|
+
background: var(--entropix-color-white);
|
|
181
|
+
box-shadow: var(--entropix-shadow-sm);
|
|
182
|
+
transition: transform var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
183
|
+
}
|
|
184
|
+
.entropix-switch[data-state=checked] {
|
|
185
|
+
background: var(--entropix-color-action-primary-default);
|
|
186
|
+
}
|
|
187
|
+
.entropix-switch[data-state=checked]::after {
|
|
188
|
+
transform: translateX(20px);
|
|
189
|
+
}
|
|
190
|
+
.entropix-switch:hover:not(:disabled) {
|
|
191
|
+
background: var(--entropix-color-gray-400);
|
|
192
|
+
}
|
|
193
|
+
.entropix-switch[data-state=checked]:hover:not(:disabled) {
|
|
194
|
+
background: var(--entropix-color-action-primary-hover);
|
|
195
|
+
}
|
|
196
|
+
.entropix-switch:disabled {
|
|
197
|
+
opacity: 0.5;
|
|
198
|
+
cursor: not-allowed;
|
|
199
|
+
}
|
|
200
|
+
.entropix-switch:focus-visible {
|
|
201
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
202
|
+
outline-offset: 2px;
|
|
203
|
+
}
|
|
198
204
|
}
|
|
199
205
|
|
|
200
206
|
/* src/styles/dialog.css */
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
.entropix-dialog-content {
|
|
208
|
-
position: fixed;
|
|
209
|
-
top: 50%;
|
|
210
|
-
left: 50%;
|
|
211
|
-
transform: translate(-50%, -50%);
|
|
212
|
-
background: var(--entropix-color-bg-primary);
|
|
213
|
-
border-radius: var(--entropix-radius-lg);
|
|
214
|
-
box-shadow: var(--entropix-shadow-xl);
|
|
215
|
-
padding: var(--entropix-spacing-6);
|
|
216
|
-
z-index: 51;
|
|
217
|
-
max-width: 480px;
|
|
218
|
-
width: 90vw;
|
|
219
|
-
max-height: 85vh;
|
|
220
|
-
overflow-y: auto;
|
|
221
|
-
}
|
|
222
|
-
.entropix-dialog-content:focus {
|
|
223
|
-
outline: none;
|
|
224
|
-
}
|
|
225
|
-
.entropix-dialog-title {
|
|
226
|
-
margin: 0;
|
|
227
|
-
margin-bottom: var(--entropix-spacing-2);
|
|
228
|
-
font-family: var(--entropix-text-heading-md-font-family);
|
|
229
|
-
font-size: var(--entropix-text-heading-md-font-size);
|
|
230
|
-
font-weight: var(--entropix-text-heading-md-font-weight);
|
|
231
|
-
line-height: var(--entropix-text-heading-md-line-height);
|
|
232
|
-
color: var(--entropix-color-text-primary);
|
|
233
|
-
}
|
|
234
|
-
.entropix-dialog-description {
|
|
235
|
-
margin: 0;
|
|
236
|
-
margin-bottom: var(--entropix-spacing-4);
|
|
237
|
-
font-family: var(--entropix-text-body-md-font-family);
|
|
238
|
-
font-size: var(--entropix-text-body-md-font-size);
|
|
239
|
-
font-weight: var(--entropix-text-body-md-font-weight);
|
|
240
|
-
line-height: var(--entropix-text-body-md-line-height);
|
|
241
|
-
color: var(--entropix-color-text-secondary);
|
|
242
|
-
}
|
|
243
|
-
.entropix-dialog-close {
|
|
244
|
-
position: absolute;
|
|
245
|
-
top: var(--entropix-spacing-3);
|
|
246
|
-
right: var(--entropix-spacing-3);
|
|
247
|
-
display: inline-flex;
|
|
248
|
-
align-items: center;
|
|
249
|
-
justify-content: center;
|
|
250
|
-
width: 32px;
|
|
251
|
-
height: 32px;
|
|
252
|
-
padding: 0;
|
|
253
|
-
border: none;
|
|
254
|
-
border-radius: var(--entropix-radius-sm);
|
|
255
|
-
background: transparent;
|
|
256
|
-
color: var(--entropix-color-text-secondary);
|
|
257
|
-
cursor: pointer;
|
|
258
|
-
transition: background var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
259
|
-
}
|
|
260
|
-
.entropix-dialog-close:hover {
|
|
261
|
-
background: var(--entropix-color-action-secondary-default);
|
|
262
|
-
}
|
|
263
|
-
.entropix-dialog-close:focus-visible {
|
|
264
|
-
outline: 2px solid var(--entropix-color-border-focus);
|
|
265
|
-
outline-offset: 2px;
|
|
266
|
-
}
|
|
267
|
-
.entropix-dialog-trigger {
|
|
268
|
-
}
|
|
269
|
-
@media (max-width: 767px) {
|
|
270
|
-
.entropix-dialog-content {
|
|
271
|
-
top: auto;
|
|
272
|
-
bottom: 0;
|
|
273
|
-
left: 0;
|
|
274
|
-
right: 0;
|
|
275
|
-
transform: none;
|
|
276
|
-
width: 100%;
|
|
277
|
-
max-width: 100%;
|
|
278
|
-
border-radius: var(--entropix-radius-lg) var(--entropix-radius-lg) 0 0;
|
|
279
|
-
max-height: 90vh;
|
|
280
|
-
padding: var(--entropix-spacing-5);
|
|
207
|
+
@layer entropix {
|
|
208
|
+
.entropix-dialog-overlay {
|
|
209
|
+
position: fixed;
|
|
210
|
+
inset: 0;
|
|
211
|
+
background: rgba(0, 0, 0, 0.5);
|
|
212
|
+
z-index: 50;
|
|
281
213
|
}
|
|
282
|
-
}
|
|
283
|
-
@media (min-width: 768px) {
|
|
284
214
|
.entropix-dialog-content {
|
|
285
|
-
|
|
215
|
+
position: fixed;
|
|
216
|
+
top: 50%;
|
|
217
|
+
left: 50%;
|
|
218
|
+
transform: translate(-50%, -50%);
|
|
219
|
+
background: var(--entropix-color-bg-primary);
|
|
220
|
+
border-radius: var(--entropix-radius-lg);
|
|
221
|
+
box-shadow: var(--entropix-shadow-xl);
|
|
222
|
+
padding: var(--entropix-spacing-6);
|
|
223
|
+
z-index: 51;
|
|
224
|
+
max-width: 480px;
|
|
225
|
+
width: 90vw;
|
|
226
|
+
max-height: 85vh;
|
|
227
|
+
overflow-y: auto;
|
|
228
|
+
}
|
|
229
|
+
.entropix-dialog-content:focus {
|
|
230
|
+
outline: none;
|
|
231
|
+
}
|
|
232
|
+
.entropix-dialog-title {
|
|
233
|
+
margin: 0;
|
|
234
|
+
margin-bottom: var(--entropix-spacing-2);
|
|
235
|
+
font-family: var(--entropix-text-heading-md-font-family);
|
|
236
|
+
font-size: var(--entropix-text-heading-md-font-size);
|
|
237
|
+
font-weight: var(--entropix-text-heading-md-font-weight);
|
|
238
|
+
line-height: var(--entropix-text-heading-md-line-height);
|
|
239
|
+
color: var(--entropix-color-text-primary);
|
|
240
|
+
}
|
|
241
|
+
.entropix-dialog-description {
|
|
242
|
+
margin: 0;
|
|
243
|
+
margin-bottom: var(--entropix-spacing-4);
|
|
244
|
+
font-family: var(--entropix-text-body-md-font-family);
|
|
245
|
+
font-size: var(--entropix-text-body-md-font-size);
|
|
246
|
+
font-weight: var(--entropix-text-body-md-font-weight);
|
|
247
|
+
line-height: var(--entropix-text-body-md-line-height);
|
|
248
|
+
color: var(--entropix-color-text-secondary);
|
|
249
|
+
}
|
|
250
|
+
.entropix-dialog-close {
|
|
251
|
+
position: absolute;
|
|
252
|
+
top: var(--entropix-spacing-3);
|
|
253
|
+
right: var(--entropix-spacing-3);
|
|
254
|
+
display: inline-flex;
|
|
255
|
+
align-items: center;
|
|
256
|
+
justify-content: center;
|
|
257
|
+
width: 32px;
|
|
258
|
+
height: 32px;
|
|
259
|
+
padding: 0;
|
|
260
|
+
border: none;
|
|
261
|
+
border-radius: var(--entropix-radius-sm);
|
|
262
|
+
background: transparent;
|
|
263
|
+
color: var(--entropix-color-text-secondary);
|
|
264
|
+
cursor: pointer;
|
|
265
|
+
transition: background var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
266
|
+
}
|
|
267
|
+
.entropix-dialog-close:hover {
|
|
268
|
+
background: var(--entropix-color-action-secondary-default);
|
|
269
|
+
}
|
|
270
|
+
.entropix-dialog-close:focus-visible {
|
|
271
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
272
|
+
outline-offset: 2px;
|
|
273
|
+
}
|
|
274
|
+
.entropix-dialog-trigger {
|
|
275
|
+
}
|
|
276
|
+
@media (max-width: 767px) {
|
|
277
|
+
.entropix-dialog-content {
|
|
278
|
+
top: auto;
|
|
279
|
+
bottom: 0;
|
|
280
|
+
left: 0;
|
|
281
|
+
right: 0;
|
|
282
|
+
transform: none;
|
|
283
|
+
width: 100%;
|
|
284
|
+
max-width: 100%;
|
|
285
|
+
border-radius: var(--entropix-radius-lg) var(--entropix-radius-lg) 0 0;
|
|
286
|
+
max-height: 90vh;
|
|
287
|
+
padding: var(--entropix-spacing-5);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
@media (min-width: 768px) {
|
|
291
|
+
.entropix-dialog-content {
|
|
292
|
+
max-width: 560px;
|
|
293
|
+
}
|
|
286
294
|
}
|
|
287
295
|
}
|
|
288
296
|
|
|
289
297
|
/* src/styles/tabs.css */
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
display: flex;
|
|
296
|
-
gap: var(--entropix-spacing-1);
|
|
297
|
-
border-bottom: 1px solid var(--entropix-color-border-default);
|
|
298
|
-
}
|
|
299
|
-
.entropix-tablist[data-orientation=vertical] {
|
|
300
|
-
flex-direction: column;
|
|
301
|
-
border-bottom: none;
|
|
302
|
-
border-right: 1px solid var(--entropix-color-border-default);
|
|
303
|
-
}
|
|
304
|
-
.entropix-tab {
|
|
305
|
-
display: inline-flex;
|
|
306
|
-
align-items: center;
|
|
307
|
-
justify-content: center;
|
|
308
|
-
padding: var(--entropix-spacing-2) var(--entropix-spacing-4);
|
|
309
|
-
border: none;
|
|
310
|
-
border-bottom: 2px solid transparent;
|
|
311
|
-
background: transparent;
|
|
312
|
-
font-family: var(--entropix-font-family-sans);
|
|
313
|
-
font-size: var(--entropix-font-size-sm);
|
|
314
|
-
font-weight: var(--entropix-font-weight-medium);
|
|
315
|
-
color: var(--entropix-color-text-secondary);
|
|
316
|
-
cursor: pointer;
|
|
317
|
-
transition: color var(--entropix-duration-fast) var(--entropix-easing-default), border-color var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
318
|
-
}
|
|
319
|
-
.entropix-tab:hover:not(:disabled) {
|
|
320
|
-
color: var(--entropix-color-text-primary);
|
|
321
|
-
}
|
|
322
|
-
.entropix-tab[data-state=active] {
|
|
323
|
-
color: var(--entropix-color-action-primary-default);
|
|
324
|
-
border-bottom-color: var(--entropix-color-action-primary-default);
|
|
325
|
-
}
|
|
326
|
-
.entropix-tab:disabled,
|
|
327
|
-
.entropix-tab[aria-disabled=true] {
|
|
328
|
-
opacity: 0.5;
|
|
329
|
-
cursor: not-allowed;
|
|
330
|
-
}
|
|
331
|
-
.entropix-tab:focus-visible {
|
|
332
|
-
outline: 2px solid var(--entropix-color-border-focus);
|
|
333
|
-
outline-offset: -2px;
|
|
334
|
-
border-radius: var(--entropix-radius-sm);
|
|
335
|
-
}
|
|
336
|
-
.entropix-tabpanel {
|
|
337
|
-
padding: var(--entropix-spacing-4);
|
|
338
|
-
}
|
|
339
|
-
@media (max-width: 767px) {
|
|
298
|
+
@layer entropix {
|
|
299
|
+
.entropix-tabs {
|
|
300
|
+
display: flex;
|
|
301
|
+
flex-direction: column;
|
|
302
|
+
}
|
|
340
303
|
.entropix-tablist {
|
|
341
|
-
|
|
342
|
-
-
|
|
343
|
-
|
|
344
|
-
-ms-overflow-style: none;
|
|
304
|
+
display: flex;
|
|
305
|
+
gap: var(--entropix-spacing-1);
|
|
306
|
+
border-bottom: 1px solid var(--entropix-color-border-default);
|
|
345
307
|
}
|
|
346
|
-
.entropix-tablist
|
|
347
|
-
|
|
308
|
+
.entropix-tablist[data-orientation=vertical] {
|
|
309
|
+
flex-direction: column;
|
|
310
|
+
border-bottom: none;
|
|
311
|
+
border-right: 1px solid var(--entropix-color-border-default);
|
|
348
312
|
}
|
|
349
313
|
.entropix-tab {
|
|
350
|
-
|
|
351
|
-
|
|
314
|
+
display: inline-flex;
|
|
315
|
+
align-items: center;
|
|
316
|
+
justify-content: center;
|
|
317
|
+
padding: var(--entropix-spacing-2) var(--entropix-spacing-4);
|
|
318
|
+
border: none;
|
|
319
|
+
border-bottom: 2px solid transparent;
|
|
320
|
+
background: transparent;
|
|
321
|
+
font-family: var(--entropix-font-family-sans);
|
|
322
|
+
font-size: var(--entropix-font-size-sm);
|
|
323
|
+
font-weight: var(--entropix-font-weight-medium);
|
|
324
|
+
color: var(--entropix-color-text-secondary);
|
|
325
|
+
cursor: pointer;
|
|
326
|
+
transition: color var(--entropix-duration-fast) var(--entropix-easing-default), border-color var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
327
|
+
}
|
|
328
|
+
.entropix-tab:hover:not(:disabled) {
|
|
329
|
+
color: var(--entropix-color-text-primary);
|
|
330
|
+
}
|
|
331
|
+
.entropix-tab[data-state=active] {
|
|
332
|
+
color: var(--entropix-color-action-primary-default);
|
|
333
|
+
border-bottom-color: var(--entropix-color-action-primary-default);
|
|
334
|
+
}
|
|
335
|
+
.entropix-tab:disabled,
|
|
336
|
+
.entropix-tab[aria-disabled=true] {
|
|
337
|
+
opacity: 0.5;
|
|
338
|
+
cursor: not-allowed;
|
|
339
|
+
}
|
|
340
|
+
.entropix-tab:focus-visible {
|
|
341
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
342
|
+
outline-offset: -2px;
|
|
343
|
+
border-radius: var(--entropix-radius-sm);
|
|
352
344
|
}
|
|
353
345
|
.entropix-tabpanel {
|
|
354
|
-
padding: var(--entropix-spacing-
|
|
346
|
+
padding: var(--entropix-spacing-4);
|
|
347
|
+
}
|
|
348
|
+
@media (max-width: 767px) {
|
|
349
|
+
.entropix-tablist {
|
|
350
|
+
overflow-x: auto;
|
|
351
|
+
-webkit-overflow-scrolling: touch;
|
|
352
|
+
scrollbar-width: none;
|
|
353
|
+
-ms-overflow-style: none;
|
|
354
|
+
}
|
|
355
|
+
.entropix-tablist::-webkit-scrollbar {
|
|
356
|
+
display: none;
|
|
357
|
+
}
|
|
358
|
+
.entropix-tab {
|
|
359
|
+
white-space: nowrap;
|
|
360
|
+
flex-shrink: 0;
|
|
361
|
+
}
|
|
362
|
+
.entropix-tabpanel {
|
|
363
|
+
padding: var(--entropix-spacing-3);
|
|
364
|
+
}
|
|
355
365
|
}
|
|
356
366
|
}
|
|
357
367
|
|
|
358
368
|
/* src/styles/accordion.css */
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
display: flex;
|
|
372
|
-
align-items: center;
|
|
373
|
-
justify-content: space-between;
|
|
374
|
-
width: 100%;
|
|
375
|
-
padding: var(--entropix-spacing-4);
|
|
376
|
-
border: none;
|
|
377
|
-
background: transparent;
|
|
378
|
-
font-family: var(--entropix-font-family-sans);
|
|
379
|
-
font-size: var(--entropix-font-size-sm);
|
|
380
|
-
font-weight: var(--entropix-font-weight-medium);
|
|
381
|
-
color: var(--entropix-color-text-primary);
|
|
382
|
-
text-align: left;
|
|
383
|
-
cursor: pointer;
|
|
384
|
-
transition: background var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
385
|
-
}
|
|
386
|
-
.entropix-accordion-trigger:hover:not(:disabled) {
|
|
387
|
-
background: var(--entropix-color-bg-secondary);
|
|
388
|
-
}
|
|
389
|
-
.entropix-accordion-trigger:disabled {
|
|
390
|
-
opacity: 0.5;
|
|
391
|
-
cursor: not-allowed;
|
|
392
|
-
}
|
|
393
|
-
.entropix-accordion-trigger:focus-visible {
|
|
394
|
-
outline: 2px solid var(--entropix-color-border-focus);
|
|
395
|
-
outline-offset: -2px;
|
|
396
|
-
}
|
|
397
|
-
.entropix-accordion-panel {
|
|
398
|
-
padding: 0 var(--entropix-spacing-4) var(--entropix-spacing-4);
|
|
399
|
-
font-family: var(--entropix-font-family-sans);
|
|
400
|
-
font-size: var(--entropix-font-size-sm);
|
|
401
|
-
color: var(--entropix-color-text-secondary);
|
|
402
|
-
line-height: var(--entropix-line-height-normal);
|
|
403
|
-
}
|
|
404
|
-
@media (max-width: 767px) {
|
|
369
|
+
@layer entropix {
|
|
370
|
+
.entropix-accordion {
|
|
371
|
+
border: 1px solid var(--entropix-color-border-default);
|
|
372
|
+
border-radius: var(--entropix-radius-lg);
|
|
373
|
+
overflow: hidden;
|
|
374
|
+
}
|
|
375
|
+
.entropix-accordion-item {
|
|
376
|
+
border-bottom: 1px solid var(--entropix-color-border-default);
|
|
377
|
+
}
|
|
378
|
+
.entropix-accordion-item:last-child {
|
|
379
|
+
border-bottom: none;
|
|
380
|
+
}
|
|
405
381
|
.entropix-accordion-trigger {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
382
|
+
display: flex;
|
|
383
|
+
align-items: center;
|
|
384
|
+
justify-content: space-between;
|
|
385
|
+
width: 100%;
|
|
386
|
+
padding: var(--entropix-spacing-4);
|
|
387
|
+
border: none;
|
|
388
|
+
background: transparent;
|
|
389
|
+
font-family: var(--entropix-font-family-sans);
|
|
390
|
+
font-size: var(--entropix-font-size-sm);
|
|
391
|
+
font-weight: var(--entropix-font-weight-medium);
|
|
392
|
+
color: var(--entropix-color-text-primary);
|
|
393
|
+
text-align: left;
|
|
394
|
+
cursor: pointer;
|
|
395
|
+
transition: background var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
396
|
+
}
|
|
397
|
+
.entropix-accordion-trigger:hover:not(:disabled) {
|
|
398
|
+
background: var(--entropix-color-bg-secondary);
|
|
399
|
+
}
|
|
400
|
+
.entropix-accordion-trigger:disabled {
|
|
401
|
+
opacity: 0.5;
|
|
402
|
+
cursor: not-allowed;
|
|
403
|
+
}
|
|
404
|
+
.entropix-accordion-trigger:focus-visible {
|
|
405
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
406
|
+
outline-offset: -2px;
|
|
409
407
|
}
|
|
410
408
|
.entropix-accordion-panel {
|
|
411
|
-
padding: 0 var(--entropix-spacing-
|
|
409
|
+
padding: 0 var(--entropix-spacing-4) var(--entropix-spacing-4);
|
|
410
|
+
font-family: var(--entropix-font-family-sans);
|
|
411
|
+
font-size: var(--entropix-font-size-sm);
|
|
412
|
+
color: var(--entropix-color-text-secondary);
|
|
413
|
+
line-height: var(--entropix-line-height-normal);
|
|
414
|
+
}
|
|
415
|
+
@media (max-width: 767px) {
|
|
416
|
+
.entropix-accordion-trigger {
|
|
417
|
+
padding: var(--entropix-spacing-4) var(--entropix-spacing-3);
|
|
418
|
+
min-height: 48px;
|
|
419
|
+
font-size: var(--entropix-font-size-base);
|
|
420
|
+
}
|
|
421
|
+
.entropix-accordion-panel {
|
|
422
|
+
padding: 0 var(--entropix-spacing-3) var(--entropix-spacing-3);
|
|
423
|
+
}
|
|
412
424
|
}
|
|
413
425
|
}
|
|
414
426
|
|
|
415
427
|
/* src/styles/menu.css */
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
min-width: 160px;
|
|
420
|
-
padding: var(--entropix-spacing-1);
|
|
421
|
-
background: var(--entropix-color-bg-primary);
|
|
422
|
-
border: 1px solid var(--entropix-color-border-default);
|
|
423
|
-
border-radius: var(--entropix-radius-md);
|
|
424
|
-
box-shadow: var(--entropix-shadow-lg);
|
|
425
|
-
z-index: 50;
|
|
426
|
-
}
|
|
427
|
-
.entropix-menu-item {
|
|
428
|
-
display: flex;
|
|
429
|
-
align-items: center;
|
|
430
|
-
padding: var(--entropix-spacing-2) var(--entropix-spacing-3);
|
|
431
|
-
border-radius: var(--entropix-radius-sm);
|
|
432
|
-
font-family: var(--entropix-font-family-sans);
|
|
433
|
-
font-size: var(--entropix-font-size-sm);
|
|
434
|
-
color: var(--entropix-color-text-primary);
|
|
435
|
-
cursor: pointer;
|
|
436
|
-
user-select: none;
|
|
437
|
-
transition: background var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
438
|
-
}
|
|
439
|
-
.entropix-menu-item:hover {
|
|
440
|
-
background: var(--entropix-color-action-secondary-default);
|
|
441
|
-
}
|
|
442
|
-
.entropix-menu-item[data-state=active] {
|
|
443
|
-
background: var(--entropix-color-action-secondary-default);
|
|
444
|
-
}
|
|
445
|
-
.entropix-menu-item[data-disabled=true],
|
|
446
|
-
.entropix-menu-item[aria-disabled=true] {
|
|
447
|
-
opacity: 0.5;
|
|
448
|
-
cursor: not-allowed;
|
|
449
|
-
pointer-events: none;
|
|
450
|
-
}
|
|
451
|
-
.entropix-menu-item:focus-visible {
|
|
452
|
-
outline: 2px solid var(--entropix-color-border-focus);
|
|
453
|
-
outline-offset: -2px;
|
|
454
|
-
}
|
|
455
|
-
@media (max-width: 767px) {
|
|
428
|
+
@layer entropix {
|
|
429
|
+
.entropix-menu-trigger {
|
|
430
|
+
}
|
|
456
431
|
.entropix-menu-content {
|
|
457
|
-
min-width:
|
|
432
|
+
min-width: 160px;
|
|
433
|
+
padding: var(--entropix-spacing-1);
|
|
434
|
+
background: var(--entropix-color-bg-primary);
|
|
435
|
+
border: 1px solid var(--entropix-color-border-default);
|
|
436
|
+
border-radius: var(--entropix-radius-md);
|
|
437
|
+
box-shadow: var(--entropix-shadow-lg);
|
|
438
|
+
z-index: 50;
|
|
458
439
|
}
|
|
459
440
|
.entropix-menu-item {
|
|
441
|
+
display: flex;
|
|
442
|
+
align-items: center;
|
|
443
|
+
padding: var(--entropix-spacing-2) var(--entropix-spacing-3);
|
|
444
|
+
border-radius: var(--entropix-radius-sm);
|
|
445
|
+
font-family: var(--entropix-font-family-sans);
|
|
446
|
+
font-size: var(--entropix-font-size-sm);
|
|
447
|
+
color: var(--entropix-color-text-primary);
|
|
448
|
+
cursor: pointer;
|
|
449
|
+
user-select: none;
|
|
450
|
+
transition: background var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
451
|
+
}
|
|
452
|
+
.entropix-menu-item:hover {
|
|
453
|
+
background: var(--entropix-color-action-secondary-default);
|
|
454
|
+
}
|
|
455
|
+
.entropix-menu-item[data-state=active] {
|
|
456
|
+
background: var(--entropix-color-action-secondary-default);
|
|
457
|
+
}
|
|
458
|
+
.entropix-menu-item[data-disabled=true],
|
|
459
|
+
.entropix-menu-item[aria-disabled=true] {
|
|
460
|
+
opacity: 0.5;
|
|
461
|
+
cursor: not-allowed;
|
|
462
|
+
pointer-events: none;
|
|
463
|
+
}
|
|
464
|
+
.entropix-menu-item:focus-visible {
|
|
465
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
466
|
+
outline-offset: -2px;
|
|
467
|
+
}
|
|
468
|
+
@media (max-width: 767px) {
|
|
469
|
+
.entropix-menu-content {
|
|
470
|
+
min-width: 200px;
|
|
471
|
+
}
|
|
472
|
+
.entropix-menu-item {
|
|
473
|
+
padding: var(--entropix-spacing-3) var(--entropix-spacing-4);
|
|
474
|
+
font-size: var(--entropix-font-size-base);
|
|
475
|
+
min-height: 44px;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/* src/styles/input.css */
|
|
481
|
+
@layer entropix {
|
|
482
|
+
.entropix-input-wrapper {
|
|
483
|
+
--input-border-color: var(--entropix-color-border-default);
|
|
484
|
+
--input-border-radius: var(--entropix-radius-md);
|
|
485
|
+
--input-bg: var(--entropix-color-bg-primary);
|
|
486
|
+
--input-font-size: var(--entropix-font-size-sm);
|
|
487
|
+
--input-padding-y: var(--entropix-spacing-2);
|
|
488
|
+
--input-padding-x: var(--entropix-spacing-3);
|
|
489
|
+
--input-focus-color: var(--entropix-color-border-focus);
|
|
490
|
+
--input-error-color: var(--entropix-color-border-danger);
|
|
491
|
+
display: flex;
|
|
492
|
+
flex-direction: column;
|
|
493
|
+
gap: var(--entropix-spacing-1);
|
|
494
|
+
width: 100%;
|
|
495
|
+
}
|
|
496
|
+
.entropix-input-label {
|
|
497
|
+
display: block;
|
|
498
|
+
font-family: var(--entropix-font-family-sans);
|
|
499
|
+
font-size: var(--entropix-font-size-sm);
|
|
500
|
+
font-weight: var(--entropix-font-weight-medium);
|
|
501
|
+
color: var(--entropix-color-text-primary);
|
|
502
|
+
line-height: var(--entropix-line-height-normal);
|
|
503
|
+
}
|
|
504
|
+
.entropix-input-required {
|
|
505
|
+
color: var(--entropix-color-text-danger);
|
|
506
|
+
margin-left: var(--entropix-spacing-1);
|
|
507
|
+
}
|
|
508
|
+
.entropix-input,
|
|
509
|
+
.entropix-textarea {
|
|
510
|
+
display: block;
|
|
511
|
+
width: 100%;
|
|
512
|
+
border: 1px solid var(--input-border-color);
|
|
513
|
+
border-radius: var(--input-border-radius);
|
|
514
|
+
background: var(--input-bg);
|
|
515
|
+
color: var(--entropix-color-text-primary);
|
|
516
|
+
font-family: var(--entropix-font-family-sans);
|
|
517
|
+
font-size: var(--input-font-size);
|
|
518
|
+
line-height: var(--entropix-line-height-normal);
|
|
519
|
+
padding: var(--input-padding-y) var(--input-padding-x);
|
|
520
|
+
transition:
|
|
521
|
+
border-color var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
522
|
+
box-shadow var(--entropix-duration-fast) var(--entropix-easing-default),
|
|
523
|
+
background var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
524
|
+
}
|
|
525
|
+
.entropix-input::placeholder,
|
|
526
|
+
.entropix-textarea::placeholder {
|
|
527
|
+
color: var(--entropix-color-text-tertiary);
|
|
528
|
+
}
|
|
529
|
+
.entropix-input:focus,
|
|
530
|
+
.entropix-textarea:focus {
|
|
531
|
+
outline: none;
|
|
532
|
+
border-color: var(--input-focus-color);
|
|
533
|
+
box-shadow: 0 0 0 1px var(--input-focus-color);
|
|
534
|
+
}
|
|
535
|
+
.entropix-input:focus-visible,
|
|
536
|
+
.entropix-textarea:focus-visible {
|
|
537
|
+
outline: 2px solid var(--input-focus-color);
|
|
538
|
+
outline-offset: 2px;
|
|
539
|
+
}
|
|
540
|
+
.entropix-input:hover:not(:disabled):not(:focus),
|
|
541
|
+
.entropix-textarea:hover:not(:disabled):not(:focus) {
|
|
542
|
+
border-color: var(--entropix-color-border-hover);
|
|
543
|
+
}
|
|
544
|
+
.entropix-input[data-variant=filled],
|
|
545
|
+
.entropix-textarea[data-variant=filled] {
|
|
546
|
+
background: var(--entropix-color-bg-secondary);
|
|
547
|
+
border-color: transparent;
|
|
548
|
+
}
|
|
549
|
+
.entropix-input[data-variant=filled]:focus,
|
|
550
|
+
.entropix-textarea[data-variant=filled]:focus {
|
|
551
|
+
background: var(--input-bg);
|
|
552
|
+
border-color: var(--input-focus-color);
|
|
553
|
+
}
|
|
554
|
+
.entropix-input[data-size=sm],
|
|
555
|
+
.entropix-textarea[data-size=sm] {
|
|
556
|
+
padding: var(--entropix-spacing-1) var(--entropix-spacing-2);
|
|
557
|
+
font-size: var(--entropix-font-size-xs);
|
|
558
|
+
border-radius: var(--entropix-radius-sm);
|
|
559
|
+
}
|
|
560
|
+
.entropix-input[data-size=md],
|
|
561
|
+
.entropix-textarea[data-size=md] {
|
|
562
|
+
padding: var(--input-padding-y) var(--input-padding-x);
|
|
563
|
+
font-size: var(--input-font-size);
|
|
564
|
+
}
|
|
565
|
+
.entropix-input[data-size=lg],
|
|
566
|
+
.entropix-textarea[data-size=lg] {
|
|
460
567
|
padding: var(--entropix-spacing-3) var(--entropix-spacing-4);
|
|
461
568
|
font-size: var(--entropix-font-size-base);
|
|
462
|
-
|
|
569
|
+
border-radius: var(--entropix-radius-lg);
|
|
570
|
+
}
|
|
571
|
+
.entropix-input[data-state=invalid],
|
|
572
|
+
.entropix-textarea[data-state=invalid] {
|
|
573
|
+
border-color: var(--input-error-color);
|
|
574
|
+
}
|
|
575
|
+
.entropix-input[data-state=invalid]:focus,
|
|
576
|
+
.entropix-textarea[data-state=invalid]:focus {
|
|
577
|
+
border-color: var(--input-error-color);
|
|
578
|
+
box-shadow: 0 0 0 1px var(--input-error-color);
|
|
579
|
+
}
|
|
580
|
+
.entropix-input:disabled,
|
|
581
|
+
.entropix-textarea:disabled,
|
|
582
|
+
.entropix-input[data-state=disabled],
|
|
583
|
+
.entropix-textarea[data-state=disabled] {
|
|
584
|
+
opacity: 0.5;
|
|
585
|
+
cursor: not-allowed;
|
|
586
|
+
pointer-events: none;
|
|
587
|
+
}
|
|
588
|
+
.entropix-input-helper {
|
|
589
|
+
font-family: var(--entropix-font-family-sans);
|
|
590
|
+
font-size: var(--entropix-font-size-xs);
|
|
591
|
+
color: var(--entropix-color-text-secondary);
|
|
592
|
+
line-height: var(--entropix-line-height-normal);
|
|
593
|
+
}
|
|
594
|
+
.entropix-input-error {
|
|
595
|
+
font-family: var(--entropix-font-family-sans);
|
|
596
|
+
font-size: var(--entropix-font-size-xs);
|
|
597
|
+
color: var(--entropix-color-text-danger);
|
|
598
|
+
line-height: var(--entropix-line-height-normal);
|
|
599
|
+
}
|
|
600
|
+
.entropix-textarea {
|
|
601
|
+
min-height: 80px;
|
|
602
|
+
}
|
|
603
|
+
@media (max-width: 767px) {
|
|
604
|
+
.entropix-input,
|
|
605
|
+
.entropix-textarea {
|
|
606
|
+
min-height: 44px;
|
|
607
|
+
font-size: var(--entropix-font-size-base);
|
|
608
|
+
}
|
|
609
|
+
.entropix-input[data-size=sm],
|
|
610
|
+
.entropix-textarea[data-size=sm] {
|
|
611
|
+
min-height: 36px;
|
|
612
|
+
font-size: var(--entropix-font-size-sm);
|
|
613
|
+
}
|
|
463
614
|
}
|
|
464
615
|
}
|
|
465
616
|
|
|
466
|
-
/* src/styles/
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
}
|
|
487
|
-
.entropix-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
}
|
|
499
|
-
.entropix-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
}
|
|
514
|
-
.entropix-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
.entropix-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
}
|
|
541
|
-
.entropix-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
.entropix-
|
|
548
|
-
|
|
549
|
-
}
|
|
550
|
-
.entropix-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
}
|
|
556
|
-
.entropix-inline--justify-end {
|
|
557
|
-
justify-content: flex-end;
|
|
558
|
-
}
|
|
559
|
-
.entropix-inline--justify-between {
|
|
560
|
-
justify-content: space-between;
|
|
561
|
-
}
|
|
562
|
-
.entropix-inline--justify-around {
|
|
563
|
-
justify-content: space-around;
|
|
564
|
-
}
|
|
565
|
-
.entropix-inline--wrap {
|
|
566
|
-
flex-wrap: wrap;
|
|
567
|
-
}
|
|
568
|
-
.entropix-container {
|
|
569
|
-
width: 100%;
|
|
570
|
-
margin-left: auto;
|
|
571
|
-
margin-right: auto;
|
|
572
|
-
padding-left: var(--entropix-space-layout-page-margin);
|
|
573
|
-
padding-right: var(--entropix-space-layout-page-margin);
|
|
574
|
-
}
|
|
575
|
-
.entropix-container--xs {
|
|
576
|
-
max-width: 480px;
|
|
577
|
-
}
|
|
578
|
-
.entropix-container--sm {
|
|
579
|
-
max-width: 640px;
|
|
580
|
-
}
|
|
581
|
-
.entropix-container--md {
|
|
582
|
-
max-width: 768px;
|
|
583
|
-
}
|
|
584
|
-
.entropix-container--lg {
|
|
585
|
-
max-width: 1024px;
|
|
586
|
-
}
|
|
587
|
-
.entropix-container--xl {
|
|
588
|
-
max-width: 1280px;
|
|
589
|
-
}
|
|
590
|
-
.entropix-container--full {
|
|
591
|
-
max-width: 100%;
|
|
592
|
-
}
|
|
593
|
-
.entropix-container--center {
|
|
594
|
-
display: flex;
|
|
595
|
-
flex-direction: column;
|
|
596
|
-
align-items: center;
|
|
597
|
-
}
|
|
598
|
-
.entropix-divider {
|
|
599
|
-
border: 0;
|
|
600
|
-
border-top: 1px solid var(--entropix-color-border-default);
|
|
601
|
-
margin: 0;
|
|
602
|
-
width: 100%;
|
|
603
|
-
}
|
|
604
|
-
.entropix-divider--vertical {
|
|
605
|
-
border-top: 0;
|
|
606
|
-
border-left: 1px solid var(--entropix-color-border-default);
|
|
607
|
-
width: auto;
|
|
608
|
-
height: auto;
|
|
609
|
-
align-self: stretch;
|
|
610
|
-
}
|
|
611
|
-
.entropix-divider--spacing-sm {
|
|
612
|
-
margin: var(--entropix-spacing-2) 0;
|
|
613
|
-
}
|
|
614
|
-
.entropix-divider--spacing-md {
|
|
615
|
-
margin: var(--entropix-spacing-4) 0;
|
|
616
|
-
}
|
|
617
|
-
.entropix-divider--spacing-lg {
|
|
618
|
-
margin: var(--entropix-spacing-6) 0;
|
|
619
|
-
}
|
|
620
|
-
.entropix-divider--vertical.entropix-divider--spacing-sm {
|
|
621
|
-
margin: 0 var(--entropix-spacing-2);
|
|
622
|
-
}
|
|
623
|
-
.entropix-divider--vertical.entropix-divider--spacing-md {
|
|
624
|
-
margin: 0 var(--entropix-spacing-4);
|
|
617
|
+
/* src/styles/checkbox.css */
|
|
618
|
+
@layer entropix {
|
|
619
|
+
.entropix-checkbox {
|
|
620
|
+
--checkbox-size: 18px;
|
|
621
|
+
--checkbox-border-color: var(--entropix-color-border-default);
|
|
622
|
+
--checkbox-checked-bg: var(--entropix-color-action-primary-default);
|
|
623
|
+
--checkbox-checked-border: var(--entropix-color-action-primary-default);
|
|
624
|
+
--checkbox-border-radius: var(--entropix-radius-sm);
|
|
625
|
+
display: inline-flex;
|
|
626
|
+
align-items: center;
|
|
627
|
+
gap: var(--entropix-spacing-2);
|
|
628
|
+
padding: var(--entropix-spacing-1) 0;
|
|
629
|
+
border: none;
|
|
630
|
+
background: transparent;
|
|
631
|
+
cursor: pointer;
|
|
632
|
+
user-select: none;
|
|
633
|
+
font-family: var(--entropix-font-family-sans);
|
|
634
|
+
font-size: var(--entropix-font-size-sm);
|
|
635
|
+
color: var(--entropix-color-text-primary);
|
|
636
|
+
line-height: var(--entropix-line-height-normal);
|
|
637
|
+
}
|
|
638
|
+
.entropix-checkbox__indicator {
|
|
639
|
+
display: inline-flex;
|
|
640
|
+
align-items: center;
|
|
641
|
+
justify-content: center;
|
|
642
|
+
width: var(--checkbox-size);
|
|
643
|
+
height: var(--checkbox-size);
|
|
644
|
+
border: 2px solid var(--checkbox-border-color);
|
|
645
|
+
border-radius: var(--checkbox-border-radius);
|
|
646
|
+
background: var(--entropix-color-bg-primary);
|
|
647
|
+
flex-shrink: 0;
|
|
648
|
+
transition: background var(--entropix-duration-fast) var(--entropix-easing-default), border-color var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
649
|
+
}
|
|
650
|
+
.entropix-checkbox__indicator[data-state=checked],
|
|
651
|
+
.entropix-checkbox__indicator[data-state=indeterminate] {
|
|
652
|
+
background: var(--checkbox-checked-bg);
|
|
653
|
+
border-color: var(--checkbox-checked-border);
|
|
654
|
+
}
|
|
655
|
+
.entropix-checkbox__indicator[data-state=checked]::after {
|
|
656
|
+
content: "";
|
|
657
|
+
display: block;
|
|
658
|
+
width: 5px;
|
|
659
|
+
height: 9px;
|
|
660
|
+
border: solid var(--entropix-color-text-inverse);
|
|
661
|
+
border-width: 0 2px 2px 0;
|
|
662
|
+
transform: rotate(45deg);
|
|
663
|
+
margin-top: -1px;
|
|
664
|
+
}
|
|
665
|
+
.entropix-checkbox__indicator[data-state=indeterminate]::after {
|
|
666
|
+
content: "";
|
|
667
|
+
display: block;
|
|
668
|
+
width: 8px;
|
|
669
|
+
height: 2px;
|
|
670
|
+
background: var(--entropix-color-text-inverse);
|
|
671
|
+
border-radius: 1px;
|
|
672
|
+
}
|
|
673
|
+
.entropix-checkbox__label {
|
|
674
|
+
font-family: var(--entropix-font-family-sans);
|
|
675
|
+
font-size: var(--entropix-font-size-sm);
|
|
676
|
+
color: var(--entropix-color-text-primary);
|
|
677
|
+
line-height: var(--entropix-line-height-normal);
|
|
678
|
+
}
|
|
679
|
+
.entropix-checkbox:hover:not(:disabled) .entropix-checkbox__indicator {
|
|
680
|
+
border-color: var(--entropix-color-border-hover);
|
|
681
|
+
}
|
|
682
|
+
.entropix-checkbox:hover:not(:disabled) .entropix-checkbox__indicator[data-state=checked],
|
|
683
|
+
.entropix-checkbox:hover:not(:disabled) .entropix-checkbox__indicator[data-state=indeterminate] {
|
|
684
|
+
background: var(--entropix-color-action-primary-hover);
|
|
685
|
+
border-color: var(--entropix-color-action-primary-hover);
|
|
686
|
+
}
|
|
687
|
+
.entropix-checkbox:focus-visible {
|
|
688
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
689
|
+
outline-offset: 2px;
|
|
690
|
+
border-radius: var(--checkbox-border-radius);
|
|
691
|
+
}
|
|
692
|
+
.entropix-checkbox:disabled {
|
|
693
|
+
opacity: 0.5;
|
|
694
|
+
cursor: not-allowed;
|
|
695
|
+
pointer-events: none;
|
|
696
|
+
}
|
|
697
|
+
@media (max-width: 767px) {
|
|
698
|
+
.entropix-checkbox {
|
|
699
|
+
min-height: 44px;
|
|
700
|
+
}
|
|
701
|
+
.entropix-checkbox__indicator {
|
|
702
|
+
width: 22px;
|
|
703
|
+
height: 22px;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
625
706
|
}
|
|
626
|
-
|
|
627
|
-
|
|
707
|
+
|
|
708
|
+
/* src/styles/radio.css */
|
|
709
|
+
@layer entropix {
|
|
710
|
+
.entropix-radio-group {
|
|
711
|
+
display: flex;
|
|
712
|
+
gap: var(--entropix-spacing-2);
|
|
713
|
+
}
|
|
714
|
+
.entropix-radio-group[data-orientation=vertical] {
|
|
715
|
+
flex-direction: column;
|
|
716
|
+
}
|
|
717
|
+
.entropix-radio-group[data-orientation=horizontal] {
|
|
718
|
+
flex-direction: row;
|
|
719
|
+
flex-wrap: wrap;
|
|
720
|
+
}
|
|
721
|
+
.entropix-radio-item {
|
|
722
|
+
--radio-size: 20px;
|
|
723
|
+
--radio-border-color: var(--entropix-color-border-default);
|
|
724
|
+
--radio-checked-color: var(--entropix-color-action-primary-default);
|
|
725
|
+
--radio-dot-size: 10px;
|
|
726
|
+
display: inline-flex;
|
|
727
|
+
align-items: center;
|
|
728
|
+
gap: var(--entropix-spacing-2);
|
|
729
|
+
padding: var(--entropix-spacing-1) 0;
|
|
730
|
+
border: none;
|
|
731
|
+
background: transparent;
|
|
732
|
+
cursor: pointer;
|
|
733
|
+
user-select: none;
|
|
734
|
+
font-family: var(--entropix-font-family-sans);
|
|
735
|
+
font-size: var(--entropix-font-size-sm);
|
|
736
|
+
color: var(--entropix-color-text-primary);
|
|
737
|
+
line-height: var(--entropix-line-height-normal);
|
|
738
|
+
}
|
|
739
|
+
.entropix-radio-item__indicator {
|
|
740
|
+
display: inline-flex;
|
|
741
|
+
align-items: center;
|
|
742
|
+
justify-content: center;
|
|
743
|
+
width: var(--radio-size);
|
|
744
|
+
height: var(--radio-size);
|
|
745
|
+
border: 2px solid var(--radio-border-color);
|
|
746
|
+
border-radius: 50%;
|
|
747
|
+
background: var(--entropix-color-bg-primary);
|
|
748
|
+
flex-shrink: 0;
|
|
749
|
+
transition: border-color var(--entropix-duration-fast) var(--entropix-easing-default), background var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
750
|
+
}
|
|
751
|
+
.entropix-radio-item__indicator[data-state=checked] {
|
|
752
|
+
border-color: var(--radio-checked-color);
|
|
753
|
+
}
|
|
754
|
+
.entropix-radio-item__indicator[data-state=checked]::after {
|
|
755
|
+
content: "";
|
|
756
|
+
display: block;
|
|
757
|
+
width: var(--radio-dot-size);
|
|
758
|
+
height: var(--radio-dot-size);
|
|
759
|
+
border-radius: 50%;
|
|
760
|
+
background: var(--radio-checked-color);
|
|
761
|
+
}
|
|
762
|
+
.entropix-radio-item__label {
|
|
763
|
+
font-family: var(--entropix-font-family-sans);
|
|
764
|
+
font-size: var(--entropix-font-size-sm);
|
|
765
|
+
color: var(--entropix-color-text-primary);
|
|
766
|
+
line-height: var(--entropix-line-height-normal);
|
|
767
|
+
}
|
|
768
|
+
.entropix-radio-item:hover:not(:disabled) .entropix-radio-item__indicator {
|
|
769
|
+
border-color: var(--entropix-color-border-hover);
|
|
770
|
+
}
|
|
771
|
+
.entropix-radio-item:hover:not(:disabled) .entropix-radio-item__indicator[data-state=checked] {
|
|
772
|
+
border-color: var(--entropix-color-action-primary-hover);
|
|
773
|
+
}
|
|
774
|
+
.entropix-radio-item:hover:not(:disabled) .entropix-radio-item__indicator[data-state=checked]::after {
|
|
775
|
+
background: var(--entropix-color-action-primary-hover);
|
|
776
|
+
}
|
|
777
|
+
.entropix-radio-item:focus-visible {
|
|
778
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
779
|
+
outline-offset: 2px;
|
|
780
|
+
border-radius: var(--entropix-radius-sm);
|
|
781
|
+
}
|
|
782
|
+
.entropix-radio-item:disabled,
|
|
783
|
+
.entropix-radio-item[data-disabled] {
|
|
784
|
+
opacity: 0.5;
|
|
785
|
+
cursor: not-allowed;
|
|
786
|
+
pointer-events: none;
|
|
787
|
+
}
|
|
788
|
+
@media (max-width: 767px) {
|
|
789
|
+
.entropix-radio-item {
|
|
790
|
+
min-height: 44px;
|
|
791
|
+
}
|
|
792
|
+
.entropix-radio-item__indicator {
|
|
793
|
+
width: 22px;
|
|
794
|
+
height: 22px;
|
|
795
|
+
}
|
|
796
|
+
.entropix-radio-item__indicator[data-state=checked]::after {
|
|
797
|
+
width: 10px;
|
|
798
|
+
height: 10px;
|
|
799
|
+
}
|
|
800
|
+
}
|
|
628
801
|
}
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
802
|
+
|
|
803
|
+
/* src/styles/select.css */
|
|
804
|
+
@layer entropix {
|
|
805
|
+
.entropix-select {
|
|
806
|
+
--select-border-color: var(--entropix-color-border-default);
|
|
807
|
+
--select-border-radius: var(--entropix-radius-md);
|
|
808
|
+
--select-bg: var(--entropix-color-bg-primary);
|
|
809
|
+
--select-dropdown-shadow: var(--entropix-shadow-lg);
|
|
810
|
+
display: flex;
|
|
811
|
+
flex-direction: column;
|
|
812
|
+
gap: var(--entropix-spacing-1);
|
|
813
|
+
position: relative;
|
|
814
|
+
width: 100%;
|
|
815
|
+
}
|
|
816
|
+
.entropix-select-label {
|
|
817
|
+
display: block;
|
|
818
|
+
font-family: var(--entropix-font-family-sans);
|
|
819
|
+
font-size: var(--entropix-font-size-sm);
|
|
820
|
+
font-weight: var(--entropix-font-weight-medium);
|
|
821
|
+
color: var(--entropix-color-text-primary);
|
|
822
|
+
line-height: var(--entropix-line-height-normal);
|
|
823
|
+
}
|
|
824
|
+
.entropix-select-trigger {
|
|
825
|
+
display: inline-flex;
|
|
826
|
+
align-items: center;
|
|
827
|
+
justify-content: space-between;
|
|
828
|
+
gap: var(--entropix-spacing-2);
|
|
829
|
+
width: 100%;
|
|
830
|
+
border: 1px solid var(--select-border-color);
|
|
831
|
+
border-radius: var(--select-border-radius);
|
|
832
|
+
background: var(--select-bg);
|
|
833
|
+
color: var(--entropix-color-text-primary);
|
|
834
|
+
font-family: var(--entropix-font-family-sans);
|
|
835
|
+
font-size: var(--entropix-font-size-sm);
|
|
836
|
+
line-height: var(--entropix-line-height-normal);
|
|
837
|
+
padding: var(--entropix-spacing-2) var(--entropix-spacing-3);
|
|
838
|
+
cursor: pointer;
|
|
839
|
+
user-select: none;
|
|
840
|
+
text-align: left;
|
|
841
|
+
transition: border-color var(--entropix-duration-fast) var(--entropix-easing-default), box-shadow var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
842
|
+
}
|
|
843
|
+
.entropix-select-trigger__value {
|
|
844
|
+
flex: 1;
|
|
845
|
+
overflow: hidden;
|
|
846
|
+
text-overflow: ellipsis;
|
|
847
|
+
white-space: nowrap;
|
|
848
|
+
}
|
|
849
|
+
.entropix-select-trigger__chevron {
|
|
850
|
+
flex-shrink: 0;
|
|
851
|
+
font-size: var(--entropix-font-size-xs);
|
|
852
|
+
color: var(--entropix-color-text-secondary);
|
|
853
|
+
line-height: 1;
|
|
854
|
+
}
|
|
855
|
+
.entropix-select-trigger:hover:not(:disabled) {
|
|
856
|
+
border-color: var(--entropix-color-border-hover);
|
|
857
|
+
}
|
|
858
|
+
.entropix-select-trigger:focus-visible {
|
|
859
|
+
outline: 2px solid var(--entropix-color-border-focus);
|
|
860
|
+
outline-offset: 2px;
|
|
861
|
+
}
|
|
862
|
+
.entropix-select-trigger:disabled {
|
|
863
|
+
opacity: 0.5;
|
|
864
|
+
cursor: not-allowed;
|
|
865
|
+
pointer-events: none;
|
|
866
|
+
}
|
|
867
|
+
.entropix-select-content {
|
|
868
|
+
position: absolute;
|
|
869
|
+
top: 100%;
|
|
870
|
+
left: 0;
|
|
871
|
+
right: 0;
|
|
872
|
+
z-index: 50;
|
|
873
|
+
margin-top: var(--entropix-spacing-1);
|
|
874
|
+
border: 1px solid var(--select-border-color);
|
|
875
|
+
border-radius: var(--select-border-radius);
|
|
876
|
+
background: var(--select-bg);
|
|
877
|
+
box-shadow: var(--select-dropdown-shadow);
|
|
878
|
+
padding: var(--entropix-spacing-1) 0;
|
|
879
|
+
max-height: 240px;
|
|
880
|
+
overflow-y: auto;
|
|
881
|
+
}
|
|
882
|
+
.entropix-select-option {
|
|
883
|
+
display: flex;
|
|
884
|
+
align-items: center;
|
|
885
|
+
padding: var(--entropix-spacing-2) var(--entropix-spacing-3);
|
|
886
|
+
font-family: var(--entropix-font-family-sans);
|
|
887
|
+
font-size: var(--entropix-font-size-sm);
|
|
888
|
+
color: var(--entropix-color-text-primary);
|
|
889
|
+
line-height: var(--entropix-line-height-normal);
|
|
890
|
+
cursor: pointer;
|
|
891
|
+
user-select: none;
|
|
892
|
+
transition: background var(--entropix-duration-fast) var(--entropix-easing-default);
|
|
893
|
+
}
|
|
894
|
+
.entropix-select-option:hover:not([data-disabled]) {
|
|
895
|
+
background: var(--entropix-color-action-secondary-hover);
|
|
896
|
+
}
|
|
897
|
+
.entropix-select-option[data-state=selected] {
|
|
898
|
+
background: var(--entropix-color-action-secondary-default);
|
|
899
|
+
font-weight: var(--entropix-font-weight-medium);
|
|
900
|
+
}
|
|
901
|
+
.entropix-select-option[data-state=selected]:hover {
|
|
902
|
+
background: var(--entropix-color-action-secondary-hover);
|
|
903
|
+
}
|
|
904
|
+
.entropix-select-option[data-disabled] {
|
|
905
|
+
opacity: 0.5;
|
|
906
|
+
cursor: not-allowed;
|
|
907
|
+
pointer-events: none;
|
|
908
|
+
}
|
|
909
|
+
@media (max-width: 767px) {
|
|
910
|
+
.entropix-select-trigger {
|
|
911
|
+
min-height: 44px;
|
|
912
|
+
}
|
|
913
|
+
.entropix-select-option {
|
|
914
|
+
min-height: 44px;
|
|
915
|
+
}
|
|
633
916
|
}
|
|
634
917
|
}
|
|
635
|
-
|
|
918
|
+
|
|
919
|
+
/* src/styles/layout.css */
|
|
920
|
+
@layer entropix {
|
|
921
|
+
.entropix-stack {
|
|
922
|
+
display: flex;
|
|
923
|
+
flex-direction: column;
|
|
924
|
+
gap: var(--entropix-space-layout-stack);
|
|
925
|
+
}
|
|
926
|
+
.entropix-stack--gap-none {
|
|
927
|
+
gap: 0;
|
|
928
|
+
}
|
|
929
|
+
.entropix-stack--gap-xs {
|
|
930
|
+
gap: var(--entropix-spacing-1);
|
|
931
|
+
}
|
|
932
|
+
.entropix-stack--gap-sm {
|
|
933
|
+
gap: var(--entropix-spacing-2);
|
|
934
|
+
}
|
|
935
|
+
.entropix-stack--gap-md {
|
|
936
|
+
gap: var(--entropix-spacing-4);
|
|
937
|
+
}
|
|
938
|
+
.entropix-stack--gap-lg {
|
|
939
|
+
gap: var(--entropix-spacing-6);
|
|
940
|
+
}
|
|
941
|
+
.entropix-stack--gap-xl {
|
|
942
|
+
gap: var(--entropix-spacing-8);
|
|
943
|
+
}
|
|
944
|
+
.entropix-stack--gap-2xl {
|
|
945
|
+
gap: var(--entropix-spacing-12);
|
|
946
|
+
}
|
|
947
|
+
.entropix-stack--align-start {
|
|
948
|
+
align-items: flex-start;
|
|
949
|
+
}
|
|
950
|
+
.entropix-stack--align-center {
|
|
951
|
+
align-items: center;
|
|
952
|
+
}
|
|
953
|
+
.entropix-stack--align-end {
|
|
954
|
+
align-items: flex-end;
|
|
955
|
+
}
|
|
956
|
+
.entropix-stack--align-stretch {
|
|
957
|
+
align-items: stretch;
|
|
958
|
+
}
|
|
959
|
+
.entropix-stack--full-width {
|
|
960
|
+
width: 100%;
|
|
961
|
+
}
|
|
962
|
+
.entropix-inline {
|
|
963
|
+
display: flex;
|
|
964
|
+
flex-direction: row;
|
|
965
|
+
align-items: center;
|
|
966
|
+
gap: var(--entropix-space-layout-inline);
|
|
967
|
+
}
|
|
968
|
+
.entropix-inline--gap-none {
|
|
969
|
+
gap: 0;
|
|
970
|
+
}
|
|
971
|
+
.entropix-inline--gap-xs {
|
|
972
|
+
gap: var(--entropix-spacing-1);
|
|
973
|
+
}
|
|
974
|
+
.entropix-inline--gap-sm {
|
|
975
|
+
gap: var(--entropix-spacing-2);
|
|
976
|
+
}
|
|
977
|
+
.entropix-inline--gap-md {
|
|
978
|
+
gap: var(--entropix-spacing-4);
|
|
979
|
+
}
|
|
980
|
+
.entropix-inline--gap-lg {
|
|
981
|
+
gap: var(--entropix-spacing-6);
|
|
982
|
+
}
|
|
983
|
+
.entropix-inline--gap-xl {
|
|
984
|
+
gap: var(--entropix-spacing-8);
|
|
985
|
+
}
|
|
986
|
+
.entropix-inline--gap-2xl {
|
|
987
|
+
gap: var(--entropix-spacing-12);
|
|
988
|
+
}
|
|
989
|
+
.entropix-inline--align-start {
|
|
990
|
+
align-items: flex-start;
|
|
991
|
+
}
|
|
992
|
+
.entropix-inline--align-center {
|
|
993
|
+
align-items: center;
|
|
994
|
+
}
|
|
995
|
+
.entropix-inline--align-end {
|
|
996
|
+
align-items: flex-end;
|
|
997
|
+
}
|
|
998
|
+
.entropix-inline--align-stretch {
|
|
999
|
+
align-items: stretch;
|
|
1000
|
+
}
|
|
1001
|
+
.entropix-inline--align-baseline {
|
|
1002
|
+
align-items: baseline;
|
|
1003
|
+
}
|
|
1004
|
+
.entropix-inline--justify-start {
|
|
1005
|
+
justify-content: flex-start;
|
|
1006
|
+
}
|
|
1007
|
+
.entropix-inline--justify-center {
|
|
1008
|
+
justify-content: center;
|
|
1009
|
+
}
|
|
1010
|
+
.entropix-inline--justify-end {
|
|
1011
|
+
justify-content: flex-end;
|
|
1012
|
+
}
|
|
1013
|
+
.entropix-inline--justify-between {
|
|
1014
|
+
justify-content: space-between;
|
|
1015
|
+
}
|
|
1016
|
+
.entropix-inline--justify-around {
|
|
1017
|
+
justify-content: space-around;
|
|
1018
|
+
}
|
|
1019
|
+
.entropix-inline--wrap {
|
|
1020
|
+
flex-wrap: wrap;
|
|
1021
|
+
}
|
|
636
1022
|
.entropix-container {
|
|
637
|
-
|
|
638
|
-
|
|
1023
|
+
width: 100%;
|
|
1024
|
+
margin-left: auto;
|
|
1025
|
+
margin-right: auto;
|
|
1026
|
+
padding-left: var(--entropix-space-layout-page-margin);
|
|
1027
|
+
padding-right: var(--entropix-space-layout-page-margin);
|
|
1028
|
+
}
|
|
1029
|
+
.entropix-container--xs {
|
|
1030
|
+
max-width: 480px;
|
|
1031
|
+
}
|
|
1032
|
+
.entropix-container--sm {
|
|
1033
|
+
max-width: 640px;
|
|
1034
|
+
}
|
|
1035
|
+
.entropix-container--md {
|
|
1036
|
+
max-width: 768px;
|
|
1037
|
+
}
|
|
1038
|
+
.entropix-container--lg {
|
|
1039
|
+
max-width: 1024px;
|
|
1040
|
+
}
|
|
1041
|
+
.entropix-container--xl {
|
|
1042
|
+
max-width: 1280px;
|
|
1043
|
+
}
|
|
1044
|
+
.entropix-container--full {
|
|
1045
|
+
max-width: 100%;
|
|
1046
|
+
}
|
|
1047
|
+
.entropix-container--center {
|
|
1048
|
+
display: flex;
|
|
1049
|
+
flex-direction: column;
|
|
1050
|
+
align-items: center;
|
|
1051
|
+
}
|
|
1052
|
+
.entropix-divider {
|
|
1053
|
+
border: 0;
|
|
1054
|
+
border-top: 1px solid var(--entropix-color-border-default);
|
|
1055
|
+
margin: 0;
|
|
1056
|
+
width: 100%;
|
|
1057
|
+
}
|
|
1058
|
+
.entropix-divider--vertical {
|
|
1059
|
+
border-top: 0;
|
|
1060
|
+
border-left: 1px solid var(--entropix-color-border-default);
|
|
1061
|
+
width: auto;
|
|
1062
|
+
height: auto;
|
|
1063
|
+
align-self: stretch;
|
|
1064
|
+
}
|
|
1065
|
+
.entropix-divider--spacing-sm {
|
|
1066
|
+
margin: var(--entropix-spacing-2) 0;
|
|
1067
|
+
}
|
|
1068
|
+
.entropix-divider--spacing-md {
|
|
1069
|
+
margin: var(--entropix-spacing-4) 0;
|
|
1070
|
+
}
|
|
1071
|
+
.entropix-divider--spacing-lg {
|
|
1072
|
+
margin: var(--entropix-spacing-6) 0;
|
|
1073
|
+
}
|
|
1074
|
+
.entropix-divider--vertical.entropix-divider--spacing-sm {
|
|
1075
|
+
margin: 0 var(--entropix-spacing-2);
|
|
1076
|
+
}
|
|
1077
|
+
.entropix-divider--vertical.entropix-divider--spacing-md {
|
|
1078
|
+
margin: 0 var(--entropix-spacing-4);
|
|
1079
|
+
}
|
|
1080
|
+
.entropix-divider--vertical.entropix-divider--spacing-lg {
|
|
1081
|
+
margin: 0 var(--entropix-spacing-6);
|
|
1082
|
+
}
|
|
1083
|
+
@media (min-width: 768px) {
|
|
1084
|
+
.entropix-container {
|
|
1085
|
+
padding-left: var(--entropix-space-layout-page-margin-md);
|
|
1086
|
+
padding-right: var(--entropix-space-layout-page-margin-md);
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
@media (min-width: 1024px) {
|
|
1090
|
+
.entropix-container {
|
|
1091
|
+
padding-left: var(--entropix-space-layout-page-margin-lg);
|
|
1092
|
+
padding-right: var(--entropix-space-layout-page-margin-lg);
|
|
1093
|
+
}
|
|
639
1094
|
}
|
|
640
1095
|
}
|
|
641
1096
|
/*# sourceMappingURL=index.css.map */
|