@acorex/styles 7.23.2 → 7.23.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.
@@ -1,87 +1,87 @@
1
- .ax-general-button {
2
- // @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/75;
3
- display: inline-flex;
4
- height: var(--ax-size-default);
5
- cursor: pointer;
6
- align-items: center;
7
- justify-content: center;
8
- border-radius: var(--ax-rounded-border-default);
9
- padding-left: 1rem /* 16px */;
10
- padding-right: 1rem /* 16px */;
11
- font-size: 0.875rem /* 14px */;
12
- line-height: 1.25rem /* 20px */;
13
- color: rgb(var(--ax-color-text-default), 0.75);
14
-
15
- &:hover {
16
- &:not(&:disabled, .ax-state-disabled) {
17
- // @apply ax-text-primary-500;
18
- color: rgba(var(--ax-color-primary-500), var(--tw-text-opacity));
19
- }
20
- }
21
-
22
- &:focus,
23
- &:focus-visible {
24
- &:not(&:disabled, .ax-state-disabled) {
25
- // @apply ax-text-primary-700;
26
- color: rgba(var(--ax-color-primary-700), var(--tw-text-opacity));
27
- }
28
- }
29
-
30
- &:active {
31
- &:not(&:disabled, .ax-state-disabled) {
32
- // @apply ax-text-primary-300;
33
- color: rgba(var(--ax-color-primary-300), var(--tw-text-opacity));
34
- }
35
- }
36
-
37
- &.ax-button-icon {
38
- // @apply ax-px-2 ax-text-lg;
39
- padding-left: 0.5rem /* 8px */;
40
- padding-right: 0.5rem /* 8px */;
41
- > button {
42
- // @apply ax-flex;
43
- display: flex;
44
- }
45
- }
46
- &.ax-button-rounded {
47
- // @apply ax-rounded-default;
48
- border-radius: var(--ax-rounded-border-default);
49
- }
50
- &:disabled,
51
- &.ax-state-disabled {
52
- // @apply ax-cursor-not-allowed ax-opacity-50;
53
- cursor: not-allowed;
54
- opacity: 0.5;
55
- }
56
- }
57
- .ax-clear-button {
58
- // @apply ax-inline-flex ax-h-default ax-items-center ax-justify-center ax-px-3 ax-text-base ax-leading-none ax-text-default/75;
59
- display: inline-flex;
60
- height: var(--ax-size-default);
61
- align-items: center;
62
- justify-content: center;
63
- margin-left: 0.25rem;
64
- margin-right: 0.25rem;
65
- font-size: 1rem /* 16px */;
66
- line-height: 1.5rem /* 24px */;
67
- line-height: 1;
68
- color: rgb(var(--ax-color-text-default), 0.75);
69
-
70
- > button {
71
- // @apply ax-flex;
72
- display: flex;
73
- }
74
- &:hover {
75
- &:not(&:disabled, .ax-state-disabled) {
76
- // @apply ax-text-default/50;
77
- color: rgb(var(--ax-color-text-default), 0.5);
78
- }
79
- }
80
- &:focus,
81
- &:focus-visible {
82
- &:not(&:disabled, .ax-state-disabled) {
83
- // @apply ax-text-default;
84
- color: rgb(var(--ax-color-text-default));
85
- }
86
- }
87
- }
1
+ .ax-general-button {
2
+ // @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/75;
3
+ display: inline-flex;
4
+ height: var(--ax-size-default);
5
+ cursor: pointer;
6
+ align-items: center;
7
+ justify-content: center;
8
+ border-radius: var(--ax-rounded-border-default);
9
+ padding-left: 1rem /* 16px */;
10
+ padding-right: 1rem /* 16px */;
11
+ font-size: 0.875rem /* 14px */;
12
+ line-height: 1.25rem /* 20px */;
13
+ color: rgb(var(--ax-color-text-default), 0.75);
14
+
15
+ &:hover {
16
+ &:not(&:disabled, .ax-state-disabled) {
17
+ // @apply ax-text-primary-500;
18
+ color: rgba(var(--ax-color-primary-500), var(--tw-text-opacity));
19
+ }
20
+ }
21
+
22
+ &:focus,
23
+ &:focus-visible {
24
+ &:not(&:disabled, .ax-state-disabled) {
25
+ // @apply ax-text-primary-700;
26
+ color: rgba(var(--ax-color-primary-700), var(--tw-text-opacity));
27
+ }
28
+ }
29
+
30
+ &:active {
31
+ &:not(&:disabled, .ax-state-disabled) {
32
+ // @apply ax-text-primary-300;
33
+ color: rgba(var(--ax-color-primary-300), var(--tw-text-opacity));
34
+ }
35
+ }
36
+
37
+ &.ax-button-icon {
38
+ // @apply ax-px-2 ax-text-lg;
39
+ padding-left: 0.5rem /* 8px */;
40
+ padding-right: 0.5rem /* 8px */;
41
+ > button {
42
+ // @apply ax-flex;
43
+ display: flex;
44
+ }
45
+ }
46
+ &.ax-button-rounded {
47
+ // @apply ax-rounded-default;
48
+ border-radius: var(--ax-rounded-border-default);
49
+ }
50
+ &:disabled,
51
+ &.ax-state-disabled {
52
+ // @apply ax-cursor-not-allowed ax-opacity-50;
53
+ cursor: not-allowed;
54
+ opacity: 0.5;
55
+ }
56
+ }
57
+ .ax-clear-button {
58
+ // @apply ax-inline-flex ax-h-default ax-items-center ax-justify-center ax-px-3 ax-text-base ax-leading-none ax-text-default/75;
59
+ display: inline-flex;
60
+ height: var(--ax-size-default);
61
+ align-items: center;
62
+ justify-content: center;
63
+ margin-left: 0.25rem;
64
+ margin-right: 0.25rem;
65
+ font-size: 1rem /* 16px */;
66
+ line-height: 1.5rem /* 24px */;
67
+ line-height: 1;
68
+ color: rgb(var(--ax-color-text-default), 0.75);
69
+
70
+ > button {
71
+ // @apply ax-flex;
72
+ display: flex;
73
+ }
74
+ &:hover {
75
+ &:not(&:disabled, .ax-state-disabled) {
76
+ // @apply ax-text-default/50;
77
+ color: rgb(var(--ax-color-text-default), 0.5);
78
+ }
79
+ }
80
+ &:focus,
81
+ &:focus-visible {
82
+ &:not(&:disabled, .ax-state-disabled) {
83
+ // @apply ax-text-default;
84
+ color: rgb(var(--ax-color-text-default));
85
+ }
86
+ }
87
+ }
@@ -1,16 +1,16 @@
1
- .ax-input {
2
- // @apply ax-p-0 ax-outline-0;
3
- font-size: inherit;
4
- padding: 0px;
5
- outline-width: 0px;
6
-
7
- &:focus {
8
- // @apply ax-outline-transparent;
9
- outline-color: transparent;
10
- }
11
- // &.ax-state-disabled {
12
- // // @apply ax-cursor-not-allowed ax-opacity-50;
13
- // cursor: not-allowed;
14
- // opacity: 0.5;
15
- // }
16
- }
1
+ .ax-input {
2
+ // @apply ax-p-0 ax-outline-0;
3
+ font-size: inherit;
4
+ padding: 0px;
5
+ outline-width: 0px;
6
+
7
+ &:focus {
8
+ // @apply ax-outline-transparent;
9
+ outline-color: transparent;
10
+ }
11
+ // &.ax-state-disabled {
12
+ // // @apply ax-cursor-not-allowed ax-opacity-50;
13
+ // cursor: not-allowed;
14
+ // opacity: 0.5;
15
+ // }
16
+ }
@@ -1,211 +1,211 @@
1
- @import '../mixins/index.scss';
2
- @include darkMode() {
3
- .ax-list-item {
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;
8
-
9
- .ax-selected-icon {
10
- // @apply ax-text-primary-fore;
11
- color: rgba(var(--ax-color-primary-fore));
12
- }
13
- }
14
- }
15
- }
16
- .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
- display: flex;
19
- height: 100%;
20
- flex-direction: column;
21
- overflow: hidden;
22
- background-color: rgba(var(--ax-color-surface));
23
- font-size: 0.875rem /* 14px */;
24
- line-height: 1.25rem /* 20px */;
25
- @media (min-width: 768px) {
26
- max-height: 20rem /* 320px */;
27
- }
28
- ax-header,
29
- ax-footer {
30
- // @apply ax-flex ax-items-center ax-justify-between ax-border-default ax-bg-surface;
31
- display: flex;
32
- align-items: center;
33
- justify-content: space-between;
34
- border-color: rgba(
35
- var(--ax-color-border-default),
36
- var(--tw-border-opacity)
37
- );
38
- background-color: rgba(var(--ax-color-surface), var(--tw-bg-opacity));
39
- }
40
- ax-header {
41
- // @apply ax-border-b ax-border-default ax-p-4 ax-text-base ax-font-medium md:ax-text-lg;
42
- border-bottom-width: 1px;
43
- border-color: rgba(
44
- var(--ax-color-border-default),
45
- var(--tw-border-opacity)
46
- );
47
- padding: 1rem /* 16px */;
48
- font-size: 1rem /* 16px */;
49
- line-height: 1.5rem /* 24px */;
50
- font-weight: 500;
51
- @media (min-width: 768px) {
52
- font-size: 1.125rem /* 18px */;
53
- line-height: 1.75rem /* 28px */;
54
- }
55
- ax-prefix,
56
- ax-suffix {
57
- // @apply ax-flex ax-flex-col ax-justify-items-start;
58
- display: flex;
59
- flex-direction: column;
60
- justify-items: start;
61
- }
62
- ax-prefix {
63
- // @apply ax-items-start;
64
- align-items: flex-start;
65
- }
66
- ax-suffix {
67
- // @apply ax-items-end;
68
- align-items: flex-end;
69
- }
70
- }
71
-
72
- ax-footer {
73
- // @apply ax-border-t;
74
- border-top-width: 1px;
75
- }
76
-
77
- .ax-content {
78
- // @apply ax-flex-1 ax-overflow-y-auto ax-overflow-x-hidden;
79
- flex: 1 1 0%;
80
- overflow-y: auto;
81
- overflow-x: hidden;
82
-
83
- &.ax-list-items-container {
84
- // @apply ax-h-full ax-overflow-y-auto ax-py-2;
85
- height: 100%;
86
- overflow-y: auto;
87
- padding-top: 0.5rem /* 8px */;
88
- padding-bottom: 0.5rem /* 8px */;
89
-
90
- &.ax-vertical {
91
- // @apply ax-grid ax-grid-cols-1;
92
- display: grid;
93
- grid-template-columns: repeat(1, minmax(0, 1fr));
94
-
95
- &.ax-divide {
96
- // @apply ax-border-y;
97
- border-top-width: 1px;
98
- border-bottom-width: 1px;
99
- }
100
- }
101
-
102
- &.ax-default {
103
- // @apply ax-cursor-pointer;
104
- cursor: pointer;
105
-
106
- .ax-list-item-group {
107
- & > span {
108
- // @apply ax-flex ax-items-center ax-p-3 ax-font-medium;
109
- display: flex;
110
- align-items: center;
111
- padding: 0.75rem /* 12px */;
112
- font-weight: 500;
113
- }
114
-
115
- & > ul {
116
- // @apply ax-px-3;
117
- padding-left: 0.75rem /* 12px */;
118
- padding-right: 0.75rem /* 12px */;
119
- }
120
- .ax-list-item {
121
- // @apply ax-mb-1 ax-rounded-default;
122
- margin-bottom: 0.25rem /* 4px */;
123
- border-radius: var(--ax-rounded-border-default);
124
- }
125
- }
126
-
127
- .ax-list-item {
128
- // @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;
129
- position: relative;
130
- display: flex;
131
- height: var(--ax-size-default);
132
- user-select: none;
133
- align-items: center;
134
- justify-content: space-between;
135
- padding-inline-end: 1rem /* 16px */;
136
- padding-inline-start: 0.75rem /* 12px */;
137
- font-size: 1rem /* 16px */;
138
- line-height: 1.5rem /* 24px */;
139
- &:focus,
140
- &:focus-visible {
141
- // @apply ax-outline-2 ax-outline-offset-2;
142
- outline-width: 2px;
143
- outline-offset: 2px;
144
- }
145
- &.ax-state-checkbox {
146
- .ax-checkbox-label {
147
- // @apply ax-ms-2;
148
- margin-inline-start: 0.5rem /* 8px */;
149
- }
150
- }
151
- &.ax-state-selected {
152
- // @apply ax-bg-primary-500 ax-text-primary-fore #{!important};
153
- background-color: rgba(
154
- var(--ax-color-primary-500),
155
- var(--tw-bg-opacity)
156
- ) !important;
157
- color: rgba(
158
- var(--ax-color-primary-fore),
159
- var(--tw-text-opacity)
160
- ) !important;
161
-
162
- .ax-selected-icon {
163
- // @apply ax-text-2xl ax-text-primary-500;
164
- font-size: 1.5rem /* 24px */;
165
- line-height: 2rem /* 32px */;
166
- color: rgba(var(--ax-color-primary-500));
167
- }
168
- }
169
-
170
- // &:not(.ax-check-box) {
171
- // &.ax-state-selected {
172
- // }
173
- // }
174
-
175
- &.ax-state-disabled {
176
- // @apply ax-cursor-not-allowed ax-opacity-50;
177
- cursor: not-allowed;
178
- opacity: 0.5;
179
- }
180
-
181
- &:focus-visible,
182
- &:hover {
183
- // @apply ax-bg-on-surface;
184
- background-color: rgba(var(--ax-color-on-surface));
185
- }
186
- &.ax-state-focus {
187
- // @apply ax-bg-on-surface;
188
- background-color: rgba(var(--ax-color-on-surface));
189
- }
190
- }
191
- }
192
-
193
- .ax-list-loading-container {
194
- // @apply ax-flex ax-justify-center ax-p-2;
195
- display: flex;
196
- justify-content: center;
197
- padding: 0.5rem /* 8px */;
198
- }
199
- }
200
- }
201
-
202
- .ax-search-box-container {
203
- // @apply ax-p-2;
204
- padding: 0.5rem /* 8px */;
205
-
206
- &.ax-state-hidden {
207
- // @apply ax-hidden;
208
- display: none;
209
- }
210
- }
211
- }
1
+ @import '../mixins/index.scss';
2
+ @include darkMode() {
3
+ .ax-list-item {
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;
8
+
9
+ .ax-selected-icon {
10
+ // @apply ax-text-primary-fore;
11
+ color: rgba(var(--ax-color-primary-fore));
12
+ }
13
+ }
14
+ }
15
+ }
16
+ .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
+ display: flex;
19
+ height: 100%;
20
+ flex-direction: column;
21
+ overflow: hidden;
22
+ background-color: rgba(var(--ax-color-surface));
23
+ font-size: 0.875rem /* 14px */;
24
+ line-height: 1.25rem /* 20px */;
25
+ @media (min-width: 768px) {
26
+ max-height: 20rem /* 320px */;
27
+ }
28
+ ax-header,
29
+ ax-footer {
30
+ // @apply ax-flex ax-items-center ax-justify-between ax-border-default ax-bg-surface;
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: space-between;
34
+ border-color: rgba(
35
+ var(--ax-color-border-default),
36
+ var(--tw-border-opacity)
37
+ );
38
+ background-color: rgba(var(--ax-color-surface), var(--tw-bg-opacity));
39
+ }
40
+ ax-header {
41
+ // @apply ax-border-b ax-border-default ax-p-4 ax-text-base ax-font-medium md:ax-text-lg;
42
+ border-bottom-width: 1px;
43
+ border-color: rgba(
44
+ var(--ax-color-border-default),
45
+ var(--tw-border-opacity)
46
+ );
47
+ padding: 1rem /* 16px */;
48
+ font-size: 1rem /* 16px */;
49
+ line-height: 1.5rem /* 24px */;
50
+ font-weight: 500;
51
+ @media (min-width: 768px) {
52
+ font-size: 1.125rem /* 18px */;
53
+ line-height: 1.75rem /* 28px */;
54
+ }
55
+ ax-prefix,
56
+ ax-suffix {
57
+ // @apply ax-flex ax-flex-col ax-justify-items-start;
58
+ display: flex;
59
+ flex-direction: column;
60
+ justify-items: start;
61
+ }
62
+ ax-prefix {
63
+ // @apply ax-items-start;
64
+ align-items: flex-start;
65
+ }
66
+ ax-suffix {
67
+ // @apply ax-items-end;
68
+ align-items: flex-end;
69
+ }
70
+ }
71
+
72
+ ax-footer {
73
+ // @apply ax-border-t;
74
+ border-top-width: 1px;
75
+ }
76
+
77
+ .ax-content {
78
+ // @apply ax-flex-1 ax-overflow-y-auto ax-overflow-x-hidden;
79
+ flex: 1 1 0%;
80
+ overflow-y: auto;
81
+ overflow-x: hidden;
82
+
83
+ &.ax-list-items-container {
84
+ // @apply ax-h-full ax-overflow-y-auto ax-py-2;
85
+ height: 100%;
86
+ overflow-y: auto;
87
+ padding-top: 0.5rem /* 8px */;
88
+ padding-bottom: 0.5rem /* 8px */;
89
+
90
+ &.ax-vertical {
91
+ // @apply ax-grid ax-grid-cols-1;
92
+ display: grid;
93
+ grid-template-columns: repeat(1, minmax(0, 1fr));
94
+
95
+ &.ax-divide {
96
+ // @apply ax-border-y;
97
+ border-top-width: 1px;
98
+ border-bottom-width: 1px;
99
+ }
100
+ }
101
+
102
+ &.ax-default {
103
+ // @apply ax-cursor-pointer;
104
+ cursor: pointer;
105
+
106
+ .ax-list-item-group {
107
+ & > span {
108
+ // @apply ax-flex ax-items-center ax-p-3 ax-font-medium;
109
+ display: flex;
110
+ align-items: center;
111
+ padding: 0.75rem /* 12px */;
112
+ font-weight: 500;
113
+ }
114
+
115
+ & > ul {
116
+ // @apply ax-px-3;
117
+ padding-left: 0.75rem /* 12px */;
118
+ padding-right: 0.75rem /* 12px */;
119
+ }
120
+ .ax-list-item {
121
+ // @apply ax-mb-1 ax-rounded-default;
122
+ margin-bottom: 0.25rem /* 4px */;
123
+ border-radius: var(--ax-rounded-border-default);
124
+ }
125
+ }
126
+
127
+ .ax-list-item {
128
+ // @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;
129
+ position: relative;
130
+ display: flex;
131
+ height: var(--ax-size-default);
132
+ user-select: none;
133
+ align-items: center;
134
+ justify-content: space-between;
135
+ padding-inline-end: 1rem /* 16px */;
136
+ padding-inline-start: 0.75rem /* 12px */;
137
+ font-size: 1rem /* 16px */;
138
+ line-height: 1.5rem /* 24px */;
139
+ &:focus,
140
+ &:focus-visible {
141
+ // @apply ax-outline-2 ax-outline-offset-2;
142
+ outline-width: 2px;
143
+ outline-offset: 2px;
144
+ }
145
+ &.ax-state-checkbox {
146
+ .ax-checkbox-label {
147
+ // @apply ax-ms-2;
148
+ margin-inline-start: 0.5rem /* 8px */;
149
+ }
150
+ }
151
+ &.ax-state-selected {
152
+ // @apply ax-bg-primary-500 ax-text-primary-fore #{!important};
153
+ background-color: rgba(
154
+ var(--ax-color-primary-500),
155
+ var(--tw-bg-opacity)
156
+ ) !important;
157
+ color: rgba(
158
+ var(--ax-color-primary-fore),
159
+ var(--tw-text-opacity)
160
+ ) !important;
161
+
162
+ .ax-selected-icon {
163
+ // @apply ax-text-2xl ax-text-primary-500;
164
+ font-size: 1.5rem /* 24px */;
165
+ line-height: 2rem /* 32px */;
166
+ color: rgba(var(--ax-color-primary-500));
167
+ }
168
+ }
169
+
170
+ // &:not(.ax-check-box) {
171
+ // &.ax-state-selected {
172
+ // }
173
+ // }
174
+
175
+ &.ax-state-disabled {
176
+ // @apply ax-cursor-not-allowed ax-opacity-50;
177
+ cursor: not-allowed;
178
+ opacity: 0.5;
179
+ }
180
+
181
+ &:focus-visible,
182
+ &:hover {
183
+ // @apply ax-bg-on-surface;
184
+ background-color: rgba(var(--ax-color-on-surface));
185
+ }
186
+ &.ax-state-focus {
187
+ // @apply ax-bg-on-surface;
188
+ background-color: rgba(var(--ax-color-on-surface));
189
+ }
190
+ }
191
+ }
192
+
193
+ .ax-list-loading-container {
194
+ // @apply ax-flex ax-justify-center ax-p-2;
195
+ display: flex;
196
+ justify-content: center;
197
+ padding: 0.5rem /* 8px */;
198
+ }
199
+ }
200
+ }
201
+
202
+ .ax-search-box-container {
203
+ // @apply ax-p-2;
204
+ padding: 0.5rem /* 8px */;
205
+
206
+ &.ax-state-hidden {
207
+ // @apply ax-hidden;
208
+ display: none;
209
+ }
210
+ }
211
+ }