@decisiv/ui-components 2.0.1-alpha.200 → 2.0.1-alpha.202

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.
@@ -14,7 +14,7 @@ export interface BadgeProps {
14
14
  }
15
15
  declare function variantValidator(props: BadgeProps, propName: 'variant', componentName: 'Badge'): Error | null;
16
16
  export declare const propTypes: {
17
- color: PropTypes.Requireable<CommonUIColorKeys>;
17
+ color: PropTypes.Requireable<"danger" | "success" | "information" | "warning" | "berryCrisp" | "koolaidCake" | "cookieMonster" | "cottonCandy" | "fizzyLime" | "mamboMango" | "carrotCake" | "roseGummy" | "licoriceMousse">;
18
18
  icon: PropTypes.Validator<PropTypes.ReactComponentLike>;
19
19
  size: PropTypes.Requireable<string>;
20
20
  variant: typeof variantValidator;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.tsx"],"names":[],"mappings":"AASA,OAAc,EAGZ,sBAAsB,EAQvB,MAAM,OAAO,CAAC;AA2Bf,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAQ,MAAM,SAAS,CAAC;AAmjBhE,QAAA,MAAM,eAAe,EAAE,sBAAsB,CAC3C,gBAAgB,EAChB,aAAa,CACS,CAAC;AAOzB,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.tsx"],"names":[],"mappings":"AASA,OAAc,EAGZ,sBAAsB,EAQvB,MAAM,OAAO,CAAC;AA2Bf,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAQ,MAAM,SAAS,CAAC;AAojBhE,QAAA,MAAM,eAAe,EAAE,sBAAsB,CAC3C,gBAAgB,EAChB,aAAa,CACS,CAAC;AAOzB,eAAe,eAAe,CAAC"}
@@ -435,7 +435,9 @@ function Combobox(props, ref) {
435
435
  updateIsPopoverVisible(false);
436
436
  }
437
437
  }, [isPopoverVisible, updateIsPopoverVisible]);
438
- (0, _useClickOutside.default)([finalComboboxRef, listRef], handleClickOutsideList);
438
+ (0, _useClickOutside.default)([finalComboboxRef, listRef], handleClickOutsideList, {
439
+ capture: true
440
+ });
439
441
  /**
440
442
  * The DropdownList accepts a prop called `PanelComponent` that can be used
441
443
  * to render useful messages like "Loading" and "No Matches". This builds those
@@ -1,9 +1,7 @@
1
1
  import React, { RefObject } from 'react';
2
2
  import { sizes } from '@decisiv/breakpoint-observer';
3
3
  import { ModalProps } from './types';
4
- import { WizardProps } from '../Wizard';
5
- declare type Props = Pick<ModalProps, 'id' | 'onClose' | 'zIndex'> & {
6
- size?: WizardProps['size'];
4
+ declare type Props = Pick<ModalProps, 'id' | 'onClose' | 'zIndex' | 'size'> & {
7
5
  hasFooter?: boolean;
8
6
  breakpoint: keyof typeof sizes | undefined;
9
7
  observedElementRef: RefObject<HTMLDivElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"ResponsiveModalWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ResponsiveModalWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAkC,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,aAAK,KAAK,GAAG,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,SAAS,GAAG,QAAQ,CAAC,GAAG;IAC3D,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,MAAM,OAAO,KAAK,GAAG,SAAS,CAAC;IAC3C,kBAAkB,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;CAC/C,CAAC;AAEF,QAAA,MAAM,sBAAsB,sIA4D3B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"ResponsiveModalWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ResponsiveModalWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAkC,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,aAAK,KAAK,GAAG,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IACpE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,MAAM,OAAO,KAAK,GAAG,SAAS,CAAC;IAC3C,kBAAkB,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;CAC/C,CAAC;AAEF,QAAA,MAAM,sBAAsB,sIA4D3B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -32,7 +32,7 @@ var ResponsiveModalWrapper = function ResponsiveModalWrapper(_ref) {
32
32
  hasFooter = _ref$hasFooter === void 0 ? true : _ref$hasFooter,
33
33
  id = _ref.id,
34
34
  _ref$size = _ref.size,
35
- size = _ref$size === void 0 ? 'normal' : _ref$size,
35
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
36
36
  onClose = _ref.onClose,
37
37
  _ref$zIndex = _ref.zIndex,
38
38
  zIndex = _ref$zIndex === void 0 ? 100 : _ref$zIndex,
@@ -5,7 +5,7 @@ export declare const Overlay: import("styled-components").StyledComponent<"div",
5
5
  export declare const Body: import("styled-components").StyledComponent<"div", any, {
6
6
  size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
7
7
  hasFooter: boolean;
8
- widthSize: "normal" | "extraLarge" | undefined;
8
+ widthSize: "medium" | "large" | undefined;
9
9
  }, never>;
10
10
  export declare const ScrollYBox: import("styled-components").StyledComponent<"div", any, {
11
11
  size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/components.tsx"],"names":[],"mappings":";AAaA,eAAO,MAAM,OAAO;;SASnB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;SAgDhB,CAAC;AAEF,eAAO,MAAM,UAAU;;;SA4BtB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAoD,CAAC;AAExE,eAAO,MAAM,oBAAoB,oEAIhC,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAKnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAoBlB,CAAC;AAEF,eAAO,MAAM,aAAa,sGAkBzB,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/components.tsx"],"names":[],"mappings":";AAcA,eAAO,MAAM,OAAO;;SASnB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;SAgDhB,CAAC;AAEF,eAAO,MAAM,UAAU;;;SA4BtB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAoD,CAAC;AAExE,eAAO,MAAM,oBAAoB,oEAIhC,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAKnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAoBlB,CAAC;AAEF,eAAO,MAAM,aAAa,sGAkBzB,CAAC"}
@@ -35,7 +35,7 @@ exports.Overlay = Overlay;
35
35
  var Body = _styledComponents.default.div.withConfig({
36
36
  displayName: "components__Body",
37
37
  componentId: "zcog99-1"
38
- })(["background:", ";border-radius:2px;box-shadow:0 1px 4px ", ";margin:40px auto;max-height:calc(100% - 80px);max-width:650px;overflow:hidden;padding-bottom:75px;position:relative;width:100%;", ";", ";", ""], (0, _toColorString.default)(_designTokens.color.base.snowWhite), (0, _toColorString.default)(_designTokens.color.shadow.light.default), (0, _styleModifiers.when)('hasFooter', false, (0, _styledComponents.css)(["padding-bottom:0;"])), (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["border-radius:0;bottom:0;left:0;margin:0;max-height:100%;overflow:hidden;position:fixed;right:0;top:0;padding-bottom:0;"])), (0, _styleModifiers.when)('widthSize', 'extraLarge', (0, _styledComponents.css)(["max-width:", ";"], (0, _rem.default)(_designTokens.spacing.base * 90))));
38
+ })(["background:", ";border-radius:2px;box-shadow:0 1px 4px ", ";margin:40px auto;max-height:calc(100% - 80px);max-width:650px;overflow:hidden;padding-bottom:75px;position:relative;width:100%;", ";", ";", ""], (0, _toColorString.default)(_designTokens.color.base.snowWhite), (0, _toColorString.default)(_designTokens.color.shadow.light.default), (0, _styleModifiers.when)('hasFooter', false, (0, _styledComponents.css)(["padding-bottom:0;"])), (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["border-radius:0;bottom:0;left:0;margin:0;max-height:100%;overflow:hidden;position:fixed;right:0;top:0;padding-bottom:0;"])), (0, _styleModifiers.when)('widthSize', 'large', (0, _styledComponents.css)(["max-width:", ";"], (0, _rem.default)(_designTokens.spacing.base * 90))));
39
39
 
40
40
  exports.Body = Body;
41
41
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":";AAgCA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AA+HrC,iBAAS,YAAY,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,UAAU,eAQxE;kBARQ,YAAY;;;;;;;;AAwBrB,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":";AAgCA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAiIrC,iBAAS,YAAY,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,UAAU,eAQxE;kBARQ,YAAY;;;;;;;;AAwBrB,eAAe,YAAY,CAAC"}
@@ -88,6 +88,8 @@ function Modal(_ref) {
88
88
  id = _ref.id,
89
89
  intent = _ref.intent,
90
90
  onClose = _ref.onClose,
91
+ _ref$size = _ref.size,
92
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
91
93
  title = _ref.title,
92
94
  _ref$zIndex = _ref.zIndex,
93
95
  zIndex = _ref$zIndex === void 0 ? 100 : _ref$zIndex;
@@ -120,6 +122,7 @@ function Modal(_ref) {
120
122
  var hasFooter = !(0, _isEmpty.default)(actions);
121
123
  return _react.default.createElement(_ResponsiveModalWrapper.default, {
122
124
  id: id,
125
+ size: size,
123
126
  zIndex: zIndex,
124
127
  onClose: onClose,
125
128
  breakpoint: breakpoint,
@@ -4,6 +4,10 @@ var _react = _interopRequireDefault(require("react"));
4
4
 
5
5
  var _react2 = require("@testing-library/react");
6
6
 
7
+ var _designTokens = require("@decisiv/design-tokens");
8
+
9
+ var _polished = require("polished");
10
+
7
11
  var _ConfigProvider = require("../../providers/ConfigProvider");
8
12
 
9
13
  var _constants = require("./constants");
@@ -180,6 +184,28 @@ describe('Modal', function () {
180
184
  expect(onClose).not.toHaveBeenCalled();
181
185
  });
182
186
  });
187
+ describe('size', function () {
188
+ describe('medium / default', function () {
189
+ it('renders the modal with a max-width of 650px', function () {
190
+ var _render3 = render(_react.default.createElement(_.default, defaultProps)),
191
+ getByRole = _render3.getByRole;
192
+
193
+ var modal = getByRole('dialog');
194
+ expect(modal).toHaveStyle('max-width: 650px');
195
+ });
196
+ });
197
+ describe('large', function () {
198
+ it("renders the modal with a max-width of ".concat((0, _polished.rem)(_designTokens.spacing.base * 90)), function () {
199
+ var _render4 = render(_react.default.createElement(_.default, _extends({}, defaultProps, {
200
+ size: "large"
201
+ }))),
202
+ getByRole = _render4.getByRole;
203
+
204
+ var modal = getByRole('dialog');
205
+ expect(modal).toHaveStyle("max-width: ".concat((0, _polished.rem)(_designTokens.spacing.base * 90)));
206
+ });
207
+ });
208
+ });
183
209
  describe('with invalid props', function () {
184
210
  beforeEach(function () {
185
211
  jest.spyOn(console, 'error').mockImplementation(function () {});
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/schema.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM,KAAqC,CAAC;AAuDlD,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/schema.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM,KAAqC,CAAC;AA0DlD,eAAe,MAAM,CAAC"}
@@ -24,6 +24,7 @@ schema.propTypes = {
24
24
  id: _reactDesc.PropTypes.string.description('A unique identifier for the modal.'),
25
25
  intent: _reactDesc.PropTypes.oneOf(['information', 'success', 'warning', 'danger', 'help']).description('Shortcuts to the most common combinations of icon and color.'),
26
26
  onClose: _reactDesc.PropTypes.func.description('The event handler called to close the modal. If not provided, the modal will not include a close button and closing by clicking outside or pressing the "Esc" key will be disabled.'),
27
+ size: _reactDesc.PropTypes.oneOf(['medium', 'large']).description('Define the max width size of the modal').defaultValue('medium'),
27
28
  title: _reactDesc.PropTypes.string.description('The text for rendering in the H2 at the top of the modal').isRequired,
28
29
  visible: _reactDesc.PropTypes.bool.description('A boolean value used to control whether the modal is visible or not').defaultValue('false'),
29
30
  zIndex: _reactDesc.PropTypes.number.description('Sets the z-index value for the modal & overlay.')
@@ -13,6 +13,7 @@ export interface ModalProps {
13
13
  id?: string;
14
14
  intent?: keyof typeof intents;
15
15
  onClose?: (event: React.MouseEvent<unknown> | KeyboardEvent) => void;
16
+ size?: 'medium' | 'large';
16
17
  title: string;
17
18
  visible?: boolean;
18
19
  zIndex?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,aAAK,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAG5D,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IACrD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,OAAO,OAAO,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,aAAa,KAAK,IAAI,CAAC;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,iBAA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AsB,CAC7C,cAAc,EACd,gBAAgB,CACQ,CAAC;AAQ3B,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectDate/index.tsx"],"names":[],"mappings":"AAMA,OAAc,EAEZ,sBAAsB,EAMvB,MAAM,OAAO,CAAC;AAsBf,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAQ,MAAM,SAAS,CAAC;AAIjE,OAAO,EACL,SAAS,EACT,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AAqQxC,QAAA,MAAM,iBAAiB,EAAE,sBAAsB,CAC7C,cAAc,EACd,gBAAgB,CACQ,CAAC;AAQ3B,eAAe,iBAAiB,CAAC"}
@@ -225,7 +225,9 @@ function SelectDate(props, ref) {
225
225
  setIsPopoverVisible(false);
226
226
  }
227
227
  }, [isPopoverVisible]);
228
- (0, _useClickOutside.default)([popoverContentRef], handleClickOutsidePopover);
228
+ (0, _useClickOutside.default)([popoverContentRef], handleClickOutsidePopover, {
229
+ capture: true
230
+ });
229
231
  var inputContainerRefs = (0, _compact.default)([inputContainerRef, popoverTargetRef]);
230
232
  /**
231
233
  * Triggers onShow/onHide callbacks representing wether the Popover is open or not.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectDateRange/index.tsx"],"names":[],"mappings":"AAKA,OAAc,EAEZ,sBAAsB,EAMvB,MAAM,OAAO,CAAC;AAyBf,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAQ,MAAM,SAAS,CAAC;AAI3E,OAAO,EACL,SAAS,EACT,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AA4TxC,QAAA,MAAM,sBAAsB,EAAE,sBAAsB,CAClD,mBAAmB,EACnB,qBAAqB,CACQ,CAAC;AAQhC,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectDateRange/index.tsx"],"names":[],"mappings":"AAKA,OAAc,EAEZ,sBAAsB,EAMvB,MAAM,OAAO,CAAC;AAyBf,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAQ,MAAM,SAAS,CAAC;AAI3E,OAAO,EACL,SAAS,EACT,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AA8TxC,QAAA,MAAM,sBAAsB,EAAE,sBAAsB,CAClD,mBAAmB,EACnB,qBAAqB,CACQ,CAAC;AAQhC,eAAe,sBAAsB,CAAC"}
@@ -258,7 +258,9 @@ function SelectDateRange(props, ref) {
258
258
  event.stopPropagation();
259
259
  closePopover();
260
260
  }, [closePopover]);
261
- (0, _useClickOutside.default)([popoverContentRef], handleClickOutsidePopover);
261
+ (0, _useClickOutside.default)([popoverContentRef], handleClickOutsidePopover, {
262
+ capture: true
263
+ });
262
264
  var inputContainerRefs = (0, _compact.default)([inputContainerRef, popoverTargetRef]);
263
265
  /**
264
266
  * Triggers onShow/onHide callbacks representing wether the Popover is open or not.
@@ -7,7 +7,7 @@ export declare const propTypes: {
7
7
  actionAttributes: any;
8
8
  actionIntent: PropTypes.Requireable<string>;
9
9
  actionRef: PropTypes.Requireable<any>;
10
- color: PropTypes.Requireable<import("../../utils/commonUIColors").CommonUIColorKeys>;
10
+ color: PropTypes.Requireable<"danger" | "success" | "information" | "warning" | "berryCrisp" | "koolaidCake" | "cookieMonster" | "cottonCandy" | "fizzyLime" | "mamboMango" | "carrotCake" | "roseGummy" | "licoriceMousse">;
11
11
  variant: PropTypes.Requireable<string>;
12
12
  palette: PropTypes.Requireable<string>;
13
13
  size: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Wizard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAOjD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CA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AC/B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,WAAW,CAAC;IAC/B,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC;CAC9C;AAmGD,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,eAQ1D;kBARQ,YAAY;;;;AAiBrB,eAAe,YAAY,CAAC"}
@@ -47,7 +47,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
47
47
 
48
48
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
49
49
 
50
- // Define Wizard component
50
+ var sizeMapping = {
51
+ normal: 'medium',
52
+ extraLarge: 'large'
53
+ }; // Define Wizard component
54
+
51
55
  var Wizard = function Wizard(_ref) {
52
56
  var _ref3;
53
57
 
@@ -84,7 +88,7 @@ var Wizard = function Wizard(_ref) {
84
88
  var showNext = currentStepNumber < steps.length && !showSubmit && !!nextButtonProps;
85
89
  return _react.default.createElement(_ResponsiveModalWrapper.default, {
86
90
  id: id,
87
- size: size,
91
+ size: sizeMapping[size],
88
92
  zIndex: zIndex,
89
93
  breakpoint: breakpoint,
90
94
  observedElementRef: observedElementRef
@@ -15,7 +15,7 @@ export declare const viColorKeys: ("berryCrisp" | "koolaidCake" | "cookieMonster
15
15
  export declare const statusColorKeys: ("danger" | "success" | "information" | "warning")[];
16
16
  export declare const viColors: VIColors;
17
17
  export declare const statusColors: StatusColors;
18
- export declare const commonUIColorKeys: CommonUIColorKeys[];
18
+ export declare const commonUIColorKeys: ("danger" | "success" | "information" | "warning" | "berryCrisp" | "koolaidCake" | "cookieMonster" | "cottonCandy" | "fizzyLime" | "mamboMango" | "carrotCake" | "roseGummy" | "licoriceMousse")[];
19
19
  export declare const commonUIColors: CommonUIColors;
20
20
  export declare const commonUIThreeShadeCol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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG3B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decisiv/ui-components",
3
- "version": "2.0.1-alpha.200+acba5d1",
3
+ "version": "2.0.1-alpha.202+edddf1d",
4
4
  "description": "Decisiv's design system React components",
5
5
  "author": "Decisiv UI Development Team",
6
6
  "license": "MIT",
@@ -71,5 +71,5 @@
71
71
  "access": "public"
72
72
  },
73
73
  "private": false,
74
- "gitHead": "acba5d12cd37ed776d447166a107a5345394fdb1"
74
+ "gitHead": "edddf1d9dd03a4bb735346e637287a8669df9f4a"
75
75
  }