codexly-ui 0.12.1 → 0.12.3

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.
@@ -7893,7 +7893,7 @@ class ClxDateRangePickerComponent {
7893
7893
  const size = this._sizeConfig();
7894
7894
  const status = this._statusCfg();
7895
7895
  const focus = resolveColor(this._color()).focus;
7896
- const border = this._disabled() ? 'border-gray-200 bg-gray-50' : `${status.border} focus:outline-none ${focus}`;
7896
+ const border = this._disabled() ? 'border-gray-200 bg-gray-50' : `${status.border} bg-clx-surface focus:outline-none ${focus}`;
7897
7897
  const cursor = this._disabled() ? 'cursor-not-allowed opacity-60' : 'cursor-pointer';
7898
7898
  return `relative flex items-stretch ${size.trigger} ${resolveRadius(this._themeSvc.config().borderRadius)} border ${border} ${cursor} overflow-hidden transition-[border-color,box-shadow] duration-200 select-none`;
7899
7899
  }, ...(ngDevMode ? [{ debugName: "_triggerClass" }] : /* istanbul ignore next */ []));
@@ -12096,33 +12096,36 @@ const TOAST_DEFAULT_ICON = {
12096
12096
  white: 'info',
12097
12097
  };
12098
12098
  const c = CLX_COLOR_MAP;
12099
- // ─── Card background (tinted surface) per type — bgMuted is a low-opacity tint
12100
- // (bg-{color}-{shade}/10) so it reads as "tenue" in both light and dark theme,
12101
- // instead of a fixed light shade (bgSubtle) that turns garish on dark surfaces. ──
12099
+ // ─── Card background (tinted surface) per type ────────────────────────────────
12100
+ // Solid, fixed hex pairs (light/dark) instead of a Tailwind shade class the
12101
+ // ClxColor shade system has no per-theme variant (this library themes via
12102
+ // [data-clx-theme], not Tailwind's `dark:` classlist), so a single shade either
12103
+ // looks right in light and washed-out/garish in dark, or vice-versa. Applied as
12104
+ // inline style via [style.background] in the component, not a utility class.
12102
12105
  const TOAST_BG_MAP = {
12103
- red: c.red.bgMuted,
12104
- orange: c.orange.bgMuted,
12105
- amber: c.amber.bgMuted,
12106
- yellow: c.yellow.bgMuted,
12107
- lime: c.lime.bgMuted,
12108
- green: c.green.bgMuted,
12109
- emerald: c.emerald.bgMuted,
12110
- teal: c.teal.bgMuted,
12111
- cyan: c.cyan.bgMuted,
12112
- sky: c.sky.bgMuted,
12113
- blue: c.blue.bgMuted,
12114
- indigo: c.indigo.bgMuted,
12115
- violet: c.violet.bgMuted,
12116
- purple: c.purple.bgMuted,
12117
- fuchsia: c.fuchsia.bgMuted,
12118
- pink: c.pink.bgMuted,
12119
- rose: c.rose.bgMuted,
12120
- slate: c.slate.bgMuted,
12121
- gray: c.gray.bgMuted,
12122
- zinc: c.zinc.bgMuted,
12123
- neutral: c.neutral.bgMuted,
12124
- stone: c.stone.bgMuted,
12125
- white: c.white.bgMuted,
12106
+ red: { light: '#fef2f2', dark: '#2c1315' },
12107
+ orange: { light: '#fff7ed', dark: '#2c1a0a' },
12108
+ amber: { light: '#fffbeb', dark: '#2c2308' },
12109
+ yellow: { light: '#fefce8', dark: '#2b2708' },
12110
+ lime: { light: '#f7fee7', dark: '#1c2708' },
12111
+ green: { light: '#f0fdf4', dark: '#0d2415' },
12112
+ emerald: { light: '#ecfdf5', dark: '#0d2820' },
12113
+ teal: { light: '#f0fdfa', dark: '#0b2824' },
12114
+ cyan: { light: '#ecfeff', dark: '#082a30' },
12115
+ sky: { light: '#f0f9ff', dark: '#0b2431' },
12116
+ blue: { light: '#eff6ff', dark: '#0d2043' },
12117
+ indigo: { light: '#eef2ff', dark: '#1a1a3a' },
12118
+ violet: { light: '#f5f3ff', dark: '#211a3d' },
12119
+ purple: { light: '#faf5ff', dark: '#241a3a' },
12120
+ fuchsia: { light: '#fdf4ff', dark: '#2c1830' },
12121
+ pink: { light: '#fdf2f8', dark: '#2c1521' },
12122
+ rose: { light: '#fff1f2', dark: '#2c1418' },
12123
+ slate: { light: '#f8fafc', dark: '#1e293b' },
12124
+ gray: { light: '#f9fafb', dark: '#1f2937' },
12125
+ zinc: { light: '#fafafa', dark: '#27272a' },
12126
+ neutral: { light: '#fafafa', dark: '#262626' },
12127
+ stone: { light: '#fafaf9', dark: '#292524' },
12128
+ white: { light: '#ffffff', dark: '#1e293b' },
12126
12129
  };
12127
12130
  // ─── Card border color per type ───────────────────────────────────────────────
12128
12131
  const TOAST_BORDER_MAP = {
@@ -12241,6 +12244,7 @@ class ClxToastComponent {
12241
12244
  entry = input.required(...(ngDevMode ? [{ debugName: "entry" }] : /* istanbul ignore next */ []));
12242
12245
  dismiss = output();
12243
12246
  _animate = inject(ClxAnimateService);
12247
+ _themeSvc = inject(ClxThemeService);
12244
12248
  _el = inject((ElementRef));
12245
12249
  _zone;
12246
12250
  constructor() {
@@ -12255,7 +12259,7 @@ class ClxToastComponent {
12255
12259
  _destroyed = false;
12256
12260
  // ─── Derived visuals ──────────────────────────────────────────────────────
12257
12261
  _icon = computed(() => this.entry().icon ?? TOAST_DEFAULT_ICON[this.entry().type], ...(ngDevMode ? [{ debugName: "_icon" }] : /* istanbul ignore next */ []));
12258
- _bgClass = computed(() => TOAST_BG_MAP[this.entry().type], ...(ngDevMode ? [{ debugName: "_bgClass" }] : /* istanbul ignore next */ []));
12262
+ _bgColor = computed(() => this._themeSvc.isDark() ? TOAST_BG_MAP[this.entry().type].dark : TOAST_BG_MAP[this.entry().type].light, ...(ngDevMode ? [{ debugName: "_bgColor" }] : /* istanbul ignore next */ []));
12259
12263
  _borderClass = computed(() => TOAST_BORDER_MAP[this.entry().type], ...(ngDevMode ? [{ debugName: "_borderClass" }] : /* istanbul ignore next */ []));
12260
12264
  _iconBgClass = computed(() => TOAST_ICON_BG_MAP[this.entry().type], ...(ngDevMode ? [{ debugName: "_iconBgClass" }] : /* istanbul ignore next */ []));
12261
12265
  _colorClass = computed(() => TOAST_COLOR_MAP[this.entry().type], ...(ngDevMode ? [{ debugName: "_colorClass" }] : /* istanbul ignore next */ []));
@@ -12354,8 +12358,9 @@ class ClxToastComponent {
12354
12358
  <!-- Toast card -->
12355
12359
  <div
12356
12360
  #card
12357
- class="clx-toast-card relative flex items-start gap-3.5 w-full bg-clx-surface backdrop-blur-md shadow-lg rounded-xl border px-4 py-3.5 overflow-hidden"
12358
- [class]="_bgClass() + ' ' + _borderClass()"
12361
+ class="clx-toast-card relative flex items-start gap-3.5 w-full backdrop-blur-md shadow-lg rounded-xl border px-4 py-3.5 overflow-hidden"
12362
+ [class]="_borderClass()"
12363
+ [style.background]="_bgColor()"
12359
12364
  (mouseenter)="_onMouseEnter()"
12360
12365
  (mouseleave)="_onMouseLeave()"
12361
12366
  >
@@ -12446,8 +12451,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
12446
12451
  <!-- Toast card -->
12447
12452
  <div
12448
12453
  #card
12449
- class="clx-toast-card relative flex items-start gap-3.5 w-full bg-clx-surface backdrop-blur-md shadow-lg rounded-xl border px-4 py-3.5 overflow-hidden"
12450
- [class]="_bgClass() + ' ' + _borderClass()"
12454
+ class="clx-toast-card relative flex items-start gap-3.5 w-full backdrop-blur-md shadow-lg rounded-xl border px-4 py-3.5 overflow-hidden"
12455
+ [class]="_borderClass()"
12456
+ [style.background]="_bgColor()"
12451
12457
  (mouseenter)="_onMouseEnter()"
12452
12458
  (mouseleave)="_onMouseLeave()"
12453
12459
  >