codexly-ui 0.6.0 → 0.6.2
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.
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
@source inline("shadow-none shadow-sm shadow-md shadow-lg shadow-xl shadow-2xl");
|
|
8
8
|
|
|
9
9
|
/* plain (no opacity) tokens: bg, bgSubtle, text, textSubtle, border, borderLight,
|
|
10
|
-
hoverBg, hoverText*, hoverBorder*, focus:border, focus-within:border, focus-visible:ring
|
|
11
|
-
|
|
10
|
+
hoverBg, hoverText*, hoverBorder*, focus:border, focus-within:border, focus-visible:ring.
|
|
11
|
+
border-t is included for ClxSpinnerComponent, which derives its spinning arc from
|
|
12
|
+
resolveColor().border by replacing "border-" with "border-t-" at runtime. */
|
|
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}");
|
|
12
14
|
|
|
13
15
|
/* hoverBgMuted: hover:bg-{c}-{s}/10 */
|
|
14
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");
|
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -3346,9 +3346,19 @@ class ClxNumberComponent {
|
|
|
3346
3346
|
_handleInput(event) {
|
|
3347
3347
|
const raw = event.target.value;
|
|
3348
3348
|
const num = raw === '' ? 0 : parseFloat(raw);
|
|
3349
|
-
if (
|
|
3350
|
-
|
|
3351
|
-
|
|
3349
|
+
if (isNaN(num))
|
|
3350
|
+
return;
|
|
3351
|
+
let clamped = num;
|
|
3352
|
+
if (this.min() !== null)
|
|
3353
|
+
clamped = Math.max(clamped, this.min());
|
|
3354
|
+
if (this.max() !== null)
|
|
3355
|
+
clamped = Math.min(clamped, this.max());
|
|
3356
|
+
this._value.set(clamped);
|
|
3357
|
+
this._onChange(clamped);
|
|
3358
|
+
// Reflect the clamp back into the native input immediately — otherwise the DOM would keep
|
|
3359
|
+
// showing the raw out-of-range digits the user typed until blur re-renders the value.
|
|
3360
|
+
if (clamped !== num) {
|
|
3361
|
+
event.target.value = String(clamped);
|
|
3352
3362
|
}
|
|
3353
3363
|
}
|
|
3354
3364
|
_handleBlur() {
|