@acorex/styles 5.0.1 → 5.0.4
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/index.scss +2 -2
- package/package.json +11 -11
- package/src/base/_colors.scss +16 -16
- package/src/base/index.scss +7 -7
- package/src/components/_alert.scss +147 -147
- package/src/components/_badge.scss +39 -39
- package/src/components/_button.scss +651 -651
- package/src/components/_calendar.scss +96 -94
- package/src/components/_carousel.scss +61 -61
- package/src/components/_checkbox.scss +24 -24
- package/src/components/_datapager.scss +39 -39
- package/src/components/_datepicker.scss +5 -7
- package/src/components/_dialog.scss +61 -61
- package/src/components/_drawer.scss +79 -79
- package/src/components/_dropdown.scss +177 -177
- package/src/components/_editor-container.scss +69 -57
- package/src/components/_form.scss +8 -10
- package/src/components/_input.scss +16 -16
- package/src/components/_label.scss +4 -4
- package/src/components/_list.scss +49 -57
- package/src/components/_loading.scss +53 -53
- package/src/components/_popup.scss +86 -86
- package/src/components/_radio.scss +30 -30
- package/src/components/_range-slider.scss +14 -0
- package/src/components/_selectbox.scss +15 -15
- package/src/components/_selection-list.scss +28 -28
- package/src/components/_side-menu.scss +46 -46
- package/src/components/_skeleton.scss +25 -0
- package/src/components/_switch.scss +200 -178
- package/src/components/_table.scss +22 -22
- package/src/components/_tabs.scss +117 -117
- package/src/components/_toast.scss +93 -93
- package/src/components/_tooltip.scss +44 -44
- package/src/components/index.scss +29 -27
- package/src/variables/_colors.scss +135 -1
- package/src/variables/_mixins.scss +18 -18
@@ -1,46 +1,46 @@
|
|
1
|
-
@layer components {
|
2
|
-
.ax-side-menu {
|
3
|
-
@apply ax-list-none ax-p-0 ax-m-0;
|
4
|
-
.ax-side-menu-item {
|
5
|
-
@apply ax-flex ax-items-center ax-p-2 ax-cursor-pointer;
|
6
|
-
&:hover {
|
7
|
-
@apply ax-bg-light-100;
|
8
|
-
}
|
9
|
-
&:focus {
|
10
|
-
@apply ax-outline-none
|
11
|
-
ax-ring-2
|
12
|
-
ax-ring-primary
|
13
|
-
ax-ring-opacity-100
|
14
|
-
ax-border-transparent;
|
15
|
-
}
|
16
|
-
.ax-side-menu-icon {
|
17
|
-
@apply ax-pr-2 ax-h-full ax-flex ax-items-center;
|
18
|
-
}
|
19
|
-
.ax-side-menu-text {
|
20
|
-
@apply ax-flex-1;
|
21
|
-
}
|
22
|
-
.ax-side-menu-badge {
|
23
|
-
}
|
24
|
-
}
|
25
|
-
&.ax-alternate {
|
26
|
-
.ax-side-menu-item {
|
27
|
-
&:nth-child(odd) {
|
28
|
-
@apply ax-bg-light-100;
|
29
|
-
}
|
30
|
-
&:hover {
|
31
|
-
@apply ax-bg-light-300;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
}
|
35
|
-
&.ax-divided {
|
36
|
-
.ax-side-menu-item {
|
37
|
-
&:not(:last-child) {
|
38
|
-
@apply ax-border-b ax-border ax-border-solid;
|
39
|
-
}
|
40
|
-
&:hover {
|
41
|
-
@apply ax-bg-light-100;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|
46
|
-
}
|
1
|
+
@layer components {
|
2
|
+
.ax-side-menu {
|
3
|
+
@apply ax-list-none ax-p-0 ax-m-0;
|
4
|
+
.ax-side-menu-item {
|
5
|
+
@apply ax-flex ax-items-center ax-p-2 ax-cursor-pointer;
|
6
|
+
&:hover {
|
7
|
+
@apply ax-bg-light-100;
|
8
|
+
}
|
9
|
+
&:focus {
|
10
|
+
@apply ax-outline-none
|
11
|
+
ax-ring-2
|
12
|
+
ax-ring-primary
|
13
|
+
ax-ring-opacity-100
|
14
|
+
ax-border-transparent;
|
15
|
+
}
|
16
|
+
.ax-side-menu-icon {
|
17
|
+
@apply ax-pr-2 ax-h-full ax-flex ax-items-center;
|
18
|
+
}
|
19
|
+
.ax-side-menu-text {
|
20
|
+
@apply ax-flex-1;
|
21
|
+
}
|
22
|
+
.ax-side-menu-badge {
|
23
|
+
}
|
24
|
+
}
|
25
|
+
&.ax-alternate {
|
26
|
+
.ax-side-menu-item {
|
27
|
+
&:nth-child(odd) {
|
28
|
+
@apply ax-bg-light-100;
|
29
|
+
}
|
30
|
+
&:hover {
|
31
|
+
@apply ax-bg-light-300;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
&.ax-divided {
|
36
|
+
.ax-side-menu-item {
|
37
|
+
&:not(:last-child) {
|
38
|
+
@apply ax-border-b ax-border ax-border-solid;
|
39
|
+
}
|
40
|
+
&:hover {
|
41
|
+
@apply ax-bg-light-100;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
@layer utilities {
|
2
|
+
$base-color: #ddd;
|
3
|
+
$shine-color: #eeeeee;
|
4
|
+
.ax-skeleton {
|
5
|
+
@apply ax-relative ax-overflow-hidden;
|
6
|
+
background-color: $base-color;
|
7
|
+
&.ax-skeleton-animate {
|
8
|
+
&::before {
|
9
|
+
content: "";
|
10
|
+
@apply ax-block ax-absolute ax-top-0 ax-h-full ax-w-52;
|
11
|
+
left: -200px;
|
12
|
+
background: linear-gradient(to right, transparent 0%, $shine-color 50%, transparent 100%);
|
13
|
+
animation: load 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
@keyframes load {
|
18
|
+
from {
|
19
|
+
left: -200px;
|
20
|
+
}
|
21
|
+
to {
|
22
|
+
left: 100%;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
@@ -1,178 +1,200 @@
|
|
1
|
-
@layer components {
|
2
|
-
.ax-switch {
|
3
|
-
position: relative;
|
4
|
-
display: block;
|
5
|
-
width:
|
6
|
-
height:
|
7
|
-
margin: 5px;
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
ax-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
ax-
|
38
|
-
ax-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
@apply ax-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
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
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
1
|
+
@layer components {
|
2
|
+
.ax-switch {
|
3
|
+
position: relative;
|
4
|
+
display: block;
|
5
|
+
width: calc(var(--ax-base-size) * var(--ax-base-ratio) + 7px);
|
6
|
+
height: calc(var(--ax-base-size) * var(--ax-base-ratio) - 15px);
|
7
|
+
margin: 5px;
|
8
|
+
>input {
|
9
|
+
opacity: 0;
|
10
|
+
width: 0;
|
11
|
+
height: 0;
|
12
|
+
&:checked {
|
13
|
+
&+.ax-switch-slider {
|
14
|
+
background-color: rgb(var(--ax-color-primary));
|
15
|
+
&::before {
|
16
|
+
-webkit-transform: translateX(calc(var(--ax-base-size) * var(--ax-base-ratio) - 18px));
|
17
|
+
-ms-transform: translateX(calc(var(--ax-base-size) * var(--ax-base-ratio) - 18px));
|
18
|
+
transform: translateX(calc(var(--ax-base-size) * var(--ax-base-ratio) - 18px));
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
.ax-switch-slider {
|
24
|
+
position: absolute;
|
25
|
+
cursor: pointer;
|
26
|
+
top: 0;
|
27
|
+
left: 0;
|
28
|
+
right: 0;
|
29
|
+
bottom: 0;
|
30
|
+
background-color: rgb(var(--ax-color-gray-400));
|
31
|
+
-webkit-transition: 0.2s;
|
32
|
+
transition: 0.2s;
|
33
|
+
border-radius: 25px;
|
34
|
+
&::before {
|
35
|
+
content: "";
|
36
|
+
position: absolute;
|
37
|
+
height: calc(var(--ax-base-size) * var(--ax-base-ratio) - 21px);
|
38
|
+
width: calc(var(--ax-base-size) * var(--ax-base-ratio) - 21px);
|
39
|
+
left: 3px;
|
40
|
+
bottom: 3px;
|
41
|
+
background-color: white;
|
42
|
+
-webkit-transition: 0.2s;
|
43
|
+
transition: 0.2s;
|
44
|
+
border-radius: 50%;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
input:focus~.ax-switch-slider {
|
48
|
+
@apply ax-ring-2 ax-ring-primary ax-ring-offset-2;
|
49
|
+
}
|
50
|
+
&.ax-sm {
|
51
|
+
width: calc(var(--ax-base-size) * var(--ax-base-ratio) - 6px);
|
52
|
+
height: calc(var(--ax-base-size) * var(--ax-base-ratio) - 21px);
|
53
|
+
>input {
|
54
|
+
&:checked {
|
55
|
+
&+.ax-switch-slider {
|
56
|
+
&::before {
|
57
|
+
-webkit-transform: translateX(calc(var(--ax-base-size) * var(--ax-base-ratio) - 25px));
|
58
|
+
-ms-transform: translateX(calc(var(--ax-base-size) * var(--ax-base-ratio) - 25px));
|
59
|
+
transform: translateX(calc(var(--ax-base-size) * var(--ax-base-ratio) - 25px));
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
.ax-switch-slider {
|
65
|
+
&::before {
|
66
|
+
height: calc(var(--ax-base-size) * var(--ax-base-ratio) - 27px);
|
67
|
+
width: calc(var(--ax-base-size) * var(--ax-base-ratio) - 27px);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
&.ax-lg {
|
72
|
+
width: calc(var(--ax-base-size) * var(--ax-base-ratio) + 20px);
|
73
|
+
height: calc(var(--ax-base-size) * var(--ax-base-ratio) - 5px);
|
74
|
+
>input {
|
75
|
+
&:checked {
|
76
|
+
&+.ax-switch-slider {
|
77
|
+
&::before {
|
78
|
+
-webkit-transform: translateX(calc(var(--ax-base-size) * var(--ax-base-ratio) - 16px));
|
79
|
+
-ms-transform: translateX(calc(var(--ax-base-size) * var(--ax-base-ratio) - 16px));
|
80
|
+
transform: translateX(calc(var(--ax-base-size) * var(--ax-base-ratio) - 16px));
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
.ax-switch-slider {
|
86
|
+
&::before {
|
87
|
+
height: calc(var(--ax-base-size) * var(--ax-base-ratio) - 11px);
|
88
|
+
width: calc(var(--ax-base-size) * var(--ax-base-ratio) - 11px);
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
&.ax-state-error {
|
93
|
+
.ax-switch-slider {
|
94
|
+
@apply ax-ring-2 ax-ring-danger ax-ring-opacity-100 ax-border-transparent;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
&.ax-state-disabled {
|
98
|
+
.ax-switch-slider {
|
99
|
+
background-color: rgb(var(--ax-color-disabled)) !important;
|
100
|
+
@apply ax-cursor-not-allowed ax-border-transparent;
|
101
|
+
&:after {
|
102
|
+
@apply ax-border-transparent;
|
103
|
+
}
|
104
|
+
&:hover {
|
105
|
+
@apply ax-border-transparent;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
&.ax-state-readonly {
|
110
|
+
.ax-switch-slider {
|
111
|
+
opacity: 0.6;
|
112
|
+
@apply ax-cursor-not-allowed;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
&.ax-success {
|
116
|
+
>input {
|
117
|
+
&:checked {
|
118
|
+
&+.ax-switch-slider {
|
119
|
+
background-color: rgb(var(--ax-color-success));
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
input:focus~.ax-switch-slider {
|
124
|
+
@apply ax-ring-success;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
&.ax-secondary {
|
128
|
+
>input {
|
129
|
+
&:checked {
|
130
|
+
&+.ax-switch-slider {
|
131
|
+
background-color: rgb(var(--ax-color-secondary));
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
input:focus~.ax-switch-slider {
|
136
|
+
@apply ax-ring-secondary;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
&.ax-danger {
|
140
|
+
>input {
|
141
|
+
&:checked {
|
142
|
+
&+.ax-switch-slider {
|
143
|
+
background-color: rgb(var(--ax-color-danger));
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
input:focus~.ax-switch-slider {
|
148
|
+
@apply ax-ring-danger;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
&.ax-warning {
|
152
|
+
>input {
|
153
|
+
&:checked {
|
154
|
+
&+.ax-switch-slider {
|
155
|
+
background-color: rgb(var(--ax-color-warning));
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
input:focus~.ax-switch-slider {
|
160
|
+
@apply ax-ring-warning;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
&.ax-info {
|
164
|
+
>input {
|
165
|
+
&:checked {
|
166
|
+
&+.ax-switch-slider {
|
167
|
+
background-color: rgb(var(--ax-color-info));
|
168
|
+
}
|
169
|
+
}
|
170
|
+
}
|
171
|
+
input:focus~.ax-switch-slider {
|
172
|
+
@apply ax-ring-info;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
&.ax-light {
|
176
|
+
>input {
|
177
|
+
&:checked {
|
178
|
+
&+.ax-switch-slider {
|
179
|
+
background-color: rgb(var(--ax-color-light));
|
180
|
+
}
|
181
|
+
}
|
182
|
+
}
|
183
|
+
input:focus~.ax-switch-slider {
|
184
|
+
@apply ax-ring-light;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
&.ax-dark {
|
188
|
+
>input {
|
189
|
+
&:checked {
|
190
|
+
&+.ax-switch-slider {
|
191
|
+
background-color: rgb(var(--ax-color-dark));
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}
|
195
|
+
input:focus~.ax-switch-slider {
|
196
|
+
@apply ax-ring-dark;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
}
|
200
|
+
}
|
@@ -1,22 +1,22 @@
|
|
1
|
-
.ax-table {
|
2
|
-
@apply ax-w-full;
|
3
|
-
table {
|
4
|
-
border-collapse: collapse;
|
5
|
-
@apply ax-w-full;
|
6
|
-
}
|
7
|
-
|
8
|
-
td,
|
9
|
-
th {
|
10
|
-
@apply ax-p-4 ax-border ax-border-solid ax-border;
|
11
|
-
text-align: inherit;
|
12
|
-
}
|
13
|
-
|
14
|
-
&.ax-alternative {
|
15
|
-
tr {
|
16
|
-
@apply ax-bg-white;
|
17
|
-
&:nth-child(even) {
|
18
|
-
@apply ax-bg-gray-50;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
1
|
+
.ax-table {
|
2
|
+
@apply ax-w-full;
|
3
|
+
table {
|
4
|
+
border-collapse: collapse;
|
5
|
+
@apply ax-w-full;
|
6
|
+
}
|
7
|
+
|
8
|
+
td,
|
9
|
+
th {
|
10
|
+
@apply ax-p-4 ax-border ax-border-solid ax-border;
|
11
|
+
text-align: inherit;
|
12
|
+
}
|
13
|
+
|
14
|
+
&.ax-alternative {
|
15
|
+
tr {
|
16
|
+
@apply ax-bg-white;
|
17
|
+
&:nth-child(even) {
|
18
|
+
@apply ax-bg-gray-50;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|