@acorex/styles 5.2.2 → 5.3.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "5.2.2",
3
+ "version": "5.3.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,64 +1,106 @@
1
1
  @layer components {
2
- .ax-alert {
3
- @apply ax-flex ax-bg-light-100 ax-text-light-fore ax-px-3.5 ax-py-4 ax-items-center ax-rounded ;
2
+ ax-alert {
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
  &.ax-state-hidden {
6
7
  visibility: hidden;
7
8
  opacity: 0;
8
9
  }
10
+
9
11
  &.ax-state-visible {
10
12
  visibility: visible;
11
13
  opacity: 1;
12
14
  }
13
- .ax-alert-icon {
14
- @apply ax-text-xl ax-self-baseline ax-me-2;
15
+
16
+ & > ax-header {
17
+ @apply ax-px-3.5 ax-py-3 ax-bg-transparent ax-border-none ax-justify-start ax-text-sm;
18
+ & > ax-icon {
19
+ @apply ax-me-3 ax-text-2xl;
20
+ }
15
21
  }
16
22
  .ax-alert-body {
17
- @apply ax-ml-2 ax-flex-1;
18
- .ax-alert-title {
19
- @apply ax-inline-flex ax-text-sm ax-font-bold ax-mb-2.5;
20
- a {
21
- @apply ax-text-current ax-font-bold;
22
- }
23
+ @apply ax-flex-1 ax-p-3.5 ax-text-sm;
24
+ ax-icon {
25
+ @apply ax-me-3 ax-text-2xl;
23
26
  }
24
- .ax-alert-content {
27
+ & > ax-content {
25
28
  @apply ax-block ax-text-sm ax-break-words;
26
29
 
27
30
  ul {
28
31
  @apply ax-my-2 ax-ms-5 ax-list-disc;
29
32
  }
33
+
30
34
  a {
31
35
  @apply ax-text-current ax-font-bold ax-underline;
36
+
32
37
  &:hover {
33
38
  @apply ax-underline;
34
39
  }
35
40
  }
36
41
  }
37
- .ax-alert-footer {
38
- .ax-alert-buttons {
39
- @apply ax-flex ax-mt-4;
40
- .ax-alert-button {
41
- @apply ax-text-sm ax-font-semibold ax-me-4 ax-cursor-pointer;
42
+
43
+ ax-suffix {
44
+ @apply ax-block;
45
+ ax-button {
46
+ @apply ax-ms-2 #{!important};
47
+ }
48
+ }
49
+
50
+ ax-footer {
51
+ @apply ax-bg-transparent ax-border-none ax-p-0 ax-mt-3;
52
+
53
+ ax-suffix {
54
+ ax-button{
55
+ @apply ax-ms-0 ax-me-2 #{!important};
42
56
  }
57
+ @apply ax-mt-3;
43
58
  }
44
59
  }
45
60
  }
46
- .ax-alert-prefix {
47
- .ax-alert-buttons {
48
- @apply ax-flex;
61
+ &.ax-light-default {
62
+
63
+ ax-header {
64
+ @apply ax-bg-light-200 ;
65
+ }
66
+ .ax-alert-body {
67
+ @applyax-bg-light-300;
68
+ }
69
+ .ax-alert-progress {
70
+ @apply ax-absolute ax-bg-light-400;
49
71
  }
50
72
  }
51
- .ax-alert-suffix {
52
- .ax-alert-buttons {
53
- @apply ax-flex;
54
- .ax-alert-button {
55
- @apply ax-me-0.5 ax-text-sm ax-font-semibold ax-cursor-pointer;
56
- i {
57
- @apply ax-mx-1;
58
- }
73
+ &.ax-dark-default {
74
+ ax-button {
75
+ @apply ax-bg-white/30 #{!important};
76
+ &:hover,
77
+ &:active,
78
+ &:focus {
79
+ @apply ax-bg-white/20 #{!important};
59
80
  }
60
81
  }
61
82
  }
83
+ &[class*="dark"] {
84
+ .ax-alert-progress {
85
+ @apply ax-bg-white/50;
86
+ }
87
+ }
88
+ .ax-alert-progress {
89
+ @apply ax-absolute ax-bg-black/30 ax-start-0 ax-bottom-0 ax-h-1.5 ax-w-0;
90
+ animation-duration: 4s;
91
+ animation-timing-function: linear;
92
+ animation-name: progressBar;
93
+ }
94
+ @keyframes progressBar {
95
+ 0% {
96
+ width: 100%;
97
+ }
98
+ 100% {
99
+ width: 0%;
100
+ }
101
+ }
102
+ @include button-on-colorful-bg();
103
+
62
104
  @include color-look-generator();
63
105
  }
64
106
  }
@@ -117,7 +117,7 @@
117
117
  @apply ax-ring-2 ax-ring-offset-2 ax-ring-warning-500;
118
118
  }
119
119
  &:active {
120
- @apply ax-bg-warning-600 ax-text-warning-100 ax-ring-2 ax-ring-offset-2 ax-ring-warning-700;
120
+ @apply ax-bg-warning-600 ax-text-warning-fore ax-ring-2 ax-ring-offset-2 ax-ring-warning-700;
121
121
  }
122
122
  }
123
123
 
@@ -249,19 +249,19 @@
249
249
  }
250
250
  }
251
251
  &.ax-warning-twotone {
252
- @apply ax-bg-warning-100 ax-text-warning-500 ax-border-transparent dark:ax-bg-warning-300 dark:ax-text-warning-700;
252
+ @apply ax-bg-warning-100 ax-text-warning-900 ax-border-transparent dark:ax-bg-warning-300 dark:ax-text-warning-fore;
253
253
  &:not(.ax-state-disabled) {
254
254
  &:hover,
255
255
  &:focus {
256
- @apply ax-bg-warning-200 ax-text-warning-700;
256
+ @apply ax-bg-warning-200 ax-text-warning-fore;
257
257
  }
258
258
  &:active {
259
- @apply ax-bg-warning-300 ax-text-warning-700;
259
+ @apply ax-bg-warning-300 ax-text-warning-fore;
260
260
  }
261
261
  }
262
262
 
263
263
  &.ax-state-selected {
264
- @apply ax-bg-warning-200 ax-text-warning-700;
264
+ @apply ax-bg-warning-200 ax-text-warning-fore;
265
265
  }
266
266
  }
267
267
  &.ax-danger-twotone {
@@ -515,10 +515,10 @@
515
515
  &:not(.ax-state-disabled) {
516
516
  &:hover,
517
517
  &:focus {
518
- @apply ax-bg-warning-50 ax-text-warning-600 dark:ax-bg-transparent;
518
+ @apply ax-bg-warning-50 ax-text-warning-fore dark:ax-bg-transparent;
519
519
  }
520
520
  &:active {
521
- @apply ax-bg-warning-100 ax-text-warning-700;
521
+ @apply ax-bg-warning-100 ax-text-warning-fore;
522
522
  }
523
523
  }
524
524
 
@@ -644,10 +644,10 @@
644
644
  &:not(.ax-state-disabled) {
645
645
  &:hover,
646
646
  &:focus {
647
- @apply ax-text-warning-600 ax-border-warning-600;
647
+ @apply ax-text-warning-fore ax-border-warning-600;
648
648
  }
649
649
  &:active {
650
- @apply ax-text-warning-500 ax-border-warning-500;
650
+ @apply ax-text-warning-fore ax-border-warning-500;
651
651
  }
652
652
  }
653
653
 
@@ -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-50 ax-border-b ax-border-light-200;
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-50 ax-border-b ax-border-light-200;
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-200;
46
+ @apply ax-border-t ax-border-light-100;
42
47
  }
43
48
  }
44
49
  ax-collapse {
@@ -0,0 +1,37 @@
1
+ @layer components {
2
+ ax-header,
3
+ ax-footer {
4
+ @apply ax-bg-white ax-p-3 ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
5
+ @include control-states("editor");
6
+ }
7
+
8
+ ax-header {
9
+ @apply ax-border-b;
10
+
11
+ & > ax-prefix,
12
+ & > ax-suffix {
13
+ @apply ax-flex ax-items-center;
14
+ }
15
+ }
16
+
17
+ ax-footer {
18
+ @apply ax-border-t;
19
+ }
20
+
21
+ ax-title {
22
+ @apply ax-font-medium;
23
+ }
24
+
25
+ ax-icon {
26
+ @apply ax-font-medium;
27
+ }
28
+
29
+ ax-close-button {
30
+ ax-icon {
31
+ @apply ax-text-light-300 dark:ax-text-light-200 ax-cursor-pointer ax-text-xl;
32
+ &:hover {
33
+ @apply ax-text-light-500 dark:ax-text-light-100;
34
+ }
35
+ }
36
+ }
37
+ }
@@ -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
  }
@@ -1,126 +1,99 @@
1
1
  @layer components {
2
- .ax-drawer-container {
2
+ ax-drawer-container {
3
3
  @apply ax-flex ax-relative ax-w-full ax-h-full ax-overflow-hidden;
4
4
 
5
- .ax-drawer-backdrop {
6
- @apply ax-absolute ax-w-full ax-h-full ax-z-[990] ax-transition-all ax-top-0 ax-bottom-0 ax-bg-black/50;
7
-
8
- }
5
+ &.ax-fixed {
6
+ @apply ax-hidden ax-top-0 ax-right-0 ax-left-0 ax-bottom-0 ax-z-[1000];
9
7
 
10
- .ax-drawer {
11
-
8
+ &.ax-visible {
9
+ @apply ax-flex;
10
+ }
11
+ }
12
12
 
13
- // &.ax-animated {
14
- // transition: all 500ms;
15
- // }
13
+ .ax-backdrop {
14
+ @apply ax-bg-black/30 ax-absolute ax-w-full ax-h-full ax-z-[1] ax-top-0 ax-bottom-0 ax-transition-all;
15
+ }
16
16
 
17
- &.ax-drawer-overlay {
18
- @apply ax-absolute ax-z-[999];
19
- z-index: 9999;
17
+ ax-drawer {
18
+ @apply ax-flex ax-flex-col ax-max-w-[95%] ax-h-full ax-animate-duration-300 ax-transition-[left] #{!important};
19
+ &.ax-preload {
20
+ @apply ax-animate-duration-[0ms] ax-transition-none #{!important};
20
21
  }
21
22
 
22
- &.ax-drawer-start {
23
- @apply ax-h-full;
24
- &.ax-hide {
25
- position: absolute;
26
- left: -9999px;
27
- }
28
23
 
29
- &.ax-collapsed {
30
- margin-inline-start: calc(-2 * var(--attr-width));
31
- }
24
+ &>ax-content
25
+ {
26
+ @apply ax-overflow-auto ax-bg-white ax-flex-1 ax-h-full;
27
+ }
28
+
29
+ &.ax-drawer-overlay {
30
+ @apply ax-absolute;
32
31
 
33
32
  &.ax-expanded {
34
- margin-inline-start: 0;
33
+ @apply ax-z-[2];
35
34
  }
36
- }
37
35
 
38
- &.ax-drawer-end {
39
- @apply ax-h-full;
40
- &.ax-hide {
41
- position: absolute;
42
- right: -9999px;
36
+ &.ax-collapsed {
37
+ @apply ax-z-[0];
43
38
  }
44
39
 
45
- &.ax-drawer-overlay {
46
- &.ax-collapsed {
47
- right: calc(-2 * var(--attr-width));
48
- }
40
+ &.ax-drawer-start {
49
41
 
50
42
  &.ax-expanded {
51
- right: calc(-2 * var(--attr-diff));
43
+ left:0;
52
44
  }
53
- }
54
45
 
55
- &.ax-drawer-push {
56
46
  &.ax-collapsed {
57
- margin-inline-end: calc(-2 * var(--attr-width));
47
+ left: calc(-1 * var(--ax-el-width));
58
48
  }
59
49
 
60
- &.ax-expanded {
61
- margin-inline-end: 0;
62
- }
63
- }
64
- }
65
- &.ax-drawer-top {
66
- @apply ax-w-full;
67
- &.ax-hide {
68
- position: absolute;
69
- top: -9999px;
70
50
  }
71
51
 
72
- &.ax-drawer-overlay {
73
- &.ax-collapsed {
74
- top: calc(-2 * var(--attr-height));
75
- }
52
+ &.ax-drawer-end {
76
53
 
77
54
  &.ax-expanded {
78
- top: calc(-2 * var(--attr-diff));
55
+ right:0;
79
56
  }
80
- }
81
57
 
82
- &.ax-drawer-push {
83
58
  &.ax-collapsed {
84
- margin-block-start: calc(-2 * var(--attr-height));
85
- }
86
-
87
- &.ax-expanded {
88
- margin-block-start: 0;
59
+ right: calc(-1 * var(--ax-el-width));
89
60
  }
90
61
  }
91
62
  }
92
- &.ax-drawer-bottom {
93
- @apply ax-w-full;
94
- &.ax-hide {
95
- position: absolute;
96
- bottom: -9999px;
97
- }
98
63
 
99
- &.ax-drawer-overlay {
100
- &.ax-collapsed {
101
- bottom: calc(-2 * var(--attr-height));
102
- }
64
+ &.ax-drawer-push {
65
+ @apply ax-flex-initial;
66
+
67
+ &.ax-drawer-start {
68
+ @apply ax-order-first;
103
69
 
104
70
  &.ax-expanded {
105
- bottom: calc(-2 * var(--attr-diff));
71
+ margin-inline-start: 0%
106
72
  }
107
- }
108
73
 
109
- &.ax-drawer-push {
110
74
  &.ax-collapsed {
111
- margin-block-start: calc(-2 * var(--attr-height));
75
+ margin-inline-start: calc(-1 * var(--ax-el-width));
112
76
  }
113
77
 
78
+ }
79
+
80
+ &.ax-drawer-end {
81
+ @apply ax-order-last;
82
+
114
83
  &.ax-expanded {
115
- margin-block-start: 0;
84
+ margin-inline-end: 0%;
85
+ }
86
+
87
+ &.ax-collapsed {
88
+ margin-inline-end: calc(-1 * var(--ax-el-width));
116
89
  }
117
90
  }
118
91
  }
92
+
119
93
  }
120
94
 
121
- .ax-drawer-content {
122
- @apply ax-flex-1 ax-overflow-auto;
123
- width: var(--attr-content-width);
95
+ &>ax-content {
96
+ @apply ax-flex-1 ax-h-full ax-overflow-auto;
124
97
  }
125
98
  }
126
- }
99
+ }
@@ -11,16 +11,8 @@
11
11
  }
12
12
  }
13
13
 
14
- .ax-backdrop-light {
15
- @apply cdk-overlay-backdrop ax-bg-white ax-bg-opacity-50;
16
- }
17
-
18
- .ax-backdrop-dark {
19
- @apply cdk-overlay-backdrop ax-bg-black ax-bg-opacity-50;
20
- }
21
-
22
14
  .ax-overlay-pane {
23
- @apply ax-bg-white ax-border ax-rounded ax-border-light-300;
15
+ @apply ax-bg-white ax-border ax-rounded ax-border-light-200 ax-shadow-lg;
24
16
  @include control-states("surface");
25
17
 
26
18
 
@@ -38,6 +30,7 @@
38
30
 
39
31
  &.ax-overlay-actionsheet {
40
32
  @apply ax-w-full ax-h-auto ax-bg-white;
33
+ @include control-states("surface");
41
34
  max-height: 85vh;
42
35
  &.ax-full
43
36
  {
@@ -50,21 +43,6 @@
50
43
  @apply ax-w-screen ax-h-screen;
51
44
  }
52
45
 
53
- .ax-header {
54
- @apply ax-p-4 ax-border-b ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
55
-
56
- span {
57
- @apply ax-font-medium;
58
- }
59
-
60
- i {
61
- @apply ax-text-light-300 dark:ax-text-light-200 ax-cursor-pointer ax-text-xl;
62
- &:hover {
63
- @apply ax-text-light-500 dark:ax-text-light-100;
64
- }
65
- }
66
- }
67
-
68
46
  &.ax-dropdown-list {
69
47
  @apply ax-border ax-border-solid ax-flex ax-flex-col ax-py-1 ax-rounded ax-shadow-sm;
70
48
 
@@ -3,13 +3,7 @@
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
 
6
- .ax-header {
7
- @apply ax-flex ax-items-center ax-justify-between ax-px-3 ax-py-2.5;
8
- }
9
-
10
6
  .ax-content {
11
-
12
-
13
7
  @apply ax-flex-1 ax-overflow-y-auto ax-overflow-x-hidden;
14
8
 
15
9
  &.ax-list-items-container {
@@ -39,7 +33,7 @@
39
33
 
40
34
  .ax-list-item {
41
35
  height: calc(var(--ax-base-size) * var(--ax-base-ratio)) !important;
42
- @apply ax-text-sm ax-flex ax-items-center ax-px-3 ax-text-light-700;
36
+ @apply ax-text-sm ax-flex ax-items-center ax-px-3 ax-text-light-700 dark:ax-text-light-100;
43
37
 
44
38
  &:focus,
45
39
  &:focus-visible {
@@ -47,12 +41,12 @@
47
41
  }
48
42
 
49
43
  &.ax-state-selected {
50
- @apply ax-bg-light-200 ax-text-light-900 ax-font-medium dark:ax-text-primary-50;
44
+ @apply ax-bg-light-200 ax-text-light-900 ax-font-medium ;
51
45
  }
52
46
 
53
47
  &:not(.ax-check-box) {
54
48
  &.ax-state-selected {
55
- @apply ax-bg-light-200 ax-text-light-900 dark:ax-bg-white/[0.16];
49
+ @apply ax-bg-light-200 ax-text-light-900 dark:ax-bg-primary-500 dark:ax-text-primary-fore;
56
50
  }
57
51
  }
58
52
 
@@ -58,14 +58,122 @@
58
58
  // }
59
59
  // }
60
60
 
61
- @layer components {
62
- ax-picker {
63
- @apply ax-max-h-full ax-overflow-y-scroll;
64
- scroll-snap-type: mandatory;
65
- scroll-snap-points-y: repeat(1rem);
66
- scroll-snap-type: y mandatory;
67
- li {
68
- @apply ax-py-4 ax-flex ax-flex-col ax-items-center ax-justify-center ax-snap-start ax-text-sm;
69
- }
70
- }
61
+ // @layer components {
62
+ // ax-picker {
63
+ // @apply ax-max-h-full ax-overflow-y-scroll;
64
+ // scroll-snap-type: mandatory;
65
+ // scroll-snap-points-y: repeat(1rem);
66
+ // scroll-snap-type: y mandatory;
67
+ // li {
68
+ // @apply ax-py-4 ax-flex ax-flex-col ax-items-center ax-justify-center ax-snap-start ax-text-sm;
69
+ // }
70
+ // }
71
+ // }
72
+ .ng-data-picker {
73
+ font-size: 1rem;
74
+ height: 10em;
75
+ position: relative;
76
+ background-color: white;
77
+ overflow: hidden;
78
+ }
79
+ .ng-data-picker.black {
80
+ color: white;
81
+ }
82
+ .ng-data-picker .picker-group {
83
+ }
84
+ .ng-data-picker .picker-list {
85
+ height: 6.25em;
86
+ position: relative;
87
+ top: 4em; // half of picker height - half of item height
88
+ }
89
+ .ng-data-picker .picker-item {
90
+ position: absolute;
91
+ top: 0;
92
+ left: 0;
93
+ overflow: hidden;
94
+ width: 100%;
95
+ text-overflow: ellipsis;
96
+ white-space: nowrap;
97
+ display: block;
98
+ text-align: center;
99
+ will-change: transform;
100
+ contain: strict;
101
+ height: 2em;
102
+ line-height: 2;
103
+ font-size: 1em;
104
+ }
105
+ .ng-data-picker .selected-item {
106
+ }
107
+
108
+ /* picker handle layer */
109
+ .ng-data-picker .picker-handle-layer {
110
+ position: absolute;
111
+ width: 100%;
112
+ height: calc(100% + 2px);
113
+ left: 0;
114
+ right: 0;
115
+ top: -1px;
116
+ bottom: -1px;
117
+ }
118
+ .ng-data-picker .picker-handle-layer .picker-top {
119
+ border-bottom: 0.55px solid rgba(74, 73, 89, 0.5);
120
+ background: linear-gradient(to bottom, white 2%, rgba(255, 255, 255, 0.1) 100%);
121
+ transform: translate3d(0, 0, 5.625em);
122
+ }
123
+ .ng-data-picker .picker-handle-layer .picker-middle {
124
+ height: 2em;
125
+ }
126
+ .ng-data-picker .picker-handle-layer .picker-bottom {
127
+ border-top: 0.55px solid rgba(74, 73, 89, 0.5);
128
+ background: linear-gradient(to top, white 2%, rgba(255, 255, 255, 0.1) 100%);
129
+ transform: translate3d(0, 0, 5.625em);
130
+ }
131
+
132
+ /* flex system */
133
+ .flex-box {
134
+ display: flex;
135
+ }
136
+ .flex-box.dir-column {
137
+ flex-direction: column;
138
+ }
139
+ .flex-box.dir-row {
140
+ flex-direction: row;
141
+ }
142
+
143
+ /* flex system - for items */
144
+ .flex-box .weight-1 {
145
+ flex: 1;
146
+ }
147
+ .flex-box .weight-2 {
148
+ flex: 2;
149
+ }
150
+ .flex-box .weight-3 {
151
+ flex: 3;
152
+ }
153
+ .flex-box .weight-4 {
154
+ flex: 4;
155
+ }
156
+ .flex-box .weight-5 {
157
+ flex: 5;
158
+ }
159
+ .flex-box .weight-6 {
160
+ flex: 6;
161
+ }
162
+ .flex-box .weight-7 {
163
+ flex: 7;
164
+ }
165
+ .flex-box .weight-8 {
166
+ flex: 8;
167
+ }
168
+ .flex-box .weight-9 {
169
+ flex: 9;
170
+ }
171
+ .flex-box .weight-10 {
172
+ flex: 10;
173
+ }
174
+ .flex-box .weight-11 {
175
+ flex: 11;
176
+ }
177
+ .flex-box .weight-12 {
178
+ flex: 12;
71
179
  }
@@ -1,44 +1,9 @@
1
1
  @layer components {
2
- ax-page-footer,
3
- ax-page-header {
4
- @apply ax-flex ax-items-center ax-justify-between ax-px-3 ax-py-2 ax-border-solid ax-border-light-300 dark:ax-border-light-700;
5
-
6
- ax-prefix {
7
- @apply ax-flex ax-col-span-6 ax-col-start-1 ax-col-end-7 ax-justify-start;
8
- }
9
-
10
- ax-suffix {
11
- @apply ax-flex ax-col-span-6 ax-col-start-7 ax-col-end-13 ax-justify-end;
12
- }
13
- }
14
-
15
- ax-page-footer {
16
- @apply ax-border-t;
17
- }
18
-
19
- ax-page-header {
20
- @apply ax-border-b;
21
- }
22
2
 
23
3
  .ax-popup {
24
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;
25
5
  @include control-states("surface");
26
6
 
27
- .ax-popup-header {
28
- @apply ax-p-4 ax-border-b ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center ax-cursor-move;
29
-
30
- span {
31
- @apply ax-font-medium;
32
- }
33
-
34
- i {
35
- @apply ax-text-light-300 dark:ax-text-light-200 ax-cursor-pointer ax-text-xl;
36
- &:hover {
37
- @apply ax-text-light-500 dark:ax-text-light-100;
38
- }
39
- }
40
- }
41
-
42
7
  .ax-popup-main-container {
43
8
  @apply ax-overflow-auto ax-flex-1;
44
9
  }
@@ -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
  }
@@ -141,7 +141,7 @@
141
141
 
142
142
  &.ax-vertical {
143
143
  .ax-items-wrapper {
144
- @apply ax-flex-col;
144
+ @apply ax-flex-col ax-h-full;
145
145
 
146
146
  ax-tab-item {
147
147
  @apply ax-text-center ax-justify-start ax-py-2;
@@ -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
  }
@@ -1,82 +1,8 @@
1
1
  @layer components {
2
- .ax-toast {
3
- @apply ax-grid ax-grid-cols-12 ax-gap-4 ax-relative ax-bg-white ax-shadow-md ax-border-light-200 ax-border ax-border-solid ax-rounded-md ax-px-4 ax-py-2 ax-overflow-hidden ax-items-center;
4
- @include control-states('surface');
5
- @screen sm {
2
+ ax-toast {
3
+ width: max(20vw, 350px);
4
+ @include screen("mobile") {
6
5
  width: 98vw;
7
6
  }
8
- @screen md {
9
- width: max(20vw, 350px);
10
- }
11
- .ax-toast-icon-side {
12
- @apply ax-col-span-1 ax-h-full;
13
- }
14
- .ax-toast-content-side {
15
- @apply ax-col-span-10;
16
- .ax-toast-title {
17
- @apply ax-text-sm ax-font-semibold ax-text-light-700 dark:ax-text-light-100;
18
- }
19
- .ax-toast-content {
20
- @apply ax-py-2 ax-text-sm ax-text-light-400 dark:ax-text-light-200;
21
- }
22
- }
23
- .ax-toast-dismiss-icon {
24
- @apply ax-col-span-1 ax-cursor-pointer ax-h-full;
25
- .ax-ic {
26
- @apply ax-text-base;
27
- }
28
- }
29
- .ax-toast-dismiss-icon {
30
- @apply ax-text-light-400;
31
- }
32
- .ax-toast-buttons {
33
- @apply ax-col-span-12;
34
- }
35
- .ax-toast-progress {
36
- @apply ax-absolute ax-bottom-0 ax-h-1 ax-w-0;
37
- animation-duration: 4s;
38
- animation-timing-function: linear;
39
- animation-name: progressBar;
40
- }
41
- @keyframes progressBar {
42
- 0% {
43
- width: 100%;
44
- }
45
- 100% {
46
- width: 0%;
47
- }
48
- }
49
- &.ax-success {
50
- .ax-toast-icon {
51
- @apply ax-text-success-500;
52
- }
53
- .ax-toast-progress {
54
- @apply ax-bg-success-400;
55
- }
56
- }
57
- &.ax-danger {
58
- .ax-toast-icon {
59
- @apply ax-text-danger-500;
60
- }
61
- .ax-toast-progress {
62
- @apply ax-bg-danger-400;
63
- }
64
- }
65
- &.ax-warning {
66
- .ax-toast-icon {
67
- @apply ax-text-warning-500;
68
- }
69
- .ax-toast-progress {
70
- @apply ax-bg-warning-400;
71
- }
72
- }
73
- &.ax-info {
74
- .ax-toast-icon {
75
- @apply ax-text-info-500;
76
- }
77
- .ax-toast-progress {
78
- @apply ax-bg-info-400;
79
- }
80
- }
81
7
  }
82
- }
8
+ }
@@ -23,7 +23,7 @@
23
23
  &::before {
24
24
  content: "";
25
25
  width: 1px;
26
- @apply ax-absolute ax-bottom-0 ax-bg-light-200 ax-h-full ax-start-2;
26
+ @apply ax-absolute ax-bottom-0 ax-bg-light-200 ax-h-full ax-start-2 dark:ax-bg-white/30;
27
27
  }
28
28
  li {
29
29
  &::before {
@@ -39,4 +39,5 @@
39
39
  @import "./textarea";
40
40
  @import "./toast";
41
41
  @import "./tooltip";
42
- @import "./treeview";
42
+ @import "./treeview";
43
+ @import "./decoration";
@@ -41,10 +41,10 @@
41
41
 
42
42
  @mixin control-states($type) {
43
43
  @if ($type == "editor") {
44
- @apply dark:ax-border-white/[0.06] dark:ax-bg-white/[0.06] dark:ax-backdrop-blur-3xl;
44
+ @apply dark:ax-border-white/[0.07] dark:ax-bg-white/[0.07] dark:ax-backdrop-blur-3xl;
45
45
  }
46
46
  @if ($type == "editor-disabled") {
47
- @apply ax-bg-light-100 ax-text-light-fore dark:ax-border-white/[0.06] dark:ax-bg-white/[0.-04] dark:ax-text-opacity-60 ax-cursor-not-allowed;
47
+ @apply ax-bg-light-100 ax-text-light-fore dark:ax-border-white/[0.07] dark:ax-bg-white/[0.-04] dark:ax-text-opacity-60 ax-cursor-not-allowed;
48
48
  }
49
49
  @if ($type == "surface") {
50
50
  @apply dark:ax-bg-default-background dark:ax-border-white/[0.16] dark:ax-shadow-md;
@@ -61,12 +61,34 @@
61
61
  }
62
62
  @if ($look == "outline") {
63
63
  @apply ax-bg-transparent ax-text-#{$color}-500 ax-border ax-rounded-md ax-border-#{$color}-500;
64
+ ax-header {
65
+ @apply ax-bg-#{$color}-50;
66
+ }
67
+ .ax-alert-body {
68
+ @apply ax-bg-transparent #{!important};
69
+ ax-button {
70
+ @apply ax-bg-#{$color}-500 #{!important};
71
+ }
72
+ }
64
73
  }
65
74
  @if ($look == "twotone") {
66
- @apply ax-bg-#{$color}-50 ax-text-#{$color}-500;
75
+ @apply ax-bg-#{$color}-100 ax-text-#{$color}-500;
76
+ .ax-alert-body {
77
+ @apply ax-bg-#{$color}-50 #{!important};
78
+ ax-button {
79
+ @apply ax-bg-#{$color}-500 #{!important};
80
+ }
81
+ }
67
82
  }
68
83
  @if ($look == "blank") {
69
84
  @apply ax-bg-transparent ax-text-#{$color}-500;
85
+
86
+ .ax-alert-body {
87
+ @apply ax-bg-transparent #{!important};
88
+ ax-button {
89
+ @apply ax-bg-#{$color}-500 #{!important};
90
+ }
91
+ }
70
92
  }
71
93
  }
72
94
 
@@ -81,3 +103,14 @@
81
103
  }
82
104
  }
83
105
  }
106
+
107
+ @mixin button-on-colorful-bg {
108
+ ax-button {
109
+ @apply ax-bg-black/20 ax-text-sm ax-border-0 ax-outline-0 ax-ring-0 ax-ring-transparent ax-h-auto ax-shadow-none ax-font-semibold ax-py-1.5 ax-px-2 #{!important};
110
+ &:focus,
111
+ &:active,
112
+ &:hover {
113
+ @apply ax-bg-black/30 ax-ring-0 ax-border-0 ax-outline-0 ax-shadow-none ax-ring-transparent ax-ring-offset-0 #{!important};
114
+ }
115
+ }
116
+ }
@@ -63,18 +63,18 @@ $theme-colors: (
63
63
  "900": "127 29 29",
64
64
  ),
65
65
  "warning": (
66
- "": "251 191 36",
67
- "fore": "120 53 15",
68
- "50": "255 251 235",
69
- "100": "254 243 199",
70
- "200": "253 230 138",
71
- "300": "252 211 77",
72
- "400": "251 191 36",
73
- "500": "245 158 11",
74
- "600": "217 119 6",
75
- "700": "180 83 9",
76
- "800": "146 64 14",
77
- "900": "120 53 15",
66
+ "": "255 193 7",
67
+ "fore": "33 37 41",
68
+ "50": "255 248 225",
69
+ "100": "255 236 181",
70
+ "200": "255 224 131",
71
+ "300": "255 212 81",
72
+ "400": "255 202 44",
73
+ "500": "255 193 7",
74
+ "600": "255 187 6",
75
+ "700": "255 179 5",
76
+ "800": "255 171 4",
77
+ "900": "255 158 2",
78
78
  ),
79
79
  "info": (
80
80
  "": "139 92 246",