@thecb/components 6.0.0 → 6.0.3
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.cjs.js +14 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +14 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/dropdown/Dropdown.js +10 -6
- package/src/components/molecules/highlight-tab-row/HighlightTabRow.js +3 -0
- package/src/components/molecules/modal/Modal.js +70 -57
- package/src/components/molecules/modal/Modal.stories.js +52 -3
- package/src/util/general.js +21 -0
- package/src/.DS_Store +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -6145,6 +6145,8 @@ var checkDeniedCards = function checkDeniedCards(name) {
|
|
|
6145
6145
|
*/
|
|
6146
6146
|
|
|
6147
6147
|
var screenReaderOnlyStyle = "\n position: absolute;\n left: -10000px;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n";
|
|
6148
|
+
var inputPlaceholderTextStyle = "\n ::-webkit-input-placeholder {\n color: ".concat(CHARADE_GREY, ";\n }\n ::-moz-placeholder {\n color: ").concat(CHARADE_GREY, ";\n }\n ::-ms-placeholder {\n color: ").concat(CHARADE_GREY, ";\n }\n ::placeholder {\n color: ").concat(CHARADE_GREY, ";\n }\n");
|
|
6149
|
+
var inputDisabledStyle = "\n color: #6e727e;\n background-color: #f7f7f7;\n pointer-events: none;\n";
|
|
6148
6150
|
|
|
6149
6151
|
var general = /*#__PURE__*/Object.freeze({
|
|
6150
6152
|
__proto__: null,
|
|
@@ -6157,7 +6159,9 @@ var general = /*#__PURE__*/Object.freeze({
|
|
|
6157
6159
|
checkCardBrand: checkCardBrand,
|
|
6158
6160
|
displayCardBrand: displayCardBrand,
|
|
6159
6161
|
checkDeniedCards: checkDeniedCards,
|
|
6160
|
-
screenReaderOnlyStyle: screenReaderOnlyStyle
|
|
6162
|
+
screenReaderOnlyStyle: screenReaderOnlyStyle,
|
|
6163
|
+
inputPlaceholderTextStyle: inputPlaceholderTextStyle,
|
|
6164
|
+
inputDisabledStyle: inputDisabledStyle
|
|
6161
6165
|
});
|
|
6162
6166
|
|
|
6163
6167
|
var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
|
|
@@ -20969,7 +20973,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
20969
20973
|
borderRadius: "2px",
|
|
20970
20974
|
borderSize: "1px",
|
|
20971
20975
|
borderColor: isError ? ERROR_COLOR : isOpen ? themeValues.selectedColor : GREY_CHATEAU,
|
|
20972
|
-
extraStyles: disabled
|
|
20976
|
+
extraStyles: disabled ? "".concat(inputPlaceholderTextStyle).concat(inputDisabledStyle) : inputPlaceholderTextStyle,
|
|
20973
20977
|
hoverStyles: "background-color: ".concat(themeValues.hoverColor, ";"),
|
|
20974
20978
|
isOpen: isOpen,
|
|
20975
20979
|
minHeight: "48px",
|
|
@@ -37264,7 +37268,10 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
37264
37268
|
boxShadow: "0px 0px 4px 0px rgb(110, 114, 126)",
|
|
37265
37269
|
role: "region",
|
|
37266
37270
|
"aria-label": "Payment step"
|
|
37267
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
37271
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
37272
|
+
srOnly: true,
|
|
37273
|
+
padding: "0"
|
|
37274
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, null, "Current step: ".concat(tabs[highlightIndex]))), /*#__PURE__*/React__default.createElement(Center, {
|
|
37268
37275
|
maxWidth: "76.5rem"
|
|
37269
37276
|
}, /*#__PURE__*/React__default.createElement(Reel, {
|
|
37270
37277
|
padding: "0",
|
|
@@ -40257,6 +40264,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
40257
40264
|
defaultWrapper = _ref$defaultWrapper === void 0 ? true : _ref$defaultWrapper,
|
|
40258
40265
|
_ref$onlyCloseButton = _ref.onlyCloseButton,
|
|
40259
40266
|
onlyCloseButton = _ref$onlyCloseButton === void 0 ? false : _ref$onlyCloseButton,
|
|
40267
|
+
_ref$noButtons = _ref.noButtons,
|
|
40268
|
+
noButtons = _ref$noButtons === void 0 ? false : _ref$noButtons,
|
|
40260
40269
|
maxHeight = _ref.maxHeight,
|
|
40261
40270
|
_ref$underlayClickExi = _ref.underlayClickExits,
|
|
40262
40271
|
underlayClickExits = _ref$underlayClickExi === void 0 ? true : _ref$underlayClickExi,
|
|
@@ -40317,7 +40326,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
40317
40326
|
justify: "flex-end",
|
|
40318
40327
|
align: "center",
|
|
40319
40328
|
childGap: "0rem"
|
|
40320
|
-
}, !onlyCloseButton ? /*#__PURE__*/React__default.createElement(React.Fragment, null, isMobile ? /*#__PURE__*/React__default.createElement(Stack, {
|
|
40329
|
+
}, !noButtons && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !onlyCloseButton ? /*#__PURE__*/React__default.createElement(React.Fragment, null, isMobile ? /*#__PURE__*/React__default.createElement(Stack, {
|
|
40321
40330
|
childGap: "1rem",
|
|
40322
40331
|
direction: "row"
|
|
40323
40332
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -40369,7 +40378,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
40369
40378
|
dataQa: "Close",
|
|
40370
40379
|
extraStyles: buttonExtraStyles,
|
|
40371
40380
|
className: "modal-cancel-button"
|
|
40372
|
-
})))))))), children);
|
|
40381
|
+
}))))))))), children);
|
|
40373
40382
|
};
|
|
40374
40383
|
|
|
40375
40384
|
var fontSize$9 = {
|