@acorex/styles 7.11.5 → 7.12.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.
@@ -4,7 +4,7 @@
4
4
  .ax-editor-container {
5
5
  &.ax-look-fill {
6
6
  &.ax-state-error {
7
- background-color: rgba(var(--ax-color-danger-500), 0.25);
7
+ @apply ax-bg-danger-500/25;
8
8
  }
9
9
 
10
10
  // &.ax-state-success {
@@ -14,14 +14,8 @@
14
14
  }
15
15
  }
16
16
  .ax-editor-container {
17
- width: 100%;
18
- height: var(--ax-size-default);
19
- display: flex;
20
- align-items: center;
21
- color: rgba(var(--ax-color-input-surface-fore));
22
- font-size: 0.875rem;
23
- overflow: hidden;
24
- line-height: 1;
17
+ @apply ax-flex ax-h-default ax-w-full ax-items-center ax-overflow-hidden ax-text-sm ax-leading-none ax-text-input-surface-fore;
18
+
25
19
  &.ax-look-solid,
26
20
  &.ax-look-outline {
27
21
  @include solid-look();
@@ -37,103 +31,77 @@
37
31
  }
38
32
 
39
33
  .ax-editor-input {
40
- height: 100%;
41
- flex: 1;
34
+ @apply ax-h-full ax-flex-1;
42
35
  .ax-input {
43
- height: 100%;
36
+ @apply ax-h-full;
44
37
  }
45
38
  }
46
39
  .ax-input {
47
- padding: 0 0.75rem;
48
-
40
+ @apply ax-px-3;
49
41
  &::placeholder {
50
- color: rgba(var(--ax-color-text-default), 0.5);
51
- font-weight: 500;
52
42
  font-size: inherit;
43
+ @apply ax-font-medium ax-text-default/50;
53
44
  }
54
45
  }
55
46
 
56
47
  &.ax-xs {
57
48
  .ax-input {
58
- font-size: 0.75rem;
59
- line-height: calc(var(--ax-size-base) - 0.75rem);
60
- padding: 0.5rem;
49
+ @apply ax-p-2 ax-text-xs;
61
50
  }
62
51
  }
63
52
  &.ax-sm {
64
53
  .ax-input {
65
- font-size: 0.875rem;
66
- line-height: calc(var(--ax-size-base) - 0.5rem);
67
- padding: 0.5rem;
54
+ @apply ax-p-2 ax-text-sm;
68
55
  }
69
56
  }
70
57
  &.ax-md {
71
58
  .ax-input {
72
- font-size: 0.875rem;
73
- line-height: var(--ax-size-base);
59
+ @apply ax-text-sm;
74
60
  }
75
61
  }
76
62
  &.ax-lg {
77
63
  .ax-input {
78
- font-size: 1.125rem;
79
- line-height: calc(var(--ax-size-base) + 0.5rem);
64
+ @apply ax-text-lg;
80
65
  }
81
66
  }
82
67
  &.ax-xl {
83
68
  .ax-input {
84
- font-size: 1.25rem;
85
- line-height: calc(var(--ax-size-base) + 1rem);
69
+ @apply ax-text-lg;
86
70
  }
87
71
  }
88
72
 
89
73
  .ax-editor-control {
90
- display: flex;
91
- align-items: center;
92
- justify-content: center;
93
- // width: var(--ax-size-default);
94
- // min-width: var(--ax-size-default);
95
- padding-inline-start: 0.5rem;
96
- height: 100%;
97
- font-size: 1.25rem;
98
- line-height: 1.25rem;
99
- color: rgba(var(--ax-color-text-default));
74
+ @apply ax-flex ax-h-full ax-items-center ax-justify-center ax-ps-2 ax-text-lg ax-text-input-surface-fore;
100
75
  }
101
76
 
102
77
  &.ax-button-icon {
103
- padding-left: 0.5rem;
104
- padding-right: 0.5rem;
78
+ @apply ax-px-2;
105
79
  }
106
80
  .ax-input,
107
81
  .ax-text-area {
108
- width: 100%;
109
- height: 100%;
110
- background-color: transparent;
111
- flex: 1 1 0%;
112
- border: none;
113
82
  text-align: inherit;
114
83
  font-family: inherit;
115
84
  font-size: inherit;
116
85
  line-height: inherit;
117
- font-weight: 400;
86
+ @apply ax-w-full ax-flex-1 ax-bg-transparent ax-font-medium;
118
87
 
119
88
  &:focus {
120
- box-shadow: none;
89
+ @apply ax-shadow-none;
121
90
  }
122
91
  }
123
92
 
124
93
  .ax-text-area {
125
- padding: 0.625rem /* 10 */;
94
+ @apply ax-p-2.5;
126
95
  }
127
96
  & > ax-prefix {
128
97
  *,
129
98
  .ax-button,
130
99
  ax-title {
131
- border-start-start-radius: 0.25rem /* 4px */;
132
- border-end-start-radius: 0.25rem;
100
+ @apply ax-rounded-es ax-rounded-ss;
133
101
  }
134
102
 
135
103
  ax-icon {
136
- padding-inline-start: 0.75rem;
104
+ @apply ax-ps-3;
137
105
  }
138
106
  }
139
107
 
@@ -141,60 +109,45 @@
141
109
  *,
142
110
  .ax-button,
143
111
  ax-title {
144
- border-start-end-radius: 0.25rem /* 4px */;
145
- border-end-end-radius: 0.25rem;
112
+ @apply ax-rounded-ee ax-rounded-se;
146
113
  }
147
114
  ax-icon {
148
- padding-inline-end: 0.75rem;
115
+ @apply ax-pe-3;
149
116
  }
150
117
  }
151
118
 
152
119
  & > ax-prefix,
153
120
  & > ax-suffix {
154
- height: 100%;
121
+ @apply ax-h-full;
155
122
  * {
156
- height: 100%;
157
- display: flex;
158
- justify-content: center;
159
- align-items: center;
160
- border-radius: 0;
123
+ @apply ax-flex ax-h-full ax-items-center ax-justify-center ax-rounded-none;
161
124
  }
162
125
 
163
126
  ax-title {
164
- padding-left: 1rem /* 16px */;
165
- padding-right: 1rem /* 16px */;
127
+ @apply ax-px-4;
166
128
  }
167
129
 
168
130
  & > ax-text {
169
- font-size: 0.875rem;
170
- background-color: transparent;
171
- display: flex;
172
- align-items: center;
173
- justify-content: center;
174
- padding: 0 0.5rem;
175
- line-height: 1;
131
+ @apply ax-flex ax-items-center ax-justify-center ax-bg-transparent ax-px-2 ax-text-sm;
176
132
  }
177
133
  }
178
134
 
179
135
  .ax-button {
180
- height: 100% !important;
181
- border-radius: 0;
136
+ @apply ax-h-full ax-rounded-none #{!important};
182
137
 
183
138
  &.ax-button-icon {
184
- width: var(--ax-size-default);
185
- height: 100%;
139
+ @apply ax-h-full ax-w-default;
186
140
  }
187
141
  }
188
142
 
189
143
  &.ax-state-disabled {
190
- opacity: 0.5;
144
+ @apply ax-cursor-not-allowed ax-opacity-50;
191
145
  }
192
146
  }
193
147
  .ax-ripple {
194
- position: absolute;
195
- border-radius: 50%;
196
148
  transform: scale(0);
197
149
  animation: ripple 500ms linear;
150
+ @apply ax-absolute ax-rounded-full;
198
151
  @keyframes ripple {
199
152
  to {
200
153
  transform: scale(4);
@@ -1,66 +1,68 @@
1
1
  .ax-general-button {
2
- display: inline-flex;
3
- align-items: center;
4
- justify-content: center;
5
- padding: 0 1rem;
6
- height: var(--ax-size-default);
7
- font-size: 0.875rem;
8
- cursor: pointer;
9
- transition: background-color 0.3s;
10
- color: rgba(var(--ax-color-text-default), 0.6);
11
- border-radius: var(--ax-rounded-border-default);
12
- &:is(&:hover):not(&:disabled, .ax-state-disabled) {
13
- color: rgba(var(--ax-color-primary-500));
2
+ // display: inline-flex;
3
+ // align-items: center;
4
+ // justify-content: center;
5
+ // padding: 0 1rem;
6
+ // height: var(--ax-size-default);
7
+ // font-size: 0.875rem;
8
+ // cursor: pointer;
9
+ // transition: background-color 0.3s;
10
+ // color: rgba(var(--ax-color-text-default), 0.6);
11
+ // border-radius: var(--ax-rounded-border-default);
12
+
13
+ @apply ax-inline-flex ax-h-default ax-cursor-pointer ax-items-center ax-justify-center ax-rounded-default ax-px-4 ax-text-sm ax-text-default;
14
+
15
+ &:hover {
16
+ &:not(&:disabled, .ax-state-disabled) {
17
+ @apply ax-text-primary-500;
18
+ }
14
19
  }
15
20
 
16
- &:is(&:focus, &:focus-visible):not(&:disabled, .ax-state-disabled) {
17
- color: rgba(var(--ax-color-primary-700));
18
- // outline-color: transparent;
21
+ &:focus,
22
+ &:focus-visible {
23
+ &:not(&:disabled, .ax-state-disabled) {
24
+ @apply ax-text-primary-700;
25
+ }
19
26
  }
20
27
 
21
- &:is(&:active):not(&:disabled, .ax-state-disabled) {
22
- background-color: transparent;
28
+ &:active {
29
+ &:not(&:disabled, .ax-state-disabled) {
30
+ @apply ax-text-primary-300;
31
+ }
23
32
  }
24
33
 
25
34
  &.ax-button-icon {
26
- padding: 0 0.5rem;
27
- font-size: 1.25rem;
28
- // min-width: var(--ax-size-default);
29
- // width: var(--ax-size-default);
30
- // min-height: 100%;
35
+ @apply ax-px-2 ax-text-lg;
31
36
  > button {
32
- display: flex;
37
+ @apply ax-flex;
33
38
  }
34
39
  ax-icon {
35
- font-size: 1.25rem;
40
+ @apply ax-text-lg;
36
41
  }
37
42
  }
38
43
  &.ax-button-rounded {
39
- border-radius: var(--ax-rounded-border-default);
44
+ @apply ax-rounded-default;
40
45
  }
41
46
  &:disabled,
42
47
  &.ax-state-disabled {
43
- opacity: 0.5;
44
- cursor: not-allowed;
48
+ @apply ax-cursor-not-allowed ax-opacity-50;
45
49
  }
46
50
  }
47
51
  .ax-clear-button {
48
- font-size: 1rem;
49
- line-height: 1;
50
- color: rgba(var(--ax-color-text-default), 0.6);
51
- height: var(--ax-size-default);
52
- display: inline-flex;
53
- align-items: center;
54
- justify-content: center;
55
- padding: 0 0.5rem;
52
+ @apply ax-inline-flex ax-h-default ax-items-center ax-justify-center ax-px-2 ax-text-base ax-leading-none ax-text-default;
53
+
56
54
  > button {
57
- display: flex;
55
+ @apply ax-flex;
58
56
  }
59
- &:is(&:hover):not(&:disabled, .ax-state-disabled) {
60
- color: rgba(var(--ax-color-text-default), 0.75);
57
+ &:hover {
58
+ &:not(&:disabled, .ax-state-disabled) {
59
+ @apply ax-text-default/75;
60
+ }
61
61
  }
62
- &:is(&:focus, &:focus-visible):not(&:disabled, .ax-state-disabled) {
63
- color: rgba(var(--ax-color-text-default));
64
- // outline-color: transparent;
62
+ &:focus,
63
+ &:focus-visible {
64
+ &:not(&:disabled, .ax-state-disabled) {
65
+ @apply ax-text-default;
66
+ }
65
67
  }
66
68
  }
@@ -1,12 +1,10 @@
1
1
  .ax-input {
2
- outline: none;
3
- padding: 0;
4
- font-size: inherit;
5
- &:focus {
6
- outline-color: transparent;
7
- }
8
- &.ax-state-disabled {
9
- cursor: not-allowed;
10
- opacity: 0.5;
11
- }
2
+ font-size: inherit;
3
+ @apply ax-p-0 ax-outline-0;
4
+ &:focus {
5
+ @apply ax-outline-transparent;
6
+ }
7
+ &.ax-state-disabled {
8
+ @apply ax-cursor-not-allowed ax-opacity-50;
9
+ }
12
10
  }
@@ -2,131 +2,83 @@
2
2
  @include darkMode() {
3
3
  .ax-list-item {
4
4
  &.ax-state-selected {
5
- background-color: rgba(var(--ax-color-primary-800)) !important;
6
- color: rgba(var(--ax-color-primary-fore)) !important;
5
+ @apply ax-bg-primary-800 ax-text-primary-fore #{!important};
7
6
  .ax-selected-icon {
8
- color: rgba(var(--ax-color-primary-fore));
7
+ @apply ax-text-primary-fore;
9
8
  }
10
9
  }
11
10
  }
12
11
  }
13
12
  .ax-list {
14
- display: flex;
15
- flex-direction: column;
16
- overflow: hidden;
17
- font-size: 0.875rem;
18
- background-color: rgba(var(--ax-color-surface));
19
- height: 100%;
20
- @include media('desktop') {
21
- max-height: 320px;
22
- }
13
+ @apply ax-flex ax-h-full ax-flex-col ax-overflow-hidden ax-bg-surface ax-text-sm md:ax-max-h-80;
23
14
 
24
15
  ax-header,
25
16
  ax-footer {
26
- display: flex;
27
- justify-content: space-between;
28
- align-items: center;
29
- background-color: rgba(var(--ax-color-surface));
30
- border-color: rgba(var(--ax-color-border-default));
17
+ @apply ax-flex ax-items-center ax-justify-between ax-border-default ax-bg-surface;
31
18
  }
32
19
  ax-header {
33
- padding: 1rem;
34
- font-size: 1.125rem;
35
- font-weight: 500;
36
- border-bottom: 1px solid;
37
- border-color: rgba(var(--ax-color-border-default));
20
+ @apply ax-border-b ax-border-default ax-p-4 ax-text-base ax-font-medium md:ax-text-lg;
21
+
38
22
  ax-prefix,
39
23
  ax-suffix {
40
- display: flex;
41
- flex-direction: column;
42
- justify-content: flex-start;
24
+ @apply ax-flex ax-flex-col ax-justify-items-start;
43
25
  }
44
26
  ax-prefix {
45
- align-items: flex-start;
27
+ @apply ax-items-start;
46
28
  }
47
29
  ax-suffix {
48
- align-items: flex-end;
49
- }
50
-
51
- @include media('phone') {
52
- font-size: 1rem;
30
+ @apply ax-items-end;
53
31
  }
54
32
  }
55
33
 
56
34
  ax-footer {
57
- border-top: 1px solid;
35
+ @apply ax-border-t;
58
36
  }
59
37
 
60
38
  .ax-content {
61
- flex: 1 1 0%;
62
- overflow-y: auto;
63
- overflow-x: hidden;
39
+ @apply ax-flex-1 ax-overflow-y-auto ax-overflow-x-hidden;
64
40
 
65
41
  &.ax-list-items-container {
66
- padding-top: 0.5rem;
67
- padding-bottom: 0.5rem;
68
- overflow-y: auto;
69
- height: 100%;
70
-
42
+ @apply ax-h-full ax-overflow-y-auto ax-py-2;
71
43
  &.ax-vertical {
72
- display: grid;
73
- grid-template-columns: repeat(1, minmax(0, 1fr));
44
+ @apply ax-grid ax-grid-cols-1;
74
45
 
75
46
  &.ax-divide {
76
- border-top: 1px solid;
77
- border-bottom: 1px solid;
47
+ @apply ax-border-y;
78
48
  }
79
49
  }
80
50
 
81
51
  &.ax-default {
82
- cursor: pointer;
52
+ @apply ax-cursor-pointer;
83
53
 
84
54
  .ax-list-item-group {
85
55
  & > span {
86
- font-weight: 500;
87
- display: flex;
88
- align-items: center;
89
- padding: 0.75rem;
56
+ @apply ax-flex ax-items-center ax-p-3 ax-font-medium;
90
57
  }
91
58
 
92
59
  & > ul {
93
- padding-left: 0.75rem;
94
- padding-right: 0.75rem;
60
+ @apply ax-px-3;
95
61
  }
96
62
  .ax-list-item {
97
- border-radius: var(--ax-rounded-border-default);
98
- margin-bottom: 0.2rem;
63
+ @apply ax-mb-1 ax-rounded-default;
99
64
  }
100
65
  }
101
66
 
102
67
  .ax-list-item {
103
- padding-inline-start: 0.75rem;
104
- padding-inline-end: 1rem;
105
- position: relative;
106
- height: var(--ax-size-default);
107
- display: flex;
108
- justify-content: space-between;
109
- align-items: center;
110
- user-select: none;
111
- @include media('phone') {
112
- font-size: 1rem;
113
- }
68
+ @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;
114
69
  &:focus,
115
70
  &:focus-visible {
116
- outline: 2px solid transparent;
117
- outline-offset: 2px;
71
+ @apply ax-outline-2 ax-outline-offset-2;
118
72
  }
119
73
  &.ax-state-checkbox {
120
74
  .ax-checkbox-label {
121
- margin-inline-start: 0.5rem;
75
+ @apply ax-ms-2;
122
76
  }
123
77
  }
124
78
  &.ax-state-selected {
125
- background-color: rgba(var(--ax-color-primary-500)) !important;
126
- color: rgba(var(--ax-color-primary-fore)) !important;
79
+ @apply ax-bg-primary-500 ax-text-primary-fore #{!important};
127
80
  .ax-selected-icon {
128
- color: rgba(var(--ax-color-primary-500));
129
- font-size: 1.5rem;
81
+ @apply ax-text-2xl ax-text-primary-500;
130
82
  }
131
83
  }
132
84
 
@@ -136,33 +88,30 @@
136
88
  // }
137
89
 
138
90
  &.ax-state-disabled {
139
- cursor: not-allowed;
140
- opacity: 0.5;
91
+ @apply ax-cursor-not-allowed ax-opacity-50;
141
92
  }
142
93
 
143
94
  &:focus-visible,
144
95
  &:hover {
145
- background-color: rgba(var(--ax-color-on-surface));
96
+ @apply ax-bg-on-surface;
146
97
  }
147
98
  &.ax-state-focus {
148
- background-color: rgba(var(--ax-color-on-surface));
99
+ @apply ax-bg-on-surface;
149
100
  }
150
101
  }
151
102
  }
152
103
 
153
104
  .ax-list-loading-container {
154
- display: flex;
155
- justify-content: center;
156
- padding: 0.5rem;
105
+ @apply ax-flex ax-justify-center ax-p-2;
157
106
  }
158
107
  }
159
108
  }
160
109
 
161
110
  .ax-search-box-container {
162
- padding: 0.5rem;
111
+ @apply ax-p-2;
163
112
 
164
113
  &.ax-state-hidden {
165
- display: none;
114
+ @apply ax-hidden;
166
115
  }
167
116
  }
168
117
  ax-footer {
@@ -1,49 +1,20 @@
1
1
  @import '../mixins/index.scss';
2
- // @include darkMode() {
3
- // .ax-radio {
4
- // background-color: rgba(var(--ax-color-default));
5
- // }
6
- // }
2
+
7
3
  .ax-radio {
8
- width: 1.125rem;
9
- height: 1.125rem;
10
- border: 1px solid;
11
- border-color: rgba(var(--ax-color-border-default));
12
- border-radius: 99rem;
13
- background-color: rgba(var(--ax-color-input-surface));
14
- outline: 2px solid transparent;
15
- outline-offset: 2px;
16
- vertical-align: middle;
17
- appearance: none;
4
+ @apply ax-m-0 ax-h-4 ax-w-4 ax-cursor-pointer ax-appearance-none ax-rounded-full ax-border ax-border-default ax-bg-input-surface ax-align-middle ax-outline-none;
18
5
 
19
6
  &:checked {
20
- border-color: rgba(var(--ax-color-primary-500));
21
7
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
22
- background-color: rgba(var(--ax-color-primary-500));
23
- background-repeat: no-repeat;
24
- background-size: contain;
8
+ @apply ax-border-primary-500 ax-bg-primary-500 #{!important};
9
+ @apply ax-bg-contain ax-bg-no-repeat;
25
10
  }
26
11
 
27
- &:focus-visible {
28
- outline-offset: 2px;
29
- outline-width: 2px;
30
- outline-style: solid;
31
- outline-color: rgba(var(--ax-color-primary-500));
12
+ &:focus-visible,
13
+ &:focus {
14
+ @apply ax-ring-2 ax-ring-primary-500 ax-ring-offset-2;
32
15
  }
33
16
 
34
17
  &:disabled {
35
- opacity: 0.5;
36
- cursor: not-allowed;
18
+ @apply ax-cursor-not-allowed ax-opacity-50;
37
19
  }
38
20
  }
39
- // @include darkMode() {
40
- // .ax-radio {
41
- // &:checked {
42
- // border-color: rgba(var(--ax-color-primary-200));
43
- // background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
44
- // background-color: rgba(var(--ax-color-primary-200));
45
- // background-repeat: no-repeat;
46
- // background-size: contain;
47
- // }
48
- // }
49
- // }