@wirecore/wirelayer-css 0.3.0 → 0.5.0

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/README.md CHANGED
@@ -31,6 +31,10 @@ With your own Tailwind build:
31
31
 
32
32
  The bundled fonts are licensed under the SIL Open Font License 1.1 (`dist/fonts/OFL.txt`), see [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md).
33
33
 
34
+ ## AI assistants
35
+
36
+ `llms.txt` (overview) and `llms-full.txt` (the class reference: every component with its parts and modifiers and the guides) ship with the package – point your assistant at `node_modules/@wirecore/wirelayer-css/llms.txt`, e.g. in your CLAUDE.md or AGENTS.md. Or the MCP server [`@wirecore/wirelayer-mcp`](https://www.npmjs.com/package/@wirecore/wirelayer-mcp): `claude mcp add wirelayer -- npx -y -p @wirecore/wirelayer-mcp wirelayer-mcp`.
37
+
34
38
  Part of [WireLayer](https://github.com/WireCore/WireLayer) – one look and one API for Vue, React, React Native and HTML, accessible according to WCAG 2.2 AA.
35
39
 
36
40
  ## License
@@ -460,7 +460,7 @@
460
460
  @apply border-2 border-card;
461
461
  }
462
462
  .wc-avatar:is(.wc-avatar-interactive, .wc-avatar-interactive *) {
463
- @apply cursor-pointer select-none transition-[opacity,background-color,border-color,color] duration-150 motion-reduce:transition-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-fg disabled:cursor-not-allowed disabled:opacity-40 aria-busy:cursor-wait forced-colors:border forced-colors:border-[ButtonBorder] hover:ring-2 hover:ring-line-2 data-[state=open]:ring-2 data-[state=open]:ring-line-2;
463
+ @apply cursor-pointer select-none transition-[opacity,background-color,border-color,color] duration-150 motion-reduce:transition-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-fg disabled:cursor-not-allowed disabled:opacity-40 aria-busy:cursor-wait forced-colors:border forced-colors:border-[ButtonBorder];
464
464
  }
465
465
  .wc-avatar:is(.wc-avatar-square, .wc-avatar-square *):is(.wc-avatar-sm, .wc-avatar-sm *) {
466
466
  @apply rounded-lg;
@@ -480,6 +480,33 @@
480
480
  .wc-avatar:is(.wc-avatar-grouped, .wc-avatar-grouped *):not(.wc-avatar-solid, .wc-avatar-solid *, .wc-avatar-outline, .wc-avatar-outline *) {
481
481
  @apply bg-bg-2 shadow-[inset_0_0_0_1px_var(--color-line-2)];
482
482
  }
483
+ .wc-avatar:is(.wc-avatar-interactive, .wc-avatar-interactive *):is(.wc-avatar-outline, .wc-avatar-outline *) {
484
+ @apply hover:border-fg;
485
+ }
486
+ .wc-avatar:is(.wc-avatar-interactive, .wc-avatar-interactive *):not(.wc-avatar-solid, .wc-avatar-solid *, .wc-avatar-outline, .wc-avatar-outline *) {
487
+ @apply hover:bg-line-2;
488
+ }
489
+ .wc-avatar:is(.wc-avatar-interactive, .wc-avatar-interactive *):is(.wc-avatar-solid, .wc-avatar-solid *) {
490
+ @apply hover:opacity-85;
491
+ }
492
+ .wc-avatar:is(.wc-avatar-interactive, .wc-avatar-interactive *):is(.wc-avatar-primary, .wc-avatar-primary *) {
493
+ @apply hover:bg-[color-mix(in_srgb,var(--color-primary)_18%,var(--color-card))];
494
+ }
495
+ .wc-avatar:is(.wc-avatar-interactive, .wc-avatar-interactive *):is(.wc-avatar-info, .wc-avatar-info *) {
496
+ @apply hover:bg-[color-mix(in_srgb,var(--color-info)_18%,var(--color-card))];
497
+ }
498
+ .wc-avatar:is(.wc-avatar-interactive, .wc-avatar-interactive *):is(.wc-avatar-success, .wc-avatar-success *) {
499
+ @apply hover:bg-[color-mix(in_srgb,var(--color-success)_18%,var(--color-card))];
500
+ }
501
+ .wc-avatar:is(.wc-avatar-interactive, .wc-avatar-interactive *):is(.wc-avatar-warn, .wc-avatar-warn *) {
502
+ @apply hover:bg-[color-mix(in_srgb,var(--color-warn)_18%,var(--color-card))];
503
+ }
504
+ .wc-avatar:is(.wc-avatar-interactive, .wc-avatar-interactive *):is(.wc-avatar-danger, .wc-avatar-danger *) {
505
+ @apply hover:bg-[color-mix(in_srgb,var(--color-danger)_18%,var(--color-card))];
506
+ }
507
+ .wc-avatar:is(.wc-avatar-interactive, .wc-avatar-interactive *):is(:not(.wc-avatar-solid, .wc-avatar-solid *, .wc-avatar-outline, .wc-avatar-outline *), :is(.wc-avatar-solid, .wc-avatar-solid *)) {
508
+ @apply hover:has-[img:not([hidden])]:ring-2 hover:has-[img:not([hidden])]:ring-line-2;
509
+ }
483
510
 
484
511
  /* avatar-group */
485
512
  .wc-avatar-group {
@@ -2555,10 +2582,13 @@
2555
2582
  @apply flex w-full items-stretch overflow-hidden rounded-lg border border-line-strong bg-bg text-fg transition-colors motion-reduce:transition-none focus-within:border-primary data-invalid:border-danger data-disabled:cursor-not-allowed data-disabled:border-line data-disabled:bg-bg-2 data-disabled:text-muted h-10;
2556
2583
  }
2557
2584
  .wc-date-picker-date-input {
2558
- @apply flex min-w-0 flex-1 items-center px-3;
2585
+ @apply relative flex min-w-0 flex-1 items-center px-3;
2559
2586
  }
2560
2587
  .wc-date-picker-date-control {
2561
- @apply flex min-w-0 items-center;
2588
+ @apply flex min-w-0 items-center data-placeholder-shown:opacity-0;
2589
+ }
2590
+ .wc-date-picker-placeholder {
2591
+ @apply absolute inset-0 flex cursor-text items-center overflow-hidden px-3 text-[15px] whitespace-nowrap text-muted data-hidden:pointer-events-none data-hidden:opacity-0;
2562
2592
  }
2563
2593
  .wc-date-picker-segments {
2564
2594
  @apply flex items-center text-[15px];
@@ -2686,6 +2716,9 @@
2686
2716
  .wc-date-picker-date-input:is(.wc-date-picker-sm, .wc-date-picker-sm *) {
2687
2717
  @apply px-2.5;
2688
2718
  }
2719
+ .wc-date-picker-placeholder:is(.wc-date-picker-sm, .wc-date-picker-sm *) {
2720
+ @apply px-2.5 text-[13px];
2721
+ }
2689
2722
  .wc-date-picker-segments:is(.wc-date-picker-sm, .wc-date-picker-sm *) {
2690
2723
  @apply text-[13px];
2691
2724
  }
@@ -2710,6 +2743,9 @@
2710
2743
  .wc-date-picker-date-input:is(.wc-date-picker-lg, .wc-date-picker-lg *) {
2711
2744
  @apply px-4;
2712
2745
  }
2746
+ .wc-date-picker-placeholder:is(.wc-date-picker-lg, .wc-date-picker-lg *) {
2747
+ @apply px-4 text-base;
2748
+ }
2713
2749
  .wc-date-picker-segments:is(.wc-date-picker-lg, .wc-date-picker-lg *) {
2714
2750
  @apply text-base;
2715
2751
  }
@@ -2796,7 +2832,7 @@
2796
2832
  @apply fixed inset-0 z-50 flex items-center justify-center overflow-y-auto p-4;
2797
2833
  }
2798
2834
  .wc-dialog-content {
2799
- @apply flex w-full max-w-[400px] flex-col rounded-[14px] border border-line-2 bg-card text-fg outline-none shadow-[0_24px_48px_-20px_rgba(0,0,0,.55)] motion-safe:data-[state=open]:animate-dialog-in motion-safe:data-[state=closed]:animate-dialog-out;
2835
+ @apply flex w-full max-w-[var(--wc-dialog-w,400px)] flex-col rounded-[14px] border border-line-2 bg-card text-fg outline-none shadow-[0_24px_48px_-20px_rgba(0,0,0,.55)] motion-safe:data-[state=open]:animate-dialog-in motion-safe:data-[state=closed]:animate-dialog-out;
2800
2836
  }
2801
2837
  .wc-dialog-header {
2802
2838
  @apply flex items-center justify-between gap-3 pt-4 pe-4 ps-[18px];
@@ -2847,16 +2883,16 @@
2847
2883
  @apply bg-danger/14 text-danger;
2848
2884
  }
2849
2885
  .wc-dialog-content:is(.wc-dialog-sm, .wc-dialog-sm *) {
2850
- @apply max-w-[320px];
2886
+ @apply [--wc-dialog-w:320px];
2851
2887
  }
2852
2888
  .wc-dialog-content:is(.wc-dialog-md, .wc-dialog-md *) {
2853
- @apply max-w-[400px];
2889
+ @apply [--wc-dialog-w:400px];
2854
2890
  }
2855
2891
  .wc-dialog-content:is(.wc-dialog-lg, .wc-dialog-lg *) {
2856
- @apply max-w-[560px];
2892
+ @apply [--wc-dialog-w:560px];
2857
2893
  }
2858
2894
  .wc-dialog-content:is(.wc-dialog-xl, .wc-dialog-xl *) {
2859
- @apply max-w-[800px];
2895
+ @apply [--wc-dialog-w:800px];
2860
2896
  }
2861
2897
  .wc-dialog-content:is(.wc-dialog-full, .wc-dialog-full *) {
2862
2898
  @apply max-w-none;
@@ -6912,7 +6948,7 @@
6912
6948
 
6913
6949
  /* segmented-control */
6914
6950
  .wc-segmented-control {
6915
- @apply inline-flex items-center gap-0.5 rounded-full border border-line-2 p-[3px];
6951
+ @apply inline-flex w-fit items-center gap-0.5 rounded-full border border-line-2 p-[3px];
6916
6952
  }
6917
6953
  .wc-segmented-control-label {
6918
6954
  @apply sr-only;