@acorex/styles 7.23.0 → 7.23.2

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.
@@ -1,76 +1,76 @@
1
- @import '../variables/index.scss';
2
-
3
- .ax-drop-down {
4
- // @apply ax-contents;
5
- display: contents;
6
-
7
- .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
- display: flex;
10
- flex: 1 1 0%;
11
- align-items: center;
12
- overflow-x: auto;
13
- overflow-y: hidden;
14
- font-size: 0.875rem /* 14px */;
15
- line-height: 1.25rem /* 20px */;
16
- text-transform: capitalize;
17
-
18
- &.ax-state-disabled {
19
- // @apply ax-cursor-not-allowed ax-opacity-50;
20
- cursor: not-allowed;
21
- opacity: 0.5;
22
- }
23
- }
24
- }
25
-
26
- .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
- margin-top: 0.25rem /* 4px */;
29
- height: fit-content;
30
- overflow: hidden;
31
- border-radius: 0px;
32
- border-width: 1px;
33
- border-color: rgba(var(--ax-color-border-default));
34
- background-color: rgba(var(--ax-color-surface));
35
- --ax-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
36
- --ax-shadow-colored: 0 4px 6px -1px var(--ax-shadow-color),
37
- 0 2px 4px -2px var(--ax-shadow-color);
38
- box-shadow: var(--ax-ring-offset-shadow, 0 0 #0000),
39
- var(--ax-ring-shadow, 0 0 #0000), var(--ax-shadow);
40
- @media (min-width: 768px) {
41
- border-radius: var(--ax-rounded-border-default);
42
- }
43
- ax-header,
44
- ax-footer {
45
- // @apply ax-bg-surface ax-p-3;
46
- background-color: rgba(var(--ax-color-surface));
47
- padding: 0.75rem /* 12px */;
48
- }
49
-
50
- &.ax-overlay-center {
51
- // @apply ax-h-fit ax-w-[80vw] ax-max-w-[90vh];
52
- height: fit-content;
53
- width: 80vw;
54
- max-width: 90vh;
55
- }
56
-
57
- &.ax-overlay-actionsheet {
58
- // @apply ax-h-auto ax-max-h-[85vh] ax-w-full ax-bg-surface;
59
- height: auto;
60
- max-height: 85vh;
61
- width: 100%;
62
- background-color: rgba(var(--ax-color-surface));
63
-
64
- &.ax-full {
65
- // @apply ax-h-[95vh] ax-max-h-[95vh];
66
- height: 95vh;
67
- max-height: 95vh;
68
- }
69
- }
70
-
71
- &.ax-overlay-full {
72
- width: 100vw;
73
- height: 100vh;
74
- // @apply ax-h-screen ax-w-screen;
75
- }
76
- }
1
+ @import '../variables/index.scss';
2
+
3
+ .ax-drop-down {
4
+ // @apply ax-contents;
5
+ display: contents;
6
+
7
+ .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
+ display: flex;
10
+ flex: 1 1 0%;
11
+ align-items: center;
12
+ overflow-x: auto;
13
+ overflow-y: hidden;
14
+ font-size: 0.875rem /* 14px */;
15
+ line-height: 1.25rem /* 20px */;
16
+ text-transform: capitalize;
17
+
18
+ &.ax-state-disabled {
19
+ // @apply ax-cursor-not-allowed ax-opacity-50;
20
+ cursor: not-allowed;
21
+ opacity: 0.5;
22
+ }
23
+ }
24
+ }
25
+
26
+ .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
+ margin-top: 0.25rem /* 4px */;
29
+ height: fit-content;
30
+ overflow: hidden;
31
+ border-radius: 0px;
32
+ border-width: 1px;
33
+ border-color: rgba(var(--ax-color-border-default));
34
+ background-color: rgba(var(--ax-color-surface));
35
+ --ax-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
36
+ --ax-shadow-colored: 0 4px 6px -1px var(--ax-shadow-color),
37
+ 0 2px 4px -2px var(--ax-shadow-color);
38
+ box-shadow: var(--ax-ring-offset-shadow, 0 0 #0000),
39
+ var(--ax-ring-shadow, 0 0 #0000), var(--ax-shadow);
40
+ @media (min-width: 768px) {
41
+ border-radius: var(--ax-rounded-border-default);
42
+ }
43
+ ax-header,
44
+ ax-footer {
45
+ // @apply ax-bg-surface ax-p-3;
46
+ background-color: rgba(var(--ax-color-surface));
47
+ padding: 0.75rem /* 12px */;
48
+ }
49
+
50
+ &.ax-overlay-center {
51
+ // @apply ax-h-fit ax-w-[80vw] ax-max-w-[90vh];
52
+ height: fit-content;
53
+ width: 80vw;
54
+ max-width: 90vh;
55
+ }
56
+
57
+ &.ax-overlay-actionsheet {
58
+ // @apply ax-h-auto ax-max-h-[85vh] ax-w-full ax-bg-surface;
59
+ height: auto;
60
+ max-height: 85vh;
61
+ width: 100%;
62
+ background-color: rgba(var(--ax-color-surface));
63
+
64
+ &.ax-full {
65
+ // @apply ax-h-[95vh] ax-max-h-[95vh];
66
+ height: 95vh;
67
+ max-height: 95vh;
68
+ }
69
+ }
70
+
71
+ &.ax-overlay-full {
72
+ width: 100vw;
73
+ height: 100vh;
74
+ // @apply ax-h-screen ax-w-screen;
75
+ }
76
+ }
@@ -1,257 +1,257 @@
1
- @import '../mixins/look';
2
-
3
- @include darkMode() {
4
- .ax-editor-container {
5
- &.ax-look-fill {
6
- &.ax-state-error {
7
- // @apply ax-bg-danger-500/25;
8
- background-color: rgba(var(--ax-color-danger-500), 0.25);
9
- }
10
- &.ax-state-success {
11
- background-color: rgba(var(--ax-color-success-500), 0.25);
12
- }
13
- }
14
- }
15
- }
16
- .ax-editor-container {
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
- display: flex;
19
- height: var(--ax-size-default);
20
- width: 100%;
21
- align-items: center;
22
- overflow: hidden;
23
- font-size: 0.875rem /* 14px */;
24
- line-height: 1;
25
- color: rgba(var(--ax-color-input-surface-fore));
26
- .ax-editor-container {
27
- background-color: rgba(var(--ax-color-on-surface)) !important;
28
- border-radius: 0 !important;
29
- border: 0px !important;
30
- height: 100% !important;
31
- &:focus-within {
32
- box-shadow: none !important;
33
- }
34
- &:focus {
35
- box-shadow: 0px 0px 0 1px rgba(var(--ax-color-primary-500));
36
- }
37
- }
38
- &.ax-state-disabled {
39
- opacity: 0.5;
40
- cursor: not-allowed;
41
- }
42
- &.ax-look-solid,
43
- &.ax-look-outline {
44
- @include solid-look();
45
- }
46
- &.ax-look-flat {
47
- @include flat-look();
48
- }
49
- &.ax-look-outline {
50
- @include outline-look();
51
- }
52
- &.ax-look-fill {
53
- @include fill-look();
54
- }
55
-
56
- .ax-editor-input {
57
- // @apply ax-h-full ax-flex-1;
58
- height: 100%;
59
- flex: 1 1 0%;
60
-
61
- .ax-input {
62
- // @apply ax-h-full;
63
- height: 100%;
64
- }
65
- }
66
- .ax-input {
67
- // @apply ax-px-3;
68
- padding-left: 0.75rem /* 12px */;
69
- padding-right: 0.75rem /* 12px */;
70
- &::placeholder {
71
- // @apply ax-font-normal ax-text-default/50;
72
- font-size: inherit;
73
- font-weight: 400;
74
- color: rgb(var(--ax-color-text-default), 0.5);
75
- }
76
- &:focus,
77
- &:focus-visible,
78
- &:focus-within {
79
- outline: none;
80
- }
81
- }
82
-
83
- &.ax-xs {
84
- .ax-input {
85
- // @apply ax-p-2 ax-text-xs;
86
- padding: 0.5rem /* 8px */;
87
- font-size: 0.75rem /* 12px */;
88
- line-height: 1rem /* 16px */;
89
- }
90
- }
91
- &.ax-sm {
92
- .ax-input {
93
- // @apply ax-p-2 ax-text-sm;
94
- padding: 0.5rem /* 8px */;
95
- font-size: 0.875rem /* 14px */;
96
- line-height: 1.25rem /* 20px */;
97
- }
98
- }
99
- &.ax-md {
100
- .ax-input {
101
- // @apply ax-text-sm;
102
- font-size: 0.875rem /* 14px */;
103
- line-height: 1.25rem /* 20px */;
104
- }
105
- }
106
- &.ax-lg {
107
- .ax-input {
108
- // @apply ax-text-lg;
109
- font-size: 1rem /* 18px */;
110
- line-height: 1.25rem /* 28px */;
111
- }
112
- }
113
- &.ax-xl {
114
- .ax-input {
115
- // @apply ax-text-lg;
116
- font-size: 1.125rem /* 18px */;
117
- line-height: 1.75rem /* 28px */;
118
- }
119
- }
120
-
121
- .ax-editor-control {
122
- // @apply ax-flex ax-h-full ax-items-center ax-justify-center ax-ps-2 ax-text-lg ax-text-input-surface-fore;
123
- display: flex;
124
- height: 100%;
125
- align-items: center;
126
- justify-content: center;
127
- padding-inline-start: 0.5rem /* 8px */;
128
- font-size: 1.125rem /* 18px */;
129
- line-height: 1.75rem /* 28px */;
130
- font-size: 1.125rem /* 18px */;
131
- line-height: 1.75rem /* 28px */;
132
- color: rgba(var(--ax-color-input-surface-fore));
133
- }
134
-
135
- &.ax-button-icon {
136
- // @apply ax-px-2;
137
- padding-left: 0.5rem /* 8px */;
138
- padding-right: 0.5rem /* 8px */;
139
- }
140
- .ax-input,
141
- .ax-text-area {
142
- text-align: inherit;
143
- font-family: inherit;
144
- font-size: inherit;
145
- line-height: inherit;
146
- height: 100%;
147
- width: 100%;
148
- flex: 1 1 0%;
149
- background-color: transparent;
150
- font-weight: 400;
151
-
152
- // @apply ax-h-full ax-w-full ax-flex-1 ax-bg-transparent ax-font-normal;
153
-
154
- &:focus {
155
- // @apply ax-shadow-none;
156
- box-shadow: none;
157
- }
158
- }
159
-
160
- .ax-text-area {
161
- // @apply ax-p-2.5;
162
- padding: 0.625rem /* 10px */;
163
- }
164
- & > ax-prefix {
165
- *,
166
- .ax-button,
167
- ax-title {
168
- // @apply ax-rounded-es ax-rounded-ss;
169
- border-end-start-radius: 0.25rem /* 4px */;
170
- border-start-start-radius: 0.25rem /* 4px */;
171
- }
172
-
173
- ax-icon {
174
- // @apply ax-px-3;
175
- padding-left: 0.75rem /* 12px */;
176
- padding-right: 0.75rem /* 12px */;
177
- }
178
- }
179
-
180
- & > ax-suffix {
181
- *,
182
- .ax-button,
183
- ax-title {
184
- // @apply ax-rounded-ee ax-rounded-se;
185
- border-end-end-radius: 0.25rem /* 4px */;
186
- border-start-end-radius: 0.25rem /* 4px */;
187
- }
188
- ax-icon {
189
- // @apply ax-pe-3;
190
- // padding-inline-end: 0.75rem /* 12px */;
191
- }
192
- }
193
-
194
- & > ax-prefix,
195
- & > ax-suffix {
196
- // @apply ax-h-full;
197
- height: 100%;
198
-
199
- + .ax-input {
200
- // @apply ax-px-0.5 #{!important};
201
- padding-left: 0.125rem !important;
202
- padding-right: 0.125rem !important;
203
- }
204
- * {
205
- // @apply ax-flex ax-h-full ax-items-center ax-justify-center ax-rounded-none;
206
- display: flex;
207
- height: 100%;
208
- align-items: center;
209
- justify-content: center;
210
- border-radius: 0px;
211
- }
212
-
213
- ax-title {
214
- // @apply ax-px-4;
215
- padding-left: 1rem /* 16px */;
216
- padding-right: 1rem /* 16px */;
217
- }
218
-
219
- & > ax-text {
220
- // @apply ax-flex ax-items-center ax-justify-center ax-bg-transparent ax-px-2 ax-text-sm;
221
- display: flex;
222
- align-items: center;
223
- justify-content: center;
224
- background-color: transparent;
225
- padding-left: 0.5rem /* 8px */;
226
- padding-right: 0.5rem /* 8px */;
227
- font-size: 0.875rem /* 14px */;
228
- line-height: 1.25rem /* 20px */;
229
- }
230
- }
231
-
232
- .ax-button {
233
- // @apply ax-h-full ax-rounded-none #{!important};
234
- height: 100% !important;
235
- border-radius: 0px !important;
236
-
237
- &.ax-button-icon {
238
- // @apply ax-h-full ax-w-default;
239
- height: 100%;
240
- width: var(--ax-size-default);
241
- }
242
- }
243
- }
244
- .ax-ripple {
245
- // @apply ax-absolute ax-rounded-full;
246
- transform: scale(0);
247
- animation: ripple 500ms linear;
248
- position: absolute;
249
- border-radius: 9999px !important;
250
-
251
- @keyframes ripple {
252
- to {
253
- transform: scale(4);
254
- opacity: 0;
255
- }
256
- }
257
- }
1
+ @import '../mixins/look';
2
+
3
+ @include darkMode() {
4
+ .ax-editor-container {
5
+ &.ax-look-fill {
6
+ &.ax-state-error {
7
+ // @apply ax-bg-danger-500/25;
8
+ background-color: rgba(var(--ax-color-danger-500), 0.25);
9
+ }
10
+ &.ax-state-success {
11
+ background-color: rgba(var(--ax-color-success-500), 0.25);
12
+ }
13
+ }
14
+ }
15
+ }
16
+ .ax-editor-container {
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
+ display: flex;
19
+ height: var(--ax-size-default);
20
+ width: 100%;
21
+ align-items: center;
22
+ overflow: hidden;
23
+ font-size: 0.875rem /* 14px */;
24
+ line-height: 1;
25
+ color: rgba(var(--ax-color-input-surface-fore));
26
+ .ax-editor-container {
27
+ background-color: rgba(var(--ax-color-on-surface)) !important;
28
+ border-radius: 0 !important;
29
+ border: 0px !important;
30
+ height: 100% !important;
31
+ &:focus-within {
32
+ box-shadow: none !important;
33
+ }
34
+ &:focus {
35
+ box-shadow: 0px 0px 0 1px rgba(var(--ax-color-primary-500));
36
+ }
37
+ }
38
+ &.ax-state-disabled {
39
+ opacity: 0.5;
40
+ cursor: not-allowed;
41
+ }
42
+ &.ax-look-solid,
43
+ &.ax-look-outline {
44
+ @include solid-look();
45
+ }
46
+ &.ax-look-flat {
47
+ @include flat-look();
48
+ }
49
+ &.ax-look-outline {
50
+ @include outline-look();
51
+ }
52
+ &.ax-look-fill {
53
+ @include fill-look();
54
+ }
55
+
56
+ .ax-editor-input {
57
+ // @apply ax-h-full ax-flex-1;
58
+ height: 100%;
59
+ flex: 1 1 0%;
60
+
61
+ .ax-input {
62
+ // @apply ax-h-full;
63
+ height: 100%;
64
+ }
65
+ }
66
+ .ax-input {
67
+ // @apply ax-px-3;
68
+ padding-left: 0.75rem /* 12px */;
69
+ padding-right: 0.75rem /* 12px */;
70
+ &::placeholder {
71
+ // @apply ax-font-normal ax-text-default/50;
72
+ font-size: inherit;
73
+ font-weight: 400;
74
+ color: rgb(var(--ax-color-text-default), 0.5);
75
+ }
76
+ &:focus,
77
+ &:focus-visible,
78
+ &:focus-within {
79
+ outline: none;
80
+ }
81
+ }
82
+
83
+ &.ax-xs {
84
+ .ax-input {
85
+ // @apply ax-p-2 ax-text-xs;
86
+ padding: 0.5rem /* 8px */;
87
+ font-size: 0.75rem /* 12px */;
88
+ line-height: 1rem /* 16px */;
89
+ }
90
+ }
91
+ &.ax-sm {
92
+ .ax-input {
93
+ // @apply ax-p-2 ax-text-sm;
94
+ padding: 0.5rem /* 8px */;
95
+ font-size: 0.875rem /* 14px */;
96
+ line-height: 1.25rem /* 20px */;
97
+ }
98
+ }
99
+ &.ax-md {
100
+ .ax-input {
101
+ // @apply ax-text-sm;
102
+ font-size: 0.875rem /* 14px */;
103
+ line-height: 1.25rem /* 20px */;
104
+ }
105
+ }
106
+ &.ax-lg {
107
+ .ax-input {
108
+ // @apply ax-text-lg;
109
+ font-size: 1rem /* 18px */;
110
+ line-height: 1.25rem /* 28px */;
111
+ }
112
+ }
113
+ &.ax-xl {
114
+ .ax-input {
115
+ // @apply ax-text-lg;
116
+ font-size: 1.125rem /* 18px */;
117
+ line-height: 1.75rem /* 28px */;
118
+ }
119
+ }
120
+
121
+ .ax-editor-control {
122
+ // @apply ax-flex ax-h-full ax-items-center ax-justify-center ax-ps-2 ax-text-lg ax-text-input-surface-fore;
123
+ display: flex;
124
+ height: 100%;
125
+ align-items: center;
126
+ justify-content: center;
127
+ padding-inline-start: 0.5rem /* 8px */;
128
+ font-size: 1.125rem /* 18px */;
129
+ line-height: 1.75rem /* 28px */;
130
+ font-size: 1.125rem /* 18px */;
131
+ line-height: 1.75rem /* 28px */;
132
+ color: rgba(var(--ax-color-input-surface-fore));
133
+ }
134
+
135
+ &.ax-button-icon {
136
+ // @apply ax-px-2;
137
+ padding-left: 0.5rem /* 8px */;
138
+ padding-right: 0.5rem /* 8px */;
139
+ }
140
+ .ax-input,
141
+ .ax-text-area {
142
+ text-align: inherit;
143
+ font-family: inherit;
144
+ font-size: inherit;
145
+ line-height: inherit;
146
+ height: 100%;
147
+ width: 100%;
148
+ flex: 1 1 0%;
149
+ background-color: transparent;
150
+ font-weight: 400;
151
+
152
+ // @apply ax-h-full ax-w-full ax-flex-1 ax-bg-transparent ax-font-normal;
153
+
154
+ &:focus {
155
+ // @apply ax-shadow-none;
156
+ box-shadow: none;
157
+ }
158
+ }
159
+
160
+ .ax-text-area {
161
+ // @apply ax-p-2.5;
162
+ padding: 0.625rem /* 10px */;
163
+ }
164
+ & > ax-prefix {
165
+ *,
166
+ .ax-button,
167
+ ax-title {
168
+ // @apply ax-rounded-es ax-rounded-ss;
169
+ border-end-start-radius: 0.25rem /* 4px */;
170
+ border-start-start-radius: 0.25rem /* 4px */;
171
+ }
172
+
173
+ ax-icon {
174
+ // @apply ax-px-3;
175
+ padding-left: 0.75rem /* 12px */;
176
+ padding-right: 0.75rem /* 12px */;
177
+ }
178
+ }
179
+
180
+ & > ax-suffix {
181
+ *,
182
+ .ax-button,
183
+ ax-title {
184
+ // @apply ax-rounded-ee ax-rounded-se;
185
+ border-end-end-radius: 0.25rem /* 4px */;
186
+ border-start-end-radius: 0.25rem /* 4px */;
187
+ }
188
+ ax-icon {
189
+ // @apply ax-pe-3;
190
+ // padding-inline-end: 0.75rem /* 12px */;
191
+ }
192
+ }
193
+
194
+ & > ax-prefix,
195
+ & > ax-suffix {
196
+ // @apply ax-h-full;
197
+ height: 100%;
198
+
199
+ + .ax-input {
200
+ // @apply ax-px-0.5 #{!important};
201
+ padding-left: 0.125rem !important;
202
+ padding-right: 0.125rem !important;
203
+ }
204
+ * {
205
+ // @apply ax-flex ax-h-full ax-items-center ax-justify-center ax-rounded-none;
206
+ display: flex;
207
+ height: 100%;
208
+ align-items: center;
209
+ justify-content: center;
210
+ border-radius: 0px;
211
+ }
212
+
213
+ ax-title {
214
+ // @apply ax-px-4;
215
+ padding-left: 1rem /* 16px */;
216
+ padding-right: 1rem /* 16px */;
217
+ }
218
+
219
+ & > ax-text {
220
+ // @apply ax-flex ax-items-center ax-justify-center ax-bg-transparent ax-px-2 ax-text-sm;
221
+ display: flex;
222
+ align-items: center;
223
+ justify-content: center;
224
+ background-color: transparent;
225
+ padding-left: 0.5rem /* 8px */;
226
+ padding-right: 0.5rem /* 8px */;
227
+ font-size: 0.875rem /* 14px */;
228
+ line-height: 1.25rem /* 20px */;
229
+ }
230
+ }
231
+
232
+ .ax-button {
233
+ // @apply ax-h-full ax-rounded-none #{!important};
234
+ height: 100% !important;
235
+ border-radius: 0px !important;
236
+
237
+ &.ax-button-icon {
238
+ // @apply ax-h-full ax-w-default;
239
+ height: 100%;
240
+ width: var(--ax-size-default);
241
+ }
242
+ }
243
+ }
244
+ .ax-ripple {
245
+ // @apply ax-absolute ax-rounded-full;
246
+ transform: scale(0);
247
+ animation: ripple 500ms linear;
248
+ position: absolute;
249
+ border-radius: 9999px !important;
250
+
251
+ @keyframes ripple {
252
+ to {
253
+ transform: scale(4);
254
+ opacity: 0;
255
+ }
256
+ }
257
+ }