@decisiv/ui-components 2.0.1-alpha.193 → 2.0.1-alpha.195

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.
@@ -1 +1 @@
1
- {"version":3,"file":"JumpToMenu.d.ts","sourceRoot":"","sources":["../../../src/components/JumpTo/JumpToMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAa9E,OAAO,EAAc,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAiH7D,QAAA,MAAM,iBAAiB,+EAAyB,CAAC;AAKjD,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"JumpToMenu.d.ts","sourceRoot":"","sources":["../../../src/components/JumpTo/JumpToMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAc9E,OAAO,EAAc,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAkI7D,QAAA,MAAM,iBAAiB,+EAAyB,CAAC;AAKjD,eAAe,iBAAiB,CAAC"}
@@ -15,6 +15,8 @@ var _focusWithoutScrolling = _interopRequireDefault(require("../../utils/focusWi
15
15
 
16
16
  var _useTranslations = _interopRequireDefault(require("../../utils/useTranslations"));
17
17
 
18
+ var _useDebounce = _interopRequireDefault(require("../../utils/useDebounce"));
19
+
18
20
  var _Button = _interopRequireDefault(require("../Button"));
19
21
 
20
22
  var _Menu = _interopRequireDefault(require("../Menu"));
@@ -55,20 +57,29 @@ function JumpToMenu(props, forwardedRef) {
55
57
  globalOffset = props.offset,
56
58
  onKeyDown = props.onKeyDown,
57
59
  zIndex = props.zIndex,
58
- rest = _objectWithoutProperties(props, ["items", "label", "offset", "onKeyDown", "zIndex"]);
60
+ _props$openOnMouseHov = props.openOnMouseHover,
61
+ openOnMouseHover = _props$openOnMouseHov === void 0 ? false : _props$openOnMouseHov,
62
+ rest = _objectWithoutProperties(props, ["items", "label", "offset", "onKeyDown", "zIndex", "openOnMouseHover"]);
59
63
 
60
64
  var translate = (0, _useTranslations.default)();
61
65
  var itemSelected = (0, _react.useRef)(false);
62
66
 
63
- var _useState = (0, _react.useState)({
67
+ var _useState = (0, _react.useState)(false),
68
+ _useState2 = _slicedToArray(_useState, 2),
69
+ isPopoverVisible = _useState2[0],
70
+ setIsPopoverVisible = _useState2[1];
71
+
72
+ var debouncedVisible = (0, _useDebounce.default)(isPopoverVisible, 200);
73
+
74
+ var _useState3 = (0, _react.useState)({
64
75
  hide: function hide() {},
65
76
  isVisible: false,
66
77
  show: function show() {},
67
78
  toggle: function toggle() {}
68
79
  }),
69
- _useState2 = _slicedToArray(_useState, 2),
70
- popover = _useState2[0],
71
- setPopover = _useState2[1];
80
+ _useState4 = _slicedToArray(_useState3, 2),
81
+ popover = _useState4[0],
82
+ setPopover = _useState4[1];
72
83
 
73
84
  var buttonRef = (0, _react.useRef)(null);
74
85
  var popoverRef = (0, _react.useCallback)(setPopover, [popover]);
@@ -111,6 +122,12 @@ function JumpToMenu(props, forwardedRef) {
111
122
  var onHide = (0, _react.useCallback)(function () {
112
123
  itemSelected && !itemSelected.current && buttonRef && buttonRef.current && (0, _focusWithoutScrolling.default)(buttonRef.current);
113
124
  }, []);
125
+ var handleMouseEnter = (0, _react.useCallback)(function () {
126
+ setIsPopoverVisible(true);
127
+ }, [openOnMouseHover, popover]);
128
+ var handleMouseLeave = (0, _react.useCallback)(function () {
129
+ setIsPopoverVisible(false);
130
+ }, [openOnMouseHover, popover]);
114
131
  return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_Button.default, _extends({
115
132
  icon: popover.isVisible ? _ChevronUp.default : _ChevronDown.default,
116
133
  iconPosition: "right",
@@ -119,16 +136,21 @@ function JumpToMenu(props, forwardedRef) {
119
136
  ref: buttonRef,
120
137
  size: "small",
121
138
  text: translate(label, 'jumpTo.menuLabel'),
122
- variant: "ghost"
139
+ variant: "ghost",
140
+ onMouseEnter: handleMouseEnter,
141
+ onMouseLeave: handleMouseLeave
123
142
  }, popover.ariaAttributes)), _react.default.createElement(_Popover.default, {
124
143
  contentRole: "menu",
125
- manageEvents: false,
144
+ manageEvents: openOnMouseHover ? 'click' : false,
126
145
  onRequestHide: onRequestHide,
127
146
  ref: popoverRef,
128
147
  target: buttonRef,
129
148
  zIndex: zIndex,
130
149
  onShow: onShow,
131
- onHide: onHide
150
+ onHide: onHide,
151
+ visible: openOnMouseHover ? debouncedVisible : undefined,
152
+ onMouseEnter: handleMouseEnter,
153
+ onMouseLeave: handleMouseLeave
132
154
  }, _react.default.createElement(_Menu.default, _extends({
133
155
  items: menuItems,
134
156
  onSelectItem: onSelectItem,
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/JumpTo/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAAsC,CAAC;AAkCnD,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/JumpTo/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAAsC,CAAC;AAuCnD,eAAe,MAAM,CAAC"}
@@ -20,7 +20,8 @@ schema.propTypes = {
20
20
  label: _reactDesc.PropTypes.string.description('An optional string that sets the label for the component. You can also set the label using the translations object set in context.').defaultValue('Jump To:'),
21
21
  offset: _reactDesc.PropTypes.number.description('A distance to offset the jump to target for _all_ selectors. Can be overridden when declaring jump to items.'),
22
22
  variant: _reactDesc.PropTypes.oneOf(['menu']).description("Selects a specific variation for display. If set to 'menu', the Jump To will display as a drop-down menu. If not set, will display using the standard horizontal layout."),
23
- zIndex: _reactDesc.PropTypes.number.description('For the nav variant, sets the z-index of the `<nav>` element. For the menu variant, sets the z-index of the Popover containing the menu items.')
23
+ zIndex: _reactDesc.PropTypes.number.description('For the nav variant, sets the z-index of the `<nav>` element. For the menu variant, sets the z-index of the Popover containing the menu items.'),
24
+ openOnMouseHover: _reactDesc.PropTypes.bool.description('For the menu variant, if true, the menu will open on mouse hover. If false, the menu will open on mouse click.').defaultValue(false)
24
25
  };
25
26
  var _default = schema;
26
27
  exports.default = _default;
@@ -12,5 +12,6 @@ export interface JumpToProps extends React.HTMLAttributes<HTMLElement> {
12
12
  offset?: number;
13
13
  variant?: 'menu';
14
14
  zIndex?: number;
15
+ openOnMouseHover?: boolean;
15
16
  }
16
17
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/JumpTo/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,oBAAY,SAAS,GAAG,cAAc,GAAG,OAAO,CAAC;AAEjD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACpE,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/JumpTo/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,oBAAY,SAAS,GAAG,cAAc,GAAG,OAAO,CAAC;AAEjD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACpE,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B"}
@@ -4,9 +4,10 @@ import { ModalProps } from './types';
4
4
  import { WizardProps } from '../Wizard';
5
5
  declare type Props = Pick<ModalProps, 'id' | 'onClose' | 'zIndex'> & {
6
6
  size?: WizardProps['size'];
7
+ hasFooter?: boolean;
7
8
  breakpoint: keyof typeof sizes | undefined;
8
9
  observedElementRef: RefObject<HTMLDivElement>;
9
10
  };
10
- declare const ResponsiveModalWrapper: ({ children, breakpoint, id, size, onClose, zIndex, observedElementRef, }: React.PropsWithChildren<Props>) => JSX.Element;
11
+ declare const ResponsiveModalWrapper: ({ children, breakpoint, hasFooter, id, size, onClose, zIndex, observedElementRef, }: React.PropsWithChildren<Props>) => JSX.Element;
11
12
  export default ResponsiveModalWrapper;
12
13
  //# sourceMappingURL=ResponsiveModalWrapper.d.ts.map
@@ -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,UAAU,EAAE,MAAM,OAAO,KAAK,GAAG,SAAS,CAAC;IAC3C,kBAAkB,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;CAC/C,CAAC;AAEF,QAAA,MAAM,sBAAsB,2HA0D3B,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;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"}
@@ -28,6 +28,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28
28
  var ResponsiveModalWrapper = function ResponsiveModalWrapper(_ref) {
29
29
  var children = _ref.children,
30
30
  breakpoint = _ref.breakpoint,
31
+ _ref$hasFooter = _ref.hasFooter,
32
+ hasFooter = _ref$hasFooter === void 0 ? true : _ref$hasFooter,
31
33
  id = _ref.id,
32
34
  _ref$size = _ref.size,
33
35
  size = _ref$size === void 0 ? 'normal' : _ref$size,
@@ -63,6 +65,7 @@ var ResponsiveModalWrapper = function ResponsiveModalWrapper(_ref) {
63
65
  ref: observedElementRef,
64
66
  zIndex: zIndex
65
67
  }, _react.default.createElement(_components.Body, {
68
+ hasFooter: hasFooter,
66
69
  widthSize: size,
67
70
  "aria-describedby": modalContentId,
68
71
  "aria-labelledby": modalHeaderId,
@@ -4,10 +4,12 @@ export declare const Overlay: import("styled-components").StyledComponent<"div",
4
4
  }, never>;
5
5
  export declare const Body: import("styled-components").StyledComponent<"div", any, {
6
6
  size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
7
+ hasFooter: boolean;
7
8
  widthSize: "normal" | "extraLarge" | undefined;
8
9
  }, never>;
9
10
  export declare const ScrollYBox: import("styled-components").StyledComponent<"div", any, {
10
11
  size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
12
+ hasFooter?: boolean | undefined;
11
13
  }, never>;
12
14
  export declare const Header: import("styled-components").StyledComponent<"div", any, Partial<{
13
15
  readonly alignContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
@@ -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;;;SAuChB,CAAC;AAEF,eAAO,MAAM,UAAU;;SAgBtB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAoD,CAAC;AAExE,eAAO,MAAM,oBAAoB,oEAIhC,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAoBlB,CAAC;AAEF,eAAO,MAAM,aAAa,sGAkBzB,CAAC"}
@@ -35,14 +35,14 @@ 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)('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', 'extraLarge', (0, _styledComponents.css)(["max-width:", ";"], (0, _rem.default)(_designTokens.spacing.base * 90))));
39
39
 
40
40
  exports.Body = Body;
41
41
 
42
42
  var ScrollYBox = _styledComponents.default.div.withConfig({
43
43
  displayName: "components__ScrollYBox",
44
44
  componentId: "zcog99-2"
45
- })(["width:100%;overflow-y:auto;position:relative;height:100%;max-height:calc(100vh - 150px);", ";"], (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["max-height:calc(100vh - 70px);"])));
45
+ })(["width:100%;overflow-y:auto;position:relative;height:100%;max-height:calc(100vh - 150px);", ";", ";"], (0, _styleModifiers.when)('hasFooter', false, (0, _styledComponents.css)(["max-height:calc(100vh - 75px);"])), (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["max-height:calc(100vh - 70px);"])));
46
46
 
47
47
  exports.ScrollYBox = ScrollYBox;
48
48
  var Header = (0, _styledComponents.default)(_Flex.default).attrs({
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":";AA+BA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AA2HrC,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;AA+HrC,iBAAS,YAAY,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,UAAU,eAQxE;kBARQ,YAAY;;;;;;;;AAwBrB,eAAe,YAAY,CAAC"}
@@ -17,6 +17,8 @@ var _Times = _interopRequireDefault(require("@decisiv/iconix/lib/components/Time
17
17
 
18
18
  var _get = _interopRequireDefault(require("lodash/get"));
19
19
 
20
+ var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
21
+
20
22
  var _omit = _interopRequireDefault(require("lodash/omit"));
21
23
 
22
24
  var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
@@ -115,14 +117,17 @@ function Modal(_ref) {
115
117
  var modalHeaderId = "modal-header-".concat(uuid);
116
118
  var modalContentId = "modal-content-".concat(uuid);
117
119
  var modalFooterId = "modal-footer-".concat(uuid);
120
+ var hasFooter = !(0, _isEmpty.default)(actions);
118
121
  return _react.default.createElement(_ResponsiveModalWrapper.default, {
119
122
  id: id,
120
123
  zIndex: zIndex,
121
124
  onClose: onClose,
122
125
  breakpoint: breakpoint,
126
+ hasFooter: hasFooter,
123
127
  observedElementRef: observedElementRef
124
128
  }, _react.default.createElement(_components.ScrollYBox, {
125
- size: breakpoint
129
+ size: breakpoint,
130
+ hasFooter: hasFooter
126
131
  }, _react.default.createElement(_components.Header, {
127
132
  id: modalHeaderId,
128
133
  paddingTop: (_ref2 = {}, _defineProperty(_ref2, _breakpointObserver.sizes.LG, 3), _defineProperty(_ref2, _breakpointObserver.sizes.XS, 2), _ref2),
@@ -146,13 +151,13 @@ function Modal(_ref) {
146
151
  paddingBottom: (_ref4 = {}, _defineProperty(_ref4, _breakpointObserver.sizes.LG, 3), _defineProperty(_ref4, _breakpointObserver.sizes.XS, 2), _ref4),
147
152
  paddingX: (_ref5 = {}, _defineProperty(_ref5, _breakpointObserver.sizes.LG, 3), _defineProperty(_ref5, _breakpointObserver.sizes.XS, 2), _ref5),
148
153
  size: breakpoint
149
- }, children)), actions && _react.default.createElement(_components.Footer, {
154
+ }, children)), hasFooter && _react.default.createElement(_components.Footer, {
150
155
  hasIcon: !!IconComponent,
151
156
  id: modalFooterId,
152
157
  paddingX: (_ref6 = {}, _defineProperty(_ref6, _breakpointObserver.sizes.LG, 3), _defineProperty(_ref6, _breakpointObserver.sizes.XS, 2), _ref6),
153
158
  paddingY: (_ref7 = {}, _defineProperty(_ref7, _breakpointObserver.sizes.LG, 2), _defineProperty(_ref7, _breakpointObserver.sizes.XS, 1.5), _ref7),
154
159
  size: breakpoint
155
- }, actions.map(function (action, index) {
160
+ }, actions && actions.map(function (action, index) {
156
161
  return _react.default.createElement(_components.ActionWrapper, {
157
162
  key: action.text,
158
163
  marginRight: 0.5,
@@ -1,5 +1,5 @@
1
1
  import { BorderRadiusProperty } from 'csstype';
2
- import { AriaAttributes, ReactElement, ReactNode, RefObject } from 'react';
2
+ import { AriaAttributes, HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
3
3
  import { RefHandler } from 'react-popper';
4
4
  import { CommonUIColorKeys } from '../../utils/commonUIColors';
5
5
  import { placements } from './constants';
@@ -41,7 +41,7 @@ interface ChildrenRendererProps {
41
41
  export declare type ChildrenRenderer = (props: ChildrenRendererProps) => ReactNode;
42
42
  export declare type Children = ReactNode | ChildrenRenderer;
43
43
  export declare type ArrowColor = 'charcoal' | CommonUIColorKeys;
44
- export interface PopoverProps {
44
+ export interface PopoverProps extends HTMLAttributes<HTMLDivElement> {
45
45
  alwaysRender?: boolean;
46
46
  arrowColor?: ArrowColor;
47
47
  borderRadius?: BorderRadiusProperty<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,oBAAY,IAAI,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;AAEtC,oBAAY,SAAS,GAAG,OAAO,UAAU,CAAC,MAAM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;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC"}
@@ -594,6 +594,7 @@ export declare const StepContainer: import("styled-components").StyledComponent<
594
594
  }, "flexDirection" | "flex" | "padding">;
595
595
  export declare const ScrollYBox: import("styled-components").StyledComponent<"div", any, {
596
596
  size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
597
+ hasFooter?: boolean | undefined;
597
598
  }, never>;
598
599
  export declare const Footer: import("styled-components").StyledComponent<"div", any, Partial<{
599
600
  readonly alignContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA0BlC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export default function useDebounce<T>(value: T, delay: number): T;
2
+ //# sourceMappingURL=useDebounce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDebounce.d.ts","sourceRoot":"","sources":["../../src/utils/useDebounce.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAc7D"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = useDebounce;
7
+
8
+ var _react = require("react");
9
+
10
+ var _useUpdateEffect = _interopRequireDefault(require("./useUpdateEffect"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
15
+
16
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
17
+
18
+ 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; }
19
+
20
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
+
22
+ function useDebounce(value, delay) {
23
+ var _useState = (0, _react.useState)(value),
24
+ _useState2 = _slicedToArray(_useState, 2),
25
+ debouncedValue = _useState2[0],
26
+ setDebouncedValue = _useState2[1];
27
+
28
+ (0, _useUpdateEffect.default)(function () {
29
+ var handler = setTimeout(function () {
30
+ setDebouncedValue(value);
31
+ }, delay);
32
+ return function () {
33
+ clearTimeout(handler);
34
+ };
35
+ }, [value, delay]);
36
+ return debouncedValue;
37
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decisiv/ui-components",
3
- "version": "2.0.1-alpha.193+189229a",
3
+ "version": "2.0.1-alpha.195+94c2fc9",
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": "189229a0f3b51fa3e979b7fc30c4ca80f55fb8ff"
74
+ "gitHead": "94c2fc9d29248d1fa4253badcf49e68c317fba00"
75
75
  }