@acorex/styles 4.0.24 → 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 -48
- package/package.json +11 -11
- package/src/base/_colors.scss +16 -0
- package/src/base/index.scss +7 -0
- package/src/components/_alert.scss +148 -0
- package/src/components/_badge.scss +39 -0
- package/src/components/_button.scss +652 -0
- package/src/components/_calendar.scss +97 -0
- package/src/components/_carousel.scss +61 -0
- package/src/components/_checkbox.scss +25 -0
- package/src/components/_datapager.scss +40 -0
- package/src/components/_datepicker.scss +5 -0
- package/src/components/_dialog.scss +62 -0
- package/src/components/_drawer.scss +79 -0
- package/src/components/_dropdown.scss +178 -0
- package/src/components/_editor-container.scss +70 -0
- package/src/components/_form.scss +8 -0
- package/src/components/_input.scss +16 -0
- package/src/components/_label.scss +5 -0
- package/src/components/_list.scss +49 -0
- package/src/components/_loading.scss +54 -0
- package/src/components/_popup.scss +87 -0
- package/src/components/_radio.scss +30 -0
- package/src/components/_range-slider.scss +14 -0
- package/src/components/_selectbox.scss +15 -0
- package/src/components/_selection-list.scss +28 -0
- package/src/components/_side-menu.scss +46 -0
- package/src/components/_skeleton.scss +25 -0
- package/src/components/_switch.scss +200 -0
- package/src/components/_table.scss +22 -0
- package/src/components/_tabs.scss +117 -0
- package/src/components/_toast.scss +94 -0
- package/src/components/_tooltip.scss +44 -0
- package/src/components/index.scss +29 -0
- package/{variables/bases/_color.scss → src/variables/_colors.scss} +135 -135
- package/src/variables/_mixins.scss +18 -0
- package/scss/ax-icon/fonts/acorex.eot +0 -0
- package/scss/ax-icon/fonts/acorex.svg +0 -1434
- package/scss/ax-icon/fonts/acorex.ttf +0 -0
- package/scss/ax-icon/fonts/acorex.woff +0 -0
- package/scss/ax-icon/selection.json +0 -1
- package/scss/ax-icon/style.scss +0 -7218
- package/scss/ax-icon/variables.scss +0 -1428
- package/scss/bases/accessiblity.scss +0 -38
- package/scss/bases/background.scss +0 -76
- package/scss/bases/border.scss +0 -453
- package/scss/bases/effects.scss +0 -56
- package/scss/bases/filter.scss +0 -184
- package/scss/bases/flexbox-and-grid.scss +0 -254
- package/scss/bases/interactivity.scss +0 -42
- package/scss/bases/layout.scss +0 -207
- package/scss/bases/root.scss +0 -53
- package/scss/bases/sizing.scss +0 -43
- package/scss/bases/skeleton.scss +0 -30
- package/scss/bases/spacing.scss +0 -245
- package/scss/bases/svg.scss +0 -18
- package/scss/bases/table.scss +0 -15
- package/scss/bases/transform.scss +0 -114
- package/scss/bases/transition-and-animation.scss +0 -116
- package/scss/bases/typography.scss +0 -210
- package/scss/components/alert.scss +0 -131
- package/scss/components/badge.scss +0 -6
- package/scss/components/button.scss +0 -264
- package/scss/components/calendar.scss +0 -120
- package/scss/components/carousel.scss +0 -67
- package/scss/components/checkbox.scss +0 -36
- package/scss/components/datapager.scss +0 -80
- package/scss/components/datepicker.scss +0 -8
- package/scss/components/dialog.scss +0 -61
- package/scss/components/drawer.scss +0 -78
- package/scss/components/dropdown.scss +0 -35
- package/scss/components/editor-container.scss +0 -105
- package/scss/components/input.scss +0 -47
- package/scss/components/label.scss +0 -6
- package/scss/components/list.scss +0 -55
- package/scss/components/loading.scss +0 -47
- package/scss/components/popup.scss +0 -103
- package/scss/components/radio.scss +0 -36
- package/scss/components/selectbox.scss +0 -39
- package/scss/components/selection-list.scss +0 -22
- package/scss/components/side-menu.scss +0 -44
- package/scss/components/switch.scss +0 -178
- package/scss/components/table.scss +0 -22
- package/scss/components/tabs.scss +0 -115
- package/scss/components/text-box.scss +0 -4
- package/scss/components/toast.scss +0 -82
- package/scss/components/tooltip.scss +0 -42
- package/variables/bases/_accessiblity.scss +0 -22
- package/variables/bases/_background.scss +0 -57
- package/variables/bases/_border.scss +0 -106
- package/variables/bases/_common.scss +0 -6
- package/variables/bases/_effects.scss +0 -36
- package/variables/bases/_filter.scss +0 -62
- package/variables/bases/_flexbox-and-grid.scss +0 -138
- package/variables/bases/_interactivity.scss +0 -31
- package/variables/bases/_layout.scss +0 -102
- package/variables/bases/_root.scss +0 -70
- package/variables/bases/_sizing.scss +0 -322
- package/variables/bases/_spacing.scss +0 -38
- package/variables/bases/_svg.scss +0 -1
- package/variables/bases/_table.scss +0 -2
- package/variables/bases/_transform.scss +0 -88
- package/variables/bases/_transition-and-animation.scss +0 -26
- package/variables/bases/_typography.scss +0 -191
- package/variables/components/_button.scss +0 -0
- package/variables/components/_editor-container.scss +0 -5
- package/variables/components/_input.scss +0 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
@layer components {
|
2
|
+
.ax-list {
|
3
|
+
display: block;
|
4
|
+
}
|
5
|
+
.ax-list-container {
|
6
|
+
.ax-list-items-container {
|
7
|
+
@apply ax-bg-white ax-py-1 ax-rounded ax-shadow ax-overflow-y-auto ax-h-full ax-border ax-border-solid ax-border-default;
|
8
|
+
&.ax-vertical {
|
9
|
+
@apply ax-grid ax-grid-cols-1;
|
10
|
+
&.ax-divide {
|
11
|
+
@apply ax-divide-y ax-divide-x-0 ax-divide-light-600 ax-divide-opacity-30 ax-divide-solid;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
&.ax-default {
|
15
|
+
@apply ax-cursor-pointer;
|
16
|
+
.ax-list-item {
|
17
|
+
height: calc(var(--ax-base-size) * var(--ax-base-ratio)) !important;
|
18
|
+
@apply ax-text-sm ax-flex ax-items-center ax-px-3;
|
19
|
+
&:focus,
|
20
|
+
&:focus-visible {
|
21
|
+
@apply ax-outline-none;
|
22
|
+
}
|
23
|
+
&:hover {
|
24
|
+
&:not(.ax-state-selected) {
|
25
|
+
@apply ax-bg-primary-50 ax-text-primary;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
&.ax-state-selected {
|
29
|
+
@apply ax-bg-primary-100 ax-text-primary ax-font-medium;
|
30
|
+
}
|
31
|
+
&:focus,
|
32
|
+
&.ax-state-focus {
|
33
|
+
&:not(.ax-state-selected) {
|
34
|
+
@apply ax-outline-none ax-bg-primary-50 ax-text-primary;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
.ax-list-loading-container {
|
41
|
+
@apply ax-flex ax-justify-center ax-p-2;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
.cdk-overlay-container {
|
45
|
+
.ax-list-items-container {
|
46
|
+
max-height: 25vh;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
@layer components {
|
2
|
+
.ax-loading {
|
3
|
+
}
|
4
|
+
|
5
|
+
.ax-loading-host {
|
6
|
+
.ax-loading {
|
7
|
+
|
8
|
+
position: relative;
|
9
|
+
background: rgba(var(--ax-color-white) 2);
|
10
|
+
width: 4rem;
|
11
|
+
height: 4rem;
|
12
|
+
|
13
|
+
&::before,
|
14
|
+
&::after {
|
15
|
+
content: "";
|
16
|
+
position: absolute;
|
17
|
+
top: 50%;
|
18
|
+
left: 50%;
|
19
|
+
width: 100%;
|
20
|
+
height: 100%;
|
21
|
+
border-radius: 50%;
|
22
|
+
transform: translate(-50%, -50%) scale(0);
|
23
|
+
}
|
24
|
+
|
25
|
+
&::before {
|
26
|
+
@apply ax-bg-primary;
|
27
|
+
animation: pulse2 2s ease-in-out infinite;
|
28
|
+
}
|
29
|
+
|
30
|
+
&::after {
|
31
|
+
@apply ax-bg-primary;
|
32
|
+
animation: pulse2 2s 1s ease-in-out infinite;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.ax-loading-overlay {
|
38
|
+
background: rgba(var(--ax-color-white) 2);
|
39
|
+
}
|
40
|
+
|
41
|
+
@keyframes pulse2 {
|
42
|
+
|
43
|
+
0%,
|
44
|
+
100% {
|
45
|
+
transform: translate(-50%, -50%) scale(0);
|
46
|
+
opacity: 1;
|
47
|
+
}
|
48
|
+
|
49
|
+
50% {
|
50
|
+
transform: translate(-50%, -50%) scale(1);
|
51
|
+
opacity: 0;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
@layer components {
|
2
|
+
.ax-popup {
|
3
|
+
max-height: 98vh;
|
4
|
+
min-height: fit-content;
|
5
|
+
@apply ax-flex ax-flex-col ax-bg-white ax-w-6/12 ax-shadow-lg ax-border ax-border-solid ax-border-default ax-rounded ax-outline-none ax-p-0;
|
6
|
+
header {
|
7
|
+
@apply ax-flex ax-justify-between ax-px-3 ax-py-2;
|
8
|
+
}
|
9
|
+
main {
|
10
|
+
@apply ax-flex-1 ax-overflow-auto;
|
11
|
+
}
|
12
|
+
footer {
|
13
|
+
@apply ax-grid ax-grid-cols-12 ax-gap-2 ax-px-3 ax-py-2 ax-border-t ax-border-solid ax-border-default;
|
14
|
+
.ax-prefix {
|
15
|
+
@apply ax-flex ax-col-span-6 ax-col-start-1 ax-col-end-7 ax-justify-start;
|
16
|
+
}
|
17
|
+
.ax-suffix {
|
18
|
+
@apply ax-flex ax-col-span-6 ax-col-start-7 ax-col-end-13 ax-justify-end;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
header,
|
22
|
+
footer {
|
23
|
+
>div {
|
24
|
+
@apply ax-flex ax-items-center;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
&.ax-full {
|
28
|
+
@apply ax-w-screen ax-h-screen;
|
29
|
+
}
|
30
|
+
&.ax-fit {
|
31
|
+
width: fit-content;
|
32
|
+
}
|
33
|
+
@media all and (min-width: 1280px) {
|
34
|
+
&.ax-sm {
|
35
|
+
width: 420px !important;
|
36
|
+
}
|
37
|
+
&.ax-md {
|
38
|
+
width: 680px !important;
|
39
|
+
}
|
40
|
+
&.ax-lg {
|
41
|
+
width: 1024px !important;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
@media all and (min-width: 1024px) and (max-width: 1279px) {
|
45
|
+
&.ax-sm {
|
46
|
+
width: 100vw;
|
47
|
+
max-height: 100vh;
|
48
|
+
}
|
49
|
+
&.ax-md {
|
50
|
+
width: 500px !important;
|
51
|
+
}
|
52
|
+
&.ax-lg {
|
53
|
+
width: 900px !important;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
@media all and (min-width: 768px) and (max-width: 1023px) {
|
57
|
+
&.ax-sm {
|
58
|
+
width: 100vw;
|
59
|
+
max-height: 100vh;
|
60
|
+
}
|
61
|
+
&.ax-md {
|
62
|
+
width: 500px !important;
|
63
|
+
}
|
64
|
+
&.ax-lg {
|
65
|
+
width: 700px !important;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
@media all and (min-width: 425px) and (max-width: 767px) {
|
69
|
+
&.ax-sm {
|
70
|
+
width: 100vw;
|
71
|
+
max-height: 100vh;
|
72
|
+
}
|
73
|
+
&.ax-md,
|
74
|
+
&.ax-lg {
|
75
|
+
width: 460px !important;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
@media all and (min-width: 0px) and (max-width: 424px) {
|
79
|
+
&.ax-sm,
|
80
|
+
&.ax-md,
|
81
|
+
&.ax-lg {
|
82
|
+
width: 100vw;
|
83
|
+
max-height: 100vh;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
@import "../variables/mixins";
|
2
|
+
@layer components {
|
3
|
+
.ax-radio-container {
|
4
|
+
@apply ax-text-sm ax-font-medium ax-text-gray-700;
|
5
|
+
@include respond(mobile) {
|
6
|
+
@apply ax-text-base;
|
7
|
+
}
|
8
|
+
.ax-radio {
|
9
|
+
@apply ax-w-4
|
10
|
+
ax-h-4
|
11
|
+
ax-border-solid
|
12
|
+
ax-border
|
13
|
+
ax-border-default
|
14
|
+
ax-rounded-full
|
15
|
+
ax-bg-white
|
16
|
+
ax-text-primary
|
17
|
+
ax-m-0
|
18
|
+
ax-outline-none
|
19
|
+
ax-align-middle
|
20
|
+
ax-appearance-none;
|
21
|
+
&:checked {
|
22
|
+
@apply ax-border-primary ax-bg-no-repeat ax-bg-current ax-bg-contain;
|
23
|
+
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");
|
24
|
+
}
|
25
|
+
&:focus {
|
26
|
+
@apply ax-ring-2 ax-ring-primary ax-ring-offset-2;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
@layer components {
|
2
|
+
.ax-range-slider {
|
3
|
+
@apply ax-w-full;
|
4
|
+
.ax-range-slider-input {
|
5
|
+
@apply ax-appearance-none ax-w-full ax-h-2 ax-bg-light-100 ax-rounded-full ax-outline-none ax-transition-all;
|
6
|
+
&::-webkit-slider-thumb {
|
7
|
+
@apply ax-appearance-none ax-w-5 ax-h-5 ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-default ax-rounded-full ax-cursor-pointer;
|
8
|
+
}
|
9
|
+
&::-moz-range-thumb {
|
10
|
+
@apply ax-appearance-none ax-w-5 ax-h-5 ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-default ax-rounded-full ax-cursor-pointer;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@layer components {
|
2
|
+
.ax-select-box {
|
3
|
+
.ax-select-box-selection {
|
4
|
+
@apply ax-flex ax-justify-center ax-items-center ax-outline-none;
|
5
|
+
|
6
|
+
.ax-dropdown-chips {
|
7
|
+
@apply ax-flex ax-overflow-x-auto;
|
8
|
+
}
|
9
|
+
|
10
|
+
.ax-selectbox-input {
|
11
|
+
@apply ax-opacity-0 ax-w-0;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
@layer components {
|
2
|
+
.ax-selection-list {
|
3
|
+
@apply ax-flex ax-flex-wrap;
|
4
|
+
|
5
|
+
&.ax-vertical {
|
6
|
+
@apply ax-flex-col;
|
7
|
+
}
|
8
|
+
|
9
|
+
&.ax-horizontal {
|
10
|
+
@apply ax-flex-row;
|
11
|
+
.ax-checkbox-container,
|
12
|
+
.ax-radio-container {
|
13
|
+
@apply ax-pe-3;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
&.ax-state-error {
|
18
|
+
@apply ax-text-danger;
|
19
|
+
.ax-checkbox-checkmark {
|
20
|
+
@apply ax-border-danger;
|
21
|
+
}
|
22
|
+
|
23
|
+
.ax-radio-checkmark {
|
24
|
+
@apply ax-border-danger;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +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
|
+
}
|
@@ -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
|
+
}
|
@@ -0,0 +1,200 @@
|
|
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
|
+
}
|
@@ -0,0 +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
|
+
}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
@layer components {
|
2
|
+
.ax-tabs {
|
3
|
+
@apply ax-flex ax-p-0 ax-overflow-hidden;
|
4
|
+
&.ax-tabs-full {
|
5
|
+
.ax-tab-item-container,
|
6
|
+
.ax-tab-item {
|
7
|
+
@apply ax-flex-1;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
&.ax-tabs-min-width {
|
12
|
+
.ax-tab-item {
|
13
|
+
min-width: 250px;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
& > .ax-tab-controll {
|
18
|
+
@apply ax-flex ax-items-center ax-justify-center ax-px-1 ax-cursor-pointer;
|
19
|
+
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14),
|
20
|
+
0 1px 10px 0 rgba(0, 0, 0, 0.12);
|
21
|
+
}
|
22
|
+
|
23
|
+
.ax-tab-item-container {
|
24
|
+
@apply ax-flex ax-overflow-x-auto;
|
25
|
+
.ax-tab-item {
|
26
|
+
@apply ax-text-center
|
27
|
+
ax-px-5
|
28
|
+
ax-cursor-pointer
|
29
|
+
ax-whitespace-nowrap
|
30
|
+
ax-font-medium
|
31
|
+
ax-flex
|
32
|
+
ax-items-center
|
33
|
+
ax-justify-center;
|
34
|
+
height: calc(var(--ax-base-size) * var(--ax-base-ratio) * 1.2);
|
35
|
+
line-height: calc((var(--ax-base-size) * var(--ax-base-ratio)) / 2);
|
36
|
+
&.ax-state-disabled {
|
37
|
+
background-color: rgb(var(--ax-color-disabled)) !important;
|
38
|
+
color: rgb(var(--ax-color-disabled-fore)) !important;
|
39
|
+
cursor: not-allowed !important;
|
40
|
+
}
|
41
|
+
&.ax-state-active {
|
42
|
+
@apply ax-text-black;
|
43
|
+
}
|
44
|
+
.ax-ic {
|
45
|
+
@apply ax-text-2xl;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
&.ax-tabs-default {
|
51
|
+
.ax-tab-item-container {
|
52
|
+
@apply ax-border ax-border-solid ax-border-default ax-shadow-sm ax-rounded;
|
53
|
+
.ax-tab-item {
|
54
|
+
@apply ax-bg-white ax-border-r ax-border-b-2 ax-border-solid ax-border;
|
55
|
+
border-bottom-color: transparent !important;
|
56
|
+
&:first-child {
|
57
|
+
@apply ax-rounded-l;
|
58
|
+
}
|
59
|
+
&:last-child {
|
60
|
+
@apply ax-rounded-r ax-border-r-0;
|
61
|
+
}
|
62
|
+
&:hover,
|
63
|
+
&.ax-state-active {
|
64
|
+
@apply ax-font-medium;
|
65
|
+
border-bottom-color: rgb(var(--ax-color-primary)) !important;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
&.ax-tabs-underline {
|
72
|
+
.ax-tab-item {
|
73
|
+
@apply ax-border-b-2 ax-border-solid ax-border-default;
|
74
|
+
|
75
|
+
&.ax-state-active {
|
76
|
+
@apply ax-border-primary ax-text-primary;
|
77
|
+
|
78
|
+
&:hover {
|
79
|
+
@apply ax-border-primary;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
&:hover {
|
84
|
+
@apply ax-border-primary-300 ax-text-primary;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
&.ax-tabs-pills {
|
90
|
+
.ax-tab-item {
|
91
|
+
@apply ax-text-light-fore ax-mr-1 ax-rounded;
|
92
|
+
|
93
|
+
&:hover {
|
94
|
+
@apply ax-bg-light-300 ax-text-light-fore;
|
95
|
+
}
|
96
|
+
|
97
|
+
&.ax-state-active {
|
98
|
+
@apply ax-bg-light-300 ax-text-light-fore;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
&.ax-tabs-pills-color {
|
104
|
+
.ax-tab-item {
|
105
|
+
@apply ax-text-light-fore ax-mr-1 ax-rounded;
|
106
|
+
|
107
|
+
&:hover {
|
108
|
+
@apply ax-bg-primary-100 ax-text-primary;
|
109
|
+
}
|
110
|
+
|
111
|
+
&.ax-state-active {
|
112
|
+
@apply ax-bg-primary-100 ax-text-primary;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|