@thecb/components 8.4.7-beta.1 → 8.4.7-beta.3
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
|
@@ -429,6 +429,11 @@ interface FormSelectOption {
|
|
|
429
429
|
value?: string;
|
|
430
430
|
}
|
|
431
431
|
|
|
432
|
+
interface SearchableSelectOption {
|
|
433
|
+
name?: string;
|
|
434
|
+
value?: string;
|
|
435
|
+
}
|
|
436
|
+
|
|
432
437
|
interface ErrorMessageDictionary {
|
|
433
438
|
[fieldName: string]: string;
|
|
434
439
|
}
|
|
@@ -814,21 +819,21 @@ interface ParagraphProps {
|
|
|
814
819
|
declare const Paragraph: React.FC<Expand<ParagraphProps> &
|
|
815
820
|
React.HTMLAttributes<HTMLElement>>;
|
|
816
821
|
|
|
817
|
-
interface Item {
|
|
818
|
-
name: string;
|
|
819
|
-
value: string;
|
|
820
|
-
}
|
|
821
822
|
interface SearchableSelectProps {
|
|
822
|
-
items:
|
|
823
|
-
selectedItems:
|
|
823
|
+
items: SearchableSelectOption[];
|
|
824
|
+
selectedItems: SearchableSelectOption[];
|
|
824
825
|
allSelected: boolean;
|
|
825
|
-
toggleSelectAllItems: (
|
|
826
|
-
selectItem: (item:
|
|
826
|
+
toggleSelectAllItems: (isSelectAll: boolean) => void;
|
|
827
|
+
selectItem: (item: SearchableSelectOption) => void;
|
|
827
828
|
fields: {
|
|
828
829
|
searchTerm: Field;
|
|
829
830
|
};
|
|
830
|
-
actions:
|
|
831
|
-
|
|
831
|
+
actions: {
|
|
832
|
+
fields: {
|
|
833
|
+
searchTerm: FieldActions;
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
disabled?: boolean;
|
|
832
837
|
placeholder: string;
|
|
833
838
|
}
|
|
834
839
|
|
|
@@ -1057,5 +1062,5 @@ interface DefaultPageTemplateProps {
|
|
|
1057
1062
|
declare const DefaultPageTemplate: React.FC<Expand<DefaultPageTemplateProps> &
|
|
1058
1063
|
React.HTMLAttributes<HTMLElement>>;
|
|
1059
1064
|
|
|
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 };
|
|
1065
|
+
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, SearchableSelectOption, 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 };
|
|
1061
1066
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Expand from "../../../util/expand";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
Field,
|
|
5
|
+
FieldActions,
|
|
6
|
+
SearchableSelectOption
|
|
7
|
+
} from "../../../types/common";
|
|
4
8
|
|
|
5
|
-
interface Item {
|
|
6
|
-
name: string;
|
|
7
|
-
value: string;
|
|
8
|
-
}
|
|
9
9
|
export interface SearchableSelectProps {
|
|
10
|
-
items:
|
|
11
|
-
selectedItems:
|
|
10
|
+
items: SearchableSelectOption[];
|
|
11
|
+
selectedItems: SearchableSelectOption[];
|
|
12
12
|
allSelected: boolean;
|
|
13
|
-
toggleSelectAllItems: (
|
|
14
|
-
selectItem: (item:
|
|
13
|
+
toggleSelectAllItems: (isSelectAll: boolean) => void;
|
|
14
|
+
selectItem: (item: SearchableSelectOption) => void;
|
|
15
15
|
fields: {
|
|
16
16
|
searchTerm: Field;
|
|
17
17
|
};
|
|
18
|
-
actions:
|
|
19
|
-
|
|
18
|
+
actions: {
|
|
19
|
+
fields: {
|
|
20
|
+
searchTerm: FieldActions;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
disabled?: boolean;
|
|
20
24
|
placeholder: string;
|
|
21
25
|
}
|
|
22
26
|
|
|
@@ -2,5 +2,6 @@ export { default as Field } from "./Field";
|
|
|
2
2
|
export { default as ReduxAction } from "./ReduxAction";
|
|
3
3
|
export { default as FieldActions } from "./FieldActions";
|
|
4
4
|
export { default as FormSelectOption } from "./FormSelectOption";
|
|
5
|
+
export { default as SearchableSelectOption } from "./SearchableSelectOption";
|
|
5
6
|
export { default as ErrorMessageDictionary } from "./ErrorMessageDictionary";
|
|
6
7
|
export * from "./FieldActions";
|