@acorex/styles 21.0.0-next.16 → 21.0.0-next.17
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/base/_preflight.scss +421 -0
- package/base/index.scss +15 -0
- package/components/{_action-item.css → _action-item.scss} +37 -12
- package/components/{_actionsheet.css → _actionsheet.scss} +9 -13
- package/components/{_check-box.css → _check-box.scss} +24 -8
- package/components/{_drop-down.css → _drop-down.scss} +17 -18
- package/components/_editor-container.scss +293 -0
- package/components/{_general-button.css → _general-button.scss} +7 -3
- package/components/{_list.css → _list.scss} +56 -25
- package/components/_radio.scss +51 -0
- package/components/{_ripple.css → _ripple.scss} +8 -8
- package/components/{_table.css → _table.scss} +23 -20
- package/components/{_uploader.css → _uploader.scss} +5 -5
- package/components/index.scss +11 -0
- package/generators/index.js +1 -0
- package/generators/tailwind-class-generator.js +68 -0
- package/icons/fontawesome/_variables.scss +228 -0
- package/icons/fontawesome/index.scss +714 -0
- package/icons/huge/huge-bulk/_variables.scss +209 -0
- package/icons/huge/huge-bulk/index.scss +656 -0
- package/icons/huge/huge-duotone/_variables.scss +209 -0
- package/icons/huge/huge-duotone/index.scss +657 -0
- package/icons/huge/huge-solid-rounded/_variables.scss +209 -0
- package/icons/huge/huge-solid-rounded/index.scss +643 -0
- package/icons/huge/huge-solid-sharp/_variables.scss +209 -0
- package/icons/huge/huge-solid-sharp/index.scss +656 -0
- package/icons/huge/huge-solid-standard/_variables.scss +209 -0
- package/icons/huge/huge-solid-standard/index.scss +656 -0
- package/icons/huge/huge-stroke-rounded/_variables.scss +209 -0
- package/icons/huge/huge-stroke-rounded/index.scss +656 -0
- package/icons/huge/huge-stroke-sharp/_variables.scss +209 -0
- package/icons/huge/huge-stroke-sharp/index.scss +656 -0
- package/icons/huge/huge-stroke-standard/_variables.scss +209 -0
- package/icons/huge/huge-stroke-standard/index.scss +656 -0
- package/icons/huge/huge-twotone/_variables.scss +209 -0
- package/icons/huge/huge-twotone/index.scss +656 -0
- package/icons/material/_variables.scss +227 -0
- package/icons/material/index.scss +718 -0
- package/{index.css → index.scss} +3 -3
- package/mixins/_editor-looks.scss +32 -0
- package/mixins/_media.scss +73 -0
- package/mixins/_scroll-bar.scss +35 -0
- package/mixins/_util.scss +19 -0
- package/mixins/index.scss +4 -0
- package/package.json +4 -5
- package/tailwind-base.js +4 -0
- package/themes/{default copy.scss → default.scss} +9 -6
- package/utils/_theme-generator.scss +238 -0
- package/utils/_utils.scss +278 -0
- package/utils/index.scss +2 -0
- package/components/_editor-container.css +0 -306
- package/components/_radio.css +0 -33
- package/components/index.css +0 -11
- package/icons/fontawesome/_variables.css +0 -229
- package/icons/fontawesome/index.css +0 -555
- package/icons/huge/huge-bulk/_variables.css +0 -211
- package/icons/huge/huge-bulk/index.css +0 -520
- package/icons/huge/huge-duotone/_variables.css +0 -211
- package/icons/huge/huge-duotone/index.css +0 -517
- package/icons/huge/huge-solid-rounded/_variables.css +0 -211
- package/icons/huge/huge-solid-rounded/index.css +0 -504
- package/icons/huge/huge-solid-sharp/_variables.css +0 -213
- package/icons/huge/huge-solid-sharp/index.css +0 -517
- package/icons/huge/huge-solid-standard/_variables.css +0 -211
- package/icons/huge/huge-solid-standard/index.css +0 -516
- package/icons/huge/huge-stroke-rounded/_variables.css +0 -211
- package/icons/huge/huge-stroke-rounded/index.css +0 -515
- package/icons/huge/huge-stroke-sharp/_variables.css +0 -142
- package/icons/huge/huge-stroke-sharp/index.css +0 -515
- package/icons/huge/huge-stroke-standard/_variables.css +0 -141
- package/icons/huge/huge-stroke-standard/index.css +0 -515
- package/icons/huge/huge-twotone/_variables.css +0 -211
- package/icons/huge/huge-twotone/index.css +0 -516
- package/icons/material/_variables.css +0 -229
- package/icons/material/index.css +0 -573
- package/themes/default.css +0 -1240
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
@use '../variables/index.scss';
|
|
2
|
+
@use '../mixins/' as mixins;
|
|
1
3
|
.ax-drop-down {
|
|
2
4
|
display: contents;
|
|
5
|
+
|
|
3
6
|
.ax-dropdown-content {
|
|
4
7
|
display: flex;
|
|
5
8
|
flex: 1 1 0%;
|
|
6
9
|
align-items: center;
|
|
7
10
|
overflow-x: auto;
|
|
8
11
|
overflow-y: hidden;
|
|
9
|
-
font-size: 0.875rem
|
|
10
|
-
/*
|
|
11
|
-
line-height: 1.25rem;
|
|
12
|
-
/* 20px */
|
|
12
|
+
font-size: 0.875rem /* 14px */;
|
|
13
|
+
line-height: 1.25rem /* 20px */;
|
|
13
14
|
text-transform: capitalize;
|
|
15
|
+
|
|
14
16
|
&.ax-state-disabled {
|
|
15
17
|
cursor: not-allowed;
|
|
16
18
|
opacity: 0.5;
|
|
@@ -27,27 +29,28 @@
|
|
|
27
29
|
border-width: 1px;
|
|
28
30
|
border-color: rgba(var(--ax-sys-color-border-lightest-surface));
|
|
29
31
|
background-color: rgba(var(--ax-sys-color-lightest-surface));
|
|
30
|
-
--ax-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
|
|
31
|
-
|
|
32
|
-
--ax-shadow
|
|
33
|
-
0 2px 4px -2px var(--ax-shadow-color);
|
|
34
|
-
box-shadow: var(--ax-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--ax-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--ax-shadow);
|
|
32
|
+
--ax-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
33
|
+
--ax-shadow-colored: 0 4px 6px -1px var(--ax-shadow-color), 0 2px 4px -2px var(--ax-shadow-color);
|
|
34
|
+
box-shadow: var(--ax-ring-offset-shadow, 0 0 #0000), var(--ax-ring-shadow, 0 0 #0000), var(--ax-shadow);
|
|
35
35
|
border-top-left-radius: var(--ax-comp-drop-down-border-top-left-radius, var(--ax-sys-border-radius));
|
|
36
36
|
border-top-right-radius: var(--ax-comp-drop-down-border-top-right-radius, var(--ax-sys-border-radius));
|
|
37
37
|
border-bottom-left-radius: var(--ax-comp-drop-down-border-bottom-left-radius, var(--ax-sys-border-radius));
|
|
38
38
|
border-bottom-right-radius: var(--ax-comp-drop-down-border-bottom-right-radius, var(--ax-sys-border-radius));
|
|
39
|
-
|
|
39
|
+
@include mixins.media('xs') {
|
|
40
|
+
margin: 0;
|
|
41
|
+
}
|
|
40
42
|
ax-header,
|
|
41
43
|
ax-footer {
|
|
42
44
|
background-color: rgba(var(--ax-sys-color-lightest-surface));
|
|
43
|
-
padding: 0.75rem
|
|
44
|
-
/* 12px */
|
|
45
|
+
padding: 0.75rem /* 12px */;
|
|
45
46
|
}
|
|
47
|
+
|
|
46
48
|
&.ax-overlay-center {
|
|
47
49
|
height: fit-content;
|
|
48
50
|
width: 80vw;
|
|
49
51
|
max-width: 90vh;
|
|
50
52
|
}
|
|
53
|
+
|
|
51
54
|
&.ax-overlay-actionsheet {
|
|
52
55
|
height: auto;
|
|
53
56
|
max-height: 85vh;
|
|
@@ -58,18 +61,14 @@
|
|
|
58
61
|
max-height: 95vh;
|
|
59
62
|
}
|
|
60
63
|
}
|
|
64
|
+
|
|
61
65
|
&.ax-overlay-full {
|
|
62
66
|
width: 100vw;
|
|
63
67
|
height: 100vh;
|
|
64
68
|
}
|
|
65
69
|
}
|
|
66
|
-
@media (max-width: 480px) {
|
|
67
|
-
.ax-overlay-pane {
|
|
68
|
-
margin: 0;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
70
|
|
|
72
|
-
.
|
|
71
|
+
@include mixins.darkMode() {
|
|
73
72
|
.ax-overlay-pane {
|
|
74
73
|
background-color: rgba(var(--ax-sys-color-darker-surface));
|
|
75
74
|
border-color: rgba(var(--ax-sys-color-border-darker-surface));
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
@use '../mixins/index.scss' as mixin;
|
|
2
|
+
|
|
3
|
+
:root,
|
|
4
|
+
.ax-editor-container {
|
|
5
|
+
--ax-comp-editor-font-size: 0.875rem;
|
|
6
|
+
--ax-comp-editor-gap: 0.5rem;
|
|
7
|
+
--ax-comp-editor-space-start-size: 0.5rem;
|
|
8
|
+
--ax-comp-editor-space-end-size: 0.5rem;
|
|
9
|
+
--ax-comp-editor-space-block-size: 0.5rem;
|
|
10
|
+
--ax-comp-editor-height: var(--ax-sys-size-base);
|
|
11
|
+
--ax-comp-editor-placeholder-space-x: 0.75rem;
|
|
12
|
+
|
|
13
|
+
--ax-comp-editor-error-bg-color: var(--ax-sys-color-danger-light-surface);
|
|
14
|
+
--ax-comp-editor-error-text-color: var(--ax-sys-color-danger-surface);
|
|
15
|
+
--ax-comp-editor-error-border-color: var(--ax-sys-color-border-danger-surface);
|
|
16
|
+
--ax-comp-editor-error-box-shadow-color: var(--ax-sys-color-danger-surface);
|
|
17
|
+
|
|
18
|
+
--ax-comp-editor-text-color: var(--ax-sys-color-on-surface);
|
|
19
|
+
--ax-comp-editor-border-color: var(--ax-sys-color-border-surface);
|
|
20
|
+
--ax-comp-editor-border-radius: var(--ax-sys-border-radius);
|
|
21
|
+
--ax-comp-editor-box-outline-width: 1px;
|
|
22
|
+
--ax-comp-editor-box-outline-color: var(--ax-sys-color-primary-surface);
|
|
23
|
+
--ax-comp-editor-placeholder-opacity: 0.5;
|
|
24
|
+
|
|
25
|
+
--ax-comp-editor-focused-border-color: var(--ax-sys-color-border-primary-surface);
|
|
26
|
+
--ax-comp-editor-focused-box-shadow-color: var(--ax-sys-color-primary-surface);
|
|
27
|
+
|
|
28
|
+
--ax-comp-editor-border-width: 0px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ax-editor-container {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: var(--ax-comp-editor-height);
|
|
37
|
+
font-size: var(--ax-comp-editor-font-size);
|
|
38
|
+
border-radius: var(--ax-comp-editor-border-radius);
|
|
39
|
+
border-width: var(--ax-comp-editor-border-width);
|
|
40
|
+
border-color: rgba(var(--ax-comp-editor-border-color));
|
|
41
|
+
background-color: rgba(var(--ax-comp-editor-bg-color));
|
|
42
|
+
color: rgba(var(--ax-comp-editor-text-color));
|
|
43
|
+
position: relative;
|
|
44
|
+
gap: var(--ax-comp-editor-gap);
|
|
45
|
+
padding-inline-end: var(--ax-comp-editor-space-end-size);
|
|
46
|
+
padding-inline-start: var(--ax-comp-editor-space-start-size);
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
.ax-icon {
|
|
49
|
+
font-size: var(--ax-comp-editor-icon-font-size);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:has(> ax-prefix) {
|
|
53
|
+
padding-inline-start: 0;
|
|
54
|
+
> ax-prefix {
|
|
55
|
+
&:has(ax-button, .ax-editor-container) {
|
|
56
|
+
--ax-comp-editor-space-start-size: 0px;
|
|
57
|
+
}
|
|
58
|
+
padding-inline-start: var(--ax-comp-editor-space-start-size);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:has(> ax-suffix) {
|
|
63
|
+
padding-inline-end: 0;
|
|
64
|
+
> ax-suffix {
|
|
65
|
+
&:has(ax-button, .ax-editor-container) {
|
|
66
|
+
--ax-comp-editor-space-end-size: 0px;
|
|
67
|
+
}
|
|
68
|
+
padding-inline-end: var(--ax-comp-editor-space-end-size);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:not(.ax-state-disabled) {
|
|
73
|
+
&:focus-within {
|
|
74
|
+
border-color: rgba(var(--ax-comp-editor-focused-border-color));
|
|
75
|
+
outline-width: var(--ax-comp-editor-box-outline-width);
|
|
76
|
+
outline-style: solid;
|
|
77
|
+
outline-color: rgba(var(--ax-comp-editor-focused-border-color));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.ax-state-error {
|
|
82
|
+
border-color: rgba(var(--ax-comp-editor-error-border-color));
|
|
83
|
+
outline-width: var(--ax-comp-editor-box-outline-width);
|
|
84
|
+
outline-color: rgba(var(--ax-comp-editor-error-border-color));
|
|
85
|
+
outline-style: solid;
|
|
86
|
+
&:focus-within {
|
|
87
|
+
border-color: rgba(var(--ax-comp-editor-error-border-color));
|
|
88
|
+
}
|
|
89
|
+
.ax-input {
|
|
90
|
+
.ax-placeholder,
|
|
91
|
+
&::placeholder {
|
|
92
|
+
color: rgba(var(--ax-comp-editor-error-text-color), var(--ax-comp-editor-placeholder-opacity));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.ax-solid {
|
|
98
|
+
@include mixin.solid-look();
|
|
99
|
+
}
|
|
100
|
+
&.ax-outline {
|
|
101
|
+
@include mixin.outline-look();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&.ax-flat {
|
|
105
|
+
@include mixin.flat-look();
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.ax-fill {
|
|
109
|
+
@include mixin.fill-look();
|
|
110
|
+
}
|
|
111
|
+
&.ax-none {
|
|
112
|
+
@include mixin.none-look();
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.ax-editor-input {
|
|
116
|
+
height: 100%;
|
|
117
|
+
flex: 1 1 0%;
|
|
118
|
+
|
|
119
|
+
.ax-input {
|
|
120
|
+
height: 100%;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// .ax-editor,
|
|
125
|
+
// .ax-input {
|
|
126
|
+
// padding-inline-start: var(--ax-comp-editor-space-start-size);
|
|
127
|
+
// padding-inline-end: var(--ax-comp-editor-space-end-size);
|
|
128
|
+
// }
|
|
129
|
+
.ax-input {
|
|
130
|
+
// padding: 0 calc(var(--ax-comp-editor-font-size) - 4px);
|
|
131
|
+
font-size: var(--ax-comp-editor-font-size);
|
|
132
|
+
line-height: var(--ax-comp-editor-font-size);
|
|
133
|
+
color: rgba(var(--ax-comp-editor-text-color));
|
|
134
|
+
cursor: inherit;
|
|
135
|
+
.ax-placeholder,
|
|
136
|
+
&::placeholder {
|
|
137
|
+
font-size: inherit;
|
|
138
|
+
font-weight: 400;
|
|
139
|
+
color: rgb(var(--ax-comp-editor-text-color), var(--ax-comp-editor-placeholder-opacity));
|
|
140
|
+
}
|
|
141
|
+
&:focus,
|
|
142
|
+
&:focus-visible,
|
|
143
|
+
&:focus-within {
|
|
144
|
+
outline: none;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&.ax-state-disabled {
|
|
149
|
+
opacity: 0.5;
|
|
150
|
+
cursor: not-allowed;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.ax-editor-control {
|
|
154
|
+
display: flex;
|
|
155
|
+
height: 100%;
|
|
156
|
+
align-items: center;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
padding-inline-start: 0.5rem;
|
|
159
|
+
font-size: 1.125rem;
|
|
160
|
+
line-height: 1.75rem;
|
|
161
|
+
color: rgba(var(--ax-comp-editor-text-color));
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&.ax-button-icon {
|
|
165
|
+
padding: 0 0.5rem;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.ax-input,
|
|
169
|
+
.ax-text-area {
|
|
170
|
+
text-align: inherit;
|
|
171
|
+
font-family: inherit;
|
|
172
|
+
font-size: inherit;
|
|
173
|
+
line-height: inherit;
|
|
174
|
+
height: 100%;
|
|
175
|
+
width: 100%;
|
|
176
|
+
flex: 1 1 0%;
|
|
177
|
+
background-color: transparent;
|
|
178
|
+
font-weight: inherit;
|
|
179
|
+
|
|
180
|
+
&:focus {
|
|
181
|
+
box-shadow: none;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.ax-editor-button {
|
|
186
|
+
font-size: var(--ax-comp-editor-button-font-size, var(--ax-comp-editor-font-size));
|
|
187
|
+
height: var(--ax-comp-editor-button-height, 100%);
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
justify-content: center;
|
|
191
|
+
min-width: 1.5rem;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// .ax-editor-button,
|
|
195
|
+
// .ax-clear-button {
|
|
196
|
+
// padding-inline-end: var(--ax-comp-editor-space-end-size);
|
|
197
|
+
// }
|
|
198
|
+
|
|
199
|
+
& > ax-prefix,
|
|
200
|
+
& > ax-suffix {
|
|
201
|
+
height: 100%;
|
|
202
|
+
max-width: fit-content;
|
|
203
|
+
|
|
204
|
+
ax-button,
|
|
205
|
+
ax-text,
|
|
206
|
+
ax-icon,
|
|
207
|
+
.ax-editor-container {
|
|
208
|
+
display: flex;
|
|
209
|
+
height: 100%;
|
|
210
|
+
align-items: center;
|
|
211
|
+
justify-content: center;
|
|
212
|
+
border-radius: 0px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
ax-title {
|
|
216
|
+
padding-left: 1rem;
|
|
217
|
+
padding-right: 1rem;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
& > ax-text {
|
|
221
|
+
display: flex;
|
|
222
|
+
align-items: center;
|
|
223
|
+
justify-content: center;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.ax-button {
|
|
228
|
+
height: 100% !important;
|
|
229
|
+
border-radius: 0px !important;
|
|
230
|
+
|
|
231
|
+
&.ax-button-icon {
|
|
232
|
+
height: 100%;
|
|
233
|
+
width: var(--ax-comp-editor-height);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
ax-popover {
|
|
238
|
+
position: absolute;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.ax-xs .ax-editor-container,
|
|
243
|
+
.ax-editor-container.ax-xs {
|
|
244
|
+
--ax-comp-editor-font-size: 0.75rem;
|
|
245
|
+
--ax-comp-editor-space-start-size: 0.25rem;
|
|
246
|
+
--ax-comp-editor-space-end-size: 0.25rem;
|
|
247
|
+
--ax-comp-editor-button-font-size: 0.625rem;
|
|
248
|
+
--ax-comp-editor-gap: 0.25rem;
|
|
249
|
+
--ax-comp-editor-icon-font-size: 0.75rem;
|
|
250
|
+
}
|
|
251
|
+
.ax-sm .ax-editor-container,
|
|
252
|
+
.ax-editor-container.ax-sm {
|
|
253
|
+
--ax-comp-editor-font-size: 0.875rem;
|
|
254
|
+
--ax-comp-editor-space-start-size: 0.5rem;
|
|
255
|
+
--ax-comp-editor-space-end-size: 0.5rem;
|
|
256
|
+
--ax-comp-editor-button-font-size: 0.75rem;
|
|
257
|
+
--ax-comp-editor-gap: 0.375rem;
|
|
258
|
+
--ax-comp-editor-icon-font-size: 0.875rem;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.ax-md .ax-editor-container,
|
|
262
|
+
.ax-editor-container,
|
|
263
|
+
.ax-editor-container.ax-md {
|
|
264
|
+
--ax-comp-editor-space-start-size: 0.75rem;
|
|
265
|
+
--ax-comp-editor-space-end-size: 0.75rem;
|
|
266
|
+
--ax-comp-editor-button-font-size: 0.875rem;
|
|
267
|
+
--ax-comp-editor-gap: 0.5rem;
|
|
268
|
+
--ax-comp-editor-icon-font-size: 1rem;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.ax-lg .ax-editor-container,
|
|
272
|
+
.ax-editor-container.ax-lg {
|
|
273
|
+
--ax-comp-editor-font-size: 1.125rem;
|
|
274
|
+
--ax-comp-editor-space-start-size: 1.125rem;
|
|
275
|
+
--ax-comp-editor-space-end-size: 1.125rem;
|
|
276
|
+
--ax-comp-editor-button-font-size: 0.875rem;
|
|
277
|
+
--ax-comp-editor-gap: 0.625rem;
|
|
278
|
+
--ax-comp-editor-icon-font-size: 1.25rem;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.ax-xl .ax-editor-container,
|
|
282
|
+
.ax-editor-container.ax-xl {
|
|
283
|
+
--ax-comp-editor-font-size: 1.5rem;
|
|
284
|
+
--ax-comp-editor-space-start-size: 1.5rem;
|
|
285
|
+
--ax-comp-editor-space-end-size: 1.5rem;
|
|
286
|
+
--ax-comp-editor-button-font-size: 1rem;
|
|
287
|
+
--ax-comp-editor-gap: 0.75rem;
|
|
288
|
+
--ax-comp-editor-icon-font-size: 1.5rem;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
ax-validation-rule {
|
|
292
|
+
position: absolute;
|
|
293
|
+
}
|
|
@@ -10,22 +10,26 @@
|
|
|
10
10
|
font-size: 0.875rem;
|
|
11
11
|
line-height: 1.25rem;
|
|
12
12
|
color: rgb(var(--ax-sys-color-on-surface), 0.75);
|
|
13
|
+
|
|
13
14
|
&:hover {
|
|
14
15
|
&:not(&:disabled, .ax-state-disabled) {
|
|
15
16
|
color: rgba(var(--ax-sys-color-primary-500), var(--tw-text-opacity));
|
|
16
17
|
}
|
|
17
18
|
}
|
|
19
|
+
|
|
18
20
|
&:focus,
|
|
19
21
|
&:focus-visible {
|
|
20
22
|
&:not(&:disabled, .ax-state-disabled) {
|
|
21
23
|
color: rgba(var(--ax-sys-color-primary-700), var(--tw-text-opacity));
|
|
22
24
|
}
|
|
23
25
|
}
|
|
26
|
+
|
|
24
27
|
&:active {
|
|
25
28
|
&:not(&:disabled, .ax-state-disabled) {
|
|
26
29
|
color: rgba(var(--ax-sys-color-primary-300), var(--tw-text-opacity));
|
|
27
30
|
}
|
|
28
31
|
}
|
|
32
|
+
|
|
29
33
|
&.ax-button-icon {
|
|
30
34
|
padding-left: var(--ax-comp-general-button-padding-left, 0.5rem);
|
|
31
35
|
padding-right: var(--ax-comp-general-button-padding-right, 0.5rem);
|
|
@@ -43,7 +47,6 @@
|
|
|
43
47
|
opacity: 0.5;
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
|
-
|
|
47
50
|
.ax-clear-button {
|
|
48
51
|
display: inline-flex;
|
|
49
52
|
height: var(--ax-sys-size-base);
|
|
@@ -51,9 +54,10 @@
|
|
|
51
54
|
justify-content: center;
|
|
52
55
|
margin-left: 0.25rem;
|
|
53
56
|
margin-right: 0.25rem;
|
|
54
|
-
font-size: 1rem
|
|
55
|
-
line-height: 1.5rem
|
|
57
|
+
font-size: 1rem /* 16px */;
|
|
58
|
+
line-height: 1.5rem /* 24px */;
|
|
56
59
|
color: rgb(var(--ax-sys-color-on-surface), 0.75);
|
|
60
|
+
|
|
57
61
|
> button {
|
|
58
62
|
display: flex;
|
|
59
63
|
}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
.
|
|
1
|
+
@use '../mixins/index.scss' as mixins;
|
|
2
|
+
@include mixins.darkMode() {
|
|
2
3
|
.ax-list-item {
|
|
3
4
|
&.ax-state-selected {
|
|
4
5
|
background-color: rgba(var(--ax-sys-color-primary-800)) !important;
|
|
5
6
|
color: rgba(var(--ax-sys-color-on-primary)) !important;
|
|
7
|
+
|
|
8
|
+
// .ax-selected-icon {
|
|
9
|
+
//
|
|
10
|
+
// color: rgba(var(--ax-sys-color-on-primary));
|
|
11
|
+
// }
|
|
6
12
|
}
|
|
7
13
|
}
|
|
8
14
|
}
|
|
9
|
-
|
|
10
15
|
.ax-list {
|
|
11
16
|
display: flex;
|
|
12
17
|
height: 100%;
|
|
13
18
|
flex-direction: column;
|
|
14
19
|
overflow: hidden;
|
|
15
20
|
background-color: rgba(var(--ax-sys-color-surface));
|
|
16
|
-
font-size: 0.875rem
|
|
17
|
-
line-height: 1.25rem
|
|
18
|
-
.
|
|
19
|
-
max-height: 20rem
|
|
21
|
+
font-size: 0.875rem /* 14px */;
|
|
22
|
+
line-height: 1.25rem /* 20px */;
|
|
23
|
+
@include mixins.media('md') {
|
|
24
|
+
max-height: 20rem /* 320px */;
|
|
20
25
|
}
|
|
21
26
|
ax-header,
|
|
22
27
|
ax-footer {
|
|
@@ -29,13 +34,13 @@
|
|
|
29
34
|
ax-header {
|
|
30
35
|
border-bottom-width: 1px;
|
|
31
36
|
border-color: rgba(var(--ax-sys-color-border-lightest-surface), var(--tw-border-opacity));
|
|
32
|
-
padding: 1rem
|
|
33
|
-
font-size: 1rem
|
|
34
|
-
line-height: 1.5rem
|
|
37
|
+
padding: 1rem /* 16px */;
|
|
38
|
+
font-size: 1rem /* 16px */;
|
|
39
|
+
line-height: 1.5rem /* 24px */;
|
|
35
40
|
font-weight: 500;
|
|
36
|
-
.
|
|
37
|
-
font-size: 1.125rem
|
|
38
|
-
line-height: 1.75rem
|
|
41
|
+
@include mixins.media('md') {
|
|
42
|
+
font-size: 1.125rem /* 18px */;
|
|
43
|
+
line-height: 1.75rem /* 28px */;
|
|
39
44
|
}
|
|
40
45
|
ax-prefix,
|
|
41
46
|
ax-suffix {
|
|
@@ -50,44 +55,53 @@
|
|
|
50
55
|
align-items: flex-end;
|
|
51
56
|
}
|
|
52
57
|
}
|
|
58
|
+
|
|
53
59
|
ax-footer {
|
|
54
60
|
border-top-width: 1px;
|
|
55
61
|
}
|
|
62
|
+
|
|
56
63
|
.ax-content {
|
|
57
64
|
flex: 1 1 0%;
|
|
58
65
|
overflow-y: auto;
|
|
59
66
|
overflow-x: hidden;
|
|
67
|
+
|
|
60
68
|
&.ax-list-items-container {
|
|
61
69
|
height: 100%;
|
|
62
70
|
overflow-y: auto;
|
|
63
|
-
padding-top: 0.5rem
|
|
64
|
-
padding-bottom: 0.5rem
|
|
71
|
+
padding-top: 0.5rem /* 8px */;
|
|
72
|
+
padding-bottom: 0.5rem /* 8px */;
|
|
73
|
+
|
|
65
74
|
&.ax-vertical {
|
|
66
75
|
display: grid;
|
|
67
76
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
77
|
+
|
|
68
78
|
&.ax-divide {
|
|
69
79
|
border-top-width: 1px;
|
|
70
80
|
border-bottom-width: 1px;
|
|
71
81
|
}
|
|
72
82
|
}
|
|
83
|
+
|
|
73
84
|
&.ax-default {
|
|
74
85
|
cursor: pointer;
|
|
86
|
+
|
|
75
87
|
.ax-list-item-group {
|
|
76
88
|
& > span {
|
|
77
89
|
display: flex;
|
|
78
90
|
align-items: center;
|
|
79
|
-
padding: 0.75rem
|
|
91
|
+
padding: 0.75rem /* 12px */;
|
|
80
92
|
font-weight: 500;
|
|
81
93
|
}
|
|
94
|
+
|
|
82
95
|
& > ul {
|
|
83
|
-
padding-left: 0.75rem
|
|
84
|
-
padding-right: 0.75rem
|
|
96
|
+
padding-left: 0.75rem /* 12px */;
|
|
97
|
+
padding-right: 0.75rem /* 12px */;
|
|
85
98
|
}
|
|
86
99
|
.ax-list-item {
|
|
87
|
-
margin-bottom: 0.25rem
|
|
100
|
+
margin-bottom: 0.25rem /* 4px */;
|
|
88
101
|
border-radius: var(--ax-sys-border-radius);
|
|
89
102
|
}
|
|
90
103
|
}
|
|
104
|
+
|
|
91
105
|
.ax-list-item {
|
|
92
106
|
position: relative;
|
|
93
107
|
display: flex;
|
|
@@ -95,10 +109,10 @@
|
|
|
95
109
|
user-select: none;
|
|
96
110
|
align-items: center;
|
|
97
111
|
justify-content: space-between;
|
|
98
|
-
padding-inline-end: 1rem
|
|
99
|
-
padding-inline-start: 0.75rem
|
|
100
|
-
font-size: 1rem
|
|
101
|
-
line-height: 1.5rem
|
|
112
|
+
padding-inline-end: 1rem /* 16px */;
|
|
113
|
+
padding-inline-start: 0.75rem /* 12px */;
|
|
114
|
+
font-size: 1rem /* 16px */;
|
|
115
|
+
line-height: 1.5rem /* 24px */;
|
|
102
116
|
&:focus,
|
|
103
117
|
&:focus-visible {
|
|
104
118
|
outline-width: 2px;
|
|
@@ -106,17 +120,31 @@
|
|
|
106
120
|
}
|
|
107
121
|
&.ax-state-checkbox {
|
|
108
122
|
.ax-checkbox-label {
|
|
109
|
-
margin-inline-start: 0.5rem
|
|
123
|
+
margin-inline-start: 0.5rem /* 8px */;
|
|
110
124
|
}
|
|
111
125
|
}
|
|
112
126
|
&.ax-state-selected {
|
|
113
127
|
background-color: rgba(var(--ax-sys-color-primary-500), var(--tw-bg-opacity)) !important;
|
|
114
128
|
color: rgba(var(--ax-sys-color-on-primary), var(--tw-text-opacity)) !important;
|
|
129
|
+
|
|
130
|
+
// .ax-selected-icon {
|
|
131
|
+
//
|
|
132
|
+
// font-size: 1.5rem /* 24px */;
|
|
133
|
+
// line-height: 2rem /* 32px */;
|
|
134
|
+
// color: rgba(var(--ax-sys-color-primary-500));
|
|
135
|
+
// }
|
|
115
136
|
}
|
|
137
|
+
|
|
138
|
+
// &:not(.ax-check-box) {
|
|
139
|
+
// &.ax-state-selected {
|
|
140
|
+
// }
|
|
141
|
+
// }
|
|
142
|
+
|
|
116
143
|
&.ax-state-disabled {
|
|
117
144
|
cursor: not-allowed;
|
|
118
145
|
opacity: 0.5;
|
|
119
146
|
}
|
|
147
|
+
|
|
120
148
|
&:focus-visible,
|
|
121
149
|
&:hover {
|
|
122
150
|
background-color: rgba(var(--ax-sys-color-surface));
|
|
@@ -126,15 +154,18 @@
|
|
|
126
154
|
}
|
|
127
155
|
}
|
|
128
156
|
}
|
|
157
|
+
|
|
129
158
|
.ax-list-loading-container {
|
|
130
159
|
display: flex;
|
|
131
160
|
justify-content: center;
|
|
132
|
-
padding: 0.5rem
|
|
161
|
+
padding: 0.5rem /* 8px */;
|
|
133
162
|
}
|
|
134
163
|
}
|
|
135
164
|
}
|
|
165
|
+
|
|
136
166
|
.ax-search-box-container {
|
|
137
|
-
padding: 0.5rem
|
|
167
|
+
padding: 0.5rem /* 8px */;
|
|
168
|
+
|
|
138
169
|
&.ax-state-hidden {
|
|
139
170
|
display: none;
|
|
140
171
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@use '../mixins/index.scss';
|
|
2
|
+
|
|
3
|
+
.ax-radio {
|
|
4
|
+
margin: 0px;
|
|
5
|
+
height: 1rem /* 16px */;
|
|
6
|
+
min-height: 1rem /* 16px */;
|
|
7
|
+
min-width: 1rem /* 16px */;
|
|
8
|
+
width: 1rem /* 16px */;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
appearance: none;
|
|
11
|
+
border-radius: 9999px /* 4px */;
|
|
12
|
+
border-width: 1px;
|
|
13
|
+
border-color: rgba(var(--ax-sys-color-border-surface));
|
|
14
|
+
background-color: rgba(var(--ax-sys-color-input-surface));
|
|
15
|
+
vertical-align: middle;
|
|
16
|
+
outline: 2px solid transparent;
|
|
17
|
+
outline-offset: 2px;
|
|
18
|
+
|
|
19
|
+
&:checked {
|
|
20
|
+
border-color: rgba(var(--ax-sys-color-primary-500)) !important;
|
|
21
|
+
background-color: rgba(var(--ax-sys-color-primary-500)) !important;
|
|
22
|
+
background-size: contain;
|
|
23
|
+
background-repeat: no-repeat;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:checked {
|
|
27
|
+
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:focus-visible,
|
|
31
|
+
&:focus {
|
|
32
|
+
box-shadow:
|
|
33
|
+
0px 0px 0px 2px rgba(var(--ax-sys-color-surface)),
|
|
34
|
+
0px 0px 0px 4px rgba(var(--ax-sys-color-primary-500));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:disabled {
|
|
38
|
+
cursor: not-allowed;
|
|
39
|
+
opacity: 0.5;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// @include darkMode() {
|
|
44
|
+
// .ax-checkbox {
|
|
45
|
+
// &:checked {
|
|
46
|
+
// border-color: rgba(var(--ax-sys-color-primary-200)) !important;
|
|
47
|
+
// background-color: rgba(var(--ax-sys-color-primary-200)) !important;
|
|
48
|
+
// background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
|
49
|
+
// }
|
|
50
|
+
// }
|
|
51
|
+
// }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@keyframes ripple {
|
|
2
|
-
to {
|
|
3
|
-
transform: scale(4);
|
|
4
|
-
opacity: 0;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
1
|
.ax-ripple {
|
|
9
|
-
position: absolute;
|
|
10
2
|
transform: scale(0);
|
|
11
3
|
animation: ripple 500ms linear;
|
|
4
|
+
position: absolute;
|
|
12
5
|
border-radius: 9999rem !important;
|
|
6
|
+
|
|
7
|
+
@keyframes ripple {
|
|
8
|
+
to {
|
|
9
|
+
transform: scale(4);
|
|
10
|
+
opacity: 0;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
13
|
}
|