@marimo-team/frontend 0.23.10-dev26 → 0.23.10-dev27
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/assets/JsonOutput-BDXmjEj9.js +53 -0
- package/dist/assets/{add-connection-dialog-BGaI0GCh.js → add-connection-dialog-T9Z5voxY.js} +1 -1
- package/dist/assets/{agent-panel-DHmaD72L.js → agent-panel-KWjanOTZ.js} +1 -1
- package/dist/assets/{cell-editor-B3mTCRIX.js → cell-editor-LaoP9GSh.js} +1 -1
- package/dist/assets/{column-preview-Bqp95o1c.js → column-preview-CSZ9RgJ8.js} +1 -1
- package/dist/assets/{command-palette-B9hOe2N3.js → command-palette-w_8Xo74m.js} +1 -1
- package/dist/assets/{edit-page-BF2rqAo0.js → edit-page-COOCUoYP.js} +5 -5
- package/dist/assets/{file-explorer-panel-DbV2PFVU.js → file-explorer-panel-lBLLgjMq.js} +4 -4
- package/dist/assets/{form-B_6lxOn3.js → form-DKdvoZxk.js} +2 -2
- package/dist/assets/{hooks-BVRBF3gQ.js → hooks-BKLlyDAs.js} +1 -1
- package/dist/assets/index-DQ1e8BSW.js +38 -0
- package/dist/assets/{layout-BT7gl970.js → layout-B5MRVsVq.js} +4 -4
- package/dist/assets/{panels-KoIpjmfi.js → panels-uc-7IiOR.js} +1 -1
- package/dist/assets/{reveal-component-d0AJhiPz.js → reveal-component-C65H4dfJ.js} +1 -1
- package/dist/assets/{run-page-BwB4a_rF.js → run-page-BMwyeBi9.js} +1 -1
- package/dist/assets/{scratchpad-panel-BCgwBjOU.js → scratchpad-panel-COwpb3AK.js} +1 -1
- package/dist/assets/{session-panel-CjbHqSx7.js → session-panel-Cn1bujIW.js} +1 -1
- package/dist/assets/{useNotebookActions-CcvTFFvC.js → useNotebookActions-C3Vj2qZ-.js} +1 -1
- package/dist/index.html +4 -4
- package/package.json +1 -1
- package/src/components/data-table/filter-by-values-picker.tsx +39 -17
- package/src/components/data-table/filter-pills.tsx +1 -1
- package/src/components/ui/combobox.tsx +51 -32
- package/src/components/ui/select-core/__tests__/use-select-list.test.ts +294 -0
- package/src/components/ui/select-core/__tests__/utils.test.ts +222 -0
- package/src/components/ui/select-core/index.ts +16 -0
- package/src/components/ui/select-core/option-row.tsx +33 -0
- package/src/components/ui/select-core/render-slot.ts +20 -0
- package/src/components/ui/select-core/select-list.tsx +248 -0
- package/src/components/ui/select-core/types.ts +44 -0
- package/src/components/ui/select-core/use-select-list.ts +347 -0
- package/src/components/ui/select-core/utils.ts +121 -0
- package/src/plugins/impl/MultiselectPlugin.tsx +19 -142
- package/src/plugins/impl/SearchableSelect.tsx +16 -97
- package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +5 -2
- package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +1 -1
- package/dist/assets/JsonOutput-BYEhZqb8.js +0 -53
- package/dist/assets/index-BIqgYS3N.js +0 -38
- package/src/plugins/impl/multiselectFilterFn.tsx +0 -22
- /package/src/components/{data-table → ui}/value-chips.tsx +0 -0
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* We override the default filter function which focuses on sorting by relevance with a fuzzy-match,
|
|
5
|
-
* instead of filtering out.
|
|
6
|
-
* The default filter function is `command-score`.
|
|
7
|
-
*
|
|
8
|
-
* Our filter function only matches if all words in the value are present in the option.
|
|
9
|
-
* This is more strict than the default, but more lenient than an exact match.
|
|
10
|
-
*
|
|
11
|
-
* Examples:
|
|
12
|
-
* - "foo bar" matches "foo bar"
|
|
13
|
-
* - "bar foo" matches "foo bar"
|
|
14
|
-
* - "foob" does not matches "foo bar"
|
|
15
|
-
*/
|
|
16
|
-
export function multiselectFilterFn(option: string, value: string): number {
|
|
17
|
-
const words = value.split(/\s+/);
|
|
18
|
-
const match = words.every((word) =>
|
|
19
|
-
option.toLowerCase().includes(word.toLowerCase()),
|
|
20
|
-
);
|
|
21
|
-
return match ? 1 : 0;
|
|
22
|
-
}
|
|
File without changes
|