@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
package/index.scss
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
@import "./src/base/index.scss";
|
2
|
-
@import "./src/components/index.scss";
|
1
|
+
@import "./src/base/index.scss";
|
2
|
+
@import "./src/components/index.scss";
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@acorex/styles",
|
3
|
+
"version": "5.0.4",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "ISC"
|
11
|
+
}
|
package/src/base/_colors.scss
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
@import "../variables/colors";
|
2
|
-
@mixin colors() {
|
3
|
-
@each $name, $color in $theme-colors {
|
4
|
-
@if (type-of($color) == "map") {
|
5
|
-
@each $subname, $variant in $color {
|
6
|
-
@if ($subname != "") {
|
7
|
-
--ax-color-#{$name}-#{$subname}: #{$variant};
|
8
|
-
} @else {
|
9
|
-
--ax-color-#{$name}: #{$variant};
|
10
|
-
}
|
11
|
-
}
|
12
|
-
} @else {
|
13
|
-
--ax-color-#{$name}: #{$color};
|
14
|
-
}
|
15
|
-
}
|
16
|
-
}
|
1
|
+
@import "../variables/colors";
|
2
|
+
@mixin colors() {
|
3
|
+
@each $name, $color in $theme-colors {
|
4
|
+
@if (type-of($color) == "map") {
|
5
|
+
@each $subname, $variant in $color {
|
6
|
+
@if ($subname != "") {
|
7
|
+
--ax-color-#{$name}-#{$subname}: #{$variant};
|
8
|
+
} @else {
|
9
|
+
--ax-color-#{$name}: #{$variant};
|
10
|
+
}
|
11
|
+
}
|
12
|
+
} @else {
|
13
|
+
--ax-color-#{$name}: #{$color};
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
package/src/base/index.scss
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
@import "./colors";
|
2
|
-
|
3
|
-
:root {
|
4
|
-
--ax-base-size: 8px;
|
5
|
-
--ax-base-ratio: 5;
|
6
|
-
@include colors();
|
7
|
-
}
|
1
|
+
@import "./colors";
|
2
|
+
|
3
|
+
:root {
|
4
|
+
--ax-base-size: 8px;
|
5
|
+
--ax-base-ratio: 5;
|
6
|
+
@include colors();
|
7
|
+
}
|
@@ -1,148 +1,148 @@
|
|
1
|
-
@import "../variables/mixins";
|
2
|
-
@layer components {
|
3
|
-
.ax-alert {
|
4
|
-
@apply ax-flex ax-bg-light-100 ax-text-light-fore ax-px-3.5 ax-py-4 ax-items-baseline ax-rounded;
|
5
|
-
.ax-alert-icon {
|
6
|
-
@apply ax-text-xl ax-align-text-bottom;
|
7
|
-
@include respond(mobile) {
|
8
|
-
@apply ax-text-2xl;
|
9
|
-
}
|
10
|
-
}
|
11
|
-
.ax-alert-body {
|
12
|
-
@apply ax-ml-2 ax-flex-1;
|
13
|
-
.ax-alert-title {
|
14
|
-
@apply ax-inline-flex ax-text-sm ax-font-bold ax-mb-2.5;
|
15
|
-
@include respond(mobile) {
|
16
|
-
@apply ax-text-base;
|
17
|
-
}
|
18
|
-
a {
|
19
|
-
@apply ax-text-current ax-font-bold;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
.ax-alert-content {
|
23
|
-
@apply ax-block ax-text-sm;
|
24
|
-
@include respond(mobile) {
|
25
|
-
@apply ax-text-base;
|
26
|
-
}
|
27
|
-
ul {
|
28
|
-
@apply ax-my-2 ax-ms-5 ax-list-disc;
|
29
|
-
}
|
30
|
-
a {
|
31
|
-
@apply ax-text-current ax-font-bold ax-underline;
|
32
|
-
&:hover {
|
33
|
-
@apply ax-underline;
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
37
|
-
.ax-alert-footer {
|
38
|
-
.ax-alert-buttons {
|
39
|
-
@apply ax-flex ax-mt-2;
|
40
|
-
.ax-alert-button {
|
41
|
-
@apply ax-font-bold ax-me-4 ax-cursor-pointer ax-rounded;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|
46
|
-
.ax-alert-suffix {
|
47
|
-
.ax-alert-buttons {
|
48
|
-
.ax-alert-button {
|
49
|
-
@apply ax-font-bold ax-me-0.5 ax-cursor-pointer ax-rounded;
|
50
|
-
i {
|
51
|
-
@apply ax-mx-1;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
55
|
-
}
|
56
|
-
&.ax-primary {
|
57
|
-
@apply ax-bg-primary-50 ax-text-primary;
|
58
|
-
.ax-alert-content {
|
59
|
-
@apply ax-block ax-text-sm;
|
60
|
-
}
|
61
|
-
.ax-alert-title {
|
62
|
-
@apply ax-text-primary-700;
|
63
|
-
}
|
64
|
-
.ax-alert-button {
|
65
|
-
&:hover {
|
66
|
-
@apply ax-text-primary-800;
|
67
|
-
}
|
68
|
-
}
|
69
|
-
}
|
70
|
-
&.ax-secondary {
|
71
|
-
@apply ax-bg-secondary-50 ax-text-secondary;
|
72
|
-
.ax-alert-title {
|
73
|
-
@apply ax-text-secondary-700;
|
74
|
-
}
|
75
|
-
.ax-alert-button {
|
76
|
-
&:hover {
|
77
|
-
@apply ax-text-secondary-800;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
81
|
-
&.ax-success {
|
82
|
-
@apply ax-bg-success-50 ax-text-success;
|
83
|
-
.ax-alert-title {
|
84
|
-
@apply ax-text-success-700;
|
85
|
-
}
|
86
|
-
.ax-alert-button {
|
87
|
-
&:hover {
|
88
|
-
@apply ax-text-success-800;
|
89
|
-
}
|
90
|
-
}
|
91
|
-
}
|
92
|
-
&.ax-warning {
|
93
|
-
@apply ax-bg-warning-50 ax-text-warning;
|
94
|
-
.ax-alert-title {
|
95
|
-
@apply ax-text-warning-700;
|
96
|
-
}
|
97
|
-
.ax-alert-button {
|
98
|
-
&:hover {
|
99
|
-
@apply ax-text-warning-800;
|
100
|
-
}
|
101
|
-
}
|
102
|
-
}
|
103
|
-
&.ax-danger {
|
104
|
-
@apply ax-bg-danger-50 ax-text-danger;
|
105
|
-
.ax-alert-title {
|
106
|
-
@apply ax-text-danger-700;
|
107
|
-
}
|
108
|
-
.ax-alert-button {
|
109
|
-
&:hover {
|
110
|
-
@apply ax-text-danger-800;
|
111
|
-
}
|
112
|
-
}
|
113
|
-
}
|
114
|
-
&.ax-info {
|
115
|
-
@apply ax-bg-info-50 ax-text-info;
|
116
|
-
.ax-alert-title {
|
117
|
-
@apply ax-text-info-700;
|
118
|
-
}
|
119
|
-
.ax-alert-button {
|
120
|
-
&:hover {
|
121
|
-
@apply ax-text-info-800;
|
122
|
-
}
|
123
|
-
}
|
124
|
-
}
|
125
|
-
&.ax-light {
|
126
|
-
@apply ax-bg-gray-50 ax-text-light-fore;
|
127
|
-
.ax-alert-title {
|
128
|
-
@apply ax-text-light-fore;
|
129
|
-
}
|
130
|
-
.ax-alert-button {
|
131
|
-
&:hover {
|
132
|
-
@apply ax-text-light-800;
|
133
|
-
}
|
134
|
-
}
|
135
|
-
}
|
136
|
-
&.ax-dark {
|
137
|
-
@apply ax-bg-dark ax-text-dark-fore;
|
138
|
-
.ax-alert-title {
|
139
|
-
@apply ax-text-dark-fore;
|
140
|
-
}
|
141
|
-
.ax-alert-button {
|
142
|
-
&:hover {
|
143
|
-
@apply ax-bg-dark;
|
144
|
-
}
|
145
|
-
}
|
146
|
-
}
|
147
|
-
}
|
1
|
+
@import "../variables/mixins";
|
2
|
+
@layer components {
|
3
|
+
.ax-alert {
|
4
|
+
@apply ax-flex ax-bg-light-100 ax-text-light-fore ax-px-3.5 ax-py-4 ax-items-baseline ax-rounded;
|
5
|
+
.ax-alert-icon {
|
6
|
+
@apply ax-text-xl ax-align-text-bottom;
|
7
|
+
@include respond(mobile) {
|
8
|
+
@apply ax-text-2xl;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
.ax-alert-body {
|
12
|
+
@apply ax-ml-2 ax-flex-1;
|
13
|
+
.ax-alert-title {
|
14
|
+
@apply ax-inline-flex ax-text-sm ax-font-bold ax-mb-2.5;
|
15
|
+
@include respond(mobile) {
|
16
|
+
@apply ax-text-base;
|
17
|
+
}
|
18
|
+
a {
|
19
|
+
@apply ax-text-current ax-font-bold;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
.ax-alert-content {
|
23
|
+
@apply ax-block ax-text-sm;
|
24
|
+
@include respond(mobile) {
|
25
|
+
@apply ax-text-base;
|
26
|
+
}
|
27
|
+
ul {
|
28
|
+
@apply ax-my-2 ax-ms-5 ax-list-disc;
|
29
|
+
}
|
30
|
+
a {
|
31
|
+
@apply ax-text-current ax-font-bold ax-underline;
|
32
|
+
&:hover {
|
33
|
+
@apply ax-underline;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
.ax-alert-footer {
|
38
|
+
.ax-alert-buttons {
|
39
|
+
@apply ax-flex ax-mt-2;
|
40
|
+
.ax-alert-button {
|
41
|
+
@apply ax-font-bold ax-me-4 ax-cursor-pointer ax-rounded;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
.ax-alert-suffix {
|
47
|
+
.ax-alert-buttons {
|
48
|
+
.ax-alert-button {
|
49
|
+
@apply ax-font-bold ax-me-0.5 ax-cursor-pointer ax-rounded;
|
50
|
+
i {
|
51
|
+
@apply ax-mx-1;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
&.ax-primary {
|
57
|
+
@apply ax-bg-primary-50 ax-text-primary;
|
58
|
+
.ax-alert-content {
|
59
|
+
@apply ax-block ax-text-sm;
|
60
|
+
}
|
61
|
+
.ax-alert-title {
|
62
|
+
@apply ax-text-primary-700;
|
63
|
+
}
|
64
|
+
.ax-alert-button {
|
65
|
+
&:hover {
|
66
|
+
@apply ax-text-primary-800;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
&.ax-secondary {
|
71
|
+
@apply ax-bg-secondary-50 ax-text-secondary;
|
72
|
+
.ax-alert-title {
|
73
|
+
@apply ax-text-secondary-700;
|
74
|
+
}
|
75
|
+
.ax-alert-button {
|
76
|
+
&:hover {
|
77
|
+
@apply ax-text-secondary-800;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
&.ax-success {
|
82
|
+
@apply ax-bg-success-50 ax-text-success;
|
83
|
+
.ax-alert-title {
|
84
|
+
@apply ax-text-success-700;
|
85
|
+
}
|
86
|
+
.ax-alert-button {
|
87
|
+
&:hover {
|
88
|
+
@apply ax-text-success-800;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
&.ax-warning {
|
93
|
+
@apply ax-bg-warning-50 ax-text-warning;
|
94
|
+
.ax-alert-title {
|
95
|
+
@apply ax-text-warning-700;
|
96
|
+
}
|
97
|
+
.ax-alert-button {
|
98
|
+
&:hover {
|
99
|
+
@apply ax-text-warning-800;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
&.ax-danger {
|
104
|
+
@apply ax-bg-danger-50 ax-text-danger;
|
105
|
+
.ax-alert-title {
|
106
|
+
@apply ax-text-danger-700;
|
107
|
+
}
|
108
|
+
.ax-alert-button {
|
109
|
+
&:hover {
|
110
|
+
@apply ax-text-danger-800;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
&.ax-info {
|
115
|
+
@apply ax-bg-info-50 ax-text-info;
|
116
|
+
.ax-alert-title {
|
117
|
+
@apply ax-text-info-700;
|
118
|
+
}
|
119
|
+
.ax-alert-button {
|
120
|
+
&:hover {
|
121
|
+
@apply ax-text-info-800;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
&.ax-light {
|
126
|
+
@apply ax-bg-gray-50 ax-text-light-fore;
|
127
|
+
.ax-alert-title {
|
128
|
+
@apply ax-text-light-fore;
|
129
|
+
}
|
130
|
+
.ax-alert-button {
|
131
|
+
&:hover {
|
132
|
+
@apply ax-text-light-800;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
&.ax-dark {
|
137
|
+
@apply ax-bg-dark ax-text-dark-fore;
|
138
|
+
.ax-alert-title {
|
139
|
+
@apply ax-text-dark-fore;
|
140
|
+
}
|
141
|
+
.ax-alert-button {
|
142
|
+
&:hover {
|
143
|
+
@apply ax-bg-dark;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
148
|
}
|
@@ -1,39 +1,39 @@
|
|
1
|
-
@layer components {
|
2
|
-
.ax-badge {
|
3
|
-
@apply ax-flex ax-items-center ax-justify-center ax-max-w-max ax-py-1 ax-px-2 ax-rounded ax-cursor-pointer ax-text-sm ax-whitespace-nowrap;
|
4
|
-
.ax-ic {
|
5
|
-
@apply ax-text-sm ax-ms-1;
|
6
|
-
}
|
7
|
-
&.ax-badge-rounded-full {
|
8
|
-
@apply ax-rounded-full;
|
9
|
-
}
|
10
|
-
&.ax-primary {
|
11
|
-
@apply ax-bg-primary-100 ax-text-primary;
|
12
|
-
}
|
13
|
-
&.ax-secondary {
|
14
|
-
@apply ax-bg-secondary-100 ax-text-secondary;
|
15
|
-
}
|
16
|
-
&.ax-warning {
|
17
|
-
@apply ax-bg-warning-100 ax-text-warning;
|
18
|
-
}
|
19
|
-
&.ax-danger {
|
20
|
-
@apply ax-bg-danger-100 ax-text-danger;
|
21
|
-
}
|
22
|
-
&.ax-success {
|
23
|
-
@apply ax-bg-success-100 ax-text-success;
|
24
|
-
}
|
25
|
-
&.ax-info {
|
26
|
-
@apply ax-bg-info-100 ax-text-info;
|
27
|
-
}
|
28
|
-
&.ax-light {
|
29
|
-
@apply ax-bg-light-100 ax-text-light-fore;
|
30
|
-
}
|
31
|
-
&.ax-dark {
|
32
|
-
@apply ax-bg-dark-100 ax-text-dark;
|
33
|
-
}
|
34
|
-
&.ax-sm {
|
35
|
-
}
|
36
|
-
&.ax-lg {
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
1
|
+
@layer components {
|
2
|
+
.ax-badge {
|
3
|
+
@apply ax-flex ax-items-center ax-justify-center ax-max-w-max ax-py-1 ax-px-2 ax-rounded ax-cursor-pointer ax-text-sm ax-whitespace-nowrap;
|
4
|
+
.ax-ic {
|
5
|
+
@apply ax-text-sm ax-ms-1;
|
6
|
+
}
|
7
|
+
&.ax-badge-rounded-full {
|
8
|
+
@apply ax-rounded-full;
|
9
|
+
}
|
10
|
+
&.ax-primary {
|
11
|
+
@apply ax-bg-primary-100 ax-text-primary;
|
12
|
+
}
|
13
|
+
&.ax-secondary {
|
14
|
+
@apply ax-bg-secondary-100 ax-text-secondary;
|
15
|
+
}
|
16
|
+
&.ax-warning {
|
17
|
+
@apply ax-bg-warning-100 ax-text-warning;
|
18
|
+
}
|
19
|
+
&.ax-danger {
|
20
|
+
@apply ax-bg-danger-100 ax-text-danger;
|
21
|
+
}
|
22
|
+
&.ax-success {
|
23
|
+
@apply ax-bg-success-100 ax-text-success;
|
24
|
+
}
|
25
|
+
&.ax-info {
|
26
|
+
@apply ax-bg-info-100 ax-text-info;
|
27
|
+
}
|
28
|
+
&.ax-light {
|
29
|
+
@apply ax-bg-light-100 ax-text-light-fore;
|
30
|
+
}
|
31
|
+
&.ax-dark {
|
32
|
+
@apply ax-bg-dark-100 ax-text-dark;
|
33
|
+
}
|
34
|
+
&.ax-sm {
|
35
|
+
}
|
36
|
+
&.ax-lg {
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|