@johly/bits-ui 2.18.10 → 2.18.11

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.
@@ -91,12 +91,13 @@ function createSelectableMenuInternal({ column, actions, filter, }) {
91
91
  label: option.label,
92
92
  icon: option.icon,
93
93
  count: counts?.get(option.value) ?? option.count ?? 0,
94
+ keywords: option.keywords,
94
95
  };
95
96
  return {
96
97
  kind: "checkbox-item",
97
98
  id: option.value,
98
99
  label: option.label,
99
- keywords: [option.value, option.label],
100
+ keywords: [option.value, option.label, ...(option.keywords ?? [])],
100
101
  checked: selected,
101
102
  onCheckedChange: (checked) => {
102
103
  if (checked) {
@@ -20,6 +20,7 @@ export interface ColumnOption {
20
20
  value: string;
21
21
  icon?: FilterIcon;
22
22
  count?: number;
23
+ keywords?: string[];
23
24
  }
24
25
  export interface ColumnOptionExtended extends ColumnOption {
25
26
  selected?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@johly/bits-ui",
3
- "version": "2.18.10",
3
+ "version": "2.18.11",
4
4
  "license": "MIT",
5
5
  "repository": "github:johanohly/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",