@thecb/components 3.1.4-beta.0 → 3.2.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/.storybook/page.js +5 -4
- package/README.md +9 -8
- package/dist/index.cjs.js +119 -103
- package/dist/index.esm.js +116 -100
- package/package.json +5 -5
- package/src/components/atoms/alert/Alert.stories.js +28 -0
- package/src/components/atoms/amount-callout/AmountCallout.stories.js +41 -0
- package/src/components/atoms/amount-callout/AmountCallout.theme.js +4 -4
- package/src/components/atoms/breadcrumb/Breadcrumb.stories.js +38 -0
- package/src/components/atoms/button-with-link/ButtonWithLink.js +2 -1
- package/src/components/atoms/button-with-link/ButtonWithLink.stories.js +32 -0
- package/src/components/atoms/checkbox/Checkbox.stories.js +29 -0
- package/src/components/atoms/checkbox-list/CheckboxList.stories.js +50 -0
- package/src/components/atoms/country-dropdown/CountryDropdown.stories.js +42 -0
- package/src/components/atoms/display-box/DisplayBox.stories.js +25 -0
- package/src/components/atoms/display-card/DisplayCard.js +2 -0
- package/src/components/atoms/display-card/DisplayCard.stories.js +24 -0
- package/src/components/atoms/form-layouts/FormLayouts.stories.js +72 -0
- package/src/components/atoms/form-select/FormSelect.stories.js +44 -0
- package/src/components/atoms/formatted-address/FormattedAddress.js +1 -3
- package/src/components/atoms/formatted-address/FormattedAddress.stories.js +32 -0
- package/src/components/atoms/hamburger-button/HamburgerButton.js +7 -1
- package/src/components/atoms/hamburger-button/HamburgerButton.stories.js +21 -0
- package/src/components/atoms/heading/Heading.stories.js +20 -0
- package/src/components/atoms/icons/icons.stories.js +50 -0
- package/src/components/atoms/labeled-amount/LabeledAmount.js +1 -1
- package/src/components/atoms/labeled-amount/LabeledAmount.stories.js +29 -0
- package/src/components/atoms/layouts/Cluster.js +2 -0
- package/src/components/atoms/layouts/Cluster.styled.js +1 -1
- package/src/components/atoms/layouts/examples/ResizingContainer.js +3 -1
- package/src/components/atoms/layouts/examples/ResizingContainer.styled.js +1 -1
- package/src/components/atoms/layouts/examples/box-example/BoxExample.stories.js +58 -0
- package/src/components/atoms/layouts/examples/center-example/CenterExample.stories.js +28 -0
- package/src/components/atoms/layouts/examples/cover-example/CoverExample.stories.js +53 -0
- package/src/components/atoms/layouts/examples/frame-example/FrameExample.stories.js +22 -0
- package/src/components/atoms/layouts/examples/imposter-example/ImposterExample.stories.js +35 -0
- package/src/components/atoms/layouts/examples/motion-example/MotionExample.stories.js +62 -0
- package/src/components/atoms/layouts/examples/reel-example/ReelExample.stories.js +57 -0
- package/src/components/atoms/line-item/LineItem.js +2 -2
- package/src/components/atoms/line-item/LineItem.stories.js +19 -0
- package/src/components/atoms/link/ExternalLink.js +1 -3
- package/src/components/atoms/link/InternalLink.styled.js +0 -2
- package/src/components/atoms/link/Link.stories.js +57 -0
- package/src/components/atoms/link/Link.theme.js +3 -2
- package/src/components/atoms/nav-footer/NavFooter.stories.js +31 -0
- package/src/components/atoms/nav-header/NavHeader.stories.js +29 -0
- package/src/components/atoms/paragraph/Paragraph.stories.js +34 -0
- package/src/components/atoms/paragraph/Paragraph.theme.js +6 -2
- package/src/components/atoms/password-requirements/PasswordRequirements.stories.js +75 -0
- package/src/components/atoms/placeholder/Placeholder.js +16 -16
- package/src/components/atoms/placeholder/Placeholder.stories.js +38 -0
- package/src/components/atoms/processing-fee/ProcessingFee.stories.js +28 -0
- package/src/components/atoms/solid-divider/SolidDivider.stories.js +11 -0
- package/src/components/atoms/spinner/Spinner.stories.js +17 -0
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.stories.js +52 -0
- package/src/components/atoms/text/Text.stories.js +34 -0
- package/src/components/atoms/text/Text.theme.js +6 -2
- package/src/components/molecules/collapsible-section/CollapsibleSection.js +2 -1
- package/src/components/molecules/collapsible-section/CollapsibleSection.stories.js +68 -0
- package/src/components/molecules/highlight-tab-row/HighlightTabRow.js +8 -3
- package/src/components/molecules/highlight-tab-row/HighlightTabRow.stories.js +30 -0
- package/src/components/molecules/highlight-tab-row/index.js +1 -6
- package/src/components/molecules/modal/Modal.stories.js +44 -0
- package/src/components/molecules/module/Module.js +6 -2
- package/src/components/molecules/module/Module.stories.js +31 -0
- package/src/components/molecules/module/index.js +1 -6
- package/src/components/molecules/obligation/Obligation.js +1 -1
- package/src/components/molecules/obligation/modules/AmountModule.js +6 -2
- package/src/components/molecules/partial-amount-form/PartialAmountForm.state.js +2 -1
- package/src/components/molecules/payment-button-bar/PaymentButtonBar.stories.js +20 -0
- package/src/components/molecules/payment-details/PaymentDetails.stories.js +71 -0
- package/src/components/molecules/radio-section/RadioSection.stories.js +31 -0
- package/src/components/molecules/tab-sidebar/TabSidebar.stories.js +59 -0
- package/src/components/molecules/terms-and-conditions/TermsAndConditions.stories.js +24 -0
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.stories.js +31 -0
- package/src/components/molecules/workflow-tile/WorkflowTile.stories.js +25 -0
- package/dist/cb-components.esm.js +0 -23576
- package/dist/cb-components.js +0 -94714
package/.storybook/page.js
CHANGED
|
@@ -30,7 +30,7 @@ const themeDecorator = storyFn => (
|
|
|
30
30
|
<ThemeProvider theme={select(themesLabel, themes, defaultValue, groupId)}>{storyFn()}</ThemeProvider>
|
|
31
31
|
)
|
|
32
32
|
|
|
33
|
-
export default ({ title, Component, reducer = () => { }}) => {
|
|
33
|
+
export default ({ title, Component, height, reducer = () => { }, containerMax = "40rem", containerMin = "20rem" }) => {
|
|
34
34
|
const history = createBrowserHistory();
|
|
35
35
|
const store =createStore(
|
|
36
36
|
reducer,
|
|
@@ -45,11 +45,12 @@ export default ({ title, Component, reducer = () => { }}) => {
|
|
|
45
45
|
storyFn => (
|
|
46
46
|
<Router history={history} >
|
|
47
47
|
<Provider store={store}>
|
|
48
|
-
<div style={{ height: "
|
|
48
|
+
<div style={{ height: "max-content", display: "flex", justifyContent: "center", flexDirection: "column" }}>
|
|
49
49
|
<ResizingContainer
|
|
50
|
+
height={height}
|
|
50
51
|
animate={radios(animateLabel, animateOptions, animateDefaultValue, animateGroupID)}
|
|
51
|
-
containerMax={text("Container Max",
|
|
52
|
-
containerMin={text("Container Min",
|
|
52
|
+
containerMax={text("Container Max", containerMax, animateGroupID)}
|
|
53
|
+
containerMin={text("Container Min", containerMin, animateGroupID)}>
|
|
53
54
|
{storyFn()}
|
|
54
55
|
</ResizingContainer >
|
|
55
56
|
</div>
|
package/README.md
CHANGED
|
@@ -13,10 +13,11 @@ This library contains Citybase React components for use across all current and f
|
|
|
13
13
|
- [Version bumping](#version-bumping)
|
|
14
14
|
- [Publishing new versions to NPM](#publishing-new-versions-to-npm)
|
|
15
15
|
- [Consuming in your application](#consuming-in-your-application)
|
|
16
|
+
|
|
16
17
|
- [Adding to existing application](#adding-to-existing-application)
|
|
17
18
|
- [Local import and development](#local-import-and-development)
|
|
18
19
|
- [Importing and using components](#importing-and-using-components)
|
|
19
|
-
|
|
20
|
+
|
|
20
21
|
<!-- /TOC -->
|
|
21
22
|
|
|
22
23
|
## Development setup
|
|
@@ -58,7 +59,7 @@ Please include new component stories as this library will also be a sandbox.
|
|
|
58
59
|
|
|
59
60
|
- New components may be added to this library via pull request. Only components that are currently used in, or expected to be used in, more than one CB frontend should be present in this library. Very niche application specific components should be kept in the `components/atoms` and `components/molecules` directory of their parent application.
|
|
60
61
|
|
|
61
|
-
- Almost all components in this library, and almost all newly added components, should be as "dumb" as possible. Ideally avoid introducing components that have tight integrations with application state. Forms and form components that make use of redux-freeform are an exception to this rule.
|
|
62
|
+
- Almost all components in this library, and almost all newly added components, should be as "dumb" as possible. Ideally avoid introducing components that have tight integrations with application state. Forms and form components that make use of redux-freeform are an exception to this rule.
|
|
62
63
|
|
|
63
64
|
- If a non-form component contains integration with application state, or business logic specific to a particular application, breaking the component up into styled/layout atoms and an application specific molecule that consumes them is the best practice. An example of this can be observed with the `Header` and `Footer` molecules in Navigate Frontend. Both of these molcules make use of component library atoms such as `NavHeader` to layout out content. NFE then has `Header` and `Footer` molecules which live in the NFE components directory and use NFE specific business logic to provide content to these atoms, resulting in a complete `Header` and `Footer`.
|
|
64
65
|
|
|
@@ -78,7 +79,7 @@ Please include new component stories as this library will also be a sandbox.
|
|
|
78
79
|
|
|
79
80
|
### Publishing new versions to NPM
|
|
80
81
|
|
|
81
|
-
- While GitHub will handle bumping the version of the library with every PR merge to master, publishing an update version of the library to NPM requires creating a release using the `release` script. This script triggers an action in the repo to create a release tagged with a publication date. After a new release is created,
|
|
82
|
+
- While GitHub will handle bumping the version of the library with every PR merge to master, publishing an update version of the library to NPM requires creating a release using the `release` script. This script triggers an action in the repo to create a release tagged with a publication date. After a new release is created, manually run `yarn build && yarn publish` in your repo directory to publish a new version to NPM. When yarn asks you what version to publish, enter the same number that it gives you, as this number will already reflect the increase in version from the auto version bump action.
|
|
82
83
|
|
|
83
84
|
- Once a new version of the library is published to NPM, you may either manually update your application's `package.json` to request that new version, or wait until the following morning when dependabot will pick up the change and create an update PR for you.
|
|
84
85
|
|
|
@@ -86,12 +87,12 @@ Please include new component stories as this library will also be a sandbox.
|
|
|
86
87
|
|
|
87
88
|
### Adding to existing application
|
|
88
89
|
|
|
89
|
-
- Run `yarn add @thecb/components`.
|
|
90
|
+
- Run `yarn add @thecb/components`.
|
|
90
91
|
- To verify it installed successfully, make sure it is in the applicaton's `package.json` file.
|
|
91
92
|
|
|
92
93
|
### Local import and development
|
|
93
94
|
|
|
94
|
-
If you are developing locally, you can add or make changes to components in the `@thecb/components` package and see those changes in the application running locally by linking the `@thecb/components` package to your application.
|
|
95
|
+
If you are developing locally, you can add or make changes to components in the `@thecb/components` package and see those changes in the application running locally by linking the `@thecb/components` package to your application.
|
|
95
96
|
Open the `@thecb/components`, and in the command line
|
|
96
97
|
|
|
97
98
|
- Run `yarn build`
|
|
@@ -104,7 +105,7 @@ You should see a success message, and directions on how to link this package int
|
|
|
104
105
|
Now the package is linked locally and you can make changes to the `@thecb/components` and you’ll see the changes in the application running `@thecb/components`. To unlink the package, in the application running `@thecb/components` and in the command line
|
|
105
106
|
|
|
106
107
|
- Run `yarn unlink @thecb/components`
|
|
107
|
-
- Run `yarn install`
|
|
108
|
+
- Run `yarn install` ` --``force `
|
|
108
109
|
|
|
109
110
|
Next go to the `@thecb/components` and in the command line
|
|
110
111
|
|
|
@@ -116,9 +117,9 @@ Now the package is unlinked, and you’re using the version on NPM.
|
|
|
116
117
|
|
|
117
118
|
To use components, you need to import the desired components inside the file you’d like them in. For example, to import the `<ButtonWithAction />` component into a file
|
|
118
119
|
|
|
119
|
-
- `import { ButtonWithAction } from` `"``@thecb/components``"
|
|
120
|
+
- `import { ButtonWithAction } from` ` "``@thecb/components``"``; `
|
|
120
121
|
|
|
121
|
-
You can alias the component by
|
|
122
|
+
You can alias the component by
|
|
122
123
|
|
|
123
124
|
- `import { ButtonWithAction as MyButton } from "@thecb/components";`
|
|
124
125
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -2179,7 +2179,7 @@ var Center = function Center(_ref) {
|
|
|
2179
2179
|
};
|
|
2180
2180
|
|
|
2181
2181
|
function _templateObject2$1() {
|
|
2182
|
-
var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n flex-wrap:
|
|
2182
|
+
var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n flex-wrap: ", ";\n justify-content: ", ";\n align-items: ", ";\n margin: calc(", " / 2 * -1);\n min-height: ", ";\n min-width: ", ";\n\n > * {\n margin: calc(", " / 2);\n }\n"]);
|
|
2183
2183
|
|
|
2184
2184
|
_templateObject2$1 = function _templateObject2() {
|
|
2185
2185
|
return data;
|
|
@@ -2202,22 +2202,25 @@ var ClusterWrapper = styled__default.div(_templateObject$2(), function (_ref) {
|
|
|
2202
2202
|
return overflow ? "visible" : "hidden";
|
|
2203
2203
|
});
|
|
2204
2204
|
var ClusterInnerWrapper = styled__default.div(_templateObject2$1(), function (_ref2) {
|
|
2205
|
-
var
|
|
2206
|
-
return
|
|
2205
|
+
var nowrap = _ref2.nowrap;
|
|
2206
|
+
return nowrap ? "nowrap" : "wrap";
|
|
2207
2207
|
}, function (_ref3) {
|
|
2208
|
-
var
|
|
2209
|
-
return
|
|
2208
|
+
var justify = _ref3.justify;
|
|
2209
|
+
return justify;
|
|
2210
2210
|
}, function (_ref4) {
|
|
2211
|
-
var
|
|
2212
|
-
return
|
|
2211
|
+
var align = _ref4.align;
|
|
2212
|
+
return align;
|
|
2213
2213
|
}, function (_ref5) {
|
|
2214
|
-
var
|
|
2215
|
-
return
|
|
2214
|
+
var childGap = _ref5.childGap;
|
|
2215
|
+
return childGap;
|
|
2216
2216
|
}, function (_ref6) {
|
|
2217
|
-
var
|
|
2218
|
-
return
|
|
2217
|
+
var minHeight = _ref6.minHeight;
|
|
2218
|
+
return minHeight;
|
|
2219
2219
|
}, function (_ref7) {
|
|
2220
|
-
var
|
|
2220
|
+
var minWidth = _ref7.minWidth;
|
|
2221
|
+
return minWidth;
|
|
2222
|
+
}, function (_ref8) {
|
|
2223
|
+
var childGap = _ref8.childGap;
|
|
2221
2224
|
return childGap;
|
|
2222
2225
|
});
|
|
2223
2226
|
|
|
@@ -2236,10 +2239,11 @@ var Cluster = function Cluster(_ref) {
|
|
|
2236
2239
|
childGap = _ref.childGap,
|
|
2237
2240
|
minHeight = _ref.minHeight,
|
|
2238
2241
|
minWidth = _ref.minWidth,
|
|
2242
|
+
nowrap = _ref.nowrap,
|
|
2239
2243
|
_ref$overflow = _ref.overflow,
|
|
2240
2244
|
overflow = _ref$overflow === void 0 ? false : _ref$overflow,
|
|
2241
2245
|
children = _ref.children,
|
|
2242
|
-
rest = _objectWithoutProperties(_ref, ["justify", "align", "childGap", "minHeight", "minWidth", "overflow", "children"]);
|
|
2246
|
+
rest = _objectWithoutProperties(_ref, ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "children"]);
|
|
2243
2247
|
|
|
2244
2248
|
return /*#__PURE__*/React__default.createElement(ClusterWrapper, _extends({
|
|
2245
2249
|
overflow: overflow
|
|
@@ -2248,7 +2252,8 @@ var Cluster = function Cluster(_ref) {
|
|
|
2248
2252
|
align: align,
|
|
2249
2253
|
childGap: childGap,
|
|
2250
2254
|
minHeight: minHeight,
|
|
2251
|
-
minWidth: minWidth
|
|
2255
|
+
minWidth: minWidth,
|
|
2256
|
+
nowrap: nowrap
|
|
2252
2257
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
2253
2258
|
};
|
|
2254
2259
|
|
|
@@ -9541,8 +9546,12 @@ var Reel = function Reel(_ref) {
|
|
|
9541
9546
|
};
|
|
9542
9547
|
|
|
9543
9548
|
var fontFamily = {
|
|
9544
|
-
|
|
9545
|
-
|
|
9549
|
+
p: "Public Sans",
|
|
9550
|
+
pL: "Public Sans",
|
|
9551
|
+
pS: "Public Sans",
|
|
9552
|
+
pXS: "Public Sans",
|
|
9553
|
+
pXXS: "Public Sans",
|
|
9554
|
+
pXL: "Public Sans"
|
|
9546
9555
|
}; // Text uses the same variants as paragraph
|
|
9547
9556
|
// Use a Paragraph if you want a block level element
|
|
9548
9557
|
// Use a Text if you want an inline element
|
|
@@ -9987,14 +9996,14 @@ var Heading = function Heading(_ref) {
|
|
|
9987
9996
|
var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$2, "h1");
|
|
9988
9997
|
|
|
9989
9998
|
var fontSize$2 = {
|
|
9990
|
-
large: "1.
|
|
9991
|
-
medium: "1.
|
|
9999
|
+
large: "1.5rem",
|
|
10000
|
+
medium: "1.25rem",
|
|
9992
10001
|
small: "1.094rem"
|
|
9993
10002
|
};
|
|
9994
10003
|
var color$1 = "#15749D";
|
|
9995
10004
|
var lineHeight = {
|
|
9996
|
-
large: "
|
|
9997
|
-
medium: "
|
|
10005
|
+
large: "2rem",
|
|
10006
|
+
medium: "1.875rem",
|
|
9998
10007
|
small: "1.641rem"
|
|
9999
10008
|
};
|
|
10000
10009
|
var fallbackValues$3 = {
|
|
@@ -10052,10 +10061,12 @@ var fontFamily$2 = {
|
|
|
10052
10061
|
};
|
|
10053
10062
|
var hoverColor = "#116285";
|
|
10054
10063
|
var activeColor$1 = "#0E506D";
|
|
10064
|
+
var externalLinkColor = "#15749D";
|
|
10055
10065
|
var fallbackValues$5 = {
|
|
10056
10066
|
fontFamily: fontFamily$2,
|
|
10057
10067
|
hoverColor: hoverColor,
|
|
10058
|
-
activeColor: activeColor$1
|
|
10068
|
+
activeColor: activeColor$1,
|
|
10069
|
+
externalLinkColor: externalLinkColor
|
|
10059
10070
|
};
|
|
10060
10071
|
|
|
10061
10072
|
function _templateObject$e() {
|
|
@@ -10113,8 +10124,6 @@ var ExternalLink = function ExternalLink(_ref) {
|
|
|
10113
10124
|
href = _ref$href === void 0 ? "" : _ref$href,
|
|
10114
10125
|
_ref$newTab = _ref.newTab,
|
|
10115
10126
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
10116
|
-
_ref$color = _ref.color,
|
|
10117
|
-
color = _ref$color === void 0 ? CONGRESS_BLUE : _ref$color,
|
|
10118
10127
|
_ref$size = _ref.size,
|
|
10119
10128
|
size = _ref$size === void 0 ? "1rem" : _ref$size,
|
|
10120
10129
|
_ref$lineHeight = _ref.lineHeight,
|
|
@@ -10133,7 +10142,7 @@ var ExternalLink = function ExternalLink(_ref) {
|
|
|
10133
10142
|
return /*#__PURE__*/React__default.createElement(StyledExternalLink, {
|
|
10134
10143
|
href: href,
|
|
10135
10144
|
target: newTab ? "_blank" : "",
|
|
10136
|
-
color:
|
|
10145
|
+
color: themeValues.externalLinkColor,
|
|
10137
10146
|
size: size,
|
|
10138
10147
|
lineheight: lineHeight,
|
|
10139
10148
|
weight: weight,
|
|
@@ -10147,7 +10156,7 @@ var ExternalLink = function ExternalLink(_ref) {
|
|
|
10147
10156
|
};
|
|
10148
10157
|
|
|
10149
10158
|
function _templateObject$f() {
|
|
10150
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n color: ", ";\n font-weight: ", ";\n line-height: ", ";\n font-size: ", ";\n font-family: ", ";\n margin: ", ";\n
|
|
10159
|
+
var data = _taggedTemplateLiteral(["\n display: flex;\n color: ", ";\n font-weight: ", ";\n line-height: ", ";\n font-size: ", ";\n font-family: ", ";\n margin: ", ";\n\n &:hover,\n &:focus {\n color: ", ";\n text-decoration: underline;\n }\n\n &:active {\n text-decoration: underline;\n color: ", ";\n }\n\n ", "\n"]);
|
|
10151
10160
|
|
|
10152
10161
|
_templateObject$f = function _templateObject() {
|
|
10153
10162
|
return data;
|
|
@@ -10192,16 +10201,13 @@ var StyledInternalLink = styled__default(function (_ref) {
|
|
|
10192
10201
|
var margin = _ref7.margin;
|
|
10193
10202
|
return margin;
|
|
10194
10203
|
}, function (_ref8) {
|
|
10195
|
-
var
|
|
10196
|
-
return active === "true" ? "underline" : "none";
|
|
10197
|
-
}, function (_ref9) {
|
|
10198
|
-
var hoverColor = _ref9.hoverColor;
|
|
10204
|
+
var hoverColor = _ref8.hoverColor;
|
|
10199
10205
|
return hoverColor;
|
|
10200
|
-
}, function (
|
|
10201
|
-
var activeColor =
|
|
10206
|
+
}, function (_ref9) {
|
|
10207
|
+
var activeColor = _ref9.activeColor;
|
|
10202
10208
|
return activeColor;
|
|
10203
|
-
}, function (
|
|
10204
|
-
var extrastyles =
|
|
10209
|
+
}, function (_ref10) {
|
|
10210
|
+
var extrastyles = _ref10.extrastyles;
|
|
10205
10211
|
return extrastyles;
|
|
10206
10212
|
});
|
|
10207
10213
|
/* eslint-enable no-unused-vars */
|
|
@@ -13539,10 +13545,12 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
13539
13545
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
13540
13546
|
_ref$disabled = _ref.disabled,
|
|
13541
13547
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
13548
|
+
_ref$fileLink = _ref.fileLink,
|
|
13549
|
+
fileLink = _ref$fileLink === void 0 ? false : _ref$fileLink,
|
|
13542
13550
|
extraStyles = _ref.extraStyles,
|
|
13543
13551
|
_ref$newTab = _ref.newTab,
|
|
13544
13552
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
13545
|
-
otherProps = _objectWithoutProperties(_ref, ["url", "disabled", "extraStyles", "newTab"]);
|
|
13553
|
+
otherProps = _objectWithoutProperties(_ref, ["url", "disabled", "fileLink", "extraStyles", "newTab"]);
|
|
13546
13554
|
|
|
13547
13555
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
13548
13556
|
var children = _ref2.children,
|
|
@@ -13555,7 +13563,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
13555
13563
|
return safeChildren(children, /*#__PURE__*/React__default.createElement("span", null));
|
|
13556
13564
|
}
|
|
13557
13565
|
|
|
13558
|
-
return R.test(URL_TEST, url) ? /*#__PURE__*/React__default.createElement(ExternalLink, {
|
|
13566
|
+
return R.test(URL_TEST, url) || fileLink ? /*#__PURE__*/React__default.createElement(ExternalLink, {
|
|
13559
13567
|
href: url,
|
|
13560
13568
|
tabIndex: "-1",
|
|
13561
13569
|
newTab: newTab,
|
|
@@ -15252,8 +15260,12 @@ var DisplayBox = function DisplayBox(_ref) {
|
|
|
15252
15260
|
var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$a);
|
|
15253
15261
|
|
|
15254
15262
|
var fontFamily$3 = {
|
|
15255
|
-
|
|
15256
|
-
|
|
15263
|
+
p: "Public Sans",
|
|
15264
|
+
pL: "Public Sans",
|
|
15265
|
+
pS: "Public Sans",
|
|
15266
|
+
pXS: "Public Sans",
|
|
15267
|
+
pXXS: "Public Sans",
|
|
15268
|
+
pXL: "Public Sans"
|
|
15257
15269
|
};
|
|
15258
15270
|
var fontSize$4 = {
|
|
15259
15271
|
p: "1rem",
|
|
@@ -15358,12 +15370,14 @@ var DisplayCard = function DisplayCard(_ref) {
|
|
|
15358
15370
|
text: buttonText,
|
|
15359
15371
|
url: url,
|
|
15360
15372
|
variant: "smallGhost",
|
|
15361
|
-
dataQa: buttonText
|
|
15373
|
+
dataQa: buttonText,
|
|
15374
|
+
extraStyles: "min-width: 0;"
|
|
15362
15375
|
}) : /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
15363
15376
|
text: buttonText,
|
|
15364
15377
|
action: buttonAction,
|
|
15365
15378
|
variant: "smallGhost",
|
|
15366
|
-
dataQa: buttonText
|
|
15379
|
+
dataQa: buttonText,
|
|
15380
|
+
extraStyles: "min-width: 0;"
|
|
15367
15381
|
}))))));
|
|
15368
15382
|
};
|
|
15369
15383
|
|
|
@@ -16022,8 +16036,7 @@ var fallbackValues$d = {
|
|
|
16022
16036
|
};
|
|
16023
16037
|
|
|
16024
16038
|
var FormattedAddress = function FormattedAddress(_ref) {
|
|
16025
|
-
var
|
|
16026
|
-
street1 = _ref.street1,
|
|
16039
|
+
var street1 = _ref.street1,
|
|
16027
16040
|
city = _ref.city,
|
|
16028
16041
|
stateProvince = _ref.stateProvince,
|
|
16029
16042
|
country = _ref.country,
|
|
@@ -16032,14 +16045,11 @@ var FormattedAddress = function FormattedAddress(_ref) {
|
|
|
16032
16045
|
street2 = _ref$street === void 0 ? null : _ref$street,
|
|
16033
16046
|
_ref$name = _ref.name,
|
|
16034
16047
|
name = _ref$name === void 0 ? null : _ref$name,
|
|
16035
|
-
isRadio = _ref.isRadio,
|
|
16036
16048
|
themeValues = _ref.themeValues,
|
|
16037
16049
|
_ref$qaPrefix = _ref.qaPrefix,
|
|
16038
16050
|
qaPrefix = _ref$qaPrefix === void 0 ? "address" : _ref$qaPrefix;
|
|
16039
16051
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
16040
|
-
padding: themeValues.padding
|
|
16041
|
-
isActive: isActive,
|
|
16042
|
-
isRadio: isRadio
|
|
16052
|
+
padding: themeValues.padding
|
|
16043
16053
|
}, name && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
16044
16054
|
variant: "p",
|
|
16045
16055
|
color: themeValues.color,
|
|
@@ -16200,7 +16210,8 @@ var HamburgerButton = function HamburgerButton(_ref4) {
|
|
|
16200
16210
|
var activeColor = _ref4.activeColor,
|
|
16201
16211
|
inactiveColor = _ref4.inactiveColor,
|
|
16202
16212
|
isActive = _ref4.isActive,
|
|
16203
|
-
onClick = _ref4.onClick
|
|
16213
|
+
_ref4$onClick = _ref4.onClick,
|
|
16214
|
+
onClick = _ref4$onClick === void 0 ? noop : _ref4$onClick;
|
|
16204
16215
|
return /*#__PURE__*/React__default.createElement(Hamburger, {
|
|
16205
16216
|
className: isActive === true ? "active" : "",
|
|
16206
16217
|
onClick: onClick,
|
|
@@ -17178,7 +17189,7 @@ var LabeledAmount = function LabeledAmount(_ref) {
|
|
|
17178
17189
|
}, /*#__PURE__*/React__default.createElement(LabeledAmountText, {
|
|
17179
17190
|
variant: variant,
|
|
17180
17191
|
weight: themeValues.fontWeight,
|
|
17181
|
-
extraStyles: "text-align:
|
|
17192
|
+
extraStyles: "text-align: start; flex: 3;"
|
|
17182
17193
|
}, label, ":"), /*#__PURE__*/React__default.createElement(LabeledAmountText, {
|
|
17183
17194
|
variant: variant,
|
|
17184
17195
|
weight: themeValues.fontWeight,
|
|
@@ -17207,6 +17218,7 @@ var LineItem = function LineItem(_ref) {
|
|
|
17207
17218
|
amount = _ref.amount,
|
|
17208
17219
|
themeValues = _ref.themeValues;
|
|
17209
17220
|
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
17221
|
+
nowrap: true,
|
|
17210
17222
|
justify: "space-between",
|
|
17211
17223
|
align: "start"
|
|
17212
17224
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
@@ -17220,7 +17232,7 @@ var LineItem = function LineItem(_ref) {
|
|
|
17220
17232
|
}, subDescription)), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
17221
17233
|
variant: themeValues.paragraphVariant,
|
|
17222
17234
|
weight: "600",
|
|
17223
|
-
extraStyles: "margin: 0;"
|
|
17235
|
+
extraStyles: "margin: 0; text-align: end; min-width: fit-content; padding-left: 32px;"
|
|
17224
17236
|
}, amount));
|
|
17225
17237
|
};
|
|
17226
17238
|
|
|
@@ -17742,7 +17754,12 @@ var Placeholder = function Placeholder(_ref2) {
|
|
|
17742
17754
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
17743
17755
|
isMobile = _useContext.isMobile;
|
|
17744
17756
|
|
|
17745
|
-
return /*#__PURE__*/React__default.createElement(
|
|
17757
|
+
return /*#__PURE__*/React__default.createElement(PlaceholderContentWrapper, {
|
|
17758
|
+
isLink: isLink,
|
|
17759
|
+
action: action,
|
|
17760
|
+
destination: destination,
|
|
17761
|
+
dataQa: dataQa
|
|
17762
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
17746
17763
|
padding: "0",
|
|
17747
17764
|
borderRadius: "4px",
|
|
17748
17765
|
border: "none",
|
|
@@ -17750,11 +17767,6 @@ var Placeholder = function Placeholder(_ref2) {
|
|
|
17750
17767
|
hiddenStyles: !visible,
|
|
17751
17768
|
extraStyles: "\n background: linear-gradient(\n to right,\n ".concat(STORM_GREY, " 40%,\n rgba(255, 255, 255, 0) 0%\n ),\n linear-gradient(").concat(STORM_GREY, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(to right, ").concat(STORM_GREY, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(").concat(STORM_GREY, " 40%, rgba(255, 255, 255, 0) 0%);\n background-position: top, right, bottom, left;\n background-repeat: repeat-x, repeat-y;\n background-size: 5px 1px, 1px 5px;\n display: flex;\n justify-content: center;\n align-items:center;"),
|
|
17752
17769
|
hoverStyles: "background-color: ".concat(GRECIAN_GREY, ";")
|
|
17753
|
-
}, /*#__PURE__*/React__default.createElement(PlaceholderContentWrapper, {
|
|
17754
|
-
isLink: isLink,
|
|
17755
|
-
action: action,
|
|
17756
|
-
destination: destination,
|
|
17757
|
-
dataQa: dataQa
|
|
17758
17770
|
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
17759
17771
|
maxWidth: "300px"
|
|
17760
17772
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -30488,6 +30500,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
30488
30500
|
isMobile = _ref.isMobile,
|
|
30489
30501
|
supportsTouch = _ref.supportsTouch,
|
|
30490
30502
|
title = _ref.title,
|
|
30503
|
+
customPadding = _ref.customPadding,
|
|
30491
30504
|
_ref$initiallyOpen = _ref.initiallyOpen,
|
|
30492
30505
|
initiallyOpen = _ref$initiallyOpen === void 0 ? true : _ref$initiallyOpen,
|
|
30493
30506
|
_ref$openHeight = _ref.openHeight,
|
|
@@ -30541,7 +30554,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
30541
30554
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
30542
30555
|
childGap: isOpen ? "0.5rem" : "0rem"
|
|
30543
30556
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
30544
|
-
padding: "0",
|
|
30557
|
+
padding: customPadding ? customPadding : "0",
|
|
30545
30558
|
background: themeValues.headingBackgroundColor,
|
|
30546
30559
|
onClick: isMobile && supportsTouch ? noop : toggleSection,
|
|
30547
30560
|
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop,
|
|
@@ -31076,6 +31089,13 @@ ForgotPasswordForm.reducer = reducer$4;
|
|
|
31076
31089
|
ForgotPasswordForm.mapStateToProps = mapStateToProps$5;
|
|
31077
31090
|
ForgotPasswordForm.mapDispatchToProps = mapDispatchToProps$4;
|
|
31078
31091
|
|
|
31092
|
+
var textColor$2 = "#ffffff";
|
|
31093
|
+
var backgroundColor$4 = "#182848";
|
|
31094
|
+
var fallbackValues$p = {
|
|
31095
|
+
textColor: textColor$2,
|
|
31096
|
+
backgroundColor: backgroundColor$4
|
|
31097
|
+
};
|
|
31098
|
+
|
|
31079
31099
|
var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
31080
31100
|
var tabs = _ref.tabs,
|
|
31081
31101
|
highlightIndex = _ref.highlightIndex,
|
|
@@ -31114,14 +31134,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
31114
31134
|
}), R.repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter)));
|
|
31115
31135
|
};
|
|
31116
31136
|
|
|
31117
|
-
var
|
|
31118
|
-
var backgroundColor$4 = "#182848";
|
|
31119
|
-
var fallbackValues$p = {
|
|
31120
|
-
textColor: textColor$2,
|
|
31121
|
-
backgroundColor: backgroundColor$4
|
|
31122
|
-
};
|
|
31123
|
-
|
|
31124
|
-
var index$3 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$p));
|
|
31137
|
+
var HighlightTabRow$1 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$p));
|
|
31125
31138
|
|
|
31126
31139
|
var LoginForm = function LoginForm(_ref) {
|
|
31127
31140
|
var _emailErrorMessages;
|
|
@@ -32452,35 +32465,6 @@ var Modal$1 = function Modal(_ref) {
|
|
|
32452
32465
|
})))))))));
|
|
32453
32466
|
};
|
|
32454
32467
|
|
|
32455
|
-
var Module = function Module(_ref) {
|
|
32456
|
-
var heading = _ref.heading,
|
|
32457
|
-
_ref$spacing = _ref.spacing,
|
|
32458
|
-
spacing = _ref$spacing === void 0 ? "1rem" : _ref$spacing,
|
|
32459
|
-
_ref$padding = _ref.padding,
|
|
32460
|
-
padding = _ref$padding === void 0 ? "0" : _ref$padding,
|
|
32461
|
-
_ref$spacingBottom = _ref.spacingBottom,
|
|
32462
|
-
spacingBottom = _ref$spacingBottom === void 0 ? "2.5rem" : _ref$spacingBottom,
|
|
32463
|
-
themeValues = _ref.themeValues,
|
|
32464
|
-
_ref$variant = _ref.variant,
|
|
32465
|
-
variant = _ref$variant === void 0 ? "default" : _ref$variant,
|
|
32466
|
-
children = _ref.children;
|
|
32467
|
-
return /*#__PURE__*/React__default.createElement(React.Fragment, null, heading && /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
32468
|
-
variant: variant === "default" ? "h5" : "h3",
|
|
32469
|
-
weight: themeValues.fontWeight,
|
|
32470
|
-
color: themeValues.fontColor,
|
|
32471
|
-
margin: "".concat(spacing, " 0 ").concat(themeValues.titleSpacing, " 0"),
|
|
32472
|
-
textAlign: themeValues.textAlign,
|
|
32473
|
-
"aria-level": variant === "default" ? "3" : "1"
|
|
32474
|
-
}, heading), /*#__PURE__*/React__default.createElement(Box, {
|
|
32475
|
-
padding: "0 0 ".concat(spacingBottom)
|
|
32476
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
32477
|
-
padding: padding,
|
|
32478
|
-
background: themeValues.backgroundColor,
|
|
32479
|
-
borderRadius: themeValues.borderRadius,
|
|
32480
|
-
boxShadow: themeValues.boxShadow
|
|
32481
|
-
}, children)));
|
|
32482
|
-
};
|
|
32483
|
-
|
|
32484
32468
|
var fontSize$7 = {
|
|
32485
32469
|
"default": "1.375rem",
|
|
32486
32470
|
largeTitle: "1.75rem"
|
|
@@ -32534,7 +32518,36 @@ var fallbackValues$q = {
|
|
|
32534
32518
|
backgroundColor: backgroundColor$5
|
|
32535
32519
|
};
|
|
32536
32520
|
|
|
32537
|
-
var
|
|
32521
|
+
var Module = function Module(_ref) {
|
|
32522
|
+
var heading = _ref.heading,
|
|
32523
|
+
_ref$spacing = _ref.spacing,
|
|
32524
|
+
spacing = _ref$spacing === void 0 ? "1rem" : _ref$spacing,
|
|
32525
|
+
_ref$padding = _ref.padding,
|
|
32526
|
+
padding = _ref$padding === void 0 ? "0" : _ref$padding,
|
|
32527
|
+
_ref$spacingBottom = _ref.spacingBottom,
|
|
32528
|
+
spacingBottom = _ref$spacingBottom === void 0 ? "2.5rem" : _ref$spacingBottom,
|
|
32529
|
+
themeValues = _ref.themeValues,
|
|
32530
|
+
_ref$variant = _ref.variant,
|
|
32531
|
+
variant = _ref$variant === void 0 ? "default" : _ref$variant,
|
|
32532
|
+
children = _ref.children;
|
|
32533
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, null, heading && /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
32534
|
+
variant: variant === "default" ? "h5" : "h3",
|
|
32535
|
+
weight: themeValues.fontWeight,
|
|
32536
|
+
color: themeValues.fontColor,
|
|
32537
|
+
margin: "".concat(spacing, " 0 ").concat(themeValues.titleSpacing, " 0"),
|
|
32538
|
+
textAlign: themeValues.textAlign,
|
|
32539
|
+
"aria-level": variant === "default" ? "3" : "1"
|
|
32540
|
+
}, heading), /*#__PURE__*/React__default.createElement(Box, {
|
|
32541
|
+
padding: "0 0 ".concat(spacingBottom)
|
|
32542
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
32543
|
+
padding: padding,
|
|
32544
|
+
background: themeValues.backgroundColor,
|
|
32545
|
+
borderRadius: themeValues.borderRadius,
|
|
32546
|
+
boxShadow: themeValues.boxShadow
|
|
32547
|
+
}, children)));
|
|
32548
|
+
};
|
|
32549
|
+
|
|
32550
|
+
var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$q, "default"));
|
|
32538
32551
|
|
|
32539
32552
|
var backgroundColor$6 = "#3b414d";
|
|
32540
32553
|
var fallbackValues$r = {
|
|
@@ -34145,7 +34158,8 @@ var AmountModule = function AmountModule(_ref) {
|
|
|
34145
34158
|
childGap: "0"
|
|
34146
34159
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
34147
34160
|
variant: "pS",
|
|
34148
|
-
weight: FONT_WEIGHT_SEMIBOLD
|
|
34161
|
+
weight: FONT_WEIGHT_SEMIBOLD,
|
|
34162
|
+
extraStyles: "text-align: right;"
|
|
34149
34163
|
}, isMobile ? "Total Due" : "Total Amount Due"), /*#__PURE__*/React__default.createElement(AmountCallout$1, {
|
|
34150
34164
|
amount: displayCurrency(totalAmountDue),
|
|
34151
34165
|
textAlign: "right"
|
|
@@ -34153,7 +34167,7 @@ var AmountModule = function AmountModule(_ref) {
|
|
|
34153
34167
|
variant: "p",
|
|
34154
34168
|
weight: FONT_WEIGHT_REGULAR,
|
|
34155
34169
|
color: REGENT_GREY,
|
|
34156
|
-
extraStyles: "font-style: italic"
|
|
34170
|
+
extraStyles: "font-style: italic; text-align: right;"
|
|
34157
34171
|
}, isMobile ? "Autopay On" : "Autopay Enabled")));
|
|
34158
34172
|
};
|
|
34159
34173
|
|
|
@@ -34238,7 +34252,8 @@ var Obligation = function Obligation(_ref) {
|
|
|
34238
34252
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
34239
34253
|
justify: "space-between",
|
|
34240
34254
|
align: "center",
|
|
34241
|
-
childGap: "4px"
|
|
34255
|
+
childGap: "4px",
|
|
34256
|
+
nowrap: true
|
|
34242
34257
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
34243
34258
|
padding: "0"
|
|
34244
34259
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -34346,7 +34361,8 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
|
|
|
34346
34361
|
|
|
34347
34362
|
return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty({}, item.id, {
|
|
34348
34363
|
validators: validators,
|
|
34349
|
-
constraints: [onlyNaturals()]
|
|
34364
|
+
constraints: [onlyNaturals()],
|
|
34365
|
+
defaultValue: String(item.amount)
|
|
34350
34366
|
}));
|
|
34351
34367
|
}, {});
|
|
34352
34368
|
|
|
@@ -36075,7 +36091,7 @@ var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "
|
|
|
36075
36091
|
|
|
36076
36092
|
|
|
36077
36093
|
|
|
36078
|
-
var index$
|
|
36094
|
+
var index$3 = /*#__PURE__*/Object.freeze({
|
|
36079
36095
|
__proto__: null,
|
|
36080
36096
|
colors: colors,
|
|
36081
36097
|
fontWeights: style_constants
|
|
@@ -36083,7 +36099,7 @@ var index$5 = /*#__PURE__*/Object.freeze({
|
|
|
36083
36099
|
|
|
36084
36100
|
|
|
36085
36101
|
|
|
36086
|
-
var index$
|
|
36102
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
36087
36103
|
__proto__: null,
|
|
36088
36104
|
formats: formats,
|
|
36089
36105
|
general: general
|
|
@@ -36137,7 +36153,7 @@ exports.GoToEmailIcon = GoToEmailIcon$1;
|
|
|
36137
36153
|
exports.Grid = Grid;
|
|
36138
36154
|
exports.HamburgerButton = HamburgerButton;
|
|
36139
36155
|
exports.Heading = Heading$1;
|
|
36140
|
-
exports.HighlightTabRow =
|
|
36156
|
+
exports.HighlightTabRow = HighlightTabRow$1;
|
|
36141
36157
|
exports.Imposter = Imposter;
|
|
36142
36158
|
exports.InternalLink = InternalLink;
|
|
36143
36159
|
exports.Jumbo = Jumbo$1;
|
|
@@ -36146,7 +36162,7 @@ exports.LineItem = LineItem$1;
|
|
|
36146
36162
|
exports.Loading = Loading;
|
|
36147
36163
|
exports.LoginForm = LoginForm;
|
|
36148
36164
|
exports.Modal = Modal$1;
|
|
36149
|
-
exports.Module =
|
|
36165
|
+
exports.Module = Module$1;
|
|
36150
36166
|
exports.Motion = Motion;
|
|
36151
36167
|
exports.NavFooter = NavFooter;
|
|
36152
36168
|
exports.NavHeader = NavHeader;
|
|
@@ -36194,7 +36210,7 @@ exports.Text = Text$1;
|
|
|
36194
36210
|
exports.ToggleSwitch = ToggleSwitch$1;
|
|
36195
36211
|
exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
|
|
36196
36212
|
exports.WorkflowTile = WorkflowTile;
|
|
36197
|
-
exports.constants = index$
|
|
36213
|
+
exports.constants = index$3;
|
|
36198
36214
|
exports.createPartialAmountFormState = createPartialAmountFormState;
|
|
36199
|
-
exports.util = index$
|
|
36215
|
+
exports.util = index$4;
|
|
36200
36216
|
exports.withWindowSize = withWindowSize;
|