@praxisui/core 10.0.0-rc.38 → 10.0.0-rc.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/core",
3
- "version": "10.0.0-rc.38",
3
+ "version": "10.0.0-rc.39",
4
4
  "description": "Core library for Praxis UI Workspace: types, tokens, services and utilities shared across @praxisui/* packages.",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "^21.0.0",
package/theme-bridge.css CHANGED
@@ -68,6 +68,41 @@
68
68
  --mat-tooltip-supporting-text-size: var(--mat-sys-body-small-size);
69
69
  --mat-tooltip-supporting-text-weight: var(--mat-sys-body-small-weight);
70
70
  --mat-tooltip-supporting-text-line-height: var(--mat-sys-body-small-line-height);
71
+
72
+ /* Praxis Active Loading & AI Thinking Text Shimmer Tokens */
73
+ --pdx-text-shimmer-duration: 2.6s;
74
+ --pdx-text-shimmer-base: color-mix(in oklab, var(--md-sys-color-on-surface-variant, #3f4948) 82%, var(--md-sys-color-on-surface, #191c1c) 18%);
75
+ --pdx-text-shimmer-cool: color-mix(in oklab, var(--md-sys-color-tertiary, #4b607c) 74%, #7c3aed 26%);
76
+ --pdx-text-shimmer-peak: color-mix(in oklab, var(--md-sys-color-on-surface, #191c1c) 90%, var(--md-sys-color-primary, #006a6a) 10%);
77
+ --pdx-text-shimmer-warm: color-mix(in oklab, var(--md-sys-color-primary, #006a6a) 74%, #db2777 26%);
78
+ --pdx-text-shimmer-gradient: linear-gradient(
79
+ 105deg,
80
+ var(--pdx-text-shimmer-base) 0%,
81
+ var(--pdx-text-shimmer-base) 26%,
82
+ var(--pdx-text-shimmer-cool) 40%,
83
+ var(--pdx-text-shimmer-peak) 50%,
84
+ var(--pdx-text-shimmer-warm) 60%,
85
+ var(--pdx-text-shimmer-base) 74%,
86
+ var(--pdx-text-shimmer-base) 100%
87
+ );
88
+ }
89
+
90
+ .dark,
91
+ [data-theme="dark"] {
92
+ --pdx-text-shimmer-base: color-mix(in oklab, var(--md-sys-color-on-surface-variant, #bec9c7) 80%, var(--md-sys-color-on-surface, #e0e3e2) 20%);
93
+ --pdx-text-shimmer-cool: color-mix(in oklab, var(--md-sys-color-tertiary, #b2c8e8) 64%, #c084fc 36%);
94
+ --pdx-text-shimmer-peak: #ffffff;
95
+ --pdx-text-shimmer-warm: color-mix(in oklab, var(--md-sys-color-primary, #80d5d4) 68%, #f472b6 32%);
96
+ --pdx-text-shimmer-gradient: linear-gradient(
97
+ 105deg,
98
+ var(--pdx-text-shimmer-base) 0%,
99
+ var(--pdx-text-shimmer-base) 26%,
100
+ var(--pdx-text-shimmer-cool) 40%,
101
+ var(--pdx-text-shimmer-peak) 50%,
102
+ var(--pdx-text-shimmer-warm) 60%,
103
+ var(--pdx-text-shimmer-base) 74%,
104
+ var(--pdx-text-shimmer-base) 100%
105
+ );
71
106
  }
72
107
 
73
108
  .material-icons,
@@ -211,3 +246,49 @@ mat-icon.material-symbols-sharp {
211
246
  background-color: var(--md-sys-color-primary);
212
247
  color: var(--md-sys-color-on-primary);
213
248
  }
249
+
250
+ @keyframes pdx-text-shimmer-sweep {
251
+ 0% {
252
+ background-position: 100% 50%;
253
+ }
254
+ 100% {
255
+ background-position: 0% 50%;
256
+ }
257
+ }
258
+
259
+ .pdx-text-shimmer {
260
+ color: var(--pdx-text-shimmer-base, var(--md-sys-color-on-surface-variant, currentColor));
261
+ text-shadow: none;
262
+ }
263
+
264
+ @supports ((-webkit-background-clip: text) or (background-clip: text)) {
265
+ .pdx-text-shimmer {
266
+ background-image: var(--pdx-text-shimmer-gradient);
267
+ background-size: 300% 100%;
268
+ background-position: 100% 50%;
269
+ background-repeat: no-repeat;
270
+ -webkit-background-clip: text;
271
+ background-clip: text;
272
+ -webkit-text-fill-color: transparent;
273
+ color: transparent;
274
+ animation: pdx-text-shimmer-sweep var(--pdx-text-shimmer-duration, 2.6s) linear infinite;
275
+ will-change: background-position;
276
+ }
277
+ }
278
+
279
+ @media (prefers-reduced-motion: reduce), (forced-colors: active), print {
280
+ .pdx-text-shimmer {
281
+ animation: none !important;
282
+ background-image: none !important;
283
+ -webkit-text-fill-color: currentColor !important;
284
+ color: var(--md-sys-color-primary, currentColor) !important;
285
+ will-change: auto;
286
+ }
287
+ }
288
+
289
+ @media (forced-colors: active) {
290
+ .pdx-text-shimmer {
291
+ color: CanvasText !important;
292
+ -webkit-text-fill-color: CanvasText !important;
293
+ }
294
+ }
@@ -203,6 +203,23 @@
203
203
  --praxis-color-text: #{$foreground};
204
204
  --praxis-color-border: #{$border};
205
205
  --pdx-shell-fullscreen-bg: #{$surface};
206
+
207
+ // 6. Praxis Active Loading & AI Thinking Text Shimmer Tokens
208
+ --pdx-text-shimmer-duration: 2.6s;
209
+ --pdx-text-shimmer-base: color-mix(in oklab, #{$muted-foreground} 82%, #{$foreground} 18%);
210
+ --pdx-text-shimmer-cool: color-mix(in oklab, #{$tertiary} 74%, #7c3aed 26%);
211
+ --pdx-text-shimmer-peak: color-mix(in oklab, #{$foreground} 90%, #{$primary} 10%);
212
+ --pdx-text-shimmer-warm: color-mix(in oklab, #{$primary} 74%, #db2777 26%);
213
+ --pdx-text-shimmer-gradient: linear-gradient(
214
+ 105deg,
215
+ var(--pdx-text-shimmer-base) 0%,
216
+ var(--pdx-text-shimmer-base) 26%,
217
+ var(--pdx-text-shimmer-cool) 40%,
218
+ var(--pdx-text-shimmer-peak) 50%,
219
+ var(--pdx-text-shimmer-warm) 60%,
220
+ var(--pdx-text-shimmer-base) 74%,
221
+ var(--pdx-text-shimmer-base) 100%
222
+ );
206
223
  }
207
224
 
208
225
  /// Emits canonical dark theme token overrides.
@@ -360,6 +377,23 @@
360
377
  --praxis-color-text: #{$foreground};
361
378
  --praxis-color-border: #{$border};
362
379
  --pdx-shell-fullscreen-bg: #{$surface};
380
+
381
+ // 6. Dark Mode: Praxis Active Loading & AI Thinking Text Shimmer Tokens
382
+ --pdx-text-shimmer-duration: 2.6s;
383
+ --pdx-text-shimmer-base: color-mix(in oklab, #{$muted-foreground} 80%, #{$foreground} 20%);
384
+ --pdx-text-shimmer-cool: color-mix(in oklab, #{$tertiary} 64%, #c084fc 36%);
385
+ --pdx-text-shimmer-peak: #ffffff;
386
+ --pdx-text-shimmer-warm: color-mix(in oklab, #{$primary} 68%, #f472b6 32%);
387
+ --pdx-text-shimmer-gradient: linear-gradient(
388
+ 105deg,
389
+ var(--pdx-text-shimmer-base) 0%,
390
+ var(--pdx-text-shimmer-base) 26%,
391
+ var(--pdx-text-shimmer-cool) 40%,
392
+ var(--pdx-text-shimmer-peak) 50%,
393
+ var(--pdx-text-shimmer-warm) 60%,
394
+ var(--pdx-text-shimmer-base) 74%,
395
+ var(--pdx-text-shimmer-base) 100%
396
+ );
363
397
  }
364
398
 
365
399
  /// Emits responsive and solid surface styling for Widget Shell expanded and fullscreen modes.
@@ -522,6 +556,67 @@
522
556
  }
523
557
  }
524
558
 
559
+ /// Reusable mixin for Lovable-inspired multi-stop color-shifting gradient text
560
+ /// on active loading and AI thinking/streaming indicators.
561
+ @mixin praxis-text-shimmer() {
562
+ color: var(--pdx-text-shimmer-base, var(--md-sys-color-on-surface-variant, currentColor));
563
+ text-shadow: none;
564
+
565
+ @supports ((-webkit-background-clip: text) or (background-clip: text)) {
566
+ background-image: var(
567
+ --pdx-text-shimmer-gradient,
568
+ linear-gradient(
569
+ 105deg,
570
+ color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 78%, var(--md-sys-color-on-surface, #0f172a) 22%) 0%,
571
+ color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 78%, var(--md-sys-color-on-surface, #0f172a) 22%) 26%,
572
+ color-mix(in oklab, var(--md-sys-color-tertiary, #6366f1) 66%, #a855f7 34%) 40%,
573
+ var(--md-sys-color-on-surface, #ffffff) 50%,
574
+ color-mix(in oklab, var(--md-sys-color-primary, #006a6a) 66%, #ec4899 34%) 60%,
575
+ color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 78%, var(--md-sys-color-on-surface, #0f172a) 22%) 74%,
576
+ color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 78%, var(--md-sys-color-on-surface, #0f172a) 22%) 100%
577
+ )
578
+ );
579
+ background-size: 300% 100%;
580
+ background-position: 100% 50%;
581
+ background-repeat: no-repeat;
582
+ -webkit-background-clip: text;
583
+ background-clip: text;
584
+ -webkit-text-fill-color: transparent;
585
+ color: transparent;
586
+ animation: pdx-text-shimmer-sweep var(--pdx-text-shimmer-duration, 2.6s) linear infinite;
587
+ will-change: background-position;
588
+ }
589
+
590
+ @media (prefers-reduced-motion: reduce), (forced-colors: active), print {
591
+ animation: none !important;
592
+ background-image: none !important;
593
+ -webkit-text-fill-color: currentColor !important;
594
+ color: var(--md-sys-color-primary, currentColor) !important;
595
+ will-change: auto;
596
+ }
597
+
598
+ @media (forced-colors: active) {
599
+ color: CanvasText !important;
600
+ -webkit-text-fill-color: CanvasText !important;
601
+ }
602
+ }
603
+
604
+ /// Emits global keyframes and `.pdx-text-shimmer` utility class.
605
+ @mixin praxis-text-shimmer-styles() {
606
+ @keyframes pdx-text-shimmer-sweep {
607
+ 0% {
608
+ background-position: 100% 50%;
609
+ }
610
+ 100% {
611
+ background-position: 0% 50%;
612
+ }
613
+ }
614
+
615
+ .pdx-text-shimmer {
616
+ @include praxis-text-shimmer();
617
+ }
618
+ }
619
+
525
620
  /// Convenience mixin that bundles all theme definitions, dark mode overrides,
526
621
  /// widget shell rules, tooltip enhancements, and menu state layer styles.
527
622
  ///
@@ -540,4 +635,5 @@
540
635
  @include praxis-shell-styles();
541
636
  @include praxis-tooltip-styles();
542
637
  @include praxis-menu-styles();
638
+ @include praxis-text-shimmer-styles();
543
639
  }