@acorex/styles 19.10.0-next.1 → 19.10.0-next.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.
Files changed (50) hide show
  1. package/base/index.scss +15 -0
  2. package/{src/shared → components}/_action-item.scss +3 -3
  3. package/{src/shared → components}/_actionsheet.scss +7 -6
  4. package/{src/shared → components}/_check-box.scss +8 -14
  5. package/{src/shared → components}/_drop-down.scss +7 -16
  6. package/{src/shared → components}/_editor-container.scss +22 -78
  7. package/{src/shared → components}/_general-button.scss +11 -12
  8. package/{src/shared → components}/_list.scss +15 -41
  9. package/{src/shared → components}/_radio.scss +8 -14
  10. package/components/_ripple.scss +13 -0
  11. package/{src/shared → components}/_table.scss +9 -30
  12. package/components/_uploader.scss +44 -0
  13. package/{src/shared → components}/index.scss +2 -3
  14. package/icons/fontawesome/index.scss +10 -11
  15. package/icons/huge/huge-bulk/index.scss +4 -4
  16. package/icons/huge/huge-duotone/index.scss +4 -4
  17. package/icons/huge/huge-solid-sharp/index.scss +4 -4
  18. package/icons/huge/huge-solid-standard/index.scss +4 -4
  19. package/icons/huge/huge-stroke-rounded/index.scss +4 -4
  20. package/icons/huge/huge-stroke-sharp/index.scss +4 -4
  21. package/icons/huge/huge-stroke-standard/index.scss +4 -4
  22. package/icons/huge/huge-twotone/index.scss +4 -4
  23. package/icons/material/index.scss +4 -5
  24. package/index.scss +5 -7
  25. package/mixins/_look.scss +68 -0
  26. package/package.json +1 -1
  27. package/tailwind-base.js +231 -158
  28. package/themes/default.scss +28 -139
  29. package/utils/_theme-generator.scss +241 -0
  30. package/utils/_utils.scss +284 -0
  31. package/utils/index.scss +2 -0
  32. package/variables/_colors.scss +7 -0
  33. package/variables/_looks.scss +1 -0
  34. package/variables/index.scss +2 -0
  35. package/index.css +0 -2843
  36. package/index.min.css +0 -1
  37. package/src/base/index.scss +0 -13
  38. package/src/mixins/_look.scss +0 -83
  39. package/src/shared/_color-look.scss +0 -822
  40. package/src/shared/_inputs.scss +0 -16
  41. package/src/shared/_utils.scss +0 -85
  42. package/src/utility/index.scss +0 -24
  43. package/src/variables/_colors.scss +0 -2
  44. package/src/variables/_degrees.scss +0 -1
  45. package/src/variables/index.scss +0 -2
  46. package/themes/default.css +0 -1
  47. /package/{src/base → base}/_preflight.scss +0 -0
  48. /package/{src/mixins → mixins}/_media.scss +0 -0
  49. /package/{src/mixins → mixins}/_util.scss +0 -0
  50. /package/{src/mixins → mixins}/index.scss +0 -0
@@ -0,0 +1,15 @@
1
+ @use './preflight' as *;
2
+ :root {
3
+ --ax-overlay-full-width: 93;
4
+ --ax-sys-transition-duration: 150ms;
5
+ --ax-sys-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
6
+ }
7
+ html {
8
+ background-color: rgba(var(--ax-sys-color-lightest-surface));
9
+ color: rgba(var(--ax-sys-color-on-lightest-surface));
10
+ }
11
+
12
+ html.ax-dark {
13
+ background-color: rgba(var(--ax-sys-color-darkest-surface));
14
+ color: rgba(var(--ax-sys-color-on-darkest-surface));
15
+ }
@@ -43,7 +43,7 @@
43
43
 
44
44
  ax-divider {
45
45
  display: block;
46
- background-color: rgba(var(--ax-color-border-default));
46
+ background-color: rgba(var(--ax-sys-border-color));
47
47
  }
48
48
 
49
49
  .ax-action-item {
@@ -63,7 +63,7 @@
63
63
 
64
64
  &:hover {
65
65
  &:not(&.ax-state-disabled, &.ax-state-selected) {
66
- // background-color: rgba(var(--ax-color-on-surface));
66
+ // background-color: rgba(var(--ax-sys-color-surface-high));
67
67
  ax-prefix,
68
68
  ax-suffix {
69
69
  opacity: 1;
@@ -99,7 +99,7 @@
99
99
 
100
100
  ax-suffix {
101
101
  ax-text {
102
- color: rgba(var(--ax-color-text-default));
102
+ color: rgba(var(--ax-sys-body-text-color));
103
103
  opacity: 0.5;
104
104
  font-weight: lighter;
105
105
  padding-inline: 0.5rem;
@@ -1,15 +1,16 @@
1
- .ax-actionsheet-panel {
2
- // @apply ax-animate-fadeInUp ax-overflow-hidden ax-rounded-t-default ax-bg-surface ax-shadow-lg ax-animate-2xfaster;
1
+ .ax-action-sheet-panel {
2
+ --ax-comp-action-sheet-border-radius-size: var(--ax-sys-border-radius);
3
+
3
4
  overflow: hidden;
4
- border-top-left-radius: var(--ax-rounded-border-default);
5
- border-top-right-radius: var(--ax-rounded-border-default);
6
- background-color: rgba(var(--ax-color-surface));
5
+ border-top-left-radius: var(--ax-comp-action-sheet-border-radius-size);
6
+ border-top-right-radius: var(--ax-comp-action-sheet-border-radius-size);
7
+ background-color: rgba(var(--ax-sys-color-surface-lowest));
7
8
  --ax-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
8
9
  --ax-shadow-colored: 0 10px 15px -3px var(--ax-shadow-color), 0 4px 6px -4px var(--ax-shadow-color);
9
10
  box-shadow: var(--ax-ring-offset-shadow, 0 0 #0000), var(--ax-ring-shadow, 0 0 #0000), var(--ax-shadow);
10
11
 
11
12
  animation: 1s both ax-fadeInUp;
12
- animation-duration: 250ms;
13
+ animation-duration: var(--ax-sys-transition-duration);
13
14
 
14
15
  @keyframes ax-fadeInUp {
15
16
  from {
@@ -1,7 +1,6 @@
1
1
  @use '../mixins/index.scss';
2
2
 
3
3
  .ax-checkbox {
4
- // @apply ax-m-0 ax-h-4 ax-w-4 ax-cursor-pointer ax-appearance-none ax-rounded ax-border ax-border-default ax-bg-input-surface ax-align-middle ax-outline-none;
5
4
  margin: 0px;
6
5
  height: 1rem /* 16px */;
7
6
  min-width: 1rem /* 16px */;
@@ -9,21 +8,18 @@
9
8
  appearance: none;
10
9
  border-radius: 0.25rem /* 4px */;
11
10
  border-width: 1px;
12
- border-color: rgba(var(--ax-color-input-border));
13
- background-color: rgba(var(--ax-color-input-surface));
11
+ border-color: rgba(var(--ax-sys-color-input-surface-border));
12
+ background-color: rgba(var(--ax-sys-color-input-surface));
14
13
  vertical-align: middle;
15
14
  outline: 2px solid transparent;
16
15
  outline-offset: 2px;
17
16
 
18
17
  &:checked,
19
18
  &:indeterminate {
20
- // @apply ax-border-primary-500 ax-bg-primary-500 #{!important};
21
- border-color: rgba(var(--ax-color-primary-500)) !important;
22
- background-color: rgba(var(--ax-color-primary-500)) !important;
19
+ border-color: rgba(var(--ax-sys-color-primary-500)) !important;
20
+ background-color: rgba(var(--ax-sys-color-primary-500)) !important;
23
21
  background-size: contain;
24
22
  background-repeat: no-repeat;
25
-
26
- // @apply ax-bg-contain ax-bg-no-repeat;
27
23
  }
28
24
 
29
25
  &:checked {
@@ -36,14 +32,12 @@
36
32
 
37
33
  &:focus-visible,
38
34
  &:focus {
39
- // @apply ax-ring-2 ax-ring-primary-500 ax-ring-offset-2 ax-ring-offset-surface;
40
35
  box-shadow:
41
- 0px 0px 0px 2px rgba(var(--ax-color-surface)),
42
- 0px 0px 0px 4px rgba(var(--ax-color-primary-500));
36
+ 0px 0px 0px 2px rgba(var(--ax-sys-color-surface)),
37
+ 0px 0px 0px 4px rgba(var(--ax-sys-color-primary-500));
43
38
  }
44
39
 
45
40
  &:disabled {
46
- // @apply ax-cursor-not-allowed ax-opacity-50;
47
41
  cursor: not-allowed;
48
42
  opacity: 0.5;
49
43
  }
@@ -52,8 +46,8 @@
52
46
  // @include darkMode() {
53
47
  // .ax-checkbox {
54
48
  // &:checked {
55
- // border-color: rgba(var(--ax-color-primary-200)) !important;
56
- // background-color: rgba(var(--ax-color-primary-200)) !important;
49
+ // border-color: rgba(var(--ax-sys-color-primary-200)) !important;
50
+ // background-color: rgba(var(--ax-sys-color-primary-200)) !important;
57
51
  // background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' 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");
58
52
  // }
59
53
  // }
@@ -1,11 +1,9 @@
1
1
  @use '../variables/index.scss';
2
2
  @use '../mixins/index.scss' as mixins;
3
3
  .ax-drop-down {
4
- // @apply ax-contents;
5
4
  display: contents;
6
5
 
7
6
  .ax-dropdown-content {
8
- // @apply ax-flex ax-flex-1 ax-items-center ax-overflow-x-auto ax-overflow-y-hidden ax-text-sm ax-capitalize;
9
7
  display: flex;
10
8
  flex: 1 1 0%;
11
9
  align-items: center;
@@ -16,7 +14,6 @@
16
14
  text-transform: capitalize;
17
15
 
18
16
  &.ax-state-disabled {
19
- // @apply ax-cursor-not-allowed ax-opacity-50;
20
17
  cursor: not-allowed;
21
18
  opacity: 0.5;
22
19
  }
@@ -24,46 +21,41 @@
24
21
  }
25
22
 
26
23
  .ax-overlay-pane {
27
- // @apply ax-mt-1 ax-h-fit ax-overflow-hidden ax-rounded-none ax-border ax-border-default ax-bg-surface ax-shadow-md md:ax-rounded-default;
28
24
  margin: 0.25rem 0;
29
25
  min-width: 10rem;
30
26
  height: fit-content;
31
27
  overflow: hidden;
32
28
  border-width: 1px;
33
- border-color: rgba(var(--ax-color-border-default));
34
- background-color: rgba(var(--ax-color-surface));
29
+ border-color: rgba(var(--ax-sys-color-border-lightest-surface));
30
+ background-color: rgba(var(--ax-sys-color-lightest-surface));
35
31
  --ax-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
36
32
  --ax-shadow-colored: 0 4px 6px -1px var(--ax-shadow-color), 0 2px 4px -2px var(--ax-shadow-color);
37
33
  box-shadow: var(--ax-ring-offset-shadow, 0 0 #0000), var(--ax-ring-shadow, 0 0 #0000), var(--ax-shadow);
38
- border-radius: var(--ax-rounded-border-default);
34
+ border-radius: var(--ax-sys-border-radius);
39
35
 
40
36
  @include mixins.media('xs') {
41
37
  margin: 0;
42
38
  }
43
39
  ax-header,
44
40
  ax-footer {
45
- // @apply ax-bg-surface ax-p-3;
46
- background-color: rgba(var(--ax-color-surface));
41
+ background-color: rgba(var(--ax-sys-color-surface));
47
42
  padding: 0.75rem /* 12px */;
48
43
  }
49
44
 
50
45
  &.ax-overlay-center {
51
- // @apply ax-h-fit ax-w-[80vw] ax-max-w-[90vh];
52
46
  height: fit-content;
53
47
  width: 80vw;
54
48
  max-width: 90vh;
55
49
  }
56
50
 
57
51
  &.ax-overlay-actionsheet {
58
- // @apply ax-h-auto ax-max-h-[85vh] ax-w-full ax-bg-surface;
59
52
  height: auto;
60
53
  max-height: 85vh;
61
54
  width: 100%;
62
- background-color: rgba(var(--ax-color-surface));
63
- border-top-left-radius: var(--ax-rounded-border-default);
64
- border-top-right-radius: var(--ax-rounded-border-default);
55
+ background-color: rgba(var(--ax-sys-color-surface));
56
+ border-top-left-radius: var(--ax-sys-border-radius);
57
+ border-top-right-radius: var(--ax-sys-border-radius);
65
58
  &.ax-full {
66
- // @apply ax-h-[95vh] ax-max-h-[95vh];
67
59
  height: 95vh;
68
60
  max-height: 95vh;
69
61
  }
@@ -72,6 +64,5 @@
72
64
  &.ax-overlay-full {
73
65
  width: 100vw;
74
66
  height: 100vh;
75
- // @apply ax-h-screen ax-w-screen;
76
67
  }
77
68
  }
@@ -1,5 +1,5 @@
1
- @use '../mixins/look';
2
- @use '../mixins/util';
1
+ @use '../mixins/look' as look;
2
+ @use '../mixins/util' as util;
3
3
 
4
4
  :root {
5
5
  --ax-editor-font-size: 1rem;
@@ -10,32 +10,32 @@
10
10
  .ax-editor-container {
11
11
  &.ax-look-fill {
12
12
  &:focus-within {
13
- box-shadow: 0px 0px 0 2px rgba(var(--ax-color-primary-200));
13
+ box-shadow: 0px 0px 0 2px rgba(var(--ax-sys-color-primary-200));
14
14
  }
15
15
  &.ax-state-error {
16
- background-color: rgba(var(--ax-color-danger-200));
17
- color: rgba(var(--ax-color-danger-fore));
16
+ background-color: rgba(var(--ax-sys-color-danger-200));
17
+ color: rgba(var(--ax-sys-color-danger-fore));
18
18
 
19
19
  &:focus-within {
20
- box-shadow: 0px 0px 0 2px rgba(var(--ax-color-danger-200));
20
+ box-shadow: 0px 0px 0 2px rgba(var(--ax-sys-color-danger-200));
21
21
  }
22
22
  .ax-input {
23
23
  &::placeholder {
24
- color: rgba(var(--ax-color-danger-200));
24
+ color: rgba(var(--ax-sys-color-danger-200));
25
25
  }
26
26
  }
27
27
  }
28
28
  }
29
29
  &.ax-look-flat {
30
30
  &:focus-within {
31
- border-color: rgba(var(--ax-color-primary-200));
31
+ border-color: rgba(var(--ax-sys-color-primary-200));
32
32
  }
33
33
  &.ax-state-error {
34
- border-color: rgba(var(--ax-color-danger-200));
34
+ border-color: rgba(var(--ax-sys-color-danger-200));
35
35
 
36
36
  .ax-input {
37
37
  &::placeholder {
38
- color: rgba(var(--ax-color-danger-200));
38
+ color: rgba(var(--ax-sys-color-danger-200));
39
39
  }
40
40
  }
41
41
  }
@@ -43,19 +43,19 @@
43
43
  &.ax-look-solid,
44
44
  &.ax-look-outline {
45
45
  &:focus-within {
46
- box-shadow: 0px 0px 0 1px rgba(var(--ax-color-primary-200));
47
- border-color: rgba(var(--ax-color-primary-200));
46
+ box-shadow: 0px 0px 0 1px rgba(var(--ax-sys-color-primary-200));
47
+ border-color: rgba(var(--ax-sys-color-primary-200));
48
48
  }
49
49
 
50
50
  &.ax-state-error {
51
- border-color: rgba(var(--ax-color-danger-200));
51
+ border-color: rgba(var(--ax-sys-color-danger-200));
52
52
  &:focus-within {
53
- box-shadow: 0px 0px 0 1px rgba(var(--ax-color-danger-200));
54
- border-color: rgba(var(--ax-color-danger-200));
53
+ box-shadow: 0px 0px 0 1px rgba(var(--ax-sys-color-danger-200));
54
+ border-color: rgba(var(--ax-sys-color-danger-200));
55
55
  }
56
56
  .ax-input {
57
57
  &::placeholder {
58
- color: rgba(var(--ax-color-danger-200));
58
+ color: rgba(var(--ax-sys-color-danger-200));
59
59
  }
60
60
  }
61
61
  }
@@ -65,13 +65,12 @@
65
65
 
66
66
  .ax-editor-container {
67
67
  display: flex;
68
- height: var(--ax-size-default);
68
+ height: var(--ax-sys-size-base);
69
69
  width: 100%;
70
70
  align-items: center;
71
71
  overflow: hidden;
72
72
  font-size: 0.875rem;
73
- line-height: 1;
74
- color: rgba(var(--ax-color-input-surface-fore));
73
+ color: rgba(var(--ax-sys-color-input-surface-text));
75
74
 
76
75
  .ax-editor-container {
77
76
  border-radius: 0 !important;
@@ -82,7 +81,7 @@
82
81
  box-shadow: none !important;
83
82
  }
84
83
  &:focus {
85
- box-shadow: 0px 0px 0 1px rgba(var(--ax-color-primary-500));
84
+ box-shadow: 0px 0px 0 1px rgba(var(--ax-sys-color-primary-500));
86
85
  }
87
86
  }
88
87
 
@@ -125,7 +124,7 @@
125
124
  &::placeholder {
126
125
  font-size: inherit;
127
126
  font-weight: 400;
128
- color: rgb(var(--ax-color-input-surface-fore), 0.5);
127
+ color: rgb(var(--ax-sys-color-input-surface-text), 0.5);
129
128
  }
130
129
  &:focus,
131
130
  &:focus-visible,
@@ -134,46 +133,6 @@
134
133
  }
135
134
  }
136
135
 
137
- &.ax-xs {
138
- .ax-input {
139
- padding: 0 calc(var(--ax-editor-space-size) - 8px);
140
- font-size: calc(var(--ax-editor-font-size) - 4px);
141
- line-height: 1rem;
142
- }
143
- }
144
-
145
- &.ax-sm {
146
- .ax-input {
147
- padding: 0 calc(var(--ax-editor-space-size) - 4px);
148
- font-size: calc(var(--ax-editor-font-size) - 2px);
149
- line-height: calc(var(--ax-editor-font-size) - 2px);
150
- }
151
- }
152
-
153
- &.ax-md {
154
- .ax-input {
155
- padding: 0 calc(var(--ax-editor-space-size) - 4px);
156
- font-size: var(--ax-editor-font-size);
157
- line-height: var(--ax-editor-font-size);
158
- }
159
- }
160
-
161
- &.ax-lg {
162
- .ax-input {
163
- padding: 0 var(--ax-editor-space-size);
164
- font-size: calc(var(--ax-editor-font-size) + 2px);
165
- line-height: calc(var(--ax-editor-font-size) + 2px);
166
- }
167
- }
168
-
169
- &.ax-xl {
170
- .ax-input {
171
- padding: 0 var(--ax-editor-space-size);
172
- font-size: calc(var(--ax-editor-font-size) + 4px);
173
- line-height: calc(var(--ax-editor-font-size) + 4px);
174
- }
175
- }
176
-
177
136
  .ax-editor-control {
178
137
  display: flex;
179
138
  height: 100%;
@@ -182,7 +141,7 @@
182
141
  padding-inline-start: 0.5rem;
183
142
  font-size: 1.125rem;
184
143
  line-height: 1.75rem;
185
- color: rgba(var(--ax-color-input-surface-fore));
144
+ color: rgba(var(--ax-sys-color-input-surface-text));
186
145
  }
187
146
 
188
147
  &.ax-button-icon {
@@ -248,7 +207,6 @@
248
207
  }
249
208
 
250
209
  ax-title {
251
- // @apply ax-px-4;
252
210
  padding-left: 1rem;
253
211
  padding-right: 1rem;
254
212
  }
@@ -271,21 +229,7 @@
271
229
 
272
230
  &.ax-button-icon {
273
231
  height: 100%;
274
- width: var(--ax-size-default);
275
- }
276
- }
277
- }
278
-
279
- .ax-ripple {
280
- transform: scale(0);
281
- animation: ripple 500ms linear;
282
- position: absolute;
283
- border-radius: 9999rem !important;
284
-
285
- @keyframes ripple {
286
- to {
287
- transform: scale(4);
288
- opacity: 0;
232
+ width: var(--ax-sys-size-base);
289
233
  }
290
234
  }
291
235
  }
@@ -1,32 +1,32 @@
1
1
  .ax-general-button {
2
2
  display: inline-flex;
3
- height: var(--ax-size-default);
3
+ height: var(--ax-sys-size-base);
4
4
  cursor: pointer;
5
5
  align-items: center;
6
6
  justify-content: center;
7
- border-radius: var(--ax-rounded-border-default);
7
+ border-radius: var(--ax-sys-border-radius);
8
8
  padding-left: 1rem;
9
9
  padding-right: 1rem;
10
10
  font-size: 0.875rem;
11
11
  line-height: 1.25rem;
12
- color: rgb(var(--ax-color-input-surface-fore), 0.75);
12
+ color: rgb(var(--ax-sys-color-input-surface-text), 0.75);
13
13
 
14
14
  &:hover {
15
15
  &:not(&:disabled, .ax-state-disabled) {
16
- color: rgba(var(--ax-color-primary-500), var(--tw-text-opacity));
16
+ color: rgba(var(--ax-sys-color-primary-500), var(--tw-text-opacity));
17
17
  }
18
18
  }
19
19
 
20
20
  &:focus,
21
21
  &:focus-visible {
22
22
  &:not(&:disabled, .ax-state-disabled) {
23
- color: rgba(var(--ax-color-primary-700), var(--tw-text-opacity));
23
+ color: rgba(var(--ax-sys-color-primary-700), var(--tw-text-opacity));
24
24
  }
25
25
  }
26
26
 
27
27
  &:active {
28
28
  &:not(&:disabled, .ax-state-disabled) {
29
- color: rgba(var(--ax-color-primary-300), var(--tw-text-opacity));
29
+ color: rgba(var(--ax-sys-color-primary-300), var(--tw-text-opacity));
30
30
  }
31
31
  }
32
32
 
@@ -39,7 +39,7 @@
39
39
  }
40
40
  }
41
41
  &.ax-button-rounded {
42
- border-radius: var(--ax-rounded-border-default);
42
+ border-radius: var(--ax-sys-border-radius);
43
43
  }
44
44
  &:disabled,
45
45
  &.ax-state-disabled {
@@ -49,28 +49,27 @@
49
49
  }
50
50
  .ax-clear-button {
51
51
  display: inline-flex;
52
- height: var(--ax-size-default);
52
+ height: var(--ax-sys-size-base);
53
53
  align-items: center;
54
54
  justify-content: center;
55
55
  margin-left: 0.25rem;
56
56
  margin-right: 0.25rem;
57
57
  font-size: 1rem /* 16px */;
58
58
  line-height: 1.5rem /* 24px */;
59
- line-height: 1;
60
- color: rgb(var(--ax-color-text-default), 0.75);
59
+ color: rgb(var(--ax-sys-body-text-color), 0.75);
61
60
 
62
61
  > button {
63
62
  display: flex;
64
63
  }
65
64
  &:hover {
66
65
  &:not(&:disabled, .ax-state-disabled) {
67
- color: rgb(var(--ax-color-text-default), 0.5);
66
+ color: rgb(var(--ax-sys-body-text-color), 0.5);
68
67
  }
69
68
  }
70
69
  &:focus,
71
70
  &:focus-visible {
72
71
  &:not(&:disabled, .ax-state-disabled) {
73
- color: rgb(var(--ax-color-text-default));
72
+ color: rgb(var(--ax-sys-body-text-color));
74
73
  }
75
74
  }
76
75
  }
@@ -2,24 +2,22 @@
2
2
  @include mixins.darkMode() {
3
3
  .ax-list-item {
4
4
  &.ax-state-selected {
5
- // @apply ax-bg-primary-800 ax-text-primary-fore #{!important};
6
- background-color: rgba(var(--ax-color-primary-800)) !important;
7
- color: rgba(var(--ax-color-primary-fore)) !important;
5
+ background-color: rgba(var(--ax-sys-color-primary-800)) !important;
6
+ color: rgba(var(--ax-sys-color-on-primary)) !important;
8
7
 
9
8
  // .ax-selected-icon {
10
- // // @apply ax-text-primary-fore;
11
- // color: rgba(var(--ax-color-primary-fore));
9
+ //
10
+ // color: rgba(var(--ax-sys-color-on-primary));
12
11
  // }
13
12
  }
14
13
  }
15
14
  }
16
15
  .ax-list {
17
- // @apply ax-flex ax-h-full ax-flex-col ax-overflow-hidden ax-bg-surface ax-text-sm md:ax-max-h-80;
18
16
  display: flex;
19
17
  height: 100%;
20
18
  flex-direction: column;
21
19
  overflow: hidden;
22
- background-color: rgba(var(--ax-color-surface));
20
+ background-color: rgba(var(--ax-sys-color-surface));
23
21
  font-size: 0.875rem /* 14px */;
24
22
  line-height: 1.25rem /* 20px */;
25
23
  @include mixins.media('md') {
@@ -27,17 +25,15 @@
27
25
  }
28
26
  ax-header,
29
27
  ax-footer {
30
- // @apply ax-flex ax-items-center ax-justify-between ax-border-default ax-bg-surface;
31
28
  display: flex;
32
29
  align-items: center;
33
30
  justify-content: space-between;
34
- border-color: rgba(var(--ax-color-border-default), var(--tw-border-opacity));
31
+ border-color: rgba(var(--ax-sys-border-color), var(--tw-border-opacity));
35
32
  background-color: rgba(var(--ax-color-surface), var(--tw-bg-opacity));
36
33
  }
37
34
  ax-header {
38
- // @apply ax-border-b ax-border-default ax-p-4 ax-text-base ax-font-medium md:ax-text-lg;
39
35
  border-bottom-width: 1px;
40
- border-color: rgba(var(--ax-color-border-default), var(--tw-border-opacity));
36
+ border-color: rgba(var(--ax-sys-border-color), var(--tw-border-opacity));
41
37
  padding: 1rem /* 16px */;
42
38
  font-size: 1rem /* 16px */;
43
39
  line-height: 1.5rem /* 24px */;
@@ -48,58 +44,48 @@
48
44
  }
49
45
  ax-prefix,
50
46
  ax-suffix {
51
- // @apply ax-flex ax-flex-col ax-justify-items-start;
52
47
  display: flex;
53
48
  flex-direction: column;
54
49
  justify-items: start;
55
50
  }
56
51
  ax-prefix {
57
- // @apply ax-items-start;
58
52
  align-items: flex-start;
59
53
  }
60
54
  ax-suffix {
61
- // @apply ax-items-end;
62
55
  align-items: flex-end;
63
56
  }
64
57
  }
65
58
 
66
59
  ax-footer {
67
- // @apply ax-border-t;
68
60
  border-top-width: 1px;
69
61
  }
70
62
 
71
63
  .ax-content {
72
- // @apply ax-flex-1 ax-overflow-y-auto ax-overflow-x-hidden;
73
64
  flex: 1 1 0%;
74
65
  overflow-y: auto;
75
66
  overflow-x: hidden;
76
67
 
77
68
  &.ax-list-items-container {
78
- // @apply ax-h-full ax-overflow-y-auto ax-py-2;
79
69
  height: 100%;
80
70
  overflow-y: auto;
81
71
  padding-top: 0.5rem /* 8px */;
82
72
  padding-bottom: 0.5rem /* 8px */;
83
73
 
84
74
  &.ax-vertical {
85
- // @apply ax-grid ax-grid-cols-1;
86
75
  display: grid;
87
76
  grid-template-columns: repeat(1, minmax(0, 1fr));
88
77
 
89
78
  &.ax-divide {
90
- // @apply ax-border-y;
91
79
  border-top-width: 1px;
92
80
  border-bottom-width: 1px;
93
81
  }
94
82
  }
95
83
 
96
84
  &.ax-default {
97
- // @apply ax-cursor-pointer;
98
85
  cursor: pointer;
99
86
 
100
87
  .ax-list-item-group {
101
88
  & > span {
102
- // @apply ax-flex ax-items-center ax-p-3 ax-font-medium;
103
89
  display: flex;
104
90
  align-items: center;
105
91
  padding: 0.75rem /* 12px */;
@@ -107,22 +93,19 @@
107
93
  }
108
94
 
109
95
  & > ul {
110
- // @apply ax-px-3;
111
96
  padding-left: 0.75rem /* 12px */;
112
97
  padding-right: 0.75rem /* 12px */;
113
98
  }
114
99
  .ax-list-item {
115
- // @apply ax-mb-1 ax-rounded-default;
116
100
  margin-bottom: 0.25rem /* 4px */;
117
- border-radius: var(--ax-rounded-border-default);
101
+ border-radius: var(--ax-sys-border-radius);
118
102
  }
119
103
  }
120
104
 
121
105
  .ax-list-item {
122
- // @apply ax-relative ax-flex ax-h-default ax-select-none ax-items-center ax-justify-between ax-pe-4 ax-ps-3 ax-text-base;
123
106
  position: relative;
124
107
  display: flex;
125
- height: var(--ax-size-default);
108
+ height: var(--ax-sys-size-base);
126
109
  user-select: none;
127
110
  align-items: center;
128
111
  justify-content: space-between;
@@ -132,26 +115,23 @@
132
115
  line-height: 1.5rem /* 24px */;
133
116
  &:focus,
134
117
  &:focus-visible {
135
- // @apply ax-outline-2 ax-outline-offset-2;
136
118
  outline-width: 2px;
137
119
  outline-offset: 2px;
138
120
  }
139
121
  &.ax-state-checkbox {
140
122
  .ax-checkbox-label {
141
- // @apply ax-ms-2;
142
123
  margin-inline-start: 0.5rem /* 8px */;
143
124
  }
144
125
  }
145
126
  &.ax-state-selected {
146
- // @apply ax-bg-primary-500 ax-text-primary-fore #{!important};
147
- background-color: rgba(var(--ax-color-primary-500), var(--tw-bg-opacity)) !important;
148
- color: rgba(var(--ax-color-primary-fore), var(--tw-text-opacity)) !important;
127
+ background-color: rgba(var(--ax-sys-color-primary-500), var(--tw-bg-opacity)) !important;
128
+ color: rgba(var(--ax-sys-color-on-primary), var(--tw-text-opacity)) !important;
149
129
 
150
130
  // .ax-selected-icon {
151
- // // @apply ax-text-2xl ax-text-primary-500;
131
+ //
152
132
  // font-size: 1.5rem /* 24px */;
153
133
  // line-height: 2rem /* 32px */;
154
- // color: rgba(var(--ax-color-primary-500));
134
+ // color: rgba(var(--ax-sys-color-primary-500));
155
135
  // }
156
136
  }
157
137
 
@@ -161,25 +141,21 @@
161
141
  // }
162
142
 
163
143
  &.ax-state-disabled {
164
- // @apply ax-cursor-not-allowed ax-opacity-50;
165
144
  cursor: not-allowed;
166
145
  opacity: 0.5;
167
146
  }
168
147
 
169
148
  &:focus-visible,
170
149
  &:hover {
171
- // @apply ax-bg-on-surface;
172
- background-color: rgba(var(--ax-color-on-surface));
150
+ background-color: rgba(var(--ax-sys-color-surface-high));
173
151
  }
174
152
  &.ax-state-focus {
175
- // @apply ax-bg-on-surface;
176
- background-color: rgba(var(--ax-color-on-surface));
153
+ background-color: rgba(var(--ax-sys-color-surface-high));
177
154
  }
178
155
  }
179
156
  }
180
157
 
181
158
  .ax-list-loading-container {
182
- // @apply ax-flex ax-justify-center ax-p-2;
183
159
  display: flex;
184
160
  justify-content: center;
185
161
  padding: 0.5rem /* 8px */;
@@ -188,11 +164,9 @@
188
164
  }
189
165
 
190
166
  .ax-search-box-container {
191
- // @apply ax-p-2;
192
167
  padding: 0.5rem /* 8px */;
193
168
 
194
169
  &.ax-state-hidden {
195
- // @apply ax-hidden;
196
170
  display: none;
197
171
  }
198
172
  }