@acorex/styles 16.0.2 → 17.0.1

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 (81) hide show
  1. package/icons/fontawesome/fontawesome.scss +68 -0
  2. package/icons/index.scss +207 -0
  3. package/icons/material/material.scss +73 -0
  4. package/index.css +2623 -0
  5. package/index.min.css +1 -0
  6. package/index.scss +9 -0
  7. package/package.json +11 -11
  8. package/src/base/_preflight.scss +417 -0
  9. package/src/base/index.scss +13 -0
  10. package/src/mixins/_look.scss +83 -0
  11. package/src/mixins/_media.scss +27 -0
  12. package/src/mixins/_util.scss +19 -0
  13. package/src/mixins/index.scss +3 -0
  14. package/src/shared/_actionsheet.scss +23 -0
  15. package/src/shared/_check-box.scss +59 -0
  16. package/src/shared/_color-look.scss +689 -0
  17. package/src/shared/_drop-down.scss +76 -0
  18. package/src/shared/_editor-container.scss +257 -0
  19. package/src/shared/_general-button.scss +87 -0
  20. package/src/shared/_inputs.scss +16 -0
  21. package/src/shared/_list.scss +211 -0
  22. package/src/shared/_radio.scss +56 -0
  23. package/src/shared/_table.scss +149 -0
  24. package/src/shared/_utils.scss +75 -0
  25. package/src/shared/index.scss +11 -0
  26. package/src/utility/index.scss +24 -0
  27. package/src/variables/_colors.scss +2 -0
  28. package/src/variables/_degrees.scss +1 -0
  29. package/src/variables/index.scss +2 -0
  30. package/tailwind-base.js +235 -0
  31. package/themes/default.css +1 -0
  32. package/themes/default.scss +141 -0
  33. package/fonts/font-awesome/fa-brands-400.eot +0 -0
  34. package/fonts/font-awesome/fa-brands-400.svg +0 -3570
  35. package/fonts/font-awesome/fa-brands-400.ttf +0 -0
  36. package/fonts/font-awesome/fa-brands-400.woff +0 -0
  37. package/fonts/font-awesome/fa-brands-400.woff2 +0 -0
  38. package/fonts/font-awesome/fa-duotone-900.eot +0 -0
  39. package/fonts/font-awesome/fa-duotone-900.svg +0 -15055
  40. package/fonts/font-awesome/fa-duotone-900.ttf +0 -0
  41. package/fonts/font-awesome/fa-duotone-900.woff +0 -0
  42. package/fonts/font-awesome/fa-duotone-900.woff2 +0 -0
  43. package/fonts/font-awesome/fa-light-300.eot +0 -0
  44. package/fonts/font-awesome/fa-light-300.svg +0 -12330
  45. package/fonts/font-awesome/fa-light-300.ttf +0 -0
  46. package/fonts/font-awesome/fa-light-300.woff +0 -0
  47. package/fonts/font-awesome/fa-light-300.woff2 +0 -0
  48. package/fonts/font-awesome/fa-regular-400.eot +0 -0
  49. package/fonts/font-awesome/fa-regular-400.svg +0 -11256
  50. package/fonts/font-awesome/fa-regular-400.ttf +0 -0
  51. package/fonts/font-awesome/fa-regular-400.woff +0 -0
  52. package/fonts/font-awesome/fa-regular-400.woff2 +0 -0
  53. package/fonts/font-awesome/fa-solid-900.eot +0 -0
  54. package/fonts/font-awesome/fa-solid-900.svg +0 -9588
  55. package/fonts/font-awesome/fa-solid-900.ttf +0 -0
  56. package/fonts/font-awesome/fa-solid-900.woff +0 -0
  57. package/fonts/font-awesome/fa-solid-900.woff2 +0 -0
  58. package/fonts/font-awesome/font-awesome.css +0 -16960
  59. package/scss/buttons.scss +0 -69
  60. package/scss/calendar.scss +0 -144
  61. package/scss/checkbox.scss +0 -46
  62. package/scss/context-menu.scss +0 -75
  63. package/scss/data-grid.scss +0 -117
  64. package/scss/drawer.scss +0 -138
  65. package/scss/fieldset.scss +0 -23
  66. package/scss/forms.scss +0 -523
  67. package/scss/list.scss +0 -47
  68. package/scss/master.scss +0 -330
  69. package/scss/menu.scss +0 -130
  70. package/scss/mixin.scss +0 -12
  71. package/scss/page.scss +0 -54
  72. package/scss/progress.scss +0 -11
  73. package/scss/selection-list.scss +0 -104
  74. package/scss/style.scss +0 -47
  75. package/scss/tab-strip.scss +0 -31
  76. package/scss/tab.scss +0 -36
  77. package/scss/toast.scss +0 -46
  78. package/scss/tooltip.scss +0 -55
  79. package/scss/treeview.scss +0 -152
  80. package/scss/upload.scss +0 -170
  81. package/scss/variables.scss +0 -139
@@ -0,0 +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
+ }
@@ -0,0 +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.375rem !important;
202
+ padding-right: 0.375rem !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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +1,56 @@
1
+ @import '../mixins/index.scss';
2
+
3
+ .ax-radio {
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
+ margin: 0px;
6
+ height: 1rem /* 16px */;
7
+ min-height: 1rem /* 16px */;
8
+ min-width: 1rem /* 16px */;
9
+ width: 1rem /* 16px */;
10
+ cursor: pointer;
11
+ appearance: none;
12
+ border-radius: 9999px /* 4px */;
13
+ border-width: 1px;
14
+ border-color: rgba(var(--ax-color-border-default));
15
+ background-color: rgba(var(--ax-color-input-surface));
16
+ vertical-align: middle;
17
+ outline: 2px solid transparent;
18
+ outline-offset: 2px;
19
+
20
+ &:checked {
21
+ // @apply ax-border-primary-500 ax-bg-primary-500 #{!important};
22
+ border-color: rgba(var(--ax-color-primary-500)) !important;
23
+ background-color: rgba(var(--ax-color-primary-500)) !important;
24
+ background-size: contain;
25
+ background-repeat: no-repeat;
26
+
27
+ // @apply ax-bg-contain ax-bg-no-repeat;
28
+ }
29
+
30
+ &:checked {
31
+ 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");
32
+ }
33
+
34
+ &:focus-visible,
35
+ &:focus {
36
+ // @apply ax-ring-2 ax-ring-primary-500 ax-ring-offset-2 ax-ring-offset-surface;
37
+ box-shadow: 0px 0px 0px 2px rgba(var(--ax-color-surface)),
38
+ 0px 0px 0px 4px rgba(var(--ax-color-primary-500));
39
+ }
40
+
41
+ &:disabled {
42
+ // @apply ax-cursor-not-allowed ax-opacity-50;
43
+ cursor: not-allowed;
44
+ opacity: 0.5;
45
+ }
46
+ }
47
+
48
+ // @include darkMode() {
49
+ // .ax-checkbox {
50
+ // &:checked {
51
+ // border-color: rgba(var(--ax-color-primary-200)) !important;
52
+ // background-color: rgba(var(--ax-color-primary-200)) !important;
53
+ // 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");
54
+ // }
55
+ // }
56
+ // }