@acorex/styles 5.3.0 → 5.3.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/package.json +1 -1
- package/src/components/_alert.scss +11 -6
- package/src/components/_calendar.scss +4 -2
- package/src/components/_collapse.scss +12 -7
- package/src/components/_color-palette.scss +60 -0
- package/src/components/_color-picker.scss +18 -0
- package/src/components/_decoration.scss +1 -4
- package/src/components/_dialog.scss +5 -5
- package/src/components/_drawer.scss +5 -1
- package/src/components/_dropdown.scss +10 -8
- package/src/components/_list.scss +8 -4
- package/src/components/_popup.scss +5 -1
- package/src/components/_progress.scss +1 -1
- package/src/components/_selection-list.scss +2 -2
- package/src/components/_tabs.scss +1 -1
- package/src/components/_textarea.scss +2 -0
- package/src/components/_toast.scss +2 -6
- package/src/components/_treeview.scss +1 -1
- package/src/components/index.scss +2 -0
- package/src/icons/demo-files/demo.css +152 -152
- package/src/icons/demo-files/demo.js +30 -30
- package/src/icons/demo.html +500 -500
- package/src/icons/fonts/acorex-icon.svg +42 -42
- package/src/icons/style.css +126 -126
- package/src/icons/style.scss +195 -195
- package/src/icons/variables.scss +37 -37
- package/src/utility/_mixins.scss +2 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
@layer components {
|
2
2
|
ax-alert {
|
3
|
-
@apply ax-relative ax-flex ax-flex-col ax-bg-light-100 ax-text-light-fore ax-rounded ax-overflow-hidden;
|
3
|
+
@apply ax-relative ax-w-full ax-flex ax-flex-col ax-bg-light-100 ax-text-light-fore ax-rounded ax-overflow-hidden;
|
4
4
|
transition: visibility 0s, opacity 0.5s ease-in-out;
|
5
5
|
|
6
6
|
&.ax-state-hidden {
|
@@ -41,22 +41,27 @@
|
|
41
41
|
}
|
42
42
|
|
43
43
|
ax-suffix {
|
44
|
-
@apply ax-block
|
44
|
+
@apply ax-block;
|
45
45
|
ax-button {
|
46
|
-
@apply ax-ms-2
|
46
|
+
@apply ax-ms-2 #{!important};
|
47
47
|
}
|
48
48
|
}
|
49
49
|
|
50
50
|
ax-footer {
|
51
51
|
@apply ax-bg-transparent ax-border-none ax-p-0 ax-mt-3;
|
52
|
-
|
53
|
-
|
52
|
+
|
53
|
+
ax-suffix {
|
54
|
+
ax-button{
|
55
|
+
@apply ax-ms-0 ax-me-2 #{!important};
|
56
|
+
}
|
57
|
+
@apply ax-mt-3;
|
54
58
|
}
|
55
59
|
}
|
56
60
|
}
|
57
61
|
&.ax-light-default {
|
62
|
+
|
58
63
|
ax-header {
|
59
|
-
@apply ax-bg-light-200;
|
64
|
+
@apply ax-bg-light-200 ;
|
60
65
|
}
|
61
66
|
.ax-alert-body {
|
62
67
|
@applyax-bg-light-300;
|
@@ -1,7 +1,9 @@
|
|
1
1
|
@layer components {
|
2
2
|
ax-calendar {
|
3
|
-
@apply ax-block ax-border ax-border-solid ax-border-light-300 ax-rounded ax-bg-white ax-select-none dark:ax-bg-white/[0.03] dark:ax-border-transparent;
|
4
|
-
|
3
|
+
@apply ax-w-80 ax-block ax-border ax-border-solid ax-border-light-300 ax-rounded ax-bg-white ax-select-none dark:ax-bg-white/[0.03] dark:ax-border-transparent;
|
4
|
+
@include screen(mobile){
|
5
|
+
@apply ax-w-full;
|
6
|
+
}
|
5
7
|
&.ax-state-disabled {
|
6
8
|
.ax-calendar-slots {
|
7
9
|
@apply ax-opacity-50 ax-cursor-default;
|
@@ -2,10 +2,10 @@
|
|
2
2
|
ax-collpase,
|
3
3
|
.ax-collapse {
|
4
4
|
@apply ax-border ax-border-light-200 ax-block ax-text-sm ax-rounded ax-overflow-hidden;
|
5
|
-
|
5
|
+
@include control-states("editor");
|
6
6
|
.ax-collapse-header {
|
7
7
|
@apply ax-cursor-pointer ax-select-none;
|
8
|
-
|
8
|
+
|
9
9
|
&.ax-state-collapsed {
|
10
10
|
.ax-collapse-header-container {
|
11
11
|
@apply ax-border-b-0;
|
@@ -13,15 +13,19 @@
|
|
13
13
|
@apply -ax-rotate-90;
|
14
14
|
}
|
15
15
|
}
|
16
|
-
.ax-collapse-custom-header-container{
|
16
|
+
.ax-collapse-custom-header-container {
|
17
17
|
@apply ax-border-b-0;
|
18
18
|
}
|
19
19
|
}
|
20
|
-
.ax-collapse-custom-header-container{
|
21
|
-
@apply ax-bg-light-
|
20
|
+
.ax-collapse-custom-header-container {
|
21
|
+
@apply ax-bg-light-100 ax-border-b ax-border-light-200;
|
22
|
+
@include control-states("editor");
|
23
|
+
|
22
24
|
}
|
23
25
|
.ax-collapse-header-container {
|
24
|
-
@apply ax-flex ax-justify-between ax-px-3 ax-py-1.5 ax-bg-light-
|
26
|
+
@apply ax-flex ax-justify-between ax-px-3 ax-py-1.5 ax-bg-light-100 ax-border-b ax-border-light-100;
|
27
|
+
@include control-states("editor");
|
28
|
+
|
25
29
|
.ax-collapse-arrow {
|
26
30
|
@apply ax-inline-block ax-text-xl ax-me-2 ax-rotate-90;
|
27
31
|
}
|
@@ -33,12 +37,13 @@
|
|
33
37
|
}
|
34
38
|
.ax-collapse-group {
|
35
39
|
@apply ax-block ax-border ax-border-light-200 ax-rounded ax-overflow-hidden;
|
40
|
+
@include control-states('editor');
|
36
41
|
|
37
42
|
ax-collpase,
|
38
43
|
.ax-collapse {
|
39
44
|
@apply ax-rounded-none ax-border-none;
|
40
45
|
.ax-collapse-header-container {
|
41
|
-
@apply ax-border-t ax-border-light-
|
46
|
+
@apply ax-border-t ax-border-light-100;
|
42
47
|
}
|
43
48
|
}
|
44
49
|
ax-collapse {
|
@@ -0,0 +1,60 @@
|
|
1
|
+
@layer components {
|
2
|
+
ax-color-palette {
|
3
|
+
@apply ax-block ax-w-72 ax-border ax-border-light-200 ax-rounded;
|
4
|
+
@include control-states("surface");
|
5
|
+
--ax-base-ratio: 4;
|
6
|
+
|
7
|
+
ax-header,
|
8
|
+
ax-footer {
|
9
|
+
@apply ax-bg-white ax-p-3 ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
|
10
|
+
@include control-states("editor");
|
11
|
+
}
|
12
|
+
ax-color-palette-preview {
|
13
|
+
@apply ax-h-20 ax-w-full ax-mb-2 ax-rounded-t ax-bg-primary-50 ax-flex ax-justify-center ax-items-center ax-uppercase ax-font-semibold ax-shadow-sm ax-border-b ax-border-light-200 dark:ax-border-white/[0.06] ax-transition-all;
|
14
|
+
}
|
15
|
+
|
16
|
+
ax-color-palette-favorite
|
17
|
+
{
|
18
|
+
@apply ax-mt-2 ax-border-t ax-border-light-200 dark:ax-border-white/[0.06] ax-block;
|
19
|
+
}
|
20
|
+
|
21
|
+
.palette-items {
|
22
|
+
@apply ax-p-2 ax-grid-cols-8 ax-gap-0.5 ax-grid ax-max-h-36 ax-overflow-y-auto ax-overflow-x-hidden;
|
23
|
+
|
24
|
+
div {
|
25
|
+
@apply ax-relative ax-bg-dark-100 ax-flex ax-items-center ax-justify-center ax-cursor-pointer ax-m-0.5 ax-rounded ax-shadow-sm ax-border ax-border-light-200 dark:ax-border-white/[0.06];
|
26
|
+
|
27
|
+
&::before {
|
28
|
+
content: "";
|
29
|
+
padding-top: 100%;
|
30
|
+
float: left;
|
31
|
+
}
|
32
|
+
|
33
|
+
&::after {
|
34
|
+
content: "";
|
35
|
+
display: block;
|
36
|
+
clear: both;
|
37
|
+
}
|
38
|
+
|
39
|
+
&:hover,
|
40
|
+
&.ax-state-selected {
|
41
|
+
@apply ax-ring-2 ax-ring-offset-2 ax-ring-black/30 dark:ax-ring-white/30;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.palette-input-container {
|
47
|
+
@apply ax-flex ax-gap-2 ax-mt-4 ax-p-2;
|
48
|
+
.palette-inputs {
|
49
|
+
@apply ax-flex ax-gap-2;
|
50
|
+
|
51
|
+
div {
|
52
|
+
@apply ax-w-full ax-text-center;
|
53
|
+
label {
|
54
|
+
@apply ax-mt-3 ax-text-sm;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
@layer components {
|
2
|
+
ax-color-picker{
|
3
|
+
.ax-dropdown-content{
|
4
|
+
@apply ax-mx-2 ax-flex ax-items-center;
|
5
|
+
.color-badge{
|
6
|
+
@apply ax-block ax-rounded ax-me-2 ax-shadow-sm ax-border ax-border-light-200 dark:ax-border-white/[0.06];
|
7
|
+
width: calc(var(--ax-base-size) * var(--ax-base-ratio) / 2);
|
8
|
+
height: calc(var(--ax-base-size) * var(--ax-base-ratio) / 2);
|
9
|
+
}
|
10
|
+
}
|
11
|
+
}
|
12
|
+
.ax-overlay-pane {
|
13
|
+
ax-color-palette {
|
14
|
+
@apply ax-border-none;
|
15
|
+
}
|
16
|
+
|
17
|
+
}
|
18
|
+
}
|
@@ -35,27 +35,27 @@
|
|
35
35
|
}
|
36
36
|
&.ax-primary-default {
|
37
37
|
.ax-dialog-icon {
|
38
|
-
@apply ax-text-primary-500 ax-bg-primary-50;
|
38
|
+
@apply ax-text-primary-500 ax-bg-primary-50 dark:ax-bg-primary-500 dark:ax-text-primary-fore;
|
39
39
|
}
|
40
40
|
}
|
41
41
|
&.ax-success-default {
|
42
42
|
.ax-dialog-icon {
|
43
|
-
@apply ax-text-success-500 ax-bg-success-50;
|
43
|
+
@apply ax-text-success-500 ax-bg-success-50 dark:ax-bg-success-500 dark:ax-text-success-fore;
|
44
44
|
}
|
45
45
|
}
|
46
46
|
&.ax-danger-default {
|
47
47
|
.ax-dialog-icon {
|
48
|
-
@apply ax-text-danger-500 ax-bg-danger-50;
|
48
|
+
@apply ax-text-danger-500 ax-bg-danger-50 dark:ax-bg-danger-500 dark:ax-text-danger-fore;
|
49
49
|
}
|
50
50
|
}
|
51
51
|
&.ax-warning-default {
|
52
52
|
.ax-dialog-icon {
|
53
|
-
@apply ax-text-warning-500 ax-bg-warning-50;
|
53
|
+
@apply ax-text-warning-500 ax-bg-warning-50 dark:ax-bg-warning-500 dark:ax-text-warning-fore;
|
54
54
|
}
|
55
55
|
}
|
56
56
|
&.ax-info-default {
|
57
57
|
.ax-dialog-icon {
|
58
|
-
@apply ax-text-info-500 ax-bg-info-50;
|
58
|
+
@apply ax-text-info-500 ax-bg-info-50 dark:ax-bg-info-500 dark:ax-text-info-fore;
|
59
59
|
}
|
60
60
|
}
|
61
61
|
}
|
@@ -16,7 +16,11 @@
|
|
16
16
|
|
17
17
|
ax-drawer {
|
18
18
|
@apply ax-flex ax-flex-col ax-max-w-[95%] ax-h-full ax-animate-duration-300 ax-transition-all #{!important};
|
19
|
-
|
19
|
+
ax-header,
|
20
|
+
ax-footer {
|
21
|
+
@apply ax-bg-white ax-p-3 ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
|
22
|
+
@include control-states("editor");
|
23
|
+
}
|
20
24
|
&.ax-preload {
|
21
25
|
@apply ax-animate-duration-[0ms] ax-transition-none #{!important};
|
22
26
|
}
|
@@ -12,15 +12,16 @@
|
|
12
12
|
}
|
13
13
|
|
14
14
|
.ax-overlay-pane {
|
15
|
-
@apply ax-bg-white ax-border ax-rounded ax-border-light-
|
15
|
+
@apply ax-bg-white ax-border ax-rounded ax-border-light-200 ax-shadow-lg;
|
16
16
|
@include control-states("surface");
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
17
|
+
ax-header,
|
18
|
+
ax-footer {
|
19
|
+
@apply ax-bg-white ax-p-3 ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
|
20
|
+
@include control-states("editor");
|
21
|
+
}
|
22
|
+
@include screen(mobile){
|
23
|
+
@apply ax-rounded-b-none;
|
24
|
+
}
|
24
25
|
|
25
26
|
&.ax-overlay-center {
|
26
27
|
@apply ax-h-fit;
|
@@ -30,6 +31,7 @@
|
|
30
31
|
|
31
32
|
&.ax-overlay-actionsheet {
|
32
33
|
@apply ax-w-full ax-h-auto ax-bg-white;
|
34
|
+
@include control-states("surface");
|
33
35
|
max-height: 85vh;
|
34
36
|
&.ax-full
|
35
37
|
{
|
@@ -2,7 +2,11 @@
|
|
2
2
|
.ax-list {
|
3
3
|
display: block;
|
4
4
|
@apply ax-h-full ax-flex ax-flex-col ax-overflow-hidden md:ax-max-h-80;
|
5
|
-
|
5
|
+
ax-header,
|
6
|
+
ax-footer {
|
7
|
+
@apply ax-bg-white ax-p-3 ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
|
8
|
+
@include control-states("editor");
|
9
|
+
}
|
6
10
|
.ax-content {
|
7
11
|
@apply ax-flex-1 ax-overflow-y-auto ax-overflow-x-hidden;
|
8
12
|
|
@@ -33,7 +37,7 @@
|
|
33
37
|
|
34
38
|
.ax-list-item {
|
35
39
|
height: calc(var(--ax-base-size) * var(--ax-base-ratio)) !important;
|
36
|
-
@apply ax-text-sm ax-flex ax-items-center ax-px-3 ax-text-light-700;
|
40
|
+
@apply ax-text-sm ax-flex ax-items-center ax-px-3 ax-text-light-700 dark:ax-text-light-100;
|
37
41
|
|
38
42
|
&:focus,
|
39
43
|
&:focus-visible {
|
@@ -41,12 +45,12 @@
|
|
41
45
|
}
|
42
46
|
|
43
47
|
&.ax-state-selected {
|
44
|
-
@apply ax-bg-light-200 ax-text-light-900 ax-font-medium
|
48
|
+
@apply ax-bg-light-200 ax-text-light-900 ax-font-medium ;
|
45
49
|
}
|
46
50
|
|
47
51
|
&:not(.ax-check-box) {
|
48
52
|
&.ax-state-selected {
|
49
|
-
@apply ax-bg-light-200 ax-text-light-900 dark:ax-bg-
|
53
|
+
@apply ax-bg-light-200 ax-text-light-900 dark:ax-bg-primary-500 dark:ax-text-primary-fore;
|
50
54
|
}
|
51
55
|
}
|
52
56
|
|
@@ -3,7 +3,11 @@
|
|
3
3
|
.ax-popup {
|
4
4
|
@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 ax-mx-auto;
|
5
5
|
@include control-states("surface");
|
6
|
-
|
6
|
+
ax-header,
|
7
|
+
ax-footer {
|
8
|
+
@apply ax-bg-white ax-p-3 ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
|
9
|
+
@include control-states("editor");
|
10
|
+
}
|
7
11
|
.ax-popup-main-container {
|
8
12
|
@apply ax-overflow-auto ax-flex-1;
|
9
13
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
ax-progress-bar,
|
3
3
|
.ax-progress-bar {
|
4
4
|
@apply ax-flex ax-justify-between ax-items-center ax-text-sm;
|
5
|
-
@include control-states("editor");
|
6
5
|
ax-prefix{
|
7
6
|
@apply ax-pe-2;
|
8
7
|
}
|
@@ -11,6 +10,7 @@
|
|
11
10
|
}
|
12
11
|
.ax-progress-bar-container {
|
13
12
|
@apply ax-w-full ax-h-2 ax-relative ax-bg-light-200 ax-flex ax-rounded-full;
|
13
|
+
@include control-states("editor");
|
14
14
|
.ax-progress-bar-rise {
|
15
15
|
max-width: 100%;
|
16
16
|
transition: width 1s;
|
@@ -34,7 +34,7 @@
|
|
34
34
|
.ax-selection-list {
|
35
35
|
&.ax-vertical {
|
36
36
|
& > div {
|
37
|
-
@apply ax-pb-3.5 ax-border-b ax-border-light-300 last:ax-border-0;
|
37
|
+
@apply ax-pb-3.5 ax-border-b ax-border-light-300 dark:ax-border-white/[0.09] last:ax-border-0;
|
38
38
|
}
|
39
39
|
}
|
40
40
|
}
|
@@ -43,7 +43,7 @@
|
|
43
43
|
.ax-selection-list {
|
44
44
|
&.ax-vertical,&.ax-horizontal {
|
45
45
|
& > div {
|
46
|
-
@apply ax-p-4 ax-border ax-border-light-300 ax-rounded-md ax-shadow-sm;
|
46
|
+
@apply ax-p-4 ax-border ax-border-light-300 dark:ax-border-white/[0.09] ax-rounded-md ax-shadow-sm;
|
47
47
|
&.ax-state-selected {
|
48
48
|
@apply ax-border-primary-500 ax-ring-1 ax-ring-primary-500 ax-shadow-primary-500;
|
49
49
|
}
|
@@ -3,6 +3,8 @@
|
|
3
3
|
.ax-textarea {
|
4
4
|
min-height: calc(var(--ax-base-size) * var(--ax-base-ratio));
|
5
5
|
@apply ax-relative ax-flex ax-flex-col ax-rounded ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-light-300 ax-overflow-hidden ax-w-full;
|
6
|
+
@include control-states("editor");
|
7
|
+
|
6
8
|
&:focus-within {
|
7
9
|
@apply ax-ring-2 ax-ring-primary-500 ax-ring-opacity-100 ax-border-transparent;
|
8
10
|
}
|