@thecb/components 6.3.1-beta.8 → 7.0.0
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/README.md +7 -3
- package/dist/index.cjs.js +48 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -22
- package/dist/index.esm.js +49 -19
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/index.js +1 -0
- package/src/components/atoms/loading-line/LoadingLine.js +21 -0
- package/src/components/atoms/loading-line/LoadingLine.stories.js +28 -0
- package/src/components/atoms/loading-line/LoadingPill.styled.js +32 -0
- package/src/components/atoms/loading-line/index.js +3 -0
- package/src/components/atoms/toggle-switch/ToggleSwitch.js +3 -3
- package/src/components/molecules/footer-with-subfooter/FooterWithSubfooter.js +1 -1
- package/src/components/molecules/index.d.ts +0 -1
- package/src/components/molecules/popover/Popover.js +1 -1
- package/src/components/molecules/collapsible-section/index.d.ts +0 -22
- package/src/components/molecules/editable-table/index.d.ts +0 -24
package/dist/index.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ interface ButtonWithActionProps {
|
|
|
41
41
|
textExtraStyles?: string;
|
|
42
42
|
contentOverride?: boolean;
|
|
43
43
|
extraStyles?: string;
|
|
44
|
-
tabIndex?:
|
|
44
|
+
tabIndex?: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
declare const ButtonWithAction: React.FC<Expand<ButtonWithActionProps> &
|
|
@@ -278,26 +278,6 @@ interface TitleProps {
|
|
|
278
278
|
declare const Title: React.FC<Expand<TitleProps> &
|
|
279
279
|
React.HTMLAttributes<HTMLElement>>;
|
|
280
280
|
|
|
281
|
-
interface CollapsibleSectionProps {
|
|
282
|
-
isOpen: boolean;
|
|
283
|
-
toggleSection?: () => void;
|
|
284
|
-
isMobile?: boolean;
|
|
285
|
-
supportsTouch?: boolean;
|
|
286
|
-
title?: string;
|
|
287
|
-
customPadding?: string;
|
|
288
|
-
initiallyOpen?: boolean;
|
|
289
|
-
openHeight?: string;
|
|
290
|
-
customTitle?: boolean;
|
|
291
|
-
stackTitle?: boolean;
|
|
292
|
-
stackTitleContent?: JSX.Element;
|
|
293
|
-
sectionGap?: string;
|
|
294
|
-
name?: string;
|
|
295
|
-
index?: number;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
declare const CollapsibleSection: React.FC<Expand<CollapsibleSectionProps> &
|
|
299
|
-
React.HTMLAttributes<HTMLElement>>;
|
|
300
|
-
|
|
301
281
|
interface FooterWithSubfooterProps {
|
|
302
282
|
footerLargeSide?: "left" | "right";
|
|
303
283
|
footerLargeSideSize?: string;
|
|
@@ -324,5 +304,5 @@ interface DefaultPageTemplateProps {
|
|
|
324
304
|
declare const DefaultPageTemplate: React.FC<Expand<DefaultPageTemplateProps> &
|
|
325
305
|
React.HTMLAttributes<HTMLElement>>;
|
|
326
306
|
|
|
327
|
-
export { Box, BoxProps, ButtonWithAction, ButtonWithActionProps, ButtonWithLink, ButtonWithLinkProps, Card, CardProps, Center, CenterProps, Cluster, ClusterProps,
|
|
307
|
+
export { Box, BoxProps, ButtonWithAction, ButtonWithActionProps, ButtonWithLink, ButtonWithLinkProps, Card, CardProps, Center, CenterProps, Cluster, ClusterProps, Cover, CoverProps, DefaultPageTemplate, DefaultPageTemplateProps, ExternalLink, ExternalLinkProps, FooterWithSubfooter, FooterWithSubfooterProps, InternalLink, InternalLinkProps, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, Stack, StackProps, Switcher, SwitcherProps, Text, TextProps, Title, TitleProps };
|
|
328
308
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
import styled, { ThemeContext, css, ThemeProvider } from 'styled-components';
|
|
2
|
+
import styled, { ThemeContext, css, ThemeProvider, keyframes as keyframes$3 } from 'styled-components';
|
|
3
3
|
import theme from 'styled-theming';
|
|
4
4
|
import { Link, useNavigate, useLocation } from 'react-router-dom';
|
|
5
5
|
import reactDom from 'react-dom';
|
|
@@ -22721,7 +22721,7 @@ var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
|
|
|
22721
22721
|
|
|
22722
22722
|
*/
|
|
22723
22723
|
|
|
22724
|
-
var useOutsideClickHook
|
|
22724
|
+
var useOutsideClickHook = function useOutsideClickHook(handler) {
|
|
22725
22725
|
var ref = useRef();
|
|
22726
22726
|
useEffect$1(function () {
|
|
22727
22727
|
}, [ref]);
|
|
@@ -22736,7 +22736,7 @@ var index$4 = /*#__PURE__*/Object.freeze({
|
|
|
22736
22736
|
general: general,
|
|
22737
22737
|
theme: themeUtils,
|
|
22738
22738
|
useFocusInvalidInput: useFocusInvalidInput,
|
|
22739
|
-
useOutsideClick: useOutsideClickHook
|
|
22739
|
+
useOutsideClick: useOutsideClickHook
|
|
22740
22740
|
});
|
|
22741
22741
|
|
|
22742
22742
|
var hoverColor$4 = "#116285";
|
|
@@ -22808,9 +22808,7 @@ var Popover = function Popover(_ref) {
|
|
|
22808
22808
|
}
|
|
22809
22809
|
};
|
|
22810
22810
|
|
|
22811
|
-
var triggerRef = useOutsideClickHook(
|
|
22812
|
-
return handleTogglePopover(false);
|
|
22813
|
-
});
|
|
22811
|
+
var triggerRef = useOutsideClickHook();
|
|
22814
22812
|
return /*#__PURE__*/React.createElement(Box, {
|
|
22815
22813
|
padding: "0",
|
|
22816
22814
|
extraStyles: "position: relative; ".concat(extraStyles)
|
|
@@ -34991,10 +34989,10 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
34991
34989
|
},
|
|
34992
34990
|
on: {
|
|
34993
34991
|
backgroundColor: themeValues.white,
|
|
34994
|
-
right: "
|
|
34992
|
+
right: "1px",
|
|
34995
34993
|
top: "2px",
|
|
34996
34994
|
bottom: "2px",
|
|
34997
|
-
left: "
|
|
34995
|
+
left: "25px",
|
|
34998
34996
|
transition: {
|
|
34999
34997
|
ease: "backIn"
|
|
35000
34998
|
}
|
|
@@ -35046,7 +35044,8 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
35046
35044
|
extraStyles: labelLeft ? themeValues.leftLabelStyles : themeValues.rightLabelStyles
|
|
35047
35045
|
}, /*#__PURE__*/React.createElement(Center, null, /*#__PURE__*/React.createElement(Cluster, {
|
|
35048
35046
|
justify: "stretch",
|
|
35049
|
-
align: "center"
|
|
35047
|
+
align: "center",
|
|
35048
|
+
overflow: "visible"
|
|
35050
35049
|
}, /*#__PURE__*/React.createElement(Cover, {
|
|
35051
35050
|
minHeight: "100%",
|
|
35052
35051
|
singleChild: true
|
|
@@ -35322,6 +35321,45 @@ var NavTabs = function NavTabs(_ref) {
|
|
|
35322
35321
|
}, tabs)));
|
|
35323
35322
|
};
|
|
35324
35323
|
|
|
35324
|
+
|
|
35325
|
+
|
|
35326
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
35327
|
+
__proto__: null,
|
|
35328
|
+
colors: colors,
|
|
35329
|
+
fontWeights: style_constants
|
|
35330
|
+
});
|
|
35331
|
+
|
|
35332
|
+
var shineFrames = keyframes$3(["{0{background-position:0 0;}20%{background-position:100% 100%;}100%{background-position:100% 100%;}}"]);
|
|
35333
|
+
var LoadingPill = styled.div.withConfig({
|
|
35334
|
+
displayName: "LoadingPillstyled__LoadingPill",
|
|
35335
|
+
componentId: "sc-kn9rtt-0"
|
|
35336
|
+
})(["width:", "px;background-color:", ";margin:", ";height:", ";border-radius:16px;background-image:linear-gradient( 135deg,", " 0%,", " 40%,", " 60%,", " 100% );background-size:400%;animation:", " 2s infinite ease-in-out;animation-direction:reverse;"], function (_ref) {
|
|
35337
|
+
var width = _ref.width;
|
|
35338
|
+
return width;
|
|
35339
|
+
}, SEASHELL_WHITE, function (_ref2) {
|
|
35340
|
+
var margin = _ref2.margin;
|
|
35341
|
+
return margin;
|
|
35342
|
+
}, function (_ref3) {
|
|
35343
|
+
var height = _ref3.height;
|
|
35344
|
+
return height;
|
|
35345
|
+
}, SEASHELL_WHITE, ALABASTER_WHITE, SEASHELL_WHITE, SEASHELL_WHITE, shineFrames);
|
|
35346
|
+
|
|
35347
|
+
var LoadingLine = function LoadingLine(_ref) {
|
|
35348
|
+
var minWidth = _ref.minWidth,
|
|
35349
|
+
maxWidth = _ref.maxWidth,
|
|
35350
|
+
_ref$exactWidth = _ref.exactWidth,
|
|
35351
|
+
exactWidth = _ref$exactWidth === void 0 ? null : _ref$exactWidth,
|
|
35352
|
+
_ref$height = _ref.height,
|
|
35353
|
+
height = _ref$height === void 0 ? "16px" : _ref$height,
|
|
35354
|
+
_ref$margin = _ref.margin,
|
|
35355
|
+
margin = _ref$margin === void 0 ? "0px" : _ref$margin;
|
|
35356
|
+
return /*#__PURE__*/React.createElement(LoadingPill, {
|
|
35357
|
+
margin: margin,
|
|
35358
|
+
height: height,
|
|
35359
|
+
width: exactWidth || Math.floor(Math.random() * (maxWidth - minWidth + 1)) + minWidth
|
|
35360
|
+
});
|
|
35361
|
+
};
|
|
35362
|
+
|
|
35325
35363
|
const validatorToPredicate = (validatorFn, emptyCase) => (
|
|
35326
35364
|
value,
|
|
35327
35365
|
...rest
|
|
@@ -37922,7 +37960,7 @@ var FooterWithSubfooter = function FooterWithSubfooter(_ref) {
|
|
|
37922
37960
|
}), /*#__PURE__*/React.createElement(NavFooter, {
|
|
37923
37961
|
backgroundColor: themeValues.subfooterBackgroundColor,
|
|
37924
37962
|
footerMinHeight: "45px",
|
|
37925
|
-
footerPadding: "0
|
|
37963
|
+
footerPadding: "0 16px",
|
|
37926
37964
|
"aria-label": "subfooter",
|
|
37927
37965
|
leftContent: leftSubfooterContent,
|
|
37928
37966
|
rightContent: rightSubfooterContent
|
|
@@ -46659,13 +46697,5 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
46659
46697
|
|
|
46660
46698
|
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$M));
|
|
46661
46699
|
|
|
46662
|
-
|
|
46663
|
-
|
|
46664
|
-
var index$5 = /*#__PURE__*/Object.freeze({
|
|
46665
|
-
__proto__: null,
|
|
46666
|
-
colors: colors,
|
|
46667
|
-
fontWeights: style_constants
|
|
46668
|
-
});
|
|
46669
|
-
|
|
46670
|
-
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, AutopayOnIcon, BankIcon, 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, ChargebackReversalIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, 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, 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, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GoToEmailIcon$1 as GoToEmailIcon, Grid, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, IconAdd, IconQuitLarge, Imposter, InternalLink, InternalUserInfoForm, Jumbo$1 as Jumbo, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, Loading, 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, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentIcon, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, Popover$1 as Popover, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioSection$1 as RadioSection, Reel, RefundIcon, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, 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, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, Switcher, TabSidebar$1 as TabSidebar, TableListItem, 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, WalletIcon$1 as WalletIcon, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, cardRegistry, index$5 as constants, createPartialAmountFormState, index$4 as util, withWindowSize };
|
|
46700
|
+
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, AutopayOnIcon, BankIcon, 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, ChargebackReversalIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, 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, 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, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GoToEmailIcon$1 as GoToEmailIcon, Grid, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, IconAdd, IconQuitLarge, Imposter, InternalLink, InternalUserInfoForm, Jumbo$1 as Jumbo, 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, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentIcon, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, Popover$1 as Popover, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioSection$1 as RadioSection, Reel, RefundIcon, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, 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, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, Switcher, TabSidebar$1 as TabSidebar, TableListItem, 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, WalletIcon$1 as WalletIcon, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, cardRegistry, index$5 as constants, createPartialAmountFormState, index$4 as util, withWindowSize };
|
|
46671
46701
|
//# sourceMappingURL=index.esm.js.map
|