@mailstep/design-system 0.6.69-beta.1 → 0.6.69-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.6.69-beta.1",
3
+ "version": "0.6.69-beta.3",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -13,7 +13,7 @@ export var Stepper = function (_a) {
13
13
  }, [items]);
14
14
  if (!(items === null || items === void 0 ? void 0 : items.length))
15
15
  return null;
16
- return (_jsxs(Container, { children: [_jsx(ItemsWrapper, { total: items.length, children: items.map(function (_a, index) {
16
+ return (_jsxs(Container, { children: [_jsx(ItemsWrapper, { total: items.length, hasComponent: !!Component, children: items.map(function (_a, index) {
17
17
  var title = _a.title, disabled = _a.disabled, completed = _a.completed, icon = _a.icon;
18
18
  return (_jsx(StepItem, { onClick: handleChangeStep === null || handleChangeStep === void 0 ? void 0 : handleChangeStep(index), title: title, index: index, total: items.length, activeStep: activeStep, disabled: disabled, completed: completed, hasStepNumbering: hasStepNumbering, icon: icon }, title));
19
19
  }) }), Component && _jsx(Component, { handleGoToNextStep: handleGoToNextStep, isLoading: isLoading })] }));
@@ -1,4 +1,5 @@
1
1
  export declare const Container: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {}, never>;
2
2
  export declare const ItemsWrapper: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {
3
3
  total: number;
4
+ hasComponent: boolean;
4
5
  }, never>;
@@ -4,7 +4,10 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import styled from '@xstyled/styled-components';
6
6
  export var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: fit-content;\n justify-content: center;\n align-items: center;\n width: 100%;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n height: fit-content;\n justify-content: center;\n align-items: center;\n width: 100%;\n flex-direction: column;\n"])));
7
- export var ItemsWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n margin-bottom: 36px;\n flex-direction: column;\n width: 100%;\n\n @media (min-width: ", "px) {\n flex-direction: row;\n width: auto;\n }\n"], ["\n display: flex;\n margin-bottom: 36px;\n flex-direction: column;\n width: 100%;\n\n @media (min-width: ", "px) {\n flex-direction: row;\n width: auto;\n }\n"])), function (_a) {
7
+ export var ItemsWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n margin-bottom: ", ";\n flex-direction: column;\n width: 100%;\n\n @media (min-width: ", "px) {\n flex-direction: row;\n width: auto;\n }\n"], ["\n display: flex;\n margin-bottom: ", ";\n flex-direction: column;\n width: 100%;\n\n @media (min-width: ", "px) {\n flex-direction: row;\n width: auto;\n }\n"])), function (_a) {
8
+ var hasComponent = _a.hasComponent;
9
+ return (hasComponent ? '36px' : '0');
10
+ }, function (_a) {
8
11
  var total = _a.total;
9
12
  return total * 150;
10
13
  });