@acorex/styles 5.0.35 → 5.0.39
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/package.json +1 -1
- package/src/components/_button.scss +1 -1
- package/src/components/_calendar.scss +11 -0
- package/src/components/_checkbox.scss +34 -9
- package/src/components/_dropdown.scss +39 -8
- package/src/components/_editor-container.scss +54 -12
- package/src/components/_fieldset.scss +8 -0
- package/src/components/_form.scss +1 -1
- package/src/components/_input.scss +1 -2
- package/src/components/_list.scss +29 -5
- package/src/components/_loading.scss +5 -0
- package/src/components/_numberbox.scss +17 -0
- package/src/components/_popup.scss +18 -9
- package/src/components/_radio.scss +9 -0
- package/src/components/index.scss +2 -0
- package/src/variables/_colors.scss +12 -12
package/package.json
CHANGED
@@ -45,6 +45,9 @@
|
|
45
45
|
&:hover {
|
46
46
|
@apply ax-bg-light-100 dark:ax-bg-white/[0.07];
|
47
47
|
}
|
48
|
+
&:focus {
|
49
|
+
@apply ax-ring-2 ax-ring-primary-500 ax-outline-none;
|
50
|
+
}
|
48
51
|
|
49
52
|
&.ax-state-disabled {
|
50
53
|
@apply ax-text-light-300 ax-cursor-not-allowed;
|
@@ -152,4 +155,12 @@
|
|
152
155
|
@apply ax-flex ax-justify-center ax-p-2 ax-bg-light-100 dark:ax-bg-transparent dark:ax-border-transparent;
|
153
156
|
}
|
154
157
|
}
|
158
|
+
|
159
|
+
.ax-overlay-pane
|
160
|
+
{
|
161
|
+
ax-calendar
|
162
|
+
{
|
163
|
+
@apply ax-border-none
|
164
|
+
}
|
165
|
+
}
|
155
166
|
}
|
@@ -1,38 +1,63 @@
|
|
1
1
|
@layer components {
|
2
|
-
|
3
|
-
.ax-check-box
|
4
|
-
|
2
|
+
|
3
|
+
.ax-check-box,
|
4
|
+
ax-check-box {
|
5
|
+
|
6
|
+
.ax-state-error {
|
7
|
+
@apply ax-text-danger-500;
|
8
|
+
|
9
|
+
input[type="checkbox"] {
|
10
|
+
@apply ax-border-danger-500;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
.ax-state-success {
|
14
|
+
@apply ax-text-success-600;
|
15
|
+
|
16
|
+
input[type="checkbox"] {
|
17
|
+
@apply ax-border-success-600;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
5
21
|
|
6
22
|
.ax-wrapper {
|
7
23
|
&.ax-state-disabled {
|
8
24
|
@apply ax-cursor-not-allowed ax-opacity-80;
|
25
|
+
|
9
26
|
input[type="checkbox"] {
|
10
27
|
@apply ax-cursor-not-allowed;
|
11
28
|
}
|
12
29
|
}
|
13
30
|
}
|
31
|
+
|
14
32
|
input[type="checkbox"] {
|
15
33
|
@apply ax-w-4 ax-h-4 ax-border-solid ax-border ax-border-light-300 ax-rounded ax-bg-white ax-text-primary-500 ax-m-0 ax-outline-none ax-align-middle ax-appearance-none;
|
16
34
|
@include control-dark("editor");
|
35
|
+
|
17
36
|
&:checked,
|
18
37
|
&:indeterminate {
|
19
38
|
@apply ax-border-primary-500 ax-bg-no-repeat ax-bg-primary-500 ax-bg-contain #{!important};
|
20
39
|
}
|
40
|
+
|
21
41
|
&:checked {
|
22
42
|
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' 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");
|
23
43
|
}
|
44
|
+
|
24
45
|
&:indeterminate {
|
25
46
|
background-image: url("data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIzIiB5PSI3IiB3aWR0aD0iMTAiIGhlaWdodD0iMiIvPjwvc3ZnPg==");
|
26
47
|
}
|
48
|
+
|
27
49
|
&:focus {
|
28
50
|
@apply ax-ring-2 ax-ring-primary-500 ax-ring-offset-2;
|
29
51
|
}
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
label {
|
34
|
-
@apply ax-mb-0;
|
52
|
+
|
53
|
+
&.ax-state-disabled {
|
54
|
+
@apply ax-opacity-70;
|
35
55
|
}
|
56
|
+
|
57
|
+
&.ax-state-disabled {
|
58
|
+
@apply ax-opacity-60;
|
59
|
+
}
|
60
|
+
|
36
61
|
}
|
37
62
|
}
|
38
|
-
}
|
63
|
+
}
|
@@ -20,6 +20,37 @@
|
|
20
20
|
@apply ax-bg-white ax-border ax-rounded ax-border-light-300;
|
21
21
|
@include control-dark("surface");
|
22
22
|
|
23
|
+
&.ax-overlay-center {
|
24
|
+
@apply ax-h-fit;
|
25
|
+
max-height: 90vh;
|
26
|
+
width: 80vw;
|
27
|
+
}
|
28
|
+
|
29
|
+
&.ax-overlay-actionsheet {
|
30
|
+
@apply ax-w-full;
|
31
|
+
height: 50vh;
|
32
|
+
max-height: 70vh;
|
33
|
+
}
|
34
|
+
|
35
|
+
&.ax-overlay-full {
|
36
|
+
@apply ax-w-screen ax-h-screen;
|
37
|
+
}
|
38
|
+
|
39
|
+
.ax-overlay-pane-header {
|
40
|
+
@apply ax-p-4 ax-border-b ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
|
41
|
+
|
42
|
+
span {
|
43
|
+
@apply ax-font-medium;
|
44
|
+
}
|
45
|
+
|
46
|
+
i {
|
47
|
+
@apply ax-text-light-300 dark:ax-text-light-200 ax-cursor-pointer ax-text-xl;
|
48
|
+
&:hover {
|
49
|
+
@apply ax-text-light-500 dark:ax-text-light-100;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
23
54
|
&.ax-dropdown-list {
|
24
55
|
@apply ax-border ax-border-solid ax-flex ax-flex-col ax-py-1 ax-rounded ax-shadow-sm;
|
25
56
|
|
@@ -91,7 +122,7 @@
|
|
91
122
|
}
|
92
123
|
|
93
124
|
&.ax-state-selected {
|
94
|
-
@apply ax-bg-warning-200
|
125
|
+
@apply ax-bg-warning-200 dark:ax-bg-warning-600 dark:ax-text-warning-100;
|
95
126
|
}
|
96
127
|
}
|
97
128
|
|
@@ -108,7 +139,7 @@
|
|
108
139
|
}
|
109
140
|
|
110
141
|
&.ax-state-selected {
|
111
|
-
@apply ax-bg-danger-200
|
142
|
+
@apply ax-bg-danger-200 dark:ax-bg-danger-600 dark:ax-text-danger-100;
|
112
143
|
}
|
113
144
|
}
|
114
145
|
|
@@ -125,7 +156,7 @@
|
|
125
156
|
}
|
126
157
|
|
127
158
|
&.ax-state-selected {
|
128
|
-
@apply ax-bg-success-200
|
159
|
+
@apply ax-bg-success-200 dark:ax-bg-success-600 dark:ax-text-success-100;
|
129
160
|
}
|
130
161
|
}
|
131
162
|
|
@@ -142,16 +173,16 @@
|
|
142
173
|
}
|
143
174
|
|
144
175
|
&.ax-state-selected {
|
145
|
-
@apply ax-bg-info-200
|
176
|
+
@apply ax-bg-info-200 dark:ax-bg-info-600 dark:ax-text-info-100;
|
146
177
|
}
|
147
178
|
}
|
148
179
|
|
149
180
|
&.ax-dark-default {
|
150
|
-
@apply ax-bg-transparent ax-text-dark-500 ax-border-transparent
|
181
|
+
@apply ax-bg-transparent ax-text-dark-500 ax-border-transparent dark:ax-text-dark-100;
|
151
182
|
|
152
183
|
&:hover,
|
153
184
|
&:focus {
|
154
|
-
@apply ax-bg-dark-50 ax-text-dark-600 dark:ax-bg-dark-400
|
185
|
+
@apply ax-bg-dark-50 ax-text-dark-600 dark:ax-bg-dark-400 dark:ax-text-dark-50;
|
155
186
|
}
|
156
187
|
|
157
188
|
&:active {
|
@@ -159,7 +190,7 @@
|
|
159
190
|
}
|
160
191
|
|
161
192
|
&.ax-state-selected {
|
162
|
-
@apply ax-bg-dark-200
|
193
|
+
@apply ax-bg-dark-200 dark:ax-bg-dark-400 dark:ax-text-dark-100;
|
163
194
|
}
|
164
195
|
}
|
165
196
|
|
@@ -176,7 +207,7 @@
|
|
176
207
|
}
|
177
208
|
|
178
209
|
&.ax-state-selected {
|
179
|
-
@apply ax-bg-light-200
|
210
|
+
@apply ax-bg-light-200 dark:ax-bg-light-600 dark:ax-text-light-100;
|
180
211
|
}
|
181
212
|
}
|
182
213
|
}
|
@@ -2,81 +2,123 @@
|
|
2
2
|
.ax-editor-container {
|
3
3
|
height: calc(var(--ax-base-size) * var(--ax-base-ratio));
|
4
4
|
@apply ax-flex ax-rounded ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-light-300;
|
5
|
-
@include control-dark(
|
5
|
+
@include control-dark("editor");
|
6
|
+
|
6
7
|
@screen md {
|
7
8
|
@apply ax-text-sm;
|
8
9
|
}
|
10
|
+
|
9
11
|
&:focus-within {
|
10
12
|
@apply ax-ring-2 ax-ring-primary-500 ax-ring-opacity-100 ax-border-transparent;
|
11
13
|
}
|
14
|
+
|
12
15
|
&.ax-button-icon {
|
13
16
|
@apply ax-px-2;
|
14
17
|
}
|
15
|
-
|
16
|
-
}
|
18
|
+
|
19
|
+
&:first-child {}
|
20
|
+
|
17
21
|
[class*=" ax-ic-"],
|
18
22
|
[class^="ax-ic-"] {
|
19
23
|
font-size: 1.2rem !important;
|
20
24
|
line-height: 1 !important;
|
21
25
|
}
|
22
|
-
.ax-input {
|
23
|
-
line-height: 4 !important;
|
24
|
-
min-width: 1%;
|
25
|
-
foont-size:inherit;
|
26
26
|
|
27
|
+
.ax-input {
|
28
|
+
width: 1%;
|
27
29
|
@apply ax-flex-1 ax-bg-transparent ax-border-none ax-px-2.5;
|
28
|
-
|
30
|
+
|
29
31
|
&:focus {
|
30
32
|
box-shadow: none;
|
31
33
|
}
|
32
34
|
}
|
35
|
+
|
36
|
+
|
33
37
|
ax-prefix {
|
34
|
-
|
38
|
+
|
39
|
+
*,
|
40
|
+
ax-button,ax-addon {
|
35
41
|
@apply ax-rounded-s;
|
36
42
|
}
|
43
|
+
|
37
44
|
}
|
45
|
+
|
38
46
|
ax-suffix {
|
39
|
-
|
47
|
+
|
48
|
+
*,
|
49
|
+
ax-button, ax-addon {
|
40
50
|
@apply ax-rounded-e;
|
41
51
|
}
|
52
|
+
|
42
53
|
}
|
54
|
+
|
43
55
|
ax-prefix,
|
44
56
|
ax-suffix {
|
45
57
|
* {
|
46
58
|
@apply ax-h-full ax-flex ax-justify-center ax-items-center ax-rounded-none;
|
47
59
|
}
|
60
|
+
|
61
|
+
ax-icon {
|
62
|
+
@apply ax-px-2
|
63
|
+
}
|
64
|
+
|
65
|
+
ax-addon{
|
66
|
+
@apply ax-bg-light-100 ax-text-light-fore ax-px-4;
|
67
|
+
}
|
68
|
+
|
48
69
|
}
|
70
|
+
|
49
71
|
ax-button {
|
50
72
|
height: 100% !important;
|
51
73
|
@apply ax-rounded-none;
|
74
|
+
|
52
75
|
&:focus {
|
53
76
|
@apply ax-ring-0;
|
54
77
|
}
|
78
|
+
|
55
79
|
&.ax-button-icon {
|
56
80
|
min-width: calc(var(--ax-base-size) * var(--ax-base-ratio));
|
81
|
+
|
57
82
|
.ax-ic {
|
58
83
|
@apply ax-text-base;
|
59
84
|
}
|
60
85
|
}
|
61
86
|
}
|
62
|
-
|
87
|
+
|
63
88
|
&.ax-state-disabled {
|
64
89
|
background-color: rgb(var(--ax-color-disabled)) !important;
|
65
90
|
color: rgb(var(--ax-color-disabled-fore)) !important;
|
66
91
|
@apply ax-cursor-not-allowed;
|
92
|
+
|
67
93
|
&:hover {
|
68
94
|
background-color: rgb(var(--ax-color-disabled)) !important;
|
69
95
|
}
|
70
96
|
}
|
97
|
+
|
71
98
|
&.ax-state-error {
|
72
99
|
@apply ax-border-danger-500;
|
100
|
+
|
73
101
|
.ax-input {
|
74
102
|
@apply ax-placeholder-danger-500;
|
75
103
|
}
|
104
|
+
|
105
|
+
&:focus-within {
|
106
|
+
@apply ax-ring-0 ax-ring-transparent;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
&.ax-state-success {
|
111
|
+
@apply ax-border-success-600;
|
112
|
+
|
113
|
+
.ax-input {
|
114
|
+
@apply ax-placeholder-success-600;
|
115
|
+
}
|
116
|
+
|
76
117
|
&:focus-within {
|
77
118
|
@apply ax-ring-0 ax-ring-transparent;
|
78
119
|
}
|
79
120
|
}
|
121
|
+
|
80
122
|
// &.ax-sm {
|
81
123
|
// height: calc((var(--ax-base-size) * var(--ax-base-ratio)) - var(--ax-base-size)) !important;
|
82
124
|
// .ax-input {
|
@@ -90,4 +132,4 @@
|
|
90
132
|
// }
|
91
133
|
// }
|
92
134
|
}
|
93
|
-
}
|
135
|
+
}
|
@@ -2,48 +2,72 @@
|
|
2
2
|
.ax-list {
|
3
3
|
display: block;
|
4
4
|
}
|
5
|
+
|
5
6
|
.ax-list-container {
|
6
7
|
.ax-list-items-container {
|
7
8
|
@apply ax-py-1 ax-rounded ax-overflow-y-auto ax-h-full dark:ax-border-transparent;
|
9
|
+
|
8
10
|
&.ax-vertical {
|
9
11
|
@apply ax-grid ax-grid-cols-1;
|
12
|
+
|
10
13
|
&.ax-divide {
|
11
14
|
@apply ax-divide-y ax-divide-x-0 ax-divide-light-600 ax-divide-opacity-30 ax-divide-solid;
|
12
15
|
}
|
13
16
|
}
|
17
|
+
|
14
18
|
&.ax-default {
|
15
19
|
@apply ax-cursor-pointer;
|
20
|
+
|
16
21
|
.ax-list-item {
|
17
22
|
height: calc(var(--ax-base-size) * var(--ax-base-ratio)) !important;
|
18
23
|
@apply ax-text-sm ax-flex ax-items-center ax-px-3;
|
24
|
+
|
19
25
|
&:focus,
|
20
26
|
&:focus-visible {
|
21
27
|
@apply ax-outline-none;
|
22
28
|
}
|
29
|
+
|
23
30
|
&:hover {
|
24
|
-
|
25
|
-
@apply ax-bg-light-100 ax-text-light-fore dark:ax-bg-white/[0.09] dark:ax-text-light-50;
|
26
|
-
}
|
31
|
+
@apply ax-bg-light-100 ax-text-light-fore dark:ax-bg-white/[0.09] dark:ax-text-light-50;
|
27
32
|
}
|
28
33
|
&.ax-state-selected {
|
29
|
-
@apply ax-
|
34
|
+
@apply ax-text-primary-500 ax-font-medium dark:ax-text-primary-50;
|
35
|
+
}
|
36
|
+
|
37
|
+
&:not(.ax-check-box)
|
38
|
+
{
|
39
|
+
&.ax-state-selected {
|
40
|
+
@apply ax-bg-primary-50 dark:ax-bg-white/[0.16];
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
&.ax-state-disabled {
|
45
|
+
@apply ax-cursor-not-allowed ax-opacity-70;
|
30
46
|
}
|
47
|
+
|
31
48
|
&:focus,
|
32
49
|
&.ax-state-focus {
|
33
50
|
&:not(.ax-state-selected) {
|
34
|
-
@apply ax-outline-none ax-bg-primary-50 ax-text-primary-500;
|
51
|
+
@apply ax-outline-none ax-bg-primary-50 ax-text-primary-500 dark:ax-bg-white/[0.16] dark:ax-text-white;
|
35
52
|
}
|
36
53
|
}
|
37
54
|
}
|
38
55
|
}
|
39
56
|
}
|
57
|
+
|
40
58
|
.ax-list-loading-container {
|
41
59
|
@apply ax-flex ax-justify-center ax-p-2;
|
42
60
|
}
|
43
61
|
}
|
62
|
+
|
44
63
|
.cdk-overlay-container {
|
45
64
|
.ax-list-items-container {
|
46
65
|
max-height: 25vh;
|
66
|
+
|
67
|
+
&.ax-full {
|
68
|
+
max-height: 75vh;
|
69
|
+
height: fit-content;
|
70
|
+
}
|
47
71
|
}
|
48
72
|
}
|
49
73
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
@layer components {
|
2
|
-
|
3
2
|
ax-page-footer {
|
4
3
|
@apply ax-grid ax-grid-cols-12 ax-gap-2 ax-px-3 ax-py-2 ax-border-t ax-border-solid ax-border-light-300 dark:ax-border-light-700;
|
5
4
|
|
@@ -14,10 +13,21 @@
|
|
14
13
|
|
15
14
|
.ax-popup {
|
16
15
|
@apply ax-flex ax-flex-col ax-bg-white ax-w-6/12 ax-shadow-lg ax-border ax-border-solid ax-border-light-300 ax-rounded ax-outline-none ax-p-0 ax-max-h-[98vh] ax-min-h-fit;
|
17
|
-
@include control-dark(
|
16
|
+
@include control-dark("surface");
|
18
17
|
|
19
18
|
header {
|
20
|
-
@apply ax-
|
19
|
+
@apply ax-p-4 ax-border-b ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
|
20
|
+
|
21
|
+
span {
|
22
|
+
@apply ax-font-medium;
|
23
|
+
}
|
24
|
+
|
25
|
+
i {
|
26
|
+
@apply ax-text-light-300 dark:ax-text-light-200 ax-cursor-pointer ax-text-xl;
|
27
|
+
&:hover {
|
28
|
+
@apply ax-text-light-500 dark:ax-text-light-100;
|
29
|
+
}
|
30
|
+
}
|
21
31
|
}
|
22
32
|
|
23
33
|
main {
|
@@ -38,13 +48,13 @@
|
|
38
48
|
|
39
49
|
header,
|
40
50
|
footer {
|
41
|
-
>div {
|
51
|
+
> div {
|
42
52
|
@apply ax-flex ax-items-center;
|
43
53
|
}
|
44
54
|
}
|
45
55
|
|
46
56
|
&.ax-popup-full {
|
47
|
-
@apply ax-w-screen ax-h-
|
57
|
+
@apply ax-w-screen ax-h-full ax-max-h-full;
|
48
58
|
}
|
49
59
|
|
50
60
|
&.ax-fit {
|
@@ -109,14 +119,13 @@
|
|
109
119
|
}
|
110
120
|
|
111
121
|
@media all and (min-width: 0px) and (max-width: 424px) {
|
112
|
-
|
113
122
|
&.ax-popup-sm,
|
114
123
|
&.ax-popup-md,
|
115
124
|
&.ax-popup-lg {
|
116
125
|
width: 100vw;
|
117
|
-
height:
|
118
|
-
max-height:
|
126
|
+
height: 100%;
|
127
|
+
max-height: 100%;
|
119
128
|
}
|
120
129
|
}
|
121
130
|
}
|
122
|
-
}
|
131
|
+
}
|
@@ -13,6 +13,15 @@
|
|
13
13
|
&:focus {
|
14
14
|
@apply ax-ring-2 ax-ring-primary-500 ax-ring-offset-2;
|
15
15
|
}
|
16
|
+
&.ax-state-disabled{
|
17
|
+
@apply ax-opacity-70;
|
18
|
+
}
|
19
|
+
&.ax-state-disabled{
|
20
|
+
@apply ax-opacity-60;
|
21
|
+
}
|
22
|
+
&.ax-state-error{
|
23
|
+
@apply ax-border-danger-500;
|
24
|
+
}
|
16
25
|
}
|
17
26
|
ax-label {
|
18
27
|
label {
|
@@ -10,10 +10,12 @@
|
|
10
10
|
@import "./drawer";
|
11
11
|
@import "./dropdown";
|
12
12
|
@import "./editor-container";
|
13
|
+
@import "./fieldset";
|
13
14
|
@import "./form";
|
14
15
|
@import "./input";
|
15
16
|
@import "./label";
|
16
17
|
@import "./list";
|
18
|
+
@import "./numberbox";
|
17
19
|
@import "./loading";
|
18
20
|
@import "./popup";
|
19
21
|
@import "./radio";
|
@@ -105,17 +105,17 @@ $theme-colors: (
|
|
105
105
|
"900": "6 6 6",
|
106
106
|
),
|
107
107
|
"light": (
|
108
|
-
"": "
|
109
|
-
"fore": "
|
110
|
-
"50": "
|
111
|
-
"100": "
|
112
|
-
"200": "
|
113
|
-
"300": "
|
114
|
-
"400": "
|
115
|
-
"500": "
|
116
|
-
"600": "
|
117
|
-
"700": "
|
118
|
-
"800": "
|
119
|
-
"900": "
|
108
|
+
"": "100 116 139",
|
109
|
+
"fore": "15 23 42",
|
110
|
+
"50": "248 250 252",
|
111
|
+
"100": "241 245 249",
|
112
|
+
"200": "226 232 240",
|
113
|
+
"300": "203 213 225",
|
114
|
+
"400": "148 163 184",
|
115
|
+
"500": "100 116 139",
|
116
|
+
"600": "71 85 105",
|
117
|
+
"700": "51 65 85",
|
118
|
+
"800": "30 41 59",
|
119
|
+
"900": "15 23 42",
|
120
120
|
)
|
121
121
|
);
|