@acorex/styles 5.3.2 → 5.4.0
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/_calendar.scss +4 -2
- package/src/components/_color-palette.scss +61 -0
- package/src/components/_color-picker.scss +18 -0
- package/src/components/_decoration.scss +1 -5
- package/src/components/_drawer.scss +6 -1
- package/src/components/_dropdown.scss +8 -7
- package/src/components/_list.scss +5 -1
- package/src/components/_popup.scss +5 -1
- package/src/components/index.scss +2 -0
package/package.json
CHANGED
@@ -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;
|
@@ -0,0 +1,61 @@
|
|
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-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
|
+
@apply ax-mt-2 ax-border-t ax-border-light-200 dark:ax-border-white/[0.06] ax-block;
|
18
|
+
}
|
19
|
+
|
20
|
+
.palette-items {
|
21
|
+
@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;
|
22
|
+
|
23
|
+
div {
|
24
|
+
@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];
|
25
|
+
|
26
|
+
&::before {
|
27
|
+
content: "";
|
28
|
+
padding-top: 100%;
|
29
|
+
float: left;
|
30
|
+
}
|
31
|
+
|
32
|
+
&::after {
|
33
|
+
content: "";
|
34
|
+
display: block;
|
35
|
+
clear: both;
|
36
|
+
}
|
37
|
+
|
38
|
+
&:hover,
|
39
|
+
&.ax-state-selected {
|
40
|
+
@apply ax-ring-2 ax-ring-offset-2 ax-ring-black/30 dark:ax-ring-white/30;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.palette-input-container {
|
46
|
+
@apply ax-flex ax-gap-2 ax-mt-4 ax-p-2;
|
47
|
+
|
48
|
+
.palette-inputs {
|
49
|
+
@apply ax-flex ax-flex-1 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
|
+
}
|
61
|
+
}
|
@@ -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
|
+
}
|
@@ -15,7 +15,12 @@
|
|
15
15
|
}
|
16
16
|
|
17
17
|
ax-drawer {
|
18
|
-
@apply ax-flex ax-flex-col ax-max-w-[95%] ax-h-full ax-animate-duration-300 ax-transition-
|
18
|
+
@apply ax-flex ax-flex-col ax-max-w-[95%] ax-h-full ax-animate-duration-300 ax-transition-all #{!important};
|
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
|
+
}
|
19
24
|
&.ax-preload {
|
20
25
|
@apply ax-animate-duration-[0ms] ax-transition-none #{!important};
|
21
26
|
}
|
@@ -14,13 +14,14 @@
|
|
14
14
|
.ax-overlay-pane {
|
15
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;
|
@@ -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
|
|
@@ -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
|
}
|