@thecb/components 8.0.6-beta.1 → 8.0.6-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
@@ -67,8 +67,8 @@ interface FormInputProps {
67
67
  type?: string;
68
68
  labelTextWhenNoError?: string;
69
69
  errorMessages?: ErrorMessage[];
70
- isNum: boolean;
71
- isEmail: boolean;
70
+ isNum?: boolean;
71
+ isEmail?: boolean;
72
72
  helperModal?: boolean;
73
73
  field?: any;
74
74
  fieldActions?: any;
@@ -86,6 +86,21 @@ interface FormInputProps {
86
86
  declare const FormInput: React.FC<Expand<FormInputProps> &
87
87
  React.HTMLAttributes<HTMLElement>>;
88
88
 
89
+ interface Option {
90
+ text: string;
91
+ value: string | number;
92
+ }
93
+
94
+ interface FormSelectProps {
95
+ dropdownMaxHeight?: string;
96
+ labelTextWhenNoError?: string;
97
+ options?: Option[];
98
+ fieldActions?: any;
99
+ showErrors?: boolean;
100
+ errorMessages?: any;
101
+ field?: any;
102
+ }
103
+
89
104
  interface ArrowDownCircleIconSmallProps {
90
105
  color?: string;
91
106
  iconIndex?: number;
@@ -625,5 +640,5 @@ interface DefaultPageTemplateProps {
625
640
  declare const DefaultPageTemplate: React.FC<Expand<DefaultPageTemplateProps> &
626
641
  React.HTMLAttributes<HTMLElement>>;
627
642
 
628
- export { 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, Cluster, ClusterProps, CollapsibleSection, CollapsibleSectionProps, Copyable, CopyableProps, Cover, CoverProps, DefaultPageTemplate, DefaultPageTemplateProps, EditableTable, EditableTableProps, ExternalLink, ExternalLinkProps, FooterWithSubfooter, FooterWithSubfooterProps, FormInput, FormInputProps, GuidedCheckoutImage, HistoryIconSmall, InternalLink, InternalLinkProps, KioskImage, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, PointOfSaleImage, Popover, PopoverProps, ProfileImage, RefundIconMedium, RefundIconMediumProps, RefundIconSmall, RefundIconSmallProps, RevenueManagementImage, 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, XCircleIconMedium, XCircleIconMediumProps, XCircleIconSmall, XCircleIconSmallProps };
643
+ export { 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, Cluster, ClusterProps, CollapsibleSection, CollapsibleSectionProps, Copyable, CopyableProps, Cover, CoverProps, DefaultPageTemplate, DefaultPageTemplateProps, EditableTable, EditableTableProps, ExternalLink, ExternalLinkProps, FooterWithSubfooter, FooterWithSubfooterProps, FormInput, FormInputProps, FormSelectProps, GuidedCheckoutImage, HistoryIconSmall, InternalLink, InternalLinkProps, KioskImage, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, PointOfSaleImage, Popover, PopoverProps, ProfileImage, RefundIconMedium, RefundIconMediumProps, RefundIconSmall, RefundIconSmallProps, RevenueManagementImage, 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, XCircleIconMedium, XCircleIconMediumProps, XCircleIconSmall, XCircleIconSmallProps };
629
644
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "8.0.6-beta.1",
3
+ "version": "8.0.6-beta.3",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -10,8 +10,8 @@ export interface FormInputProps {
10
10
  type?: string;
11
11
  labelTextWhenNoError?: string;
12
12
  errorMessages?: ErrorMessage[];
13
- isNum: boolean;
14
- isEmail: boolean;
13
+ isNum?: boolean;
14
+ isEmail?: boolean;
15
15
  helperModal?: boolean;
16
16
  field?: any;
17
17
  fieldActions?: any;
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import Expand from "../../../util/expand";
3
+
4
+ interface Option {
5
+ text: string;
6
+ value: string | number;
7
+ }
8
+
9
+ export interface FormSelectProps {
10
+ dropdownMaxHeight?: string;
11
+ labelTextWhenNoError?: string;
12
+ options?: Option[];
13
+ fieldActions?: any;
14
+ showErrors?: boolean;
15
+ errorMessages?: any;
16
+ field?: any;
17
+ }
18
+
19
+ export const FormInput: React.FC<Expand<FormSelectProps> &
20
+ React.HTMLAttributes<HTMLElement>>;
@@ -2,6 +2,7 @@ export * from "./button-with-action";
2
2
  export * from "./button-with-link";
3
3
  export * from "./card";
4
4
  export * from "./form-layouts";
5
+ export * from "./form-select";
5
6
  export * from "./icons";
6
7
  export * from "./layouts";
7
8
  export * from "./link";