@acorex/styles 5.0.30 → 5.0.37

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.0.30",
3
+ "version": "5.0.37",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -152,4 +152,12 @@
152
152
  @apply ax-flex ax-justify-center ax-p-2 ax-bg-light-100 dark:ax-bg-transparent dark:ax-border-transparent;
153
153
  }
154
154
  }
155
+
156
+ .ax-overlay-pane
157
+ {
158
+ ax-calendar
159
+ {
160
+ @apply ax-border-none
161
+ }
162
+ }
155
163
  }
@@ -1,38 +1,50 @@
1
1
  @layer components {
2
- ax-check-box,
3
- .ax-check-box {
4
- @apply ax-justify-start ax-w-max ax-flex;
2
+
3
+ .ax-check-box,
4
+ ax-check-box {
5
+
5
6
 
6
7
  .ax-wrapper {
7
8
  &.ax-state-disabled {
8
9
  @apply ax-cursor-not-allowed ax-opacity-80;
10
+
9
11
  input[type="checkbox"] {
10
12
  @apply ax-cursor-not-allowed;
11
13
  }
12
14
  }
13
15
  }
16
+
14
17
  input[type="checkbox"] {
15
18
  @apply ax-w-4 ax-h-4 ax-border-solid ax-border ax-border-light-300 ax-rounded ax-bg-white ax-text-primary-500 ax-m-0 ax-outline-none ax-align-middle ax-appearance-none;
16
19
  @include control-dark("editor");
20
+
17
21
  &:checked,
18
22
  &:indeterminate {
19
23
  @apply ax-border-primary-500 ax-bg-no-repeat ax-bg-primary-500 ax-bg-contain #{!important};
20
24
  }
25
+
21
26
  &:checked {
22
27
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
23
28
  }
29
+
24
30
  &:indeterminate {
25
31
  background-image: url("data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIzIiB5PSI3IiB3aWR0aD0iMTAiIGhlaWdodD0iMiIvPjwvc3ZnPg==");
26
32
  }
33
+
27
34
  &:focus {
28
35
  @apply ax-ring-2 ax-ring-primary-500 ax-ring-offset-2;
29
36
  }
30
- }
31
- ax-label {
32
- @apply ax-items-center ax-mb-0 ax-font-semibold ax-text-sm ax-text-light-700;
33
- label {
34
- @apply ax-mb-0;
37
+
38
+ &.ax-state-disabled {
39
+ @apply ax-opacity-70;
40
+ }
41
+
42
+ &.ax-state-disabled {
43
+ @apply ax-opacity-60;
44
+ }
45
+ &.ax-state-error{
46
+ @apply ax-border-danger-500;
35
47
  }
36
48
  }
37
49
  }
38
- }
50
+ }
@@ -1,4 +1,5 @@
1
1
  @layer components {
2
+
2
3
  ax-drop-down,
3
4
  .ax-drop-down {
4
5
  display: contents;
@@ -20,6 +21,34 @@
20
21
  @apply ax-bg-white ax-border ax-rounded ax-border-light-300;
21
22
  @include control-dark("surface");
22
23
 
24
+ &.ax-overlay-center {
25
+ @apply ax-h-fit;
26
+ max-height: 90vh;
27
+ width: 80vw;
28
+ }
29
+
30
+ &.ax-overlay-actionsheet {
31
+ @apply ax-w-full;
32
+ height: 50vh;
33
+ max-height: 70vh;
34
+ }
35
+
36
+ &.ax-overlay-full {
37
+ @apply ax-w-screen ax-h-screen;
38
+ }
39
+
40
+ .ax-overlay-pane-header {
41
+ @apply ax-p-4 ax-border-b ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
42
+
43
+ span {
44
+ @apply ax-font-medium;
45
+ }
46
+
47
+ i {
48
+ @apply ax-text-primary-500 ax-cursor-pointer ax-text-xl;
49
+ }
50
+ }
51
+
23
52
  &.ax-dropdown-list {
24
53
  @apply ax-border ax-border-solid ax-flex ax-flex-col ax-py-1 ax-rounded ax-shadow-sm;
25
54
 
@@ -91,7 +120,7 @@
91
120
  }
92
121
 
93
122
  &.ax-state-selected {
94
- @apply ax-bg-warning-200 dark:ax-bg-warning-600 dark:ax-text-warning-100;
123
+ @apply ax-bg-warning-200 dark:ax-bg-warning-600 dark:ax-text-warning-100;
95
124
  }
96
125
  }
97
126
 
@@ -108,7 +137,7 @@
108
137
  }
109
138
 
110
139
  &.ax-state-selected {
111
- @apply ax-bg-danger-200 dark:ax-bg-danger-600 dark:ax-text-danger-100;
140
+ @apply ax-bg-danger-200 dark:ax-bg-danger-600 dark:ax-text-danger-100;
112
141
  }
113
142
  }
114
143
 
@@ -125,7 +154,7 @@
125
154
  }
126
155
 
127
156
  &.ax-state-selected {
128
- @apply ax-bg-success-200 dark:ax-bg-success-600 dark:ax-text-success-100;
157
+ @apply ax-bg-success-200 dark:ax-bg-success-600 dark:ax-text-success-100;
129
158
  }
130
159
  }
131
160
 
@@ -142,16 +171,16 @@
142
171
  }
143
172
 
144
173
  &.ax-state-selected {
145
- @apply ax-bg-info-200 dark:ax-bg-info-600 dark:ax-text-info-100;
174
+ @apply ax-bg-info-200 dark:ax-bg-info-600 dark:ax-text-info-100;
146
175
  }
147
176
  }
148
177
 
149
178
  &.ax-dark-default {
150
- @apply ax-bg-transparent ax-text-dark-500 ax-border-transparent dark:ax-text-dark-100;
179
+ @apply ax-bg-transparent ax-text-dark-500 ax-border-transparent dark:ax-text-dark-100;
151
180
 
152
181
  &:hover,
153
182
  &:focus {
154
- @apply ax-bg-dark-50 ax-text-dark-600 dark:ax-bg-dark-400 dark:ax-text-dark-50;
183
+ @apply ax-bg-dark-50 ax-text-dark-600 dark:ax-bg-dark-400 dark:ax-text-dark-50;
155
184
  }
156
185
 
157
186
  &:active {
@@ -159,7 +188,7 @@
159
188
  }
160
189
 
161
190
  &.ax-state-selected {
162
- @apply ax-bg-dark-200 dark:ax-bg-dark-400 dark:ax-text-dark-100;
191
+ @apply ax-bg-dark-200 dark:ax-bg-dark-400 dark:ax-text-dark-100;
163
192
  }
164
193
  }
165
194
 
@@ -176,10 +205,10 @@
176
205
  }
177
206
 
178
207
  &.ax-state-selected {
179
- @apply ax-bg-light-200 dark:ax-bg-light-600 dark:ax-text-light-100;
208
+ @apply ax-bg-light-200 dark:ax-bg-light-600 dark:ax-text-light-100;
180
209
  }
181
210
  }
182
211
  }
183
212
  }
184
213
  }
185
- }
214
+ }
@@ -2,7 +2,7 @@
2
2
  .ax-editor-container {
3
3
  height: calc(var(--ax-base-size) * var(--ax-base-ratio));
4
4
  @apply ax-flex ax-rounded ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-light-300;
5
- @include control-dark('editor');
5
+ @include control-dark("editor");
6
6
  @screen md {
7
7
  @apply ax-text-sm;
8
8
  }
@@ -20,23 +20,22 @@
20
20
  line-height: 1 !important;
21
21
  }
22
22
  .ax-input {
23
- line-height: 4 !important;
24
23
  min-width: 1%;
25
- foont-size:inherit;
26
-
27
24
  @apply ax-flex-1 ax-bg-transparent ax-border-none ax-px-2.5;
28
-
25
+
29
26
  &:focus {
30
27
  box-shadow: none;
31
28
  }
32
29
  }
33
30
  ax-prefix {
34
- *,ax-button {
31
+ *,
32
+ ax-button {
35
33
  @apply ax-rounded-s;
36
34
  }
37
35
  }
38
36
  ax-suffix {
39
- *,ax-button {
37
+ *,
38
+ ax-button {
40
39
  @apply ax-rounded-e;
41
40
  }
42
41
  }
@@ -59,7 +58,7 @@
59
58
  }
60
59
  }
61
60
  }
62
-
61
+
63
62
  &.ax-state-disabled {
64
63
  background-color: rgb(var(--ax-color-disabled)) !important;
65
64
  color: rgb(var(--ax-color-disabled-fore)) !important;
@@ -1,8 +1,8 @@
1
1
  @layer components {
2
- .ax-form-field {
2
+ ax-form-field {
3
3
  @apply ax-mb-2 ax-relative;
4
4
  .ax-error-msg {
5
- @apply ax-absolute ax--bottom-5 ax-text-danger-500 ax-text-xs;
5
+ @apply ax-text-danger-500 ax-text-xs;
6
6
  }
7
7
  }
8
8
  }
@@ -1,8 +1,7 @@
1
1
  @layer components {
2
2
  .ax-input {
3
3
  @apply ax-outline-none ax-p-0;
4
- foont-size:inherit;
5
- line-height: 20px;
4
+ font-size:inherit;
6
5
  &:focus {
7
6
  @apply ax-ring-2 ax-ring-primary-500 ax-ring-opacity-100 ax-border-transparent;
8
7
  }
@@ -2,32 +2,51 @@
2
2
  .ax-list {
3
3
  display: block;
4
4
  }
5
+
5
6
  .ax-list-container {
6
7
  .ax-list-items-container {
7
8
  @apply ax-py-1 ax-rounded ax-overflow-y-auto ax-h-full dark:ax-border-transparent;
9
+
8
10
  &.ax-vertical {
9
11
  @apply ax-grid ax-grid-cols-1;
12
+
10
13
  &.ax-divide {
11
14
  @apply ax-divide-y ax-divide-x-0 ax-divide-light-600 ax-divide-opacity-30 ax-divide-solid;
12
15
  }
13
16
  }
17
+
14
18
  &.ax-default {
15
19
  @apply ax-cursor-pointer;
20
+
16
21
  .ax-list-item {
17
22
  height: calc(var(--ax-base-size) * var(--ax-base-ratio)) !important;
18
23
  @apply ax-text-sm ax-flex ax-items-center ax-px-3;
24
+
19
25
  &:focus,
20
26
  &:focus-visible {
21
27
  @apply ax-outline-none;
22
28
  }
29
+
23
30
  &:hover {
24
31
  &:not(.ax-state-selected) {
25
32
  @apply ax-bg-light-100 ax-text-light-fore dark:ax-bg-white/[0.09] dark:ax-text-light-50;
26
33
  }
27
34
  }
28
35
  &.ax-state-selected {
29
- @apply ax-bg-primary-100 ax-text-primary-500 ax-font-medium dark:ax-bg-primary-500 dark:ax-text-primary-50;
36
+ @apply ax-text-primary-500 ax-font-medium dark:ax-text-primary-50;
30
37
  }
38
+
39
+ &:not(.ax-check-box)
40
+ {
41
+ &.ax-state-selected {
42
+ @apply ax-bg-primary-50;
43
+ }
44
+ }
45
+
46
+ &.ax-state-disabled {
47
+ @apply ax-cursor-not-allowed ax-opacity-70;
48
+ }
49
+
31
50
  &:focus,
32
51
  &.ax-state-focus {
33
52
  &:not(.ax-state-selected) {
@@ -37,13 +56,20 @@
37
56
  }
38
57
  }
39
58
  }
59
+
40
60
  .ax-list-loading-container {
41
61
  @apply ax-flex ax-justify-center ax-p-2;
42
62
  }
43
63
  }
64
+
44
65
  .cdk-overlay-container {
45
66
  .ax-list-items-container {
46
67
  max-height: 25vh;
68
+
69
+ &.ax-full {
70
+ max-height: 75vh;
71
+ height: fit-content;
72
+ }
47
73
  }
48
74
  }
49
75
  }
@@ -13,9 +13,7 @@
13
13
  }
14
14
 
15
15
  .ax-popup {
16
- max-height: 98vh;
17
- min-height: fit-content;
18
- @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;
16
+ @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;
19
17
  @include control-dark('surface');
20
18
 
21
19
  header {
@@ -46,7 +44,7 @@
46
44
  }
47
45
 
48
46
  &.ax-popup-full {
49
- @apply ax-w-screen ax-h-screen;
47
+ @apply ax-w-screen ax-h-full ax-max-h-full;
50
48
  }
51
49
 
52
50
  &.ax-fit {
@@ -100,6 +98,7 @@
100
98
  @media all and (min-width: 425px) and (max-width: 767px) {
101
99
  &.ax-popup-sm {
102
100
  width: 100vw;
101
+ height: 100vh;
103
102
  max-height: 100vh;
104
103
  }
105
104
 
@@ -115,7 +114,8 @@
115
114
  &.ax-popup-md,
116
115
  &.ax-popup-lg {
117
116
  width: 100vw;
118
- max-height: 100vh;
117
+ height: 100%;
118
+ max-height: 100%;
119
119
  }
120
120
  }
121
121
  }
@@ -13,6 +13,15 @@
13
13
  &:focus {
14
14
  @apply ax-ring-2 ax-ring-primary-500 ax-ring-offset-2;
15
15
  }
16
+ &.ax-state-disabled{
17
+ @apply ax-opacity-70;
18
+ }
19
+ &.ax-state-disabled{
20
+ @apply ax-opacity-60;
21
+ }
22
+ &.ax-state-error{
23
+ @apply ax-border-danger-500;
24
+ }
16
25
  }
17
26
  ax-label {
18
27
  label {
@@ -1,5 +1,5 @@
1
1
  @layer components {
2
- .ax-select-box {
2
+ ax-select-box {
3
3
  .ax-select-box-selection {
4
4
  @apply ax-flex ax-justify-center ax-items-center ax-outline-none;
5
5