@thecb/components 6.3.1-beta.5 → 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 +48 -35
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +24 -2
- package/dist/index.esm.js +48 -35
- 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 +28 -23
- package/src/components/atoms/card/CardHeader.js +5 -4
- package/src/components/atoms/card/CardText.js +19 -14
- 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,67 +35159,78 @@ 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
|
-
var
|
|
35170
|
+
var padding = _ref.padding,
|
|
35171
|
+
text = _ref.text,
|
|
35169
35172
|
titleText = _ref.titleText,
|
|
35170
35173
|
_ref$titleVariant = _ref.titleVariant,
|
|
35171
35174
|
titleVariant = _ref$titleVariant === void 0 ? "small" : _ref$titleVariant,
|
|
35172
35175
|
themeValues = _ref.themeValues;
|
|
35173
|
-
return /*#__PURE__*/React__default.createElement(
|
|
35176
|
+
return /*#__PURE__*/React__default.createElement(Box, {
|
|
35177
|
+
padding: padding
|
|
35178
|
+
}, /*#__PURE__*/React__default.createElement(Cover, null, /*#__PURE__*/React__default.createElement(Stack, null, titleText && /*#__PURE__*/React__default.createElement(Title$1, {
|
|
35179
|
+
as: "p",
|
|
35174
35180
|
variant: titleVariant,
|
|
35175
35181
|
color: themeValues.titleColor,
|
|
35176
|
-
weight: themeValues
|
|
35182
|
+
weight: themeValues.titleWeight
|
|
35177
35183
|
}, titleText), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
35178
35184
|
color: themeValues.textColor
|
|
35179
|
-
}, text)));
|
|
35185
|
+
}, text))));
|
|
35180
35186
|
};
|
|
35181
35187
|
var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$x);
|
|
35182
35188
|
|
|
35183
35189
|
var CardHeader = function CardHeader(_ref) {
|
|
35184
|
-
var
|
|
35190
|
+
var backgroundColor = _ref.backgroundColor,
|
|
35191
|
+
borderRadius = _ref.borderRadius,
|
|
35192
|
+
as = _ref.as,
|
|
35193
|
+
headerText = _ref.headerText,
|
|
35185
35194
|
headerColor = _ref.headerColor,
|
|
35186
35195
|
headerVariant = _ref.headerVariant,
|
|
35187
|
-
|
|
35188
|
-
padding = _ref.padding,
|
|
35189
|
-
borderRadius = _ref.borderRadius;
|
|
35196
|
+
padding = _ref.padding;
|
|
35190
35197
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
35191
35198
|
padding: padding,
|
|
35192
35199
|
background: backgroundColor,
|
|
35193
35200
|
borderRadius: "".concat(borderRadius, " ").concat(borderRadius, " 0 0")
|
|
35194
35201
|
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
35202
|
+
as: as,
|
|
35195
35203
|
variant: headerVariant,
|
|
35196
35204
|
color: headerColor
|
|
35197
35205
|
}, headerText));
|
|
35198
35206
|
};
|
|
35199
35207
|
|
|
35200
35208
|
var Card = function Card(_ref) {
|
|
35201
|
-
var
|
|
35202
|
-
|
|
35209
|
+
var _ref$borderRadius = _ref.borderRadius,
|
|
35210
|
+
borderRadius = _ref$borderRadius === void 0 ? "4px" : _ref$borderRadius,
|
|
35203
35211
|
extraStyles = _ref.extraStyles,
|
|
35204
|
-
_ref$
|
|
35205
|
-
|
|
35206
|
-
|
|
35207
|
-
|
|
35208
|
-
_ref$
|
|
35209
|
-
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,
|
|
35210
35217
|
imgSrc = _ref.imgSrc,
|
|
35211
35218
|
_ref$imgHeight = _ref.imgHeight,
|
|
35212
35219
|
imgHeight = _ref$imgHeight === void 0 ? "150px" : _ref$imgHeight,
|
|
35213
35220
|
_ref$imgObjectFit = _ref.imgObjectFit,
|
|
35214
35221
|
imgObjectFit = _ref$imgObjectFit === void 0 ? "none" : _ref$imgObjectFit,
|
|
35215
|
-
|
|
35216
|
-
_ref$headerVariant = _ref.headerVariant,
|
|
35217
|
-
headerVariant = _ref$headerVariant === void 0 ? "small" : _ref$headerVariant,
|
|
35218
|
-
_ref$borderRadius = _ref.borderRadius,
|
|
35219
|
-
borderRadius = _ref$borderRadius === void 0 ? "4px" : _ref$borderRadius,
|
|
35222
|
+
imgAltText = _ref.imgAltText,
|
|
35220
35223
|
_ref$padding = _ref.padding,
|
|
35221
|
-
padding = _ref$padding === void 0 ? "24px" : _ref$padding
|
|
35222
|
-
|
|
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);
|
|
35223
35234
|
return /*#__PURE__*/React__default.createElement(BoxWithShadow$1, {
|
|
35224
35235
|
variant: "baseStandard",
|
|
35225
35236
|
background: themeValues.backgroundColor,
|
|
@@ -35229,7 +35240,8 @@ var Card = function Card(_ref) {
|
|
|
35229
35240
|
minWidth: width,
|
|
35230
35241
|
extraStyles: extraStyles
|
|
35231
35242
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
35232
|
-
singleChild: true
|
|
35243
|
+
singleChild: true,
|
|
35244
|
+
fillCenter: true
|
|
35233
35245
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
35234
35246
|
fullHeight: true,
|
|
35235
35247
|
childGap: "0",
|
|
@@ -35240,19 +35252,20 @@ var Card = function Card(_ref) {
|
|
|
35240
35252
|
headerVariant: headerVariant,
|
|
35241
35253
|
backgroundColor: themeValues.headerBackgroundColor,
|
|
35242
35254
|
borderRadius: borderRadius,
|
|
35243
|
-
padding: padding
|
|
35255
|
+
padding: padding,
|
|
35256
|
+
as: headerAs
|
|
35244
35257
|
}), imgSrc && /*#__PURE__*/React__default.createElement(CardImage, {
|
|
35245
35258
|
height: imgHeight,
|
|
35246
35259
|
objectFit: imgObjectFit,
|
|
35247
35260
|
backgroundColor: themeValues.imageBackgroundColor,
|
|
35248
|
-
src: imgSrc
|
|
35249
|
-
|
|
35250
|
-
|
|
35251
|
-
|
|
35261
|
+
src: imgSrc,
|
|
35262
|
+
alt: imgAltText
|
|
35263
|
+
}), text && /*#__PURE__*/React__default.createElement(CardText$1, {
|
|
35264
|
+
padding: padding,
|
|
35252
35265
|
titleText: titleText,
|
|
35253
35266
|
text: text,
|
|
35254
35267
|
titleVariant: titleVariant
|
|
35255
|
-
}), children)))
|
|
35268
|
+
}), children)));
|
|
35256
35269
|
};
|
|
35257
35270
|
|
|
35258
35271
|
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$w);
|
|
@@ -37974,10 +37987,10 @@ ForgotPasswordForm.reducer = reducer$4;
|
|
|
37974
37987
|
ForgotPasswordForm.mapStateToProps = mapStateToProps$5;
|
|
37975
37988
|
ForgotPasswordForm.mapDispatchToProps = mapDispatchToProps$4;
|
|
37976
37989
|
|
|
37977
|
-
var textColor$
|
|
37990
|
+
var textColor$3 = "#ffffff";
|
|
37978
37991
|
var backgroundColor$6 = "#182848";
|
|
37979
37992
|
var fallbackValues$B = {
|
|
37980
|
-
textColor: textColor$
|
|
37993
|
+
textColor: textColor$3,
|
|
37981
37994
|
backgroundColor: backgroundColor$6
|
|
37982
37995
|
};
|
|
37983
37996
|
|