@thecb/components 8.3.0 → 8.3.1-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.esm.js CHANGED
@@ -12725,7 +12725,7 @@ var hoverColor = {
12725
12725
  whiteSecondary: WHITE,
12726
12726
  whitePrimary: WHITE
12727
12727
  };
12728
- var activeBackgroundColor = {
12728
+ var activeBackgroundColor$1 = {
12729
12729
  primary: PEACOCK_BLUE,
12730
12730
  secondary: "#B8D5E1",
12731
12731
  back: TRANSPARENT,
@@ -12779,7 +12779,7 @@ var fallbackValues$1 = {
12779
12779
  hoverBackgroundColor: hoverBackgroundColor,
12780
12780
  hoverBorderColor: hoverBorderColor,
12781
12781
  hoverColor: hoverColor,
12782
- activeBackgroundColor: activeBackgroundColor,
12782
+ activeBackgroundColor: activeBackgroundColor$1,
12783
12783
  activeBorderColor: activeBorderColor,
12784
12784
  activeColor: activeColor
12785
12785
  };
@@ -19700,17 +19700,27 @@ var fallbackValues$9 = {
19700
19700
  hover: hover
19701
19701
  };
19702
19702
 
19703
+
19704
+
19705
+ var index$4 = /*#__PURE__*/Object.freeze({
19706
+ __proto__: null,
19707
+ colors: colors,
19708
+ fontWeights: style_constants
19709
+ });
19710
+
19703
19711
  var fontFamily$2 = {
19704
19712
  primary: "Public Sans",
19705
19713
  secondary: "Open Sans"
19706
19714
  };
19707
19715
  var hoverColor$2 = "#116285";
19708
19716
  var activeColor$3 = "#0E506D";
19717
+ var activeBackgroundColor$2 = INFO_BLUE;
19709
19718
  var externalLinkColor = "#15749D";
19710
19719
  var fallbackValues$a = {
19711
19720
  fontFamily: fontFamily$2,
19712
19721
  hoverColor: hoverColor$2,
19713
19722
  activeColor: activeColor$3,
19723
+ activeBackgroundColor: activeBackgroundColor$2,
19714
19724
  externalLinkColor: externalLinkColor
19715
19725
  };
19716
19726
 
@@ -19824,7 +19834,7 @@ var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
19824
19834
  })).withConfig({
19825
19835
  displayName: "InternalLinkstyled__StyledInternalLink",
19826
19836
  componentId: "sc-cuqxud-0"
19827
- })(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";}", ""], function (_ref2) {
19837
+ })(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";background-color:", ";}", ""], function (_ref2) {
19828
19838
  var color = _ref2.color,
19829
19839
  active = _ref2.active,
19830
19840
  activeColor = _ref2.activeColor;
@@ -19851,7 +19861,10 @@ var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
19851
19861
  var activeColor = _ref9.activeColor;
19852
19862
  return activeColor;
19853
19863
  }, function (_ref10) {
19854
- var extrastyles = _ref10.extrastyles;
19864
+ var activeBackgroundColor = _ref10.activeBackgroundColor;
19865
+ return activeBackgroundColor;
19866
+ }, function (_ref11) {
19867
+ var extrastyles = _ref11.extrastyles;
19855
19868
  return extrastyles;
19856
19869
  });
19857
19870
  /* eslint-enable no-unused-vars */
@@ -21502,11 +21515,13 @@ _curry2(function test(pattern, str) {
21502
21515
 
21503
21516
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
21504
21517
 
21505
- var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21518
+ var _excluded$m = ["url", "active", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21506
21519
 
21507
21520
  var ButtonWithLink = function ButtonWithLink(_ref) {
21508
21521
  var _ref$url = _ref.url,
21509
21522
  url = _ref$url === void 0 ? "/" : _ref$url,
21523
+ _ref$active = _ref.active,
21524
+ active = _ref$active === void 0 ? false : _ref$active,
21510
21525
  _ref$disabled = _ref.disabled,
21511
21526
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21512
21527
  _ref$fileLink = _ref.fileLink,
@@ -21521,6 +21536,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21521
21536
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
21522
21537
  var children = _ref2.children,
21523
21538
  url = _ref2.url,
21539
+ active = _ref2.active,
21524
21540
  disabled = _ref2.disabled,
21525
21541
  newTab = _ref2.newTab,
21526
21542
  dataQa = _ref2.dataQa,
@@ -21538,6 +21554,8 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21538
21554
  dataQa: dataQa
21539
21555
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null))) : /*#__PURE__*/React.createElement(InternalLink, {
21540
21556
  to: url,
21557
+ active: active,
21558
+ activeBackgroundColor: activeBackgroundColor,
21541
21559
  tabIndex: "-1",
21542
21560
  dataQa: dataQa,
21543
21561
  extraStyles: extraStyles
@@ -21546,6 +21564,8 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21546
21564
 
21547
21565
  return /*#__PURE__*/React.createElement(ButtonWithLinkWrapper, {
21548
21566
  url: url,
21567
+ active: active,
21568
+ activeBackgroundColor: activeBackgroundColor,
21549
21569
  disabled: disabled,
21550
21570
  newTab: newTab,
21551
21571
  extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
@@ -25359,7 +25379,7 @@ var useOutsideClickHook = function useOutsideClickHook(handler) {
25359
25379
 
25360
25380
 
25361
25381
 
25362
- var index$4 = /*#__PURE__*/Object.freeze({
25382
+ var index$5 = /*#__PURE__*/Object.freeze({
25363
25383
  __proto__: null,
25364
25384
  formats: formats,
25365
25385
  general: general,
@@ -38183,14 +38203,6 @@ var NavTabs = function NavTabs(_ref) {
38183
38203
  }, tabs)));
38184
38204
  };
38185
38205
 
38186
-
38187
-
38188
- var index$5 = /*#__PURE__*/Object.freeze({
38189
- __proto__: null,
38190
- colors: colors,
38191
- fontWeights: style_constants
38192
- });
38193
-
38194
38206
  var shineFrames = keyframes$3(["{0{background-position:0 0;}20%{background-position:100% 100%;}100%{background-position:100% 100%;}}"]);
38195
38207
  var LoadingPill = styled.div.withConfig({
38196
38208
  displayName: "LoadingPillstyled__LoadingPill",
@@ -47511,11 +47523,11 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
47511
47523
  var arrowColor = WHITE;
47512
47524
  var numberColor = MATISSE_BLUE;
47513
47525
  var hoverBackgroundColor$2 = ALABASTER_WHITE;
47514
- var activeBackgroundColor$1 = WHITE;
47526
+ var activeBackgroundColor$3 = WHITE;
47515
47527
  var activeColor$9 = MATISSE_BLUE;
47516
47528
  var fallbackValues$L = {
47517
47529
  activeColor: activeColor$9,
47518
- activeBackgroundColor: activeBackgroundColor$1,
47530
+ activeBackgroundColor: activeBackgroundColor$3,
47519
47531
  arrowColor: arrowColor,
47520
47532
  hoverBackgroundColor: hoverBackgroundColor$2,
47521
47533
  numberColor: numberColor
@@ -50132,5 +50144,5 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
50132
50144
 
50133
50145
  var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$T));
50134
50146
 
50135
- 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, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, 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$1 as 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 };
50147
+ 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, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, 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$1 as 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$4 as constants, createPartialAmountFormState, index$5 as util, withWindowSize };
50136
50148
  //# sourceMappingURL=index.esm.js.map