@thecb/components 8.4.6-beta.3 → 8.4.7-beta.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "8.4.6-beta.3",
3
+ "version": "8.4.7-beta.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import Expand from "../../../util/expand";
3
+ import { Field, FieldActions } from "../../../types/common";
4
+
5
+ interface Item {
6
+ name: string;
7
+ value: string;
8
+ }
9
+ export interface SearchableSelectProps {
10
+ items: Item[];
11
+ selectedItems: Item[];
12
+ allSelected: boolean;
13
+ toggleSelectAllItems: (bool: boolean) => void;
14
+ selectItem: (item: Item) => void;
15
+ fields: {
16
+ searchTerm: Field;
17
+ };
18
+ actions: FieldActions;
19
+ disabled: boolean;
20
+ placeholder: string;
21
+ }
22
+
23
+ export const SearchableSelect: React.FC<Expand<SearchableSelectProps> &
24
+ React.HTMLAttributes<HTMLElement>>;
@@ -3,4 +3,4 @@ export * from "./copyable";
3
3
  export * from "./editable-table";
4
4
  export * from "./footer-with-subfooter";
5
5
  export * from "./popover";
6
- export * from "./radio-group";
6
+ export * from "./radio-group";
@@ -20,4 +20,4 @@ export interface RadioGroupProps {
20
20
  }
21
21
 
22
22
  export const RadioGroup: React.FC<Expand<RadioGroupProps> &
23
- React.HTMLAttributes<HTMLElement>>;
23
+ React.HTMLAttributes<HTMLElement>>;