codexly-ui 0.1.7 → 0.1.9
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/_theme.css
CHANGED
|
@@ -42,8 +42,6 @@
|
|
|
42
42
|
/* ── Theme accents (overridden dynamically by ClxThemeService) ── */
|
|
43
43
|
--clx-secondary: #64748b; /* slate-500 */
|
|
44
44
|
--clx-secondary-light: #f1f5f9; /* slate-100 */
|
|
45
|
-
--clx-text-base: #64748b; /* slate-500 */
|
|
46
|
-
--clx-text-base-light: #f1f5f9; /* slate-100 */
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
/* ── Dark theme ───────────────────────────────────────────────────────────── */
|
|
@@ -95,6 +93,4 @@
|
|
|
95
93
|
--color-clx-primary-light: var(--clx-primary-light);
|
|
96
94
|
--color-clx-secondary: var(--clx-secondary);
|
|
97
95
|
--color-clx-secondary-light: var(--clx-secondary-light);
|
|
98
|
-
--color-clx-text-base: var(--clx-text-base);
|
|
99
|
-
--color-clx-text-base-light: var(--clx-text-base-light);
|
|
100
96
|
}
|
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -402,7 +402,7 @@ class ClxThemeService {
|
|
|
402
402
|
const cfg = this._config();
|
|
403
403
|
this._applyColorVar('--clx-primary', '--clx-primary-light', cfg.primaryColor);
|
|
404
404
|
this._applyColorVar('--clx-secondary', '--clx-secondary-light', cfg.secondaryColor);
|
|
405
|
-
this.
|
|
405
|
+
this._applyTextColor(cfg.textColor, this.isDark());
|
|
406
406
|
});
|
|
407
407
|
effect(() => {
|
|
408
408
|
if (!this._isBrowser)
|
|
@@ -434,6 +434,19 @@ class ClxThemeService {
|
|
|
434
434
|
document.documentElement.style.setProperty(lightVarName, resolvePaletteHex(color, 100));
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
+
_applyTextColor(input, dark) {
|
|
438
|
+
if (!input)
|
|
439
|
+
return;
|
|
440
|
+
const { color } = parseColorInput(input);
|
|
441
|
+
const shades = dark
|
|
442
|
+
? { text: 100, label: 300, muted: 400, subtle: 500, faint: 600 }
|
|
443
|
+
: { text: 900, label: 600, muted: 500, subtle: 400, faint: 300 };
|
|
444
|
+
document.documentElement.style.setProperty('--clx-text', resolvePaletteHex(color, shades.text));
|
|
445
|
+
document.documentElement.style.setProperty('--clx-text-label', resolvePaletteHex(color, shades.label));
|
|
446
|
+
document.documentElement.style.setProperty('--clx-text-muted', resolvePaletteHex(color, shades.muted));
|
|
447
|
+
document.documentElement.style.setProperty('--clx-text-subtle', resolvePaletteHex(color, shades.subtle));
|
|
448
|
+
document.documentElement.style.setProperty('--clx-text-faint', resolvePaletteHex(color, shades.faint));
|
|
449
|
+
}
|
|
437
450
|
_applyFont(family) {
|
|
438
451
|
const option = CLX_FONT_CATALOG.find(f => f.value === family);
|
|
439
452
|
if (!option)
|
|
@@ -5754,7 +5767,7 @@ class ClxModalComponent {
|
|
|
5754
5767
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxModalComponent, isStandalone: true, selector: "clx-modal", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, confirmButton: { classPropertyName: "confirmButton", publicName: "confirmButton", isSignal: true, isRequired: false, transformFunction: null }, cancelButton: { classPropertyName: "cancelButton", publicName: "cancelButton", isSignal: true, isRequired: false, transformFunction: null }, showCancelButton: { classPropertyName: "showCancelButton", publicName: "showCancelButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { confirmClick: "confirmClick", cancelClick: "cancelClick" }, host: { properties: { "class": "_hostClass()" } }, ngImport: i0, template: `
|
|
5755
5768
|
<!-- Header -->
|
|
5756
5769
|
<div class="flex items-center gap-3 px-6 py-4 border-b border-clx-border-soft shrink-0">
|
|
5757
|
-
<div class="flex-1 min-w-0">
|
|
5770
|
+
<div class="flex-1 min-w-0 text-clx-text-label">
|
|
5758
5771
|
<ng-content select="[clx-modal-title]" />
|
|
5759
5772
|
</div>
|
|
5760
5773
|
@if (showClose()) {
|
|
@@ -5815,7 +5828,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
5815
5828
|
template: `
|
|
5816
5829
|
<!-- Header -->
|
|
5817
5830
|
<div class="flex items-center gap-3 px-6 py-4 border-b border-clx-border-soft shrink-0">
|
|
5818
|
-
<div class="flex-1 min-w-0">
|
|
5831
|
+
<div class="flex-1 min-w-0 text-clx-text-label">
|
|
5819
5832
|
<ng-content select="[clx-modal-title]" />
|
|
5820
5833
|
</div>
|
|
5821
5834
|
@if (showClose()) {
|
|
@@ -12427,7 +12440,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
12427
12440
|
// ── Base classes ─────────────────────────────────────────────────────────────
|
|
12428
12441
|
const TABLE_BASE_CLASS = 'w-full text-left border-collapse text-sm';
|
|
12429
12442
|
const TABLE_HEADER_CELL_CLASS = 'px-4 py-3 font-semibold whitespace-nowrap';
|
|
12430
|
-
const TABLE_CELL_CLASS = 'px-4 py-3 border-b border-
|
|
12443
|
+
const TABLE_CELL_CLASS = 'px-4 py-3 border-b border-clx-border-soft text-clx-text-label';
|
|
12431
12444
|
const TABLE_ROW_CLASS = '';
|
|
12432
12445
|
// ── Alignment ────────────────────────────────────────────────────────────────
|
|
12433
12446
|
const TABLE_ALIGN_MAP = {
|