codexly-ui 0.12.0 → 0.12.1
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/fesm2022/codexly-ui.mjs +28 -26
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -12096,31 +12096,33 @@ const TOAST_DEFAULT_ICON = {
|
|
|
12096
12096
|
white: 'info',
|
|
12097
12097
|
};
|
|
12098
12098
|
const c = CLX_COLOR_MAP;
|
|
12099
|
-
// ─── Card background (tinted surface) per type
|
|
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. ──
|
|
12100
12102
|
const TOAST_BG_MAP = {
|
|
12101
|
-
red: c.red.
|
|
12102
|
-
orange: c.orange.
|
|
12103
|
-
amber: c.amber.
|
|
12104
|
-
yellow: c.yellow.
|
|
12105
|
-
lime: c.lime.
|
|
12106
|
-
green: c.green.
|
|
12107
|
-
emerald: c.emerald.
|
|
12108
|
-
teal: c.teal.
|
|
12109
|
-
cyan: c.cyan.
|
|
12110
|
-
sky: c.sky.
|
|
12111
|
-
blue: c.blue.
|
|
12112
|
-
indigo: c.indigo.
|
|
12113
|
-
violet: c.violet.
|
|
12114
|
-
purple: c.purple.
|
|
12115
|
-
fuchsia: c.fuchsia.
|
|
12116
|
-
pink: c.pink.
|
|
12117
|
-
rose: c.rose.
|
|
12118
|
-
slate: c.slate.
|
|
12119
|
-
gray: c.gray.
|
|
12120
|
-
zinc: c.zinc.
|
|
12121
|
-
neutral: c.neutral.
|
|
12122
|
-
stone: c.stone.
|
|
12123
|
-
white: c.white.
|
|
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,
|
|
12124
12126
|
};
|
|
12125
12127
|
// ─── Card border color per type ───────────────────────────────────────────────
|
|
12126
12128
|
const TOAST_BORDER_MAP = {
|
|
@@ -12352,7 +12354,7 @@ class ClxToastComponent {
|
|
|
12352
12354
|
<!-- Toast card -->
|
|
12353
12355
|
<div
|
|
12354
12356
|
#card
|
|
12355
|
-
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"
|
|
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"
|
|
12356
12358
|
[class]="_bgClass() + ' ' + _borderClass()"
|
|
12357
12359
|
(mouseenter)="_onMouseEnter()"
|
|
12358
12360
|
(mouseleave)="_onMouseLeave()"
|
|
@@ -12444,7 +12446,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
12444
12446
|
<!-- Toast card -->
|
|
12445
12447
|
<div
|
|
12446
12448
|
#card
|
|
12447
|
-
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"
|
|
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"
|
|
12448
12450
|
[class]="_bgClass() + ' ' + _borderClass()"
|
|
12449
12451
|
(mouseenter)="_onMouseEnter()"
|
|
12450
12452
|
(mouseleave)="_onMouseLeave()"
|