@acorex/styles 5.0.38 → 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 +3 -0
- package/src/components/_checkbox.scss +16 -3
- package/src/components/_dropdown.scss +5 -3
- package/src/components/_editor-container.scss +49 -6
- package/src/components/_fieldset.scss +8 -0
- package/src/components/_form.scss +1 -1
- package/src/components/_list.scss +3 -5
- package/src/components/_loading.scss +5 -0
- package/src/components/_numberbox.scss +17 -0
- package/src/components/_popup.scss +15 -6
- package/src/components/index.scss +2 -0
- package/src/variables/_colors.scss +12 -12
package/package.json
CHANGED
@@ -3,6 +3,21 @@
|
|
3
3
|
.ax-check-box,
|
4
4
|
ax-check-box {
|
5
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
|
+
|
6
21
|
|
7
22
|
.ax-wrapper {
|
8
23
|
&.ax-state-disabled {
|
@@ -42,9 +57,7 @@
|
|
42
57
|
&.ax-state-disabled {
|
43
58
|
@apply ax-opacity-60;
|
44
59
|
}
|
45
|
-
|
46
|
-
@apply ax-border-danger-500;
|
47
|
-
}
|
60
|
+
|
48
61
|
}
|
49
62
|
}
|
50
63
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
@layer components {
|
2
|
-
|
3
2
|
ax-drop-down,
|
4
3
|
.ax-drop-down {
|
5
4
|
display: contents;
|
@@ -45,7 +44,10 @@
|
|
45
44
|
}
|
46
45
|
|
47
46
|
i {
|
48
|
-
@apply ax-text-
|
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
|
+
}
|
49
51
|
}
|
50
52
|
}
|
51
53
|
|
@@ -211,4 +213,4 @@
|
|
211
213
|
}
|
212
214
|
}
|
213
215
|
}
|
214
|
-
}
|
216
|
+
}
|
@@ -3,56 +3,82 @@
|
|
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
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
|
}
|
26
|
+
|
22
27
|
.ax-input {
|
23
|
-
|
28
|
+
width: 1%;
|
24
29
|
@apply ax-flex-1 ax-bg-transparent ax-border-none ax-px-2.5;
|
25
30
|
|
26
31
|
&:focus {
|
27
32
|
box-shadow: none;
|
28
33
|
}
|
29
34
|
}
|
35
|
+
|
36
|
+
|
30
37
|
ax-prefix {
|
38
|
+
|
31
39
|
*,
|
32
|
-
ax-button {
|
40
|
+
ax-button,ax-addon {
|
33
41
|
@apply ax-rounded-s;
|
34
42
|
}
|
43
|
+
|
35
44
|
}
|
45
|
+
|
36
46
|
ax-suffix {
|
47
|
+
|
37
48
|
*,
|
38
|
-
ax-button {
|
49
|
+
ax-button, ax-addon {
|
39
50
|
@apply ax-rounded-e;
|
40
51
|
}
|
52
|
+
|
41
53
|
}
|
54
|
+
|
42
55
|
ax-prefix,
|
43
56
|
ax-suffix {
|
44
57
|
* {
|
45
58
|
@apply ax-h-full ax-flex ax-justify-center ax-items-center ax-rounded-none;
|
46
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
|
+
|
47
69
|
}
|
70
|
+
|
48
71
|
ax-button {
|
49
72
|
height: 100% !important;
|
50
73
|
@apply ax-rounded-none;
|
74
|
+
|
51
75
|
&:focus {
|
52
76
|
@apply ax-ring-0;
|
53
77
|
}
|
78
|
+
|
54
79
|
&.ax-button-icon {
|
55
80
|
min-width: calc(var(--ax-base-size) * var(--ax-base-ratio));
|
81
|
+
|
56
82
|
.ax-ic {
|
57
83
|
@apply ax-text-base;
|
58
84
|
}
|
@@ -63,19 +89,36 @@
|
|
63
89
|
background-color: rgb(var(--ax-color-disabled)) !important;
|
64
90
|
color: rgb(var(--ax-color-disabled-fore)) !important;
|
65
91
|
@apply ax-cursor-not-allowed;
|
92
|
+
|
66
93
|
&:hover {
|
67
94
|
background-color: rgb(var(--ax-color-disabled)) !important;
|
68
95
|
}
|
69
96
|
}
|
97
|
+
|
70
98
|
&.ax-state-error {
|
71
99
|
@apply ax-border-danger-500;
|
100
|
+
|
72
101
|
.ax-input {
|
73
102
|
@apply ax-placeholder-danger-500;
|
74
103
|
}
|
104
|
+
|
75
105
|
&:focus-within {
|
76
106
|
@apply ax-ring-0 ax-ring-transparent;
|
77
107
|
}
|
78
108
|
}
|
109
|
+
|
110
|
+
&.ax-state-success {
|
111
|
+
@apply ax-border-success-600;
|
112
|
+
|
113
|
+
.ax-input {
|
114
|
+
@apply ax-placeholder-success-600;
|
115
|
+
}
|
116
|
+
|
117
|
+
&:focus-within {
|
118
|
+
@apply ax-ring-0 ax-ring-transparent;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
79
122
|
// &.ax-sm {
|
80
123
|
// height: calc((var(--ax-base-size) * var(--ax-base-ratio)) - var(--ax-base-size)) !important;
|
81
124
|
// .ax-input {
|
@@ -89,4 +132,4 @@
|
|
89
132
|
// }
|
90
133
|
// }
|
91
134
|
}
|
92
|
-
}
|
135
|
+
}
|
@@ -28,9 +28,7 @@
|
|
28
28
|
}
|
29
29
|
|
30
30
|
&:hover {
|
31
|
-
|
32
|
-
@apply ax-bg-light-100 ax-text-light-fore dark:ax-bg-white/[0.09] dark:ax-text-light-50;
|
33
|
-
}
|
31
|
+
@apply ax-bg-light-100 ax-text-light-fore dark:ax-bg-white/[0.09] dark:ax-text-light-50;
|
34
32
|
}
|
35
33
|
&.ax-state-selected {
|
36
34
|
@apply ax-text-primary-500 ax-font-medium dark:ax-text-primary-50;
|
@@ -39,7 +37,7 @@
|
|
39
37
|
&:not(.ax-check-box)
|
40
38
|
{
|
41
39
|
&.ax-state-selected {
|
42
|
-
@apply ax-bg-primary-50;
|
40
|
+
@apply ax-bg-primary-50 dark:ax-bg-white/[0.16];
|
43
41
|
}
|
44
42
|
}
|
45
43
|
|
@@ -50,7 +48,7 @@
|
|
50
48
|
&:focus,
|
51
49
|
&.ax-state-focus {
|
52
50
|
&:not(.ax-state-selected) {
|
53
|
-
@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;
|
54
52
|
}
|
55
53
|
}
|
56
54
|
}
|
@@ -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,7 +48,7 @@
|
|
38
48
|
|
39
49
|
header,
|
40
50
|
footer {
|
41
|
-
>div {
|
51
|
+
> div {
|
42
52
|
@apply ax-flex ax-items-center;
|
43
53
|
}
|
44
54
|
}
|
@@ -109,7 +119,6 @@
|
|
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 {
|
@@ -119,4 +128,4 @@
|
|
119
128
|
}
|
120
129
|
}
|
121
130
|
}
|
122
|
-
}
|
131
|
+
}
|
@@ -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
|
);
|