@thecb/components 6.3.1-beta.7 → 6.3.1-beta.8
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 +37 -27
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +24 -2
- package/dist/index.esm.js +37 -27
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/button-with-action/index.d.ts +1 -1
- package/src/components/atoms/card/Card.js +15 -12
- package/src/components/atoms/card/CardHeader.js +5 -4
- package/src/components/atoms/card/CardText.js +2 -1
- package/src/components/atoms/card/CardText.theme.js +1 -1
- package/src/components/atoms/card/index.d.ts +2 -0
- package/src/components/molecules/collapsible-section/index.d.ts +22 -0
- package/src/components/molecules/editable-table/index.d.ts +24 -0
- package/src/components/molecules/index.d.ts +1 -0
package/dist/index.cjs.js
CHANGED
|
@@ -35159,10 +35159,12 @@ var CardImage = styled__default.img.withConfig({
|
|
|
35159
35159
|
|
|
35160
35160
|
var titleColor = BRIGHT_GREY;
|
|
35161
35161
|
var titleWeight = FONT_WEIGHT_BOLD;
|
|
35162
|
-
var
|
|
35162
|
+
var textColor$2 = BRIGHT_GREY;
|
|
35163
|
+
var fallbackValues$x = {
|
|
35163
35164
|
titleColor: titleColor,
|
|
35164
|
-
titleWeight: titleWeight
|
|
35165
|
-
|
|
35165
|
+
titleWeight: titleWeight,
|
|
35166
|
+
textColor: textColor$2
|
|
35167
|
+
};
|
|
35166
35168
|
|
|
35167
35169
|
var CardText = function CardText(_ref) {
|
|
35168
35170
|
var padding = _ref.padding,
|
|
@@ -35174,9 +35176,10 @@ var CardText = function CardText(_ref) {
|
|
|
35174
35176
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
35175
35177
|
padding: padding
|
|
35176
35178
|
}, /*#__PURE__*/React__default.createElement(Cover, null, /*#__PURE__*/React__default.createElement(Stack, null, titleText && /*#__PURE__*/React__default.createElement(Title$1, {
|
|
35179
|
+
as: "p",
|
|
35177
35180
|
variant: titleVariant,
|
|
35178
35181
|
color: themeValues.titleColor,
|
|
35179
|
-
weight: themeValues
|
|
35182
|
+
weight: themeValues.titleWeight
|
|
35180
35183
|
}, titleText), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
35181
35184
|
color: themeValues.textColor
|
|
35182
35185
|
}, text))));
|
|
@@ -35184,45 +35187,50 @@ var CardText = function CardText(_ref) {
|
|
|
35184
35187
|
var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$x);
|
|
35185
35188
|
|
|
35186
35189
|
var CardHeader = function CardHeader(_ref) {
|
|
35187
|
-
var
|
|
35190
|
+
var backgroundColor = _ref.backgroundColor,
|
|
35191
|
+
borderRadius = _ref.borderRadius,
|
|
35192
|
+
as = _ref.as,
|
|
35193
|
+
headerText = _ref.headerText,
|
|
35188
35194
|
headerColor = _ref.headerColor,
|
|
35189
35195
|
headerVariant = _ref.headerVariant,
|
|
35190
|
-
|
|
35191
|
-
padding = _ref.padding,
|
|
35192
|
-
borderRadius = _ref.borderRadius;
|
|
35196
|
+
padding = _ref.padding;
|
|
35193
35197
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
35194
35198
|
padding: padding,
|
|
35195
35199
|
background: backgroundColor,
|
|
35196
35200
|
borderRadius: "".concat(borderRadius, " ").concat(borderRadius, " 0 0")
|
|
35197
35201
|
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
35202
|
+
as: as,
|
|
35198
35203
|
variant: headerVariant,
|
|
35199
35204
|
color: headerColor
|
|
35200
35205
|
}, headerText));
|
|
35201
35206
|
};
|
|
35202
35207
|
|
|
35203
35208
|
var Card = function Card(_ref) {
|
|
35204
|
-
var
|
|
35205
|
-
|
|
35209
|
+
var _ref$borderRadius = _ref.borderRadius,
|
|
35210
|
+
borderRadius = _ref$borderRadius === void 0 ? "4px" : _ref$borderRadius,
|
|
35206
35211
|
extraStyles = _ref.extraStyles,
|
|
35207
|
-
_ref$
|
|
35208
|
-
|
|
35209
|
-
|
|
35210
|
-
|
|
35211
|
-
_ref$
|
|
35212
|
-
titleVariant = _ref$titleVariant === void 0 ? "small" : _ref$titleVariant,
|
|
35212
|
+
_ref$headerAs = _ref.headerAs,
|
|
35213
|
+
headerAs = _ref$headerAs === void 0 ? "h2" : _ref$headerAs,
|
|
35214
|
+
headerText = _ref.headerText,
|
|
35215
|
+
_ref$headerVariant = _ref.headerVariant,
|
|
35216
|
+
headerVariant = _ref$headerVariant === void 0 ? "small" : _ref$headerVariant,
|
|
35213
35217
|
imgSrc = _ref.imgSrc,
|
|
35214
35218
|
_ref$imgHeight = _ref.imgHeight,
|
|
35215
35219
|
imgHeight = _ref$imgHeight === void 0 ? "150px" : _ref$imgHeight,
|
|
35216
35220
|
_ref$imgObjectFit = _ref.imgObjectFit,
|
|
35217
35221
|
imgObjectFit = _ref$imgObjectFit === void 0 ? "none" : _ref$imgObjectFit,
|
|
35218
|
-
|
|
35219
|
-
_ref$headerVariant = _ref.headerVariant,
|
|
35220
|
-
headerVariant = _ref$headerVariant === void 0 ? "small" : _ref$headerVariant,
|
|
35221
|
-
_ref$borderRadius = _ref.borderRadius,
|
|
35222
|
-
borderRadius = _ref$borderRadius === void 0 ? "4px" : _ref$borderRadius,
|
|
35222
|
+
imgAltText = _ref.imgAltText,
|
|
35223
35223
|
_ref$padding = _ref.padding,
|
|
35224
|
-
padding = _ref$padding === void 0 ? "24px" : _ref$padding
|
|
35225
|
-
|
|
35224
|
+
padding = _ref$padding === void 0 ? "24px" : _ref$padding,
|
|
35225
|
+
text = _ref.text,
|
|
35226
|
+
titleText = _ref.titleText,
|
|
35227
|
+
_ref$titleVariant = _ref.titleVariant,
|
|
35228
|
+
titleVariant = _ref$titleVariant === void 0 ? "small" : _ref$titleVariant,
|
|
35229
|
+
themeValues = _ref.themeValues,
|
|
35230
|
+
_ref$width = _ref.width,
|
|
35231
|
+
width = _ref$width === void 0 ? "276px" : _ref$width,
|
|
35232
|
+
children = _ref.children;
|
|
35233
|
+
var numberOfChildren = (Array.isArray(children) ? children.length : 1) + (text ? 1 : 0) + (imgSrc ? 1 : 0) + (headerText ? 1 : 0);
|
|
35226
35234
|
return /*#__PURE__*/React__default.createElement(BoxWithShadow$1, {
|
|
35227
35235
|
variant: "baseStandard",
|
|
35228
35236
|
background: themeValues.backgroundColor,
|
|
@@ -35244,12 +35252,14 @@ var Card = function Card(_ref) {
|
|
|
35244
35252
|
headerVariant: headerVariant,
|
|
35245
35253
|
backgroundColor: themeValues.headerBackgroundColor,
|
|
35246
35254
|
borderRadius: borderRadius,
|
|
35247
|
-
padding: padding
|
|
35255
|
+
padding: padding,
|
|
35256
|
+
as: headerAs
|
|
35248
35257
|
}), imgSrc && /*#__PURE__*/React__default.createElement(CardImage, {
|
|
35249
35258
|
height: imgHeight,
|
|
35250
35259
|
objectFit: imgObjectFit,
|
|
35251
35260
|
backgroundColor: themeValues.imageBackgroundColor,
|
|
35252
|
-
src: imgSrc
|
|
35261
|
+
src: imgSrc,
|
|
35262
|
+
alt: imgAltText
|
|
35253
35263
|
}), text && /*#__PURE__*/React__default.createElement(CardText$1, {
|
|
35254
35264
|
padding: padding,
|
|
35255
35265
|
titleText: titleText,
|
|
@@ -37977,10 +37987,10 @@ ForgotPasswordForm.reducer = reducer$4;
|
|
|
37977
37987
|
ForgotPasswordForm.mapStateToProps = mapStateToProps$5;
|
|
37978
37988
|
ForgotPasswordForm.mapDispatchToProps = mapDispatchToProps$4;
|
|
37979
37989
|
|
|
37980
|
-
var textColor$
|
|
37990
|
+
var textColor$3 = "#ffffff";
|
|
37981
37991
|
var backgroundColor$6 = "#182848";
|
|
37982
37992
|
var fallbackValues$B = {
|
|
37983
|
-
textColor: textColor$
|
|
37993
|
+
textColor: textColor$3,
|
|
37984
37994
|
backgroundColor: backgroundColor$6
|
|
37985
37995
|
};
|
|
37986
37996
|
|