@trafilea/afrodita-components 4.0.2-beta.4 → 4.0.2-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/build/dts/components/icons/Messaging/Mail.d.ts +0 -1
- package/build/dts/components/icons/Messaging/Message.d.ts +1 -1
- package/build/dts/components/shared/button/BaseButton.d.ts +2 -1
- package/build/dts/components/shared/button/BaseButton.stories.d.ts +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.esm.js +27 -6
- package/build/index.esm.js.map +1 -1
- package/build/index.js +27 -6
- package/build/index.js.map +1 -1
- package/build/theme/shapermint.theme.js +112 -51
- package/build/theme/truekind.theme.js +70 -50
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -63,8 +63,8 @@ function __makeTemplateObject(cooked, raw) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
var IconWrapper = function (_a) {
|
|
66
|
-
var height = _a.height,
|
|
67
|
-
return (jsxRuntime.jsxs("svg", __assign({ width: width ? "".concat(width, "rem") : '100%', height: height ? "".concat(height, "rem") : '100%', viewBox: "0 0 ".concat(viewBoxX, " ").concat(viewBoxY), xmlns: "http://www.w3.org/2000/svg", "data-testid": testid ? testid : 'IconWrapper', fill: fill }, { children: [jsxRuntime.jsxs("title", { children: [title, " icon"] }, void 0), children] }), void 0));
|
|
66
|
+
var height = _a.height, _b = _a.width, width = _b === void 0 ? 1 : _b, title = _a.title, viewBoxX = _a.viewBoxX, viewBoxY = _a.viewBoxY, children = _a.children, testid = _a.testid, fill = _a.fill;
|
|
67
|
+
return (jsxRuntime.jsxs("svg", __assign({ style: { display: 'inline-block', verticalAlign: 'middle' }, width: width ? "".concat(width, "rem") : '100%', height: height ? "".concat(height, "rem") : width ? "".concat(width, "rem") : '100%', viewBox: "0 0 ".concat(viewBoxX, " ").concat(viewBoxY), xmlns: "http://www.w3.org/2000/svg", "data-testid": testid ? testid : 'IconWrapper', fill: fill }, { children: [jsxRuntime.jsxs("title", { children: [title, " icon"] }, void 0), children] }), void 0));
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
var SixtyDaysGuarantee = function (_a) {
|
|
@@ -3288,7 +3288,7 @@ exports.InputValidationType = void 0;
|
|
|
3288
3288
|
})(exports.InputValidationType || (exports.InputValidationType = {}));
|
|
3289
3289
|
|
|
3290
3290
|
var Section = newStyled.div(templateObject_1$$ || (templateObject_1$$ = __makeTemplateObject(["\n font-weight: 600;\n display: flex;\n flex-direction: row;\n align-items: center;\n align-text: left;\n width: 100%;\n box-sizing: border-box;\n align-self: flex-start;\n padding: ", ";\n"], ["\n font-weight: 600;\n display: flex;\n flex-direction: row;\n align-items: center;\n align-text: left;\n width: 100%;\n box-sizing: border-box;\n align-self: flex-start;\n padding: ", ";\n"])), function (props) {
|
|
3291
|
-
return props.type === exports.CardSectionType.Header ? '
|
|
3291
|
+
return props.type === exports.CardSectionType.Header ? '1.5rem 1.5rem 0' : '0 1.5rem 1.5rem';
|
|
3292
3292
|
});
|
|
3293
3293
|
var CardHeader = function (_a) {
|
|
3294
3294
|
var children = _a.children;
|
|
@@ -3489,13 +3489,14 @@ function jsxs(type, props, key) {
|
|
|
3489
3489
|
}
|
|
3490
3490
|
|
|
3491
3491
|
var BaseButton = function (_a) {
|
|
3492
|
-
var children = _a.children, renderLeading = _a.renderLeading, renderTrailing = _a.renderTrailing, disabled = _a.disabled, _b = _a.type, type = _b === void 0 ? 'button' : _b, onClick = _a.onClick, className = _a.className;
|
|
3492
|
+
var children = _a.children, renderLeading = _a.renderLeading, renderTrailing = _a.renderTrailing, disabled = _a.disabled, _b = _a.type, type = _b === void 0 ? 'button' : _b, onClick = _a.onClick, className = _a.className, inline = _a.inline;
|
|
3493
3493
|
return (jsxs("button", __assign({ onClick: onClick, disabled: disabled, className: className, type: type, css: {
|
|
3494
|
-
display: 'flex',
|
|
3494
|
+
display: inline ? 'inherit-flex' : 'flex',
|
|
3495
3495
|
justifyContent: 'center',
|
|
3496
3496
|
alignItems: 'center',
|
|
3497
3497
|
padding: '0.75rem 2rem',
|
|
3498
3498
|
textDecoration: 'none',
|
|
3499
|
+
textTransform: 'uppercase',
|
|
3499
3500
|
boxSizing: 'border-box',
|
|
3500
3501
|
cursor: 'pointer',
|
|
3501
3502
|
} }, { children: [renderLeading, children, renderTrailing] }), void 0));
|
|
@@ -3529,7 +3530,7 @@ var BaseCTA = function (_a) {
|
|
|
3529
3530
|
var text = _a.text, onClick = _a.onClick, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.wide, wide = _c === void 0 ? false : _c, _d = _a.size, size = _d === void 0 ? exports.ComponentSize.Medium : _d, type = _a.type, className = _a.className;
|
|
3530
3531
|
var theme = useTheme();
|
|
3531
3532
|
var stylesBySize = getStylesBySize$9(size, theme);
|
|
3532
|
-
return (jsx(BaseButton, __assign({ onClick: onClick, disabled: disabled, className: className, type: type, css: __assign(__assign({ width: wide ? '100%' : '' }, stylesBySize), { fontWeight: theme.component.button.fontWeight, borderRadius: "".concat(theme.component.button.borderRadius), cursor: 'pointer', '&:disabled': {
|
|
3533
|
+
return (jsx(BaseButton, __assign({ onClick: onClick, disabled: disabled, className: className, type: type, css: __assign(__assign({ width: wide ? '100%' : 'fit-content' }, stylesBySize), { fontWeight: theme.component.button.fontWeight, borderRadius: "".concat(theme.component.button.borderRadius), cursor: 'pointer', '&:disabled': {
|
|
3533
3534
|
backgroundColor: theme.colors.background.disabled,
|
|
3534
3535
|
color: theme.colors.text.disabled,
|
|
3535
3536
|
cursor: 'not-allowed',
|
|
@@ -6398,6 +6399,15 @@ var DEFAULTS = {
|
|
|
6398
6399
|
heading3: {
|
|
6399
6400
|
weight: 'bold',
|
|
6400
6401
|
},
|
|
6402
|
+
heading4: {
|
|
6403
|
+
weight: 'bold',
|
|
6404
|
+
},
|
|
6405
|
+
heading5: {
|
|
6406
|
+
weight: 'bold',
|
|
6407
|
+
},
|
|
6408
|
+
heading6: {
|
|
6409
|
+
weight: 'bold',
|
|
6410
|
+
},
|
|
6401
6411
|
hero1: {
|
|
6402
6412
|
weight: 'heavy',
|
|
6403
6413
|
},
|
|
@@ -6425,6 +6435,17 @@ var DEFAULTS = {
|
|
|
6425
6435
|
size: 'regular',
|
|
6426
6436
|
weight: 'regular',
|
|
6427
6437
|
},
|
|
6438
|
+
label: {
|
|
6439
|
+
size: 'regular',
|
|
6440
|
+
weight: 'regular',
|
|
6441
|
+
},
|
|
6442
|
+
link: {
|
|
6443
|
+
size: 'regular',
|
|
6444
|
+
weight: 'regular',
|
|
6445
|
+
},
|
|
6446
|
+
pricing: {
|
|
6447
|
+
size: 'regular',
|
|
6448
|
+
},
|
|
6428
6449
|
};
|
|
6429
6450
|
var templateObject_1$W, templateObject_2$B, templateObject_3$n, templateObject_4$e, templateObject_5$7, templateObject_6$5, templateObject_7$3, templateObject_8$1, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
|
|
6430
6451
|
|