@thecb/components 7.13.4-beta.1 → 7.13.4-beta.2

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
@@ -54,6 +54,8 @@ interface CardProps {
54
54
  borderRadius?: string;
55
55
  width?: string;
56
56
  padding?: string;
57
+ stackStyles?: string;
58
+ coverStylse?: string;
57
59
  }
58
60
 
59
61
  declare const Card: React.FC<Expand<CardProps> &
package/dist/index.esm.js CHANGED
@@ -37967,6 +37967,10 @@ var Card = function Card(_ref) {
37967
37967
  themeValues = _ref.themeValues,
37968
37968
  _ref$width = _ref.width,
37969
37969
  width = _ref$width === void 0 ? "276px" : _ref$width,
37970
+ _ref$stackStyles = _ref.stackStyles,
37971
+ stackStyles = _ref$stackStyles === void 0 ? "" : _ref$stackStyles,
37972
+ _ref$coverStyles = _ref.coverStyles,
37973
+ coverStyles = _ref$coverStyles === void 0 ? "" : _ref$coverStyles,
37970
37974
  children = _ref.children;
37971
37975
  var hasImage = Image || imgSrc;
37972
37976
  var numberOfChildren = (Array.isArray(children) ? children.length : 1) + (text ? 1 : 0) + (hasImage ? 1 : 0) + (headerText ? 1 : 0);
@@ -37980,90 +37984,13 @@ var Card = function Card(_ref) {
37980
37984
  extraStyles: extraStyles
37981
37985
  }, /*#__PURE__*/React.createElement(Cover, {
37982
37986
  singleChild: true,
37983
- fillCenter: true
37984
- }, /*#__PURE__*/React.createElement(Stack, {
37985
- fullHeight: true,
37986
- childGap: "0",
37987
- bottomItem: numberOfChildren
37988
- }, headerText && /*#__PURE__*/React.createElement(CardHeader, {
37989
- headerText: headerText,
37990
- headerColor: themeValues.headerColor,
37991
- headerVariant: headerVariant,
37992
- backgroundColor: themeValues.headerBackgroundColor,
37993
- borderRadius: borderRadius,
37994
- padding: padding,
37995
- as: headerAs
37996
- }), Image && !imgSrc && /*#__PURE__*/React.createElement(Box, {
37997
- minHeight: imgHeight,
37998
- padding: "0",
37999
- background: themeValues.imageBackgroundColor
38000
- }, /*#__PURE__*/React.createElement(Cover, {
38001
- minHeight: imgHeight,
38002
- singleChild: true
38003
- }, /*#__PURE__*/React.createElement(Center, {
38004
- intrinsic: true
38005
- }, /*#__PURE__*/React.createElement(Image, {
38006
- alt: imgAltText
38007
- })))), imgSrc && /*#__PURE__*/React.createElement(CardImage, {
38008
- height: imgHeight,
38009
- objectFit: imgObjectFit,
38010
- backgroundColor: themeValues.imageBackgroundColor,
38011
- src: imgSrc,
38012
- alt: imgAltText
38013
- }), text && /*#__PURE__*/React.createElement(CardText$1, {
38014
- padding: padding,
38015
- titleText: titleText,
38016
- text: text,
38017
- titleVariant: titleVariant
38018
- }), children)));
38019
- };
38020
-
38021
- var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$x);
38022
-
38023
- var CardAlt = function CardAlt(_ref) {
38024
- var _ref$borderRadius = _ref.borderRadius,
38025
- borderRadius = _ref$borderRadius === void 0 ? "4px" : _ref$borderRadius,
38026
- extraStyles = _ref.extraStyles,
38027
- _ref$headerAs = _ref.headerAs,
38028
- headerAs = _ref$headerAs === void 0 ? "h2" : _ref$headerAs,
38029
- headerText = _ref.headerText,
38030
- _ref$headerVariant = _ref.headerVariant,
38031
- headerVariant = _ref$headerVariant === void 0 ? "small" : _ref$headerVariant,
38032
- imgSrc = _ref.imgSrc,
38033
- Image = _ref.Image,
38034
- _ref$imgHeight = _ref.imgHeight,
38035
- imgHeight = _ref$imgHeight === void 0 ? "150px" : _ref$imgHeight,
38036
- _ref$imgObjectFit = _ref.imgObjectFit,
38037
- imgObjectFit = _ref$imgObjectFit === void 0 ? "none" : _ref$imgObjectFit,
38038
- imgAltText = _ref.imgAltText,
38039
- _ref$padding = _ref.padding,
38040
- padding = _ref$padding === void 0 ? "24px" : _ref$padding,
38041
- text = _ref.text,
38042
- titleText = _ref.titleText,
38043
- _ref$titleVariant = _ref.titleVariant,
38044
- titleVariant = _ref$titleVariant === void 0 ? "small" : _ref$titleVariant,
38045
- themeValues = _ref.themeValues,
38046
- _ref$width = _ref.width,
38047
- width = _ref$width === void 0 ? "276px" : _ref$width,
38048
- children = _ref.children;
38049
- var hasImage = Image || imgSrc;
38050
- var numberOfChildren = (Array.isArray(children) ? children.length : 1) + (text ? 1 : 0) + (hasImage ? 1 : 0) + (headerText ? 1 : 0);
38051
- return /*#__PURE__*/React.createElement(BoxWithShadow$1, {
38052
- variant: "baseStandard",
38053
- background: themeValues.backgroundColor,
38054
- borderRadius: borderRadius,
38055
- padding: "0",
38056
- margin: "0",
38057
- minWidth: width,
38058
- extraStyles: extraStyles
38059
- }, /*#__PURE__*/React.createElement(Cover, {
38060
- singleChild: true,
38061
- fillCenter: true
37987
+ fillCenter: true,
37988
+ extraStyles: coverStyles
38062
37989
  }, /*#__PURE__*/React.createElement(Stack, {
38063
37990
  fullHeight: true,
38064
37991
  childGap: "0",
38065
37992
  bottomItem: numberOfChildren,
38066
- direction: "row"
37993
+ extraStyles: stackStyles
38067
37994
  }, headerText && /*#__PURE__*/React.createElement(CardHeader, {
38068
37995
  headerText: headerText,
38069
37996
  headerColor: themeValues.headerColor,
@@ -38097,7 +38024,7 @@ var CardAlt = function CardAlt(_ref) {
38097
38024
  }), children)));
38098
38025
  };
38099
38026
 
38100
- var CardAlt$1 = themeComponent(withWindowSize(CardAlt), "CardAlt", fallbackValues$x);
38027
+ var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$x);
38101
38028
 
38102
38029
  var fontFamily$6 = "Public Sans, sans-serif";
38103
38030
  var activeColor$6 = MATISSE_BLUE;
@@ -50100,5 +50027,5 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
50100
50027
 
50101
50028
  var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$R));
50102
50029
 
50103
- export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowUpCircleIconSmall, AutopayOnIcon, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CardAlt$1 as CardAlt, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, Loading, LoadingLine, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, PointOfSaleImage, Popover$1 as Popover, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RevenueManagementImage, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading_styled as TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$5 as constants, createPartialAmountFormState, index$4 as util, withWindowSize };
50030
+ export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowUpCircleIconSmall, AutopayOnIcon, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, Loading, LoadingLine, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, PointOfSaleImage, Popover$1 as Popover, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RevenueManagementImage, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading_styled as TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$5 as constants, createPartialAmountFormState, index$4 as util, withWindowSize };
50104
50031
  //# sourceMappingURL=index.esm.js.map