@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
|
@@ -8,6 +8,7 @@ export interface BaseButtonProps {
|
|
|
8
8
|
type?: ButtonType;
|
|
9
9
|
onClick: () => void;
|
|
10
10
|
className?: string;
|
|
11
|
+
inline?: boolean;
|
|
11
12
|
}
|
|
12
|
-
declare const BaseButton: ({ children, renderLeading, renderTrailing, disabled, type, onClick, className, }: BaseButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const BaseButton: ({ children, renderLeading, renderTrailing, disabled, type, onClick, className, inline, }: BaseButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
14
|
export default BaseButton;
|
|
@@ -2,7 +2,7 @@ import { Story } from '@storybook/react';
|
|
|
2
2
|
import { BaseButtonProps } from './BaseButton';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ children, renderLeading, renderTrailing, disabled, type, onClick, className, }: BaseButtonProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
5
|
+
component: ({ children, renderLeading, renderTrailing, disabled, type, onClick, className, inline, }: BaseButtonProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
6
6
|
disabled: {
|
|
7
7
|
options: boolean[];
|
|
8
8
|
control: {
|
package/build/index.d.ts
CHANGED
package/build/index.esm.js
CHANGED
|
@@ -55,8 +55,8 @@ function __makeTemplateObject(cooked, raw) {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
var IconWrapper = function (_a) {
|
|
58
|
-
var height = _a.height,
|
|
59
|
-
return (jsxs$1("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: [jsxs$1("title", { children: [title, " icon"] }, void 0), children] }), void 0));
|
|
58
|
+
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;
|
|
59
|
+
return (jsxs$1("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: [jsxs$1("title", { children: [title, " icon"] }, void 0), children] }), void 0));
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
var SixtyDaysGuarantee = function (_a) {
|
|
@@ -3280,7 +3280,7 @@ var InputValidationType;
|
|
|
3280
3280
|
})(InputValidationType || (InputValidationType = {}));
|
|
3281
3281
|
|
|
3282
3282
|
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) {
|
|
3283
|
-
return props.type === CardSectionType.Header ? '
|
|
3283
|
+
return props.type === CardSectionType.Header ? '1.5rem 1.5rem 0' : '0 1.5rem 1.5rem';
|
|
3284
3284
|
});
|
|
3285
3285
|
var CardHeader = function (_a) {
|
|
3286
3286
|
var children = _a.children;
|
|
@@ -3481,13 +3481,14 @@ function jsxs(type, props, key) {
|
|
|
3481
3481
|
}
|
|
3482
3482
|
|
|
3483
3483
|
var BaseButton = function (_a) {
|
|
3484
|
-
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;
|
|
3484
|
+
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;
|
|
3485
3485
|
return (jsxs("button", __assign({ onClick: onClick, disabled: disabled, className: className, type: type, css: {
|
|
3486
|
-
display: 'flex',
|
|
3486
|
+
display: inline ? 'inherit-flex' : 'flex',
|
|
3487
3487
|
justifyContent: 'center',
|
|
3488
3488
|
alignItems: 'center',
|
|
3489
3489
|
padding: '0.75rem 2rem',
|
|
3490
3490
|
textDecoration: 'none',
|
|
3491
|
+
textTransform: 'uppercase',
|
|
3491
3492
|
boxSizing: 'border-box',
|
|
3492
3493
|
cursor: 'pointer',
|
|
3493
3494
|
} }, { children: [renderLeading, children, renderTrailing] }), void 0));
|
|
@@ -3521,7 +3522,7 @@ var BaseCTA = function (_a) {
|
|
|
3521
3522
|
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 ? ComponentSize.Medium : _d, type = _a.type, className = _a.className;
|
|
3522
3523
|
var theme = useTheme();
|
|
3523
3524
|
var stylesBySize = getStylesBySize$9(size, theme);
|
|
3524
|
-
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': {
|
|
3525
|
+
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': {
|
|
3525
3526
|
backgroundColor: theme.colors.background.disabled,
|
|
3526
3527
|
color: theme.colors.text.disabled,
|
|
3527
3528
|
cursor: 'not-allowed',
|
|
@@ -6390,6 +6391,15 @@ var DEFAULTS = {
|
|
|
6390
6391
|
heading3: {
|
|
6391
6392
|
weight: 'bold',
|
|
6392
6393
|
},
|
|
6394
|
+
heading4: {
|
|
6395
|
+
weight: 'bold',
|
|
6396
|
+
},
|
|
6397
|
+
heading5: {
|
|
6398
|
+
weight: 'bold',
|
|
6399
|
+
},
|
|
6400
|
+
heading6: {
|
|
6401
|
+
weight: 'bold',
|
|
6402
|
+
},
|
|
6393
6403
|
hero1: {
|
|
6394
6404
|
weight: 'heavy',
|
|
6395
6405
|
},
|
|
@@ -6417,6 +6427,17 @@ var DEFAULTS = {
|
|
|
6417
6427
|
size: 'regular',
|
|
6418
6428
|
weight: 'regular',
|
|
6419
6429
|
},
|
|
6430
|
+
label: {
|
|
6431
|
+
size: 'regular',
|
|
6432
|
+
weight: 'regular',
|
|
6433
|
+
},
|
|
6434
|
+
link: {
|
|
6435
|
+
size: 'regular',
|
|
6436
|
+
weight: 'regular',
|
|
6437
|
+
},
|
|
6438
|
+
pricing: {
|
|
6439
|
+
size: 'regular',
|
|
6440
|
+
},
|
|
6420
6441
|
};
|
|
6421
6442
|
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;
|
|
6422
6443
|
|