@qiwi/pijma-desktop 1.154.2 → 1.156.0

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.
Files changed (53) hide show
  1. package/README.md +1 -1
  2. package/lib/dts/actions/Actions.d.ts +2 -2
  3. package/lib/dts/block-accordion/BlockAccordion.d.ts +2 -2
  4. package/lib/dts/button/Button.d.ts +2 -2
  5. package/lib/dts/checkbox/Checkbox.d.ts +2 -2
  6. package/lib/dts/checkbox-field/CheckboxField.d.ts +2 -2
  7. package/lib/dts/code-field/CodeField.d.ts +2 -2
  8. package/lib/dts/drop-down/DropDown.d.ts +2 -2
  9. package/lib/dts/header/Header.d.ts +2 -2
  10. package/lib/dts/header-drop-down/HeaderDropDown.d.ts +2 -2
  11. package/lib/dts/header-suggest/HeaderSuggestProps.d.ts +3 -3
  12. package/lib/dts/hint/Hint.d.ts +11 -0
  13. package/lib/dts/hint/index.d.ts +1 -0
  14. package/lib/dts/list/List.d.ts +2 -2
  15. package/lib/dts/modal/SimpleModal.d.ts +2 -2
  16. package/lib/dts/pagination/Pagination.d.ts +2 -2
  17. package/lib/dts/password-field/PasswordField.d.ts +2 -2
  18. package/lib/dts/phone-field/PhoneField.d.ts +2 -2
  19. package/lib/dts/radio-field/RadioField.d.ts +2 -2
  20. package/lib/dts/select-field/SelectField.d.ts +2 -2
  21. package/lib/dts/switch/Switch.d.ts +2 -2
  22. package/lib/dts/switch-field/SwitchField.d.ts +2 -2
  23. package/lib/dts/text-field/TextField.d.ts +2 -2
  24. package/lib/dts/typography/Caption.d.ts +2 -2
  25. package/lib/dts/typography/Heading.d.ts +2 -2
  26. package/lib/dts/typography/Paragraph.d.ts +2 -2
  27. package/lib/dts/typography/Text.d.ts +2 -2
  28. package/lib/dts/typography/Title.d.ts +2 -2
  29. package/lib/es5/button/Button.js +1 -1
  30. package/lib/es5/code-field/CodeField.js +5 -15
  31. package/lib/es5/drop-down/DropDown.js +26 -19
  32. package/lib/es5/header-drop-down/HeaderDropDown.js +23 -26
  33. package/lib/es5/header-suggest/HeaderSuggest.js +31 -24
  34. package/lib/es5/header-suggest/HeaderSuggestProps.js +0 -2
  35. package/lib/es5/hint/Hint.js +289 -0
  36. package/lib/es5/hint/index.js +6 -0
  37. package/lib/es5/markdown/Markdown.js +2 -2
  38. package/lib/es5/modal/SimpleModal.js +38 -40
  39. package/lib/es5/phone-field/PhoneField.js +1 -0
  40. package/lib/es5/select-field/SelectField.js +41 -41
  41. package/lib/es6/button/Button.js +2 -2
  42. package/lib/es6/code-field/CodeField.js +5 -5
  43. package/lib/es6/drop-down/DropDown.js +21 -15
  44. package/lib/es6/header-drop-down/HeaderDropDown.js +18 -22
  45. package/lib/es6/header-suggest/HeaderSuggest.js +27 -21
  46. package/lib/es6/header-suggest/HeaderSuggestProps.js +1 -1
  47. package/lib/es6/hint/Hint.js +259 -0
  48. package/lib/es6/hint/index.js +1 -0
  49. package/lib/es6/markdown/Markdown.js +3 -3
  50. package/lib/es6/modal/SimpleModal.js +28 -32
  51. package/lib/es6/phone-field/PhoneField.js +1 -0
  52. package/lib/es6/select-field/SelectField.js +32 -33
  53. package/package.json +10 -13
package/README.md CHANGED
@@ -16,7 +16,7 @@ yarn add @qiwi/pijma-desktop
16
16
  import React from 'react'
17
17
  import {cache, themes, fonts, reset, CacheProvider, ThemeProvider, Global, Button, TextField} from '@qiwi/pijma-desktop'
18
18
 
19
- export const App: React.FC = () => (
19
+ export const App = () => (
20
20
  <CacheProvider value={cache}>
21
21
  <ThemeProvider theme={themes.orange}>
22
22
  <Global styles={[reset, fonts]}/>
@@ -1,7 +1,7 @@
1
- import { FunctionComponent, ReactNode } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  export interface ActionsProps {
3
3
  size: 'accent' | 'normal' | 'minor';
4
4
  vertical?: boolean;
5
5
  children?: ReactNode;
6
6
  }
7
- export declare const Actions: FunctionComponent<ActionsProps>;
7
+ export declare const Actions: FC<ActionsProps>;
@@ -1,4 +1,4 @@
1
- import { FunctionComponent, ReactNode } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  export interface BlockAccordionProps<I> {
3
3
  items: I[];
4
4
  opened: number[];
@@ -10,4 +10,4 @@ export interface BlockAccordionItemModel {
10
10
  title: string;
11
11
  content: ReactNode;
12
12
  }
13
- export declare const BlockAccordion: FunctionComponent<BlockAccordionProps<BlockAccordionItemModel>>;
13
+ export declare const BlockAccordion: FC<BlockAccordionProps<BlockAccordionItemModel>>;
@@ -1,4 +1,4 @@
1
- import { FunctionComponent, ReactElement } from 'react';
1
+ import { FC, ReactElement } from 'react';
2
2
  export interface ButtonProps {
3
3
  onClick?: () => void;
4
4
  onFocus?: () => void;
@@ -14,4 +14,4 @@ export interface ButtonProps {
14
14
  stub?: boolean;
15
15
  radius?: number;
16
16
  }
17
- export declare const Button: FunctionComponent<ButtonProps>;
17
+ export declare const Button: FC<ButtonProps>;
@@ -1,3 +1,3 @@
1
- import { FunctionComponent } from 'react';
1
+ import { FC } from 'react';
2
2
  import { CheckboxProps } from './CheckboxProps';
3
- export declare const Checkbox: FunctionComponent<CheckboxProps>;
3
+ export declare const Checkbox: FC<CheckboxProps>;
@@ -1,4 +1,4 @@
1
- import { FunctionComponent } from 'react';
1
+ import { FC } from 'react';
2
2
  import { CheckboxFieldOptionModel } from './CheckboxFieldOptionModel';
3
3
  import { CheckboxFieldProps } from './CheckboxFieldProps';
4
- export declare const CheckboxField: FunctionComponent<CheckboxFieldProps<CheckboxFieldOptionModel<any>, any>>;
4
+ export declare const CheckboxField: FC<CheckboxFieldProps<CheckboxFieldOptionModel<any>, any>>;
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ import { FC } from 'react';
2
2
  import { CodeFieldProps } from './CodeFieldProps';
3
- export declare const CodeField: React.FC<CodeFieldProps>;
3
+ export declare const CodeField: FC<CodeFieldProps>;
@@ -1,5 +1,5 @@
1
1
  import { OverlayProps, Value } from '@qiwi/pijma-core';
2
- import React, { FC } from 'react';
2
+ import { FC, ReactElement } from 'react';
3
3
  export interface DropDownProps {
4
4
  show: boolean;
5
5
  offset?: number;
@@ -10,7 +10,7 @@ export interface DropDownProps {
10
10
  stub?: boolean;
11
11
  target: OverlayProps['target'];
12
12
  container: OverlayProps['container'];
13
- children: React.ReactElement;
13
+ children: ReactElement;
14
14
  onHide: () => void;
15
15
  }
16
16
  export declare const DropDown: FC<DropDownProps>;
@@ -1,6 +1,6 @@
1
- import { FunctionComponent, ReactNode } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  export interface HeaderProps {
3
3
  underline?: boolean;
4
4
  children?: ReactNode;
5
5
  }
6
- export declare const Header: FunctionComponent<HeaderProps>;
6
+ export declare const Header: FC<HeaderProps>;
@@ -1,10 +1,10 @@
1
1
  import { OverlayProps } from '@qiwi/pijma-core';
2
- import React, { FC } from 'react';
2
+ import { FC, ReactElement } from 'react';
3
3
  export interface HeaderDropDownProps {
4
4
  show: boolean;
5
5
  target: OverlayProps['target'];
6
6
  container: OverlayProps['container'];
7
- children: React.ReactElement;
7
+ children: ReactElement;
8
8
  onHide: () => void;
9
9
  }
10
10
  export declare const HeaderDropDown: FC<HeaderDropDownProps>;
@@ -1,12 +1,12 @@
1
1
  import { SuggestControlProps } from '@qiwi/pijma-core';
2
- import React, { ReactElement } from 'react';
2
+ import { ReactElement, RefObject } from 'react';
3
3
  import { HeaderSuggestOptionModel } from './HeaderSuggestOptionModel';
4
4
  export interface HeaderSuggestProps<O extends HeaderSuggestOptionModel<V>, V> {
5
5
  value?: SuggestControlProps<O, V>['value'];
6
6
  suggest: SuggestControlProps<O, V>['suggest'];
7
7
  items?: SuggestControlProps<O, V>['items'];
8
- target: React.RefObject<any>;
9
- container: React.RefObject<any>;
8
+ target: RefObject<any>;
9
+ container: RefObject<any>;
10
10
  tabIndex?: number;
11
11
  autoComplete?: boolean;
12
12
  autoFocus?: boolean;
@@ -0,0 +1,11 @@
1
+ import { OverlayProps } from '@qiwi/pijma-core';
2
+ import { FC, ReactNode } from 'react';
3
+ export interface HintProps {
4
+ show: boolean;
5
+ children: ReactNode;
6
+ placement: NonNullable<OverlayProps['placement']>;
7
+ flip?: boolean;
8
+ onShow: () => void;
9
+ onHide: () => void;
10
+ }
11
+ export declare const Hint: FC<HintProps>;
@@ -0,0 +1 @@
1
+ export * from './Hint';
@@ -1,8 +1,8 @@
1
- import { FunctionComponent, ReactNode } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  export interface ListProps {
3
3
  children: ReactNode[];
4
4
  type: 'step' | 'number' | 'bullet';
5
5
  size?: 's' | 'm' | 'l';
6
6
  stub?: boolean;
7
7
  }
8
- export declare const List: FunctionComponent<ListProps>;
8
+ export declare const List: FC<ListProps>;
@@ -1,4 +1,4 @@
1
- import { FunctionComponent, ReactNode } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  interface SimpleModalProps {
3
3
  show: boolean;
4
4
  closable?: boolean;
@@ -10,5 +10,5 @@ interface SimpleModalProps {
10
10
  onHide?: () => void;
11
11
  children?: ReactNode;
12
12
  }
13
- export declare const SimpleModal: FunctionComponent<SimpleModalProps>;
13
+ export declare const SimpleModal: FC<SimpleModalProps>;
14
14
  export {};
@@ -1,4 +1,4 @@
1
- import { FunctionComponent } from 'react';
1
+ import { FC } from 'react';
2
2
  export interface PaginationProps {
3
3
  total: number;
4
4
  active: number;
@@ -8,4 +8,4 @@ export interface PaginationProps {
8
8
  stub?: boolean;
9
9
  onChange?: (index: number) => void;
10
10
  }
11
- export declare const Pagination: FunctionComponent<PaginationProps>;
11
+ export declare const Pagination: FC<PaginationProps>;
@@ -1,3 +1,3 @@
1
- import { FunctionComponent } from 'react';
1
+ import { FC } from 'react';
2
2
  import { PasswordFieldProps } from './PasswordFieldProps';
3
- export declare const PasswordField: FunctionComponent<PasswordFieldProps>;
3
+ export declare const PasswordField: FC<PasswordFieldProps>;
@@ -1,3 +1,3 @@
1
- import { FunctionComponent } from 'react';
1
+ import { FC } from 'react';
2
2
  import { PhoneFieldProps } from './PhoneFieldProps';
3
- export declare const PhoneField: FunctionComponent<PhoneFieldProps>;
3
+ export declare const PhoneField: FC<PhoneFieldProps>;
@@ -1,4 +1,4 @@
1
- import { FunctionComponent } from 'react';
1
+ import { FC } from 'react';
2
2
  import { RadioFieldOptionModel } from './RadioFieldOptionModel';
3
3
  import { RadioFieldProps } from './RadioFieldProps';
4
- export declare const RadioField: FunctionComponent<RadioFieldProps<RadioFieldOptionModel<any>, any>>;
4
+ export declare const RadioField: FC<RadioFieldProps<RadioFieldOptionModel<any>, any>>;
@@ -1,5 +1,5 @@
1
1
  import { OptionModel } from '@qiwi/pijma-core';
2
- import { FunctionComponent, ReactNode } from 'react';
2
+ import { FC, ReactNode } from 'react';
3
3
  export interface SelectFieldProps<I extends OptionModel<V>, V> {
4
4
  items: I[];
5
5
  title: string;
@@ -19,4 +19,4 @@ export interface SelectFieldProps<I extends OptionModel<V>, V> {
19
19
  export interface SelectFieldItemModel<V> extends OptionModel<V> {
20
20
  text: string;
21
21
  }
22
- export declare const SelectField: FunctionComponent<SelectFieldProps<SelectFieldItemModel<any>, any>>;
22
+ export declare const SelectField: FC<SelectFieldProps<SelectFieldItemModel<any>, any>>;
@@ -1,3 +1,3 @@
1
- import { FunctionComponent } from 'react';
1
+ import { FC } from 'react';
2
2
  import { SwitchProps } from './SwitchProps';
3
- export declare const Switch: FunctionComponent<SwitchProps>;
3
+ export declare const Switch: FC<SwitchProps>;
@@ -1,4 +1,4 @@
1
- import { FunctionComponent } from 'react';
1
+ import { FC } from 'react';
2
2
  import { SwitchFieldOptionModel } from './SwitchFieldOptionModel';
3
3
  import { SwitchFieldProps } from './SwitchFieldProps';
4
- export declare const SwitchField: FunctionComponent<SwitchFieldProps<SwitchFieldOptionModel<any>, any>>;
4
+ export declare const SwitchField: FC<SwitchFieldProps<SwitchFieldOptionModel<any>, any>>;
@@ -1,3 +1,3 @@
1
- import { FunctionComponent } from 'react';
1
+ import { FC } from 'react';
2
2
  import { TextFieldProps } from './TextFieldProps';
3
- export declare const TextField: FunctionComponent<TextFieldProps>;
3
+ export declare const TextField: FC<TextFieldProps>;
@@ -1,5 +1,5 @@
1
1
  import { TypoProps } from '@qiwi/pijma-core';
2
- import { FunctionComponent, ReactNode } from 'react';
2
+ import { FC, ReactNode } from 'react';
3
3
  export interface CaptionProps {
4
4
  color?: 'default' | 'support' | 'inverse';
5
5
  align?: TypoProps['align'];
@@ -7,4 +7,4 @@ export interface CaptionProps {
7
7
  stub?: boolean;
8
8
  children?: ReactNode;
9
9
  }
10
- export declare const Caption: FunctionComponent<CaptionProps>;
10
+ export declare const Caption: FC<CaptionProps>;
@@ -1,5 +1,5 @@
1
1
  import { TypoProps } from '@qiwi/pijma-core';
2
- import { FunctionComponent, ReactNode } from 'react';
2
+ import { FC, ReactNode } from 'react';
3
3
  export interface HeadingProps {
4
4
  tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
5
5
  size: '1' | '2' | '3' | '4' | '5';
@@ -9,4 +9,4 @@ export interface HeadingProps {
9
9
  stub?: boolean;
10
10
  children?: ReactNode;
11
11
  }
12
- export declare const Heading: FunctionComponent<HeadingProps>;
12
+ export declare const Heading: FC<HeadingProps>;
@@ -1,5 +1,5 @@
1
1
  import { TypoProps } from '@qiwi/pijma-core';
2
- import { FunctionComponent, ReactNode } from 'react';
2
+ import { FC, ReactNode } from 'react';
3
3
  export interface ParagraphProps {
4
4
  size?: 's' | 'm' | 'l';
5
5
  bold?: boolean;
@@ -11,4 +11,4 @@ export interface ParagraphProps {
11
11
  stub?: boolean;
12
12
  children?: ReactNode;
13
13
  }
14
- export declare const Paragraph: FunctionComponent<ParagraphProps>;
14
+ export declare const Paragraph: FC<ParagraphProps>;
@@ -1,5 +1,5 @@
1
1
  import { TypoProps } from '@qiwi/pijma-core';
2
- import { FunctionComponent, ReactNode } from 'react';
2
+ import { FC, ReactNode } from 'react';
3
3
  export interface TextProps {
4
4
  display?: 'block' | 'inline' | 'inline-block';
5
5
  size?: 's' | 'm' | 'l';
@@ -14,4 +14,4 @@ export interface TextProps {
14
14
  stub?: boolean;
15
15
  children?: ReactNode;
16
16
  }
17
- export declare const Text: FunctionComponent<TextProps>;
17
+ export declare const Text: FC<TextProps>;
@@ -1,5 +1,5 @@
1
1
  import { TypoProps } from '@qiwi/pijma-core';
2
- import { FunctionComponent, ReactNode } from 'react';
2
+ import { FC, ReactNode } from 'react';
3
3
  export interface TitleProps {
4
4
  tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
5
5
  size: '1' | '2';
@@ -9,4 +9,4 @@ export interface TitleProps {
9
9
  stub?: boolean;
10
10
  children?: ReactNode;
11
11
  }
12
- export declare const Title: FunctionComponent<TitleProps>;
12
+ export declare const Title: FC<TitleProps>;
@@ -156,7 +156,7 @@ var Button = function(props) {
156
156
  height: 6,
157
157
  transition: "all 300ms cubic-bezier(0.4, 0.0, 0.2, 1)",
158
158
  transform: "translateZ(0)",
159
- children: /*#__PURE__*/ _react.default.cloneElement(props.icon, {
159
+ children: /*#__PURE__*/ (0, _react.cloneElement)(props.icon, {
160
160
  color: props.disabled ? "#666" : props.kind === "brand" ? "#fff" : "#000",
161
161
  size: 1
162
162
  })
@@ -84,21 +84,11 @@ var CodeField = function(_param) {
84
84
  disabled: props.disabled || loading,
85
85
  ref: item.ref,
86
86
  value: loading ? "" : props.value[index],
87
- onChange: function(e) {
88
- return item.onChange(e, index);
89
- },
90
- onClick: function(e) {
91
- return item.onClick(e, index);
92
- },
93
- onFocus: function(e) {
94
- return item.onFocus(e, index);
95
- },
96
- onBlur: function(e) {
97
- return item.onBlur(e, index);
98
- },
99
- onKeyDown: function(e) {
100
- return renderProps.onKeyDown(e, index);
101
- }
87
+ onChange: item.onChange,
88
+ onClick: item.onClick,
89
+ onFocus: item.onFocus,
90
+ onBlur: item.onBlur,
91
+ onKeyDown: item.onKeyDown
102
92
  })
103
93
  }, index);
104
94
  })
@@ -14,27 +14,26 @@ var _jsxRuntime = require("react/jsx-runtime");
14
14
  var _pijmaCore = require("@qiwi/pijma-core");
15
15
  var _react = /*#__PURE__*/ _interopRequireDefault(require("react"));
16
16
  var Transition = function(props) {
17
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.SimpleTransition, _extends({}, props));
17
+ return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.SimpleTransition, _extends({}, props, {
18
+ timeout: {
19
+ enter: 300,
20
+ exit: 200
21
+ },
22
+ enterClassName: function(timeout) {
23
+ return (0, _pijmaCore.css)({
24
+ opacity: 1,
25
+ transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
26
+ });
27
+ },
28
+ exitClassName: function(timeout) {
29
+ return (0, _pijmaCore.css)({
30
+ opacity: 0,
31
+ transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
32
+ });
33
+ }
34
+ }));
18
35
  };
19
36
  Transition.displayName = "Transition";
20
- Transition.defaultProps = {
21
- timeout: {
22
- enter: 300,
23
- exit: 200
24
- },
25
- enterClassName: function(timeout) {
26
- return (0, _pijmaCore.css)({
27
- opacity: 1,
28
- transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
29
- });
30
- },
31
- exitClassName: function(timeout) {
32
- return (0, _pijmaCore.css)({
33
- opacity: 0,
34
- transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
35
- });
36
- }
37
- };
38
37
  var DropDown = function(param) {
39
38
  var show = param.show, offset = param.offset, width = param.width, minWidth = param.minWidth, maxWidth = param.maxWidth, _rootClose = param.rootClose, rootClose = _rootClose === void 0 ? true : _rootClose, _stub = param.stub, stub = _stub === void 0 ? false : _stub, target = param.target, container = param.container, onHide = param.onHide, children = param.children;
40
39
  return stub ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Box, {
@@ -48,6 +47,14 @@ var DropDown = function(param) {
48
47
  rootClose: rootClose,
49
48
  onHide: onHide,
50
49
  transition: Transition,
50
+ popperConfig: {
51
+ modifiers: [
52
+ {
53
+ name: "preventOverflow",
54
+ enabled: false
55
+ },
56
+ ]
57
+ },
51
58
  children: function(renderProps) {
52
59
  return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Pos, {
53
60
  role: "listbox",
@@ -14,27 +14,26 @@ var _jsxRuntime = require("react/jsx-runtime");
14
14
  var _pijmaCore = require("@qiwi/pijma-core");
15
15
  var _react = /*#__PURE__*/ _interopRequireDefault(require("react"));
16
16
  var Transition = function(props) {
17
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.SimpleTransition, _extends({}, props));
17
+ return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.SimpleTransition, _extends({}, props, {
18
+ timeout: {
19
+ enter: 300,
20
+ exit: 200
21
+ },
22
+ enterClassName: function(timeout) {
23
+ return (0, _pijmaCore.css)({
24
+ opacity: 1,
25
+ transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
26
+ });
27
+ },
28
+ exitClassName: function(timeout) {
29
+ return (0, _pijmaCore.css)({
30
+ opacity: 0,
31
+ transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
32
+ });
33
+ }
34
+ }));
18
35
  };
19
36
  Transition.displayName = "Transition";
20
- Transition.defaultProps = {
21
- timeout: {
22
- enter: 300,
23
- exit: 200
24
- },
25
- enterClassName: function(timeout) {
26
- return (0, _pijmaCore.css)({
27
- opacity: 1,
28
- transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
29
- });
30
- },
31
- exitClassName: function(timeout) {
32
- return (0, _pijmaCore.css)({
33
- opacity: 0,
34
- transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
35
- });
36
- }
37
- };
38
37
  var HeaderDropDown = function(param) {
39
38
  var show = param.show, target = param.target, container = param.container, onHide = param.onHide, children = param.children;
40
39
  return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Overlay, {
@@ -46,14 +45,12 @@ var HeaderDropDown = function(param) {
46
45
  onHide: onHide,
47
46
  transition: Transition,
48
47
  popperConfig: {
49
- modifiers: {
50
- preventOverflow: {
51
- enabled: false
52
- },
53
- hide: {
48
+ modifiers: [
49
+ {
50
+ name: "preventOverflow",
54
51
  enabled: false
55
- }
56
- }
52
+ },
53
+ ]
57
54
  },
58
55
  children: function(renderProps) {
59
56
  return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Pos, {
@@ -21,27 +21,26 @@ var _typography = require("../typography/index.js");
21
21
  var CardItem = (0, _pijmaCore.styled)(_pijmaCore.Card)().withComponent(_menu.MenuItem);
22
22
  CardItem.displayName = "CardItem";
23
23
  var ContentTransition = function(props) {
24
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.SimpleTransition, _extends({}, props));
24
+ return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.SimpleTransition, _extends({}, props, {
25
+ timeout: {
26
+ enter: 150,
27
+ exit: 150
28
+ },
29
+ enterClassName: function(timeout) {
30
+ return (0, _pijmaCore.css)({
31
+ opacity: 1,
32
+ transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
33
+ });
34
+ },
35
+ exitClassName: function(timeout) {
36
+ return (0, _pijmaCore.css)({
37
+ opacity: 0,
38
+ transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
39
+ });
40
+ }
41
+ }));
25
42
  };
26
43
  ContentTransition.displayName = "ContentTransition";
27
- ContentTransition.defaultProps = {
28
- timeout: {
29
- enter: 150,
30
- exit: 150
31
- },
32
- enterClassName: function(timeout) {
33
- return (0, _pijmaCore.css)({
34
- opacity: 1,
35
- transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
36
- });
37
- },
38
- exitClassName: function(timeout) {
39
- return (0, _pijmaCore.css)({
40
- opacity: 0,
41
- transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
42
- });
43
- }
44
- };
45
44
  var HeaderSuggest = function(_param) /*#__PURE__*/ {
46
45
  var _equals = _param.equals, equals = _equals === void 0 ? function(a, b) {
47
46
  return a === b;
@@ -53,8 +52,8 @@ var HeaderSuggest = function(_param) /*#__PURE__*/ {
53
52
  value: props.value,
54
53
  suggest: props.suggest,
55
54
  items: props.items,
56
- total: /*#__PURE__*/ _react.default.isValidElement(props.total) || typeof props.total === "string" ? undefined : props.total,
57
- empty: /*#__PURE__*/ _react.default.isValidElement(props.empty) || typeof props.empty === "string" ? undefined : props.empty,
55
+ total: /*#__PURE__*/ (0, _react.isValidElement)(props.total) || typeof props.total === "string" ? undefined : props.total,
56
+ empty: /*#__PURE__*/ (0, _react.isValidElement)(props.empty) || typeof props.empty === "string" ? undefined : props.empty,
58
57
  equals: equals,
59
58
  onRequest: props.onRequest,
60
59
  onChange: props.onChange,
@@ -69,7 +68,7 @@ var HeaderSuggest = function(_param) /*#__PURE__*/ {
69
68
  onSelect: renderProps.onItemSelect,
70
69
  onKeyDown: renderProps.onModalItemKeyDown,
71
70
  children: function(menuRenderProps) {
72
- return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_react.default.Fragment, {
71
+ return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_react.Fragment, {
73
72
  children: [
74
73
  /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Box, {
75
74
  width: 6,
@@ -86,6 +85,14 @@ var HeaderSuggest = function(_param) /*#__PURE__*/ {
86
85
  rootClose: true,
87
86
  transition: ContentTransition,
88
87
  onHide: renderProps.onHide,
88
+ popperConfig: {
89
+ modifiers: [
90
+ {
91
+ name: "preventOverflow",
92
+ enabled: false
93
+ },
94
+ ]
95
+ },
89
96
  children: function(overlayRenderProps) {
90
97
  return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_pijmaCore.Pos, {
91
98
  type: "absolute",
@@ -205,7 +212,7 @@ var HeaderSuggest = function(_param) /*#__PURE__*/ {
205
212
  props.total && menuRenderProps.items.length > 0 ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Box, {
206
213
  px: 6,
207
214
  pb: 4,
208
- children: /*#__PURE__*/ _react.default.isValidElement(props.total) ? props.total : typeof props.total === "string" ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_markdown.Markdown, {
215
+ children: /*#__PURE__*/ (0, _react.isValidElement)(props.total) ? props.total : typeof props.total === "string" ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_markdown.Markdown, {
209
216
  children: props.total
210
217
  }) : /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_typography.Paragraph, {
211
218
  children: [
@@ -224,7 +231,7 @@ var HeaderSuggest = function(_param) /*#__PURE__*/ {
224
231
  }) : props.empty && menuRenderProps.items.length === 0 && props.items !== undefined ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Box, {
225
232
  px: 6,
226
233
  py: 4,
227
- children: /*#__PURE__*/ _react.default.isValidElement(props.empty) ? props.empty : typeof props.empty === "string" ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_markdown.Markdown, {
234
+ children: /*#__PURE__*/ (0, _react.isValidElement)(props.empty) ? props.empty : typeof props.empty === "string" ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_markdown.Markdown, {
228
235
  children: props.empty
229
236
  }) : /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_typography.Paragraph, {
230
237
  children: [
@@ -2,5 +2,3 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default;
6
- var _react = /*#__PURE__*/ _interopRequireDefault(require("react"));