@acorex/styles 21.0.0-next.16 → 21.0.0-next.17

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 (76) hide show
  1. package/base/_preflight.scss +421 -0
  2. package/base/index.scss +15 -0
  3. package/components/{_action-item.css → _action-item.scss} +37 -12
  4. package/components/{_actionsheet.css → _actionsheet.scss} +9 -13
  5. package/components/{_check-box.css → _check-box.scss} +24 -8
  6. package/components/{_drop-down.css → _drop-down.scss} +17 -18
  7. package/components/_editor-container.scss +293 -0
  8. package/components/{_general-button.css → _general-button.scss} +7 -3
  9. package/components/{_list.css → _list.scss} +56 -25
  10. package/components/_radio.scss +51 -0
  11. package/components/{_ripple.css → _ripple.scss} +8 -8
  12. package/components/{_table.css → _table.scss} +23 -20
  13. package/components/{_uploader.css → _uploader.scss} +5 -5
  14. package/components/index.scss +11 -0
  15. package/generators/index.js +1 -0
  16. package/generators/tailwind-class-generator.js +68 -0
  17. package/icons/fontawesome/_variables.scss +228 -0
  18. package/icons/fontawesome/index.scss +714 -0
  19. package/icons/huge/huge-bulk/_variables.scss +209 -0
  20. package/icons/huge/huge-bulk/index.scss +656 -0
  21. package/icons/huge/huge-duotone/_variables.scss +209 -0
  22. package/icons/huge/huge-duotone/index.scss +657 -0
  23. package/icons/huge/huge-solid-rounded/_variables.scss +209 -0
  24. package/icons/huge/huge-solid-rounded/index.scss +643 -0
  25. package/icons/huge/huge-solid-sharp/_variables.scss +209 -0
  26. package/icons/huge/huge-solid-sharp/index.scss +656 -0
  27. package/icons/huge/huge-solid-standard/_variables.scss +209 -0
  28. package/icons/huge/huge-solid-standard/index.scss +656 -0
  29. package/icons/huge/huge-stroke-rounded/_variables.scss +209 -0
  30. package/icons/huge/huge-stroke-rounded/index.scss +656 -0
  31. package/icons/huge/huge-stroke-sharp/_variables.scss +209 -0
  32. package/icons/huge/huge-stroke-sharp/index.scss +656 -0
  33. package/icons/huge/huge-stroke-standard/_variables.scss +209 -0
  34. package/icons/huge/huge-stroke-standard/index.scss +656 -0
  35. package/icons/huge/huge-twotone/_variables.scss +209 -0
  36. package/icons/huge/huge-twotone/index.scss +656 -0
  37. package/icons/material/_variables.scss +227 -0
  38. package/icons/material/index.scss +718 -0
  39. package/{index.css → index.scss} +3 -3
  40. package/mixins/_editor-looks.scss +32 -0
  41. package/mixins/_media.scss +73 -0
  42. package/mixins/_scroll-bar.scss +35 -0
  43. package/mixins/_util.scss +19 -0
  44. package/mixins/index.scss +4 -0
  45. package/package.json +4 -5
  46. package/tailwind-base.js +4 -0
  47. package/themes/{default copy.scss → default.scss} +9 -6
  48. package/utils/_theme-generator.scss +238 -0
  49. package/utils/_utils.scss +278 -0
  50. package/utils/index.scss +2 -0
  51. package/components/_editor-container.css +0 -306
  52. package/components/_radio.css +0 -33
  53. package/components/index.css +0 -11
  54. package/icons/fontawesome/_variables.css +0 -229
  55. package/icons/fontawesome/index.css +0 -555
  56. package/icons/huge/huge-bulk/_variables.css +0 -211
  57. package/icons/huge/huge-bulk/index.css +0 -520
  58. package/icons/huge/huge-duotone/_variables.css +0 -211
  59. package/icons/huge/huge-duotone/index.css +0 -517
  60. package/icons/huge/huge-solid-rounded/_variables.css +0 -211
  61. package/icons/huge/huge-solid-rounded/index.css +0 -504
  62. package/icons/huge/huge-solid-sharp/_variables.css +0 -213
  63. package/icons/huge/huge-solid-sharp/index.css +0 -517
  64. package/icons/huge/huge-solid-standard/_variables.css +0 -211
  65. package/icons/huge/huge-solid-standard/index.css +0 -516
  66. package/icons/huge/huge-stroke-rounded/_variables.css +0 -211
  67. package/icons/huge/huge-stroke-rounded/index.css +0 -515
  68. package/icons/huge/huge-stroke-sharp/_variables.css +0 -142
  69. package/icons/huge/huge-stroke-sharp/index.css +0 -515
  70. package/icons/huge/huge-stroke-standard/_variables.css +0 -141
  71. package/icons/huge/huge-stroke-standard/index.css +0 -515
  72. package/icons/huge/huge-twotone/_variables.css +0 -211
  73. package/icons/huge/huge-twotone/index.css +0 -516
  74. package/icons/material/_variables.css +0 -229
  75. package/icons/material/index.css +0 -573
  76. package/themes/default.css +0 -1240
@@ -0,0 +1,278 @@
1
+ @use 'sass:color';
2
+ @use 'sass:meta';
3
+ @use 'sass:math';
4
+ @use 'sass:map';
5
+
6
+ @function strip-rgba($color) {
7
+ @if meta.type-of($color) == 'color' {
8
+ $r: math.round(color.channel($color, 'red', rgb));
9
+ $g: math.round(color.channel($color, 'green', rgb));
10
+ $b: math.round(color.channel($color, 'blue', rgb));
11
+ @return $r, $g, $b;
12
+ }
13
+ @error "Invalid input: #{$color}. It must be a color.";
14
+ }
15
+
16
+ @mixin convert-to-rgb($variable-map) {
17
+ @each $key, $value in $variable-map {
18
+ --#{$key}: #{strip-rgba($value)};
19
+ }
20
+ }
21
+
22
+ // A helper function to clamp a value between $min and $max.
23
+ // Renamed to avoid conflict with the built-in `clamp()` function.
24
+ @function clamp-value($value, $min, $max) {
25
+ @return max($min, min($value, $max));
26
+ }
27
+
28
+ // Gamma correction for converting linear sRGB to sRGB.
29
+ // Uses the piecewise function:
30
+ // if (channel <= 0.0031308) then sRGB = 12.92 * channel
31
+ // else sRGB = 1.055 * (channel^(1/2.4)) - 0.055
32
+ @function gamma-correct($channel) {
33
+ @if $channel <= 0.0031308 {
34
+ @return 12.92 * $channel;
35
+ } @else {
36
+ @return 1.055 * math.pow($channel, 1/2.4) - 0.055;
37
+ }
38
+ }
39
+
40
+ // Converts an Oklch value to an rgba() color.
41
+ // The input can be either:
42
+ // • a color (e.g. one produced by `oklch()`), or
43
+ // • a list of numbers: (L, C, H) or (L, C, H, alpha)
44
+ // In the first case, the built-in color channels are used via `color.channel()`.
45
+ // In the second, a manual conversion is performed.
46
+ @function oklch-to-rgba($color) {
47
+ // If the input is a color, extract its components using the new API.
48
+ @if meta.type-of($color) == 'color' {
49
+ $r: round(color.channel($color, 'red', $space: rgb));
50
+ $g: round(color.channel($color, 'green', $space: rgb));
51
+ $b: round(color.channel($color, 'blue', $space: rgb));
52
+ $a: color.channel($color, 'alpha', $space: rgb);
53
+ @return rgba($r, $g, $b, $a);
54
+ }
55
+ // Otherwise, if the input is a list with at least 3 elements, assume it's (L, C, H, [alpha]).
56
+ @else if type-of($color) == 'list' {
57
+ @if length($color) >= 3 {
58
+ $l: nth($color, 1);
59
+ $c: nth($color, 2);
60
+ $h: nth($color, 3);
61
+ $alpha: if(length($color) >= 4, nth($color, 4), 1);
62
+
63
+ // Convert hue from degrees to radians.
64
+ $h_rad: $h * math.pi() / 180;
65
+
66
+ // Convert from Oklch to OKLab.
67
+ $a: $c * math.cos($h_rad);
68
+ $b: $c * math.sin($h_rad);
69
+
70
+ // Compute intermediate OKLab values.
71
+ $l_oklab: $l;
72
+ $l_: $l_oklab + 0.3963377774 * $a + 0.2158037573 * $b;
73
+ $m_: $l_oklab - 0.1055613458 * $a - 0.0638541728 * $b;
74
+ $s_: $l_oklab - 0.0894841775 * $a - 1.291485548 * $b;
75
+
76
+ // Cube the intermediate values.
77
+ $l_cube: $l_ * $l_ * $l_;
78
+ $m_cube: $m_ * $m_ * $m_;
79
+ $s_cube: $s_ * $s_ * $s_;
80
+
81
+ // Convert OKLab (cubed) to linear sRGB.
82
+ $r_linear: 4.0767416621 * $l_cube - 3.3077115913 * $m_cube + 0.2309699292 * $s_cube;
83
+ $g_linear: -1.2684380046 * $l_cube + 2.6097574011 * $m_cube - 0.3413193965 * $s_cube;
84
+ $b_linear: -0.0041960863 * $l_cube - 0.7034186147 * $m_cube + 1.707614701 * $s_cube;
85
+
86
+ // Gamma correction.
87
+ $r: gamma-correct($r_linear);
88
+ $g: gamma-correct($g_linear);
89
+ $b: gamma-correct($b_linear);
90
+
91
+ // Clamp the sRGB values to the 0–1 range.
92
+ $r: clamp-value($r, 0, 1);
93
+ $g: clamp-value($g, 0, 1);
94
+ $b: clamp-value($b, 0, 1);
95
+
96
+ // Convert the 0–1 values to 0–255 integers.
97
+ $r_int: round($r * 255);
98
+ $g_int: round($g * 255);
99
+ $b_int: round($b * 255);
100
+
101
+ @return rgba($r_int, $g_int, $b_int, $alpha);
102
+ } @else {
103
+ @error "Invalid input for oklch-to-rgba: list must have at least 3 elements.";
104
+ }
105
+ } @else {
106
+ @error "Invalid input for oklch-to-rgba: expected a color or a list of numbers.";
107
+ }
108
+ }
109
+
110
+ @function shift-dark-mode-color($color, $lightness: 20%, $saturation: 10%) {
111
+ // Convert the color to HSL
112
+ $hsl: hsl(hue($color), saturation($color), lightness($color));
113
+
114
+ // Check if the color is already dark (lightness < 40%)
115
+ @if lightness($hsl) < 40% {
116
+ // If the color is dark, adjust it slightly or leave it unchanged
117
+ @return $color; // Or adjust slightly, e.g., darken($color, 5%);
118
+ } @else {
119
+ // If the color is light, darken it
120
+ $new-lightness: max(0%, lightness($hsl) - $lightness); // Ensure lightness doesn't go below 0%
121
+ $new-saturation: min(100%, saturation($hsl) + $saturation); // Ensure saturation doesn't exceed 100%
122
+ @return hsl(hue($hsl), $new-saturation, $new-lightness);
123
+ }
124
+ }
125
+
126
+ // Function to calculate text color based on surface color
127
+ @function lightness-calc($hue) {
128
+ @if ($hue <= 80) {
129
+ @return 0.06 * $hue + 75;
130
+ }
131
+ @if ($hue < 270) {
132
+ @return -0.07 * $hue + 85.82;
133
+ }
134
+ @return 0.09 * $hue + 42.6;
135
+ }
136
+ @function is-dark-on-surface($lightness, $hue, $is-dark) {
137
+ @if ($is-dark) {
138
+ @return $lightness >= math.div(lightness-calc(math.div($hue, 1deg)) - 15, 100);
139
+ } @else {
140
+ @return $lightness >= math.div(lightness-calc(math.div($hue, 1deg)), 100);
141
+ }
142
+ }
143
+
144
+ @function contrast-text($color, $is-dark: false) {
145
+ $hue: color.channel($color, 'hue', $space: oklch);
146
+ $chroma: color.channel($color, 'chroma', $space: oklch);
147
+ $lightness: color.channel($color, 'lightness', $space: oklch);
148
+ $lightness: math.div($lightness, 100%);
149
+ $l: null;
150
+ @if ($is-dark) {
151
+ @if (is-dark-on-surface($lightness, $hue, true)) {
152
+ $l: 0.2;
153
+ } @else {
154
+ $l: 0.995;
155
+ }
156
+ } @else {
157
+ @if (is-dark-on-surface($lightness, $hue, false)) {
158
+ $l: 0.3;
159
+ } @else {
160
+ $l: 0.995;
161
+ }
162
+ }
163
+ $oklch-color: oklch($l $chroma $hue);
164
+ @return color.to-gamut($oklch-color, $space: rgb, $method: local-minde);
165
+ }
166
+
167
+ @function border-color($color, $is-dark) {
168
+ @if $is-dark {
169
+ // Dark theme: lightening the border color for contrast
170
+ @return color.adjust($color, $lightness: 9%);
171
+ } @else {
172
+ // Light theme: darkening the border color for contrast
173
+ @return color.adjust($color, $lightness: -7%);
174
+ }
175
+ }
176
+
177
+ @function light-palette-generator($color) {
178
+ $shades: (
179
+ 50: 40,
180
+ 100: 90,
181
+ 200: 160,
182
+ 300: 270,
183
+ 400: 410,
184
+ 500: 500,
185
+ 600: 590,
186
+ 700: 700,
187
+ 800: 790,
188
+ 900: 860,
189
+ 950: 1060,
190
+ );
191
+ $palette: ();
192
+ $hue: color.channel($color, 'hue', $space: oklch);
193
+ $chroma: color.channel($color, 'chroma', $space: oklch);
194
+ $lightness: color.channel($color, 'lightness', $space: oklch);
195
+ $lightness: math.div($lightness, 100%);
196
+ @if ($color) {
197
+ @each $name, $shade in $shades {
198
+ $l: null;
199
+ @if (meta.type-of($shade) == number) {
200
+ @if ($shade <= 500) {
201
+ $l: math.div((-$shade + $shade * $lightness + 500), 500);
202
+ } @else {
203
+ $l: (1 - math.div(($shade - 500), 500)) * ($lightness - 0.3) + 0.3;
204
+ }
205
+ $palette: map.set($palette, $name, $l);
206
+ }
207
+ $oklch-color: oklch((map.get($palette, $name) * 100%) $chroma $hue);
208
+ $gamut-oklch: color.to-gamut($oklch-color, $space: rgb, $method: local-minde);
209
+ @if ($name==950) {
210
+ $gamut-oklch: color.scale($gamut-oklch, $chroma: -50%, $space: oklch);
211
+ }
212
+ @if ($name==900) {
213
+ $gamut-oklch: color.scale($gamut-oklch, $chroma: -33%, $space: oklch);
214
+ }
215
+ @if ($name==800) {
216
+ $gamut-oklch: color.scale($gamut-oklch, $chroma: -8%, $space: oklch);
217
+ }
218
+ $palette: map.set($palette, $name, $gamut-oklch);
219
+ }
220
+ }
221
+ @return $palette;
222
+ }
223
+
224
+ @function dark-palette-generator($color) {
225
+ $shades: (
226
+ 50: 50,
227
+ 100: 100,
228
+ 200: 200,
229
+ 300: 300,
230
+ 400: 400,
231
+ 500: 500,
232
+ 600: 600,
233
+ 700: 700,
234
+ 800: 800,
235
+ 900: 900,
236
+ 950: 950,
237
+ );
238
+ $palette: ();
239
+ $hue: color.channel($color, 'hue', $space: oklch);
240
+ $chroma: color.channel($color, 'chroma', $space: oklch);
241
+ $lightness: color.channel($color, 'lightness', $space: oklch);
242
+ $lightness: math.div($lightness, 100%);
243
+ @each $name, $shade in $shades {
244
+ $l: null;
245
+ @if (meta.type-of($shade) == number) {
246
+ @if ($shade <= 700) {
247
+ $l: math.div((-$shade + $shade * $lightness + 700), 700);
248
+ } @else {
249
+ $l: (1 - math.div(($shade - 700), 700)) * ($lightness - 0.3) + 0.3;
250
+ }
251
+ $palette: map.set($palette, $name, $l);
252
+ }
253
+ $oklch-color: oklch((map.get($palette, $name) * 100%) $chroma $hue);
254
+ $gamut-oklch: color.to-gamut($oklch-color, $space: rgb, $method: local-minde);
255
+ $palette: map.set($palette, $name, $gamut-oklch);
256
+ }
257
+ @return $palette;
258
+ }
259
+
260
+ @function generate-color-ranges-variables($name, $color, $is-dark: false) {
261
+ $colors: ();
262
+ $light-shades: (50, 100, 200, 300, 400);
263
+ $dark-shades: (600, 700, 800, 900, 950);
264
+ @if ($color) {
265
+ @if $is-dark {
266
+ $palette: dark-palette-generator($color);
267
+ @each $shade, $color in $palette {
268
+ $colors: map.merge($colors, (ax-sys-color-#{$name}-#{$shade}: $color));
269
+ }
270
+ } @else {
271
+ $palette: light-palette-generator($color);
272
+ @each $shade, $color in $palette {
273
+ $colors: map.merge($colors, (ax-sys-color-#{$name}-#{$shade}: $color));
274
+ }
275
+ }
276
+ }
277
+ @return $colors;
278
+ }
@@ -0,0 +1,2 @@
1
+ @forward './theme-generator';
2
+ @forward './utils';
@@ -1,306 +0,0 @@
1
- :root,
2
- .ax-editor-container {
3
- --ax-comp-editor-font-size: 0.875rem;
4
- --ax-comp-editor-gap: 0.5rem;
5
- --ax-comp-editor-space-start-size: 0.5rem;
6
- --ax-comp-editor-space-end-size: 0.5rem;
7
- --ax-comp-editor-space-block-size: 0.5rem;
8
- --ax-comp-editor-height: var(--ax-sys-size-base);
9
- --ax-comp-editor-placeholder-space-x: 0.75rem;
10
- --ax-comp-editor-error-bg-color: var(--ax-sys-color-danger-light-surface);
11
- --ax-comp-editor-error-text-color: var(--ax-sys-color-danger-surface);
12
- --ax-comp-editor-error-border-color: var(--ax-sys-color-border-danger-surface);
13
- --ax-comp-editor-error-box-shadow-color: var(--ax-sys-color-danger-surface);
14
- --ax-comp-editor-text-color: var(--ax-sys-color-on-surface);
15
- --ax-comp-editor-border-color: var(--ax-sys-color-border-surface);
16
- --ax-comp-editor-border-radius: var(--ax-sys-border-radius);
17
- --ax-comp-editor-box-outline-width: 1px;
18
- --ax-comp-editor-box-outline-color: var(--ax-sys-color-primary-surface);
19
- --ax-comp-editor-placeholder-opacity: 0.5;
20
- --ax-comp-editor-focused-border-color: var(--ax-sys-color-border-primary-surface);
21
- --ax-comp-editor-focused-box-shadow-color: var(--ax-sys-color-primary-surface);
22
- --ax-comp-editor-border-width: 0px;
23
- }
24
-
25
- .ax-editor-container {
26
- display: flex;
27
- align-items: center;
28
- overflow: hidden;
29
- width: 100%;
30
- height: var(--ax-comp-editor-height);
31
- font-size: var(--ax-comp-editor-font-size);
32
- border-radius: var(--ax-comp-editor-border-radius);
33
- border-width: var(--ax-comp-editor-border-width);
34
- border-color: rgba(var(--ax-comp-editor-border-color));
35
- background-color: rgba(var(--ax-comp-editor-bg-color));
36
- color: rgba(var(--ax-comp-editor-text-color));
37
- position: relative;
38
- gap: var(--ax-comp-editor-gap);
39
- padding-inline-end: var(--ax-comp-editor-space-end-size);
40
- padding-inline-start: var(--ax-comp-editor-space-start-size);
41
- justify-content: space-between;
42
- }
43
-
44
- .ax-editor-container .ax-icon {
45
- font-size: var(--ax-comp-editor-icon-font-size);
46
- }
47
-
48
- .ax-editor-container:has(> ax-prefix) {
49
- padding-inline-start: 0;
50
- }
51
-
52
- .ax-editor-container:has(> ax-prefix) > ax-prefix:has(ax-button, .ax-editor-container) {
53
- --ax-comp-editor-space-start-size: 0px;
54
- }
55
-
56
- .ax-editor-container:has(> ax-prefix) > ax-prefix {
57
- padding-inline-start: var(--ax-comp-editor-space-start-size);
58
- }
59
-
60
- .ax-editor-container:has(> ax-suffix) {
61
- padding-inline-end: 0;
62
- }
63
-
64
- .ax-editor-container:has(> ax-suffix) > ax-suffix:has(ax-button, .ax-editor-container) {
65
- --ax-comp-editor-space-end-size: 0px;
66
- }
67
-
68
- .ax-editor-container:has(> ax-suffix) > ax-suffix {
69
- padding-inline-end: var(--ax-comp-editor-space-end-size);
70
- }
71
-
72
- .ax-editor-container:not(.ax-state-disabled):focus-within {
73
- border-color: rgba(var(--ax-comp-editor-focused-border-color));
74
- outline-width: var(--ax-comp-editor-box-outline-width);
75
- outline-style: solid;
76
- outline-color: rgba(var(--ax-comp-editor-focused-border-color));
77
- }
78
-
79
- .ax-editor-container.ax-state-error {
80
- border-color: rgba(var(--ax-comp-editor-error-border-color));
81
- outline-width: var(--ax-comp-editor-box-outline-width);
82
- outline-color: rgba(var(--ax-comp-editor-error-border-color));
83
- outline-style: solid;
84
- }
85
-
86
- .ax-editor-container.ax-state-error:focus-within {
87
- border-color: rgba(var(--ax-comp-editor-error-border-color));
88
- }
89
-
90
- .ax-editor-container.ax-state-error .ax-input .ax-placeholder,
91
- .ax-editor-container.ax-state-error .ax-input::placeholder {
92
- color: rgba(var(--ax-comp-editor-error-text-color), var(--ax-comp-editor-placeholder-opacity));
93
- }
94
-
95
- .ax-editor-container.ax-solid {
96
- --ax-comp-editor-bg-color: var(--ax-sys-color-lightest-surface);
97
- --ax-comp-editor-border-width: 1px;
98
- }
99
-
100
- .ax-editor-container.ax-outline {
101
- --ax-comp-editor-bg-color: 0, 0, 0, 0;
102
- --ax-comp-editor-border-width: 1px;
103
- }
104
-
105
- .ax-editor-container.ax-flat {
106
- --ax-comp-editor-border-width: 2px;
107
- --ax-comp-editor-border-radius: 0px;
108
- --ax-comp-editor-box-outline-width: 0px;
109
- border-width: 0px !important;
110
- border-bottom-width: var(--ax-comp-editor-border-width) !important;
111
- }
112
-
113
- .ax-editor-container.ax-fill {
114
- --ax-comp-editor-box-outline-width: 2px;
115
- --ax-comp-editor-border-width: 0px;
116
- --ax-comp-editor-bg-color: var(--ax-sys-color-surface);
117
- --ax-comp-editor-text-color: var(--ax-sys-color-on-lighter-surface);
118
- --ax-comp-editor-border-color: var(--ax-sys-color-border-lighter-surface);
119
- }
120
-
121
- .ax-editor-container.ax-none {
122
- --ax-comp-editor-border-radius: 0px;
123
- --ax-comp-editor-box-outline-width: 0px;
124
- --ax-comp-editor-border-width: 0px;
125
- --ax-comp-editor-bg-color: 0, 0, 0, 0;
126
- --ax-comp-editor-border-color: 0, 0, 0, 0;
127
- --ax-comp-editor-text-color: var(--ax-sys-color-on-lighter-surface);
128
- }
129
-
130
- .ax-editor-container .ax-editor-input {
131
- height: 100%;
132
- flex: 1 1 0%;
133
- }
134
-
135
- .ax-editor-container .ax-editor-input .ax-input {
136
- height: 100%;
137
- }
138
-
139
- .ax-editor-container .ax-input {
140
- font-size: var(--ax-comp-editor-font-size);
141
- line-height: var(--ax-comp-editor-font-size);
142
- color: rgba(var(--ax-comp-editor-text-color));
143
- cursor: inherit;
144
- }
145
-
146
- .ax-editor-container .ax-input .ax-placeholder,
147
- .ax-editor-container .ax-input::placeholder {
148
- font-size: inherit;
149
- font-weight: 400;
150
- color: rgb(var(--ax-comp-editor-text-color), var(--ax-comp-editor-placeholder-opacity));
151
- }
152
-
153
- .ax-editor-container .ax-input:focus,
154
- .ax-editor-container .ax-input:focus-visible,
155
- .ax-editor-container .ax-input:focus-within {
156
- outline: none;
157
- }
158
-
159
- .ax-editor-container.ax-state-disabled {
160
- opacity: 0.5;
161
- cursor: not-allowed;
162
- }
163
-
164
- .ax-editor-container .ax-editor-control {
165
- display: flex;
166
- height: 100%;
167
- align-items: center;
168
- justify-content: center;
169
- padding-inline-start: 0.5rem;
170
- font-size: 1.125rem;
171
- line-height: 1.75rem;
172
- color: rgba(var(--ax-comp-editor-text-color));
173
- }
174
-
175
- .ax-editor-container.ax-button-icon {
176
- padding: 0 0.5rem;
177
- }
178
-
179
- .ax-editor-container .ax-input,
180
- .ax-editor-container .ax-text-area {
181
- text-align: inherit;
182
- font-family: inherit;
183
- font-size: inherit;
184
- line-height: inherit;
185
- height: 100%;
186
- width: 100%;
187
- flex: 1 1 0%;
188
- background-color: transparent;
189
- font-weight: inherit;
190
- }
191
-
192
- .ax-editor-container .ax-input:focus,
193
- .ax-editor-container .ax-text-area:focus {
194
- box-shadow: none;
195
- }
196
-
197
- .ax-editor-container .ax-editor-button {
198
- font-size: var(--ax-comp-editor-button-font-size, var(--ax-comp-editor-font-size));
199
- height: var(--ax-comp-editor-button-height, 100%);
200
- display: flex;
201
- align-items: center;
202
- justify-content: center;
203
- min-width: 1.5rem;
204
- }
205
-
206
- .ax-editor-container > ax-prefix,
207
- .ax-editor-container > ax-suffix {
208
- height: 100%;
209
- max-width: fit-content;
210
- }
211
-
212
- .ax-editor-container > ax-prefix ax-button,
213
- .ax-editor-container > ax-prefix ax-text,
214
- .ax-editor-container > ax-prefix ax-icon,
215
- .ax-editor-container > ax-prefix .ax-editor-container,
216
- .ax-editor-container > ax-suffix ax-button,
217
- .ax-editor-container > ax-suffix ax-text,
218
- .ax-editor-container > ax-suffix ax-icon,
219
- .ax-editor-container > ax-suffix .ax-editor-container {
220
- display: flex;
221
- height: 100%;
222
- align-items: center;
223
- justify-content: center;
224
- border-radius: 0px;
225
- }
226
-
227
- .ax-editor-container > ax-prefix ax-title,
228
- .ax-editor-container > ax-suffix ax-title {
229
- padding-left: 1rem;
230
- padding-right: 1rem;
231
- }
232
-
233
- .ax-editor-container > ax-prefix > ax-text,
234
- .ax-editor-container > ax-suffix > ax-text {
235
- display: flex;
236
- align-items: center;
237
- justify-content: center;
238
- }
239
-
240
- .ax-editor-container .ax-button {
241
- height: 100% !important;
242
- border-radius: 0px !important;
243
- }
244
-
245
- .ax-editor-container .ax-button.ax-button-icon {
246
- height: 100%;
247
- width: var(--ax-comp-editor-height);
248
- }
249
-
250
- .ax-editor-container ax-popover {
251
- position: absolute;
252
- }
253
-
254
- .ax-xs .ax-editor-container,
255
- .ax-editor-container.ax-xs {
256
- --ax-comp-editor-font-size: 0.75rem;
257
- --ax-comp-editor-space-start-size: 0.25rem;
258
- --ax-comp-editor-space-end-size: 0.25rem;
259
- --ax-comp-editor-button-font-size: 0.625rem;
260
- --ax-comp-editor-gap: 0.25rem;
261
- --ax-comp-editor-icon-font-size: 0.75rem;
262
- }
263
-
264
- .ax-sm .ax-editor-container,
265
- .ax-editor-container.ax-sm {
266
- --ax-comp-editor-font-size: 0.875rem;
267
- --ax-comp-editor-space-start-size: 0.5rem;
268
- --ax-comp-editor-space-end-size: 0.5rem;
269
- --ax-comp-editor-button-font-size: 0.75rem;
270
- --ax-comp-editor-gap: 0.375rem;
271
- --ax-comp-editor-icon-font-size: 0.875rem;
272
- }
273
-
274
- .ax-md .ax-editor-container,
275
- .ax-editor-container,
276
- .ax-editor-container.ax-md {
277
- --ax-comp-editor-space-start-size: 0.75rem;
278
- --ax-comp-editor-space-end-size: 0.75rem;
279
- --ax-comp-editor-button-font-size: 0.875rem;
280
- --ax-comp-editor-gap: 0.5rem;
281
- --ax-comp-editor-icon-font-size: 1rem;
282
- }
283
-
284
- .ax-lg .ax-editor-container,
285
- .ax-editor-container.ax-lg {
286
- --ax-comp-editor-font-size: 1.125rem;
287
- --ax-comp-editor-space-start-size: 1.125rem;
288
- --ax-comp-editor-space-end-size: 1.125rem;
289
- --ax-comp-editor-button-font-size: 0.875rem;
290
- --ax-comp-editor-gap: 0.625rem;
291
- --ax-comp-editor-icon-font-size: 1.25rem;
292
- }
293
-
294
- .ax-xl .ax-editor-container,
295
- .ax-editor-container.ax-xl {
296
- --ax-comp-editor-font-size: 1.5rem;
297
- --ax-comp-editor-space-start-size: 1.5rem;
298
- --ax-comp-editor-space-end-size: 1.5rem;
299
- --ax-comp-editor-button-font-size: 1rem;
300
- --ax-comp-editor-gap: 0.75rem;
301
- --ax-comp-editor-icon-font-size: 1.5rem;
302
- }
303
-
304
- ax-validation-rule {
305
- position: absolute;
306
- }
@@ -1,33 +0,0 @@
1
- .ax-radio {
2
- margin: 0px;
3
- height: 1rem;
4
- min-height: 1rem;
5
- min-width: 1rem;
6
- width: 1rem;
7
- cursor: pointer;
8
- appearance: none;
9
- border-radius: 9999px;
10
- border-width: 1px;
11
- border-color: rgba(var(--ax-sys-color-border-surface));
12
- background-color: rgba(var(--ax-sys-color-input-surface));
13
- vertical-align: middle;
14
- outline: 2px solid transparent;
15
- outline-offset: 2px;
16
- &:checked {
17
- border-color: rgba(var(--ax-sys-color-primary-500)) !important;
18
- background-color: rgba(var(--ax-sys-color-primary-500)) !important;
19
- background-size: contain;
20
- background-repeat: no-repeat;
21
- }
22
- &:checked {
23
- 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");
24
- }
25
- &:focus-visible,
26
- &:focus {
27
- box-shadow: 0px 0px 0px 2px rgba(var(--ax-sys-color-surface)), 0px 0px 0px 4px rgba(var(--ax-sys-color-primary-500));
28
- }
29
- &:disabled {
30
- cursor: not-allowed;
31
- opacity: 0.5;
32
- }
33
- }
@@ -1,11 +0,0 @@
1
- @import './_action-item.css';
2
- @import './_actionsheet.css';
3
- @import './_check-box.css';
4
- @import './_drop-down.css';
5
- @import './_editor-container.css';
6
- @import './_general-button.css';
7
- @import './_list.css';
8
- @import './_radio.css';
9
- @import './_ripple.css';
10
- @import './_table.css';
11
- @import './_uploader.css';