@thecb/components 12.1.0-beta.1 → 12.1.0-beta.10
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 +5 -24
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +4 -2
- package/src/components/atoms/nav-footer/NavFooter.js +2 -2
- package/src/components/molecules/partial-amount-form/PartialAmountField.js +1 -2
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +1 -1
package/README.md
CHANGED
|
@@ -140,32 +140,13 @@ Publishing to NPM is automated. When a PR is merged to master, the package will
|
|
|
140
140
|
- Run `yarn add @thecb/components`.
|
|
141
141
|
- To verify it installed successfully, make sure it is in the applicaton's `package.json` file.
|
|
142
142
|
|
|
143
|
-
###
|
|
143
|
+
### Testing changes locally
|
|
144
144
|
|
|
145
|
-
|
|
146
|
-
Open the `@thecb/components`, and in the command line
|
|
145
|
+
See **[TESTING.md](./TESTING.md)** for a complete guide to testing your changes. In short, you have three options:
|
|
147
146
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
You should see a success message, and directions on how to link this package into an application. In the application you’d like the components, navigate to that application and in the command line
|
|
152
|
-
|
|
153
|
-
- Run `yarn link @thecb/components`
|
|
154
|
-
|
|
155
|
-
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
|
|
156
|
-
|
|
157
|
-
- Run `yarn unlink @thecb/components`
|
|
158
|
-
- Run `yarn install` ` --``force `
|
|
159
|
-
|
|
160
|
-
Next go to the `@thecb/components` and in the command line
|
|
161
|
-
|
|
162
|
-
- Run `yarn unlink`
|
|
163
|
-
|
|
164
|
-
Now the package is unlinked, and you’re using the version on NPM.
|
|
165
|
-
|
|
166
|
-
### Yalc
|
|
167
|
-
|
|
168
|
-
If you encounter issues using `yarn link`, a nice alternative is `yalc`. See [https://github.com/wclr/yalc](https://github.com/wclr/yalc) for usage instructions.
|
|
147
|
+
1. **Storybook** (`yarn storybook`) — fastest, for self-contained component changes
|
|
148
|
+
2. **Live Sync** (`yarn sync <path-to-project>`) — test inside a real running app without publishing
|
|
149
|
+
3. **Beta Publish** (`yarn publish-beta`) — publish to npm for CI/CD, QA, or sharing with teammates
|
|
169
150
|
|
|
170
151
|
### Importing and using components
|
|
171
152
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -27029,7 +27029,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27029
27029
|
background: backgroundColor,
|
|
27030
27030
|
minHeight: footerMinHeight,
|
|
27031
27031
|
minWidth: "100%",
|
|
27032
|
-
extraStyles: isMobile ? "
|
|
27032
|
+
extraStyles: isMobile ? "" : "min-height: ".concat(footerMinHeight, "; > * { min-height: 100%; };")
|
|
27033
27033
|
}, rest), /*#__PURE__*/React__default.createElement(Center, {
|
|
27034
27034
|
maxWidth: footerWidth || "76.5rem"
|
|
27035
27035
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
@@ -47170,7 +47170,7 @@ var PartialAmountField = function PartialAmountField(_ref) {
|
|
|
47170
47170
|
extraStyles: "display: block;",
|
|
47171
47171
|
variant: themeValues.detailVariant,
|
|
47172
47172
|
weight: "400"
|
|
47173
|
-
}, lineItem.subDescription
|
|
47173
|
+
}, lineItem.subDescription))),
|
|
47174
47174
|
key: lineItem.id,
|
|
47175
47175
|
field: field,
|
|
47176
47176
|
fieldActions: fieldActions,
|
|
@@ -47182,7 +47182,6 @@ var PartialAmountField = function PartialAmountField(_ref) {
|
|
|
47182
47182
|
placeholder: "$0.00",
|
|
47183
47183
|
formatter: moneyFormat,
|
|
47184
47184
|
isNum: true,
|
|
47185
|
-
isRequired: true,
|
|
47186
47185
|
decorator: /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47187
47186
|
variant: "p"
|
|
47188
47187
|
}, "Amount owed:", " ", /*#__PURE__*/React__default.createElement(Text$1, {
|
|
@@ -48250,7 +48249,8 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48250
48249
|
}, html), /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48251
48250
|
justify: "flex-start",
|
|
48252
48251
|
align: "center",
|
|
48253
|
-
nowrap: true
|
|
48252
|
+
nowrap: true,
|
|
48253
|
+
overflow: true
|
|
48254
48254
|
}, showCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48255
48255
|
name: id,
|
|
48256
48256
|
error: hasError,
|