ngx-com 0.1.12 → 0.1.14
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/ngx-com-components-dropdown.mjs +7 -0
- package/fesm2022/ngx-com-components-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-com-components-form-field.mjs +35 -4
- package/fesm2022/ngx-com-components-form-field.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngx-com-components-dropdown.d.ts +1 -0
- package/types/ngx-com-components-form-field.d.ts +31 -1
|
@@ -69,6 +69,7 @@ const dropdownTriggerVariants = cva([
|
|
|
69
69
|
'shadow-none',
|
|
70
70
|
'focus-visible:outline-none',
|
|
71
71
|
'rounded-none',
|
|
72
|
+
'disabled:bg-transparent',
|
|
72
73
|
],
|
|
73
74
|
},
|
|
74
75
|
size: {
|
|
@@ -432,10 +433,15 @@ const dropdownChevronVariants = cva([
|
|
|
432
433
|
true: ['rotate-180'],
|
|
433
434
|
false: ['rotate-0'],
|
|
434
435
|
},
|
|
436
|
+
disabled: {
|
|
437
|
+
true: 'text-disabled-foreground',
|
|
438
|
+
false: '',
|
|
439
|
+
},
|
|
435
440
|
},
|
|
436
441
|
defaultVariants: {
|
|
437
442
|
size: 'default',
|
|
438
443
|
open: false,
|
|
444
|
+
disabled: false,
|
|
439
445
|
},
|
|
440
446
|
});
|
|
441
447
|
/**
|
|
@@ -1724,6 +1730,7 @@ class ComDropdown {
|
|
|
1724
1730
|
return dropdownChevronVariants({
|
|
1725
1731
|
size: this.size(),
|
|
1726
1732
|
open: this.isOpen(),
|
|
1733
|
+
disabled: this.disabled(),
|
|
1727
1734
|
});
|
|
1728
1735
|
}, ...(ngDevMode ? [{ debugName: "chevronClasses" }] : []));
|
|
1729
1736
|
/** Computed clear button classes. */
|