codexly-ui 0.6.9 → 0.6.11
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/assets/styles/_fonts.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* Fonts are loaded dynamically by ClxThemeService via <link> injection.
|
|
2
|
-
|
|
3
|
-
@import url('https://fonts.googleapis.com/css2?family=
|
|
2
|
+
DM Sans is the default — preloaded here so the app renders before JS executes. */
|
|
3
|
+
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
|
package/assets/styles/_theme.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/* ── Font body variable (overridden dynamically by ClxThemeService) ───────── */
|
|
7
7
|
:root {
|
|
8
|
-
--clx-font-body: '
|
|
8
|
+
--clx-font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
/* ── Light theme (default) ────────────────────────────────────────────────── */
|
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -416,7 +416,7 @@ const CLX_THEME_DEFAULTS = {
|
|
|
416
416
|
borderRadius: 'md',
|
|
417
417
|
defaultSize: 'md',
|
|
418
418
|
defaultShape: 'rounded',
|
|
419
|
-
fontFamily: '
|
|
419
|
+
fontFamily: 'DM Sans',
|
|
420
420
|
};
|
|
421
421
|
// ── Injection token ───────────────────────────────────────────────────────────
|
|
422
422
|
const CLX_THEME_CONFIG = new InjectionToken('CLX_THEME_CONFIG', { factory: () => CLX_THEME_DEFAULTS });
|
|
@@ -601,7 +601,7 @@ class ClxThemeService {
|
|
|
601
601
|
const { color } = parseColorInput(input);
|
|
602
602
|
const shades = dark
|
|
603
603
|
? { text: 100, label: 300, muted: 400, subtle: 500, faint: 600 }
|
|
604
|
-
: { text: 900, label: 600, muted: 500, subtle:
|
|
604
|
+
: { text: 900, label: 600, muted: 500, subtle: 500, faint: 300 };
|
|
605
605
|
document.documentElement.style.setProperty('--clx-text', resolvePaletteHex(color, shades.text));
|
|
606
606
|
document.documentElement.style.setProperty('--clx-text-label', resolvePaletteHex(color, shades.label));
|
|
607
607
|
document.documentElement.style.setProperty('--clx-text-muted', resolvePaletteHex(color, shades.muted));
|
|
@@ -12380,8 +12380,8 @@ class ClxFabComponent {
|
|
|
12380
12380
|
_sso = inject(ScrollStrategyOptions);
|
|
12381
12381
|
_scrollStrategy = this._sso.reposition();
|
|
12382
12382
|
_positions = [
|
|
12383
|
-
{ originX: '
|
|
12384
|
-
{ originX: '
|
|
12383
|
+
{ originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom', offsetY: -8 },
|
|
12384
|
+
{ originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', offsetY: 8 },
|
|
12385
12385
|
];
|
|
12386
12386
|
// ── State ────────────────────────────────────────────────────────────────────
|
|
12387
12387
|
_isOpen = signal(false, ...(ngDevMode ? [{ debugName: "_isOpen" }] : /* istanbul ignore next */ []));
|
|
@@ -12429,10 +12429,10 @@ class ClxFabComponent {
|
|
|
12429
12429
|
(overlayOutsideClick)="_close()"
|
|
12430
12430
|
(overlayKeydown)="_onKeydown($event)">
|
|
12431
12431
|
|
|
12432
|
-
<div class="flex flex-col items-
|
|
12432
|
+
<div class="flex flex-col items-center gap-2 mb-2" role="menu">
|
|
12433
12433
|
@for (item of items(); track item.key; let i = $index) {
|
|
12434
12434
|
<button clx-button type="button" shape="circle" [iconOnly]="true" [icon]="item.icon"
|
|
12435
|
-
variant="
|
|
12435
|
+
variant="solid" [color]="item.color ?? _color()" [size]="_itemSize()" class="shadow-md"
|
|
12436
12436
|
clxAnimate="slideInUp" trigger="onEnter" [delay]="i * 60" [duration]="220"
|
|
12437
12437
|
[clxTooltip]="item.label" clxTooltipPosition="right"
|
|
12438
12438
|
[attr.aria-label]="item.label"
|
|
@@ -12482,10 +12482,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
12482
12482
|
(overlayOutsideClick)="_close()"
|
|
12483
12483
|
(overlayKeydown)="_onKeydown($event)">
|
|
12484
12484
|
|
|
12485
|
-
<div class="flex flex-col items-
|
|
12485
|
+
<div class="flex flex-col items-center gap-2 mb-2" role="menu">
|
|
12486
12486
|
@for (item of items(); track item.key; let i = $index) {
|
|
12487
12487
|
<button clx-button type="button" shape="circle" [iconOnly]="true" [icon]="item.icon"
|
|
12488
|
-
variant="
|
|
12488
|
+
variant="solid" [color]="item.color ?? _color()" [size]="_itemSize()" class="shadow-md"
|
|
12489
12489
|
clxAnimate="slideInUp" trigger="onEnter" [delay]="i * 60" [duration]="220"
|
|
12490
12490
|
[clxTooltip]="item.label" clxTooltipPosition="right"
|
|
12491
12491
|
[attr.aria-label]="item.label"
|