yukit-web 0.10.5 → 0.10.6
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/yukit-web.mjs +16 -1
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +1 -1
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -2663,6 +2663,9 @@ const searchInputFieldVariants = cva('', {
|
|
|
2663
2663
|
*
|
|
2664
2664
|
* The focus ring and the invalid-state ring are deliberately left in place: they are feedback, not
|
|
2665
2665
|
* chrome, and a transparent field still has to show where focus is and when it is invalid.
|
|
2666
|
+
*
|
|
2667
|
+
* `collapsible` paints the neutral outline button's surface and border, collapsed and expanded alike, so the
|
|
2668
|
+
* collapsed control reads as that button.
|
|
2666
2669
|
*/
|
|
2667
2670
|
const searchInputGroupVariants = cva('', {
|
|
2668
2671
|
variants: {
|
|
@@ -2670,9 +2673,21 @@ const searchInputGroupVariants = cva('', {
|
|
|
2670
2673
|
true: 'border-transparent bg-transparent dark:bg-transparent has-[[data-slot=input-group-control]:disabled]:bg-transparent dark:has-[[data-slot=input-group-control]:disabled]:bg-transparent',
|
|
2671
2674
|
false: '',
|
|
2672
2675
|
},
|
|
2676
|
+
collapsible: {
|
|
2677
|
+
true: '',
|
|
2678
|
+
false: '',
|
|
2679
|
+
},
|
|
2673
2680
|
},
|
|
2681
|
+
compoundVariants: [
|
|
2682
|
+
{
|
|
2683
|
+
transparent: false,
|
|
2684
|
+
collapsible: true,
|
|
2685
|
+
class: 'border-(--neutrals-outline-accent) bg-(--neutrals-surface) dark:bg-(--neutrals-surface)',
|
|
2686
|
+
},
|
|
2687
|
+
],
|
|
2674
2688
|
defaultVariants: {
|
|
2675
2689
|
transparent: false,
|
|
2690
|
+
collapsible: false,
|
|
2676
2691
|
},
|
|
2677
2692
|
});
|
|
2678
2693
|
/**
|
|
@@ -2791,8 +2806,8 @@ class YuwSearchInputComponent extends YuwTextFieldBase {
|
|
|
2791
2806
|
this._autoId = `yuw-search-input-${++nextYuwSearchInputId}`;
|
|
2792
2807
|
this._focusSelectors = ['input'];
|
|
2793
2808
|
this._open = signal(false, ...(ngDevMode ? [{ debugName: "_open" }] : /* istanbul ignore next */ []));
|
|
2794
|
-
this._classes = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), searchInputGroupVariants({ transparent: this.transparent() }), this.userClass(), 'overflow-hidden'), ...(ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []));
|
|
2795
2809
|
this._collapsible = computed(() => this.collapseFrom() !== undefined, ...(ngDevMode ? [{ debugName: "_collapsible" }] : /* istanbul ignore next */ []));
|
|
2810
|
+
this._classes = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), searchInputGroupVariants({ transparent: this.transparent(), collapsible: this._collapsible() }), this.userClass(), 'overflow-hidden'), ...(ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []));
|
|
2796
2811
|
this._expandButtonClasses = computed(() => searchInputExpandButtonVariants({ size: this.size() }), ...(ngDevMode ? [{ debugName: "_expandButtonClasses" }] : /* istanbul ignore next */ []));
|
|
2797
2812
|
this._fieldClasses = computed(() => searchInputFieldVariants({ collapsible: this._collapsible() }), ...(ngDevMode ? [{ debugName: "_fieldClasses" }] : /* istanbul ignore next */ []));
|
|
2798
2813
|
this._iconClasses = computed(() => searchInputIconVariants({ collapsible: this._collapsible(), size: this.size() }), ...(ngDevMode ? [{ debugName: "_iconClasses" }] : /* istanbul ignore next */ []));
|