codexly-ui 0.7.2 → 0.7.4
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.
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
resolveColor().border by replacing "border-" with "border-t-" at runtime. */
|
|
13
13
|
@source inline("{bg,text,border,border-t,hover:bg,hover:text,hover:border,focus:border,focus-within:border,focus-visible:ring}-{red,orange,amber,yellow,lime,green,emerald,teal,cyan,sky,blue,indigo,violet,purple,fuchsia,pink,rose,slate,gray,zinc,neutral,stone}-{50,100,200,300,400,500,600,700,800,900,950}");
|
|
14
14
|
|
|
15
|
-
/* hoverBgMuted: hover
|
|
16
|
-
@source inline("hover:bg-{red,orange,amber,yellow,lime,green,emerald,teal,cyan,sky,blue,indigo,violet,purple,fuchsia,pink,rose,slate,gray,zinc,neutral,stone}-{50,100,200,300,400,500,600,700,800,900,950}/10");
|
|
15
|
+
/* hoverBgMuted / bgMuted: {hover:,}bg-{c}-{s}/10 */
|
|
16
|
+
@source inline("{hover:bg,bg}-{red,orange,amber,yellow,lime,green,emerald,teal,cyan,sky,blue,indigo,violet,purple,fuchsia,pink,rose,slate,gray,zinc,neutral,stone}-{50,100,200,300,400,500,600,700,800,900,950}/10");
|
|
17
17
|
|
|
18
18
|
/* focus/focus-within ring: focus:ring-{c}-{s}/20, focus-within:ring-{c}-{s}/20 */
|
|
19
19
|
@source inline("{focus:ring,focus-within:ring}-{red,orange,amber,yellow,lime,green,emerald,teal,cyan,sky,blue,indigo,violet,purple,fuchsia,pink,rose,slate,gray,zinc,neutral,stone}-{50,100,200,300,400,500,600,700,800,900,950}/20");
|
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -49,6 +49,7 @@ function resolveColor(input) {
|
|
|
49
49
|
// ── New semantic tokens ─────────────────────────────────────────────────
|
|
50
50
|
bg: `bg-${c}-${s}`,
|
|
51
51
|
bgSubtle: `bg-${c}-${subtleS}`,
|
|
52
|
+
bgMuted: `bg-${c}-${s}/10`,
|
|
52
53
|
text: textOn,
|
|
53
54
|
textSubtle: `text-${c}-${s}`,
|
|
54
55
|
border: `border-${c}-${s}`,
|
|
@@ -91,6 +92,7 @@ function resolveColor(input) {
|
|
|
91
92
|
const WHITE_TOKENS = {
|
|
92
93
|
bg: 'bg-white',
|
|
93
94
|
bgSubtle: 'bg-white/10',
|
|
95
|
+
bgMuted: 'bg-white/10',
|
|
94
96
|
text: 'text-gray-900',
|
|
95
97
|
textSubtle: 'text-white',
|
|
96
98
|
border: 'border-white',
|
|
@@ -9697,8 +9699,10 @@ class ClxMenuComponent {
|
|
|
9697
9699
|
const geom = this.collapsed() ? NAV_ITEM_COLLAPSED : NAV_ITEM_L1;
|
|
9698
9700
|
const t = resolveColor(this._color());
|
|
9699
9701
|
const typography = resolveNavZoneTypography(this._resolved());
|
|
9702
|
+
// Active state reuses the same light tint as hover (bgMuted) instead of the darker
|
|
9703
|
+
// bgSubtle token, so selected and hovered read as the same shade.
|
|
9700
9704
|
if (isActive) {
|
|
9701
|
-
return `${NAV_ITEM_BASE} ${typography} ${geom} ${t.textSubtle} ${t.
|
|
9705
|
+
return `${NAV_ITEM_BASE} ${typography} ${geom} ${t.textSubtle} ${t.bgMuted} rounded-lg`;
|
|
9702
9706
|
}
|
|
9703
9707
|
return `${NAV_ITEM_BASE} ${typography} ${geom} ${t.hoverBgMuted} rounded-lg`;
|
|
9704
9708
|
}
|
|
@@ -9861,13 +9865,10 @@ class ClxMenuItemComponent {
|
|
|
9861
9865
|
}, ...(ngDevMode ? [{ debugName: "_geom" }] : /* istanbul ignore next */ []));
|
|
9862
9866
|
_iconCls = computed(() => resolveColor(this._resolved().color).textSubtle, ...(ngDevMode ? [{ debugName: "_iconCls" }] : /* istanbul ignore next */ []));
|
|
9863
9867
|
_typography = computed(() => resolveNavZoneTypography(this._resolved()), ...(ngDevMode ? [{ debugName: "_typography" }] : /* istanbul ignore next */ []));
|
|
9864
|
-
_idleCls = computed(() => {
|
|
9865
|
-
const hover = resolveColor(this._resolved().color).hoverBgMuted;
|
|
9866
|
-
return `${NAV_ITEM_BASE} ${this._typography()} ${this._geom()} ${hover} rounded-lg`;
|
|
9867
|
-
}, ...(ngDevMode ? [{ debugName: "_idleCls" }] : /* istanbul ignore next */ []));
|
|
9868
|
+
_idleCls = computed(() => `${NAV_ITEM_BASE} ${this._typography()} ${this._geom()}`, ...(ngDevMode ? [{ debugName: "_idleCls" }] : /* istanbul ignore next */ []));
|
|
9868
9869
|
_activeCls = computed(() => {
|
|
9869
9870
|
const t = resolveColor(this._resolved().color);
|
|
9870
|
-
return `${NAV_ITEM_BASE} ${this._typography()} ${this._geom()} ${t.textSubtle}
|
|
9871
|
+
return `${NAV_ITEM_BASE} ${this._typography()} ${this._geom()} ${t.textSubtle}`;
|
|
9871
9872
|
}, ...(ngDevMode ? [{ debugName: "_activeCls" }] : /* istanbul ignore next */ []));
|
|
9872
9873
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9873
9874
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxMenuItemComponent, isStandalone: true, selector: "clx-menu-item", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, nested: { classPropertyName: "nested", publicName: "nested", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, routerLinkActiveOptions: { classPropertyName: "routerLinkActiveOptions", publicName: "routerLinkActiveOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { classAttribute: "block" }, ngImport: i0, template: `
|