@thecb/components 8.3.1-beta.2 → 8.3.1-beta.4

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
@@ -1,7 +1,7 @@
1
1
  import React, { createContext, createElement, PureComponent, forwardRef, Component, cloneElement, Children, useContext, Fragment as Fragment$1, useRef, useState, useLayoutEffect, memo, useEffect as useEffect$1, useMemo, useCallback, isValidElement, createRef } from 'react';
2
2
  import styled, { ThemeContext, css, ThemeProvider, keyframes as keyframes$3 } from 'styled-components';
3
3
  import theme from 'styled-theming';
4
- import { Link, useNavigate, useLocation } from 'react-router-dom';
4
+ import { useMatch, Link, useNavigate, useLocation } from 'react-router-dom';
5
5
  import reactDom from 'react-dom';
6
6
 
7
7
  function ownKeys(object, enumerableOnly) {
@@ -12725,7 +12725,7 @@ var hoverColor = {
12725
12725
  whiteSecondary: WHITE,
12726
12726
  whitePrimary: WHITE
12727
12727
  };
12728
- var activeBackgroundColor$1 = {
12728
+ var activeBackgroundColor = {
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$1,
12782
+ activeBackgroundColor: activeBackgroundColor,
12783
12783
  activeBorderColor: activeBorderColor,
12784
12784
  activeColor: activeColor
12785
12785
  };
@@ -19700,27 +19700,19 @@ 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
-
19711
19703
  var fontFamily$2 = {
19712
19704
  primary: "Public Sans",
19713
19705
  secondary: "Open Sans"
19714
19706
  };
19715
- var hoverColor$2 = "#116285";
19716
- var activeColor$3 = "#0E506D";
19717
- var activeBackgroundColor$2 = INFO_BLUE;
19718
- var externalLinkColor = "#15749D";
19707
+ var hoverColor$2 = SAPPHIRE_BLUE;
19708
+ var activeColor$3 = PEACOCK_BLUE;
19709
+ var activeBackgroundColor$1 = INFO_BLUE;
19710
+ var externalLinkColor = MATISSE_BLUE;
19719
19711
  var fallbackValues$a = {
19720
19712
  fontFamily: fontFamily$2,
19721
19713
  hoverColor: hoverColor$2,
19722
19714
  activeColor: activeColor$3,
19723
- activeBackgroundColor: activeBackgroundColor$2,
19715
+ activeBackgroundColor: activeBackgroundColor$1,
19724
19716
  externalLinkColor: externalLinkColor
19725
19717
  };
19726
19718
 
@@ -19828,13 +19820,15 @@ var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
19828
19820
  extrastyles = _ref.extrastyles,
19829
19821
  props = _objectWithoutProperties(_ref, _excluded$l);
19830
19822
 
19823
+ var match = useMatch();
19824
+ console.log("🚀 ~ file: InternalLink.styled.js:18 ~ match:", match);
19831
19825
  return /*#__PURE__*/React.createElement(Link, _extends({}, props, {
19832
19826
  ref: ref
19833
19827
  }));
19834
19828
  })).withConfig({
19835
19829
  displayName: "InternalLinkstyled__StyledInternalLink",
19836
19830
  componentId: "sc-cuqxud-0"
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) {
19831
+ })(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";background-color:", " ? 'lightblue' :'transparent',&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";background-color:", ";}", ""], function (_ref2) {
19838
19832
  var color = _ref2.color,
19839
19833
  active = _ref2.active,
19840
19834
  activeColor = _ref2.activeColor;
@@ -19854,7 +19848,7 @@ var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
19854
19848
  }, function (_ref7) {
19855
19849
  var margin = _ref7.margin;
19856
19850
  return margin;
19857
- }, function (_ref8) {
19851
+ }, match, function (_ref8) {
19858
19852
  var hoverColor = _ref8.hoverColor;
19859
19853
  return hoverColor;
19860
19854
  }, ROYAL_BLUE, function (_ref9) {
@@ -21515,13 +21509,15 @@ _curry2(function test(pattern, str) {
21515
21509
 
21516
21510
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
21517
21511
 
21518
- var _excluded$m = ["url", "active", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21512
+ var _excluded$m = ["url", "active", "activeBackgroundColor", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
21519
21513
 
21520
21514
  var ButtonWithLink = function ButtonWithLink(_ref) {
21521
21515
  var _ref$url = _ref.url,
21522
21516
  url = _ref$url === void 0 ? "/" : _ref$url,
21523
21517
  _ref$active = _ref.active,
21524
21518
  active = _ref$active === void 0 ? false : _ref$active,
21519
+ _ref$activeBackground = _ref.activeBackgroundColor,
21520
+ activeBackgroundColor = _ref$activeBackground === void 0 ? undefined : _ref$activeBackground,
21525
21521
  _ref$disabled = _ref.disabled,
21526
21522
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21527
21523
  _ref$fileLink = _ref.fileLink,
@@ -21537,6 +21533,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21537
21533
  var children = _ref2.children,
21538
21534
  url = _ref2.url,
21539
21535
  active = _ref2.active,
21536
+ activeBackgroundColor = _ref2.activeBackgroundColor,
21540
21537
  disabled = _ref2.disabled,
21541
21538
  newTab = _ref2.newTab,
21542
21539
  dataQa = _ref2.dataQa,
@@ -22380,22 +22377,22 @@ var process$1 = global_1.process;
22380
22377
  var Deno = global_1.Deno;
22381
22378
  var versions = process$1 && process$1.versions || Deno && Deno.version;
22382
22379
  var v8 = versions && versions.v8;
22383
- var match, version;
22380
+ var match$1, version;
22384
22381
 
22385
22382
  if (v8) {
22386
- match = v8.split('.');
22383
+ match$1 = v8.split('.');
22387
22384
  // in old Chrome, versions of V8 isn't V8 = Chrome / 10
22388
22385
  // but their correct versions are not interesting for us
22389
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
22386
+ version = match$1[0] > 0 && match$1[0] < 4 ? 1 : +(match$1[0] + match$1[1]);
22390
22387
  }
22391
22388
 
22392
22389
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
22393
22390
  // so check `userAgent` even if `.v8` exists, but 0
22394
22391
  if (!version && engineUserAgent) {
22395
- match = engineUserAgent.match(/Edge\/(\d+)/);
22396
- if (!match || match[1] >= 74) {
22397
- match = engineUserAgent.match(/Chrome\/(\d+)/);
22398
- if (match) version = +match[1];
22392
+ match$1 = engineUserAgent.match(/Edge\/(\d+)/);
22393
+ if (!match$1 || match$1[1] >= 74) {
22394
+ match$1 = engineUserAgent.match(/Chrome\/(\d+)/);
22395
+ if (match$1) version = +match$1[1];
22399
22396
  }
22400
22397
  }
22401
22398
 
@@ -25379,7 +25376,7 @@ var useOutsideClickHook = function useOutsideClickHook(handler) {
25379
25376
 
25380
25377
 
25381
25378
 
25382
- var index$5 = /*#__PURE__*/Object.freeze({
25379
+ var index$4 = /*#__PURE__*/Object.freeze({
25383
25380
  __proto__: null,
25384
25381
  formats: formats,
25385
25382
  general: general,
@@ -38203,6 +38200,14 @@ var NavTabs = function NavTabs(_ref) {
38203
38200
  }, tabs)));
38204
38201
  };
38205
38202
 
38203
+
38204
+
38205
+ var index$5 = /*#__PURE__*/Object.freeze({
38206
+ __proto__: null,
38207
+ colors: colors,
38208
+ fontWeights: style_constants
38209
+ });
38210
+
38206
38211
  var shineFrames = keyframes$3(["{0{background-position:0 0;}20%{background-position:100% 100%;}100%{background-position:100% 100%;}}"]);
38207
38212
  var LoadingPill = styled.div.withConfig({
38208
38213
  displayName: "LoadingPillstyled__LoadingPill",
@@ -47523,11 +47528,11 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
47523
47528
  var arrowColor = WHITE;
47524
47529
  var numberColor = MATISSE_BLUE;
47525
47530
  var hoverBackgroundColor$2 = ALABASTER_WHITE;
47526
- var activeBackgroundColor$3 = WHITE;
47531
+ var activeBackgroundColor$2 = WHITE;
47527
47532
  var activeColor$9 = MATISSE_BLUE;
47528
47533
  var fallbackValues$L = {
47529
47534
  activeColor: activeColor$9,
47530
- activeBackgroundColor: activeBackgroundColor$3,
47535
+ activeBackgroundColor: activeBackgroundColor$2,
47531
47536
  arrowColor: arrowColor,
47532
47537
  hoverBackgroundColor: hoverBackgroundColor$2,
47533
47538
  numberColor: numberColor
@@ -50144,5 +50149,5 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
50144
50149
 
50145
50150
  var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$T));
50146
50151
 
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 };
50152
+ 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 };
50148
50153
  //# sourceMappingURL=index.esm.js.map