design-zystem 1.0.465 → 1.0.466
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/dist/ui/index.d.mts +2 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +1 -1
- package/dist/ui/index.mjs +1 -1
- package/package.json +1 -1
package/dist/ui/index.d.mts
CHANGED
|
@@ -575,6 +575,8 @@ interface SelectOption {
|
|
|
575
575
|
label: string;
|
|
576
576
|
/** Secondary text shown in grey at the right of the option in the list (e.g. a count). */
|
|
577
577
|
hint?: string;
|
|
578
|
+
/** Stays in the list whatever is typed in the search (e.g. an action such as « Saisir une adresse »). */
|
|
579
|
+
pinned?: boolean;
|
|
578
580
|
}
|
|
579
581
|
/** Options listed under a non-selectable heading. */
|
|
580
582
|
interface SelectGroup {
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -575,6 +575,8 @@ interface SelectOption {
|
|
|
575
575
|
label: string;
|
|
576
576
|
/** Secondary text shown in grey at the right of the option in the list (e.g. a count). */
|
|
577
577
|
hint?: string;
|
|
578
|
+
/** Stays in the list whatever is typed in the search (e.g. an action such as « Saisir une adresse »). */
|
|
579
|
+
pinned?: boolean;
|
|
578
580
|
}
|
|
579
581
|
/** Options listed under a non-selectable heading. */
|
|
580
582
|
interface SelectGroup {
|
package/dist/ui/index.js
CHANGED
|
@@ -2720,7 +2720,7 @@ var filterSelectItems = (items, searchTerm) => {
|
|
|
2720
2720
|
return section;
|
|
2721
2721
|
return __spreadProps(__spreadValues({}, section), {
|
|
2722
2722
|
options: section.options.filter(
|
|
2723
|
-
(option) => normalize(option.label).includes(term)
|
|
2723
|
+
(option) => option.pinned || normalize(option.label).includes(term)
|
|
2724
2724
|
)
|
|
2725
2725
|
});
|
|
2726
2726
|
}).filter((section) => section.options.length > 0);
|
package/dist/ui/index.mjs
CHANGED
|
@@ -2503,7 +2503,7 @@ var filterSelectItems = (items, searchTerm) => {
|
|
|
2503
2503
|
return section;
|
|
2504
2504
|
return __spreadProps(__spreadValues({}, section), {
|
|
2505
2505
|
options: section.options.filter(
|
|
2506
|
-
(option) => normalize(option.label).includes(term)
|
|
2506
|
+
(option) => option.pinned || normalize(option.label).includes(term)
|
|
2507
2507
|
)
|
|
2508
2508
|
});
|
|
2509
2509
|
}).filter((section) => section.options.length > 0);
|