@thecb/components 8.4.6 → 8.4.7-beta.1

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/index.d.ts CHANGED
@@ -814,6 +814,27 @@ interface ParagraphProps {
814
814
  declare const Paragraph: React.FC<Expand<ParagraphProps> &
815
815
  React.HTMLAttributes<HTMLElement>>;
816
816
 
817
+ interface Item {
818
+ name: string;
819
+ value: string;
820
+ }
821
+ interface SearchableSelectProps {
822
+ items: Item[];
823
+ selectedItems: Item[];
824
+ allSelected: boolean;
825
+ toggleSelectAllItems: (bool: boolean) => void;
826
+ selectItem: (item: Item) => void;
827
+ fields: {
828
+ searchTerm: Field;
829
+ };
830
+ actions: FieldActions;
831
+ disabled: boolean;
832
+ placeholder: string;
833
+ }
834
+
835
+ declare const SearchableSelect: React.FC<Expand<SearchableSelectProps> &
836
+ React.HTMLAttributes<HTMLElement>>;
837
+
817
838
  interface SpinnerProps {
818
839
  size?: string;
819
840
  centerSpinner?: boolean;
@@ -1005,7 +1026,7 @@ declare const Popover: React.FC<Expand<PopoverProps> &
1005
1026
  interface RadioOption {
1006
1027
  id: string;
1007
1028
  labelText: string;
1008
- value: string;
1029
+ value: string | boolean;
1009
1030
  }
1010
1031
 
1011
1032
  interface RadioGroupProps {
@@ -1036,5 +1057,5 @@ interface DefaultPageTemplateProps {
1036
1057
  declare const DefaultPageTemplate: React.FC<Expand<DefaultPageTemplateProps> &
1037
1058
  React.HTMLAttributes<HTMLElement>>;
1038
1059
 
1039
- export { AddValidatorAction, Alert, AlertProps, ArrowDownCircleIconSmall, ArrowDownCircleIconSmallProps, ArrowLeftCircleIconMedium, ArrowLeftCircleIconMediumProps, ArrowLeftCircleIconSmall, ArrowLeftCircleIconSmallProps, ArrowRightCircleIconSmall, ArrowRightCircleIconSmallProps, ArrowUpCircleIconSmall, ArrowUpCircleIconSmallProps, BankIconLarge, BankIconLargeProps, Box, BoxProps, ButtonWithAction, ButtonWithActionProps, ButtonWithLink, ButtonWithLinkProps, Card, CardProps, Center, CenterProps, ChargebackIconMedium, ChargebackIconMediumProps, ChargebackIconSmall, ChargebackIconSmallProps, ChargebackReversalIconMedium, ChargebackReversalIconMediumProps, ChargebackReversalIconSmall, ChargebackReversalIconSmallProps, ClearAction, Cluster, ClusterProps, CollapsibleSection, CollapsibleSectionProps, Copyable, CopyableProps, Cover, CoverProps, DefaultPageTemplate, DefaultPageTemplateProps, EditableTable, EditableTableProps, ErrorMessageDictionary, ExternalLink, ExternalLinkProps, Field, FieldActionPayload, FieldActions, FooterWithSubfooter, FooterWithSubfooterProps, FormInput, FormInputProps, FormSelect, FormSelectOption, FormSelectProps, GuidedCheckoutImage, HistoryIconSmall, InternalLink, InternalLinkProps, KioskImage, Loading, LoadingProps, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, PointOfSaleImage, Popover, PopoverProps, ProfileImage, RadioGroup, RadioGroupProps, ReduxAction, RefundIconMedium, RefundIconMediumProps, RefundIconSmall, RefundIconSmallProps, RemoveValidatorAction, RevenueManagementImage, SetAction, Spinner, SpinnerProps, Stack, StackProps, StandardCheckoutImage, SuccessfulIconMedium, SuccessfulIconMediumProps, SuccessfulIconSmall, SuccessfulIconSmallProps, Switcher, SwitcherProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableHead, TableHeadProps, TableHeading, TableHeadingProps, TableListItem, TableListItemProps, TableProps, TableRow, TableRowProps, Text, TextProps, Title, TitleProps, ValidatorFn, XCircleIconMedium, XCircleIconMediumProps, XCircleIconSmall, XCircleIconSmallProps, index_d as constants };
1060
+ export { AddValidatorAction, Alert, AlertProps, ArrowDownCircleIconSmall, ArrowDownCircleIconSmallProps, ArrowLeftCircleIconMedium, ArrowLeftCircleIconMediumProps, ArrowLeftCircleIconSmall, ArrowLeftCircleIconSmallProps, ArrowRightCircleIconSmall, ArrowRightCircleIconSmallProps, ArrowUpCircleIconSmall, ArrowUpCircleIconSmallProps, BankIconLarge, BankIconLargeProps, Box, BoxProps, ButtonWithAction, ButtonWithActionProps, ButtonWithLink, ButtonWithLinkProps, Card, CardProps, Center, CenterProps, ChargebackIconMedium, ChargebackIconMediumProps, ChargebackIconSmall, ChargebackIconSmallProps, ChargebackReversalIconMedium, ChargebackReversalIconMediumProps, ChargebackReversalIconSmall, ChargebackReversalIconSmallProps, ClearAction, Cluster, ClusterProps, CollapsibleSection, CollapsibleSectionProps, Copyable, CopyableProps, Cover, CoverProps, DefaultPageTemplate, DefaultPageTemplateProps, EditableTable, EditableTableProps, ErrorMessageDictionary, ExternalLink, ExternalLinkProps, Field, FieldActionPayload, FieldActions, FooterWithSubfooter, FooterWithSubfooterProps, FormInput, FormInputProps, FormSelect, FormSelectOption, FormSelectProps, GuidedCheckoutImage, HistoryIconSmall, InternalLink, InternalLinkProps, KioskImage, Loading, LoadingProps, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, PointOfSaleImage, Popover, PopoverProps, ProfileImage, RadioGroup, RadioGroupProps, ReduxAction, RefundIconMedium, RefundIconMediumProps, RefundIconSmall, RefundIconSmallProps, RemoveValidatorAction, RevenueManagementImage, SearchableSelect, SearchableSelectProps, SetAction, Spinner, SpinnerProps, Stack, StackProps, StandardCheckoutImage, SuccessfulIconMedium, SuccessfulIconMediumProps, SuccessfulIconSmall, SuccessfulIconSmallProps, Switcher, SwitcherProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableHead, TableHeadProps, TableHeading, TableHeadingProps, TableListItem, TableListItemProps, TableProps, TableRow, TableRowProps, Text, TextProps, Title, TitleProps, ValidatorFn, XCircleIconMedium, XCircleIconMediumProps, XCircleIconSmall, XCircleIconSmallProps, index_d as constants };
1040
1061
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "8.4.6",
3
+ "version": "8.4.7-beta.1",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -12,6 +12,7 @@ export * from "./nav-footer";
12
12
  export * from "./nav-header";
13
13
  export * from "./nav-tabs";
14
14
  export * from "./paragraph";
15
+ export * from "./searchable-select";
15
16
  export * from "./spinner";
16
17
  export * from "./table";
17
18
  export * from "./text";
@@ -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>>;
@@ -5,7 +5,7 @@ import { Field, FieldActions } from "../../../types/common";
5
5
  interface RadioOption {
6
6
  id: string;
7
7
  labelText: string;
8
- value: string;
8
+ value: string | boolean;
9
9
  }
10
10
 
11
11
  export interface RadioGroupProps {