@acorex/styles 21.0.3-next.32 → 21.0.3-next.35

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 (2) hide show
  1. package/package.json +2 -2
  2. package/themes/default.css +149 -25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "21.0.3-next.32",
3
+ "version": "21.0.3-next.35",
4
4
  "main": "index.css",
5
5
  "author": "Ali Safari",
6
6
  "license": "ISC",
@@ -11,4 +11,4 @@
11
11
  "postcss": "^8.5.6",
12
12
  "tw-animate": "^1.0.3"
13
13
  }
14
- }
14
+ }
@@ -3225,28 +3225,89 @@ html.ax-dark {
3225
3225
  }
3226
3226
 
3227
3227
  @utility ax-fill {
3228
+ @apply bg-(--ax-comp-bg-lightest,var(--color-lighter)) text-(--ax-comp-text-lightest,var(--color-on-lighter)) dark:bg-(--ax-comp-bg-lightest,var(--color-darker)) dark:text-(--ax-comp-text-lightest,var(--color-on-darker));
3228
3229
  &.ax-default {
3229
3230
  @apply light-surface dark:dark-surface;
3230
3231
  }
3232
+ &.ax-state-selected {
3233
+ @apply bg-(--ax-comp-bg-lighter,var(--color-light)) text-(--ax-comp-text-lighter,var(--color-on-light)) dark:bg-(--ax-comp-bg-lighter,var(--color-dark)) dark:text-(--ax-comp-text-lighter,var(--color-on-dark));
3234
+ }
3231
3235
  &.ax-editor-container {
3232
3236
  @apply focus-within:ring-primary/30 focus-within:border-primary focus-within:ring-3;
3233
3237
  }
3234
3238
  }
3235
3239
 
3240
+ @utility ax-fill-interactive {
3241
+ @supports (color: color-mix(in lab, red, red)) {
3242
+ --ax-comp-ripple-color: color-mix(in oklab, var(--ax-comp-bg, var(--color-on-lightest)) 25%, transparent);
3243
+ }
3244
+ @apply ax-fill transition-colors outline-none;
3245
+ &:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected) {
3246
+ &:hover,
3247
+ &:focus,
3248
+ &:focus-within,
3249
+ &:focus-visible,
3250
+ &.ax-state-focus {
3251
+ background-color: var(--ax-comp-bg-lighter, var(--color-light));
3252
+ color: var(--ax-comp-text-lighter, var(--color-on-light));
3253
+ @variant dark {
3254
+ background-color: var(--ax-comp-bg-lighter, var(--color-dark));
3255
+ color: var(--ax-comp-text-lighter, var(--color-on-dark));
3256
+ }
3257
+ }
3258
+ &:focus-visible,
3259
+ &.ax-state-focus {
3260
+ @apply ring-primary/30 ring-3;
3261
+ }
3262
+ }
3263
+ &:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected):active {
3264
+ background-color: var(--ax-comp-bg-light, var(--color-surface));
3265
+ color: var(--ax-comp-text-light, var(--color-on-surface));
3266
+ }
3267
+ }
3268
+
3236
3269
  @utility ax-flat {
3237
- @apply rounded-none;
3270
+ @apply rounded-none border-b border-(--ax-comp-bg,var(--color-border-lightest)) bg-transparent text-(--ax-comp-bg,var(--color-on-surface));
3238
3271
  &.ax-default {
3239
- @apply border-border-lightest dark:border-border-darkest border-b bg-transparent;
3272
+ @apply border-border-lightest dark:border-border-darkest border-b bg-transparent text-(--color-on-surface);
3273
+ }
3274
+ &.ax-state-selected {
3275
+ @apply border-(--ax-comp-bg-darker,var(--color-border-light)) text-(--ax-comp-bg-darker,var(--color-on-light));
3240
3276
  }
3241
3277
  &.ax-editor-container {
3242
3278
  @apply focus-within:border-primary!;
3243
3279
  }
3244
3280
  }
3245
3281
 
3282
+ @utility ax-flat-interactive {
3283
+ @supports (color: color-mix(in lab, red, red)) {
3284
+ --ax-comp-ripple-color: color-mix(in oklab, var(--ax-comp-bg, var(--color-on-lightest)) 25%, transparent);
3285
+ }
3286
+ @apply ax-flat transition-colors outline-none;
3287
+ &:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected) {
3288
+ &:hover,
3289
+ &:focus,
3290
+ &:focus-within,
3291
+ &:focus-visible,
3292
+ &.ax-state-focus {
3293
+ border-color: var(--ax-comp-bg-dark, var(--color-border-lighter));
3294
+ color: var(--ax-comp-bg-dark, var(--color-on-lighter));
3295
+ }
3296
+ &:focus-visible,
3297
+ &.ax-state-focus {
3298
+ @apply ring-primary/30 ring-3;
3299
+ }
3300
+ }
3301
+ &:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected):active {
3302
+ border-color: var(--ax-comp-bg-darker, var(--color-border-light));
3303
+ color: var(--ax-comp-bg-darker, var(--color-on-light));
3304
+ }
3305
+ }
3306
+
3246
3307
  @utility ax-solid {
3247
3308
  @apply bg-(--ax-comp-bg,var(--color-lightest)) text-(--ax-comp-text,var(--color-on-lightest)) dark:bg-(--ax-comp-bg,var(--color-darkest)) dark:text-(--ax-comp-text,var(--color-on-darkest));
3248
3309
  &.ax-default {
3249
- @apply lightest-surface dark:darkest-surface border;
3310
+ @apply border-border-surface border;
3250
3311
  }
3251
3312
  &.ax-state-selected {
3252
3313
  @apply bg-(--ax-comp-bg-darker,var(--color-light)) text-(--ax-comp-text-darker,var(--color-on-light)) dark:bg-(--ax-comp-bg-darker,var(--color-dark)) dark:text-(--ax-comp-text-darker,var(--color-on-dark));
@@ -3260,17 +3321,34 @@ html.ax-dark {
3260
3321
  @supports (color: color-mix(in lab, red, red)) {
3261
3322
  --ax-comp-ripple-color: color-mix(in oklab, var(--ax-comp-bg-lightest, var(--color-on-lightest)) 25%, transparent);
3262
3323
  }
3263
- @apply ax-solid transition-colors;
3324
+ @apply ax-solid transition-colors outline-none;
3264
3325
  &:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected) {
3265
3326
  &:hover,
3266
3327
  &:focus,
3267
3328
  &:focus-within,
3268
- &:focus-visible {
3269
- @apply bg-(--ax-comp-bg-dark,var(--color-lighter)) text-(--ax-comp-text-dark,var(--color-on-lighter)) dark:bg-(--ax-comp-bg-dark,var(--color-darker)) dark:text-(--ax-comp-text-dark,var(--color-on-darker));
3329
+ &:focus-visible,
3330
+ &.ax-state-focus {
3331
+ background-color: var(--ax-comp-bg-dark, var(--color-lighter));
3332
+ color: var(--ax-comp-text-dark, var(--color-on-lighter));
3333
+ @variant dark {
3334
+ background-color: var(--ax-comp-bg-dark, var(--color-darker));
3335
+ color: var(--ax-comp-text-dark, var(--color-on-darker));
3336
+ }
3337
+ }
3338
+ &:focus-visible,
3339
+ &.ax-state-focus {
3340
+ @apply ring-primary/30 ring-3;
3270
3341
  }
3271
3342
  }
3272
3343
  &:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected):active {
3273
- @apply bg-(--ax-comp-bg-darker,var(--color-light)) text-(--ax-comp-text-darker,var(--color-on-light)) ring-1 ring-(--ax-comp-bg-dark) ring-offset-1 dark:bg-(--ax-comp-bg-darker,var(--color-dark)) dark:text-(--ax-comp-text-darker,var(--color-on-dark));
3344
+ background-color: var(--ax-comp-bg-darker, var(--color-light));
3345
+ color: var(--ax-comp-text-darker, var(--color-on-light));
3346
+ @apply ring-1 ring-offset-1;
3347
+ --tw-ring-color: var(--ax-comp-bg-dark, var(--color-primary-dark));
3348
+ @variant dark {
3349
+ background-color: var(--ax-comp-bg-darker, var(--color-dark));
3350
+ color: var(--ax-comp-text-darker, var(--color-on-dark));
3351
+ }
3274
3352
  }
3275
3353
  }
3276
3354
 
@@ -3291,17 +3369,24 @@ html.ax-dark {
3291
3369
  @supports (color: color-mix(in lab, red, red)) {
3292
3370
  --ax-comp-ripple-color: color-mix(in oklab, var(--ax-comp-bg, var(--color-on-lightest)) 25%, transparent);
3293
3371
  }
3294
- @apply ax-outline transition-colors;
3372
+ @apply ax-outline transition-colors outline-none;
3295
3373
  &:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected) {
3296
3374
  &:hover,
3297
3375
  &:focus,
3298
3376
  &:focus-within,
3299
- &:focus-visible {
3300
- @apply border-(--ax-comp-bg-dark,var(--color-border-lighter)) text-(--ax-comp-bg-dark,var(--color-on-lighter));
3377
+ &:focus-visible,
3378
+ &.ax-state-focus {
3379
+ border-color: var(--ax-comp-bg-dark, var(--color-border-lighter));
3380
+ color: var(--ax-comp-bg-dark, var(--color-on-lighter));
3381
+ }
3382
+ &:focus-visible,
3383
+ &.ax-state-focus {
3384
+ @apply ring-primary/30 ring-3;
3301
3385
  }
3302
3386
  }
3303
3387
  &:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected):active {
3304
- @apply border-(--ax-comp-bg-darker,var(--color-border-light)) text-(--ax-comp-bg-darker,var(--color-on-light));
3388
+ border-color: var(--ax-comp-bg-darker, var(--color-border-light));
3389
+ color: var(--ax-comp-bg-darker, var(--color-on-light));
3305
3390
  }
3306
3391
  }
3307
3392
 
@@ -3316,17 +3401,28 @@ html.ax-dark {
3316
3401
  @supports (color: color-mix(in lab, red, red)) {
3317
3402
  --ax-comp-ripple-color: color-mix(in oklab, var(--ax-comp-bg, var(--color-on-lightest)) 25%, transparent);
3318
3403
  }
3319
- @apply ax-twotone transition-colors;
3404
+ @apply ax-twotone transition-colors outline-none;
3320
3405
  &:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected) {
3321
3406
  &:hover,
3322
3407
  &:focus,
3323
3408
  &:focus-within,
3324
- &:focus-visible {
3325
- @apply bg-(--ax-comp-bg-lighter,var(--color-light)) text-(--ax-comp-text-lighter,var(--color-on-light)) dark:bg-(--ax-comp-bg-lighter,var(--color-dark)) dark:text-(--ax-comp-text-lighter,var(--color-on-dark));
3409
+ &:focus-visible,
3410
+ &.ax-state-focus {
3411
+ background-color: var(--ax-comp-bg-lighter, var(--color-light));
3412
+ color: var(--ax-comp-text-lighter, var(--color-on-light));
3413
+ @variant dark {
3414
+ background-color: var(--ax-comp-bg-lighter, var(--color-dark));
3415
+ color: var(--ax-comp-text-lighter, var(--color-on-dark));
3416
+ }
3417
+ }
3418
+ &:focus-visible,
3419
+ &.ax-state-focus {
3420
+ @apply ring-primary/30 ring-3;
3326
3421
  }
3327
3422
  }
3328
3423
  &:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected):active {
3329
- @apply bg-(--ax-comp-bg-light,var(--color-surface)) text-(--ax-comp-text-light,var(--color-on-surface));
3424
+ background-color: var(--ax-comp-bg-light, var(--color-surface));
3425
+ color: var(--ax-comp-text-light, var(--color-on-surface));
3330
3426
  }
3331
3427
  }
3332
3428
 
@@ -3341,44 +3437,72 @@ html.ax-dark {
3341
3437
  @supports (color: color-mix(in lab, red, red)) {
3342
3438
  --ax-comp-ripple-color: color-mix(in oklab, var(--ax-comp-bg, var(--color-on-lightest)) 25%, transparent);
3343
3439
  }
3344
- @apply ax-blank transition-colors;
3440
+ @apply ax-blank transition-colors outline-none;
3345
3441
  &:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected) {
3346
3442
  &:hover,
3347
3443
  &:focus,
3348
3444
  &:focus-within,
3349
- &:focus-visible {
3350
- @apply bg-(--ax-comp-bg-lightest,var(--color-lighter)) text-(--ax-comp-text-lightest,var(--color-on-lighter)) dark:bg-(--ax-comp-bg-lightest,var(--color-darker)) dark:text-(--ax-comp-text-lightest,var(--color-on-darker));
3445
+ &:focus-visible,
3446
+ &.ax-state-focus {
3447
+ background-color: var(--ax-comp-bg-lightest, var(--color-lighter));
3448
+ color: var(--ax-comp-text-lightest, var(--color-on-lighter));
3449
+ @variant dark {
3450
+ background-color: var(--ax-comp-bg-lightest, var(--color-darker));
3451
+ color: var(--ax-comp-text-lightest, var(--color-on-darker));
3452
+ }
3453
+ }
3454
+ &:focus-visible,
3455
+ &.ax-state-focus {
3456
+ @apply ring-primary/30 ring-3;
3351
3457
  }
3352
3458
  }
3353
3459
  &:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected):active {
3354
- @apply bg-(--ax-comp-bg-lighter,var(--color-surface)) text-(--ax-comp-text-lighter,var(--color-on-surface));
3460
+ background-color: var(--ax-comp-bg-lighter, var(--color-surface));
3461
+ color: var(--ax-comp-text-lighter, var(--color-on-surface));
3355
3462
  }
3356
3463
  }
3357
3464
 
3358
- @utility links {
3465
+ @utility ax-link {
3359
3466
  @apply bg-transparent text-(--ax-comp-bg,var(--color-on-surface));
3360
3467
  &.ax-state-selected {
3361
3468
  @apply text-(--ax-comp-bg-darker,var(--color-on-surface));
3362
3469
  }
3363
3470
  }
3364
3471
 
3365
- @utility links-interactive {
3472
+ @utility ax-link-interactive {
3366
3473
  @supports (color: color-mix(in lab, red, red)) {
3367
3474
  --ax-comp-ripple-color: color-mix(in oklab, var(--ax-comp-bg, var(--color-on-lightest)) 25%, transparent);
3368
3475
  }
3369
- @apply links transition-colors;
3476
+ @apply ax-link transition-colors outline-none;
3370
3477
  &:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected) {
3371
3478
  &:hover,
3372
3479
  &:focus,
3373
3480
  &:focus-within,
3374
- &:focus-visible {
3375
- @apply text-(--ax-comp-bg-dark,var(--color-on-surface));
3481
+ &:focus-visible,
3482
+ &.ax-state-focus {
3483
+ color: var(--ax-comp-bg-dark, var(--color-on-surface));
3484
+ }
3485
+ &:focus-visible,
3486
+ &.ax-state-focus {
3487
+ @apply ring-primary/30 ring-3;
3376
3488
  }
3377
3489
  }
3378
3490
  &:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected):active {
3379
- @apply text-(--ax-comp-bg-darker,var(--color-on-surface));
3491
+ color: var(--ax-comp-bg-darker, var(--color-on-surface));
3380
3492
  }
3381
3493
  }
3494
+
3495
+ /* Backwards-compatible aliases */
3496
+ @utility links {
3497
+ @apply ax-link;
3498
+ }
3499
+ @utility links-interactive {
3500
+ @apply ax-link-interactive;
3501
+ }
3502
+ @utility ax-links {
3503
+ @apply ax-link;
3504
+ }
3505
+
3382
3506
  @utility h1 {
3383
3507
  font-size: 2.5rem;
3384
3508
  font-weight: 500;