@acorex/styles 21.0.1-next.91 → 21.0.1-next.92
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.
- package/base/_preflight.scss +421 -0
- package/base/index.scss +15 -0
- package/components/{_action-item.css → _action-item.scss} +37 -12
- package/components/{_actionsheet.css → _actionsheet.scss} +8 -15
- package/components/{_check-box.css → _check-box.scss} +24 -8
- package/components/{_drop-down.css → _drop-down.scss} +17 -12
- package/components/_editor-container.scss +293 -0
- package/components/_general-button.scss +75 -0
- package/components/{_list.css → _list.scss} +56 -25
- package/components/_radio.scss +51 -0
- package/components/{_ripple.css → _ripple.scss} +8 -8
- package/components/{_table.css → _table.scss} +23 -20
- package/components/{_uploader.css → _uploader.scss} +20 -1
- package/components/index.scss +11 -0
- package/generators/index.js +1 -0
- package/generators/tailwind-class-generator.js +68 -0
- package/icons/fontawesome/_variables.scss +227 -0
- package/icons/fontawesome/index.scss +714 -0
- package/icons/huge/huge-bulk/_variables.scss +209 -0
- package/icons/huge/huge-bulk/index.scss +656 -0
- package/icons/huge/huge-duotone/_variables.scss +209 -0
- package/icons/huge/huge-duotone/index.scss +657 -0
- package/icons/huge/huge-solid-rounded/_variables.scss +209 -0
- package/icons/huge/huge-solid-rounded/index.scss +643 -0
- package/icons/huge/huge-solid-sharp/_variables.scss +209 -0
- package/icons/huge/huge-solid-sharp/index.scss +656 -0
- package/icons/huge/huge-solid-standard/_variables.scss +209 -0
- package/icons/huge/huge-solid-standard/index.scss +656 -0
- package/icons/huge/huge-stroke-rounded/_variables.scss +209 -0
- package/icons/huge/huge-stroke-rounded/index.scss +656 -0
- package/icons/huge/huge-stroke-sharp/_variables.scss +209 -0
- package/icons/huge/huge-stroke-sharp/index.scss +656 -0
- package/icons/huge/huge-stroke-standard/_variables.scss +209 -0
- package/icons/huge/huge-stroke-standard/index.scss +656 -0
- package/icons/huge/huge-twotone/_variables.scss +209 -0
- package/icons/huge/huge-twotone/index.scss +656 -0
- package/icons/material/_variables.scss +227 -0
- package/icons/material/index.scss +718 -0
- package/index.scss +7 -0
- package/mixins/_editor-looks.scss +32 -0
- package/mixins/_media.scss +73 -0
- package/mixins/_scroll-bar.scss +35 -0
- package/mixins/_util.scss +19 -0
- package/mixins/index.scss +4 -0
- package/package.json +4 -7
- package/tailwind-base.js +4 -0
- package/themes/default.scss +74 -0
- package/utils/_theme-generator.scss +238 -0
- package/utils/_utils.scss +278 -0
- package/utils/index.scss +2 -0
- package/variables/_colors.scss +14 -0
- package/variables/_looks.scss +1 -0
- package/variables/index.scss +2 -0
- package/components/_editor-container.css +0 -48
- package/components/_general-button.css +0 -62
- package/components/_radio.css +0 -33
- package/components/index.css +0 -11
- package/icons/fontawesome/_variables.css +0 -229
- package/icons/fontawesome/index.css +0 -557
- package/icons/huge/huge-bulk/_variables.css +0 -211
- package/icons/huge/huge-bulk/index.css +0 -522
- package/icons/huge/huge-duotone/_variables.css +0 -211
- package/icons/huge/huge-duotone/index.css +0 -519
- package/icons/huge/huge-solid-rounded/_variables.css +0 -211
- package/icons/huge/huge-solid-rounded/index.css +0 -519
- package/icons/huge/huge-solid-sharp/_variables.css +0 -213
- package/icons/huge/huge-solid-sharp/index.css +0 -519
- package/icons/huge/huge-solid-standard/_variables.css +0 -211
- package/icons/huge/huge-solid-standard/index.css +0 -518
- package/icons/huge/huge-stroke-rounded/_variables.css +0 -211
- package/icons/huge/huge-stroke-rounded/index.css +0 -517
- package/icons/huge/huge-stroke-sharp/_variables.css +0 -142
- package/icons/huge/huge-stroke-sharp/index.css +0 -517
- package/icons/huge/huge-stroke-standard/_variables.css +0 -141
- package/icons/huge/huge-stroke-standard/index.css +0 -517
- package/icons/huge/huge-twotone/_variables.css +0 -211
- package/icons/huge/huge-twotone/index.css +0 -518
- package/icons/material/_variables.css +0 -229
- package/icons/material/index.css +0 -575
- package/index.css +0 -2
- package/themes/default.css +0 -3340
|
@@ -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
|
+
}
|
package/utils/index.scss
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
$theme-colors: (
|
|
2
|
+
'primary': #3b82f6,
|
|
3
|
+
'secondary': #64748b,
|
|
4
|
+
'success': #22c55e,
|
|
5
|
+
'warning': #f59e0b,
|
|
6
|
+
'danger': #f43f5e,
|
|
7
|
+
'accent1': null,
|
|
8
|
+
'accent2': null,
|
|
9
|
+
'accent3': null,
|
|
10
|
+
'accent4': null,
|
|
11
|
+
'accent5': null,
|
|
12
|
+
'accent6': null,
|
|
13
|
+
'accent7': null,
|
|
14
|
+
) !default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$theme-looks: 'solid', 'outline', 'twotone', 'blank', 'link' !default;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
@import '../themes/default.css';
|
|
2
|
-
|
|
3
|
-
@layer base {
|
|
4
|
-
.ax-editor-container {
|
|
5
|
-
@apply h-9 min-h-9 px-3 py-3 text-sm;
|
|
6
|
-
.ax-content {
|
|
7
|
-
@apply text-sm;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.ax-editor-container {
|
|
12
|
-
@apply rounded-default relative flex h-9 min-h-9 items-center justify-between overflow-hidden px-3 py-3 text-sm leading-5;
|
|
13
|
-
|
|
14
|
-
.ax-editor-container {
|
|
15
|
-
@apply p-0;
|
|
16
|
-
.ax-input,
|
|
17
|
-
.ax-editor {
|
|
18
|
-
@apply p-0;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ax-input,
|
|
23
|
-
.ax-editor {
|
|
24
|
-
font-size: inherit;
|
|
25
|
-
|
|
26
|
-
@apply w-full flex-1 py-2 outline-0 outline-transparent placeholder:opacity-50;
|
|
27
|
-
}
|
|
28
|
-
.ax-placeholder {
|
|
29
|
-
@apply opacity-50;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&.ax-state-error {
|
|
33
|
-
@apply border-danger-600! focus-within:ring-danger-600/30!;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&:has(.ax-general-button-control, .ax-general-button-icon) {
|
|
37
|
-
@apply pe-1;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
ax-prefix,
|
|
41
|
-
ax-suffix {
|
|
42
|
-
@apply flex items-center gap-2;
|
|
43
|
-
}
|
|
44
|
-
ax-prefix {
|
|
45
|
-
@apply pe-2;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
@import '../themes/default.css';
|
|
2
|
-
|
|
3
|
-
@layer base {
|
|
4
|
-
.ax-general-button,
|
|
5
|
-
.ax-general-button-icon {
|
|
6
|
-
@apply rounded-default inline-flex cursor-pointer items-center justify-center transition select-none;
|
|
7
|
-
@apply disabled:cursor-not-allowed disabled:opacity-50;
|
|
8
|
-
@apply text-text-default/50 hover:text-text-default/70;
|
|
9
|
-
@apply hover:bg-bg-default/10;
|
|
10
|
-
@apply focus-visible:ring-primary/30 focus-visible:ring-3 focus-visible:outline-none;
|
|
11
|
-
* {
|
|
12
|
-
@apply cursor-[inherit];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.ax-general-button {
|
|
17
|
-
@apply px-2 py-1 text-sm;
|
|
18
|
-
|
|
19
|
-
&.ax-xs {
|
|
20
|
-
@apply p-1.5 text-xs;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&.ax-sm {
|
|
24
|
-
@apply p-2 text-sm;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&.ax-md {
|
|
28
|
-
@apply p-2 text-sm;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&.ax-lg {
|
|
32
|
-
@apply p-2.5 text-lg;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&.ax-xl {
|
|
36
|
-
@apply p-2.5 text-xl;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
.ax-general-button-icon {
|
|
40
|
-
@apply size-6 px-2 py-1 text-sm;
|
|
41
|
-
|
|
42
|
-
&.ax-xs {
|
|
43
|
-
@apply size-5 p-1.5 text-xs;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.ax-sm {
|
|
47
|
-
@apply size-6 p-2 text-sm;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&.ax-md {
|
|
51
|
-
@apply size-6 p-2 text-sm;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.ax-lg {
|
|
55
|
-
@apply size-8 p-2.5 text-lg;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&.ax-xl {
|
|
59
|
-
@apply size-9 p-2.5 text-xl;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
package/components/_radio.css
DELETED
|
@@ -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
|
-
}
|
package/components/index.css
DELETED
|
@@ -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';
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--ax-icon-more-horizontal: '\f141';
|
|
3
|
-
--ax-icon-more-horizontal-after: '';
|
|
4
|
-
|
|
5
|
-
--ax-icon-more-vertical: '\f142';
|
|
6
|
-
--ax-icon-more-vertical-after: '';
|
|
7
|
-
|
|
8
|
-
--ax-icon-arrow-long-up: '\f176';
|
|
9
|
-
--ax-icon-arrow-long-up-after: '';
|
|
10
|
-
|
|
11
|
-
--ax-icon-arrow-long-down: '\f175';
|
|
12
|
-
--ax-icon-arrow-long-down-after: '';
|
|
13
|
-
|
|
14
|
-
--ax-icon-color-palette: '\f53f';
|
|
15
|
-
--ax-icon-color-palette-after: '';
|
|
16
|
-
|
|
17
|
-
--ax-icon-arrow-left: '\f0d9';
|
|
18
|
-
--ax-icon-arrow-left-after: '';
|
|
19
|
-
|
|
20
|
-
--ax-icon-arrow-down: '\f0d7';
|
|
21
|
-
--ax-icon-arrow-down-after: '';
|
|
22
|
-
|
|
23
|
-
--ax-icon-arrow-up: '\f0d8';
|
|
24
|
-
--ax-icon-arrow-up-after: '';
|
|
25
|
-
|
|
26
|
-
--ax-icon-arrow-right: '\f0da';
|
|
27
|
-
--ax-icon-arrow-right-after: '';
|
|
28
|
-
|
|
29
|
-
--ax-icon-chevron-left: '\f053';
|
|
30
|
-
--ax-icon-chevron-left-after: '';
|
|
31
|
-
|
|
32
|
-
--ax-icon-chevron-down: '\f078';
|
|
33
|
-
--ax-icon-chevron-down-after: '';
|
|
34
|
-
|
|
35
|
-
--ax-icon-chevron-up: '\f077';
|
|
36
|
-
--ax-icon-chevron-up-after: '';
|
|
37
|
-
|
|
38
|
-
--ax-icon-chevron-right: '\f054';
|
|
39
|
-
--ax-icon-chevron-right-after: '';
|
|
40
|
-
|
|
41
|
-
--ax-icon-chevron-double-right: '\f324';
|
|
42
|
-
--ax-icon-chevron-double-right-after: '';
|
|
43
|
-
|
|
44
|
-
--ax-icon-chevron-double-left: '\f323';
|
|
45
|
-
--ax-icon-chevron-double-left-after: '';
|
|
46
|
-
|
|
47
|
-
--ax-icon-first-page: '\f33e';
|
|
48
|
-
--ax-icon-first-page-after: '';
|
|
49
|
-
|
|
50
|
-
--ax-icon-last-page: '\f340';
|
|
51
|
-
--ax-icon-last-page-after: '';
|
|
52
|
-
|
|
53
|
-
--ax-icon-calendar: '\f133';
|
|
54
|
-
--ax-icon-calendar-after: '';
|
|
55
|
-
|
|
56
|
-
--ax-icon-info: '\f05a';
|
|
57
|
-
--ax-icon-info-after: '';
|
|
58
|
-
|
|
59
|
-
--ax-icon-error: '\f06a';
|
|
60
|
-
--ax-icon-error-after: '';
|
|
61
|
-
|
|
62
|
-
--ax-icon-warning: '\f071';
|
|
63
|
-
--ax-icon-warning-after: '';
|
|
64
|
-
|
|
65
|
-
--ax-icon-check: '\f00c';
|
|
66
|
-
--ax-icon-check-after: '';
|
|
67
|
-
|
|
68
|
-
--ax-icon-check-circle: '\f058';
|
|
69
|
-
--ax-icon-check-circle-after: '';
|
|
70
|
-
|
|
71
|
-
--ax-icon-dobble-check: '\f560';
|
|
72
|
-
--ax-icon-dobble-check-after: '';
|
|
73
|
-
|
|
74
|
-
--ax-icon-close: '\f00d';
|
|
75
|
-
--ax-icon-close-after: '';
|
|
76
|
-
|
|
77
|
-
--ax-icon-clear: '\f057';
|
|
78
|
-
--ax-icon-clear-after: '';
|
|
79
|
-
|
|
80
|
-
--ax-icon-visibility-off: '\f070';
|
|
81
|
-
--ax-icon-visibility-off-after: '';
|
|
82
|
-
|
|
83
|
-
--ax-icon-visibility: '\f06e';
|
|
84
|
-
--ax-icon-visibility-after: '';
|
|
85
|
-
|
|
86
|
-
--ax-icon-unfold-more: '\f0dc';
|
|
87
|
-
--ax-icon-unfold-more-after: '';
|
|
88
|
-
|
|
89
|
-
--ax-icon-download: '\f019';
|
|
90
|
-
--ax-icon-download-after: '';
|
|
91
|
-
|
|
92
|
-
--ax-icon-upload: '\e09a';
|
|
93
|
-
--ax-icon-upload-after: '';
|
|
94
|
-
|
|
95
|
-
--ax-icon-search: '\f002';
|
|
96
|
-
--ax-icon-search-after: '';
|
|
97
|
-
|
|
98
|
-
--ax-icon-copy: '\f0c5';
|
|
99
|
-
--ax-icon-copy-after: '';
|
|
100
|
-
|
|
101
|
-
--ax-icon-refresh: '\f021';
|
|
102
|
-
--ax-icon-refresh-after: '';
|
|
103
|
-
|
|
104
|
-
--ax-icon-inbox: '\f01c';
|
|
105
|
-
--ax-icon-inbox-after: '';
|
|
106
|
-
|
|
107
|
-
--ax-icon-emoji: '\f118';
|
|
108
|
-
--ax-icon-emoji-after: '';
|
|
109
|
-
|
|
110
|
-
--ax-icon-attach: '\f0c6';
|
|
111
|
-
--ax-icon-attach-after: '';
|
|
112
|
-
|
|
113
|
-
--ax-icon-mic: '\f130';
|
|
114
|
-
--ax-icon-mic-after: '';
|
|
115
|
-
|
|
116
|
-
--ax-icon-send: '\f1d8';
|
|
117
|
-
--ax-icon-send-after: '';
|
|
118
|
-
|
|
119
|
-
--ax-icon-play: '\f04b';
|
|
120
|
-
--ax-icon-play-after: '';
|
|
121
|
-
|
|
122
|
-
--ax-icon-pause: '\f04c';
|
|
123
|
-
--ax-icon-pause-after: '';
|
|
124
|
-
|
|
125
|
-
--ax-icon-reload: '\f2f9';
|
|
126
|
-
--ax-icon-reload-after: '';
|
|
127
|
-
|
|
128
|
-
--ax-icon-heart: '\f004';
|
|
129
|
-
--ax-icon-heart-after: '';
|
|
130
|
-
|
|
131
|
-
--ax-icon-comment: '\f075';
|
|
132
|
-
--ax-icon-comment-after: '';
|
|
133
|
-
|
|
134
|
-
--ax-icon-bold: '\f032';
|
|
135
|
-
--ax-icon-bold-after: '';
|
|
136
|
-
|
|
137
|
-
--ax-icon-italic: '\f033';
|
|
138
|
-
--ax-icon-italic-after: '';
|
|
139
|
-
|
|
140
|
-
--ax-icon-strike: '\f0cc';
|
|
141
|
-
--ax-icon-strike-after: '';
|
|
142
|
-
|
|
143
|
-
--ax-icon-under-line: '\f0cd';
|
|
144
|
-
--ax-icon-under-line-after: '';
|
|
145
|
-
|
|
146
|
-
--ax-icon-order-list: '\f0cb';
|
|
147
|
-
--ax-icon-order-list-after: '';
|
|
148
|
-
|
|
149
|
-
--ax-icon-un-order-list: '\f0ca';
|
|
150
|
-
--ax-icon-un-order-list-after: '';
|
|
151
|
-
|
|
152
|
-
--ax-icon-align-left: '\f036';
|
|
153
|
-
--ax-icon-align-left-after: '';
|
|
154
|
-
|
|
155
|
-
--ax-icon-align-right: '\f038';
|
|
156
|
-
--ax-icon-align-right-after: '';
|
|
157
|
-
|
|
158
|
-
--ax-icon-align-center: '\f037';
|
|
159
|
-
--ax-icon-align-center-after: '';
|
|
160
|
-
|
|
161
|
-
--ax-icon-align-justify: '\f039';
|
|
162
|
-
--ax-icon-align-justify-after: '';
|
|
163
|
-
|
|
164
|
-
--ax-icon-undo: '\f0e2';
|
|
165
|
-
--ax-icon-undo-after: '';
|
|
166
|
-
|
|
167
|
-
--ax-icon-redo: '\f01e';
|
|
168
|
-
--ax-icon-redo-after: '';
|
|
169
|
-
|
|
170
|
-
--ax-icon-highlight: '\f591';
|
|
171
|
-
--ax-icon-highlight-after: '';
|
|
172
|
-
|
|
173
|
-
--ax-icon-link: '\f0c1';
|
|
174
|
-
--ax-icon-link-after: '';
|
|
175
|
-
|
|
176
|
-
--ax-icon-image: '\f03e';
|
|
177
|
-
--ax-icon-image-after: '';
|
|
178
|
-
|
|
179
|
-
--ax-icon-pen: '\f304';
|
|
180
|
-
--ax-icon-pen-after: '';
|
|
181
|
-
|
|
182
|
-
--ax-icon-eraser: '\f12d';
|
|
183
|
-
--ax-icon-eraser-after: '';
|
|
184
|
-
|
|
185
|
-
--ax-icon-pen-ruler: '\f5ae';
|
|
186
|
-
--ax-icon-pen-ruler-after: '';
|
|
187
|
-
|
|
188
|
-
--ax-icon-crop: '\f125';
|
|
189
|
-
--ax-icon-crop-after: '';
|
|
190
|
-
|
|
191
|
-
--ax-icon-full-screen: '\f065';
|
|
192
|
-
--ax-icon-full-screen-after: '';
|
|
193
|
-
|
|
194
|
-
--ax-icon-up-folder: '\e632';
|
|
195
|
-
--ax-icon-up-folder-after: '';
|
|
196
|
-
|
|
197
|
-
--ax-icon-sort: '\e0ae';
|
|
198
|
-
--ax-icon-sort-after: '';
|
|
199
|
-
|
|
200
|
-
--ax-icon-menu: '\f0c9';
|
|
201
|
-
--ax-icon-menu-after: '';
|
|
202
|
-
|
|
203
|
-
--ax-icon-plus: '\2b';
|
|
204
|
-
--ax-icon-plus-after: '';
|
|
205
|
-
|
|
206
|
-
--ax-icon-trash: '\f1f8';
|
|
207
|
-
--ax-icon-trash-after: '';
|
|
208
|
-
|
|
209
|
-
--ax-icon-arrow-turn-right: '\e635';
|
|
210
|
-
--ax-icon-arrow-turn-right-after: '';
|
|
211
|
-
|
|
212
|
-
--ax-icon-arrow-turn-left: '\e632';
|
|
213
|
-
--ax-icon-arrow-turn-left-after: '';
|
|
214
|
-
|
|
215
|
-
--ax-icon-save: '\f0c7';
|
|
216
|
-
--ax-icon-save-after: '';
|
|
217
|
-
|
|
218
|
-
--ax-icon-minimize: '\f068';
|
|
219
|
-
--ax-icon-minimize-after: '';
|
|
220
|
-
|
|
221
|
-
--ax-icon-maximize: '\f31d';
|
|
222
|
-
--ax-icon-maximize-after: '';
|
|
223
|
-
|
|
224
|
-
--ax-icon-code: '\f121';
|
|
225
|
-
--ax-icon-code-after: '';
|
|
226
|
-
|
|
227
|
-
--ax-icon-paragraph: '\f1dd';
|
|
228
|
-
--ax-icon-paragraph-after: '';
|
|
229
|
-
}
|