@decisiv/ui-components 2.0.2-alpha.7 → 2.0.2-alpha.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.
@@ -22,6 +22,14 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
22
22
 
23
23
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
24
24
 
25
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
26
+
27
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
28
+
29
+ function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
30
+
31
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
32
+
25
33
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
26
34
 
27
35
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -178,6 +186,34 @@ describe('Modal', function () {
178
186
  });
179
187
  describe('on close', function () {
180
188
  it.todo('returns the focus to where it was before opening the modal');
189
+ }); // Regression test for PD-2746: initial focus must not auto-scroll the
190
+ // modal's scrollable ancestor. JSDOM doesn't simulate browser
191
+ // auto-scroll-on-focus, so we assert the focus call uses preventScroll.
192
+
193
+ it('focuses the initial element without scrolling', function () {
194
+ // useTabbableElements filters on offsetParent, which JSDOM returns as
195
+ // null. Stub it so the focus hook sees the modal's interactive elements.
196
+ var offsetParentDescriptor = Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'offsetParent');
197
+ Object.defineProperty(HTMLElement.prototype, 'offsetParent', {
198
+ configurable: true,
199
+ get: function get() {
200
+ return this.parentNode;
201
+ }
202
+ });
203
+ var focusSpy = jest.spyOn(HTMLElement.prototype, 'focus');
204
+ render(_react.default.createElement(_.default, defaultProps));
205
+ var preventScrollCalls = focusSpy.mock.calls.filter(function (_ref2) {
206
+ var _ref3 = _slicedToArray(_ref2, 1),
207
+ options = _ref3[0];
208
+
209
+ return options && options.preventScroll === true;
210
+ });
211
+ expect(preventScrollCalls.length).toBeGreaterThan(0);
212
+ focusSpy.mockRestore();
213
+
214
+ if (offsetParentDescriptor) {
215
+ Object.defineProperty(HTMLElement.prototype, 'offsetParent', offsetParentDescriptor);
216
+ }
181
217
  });
182
218
  });
183
219
  describe('keyboard interactions', function () {
@@ -256,10 +292,10 @@ describe('Modal', function () {
256
292
  actions: [],
257
293
  test: 'with no actions provided',
258
294
  error: "Warning: Failed prop type: Invalid prop `actions` supplied to `Modal`, expected an array with one or two options. Validation failed.\n in Modal"
259
- }].forEach(function (_ref2) {
260
- var actions = _ref2.actions,
261
- test = _ref2.test,
262
- error = _ref2.error;
295
+ }].forEach(function (_ref4) {
296
+ var actions = _ref4.actions,
297
+ test = _ref4.test,
298
+ error = _ref4.error;
263
299
  it(test, function () {
264
300
  render(_react.default.createElement(_.default, _extends({}, defaultProps, {
265
301
  actions: actions
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/utils.tsx"],"names":[],"mappings":"AAaA,wBAAgB,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAWzD;AAUD,wBAAgB,UAAU,IAAI,CAC5B,WAAW,GAAG,IAAI,EAClB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CACnC,CAUA;AAoCD,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,WAAW,GAAG,IAAI,EAC7B,cAAc,EAAE,OAAO,GACtB,IAAI,CA2DN"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/utils.tsx"],"names":[],"mappings":"AAcA,wBAAgB,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAWzD;AAUD,wBAAgB,UAAU,IAAI,CAC5B,WAAW,GAAG,IAAI,EAClB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CACnC,CAUA;AAoCD,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,WAAW,GAAG,IAAI,EAC7B,cAAc,EAAE,OAAO,GACtB,IAAI,CA2DN"}
@@ -17,6 +17,8 @@ var _react = require("react");
17
17
 
18
18
  var _canUseDOM = _interopRequireDefault(require("../../utils/canUseDOM"));
19
19
 
20
+ var _focusWithoutScrolling = _interopRequireDefault(require("../../utils/focusWithoutScrolling"));
21
+
20
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
23
 
22
24
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
@@ -109,7 +111,7 @@ function useKeepFocusWithin(container, hasCloseButton) {
109
111
  var focusElement = (0, _get.default)(tabbableElements, focusElementIndex, {
110
112
  focus: function focus() {}
111
113
  });
112
- focusElement.focus();
114
+ (0, _focusWithoutScrolling.default)(focusElement);
113
115
  }
114
116
  }, [container]); // eslint-disable-line react-hooks/exhaustive-deps
115
117
 
@@ -11,6 +11,7 @@ export interface Step {
11
11
  export interface WizardProps extends Pick<ModalProps, 'id' | 'visible' | 'zIndex'> {
12
12
  title: string;
13
13
  size?: 'normal' | 'extraLarge';
14
+ stickyHeader?: boolean;
14
15
  steps: Step[];
15
16
  activeStep: number;
16
17
  submitButtonProps?: ButtonProps;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Wizard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAO1D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAa5C,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,mBAAmB,CAAC,EAAE,WAAW,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,SAAS,GAAG,QAAQ,CAAC;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAC;IAC/B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,WAAW,CAAC;IAChC,iBAAiB,CAAC,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE;QACxB,IAAI,EAAE,IAAI,CAAC;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,OAAO,CAAC;Q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,EAAE,OAAO,CAAC;QACpB,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC;KACjC,KAAK,KAAK,CAAC,SAAS,CAAC;CACvB;AAoJD,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,eAQ1D;kBARQ,YAAY;;;;AAiBrB,eAAe,YAAY,CAAC"}
@@ -64,6 +64,8 @@ var Wizard = function Wizard(_ref) {
64
64
  cancelButtonProps = _ref.cancelButtonProps,
65
65
  _ref$size = _ref.size,
66
66
  size = _ref$size === void 0 ? 'normal' : _ref$size,
67
+ _ref$stickyHeader = _ref.stickyHeader,
68
+ stickyHeader = _ref$stickyHeader === void 0 ? true : _ref$stickyHeader,
67
69
  steps = _ref.steps,
68
70
  onCancel = _ref.onCancel,
69
71
  renderActions = _ref.renderActions,
@@ -112,24 +114,25 @@ var Wizard = function Wizard(_ref) {
112
114
  disabled: cancelButtonProps ? !cancelButtonProps.onClick : !onCancel
113
115
  }, cancelButtonProps)));
114
116
  }, [breakpoint, showSubmit, translate, submitButtonProps, showNext, nextButtonProps, showPrevious, previousButtonProps, onCancel, cancelButtonProps]);
117
+
118
+ var headerNode = _react.default.createElement(_styles.Header, {
119
+ size: breakpoint
120
+ }, _react.default.createElement(_.Flex, {
121
+ justifyContent: "center"
122
+ }, _react.default.createElement(_Typography.H2, null, wizardTitle)), _react.default.createElement(_StepTracker.default, {
123
+ steps: stepsTitles,
124
+ activeStep: currentStepNumber
125
+ }));
126
+
115
127
  return _react.default.createElement(_ResponsiveModalWrapper.default, {
116
128
  id: id,
117
129
  size: sizeMapping[size],
118
130
  zIndex: zIndex,
119
131
  breakpoint: breakpoint,
120
132
  observedElementRef: observedElementRef
121
- }, _react.default.createElement(_styles.WizardContainer, null, _react.default.createElement(_styles.ScrollYBox, {
122
- size: breakpoint
123
- }, _react.default.createElement(_styles.Header, {
133
+ }, _react.default.createElement(_styles.WizardContainer, null, stickyHeader && headerNode, _react.default.createElement(_styles.ScrollYBox, {
124
134
  size: breakpoint
125
- }, _react.default.createElement(_.Flex, {
126
- justifyContent: "center"
127
- }, _react.default.createElement(_Typography.H2, null, wizardTitle)), _react.default.createElement(_StepTracker.default, {
128
- steps: stepsTitles,
129
- activeStep: currentStepNumber
130
- })), _react.default.createElement(_styles.StepContainer, {
131
- tabIndex: 0
132
- }, !hideBodyTitle && _react.default.createElement(_.Flex, {
135
+ }, !stickyHeader && headerNode, _react.default.createElement(_styles.StepContainer, null, !hideBodyTitle && _react.default.createElement(_.Flex, {
133
136
  marginBottom: 2
134
137
  }, _react.default.createElement(_Typography.H3, null, title)), content)), _react.default.createElement(_styles.Footer, {
135
138
  size: breakpoint,
@@ -14,6 +14,8 @@ var _ = _interopRequireDefault(require("."));
14
14
 
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
 
17
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
18
+
17
19
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { keys.push.apply(keys, Object.getOwnPropertySymbols(object)); } if (enumerableOnly) keys = keys.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); return keys; }
18
20
 
19
21
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
@@ -937,4 +939,82 @@ describe('Wizard', function () {
937
939
  });
938
940
  });
939
941
  });
942
+ describe('stickyHeader', function () {
943
+ var stickyHeaderSteps = [{
944
+ title: 'First Step',
945
+ content: _react.default.createElement(StepContent, {
946
+ text: "Step 1 Content"
947
+ })
948
+ }, {
949
+ title: 'Second Step',
950
+ content: _react.default.createElement(StepContent, {
951
+ text: "Step 2 Content"
952
+ })
953
+ }];
954
+
955
+ var depthBetween = function depthBetween(descendant, ancestor) {
956
+ var depth = 0;
957
+ var cur = descendant;
958
+
959
+ while (cur && cur !== ancestor) {
960
+ cur = cur.parentElement;
961
+ depth += 1;
962
+ }
963
+
964
+ if (!cur) throw new Error('ancestor is not actually an ancestor');
965
+ return depth;
966
+ };
967
+
968
+ var renderWizard = function renderWizard(stickyHeader) {
969
+ return render(_react.default.createElement(_.default, _extends({
970
+ title: "Wizard Title",
971
+ visible: true,
972
+ activeStep: 1,
973
+ submitButtonProps: {
974
+ onClick: function onClick() {
975
+ return null;
976
+ }
977
+ },
978
+ steps: stickyHeaderSteps
979
+ }, stickyHeader !== undefined ? {
980
+ stickyHeader: stickyHeader
981
+ } : {})));
982
+ };
983
+
984
+ it('renders the title and step content in both modes', function () {
985
+ [true, false].forEach(function (sticky) {
986
+ var _renderWizard = renderWizard(sticky),
987
+ getByRole = _renderWizard.getByRole,
988
+ unmount = _renderWizard.unmount;
989
+
990
+ var modal = getByRole('dialog');
991
+ expect((0, _react2.within)(modal).getByText('Wizard Title', {
992
+ selector: 'h2'
993
+ })).toBeInTheDocument();
994
+ expect((0, _react2.within)(modal).getByText('Step 1 Content')).toBeInTheDocument();
995
+ unmount();
996
+ });
997
+ });
998
+ it('places the header outside the scroll container by default and inside when stickyHeader is false', function () {
999
+ var measure = function measure(stickyHeader) {
1000
+ var _renderWizard2 = renderWizard(stickyHeader),
1001
+ getByRole = _renderWizard2.getByRole,
1002
+ unmount = _renderWizard2.unmount;
1003
+
1004
+ var modal = getByRole('dialog');
1005
+ var title = (0, _react2.within)(modal).getByText('Wizard Title', {
1006
+ selector: 'h2'
1007
+ });
1008
+ var depth = depthBetween(title, modal);
1009
+ unmount();
1010
+ return depth;
1011
+ };
1012
+
1013
+ var stickyDepth = measure(true);
1014
+ var defaultDepth = measure();
1015
+ var nonStickyDepth = measure(false);
1016
+ expect(defaultDepth).toBe(stickyDepth);
1017
+ expect(nonStickyDepth).toBe(stickyDepth + 1);
1018
+ });
1019
+ });
940
1020
  });
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Wizard/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAAsC,CAAC;AAsDnD,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Wizard/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAAsC,CAAC;AA2DnD,eAAe,MAAM,CAAC"}
@@ -14,6 +14,7 @@ var schema = (0, _reactDesc.describe)({
14
14
  schema.propTypes = {
15
15
  id: _reactDesc.PropTypes.string.description('A unique identifier for the modal.'),
16
16
  size: _reactDesc.PropTypes.oneOf(['normal', 'extraLarge']).description('Define the max width size of the modal').defaultValue('normal'),
17
+ stickyHeader: _reactDesc.PropTypes.bool.description('When true (default), the title and step tracker stay pinned above the scrollable step content. When false, the header scrolls with the content.').defaultValue(true),
17
18
  title: _reactDesc.PropTypes.string.description('The text for rendering in the H2 at the top of the modal').isRequired,
18
19
  onCancel: _reactDesc.PropTypes.func.description('The event handler called when the Cancel button is clicked or the Esc key is pressed. If not provided, the Cancel button will be disabled and pressing Esc will not close the modal.'),
19
20
  visible: _reactDesc.PropTypes.bool.description('A boolean value used to control whether the modal is visible or not').defaultValue('false'),
@@ -389,12 +389,11 @@ export declare const Header: import("styled-components").StyledComponent<"div",
389
389
  readonly XL: "XL";
390
390
  }>;
391
391
  }> & {
392
- flex: number;
393
392
  padding: number;
394
393
  paddingBottom: number;
395
394
  flexDirection: string;
396
395
  justifyContent: string;
397
- }, "flexDirection" | "justifyContent" | "paddingBottom" | "flex" | "padding">;
396
+ }, "flexDirection" | "justifyContent" | "paddingBottom" | "padding">;
398
397
  export declare const StepContainer: import("styled-components").StyledComponent<"div", any, Partial<{
399
398
  readonly alignContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
400
399
  readonly XS: "XS";
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Wizard/styles.ts"],"names":[],"mappings":";AAkBA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAQ3B,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAYlB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAMzB,CAAC;AAEF,eAAO,MAAM,UAAU;;;SAYtB,CAAC;AAGF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAMzB,CAAC;AAEF,eAAO,MAAM,UAAU;;;SAetB,CAAC;AAGF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAuBlB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA0BlC,CAAC"}
@@ -36,10 +36,9 @@ var WizardContainer = (0, _styledComponents.default)(_Flex.default).attrs({
36
36
  }).withConfig({
37
37
  displayName: "styles__WizardContainer",
38
38
  componentId: "sc-5745v5-0"
39
- })(["width:100%;height:100%;overflow-y:auto;"]);
39
+ })(["width:100%;height:100%;min-height:0;"]);
40
40
  exports.WizardContainer = WizardContainer;
41
41
  var Header = (0, _styledComponents.default)(_Flex.default).attrs({
42
- flex: 1,
43
42
  padding: 3,
44
43
  paddingBottom: 2,
45
44
  flexDirection: 'column',
@@ -47,7 +46,7 @@ var Header = (0, _styledComponents.default)(_Flex.default).attrs({
47
46
  }).withConfig({
48
47
  displayName: "styles__Header",
49
48
  componentId: "sc-5745v5-1"
50
- })(["width:100%;background-color:", ";row-gap:", ";text-align:center;border-bottom:1px solid ", ";"], (0, _polished.toColorString)(_designTokens.color.base.fullMoon), (0, _polished.rem)(_designTokens.spacing.base * 2), (0, _polished.toColorString)(_designTokens.color.opacity.charcoal15));
49
+ })(["width:100%;flex-shrink:0;background-color:", ";row-gap:", ";text-align:center;border-bottom:1px solid ", ";"], (0, _polished.toColorString)(_designTokens.color.base.fullMoon), (0, _polished.rem)(_designTokens.spacing.base * 2), (0, _polished.toColorString)(_designTokens.color.opacity.charcoal15));
51
50
  exports.Header = Header;
52
51
  var StepContainer = (0, _styledComponents.default)(_Flex.default).attrs({
53
52
  flex: 1,
@@ -61,7 +60,7 @@ exports.StepContainer = StepContainer;
61
60
  var ScrollYBox = (0, _styledComponents.default)(_components.ScrollYBox).withConfig({
62
61
  displayName: "styles__ScrollYBox",
63
62
  componentId: "sc-5745v5-3"
64
- })(["max-height:calc(100vh - ", ");", ";"], (0, _polished.rem)(_designTokens.spacing.base * 14.2), (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["position:relative;max-height:unset;overflow-y:unset;"]))); // this is not styled as mobile first because the button itself isnt yet
63
+ })(["flex:1;min-height:0;max-height:none;height:auto;", ";"], (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["position:relative;max-height:unset;overflow-y:unset;flex:0 0 auto;"]))); // this is not styled as mobile first because the button itself isnt yet
65
64
 
66
65
  exports.ScrollYBox = ScrollYBox;
67
66
  var Footer = (0, _styledComponents.default)(_components.Footer).withConfig({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decisiv/ui-components",
3
- "version": "2.0.2-alpha.7",
3
+ "version": "2.0.2-alpha.8",
4
4
  "description": "Decisiv's design system React components",
5
5
  "author": "Decisiv UI Development Team",
6
6
  "license": "MIT",