@onepercentio/one-ui 0.20.5 → 0.21.1

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 (58) hide show
  1. package/dist/assets/styles/variables.scss +1 -0
  2. package/dist/components/AdaptiveContainer/AdaptiveContainer.js +4 -2
  3. package/dist/components/AdaptiveContainer/AdaptiveContainer.module.scss +3 -1
  4. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.d.ts +3 -3
  5. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.js +3 -2
  6. package/dist/components/AnchoredTooltip/AnchoredTooltip.d.ts +2 -2
  7. package/dist/components/AnchoredTooltip/AnchoredTooltip.js +3 -2
  8. package/dist/components/AnimatedEntrance/AnimatedEntrance.d.ts +1 -1
  9. package/dist/components/AnimatedEntrance/AnimatedEntrance.js +8 -6
  10. package/dist/components/Button/Button.d.ts +2 -2
  11. package/dist/components/Button/Button.js +2 -1
  12. package/dist/components/Collapsable/Collapsable.d.ts +4 -4
  13. package/dist/components/Collapsable/Collapsable.js +3 -2
  14. package/dist/components/EmailInput/EmailInput.d.ts +3 -3
  15. package/dist/components/EmailInput/EmailInput.js +3 -2
  16. package/dist/components/FadeIn/FadeIn.d.ts +4 -4
  17. package/dist/components/FadeIn/FadeIn.js +3 -2
  18. package/dist/components/FileInput/View/Compact/Compact.js +2 -2
  19. package/dist/components/Form/Form.d.ts +3 -4
  20. package/dist/components/Form/Form.js +3 -2
  21. package/dist/components/InfinityScroll/InfinityScroll.d.ts +3 -3
  22. package/dist/components/InfinityScroll/InfinityScroll.js +3 -2
  23. package/dist/components/Input/Input.d.ts +2 -2
  24. package/dist/components/Input/Input.js +3 -2
  25. package/dist/components/InstantCounter/InstantCounter.d.ts +2 -2
  26. package/dist/components/InstantCounter/InstantCounter.js +3 -2
  27. package/dist/components/MainGrid/MainGrid.d.ts +3 -3
  28. package/dist/components/MainGrid/MainGrid.js +3 -2
  29. package/dist/components/PaginationIndicator/PaginationIndicator.d.ts +4 -4
  30. package/dist/components/PaginationIndicator/PaginationIndicator.js +2 -1
  31. package/dist/components/Parallax/Parallax.d.ts +2 -2
  32. package/dist/components/Parallax/Parallax.js +3 -2
  33. package/dist/components/PasswordInput/PasswordInput.d.ts +3 -3
  34. package/dist/components/PasswordInput/PasswordInput.js +3 -2
  35. package/dist/components/ProgressBar/ProgressBar.d.ts +4 -4
  36. package/dist/components/ProgressBar/ProgressBar.js +6 -6
  37. package/dist/components/SectionContainer/SectionContainer.d.ts +3 -3
  38. package/dist/components/SectionContainer/SectionContainer.js +3 -2
  39. package/dist/components/Select/Select.module.scss +8 -5
  40. package/dist/components/StaticScroller/StaticScroller.d.ts +2 -2
  41. package/dist/components/StaticScroller/StaticScroller.js +3 -2
  42. package/dist/components/Tabs/Tabs.d.ts +6 -1
  43. package/dist/components/Tabs/Tabs.js +25 -6
  44. package/dist/components/Tabs/Tabs.module.scss +21 -2
  45. package/dist/components/Text/Text.d.ts +2 -2
  46. package/dist/components/Text/Text.js +2 -1
  47. package/dist/components/Transition/Transition.d.ts +8 -23
  48. package/dist/components/Transition/Transition.js +3 -2
  49. package/dist/components/UncontrolledTransition/UncontrolledTransition.d.ts +5 -5
  50. package/dist/components/UncontrolledTransition/UncontrolledTransition.js +3 -2
  51. package/dist/components/WalletConnectionWrapper/WalletConnectionWrapper.d.ts +2 -2
  52. package/dist/components/WalletConnectionWrapper/WalletConnectionWrapper.js +3 -2
  53. package/dist/hooks/useHero.d.ts +1 -0
  54. package/dist/hooks/useHero.js +52 -3
  55. package/dist/hooks/useHero.module.scss +7 -0
  56. package/dist/types.d.ts +11 -4
  57. package/package.json +2 -1
  58. package/src/types.ts +155 -41
@@ -10,6 +10,7 @@ $success: var(--success, lightgreen);
10
10
  $successDark: var(--success-dark, green);
11
11
  $mainBackgroundColor: var(--bg-color, white);
12
12
  $primaryColor: var(--primary-color, var(--digital-blue));
13
+ $elevation: var(--card-elevation, 0px 4px 10px rgba(0, 0, 0, 0.1));
13
14
 
14
15
  //FONTS
15
16
  $mainFontFamily: var(--main-font, Roboto);
@@ -58,17 +58,19 @@ function AdaptiveContainer(_ref) {
58
58
  if (direction === "h") {
59
59
  const contentWidth = lastChild.clientWidth;
60
60
  const targetWidth = "".concat(contentWidth, "px");
61
+ const prevWidth = sectionDiv.style.width;
61
62
  sectionDiv.style.width = targetWidth;
62
63
  const func = resetFactory("width", contentWidth);
63
- if (targetWidth === sectionDiv.style.width) func({
64
+ if (targetWidth === prevWidth) func({
64
65
  propertyName: "width"
65
66
  });else sectionDiv.addEventListener("transitionend", func);
66
67
  } else {
67
68
  const contentHeight = lastChild.scrollHeight;
68
69
  const targetHeight = "".concat(contentHeight, "px");
70
+ const prevHeight = sectionDiv.style.height;
69
71
  sectionDiv.style.height = targetHeight;
70
72
  const func = resetFactory("height", contentHeight);
71
- if (targetHeight === sectionDiv.style.height) func({
73
+ if (targetHeight === prevHeight) func({
72
74
  propertyName: "height"
73
75
  });else sectionDiv.addEventListener("transitionend", func);
74
76
  }
@@ -1,8 +1,10 @@
1
1
  .resetSection {
2
2
  min-height: 0px;
3
- transition: width var(--adaptive-container-transition-time, 400ms), height var(--adaptive-container-transition-time, 400ms);
3
+ transition: width var(--adaptive-container-transition-time, 400ms) linear,
4
+ height var(--adaptive-container-transition-time, 400ms) linear;
4
5
  transition-timing-function: linear;
5
6
  overflow: hidden;
7
+ align-items: flex-start;
6
8
  &.h {
7
9
  > * {
8
10
  min-width: auto !important;
@@ -2,7 +2,7 @@ import React from "react";
2
2
  declare type AdaptiveSidebarControls = {
3
3
  dismiss: () => void;
4
4
  };
5
- declare const _default: React.ForwardRefExoticComponent<{
5
+ declare const AdaptiveSidebar: React.ForwardRefExoticComponent<{
6
6
  /** To control AdaptiveSidebar externally
7
7
  * (created for flows that requires floating views when on mobile)
8
8
  **/
@@ -14,8 +14,8 @@ declare const _default: React.ForwardRefExoticComponent<{
14
14
  className?: string | undefined;
15
15
  visibilityControlComponent?: ((props: {
16
16
  open: boolean;
17
- }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) | undefined;
17
+ }) => React.ReactElement) | undefined;
18
18
  } & Omit<React.HTMLProps<HTMLDivElement>, "ref"> & {
19
19
  children?: React.ReactNode;
20
20
  } & React.RefAttributes<AdaptiveSidebarControls>>;
21
- export default _default;
21
+ export default AdaptiveSidebar;
@@ -35,7 +35,7 @@ const DefaultVisibilityControl = function DefaultVisibilityControl(_ref) {
35
35
  /**
36
36
  * A component that you can put anywhere but hides when small enough and shows the control via a fixed floating button
37
37
  **/
38
- function AdaptiveSidebar(_ref2, ref) {
38
+ function _AdaptiveSidebar(_ref2, ref) {
39
39
  let externalOpen = _ref2.open,
40
40
  children = _ref2.children,
41
41
  _ref2$className = _ref2.className,
@@ -87,5 +87,6 @@ function AdaptiveSidebar(_ref2, ref) {
87
87
  open: _open
88
88
  })), isMobile ? /*#__PURE__*/(0, _reactDom.createPortal)(content, document.body) : content);
89
89
  }
90
- var _default = /*#__PURE__*/(0, _react.forwardRef)(AdaptiveSidebar);
90
+ const AdaptiveSidebar = /*#__PURE__*/(0, _react.forwardRef)(_AdaptiveSidebar);
91
+ var _default = AdaptiveSidebar;
91
92
  exports.default = _default;
@@ -25,7 +25,7 @@ export declare enum AnchoredTooltipAnchor {
25
25
  export declare function updateTooltipPosition(tooltipRef: HTMLDivElement, anchorRef: HTMLElement, limitToViewport?: boolean, alignment?: AnchoredTooltipAlignment, anchorTo?: AnchoredTooltipAnchor): {
26
26
  shouldAnchorToBottom: boolean;
27
27
  };
28
- declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<{
28
+ declare const AnchoredTooltip: React.ForwardRefExoticComponent<Props & React.RefAttributes<{
29
29
  updatePosition: () => void;
30
30
  }>>;
31
- export default _default;
31
+ export default AnchoredTooltip;
@@ -120,7 +120,7 @@ function updateTooltipPosition(tooltipRef, anchorRef) {
120
120
  /**
121
121
  * This tooltip anchors itself to an element and handles positioning relative to the anchored element
122
122
  **/
123
- function AnchoredTooltip(_ref, ref) {
123
+ function _AnchoredTooltip(_ref, ref) {
124
124
  let _ref$containInViewpor = _ref.containInViewport,
125
125
  containInViewport = _ref$containInViewpor === void 0 ? true : _ref$containInViewpor,
126
126
  alignment = _ref.alignment,
@@ -170,5 +170,6 @@ function AnchoredTooltip(_ref, ref) {
170
170
  }
171
171
  }, open && !realClosed ? /*#__PURE__*/_react.default.createElement("div", null, children) : undefined), document.body)) : null;
172
172
  }
173
- var _default = /*#__PURE__*/(0, _react.forwardRef)(AnchoredTooltip);
173
+ const AnchoredTooltip = /*#__PURE__*/(0, _react.forwardRef)(_AnchoredTooltip);
174
+ var _default = AnchoredTooltip;
174
175
  exports.default = _default;
@@ -8,7 +8,7 @@ export declare function AnimatedEntranceItem({ children, noEntranceAnimation, on
8
8
  noEntranceAnimation: boolean;
9
9
  onRemoveChildren: (key: Key) => void;
10
10
  entranceType: EntranceType;
11
- }): JSX.Element | null;
11
+ }): JSX.Element;
12
12
  /**
13
13
  * Animates the entrance and exit of a component
14
14
  **/
@@ -100,13 +100,13 @@ function AnimatedEntranceItem(_ref) {
100
100
  clearTimeout(x);
101
101
  };
102
102
  }, [_typeof(screen) === "object" ? screen === null || screen === void 0 ? void 0 : screen.key : screen]);
103
- const className = (0, _react.useMemo)(function () {
104
- return !noEntranceAnimation ? _AnimatedEntranceModule.default.maxHeight : "";
105
- }, [String(children.key).includes("-nullated")]);
106
- return screen === null ? null : /*#__PURE__*/_react.default.createElement(_UncontrolledTransition.default, {
103
+ const firstRenderClass = (0, _react.useMemo)(function () {
104
+ return noEntranceAnimation ? "" : _AnimatedEntranceModule.default.maxHeight;
105
+ }, [screen === null]);
106
+ return /*#__PURE__*/_react.default.createElement(_UncontrolledTransition.default, {
107
107
  ref: uncontRef,
108
108
  transitionType: _Transition.TransitionAnimationTypes.CUSTOM,
109
- className: "".concat(_AnimatedEntranceModule.default.resetHeight, " ").concat(className),
109
+ className: "".concat(_AnimatedEntranceModule.default.resetHeight, " ").concat(firstRenderClass),
110
110
  lockTransitionWidth: true,
111
111
  key: String(children.key).replace("-nullated", ""),
112
112
  onDiscardStep: function onDiscardStep(k) {
@@ -116,7 +116,9 @@ function AnimatedEntranceItem(_ref) {
116
116
  }
117
117
  },
118
118
  config: CONFIGS_BY_ENTRANCE_TYPE[entranceType]
119
- }, typeof screen === "string" ? children : screen);
119
+ }, screen === null ? /*#__PURE__*/_react.default.createElement(_react.Fragment, {
120
+ key: "null"
121
+ }) : typeof screen === "string" ? children : screen);
120
122
  }
121
123
 
122
124
  /**
@@ -6,9 +6,9 @@ declare type ButtonProps = React.PropsWithChildren<React.ButtonHTMLAttributes<HT
6
6
  * A simple button with the new design
7
7
  **/
8
8
  export declare function _Button({ children, variant, className, ...otherProps }: ButtonProps, ref: ForwardedRef<HTMLButtonElement>): JSX.Element;
9
- declare const _default: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
9
+ declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
10
10
  variant?: OnepercentUtility.UIElements.ButtonVariants | undefined;
11
11
  } & {
12
12
  children?: React.ReactNode;
13
13
  } & React.RefAttributes<HTMLButtonElement>>;
14
- export default _default;
14
+ export default Button;
@@ -34,5 +34,6 @@ function _Button(_ref, ref) {
34
34
  variant: variant
35
35
  }, otherProps), children);
36
36
  }
37
- var _default = /*#__PURE__*/(0, _react.forwardRef)(_Button);
37
+ const Button = /*#__PURE__*/(0, _react.forwardRef)(_Button);
38
+ var _default = Button;
38
39
  exports.default = _default;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { HTMLAttributes } from "react";
2
2
  import { AnchoredTooltipAlignment, AnchoredTooltipAnchor } from "../AnchoredTooltip/AnchoredTooltip";
3
3
  declare class _CollapsableInterface {
4
4
  _id: string;
@@ -14,7 +14,7 @@ declare class _CollapsableInterface {
14
14
  * A helper function for interacting with collapsables without a reference
15
15
  */
16
16
  export declare function CollapsableInterface(id: string): _CollapsableInterface;
17
- declare const _default: React.ForwardRefExoticComponent<(React.PropsWithChildren<{
17
+ declare const Collapsable: React.ForwardRefExoticComponent<(React.PropsWithChildren<{
18
18
  title: React.ReactNode;
19
19
  className?: string | undefined;
20
20
  contentClassName?: string | undefined;
@@ -22,7 +22,7 @@ declare const _default: React.ForwardRefExoticComponent<(React.PropsWithChildren
22
22
  open: boolean;
23
23
  id?: string | undefined;
24
24
  "data-testid"?: string | undefined;
25
- onContentClick?: React.MouseEventHandler<HTMLInputElement> | undefined;
25
+ onContentClick?: HTMLAttributes<HTMLInputElement>["onClick"];
26
26
  /**
27
27
  * This flag indicates if the collapsable content should be kept in HTML while it's collapsed
28
28
  *
@@ -43,4 +43,4 @@ declare const _default: React.ForwardRefExoticComponent<(React.PropsWithChildren
43
43
  })> & Omit<React.HTMLAttributes<HTMLDivElement>, "title">) & React.RefAttributes<{
44
44
  redimension: () => void;
45
45
  }>>;
46
- export default _default;
46
+ export default Collapsable;
@@ -28,7 +28,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
28
28
  /**
29
29
  * Wrapps some content on a collapsable header
30
30
  **/
31
- function Collapsable(_ref, ref) {
31
+ function _Collapsable(_ref, ref) {
32
32
  let children = _ref.children,
33
33
  title = _ref.title,
34
34
  className = _ref.className,
@@ -186,5 +186,6 @@ let _CollapsableInterface = /*#__PURE__*/function () {
186
186
  function CollapsableInterface(id) {
187
187
  return new _CollapsableInterface(id);
188
188
  }
189
- var _default = /*#__PURE__*/(0, _react.forwardRef)(Collapsable);
189
+ const Collapsable = /*#__PURE__*/(0, _react.forwardRef)(_Collapsable);
190
+ var _default = Collapsable;
190
191
  exports.default = _default;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  export declare function validateEmail(email: string): boolean;
3
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<{
3
+ declare const EmailInput: React.ForwardRefExoticComponent<Omit<Omit<{
4
4
  decoration?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined;
5
5
  error?: string | React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
6
6
  hideError?: "onfocus" | undefined;
@@ -14,7 +14,7 @@ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<{
14
14
  Icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
15
15
  onChange?: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
16
16
  containerProps?: Omit<React.HTMLProps<HTMLDivElement>, "ref"> | undefined;
17
- } & Omit<React.HTMLProps<HTMLInputElement | HTMLTextAreaElement>, "ref" | "onChange"> & React.RefAttributes<any>, "value" | "onChange"> & {
17
+ } & Omit<React.HTMLProps<HTMLInputElement | HTMLTextAreaElement>, "ref" | "onChange"> & React.RefAttributes<any>, "onChange" | "value"> & {
18
18
  onChange: (email: string, isValid: boolean) => void;
19
19
  value: string;
20
20
  messages: {
@@ -23,4 +23,4 @@ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<{
23
23
  }, "ref"> & React.RefAttributes<{
24
24
  validateEmail: (email: string) => boolean;
25
25
  }>>;
26
- export default _default;
26
+ export default EmailInput;
@@ -25,7 +25,7 @@ function validateEmail(email) {
25
25
  /**
26
26
  * A Input based wrapper to handle inputs of email
27
27
  **/
28
- function EmailInput(props, ref) {
28
+ function _EmailInput(props, ref) {
29
29
  const _useState = (0, _react.useState)(props.value ? !validateEmail(props.value) : false),
30
30
  _useState2 = _slicedToArray(_useState, 2),
31
31
  localWarning = _useState2[0],
@@ -50,5 +50,6 @@ function EmailInput(props, ref) {
50
50
  onChange: _handleInputChange
51
51
  }));
52
52
  }
53
- var _default = /*#__PURE__*/(0, _react.forwardRef)(EmailInput);
53
+ const EmailInput = /*#__PURE__*/(0, _react.forwardRef)(_EmailInput);
54
+ var _default = EmailInput;
54
55
  exports.default = _default;
@@ -1,12 +1,12 @@
1
- import React from "react";
2
- declare const _default: React.ForwardRefExoticComponent<{
1
+ import React, { SyntheticEvent } from "react";
2
+ declare const FadeIn: React.ForwardRefExoticComponent<{
3
3
  className?: string | undefined;
4
4
  active?: boolean | undefined;
5
- onClick?: ((e: React.SyntheticEvent<HTMLDivElement, Event>) => void) | undefined;
5
+ onClick?: ((e: SyntheticEvent<HTMLDivElement>) => void) | undefined;
6
6
  onHidden?: (() => void) | undefined;
7
7
  "data-testid"?: string | undefined;
8
8
  style?: any;
9
9
  } & {
10
10
  children?: React.ReactNode;
11
11
  } & React.RefAttributes<HTMLDivElement>>;
12
- export default _default;
12
+ export default FadeIn;
@@ -23,7 +23,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
23
23
  /**
24
24
  * Receives a children and displays it with a fade in animation, also when it's removed, it hides with a fadeout
25
25
  **/
26
- function FadeIn(_ref, divRef) {
26
+ function _FadeIn(_ref, divRef) {
27
27
  let onHidden = _ref.onHidden,
28
28
  children = _ref.children,
29
29
  _ref$className = _ref.className,
@@ -65,5 +65,6 @@ function FadeIn(_ref, divRef) {
65
65
  onClick: onClick
66
66
  }, props), prevChildren.current);
67
67
  }
68
- var _default = /*#__PURE__*/(0, _react.forwardRef)(FadeIn);
68
+ const FadeIn = /*#__PURE__*/(0, _react.forwardRef)(_FadeIn);
69
+ var _default = FadeIn;
69
70
  exports.default = _default;
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = Compact;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _CompactModule = _interopRequireDefault(require("./Compact.module.scss"));
10
- var _UncontrolledTransition = _interopRequireDefault(require("../../../UncontrolledTransition/UncontrolledTransition"));
10
+ var _UncontrolledTransition2 = _interopRequireDefault(require("../../../UncontrolledTransition/UncontrolledTransition"));
11
11
  var _Transition = require("../../../Transition");
12
12
  var _Button = _interopRequireDefault(require("../../../Button/Button"));
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -49,7 +49,7 @@ function Compact(_ref) {
49
49
  style: {
50
50
  "--progress-stroke-dasharray": progressDashArray
51
51
  }
52
- }, /*#__PURE__*/_react.default.createElement(_UncontrolledTransition.default, {
52
+ }, /*#__PURE__*/_react.default.createElement(_UncontrolledTransition2.default, {
53
53
  transitionType: _Transition.TransitionAnimationTypes.COIN_FLIP
54
54
  }, /*#__PURE__*/_react.default.createElement(_Button.default, {
55
55
  variant: "transparent",
@@ -1,4 +1,4 @@
1
- import { ComponentProps, ForwardedRef, FunctionComponent, RefObject } from "react";
1
+ import React, { ComponentProps, FunctionComponent, RefObject } from "react";
2
2
  import Input from "../Input";
3
3
  import Button from "../Button";
4
4
  import EmailInput from "../EmailInput";
@@ -45,6 +45,5 @@ export declare type FirebaseFormProps<M extends FormForm> = {
45
45
  };
46
46
  btnProps?: ComponentProps<typeof Button>;
47
47
  };
48
- declare function FirebaseForm<M extends BaseForm>({ submitting, onSubmit, submited, config, submitBtn, btnProps, }: FirebaseFormProps<M>, ref: ForwardedRef<FormInterface>): JSX.Element;
49
- declare const _default: typeof FirebaseForm;
50
- export default _default;
48
+ declare const FirebaseForm: React.ForwardRefExoticComponent<Omit<FirebaseFormProps<BaseForm>, "ref"> & React.RefAttributes<FormInterface>>;
49
+ export default FirebaseForm;
@@ -56,7 +56,7 @@ function AdvancedAction(_ref) {
56
56
  key: key + salt
57
57
  }));
58
58
  }
59
- function FirebaseForm(_ref4, ref) {
59
+ function _FirebaseForm(_ref4, ref) {
60
60
  let submitting = _ref4.submitting,
61
61
  onSubmit = _ref4.onSubmit,
62
62
  submited = _ref4.submited,
@@ -159,5 +159,6 @@ function FirebaseForm(_ref4, ref) {
159
159
  btnProps: btnProps
160
160
  }));
161
161
  }
162
- var _default = /*#__PURE__*/(0, _react.forwardRef)(FirebaseForm);
162
+ const FirebaseForm = /*#__PURE__*/(0, _react.forwardRef)(_FirebaseForm);
163
+ var _default = FirebaseForm;
163
164
  exports.default = _default;
@@ -2,14 +2,14 @@ import React from "react";
2
2
  export declare function shouldIncrementPage(howMuchTheParentScrolled: number, prevSectionPosition: number, nextSectionPosition: number): -1 | 0 | 1;
3
3
  export declare function keys(currPage: number): string[];
4
4
  export declare function getItemsFactory<T extends any>(pageSize: number, items: T[], isCountTheSameOrLowerThanPage: boolean): (page: number, offset: number, _pageSize?: number) => T[];
5
- declare const _default: React.ForwardRefExoticComponent<{
6
- items: (string | React.ReactElement<any, string | React.JSXElementConstructor<any>>)[];
5
+ declare const InfinityScroll: React.ForwardRefExoticComponent<{
6
+ items: (React.ReactElement | string)[];
7
7
  pageSize: number;
8
8
  initialPage?: number | undefined;
9
9
  pageClass?: string | undefined;
10
10
  className?: string | undefined;
11
11
  } & React.RefAttributes<HTMLDivElement>>;
12
- export default _default;
12
+ export default InfinityScroll;
13
13
  export declare enum InfinityDataTestId {
14
14
  PREV_PAGE = "infinity-prev",
15
15
  CURR_PAGE = "infinity-curr",
@@ -58,7 +58,7 @@ function getItemsFactory(pageSize, items, isCountTheSameOrLowerThanPage) {
58
58
  /**
59
59
  * Manages a set of divs that allows the effect of inifinite scrolling between pages
60
60
  **/
61
- function InfinityScroll(_ref, ref) {
61
+ function _InfinityScroll(_ref, ref) {
62
62
  let items = _ref.items,
63
63
  pageSize = _ref.pageSize,
64
64
  _ref$initialPage = _ref.initialPage,
@@ -139,7 +139,8 @@ function InfinityScroll(_ref, ref) {
139
139
  ref: nextDiv
140
140
  }, getItems(currPage.page + 1, currPage.offset)));
141
141
  }
142
- var _default = /*#__PURE__*/(0, _react.forwardRef)(InfinityScroll);
142
+ const InfinityScroll = /*#__PURE__*/(0, _react.forwardRef)(_InfinityScroll);
143
+ var _default = InfinityScroll;
143
144
  exports.default = _default;
144
145
  let InfinityDataTestId = /*#__PURE__*/function (InfinityDataTestId) {
145
146
  InfinityDataTestId["PREV_PAGE"] = "infinity-prev";
@@ -18,7 +18,7 @@ export declare enum InputTestIds {
18
18
  DISCLAIMER = "disclaimer",
19
19
  ERROR = "error"
20
20
  }
21
- declare const _default: React.ForwardRefExoticComponent<{
21
+ declare const Input: React.ForwardRefExoticComponent<{
22
22
  decoration?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined;
23
23
  error?: string | React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
24
24
  hideError?: "onfocus" | undefined;
@@ -33,4 +33,4 @@ declare const _default: React.ForwardRefExoticComponent<{
33
33
  onChange?: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
34
34
  containerProps?: Omit<React.HTMLProps<HTMLDivElement>, "ref"> | undefined;
35
35
  } & Omit<React.HTMLProps<HTMLInputElement | HTMLTextAreaElement>, "ref" | "onChange"> & React.RefAttributes<any>>;
36
- export default _default;
36
+ export default Input;
@@ -25,7 +25,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
25
25
  /**
26
26
  * A transparent input with some prebuilt states common to the application
27
27
  **/
28
- function Input(_ref, ref) {
28
+ function _Input(_ref, ref) {
29
29
  let error = _ref.error,
30
30
  _ref$placeholder = _ref.placeholder,
31
31
  placeholder = _ref$placeholder === void 0 ? " " : _ref$placeholder,
@@ -107,5 +107,6 @@ let InputTestIds = /*#__PURE__*/function (InputTestIds) {
107
107
  return InputTestIds;
108
108
  }({});
109
109
  exports.InputTestIds = InputTestIds;
110
- var _default = /*#__PURE__*/(0, _react.forwardRef)(Input);
110
+ const Input = /*#__PURE__*/(0, _react.forwardRef)(_Input);
111
+ var _default = Input;
111
112
  exports.default = _default;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { FormatNumberOptions } from "react-intl";
3
- declare const _default: React.ForwardRefExoticComponent<{
3
+ declare const InstantCounter: React.ForwardRefExoticComponent<{
4
4
  from?: number | undefined;
5
5
  to: number;
6
6
  framesPerSecond?: number | undefined;
@@ -10,4 +10,4 @@ declare const _default: React.ForwardRefExoticComponent<{
10
10
  } & React.RefAttributes<{
11
11
  start: () => void;
12
12
  }>>;
13
- export default _default;
13
+ export default InstantCounter;
@@ -18,7 +18,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
18
  /**
19
19
  * Increments the numbers from 0 to X
20
20
  **/
21
- function InstantCounter(_ref, ref) {
21
+ function _InstantCounter(_ref, ref) {
22
22
  let _ref$from = _ref.from,
23
23
  from = _ref$from === void 0 ? 0 : _ref$from,
24
24
  to = _ref.to,
@@ -64,5 +64,6 @@ function InstantCounter(_ref, ref) {
64
64
  ref: spanRef
65
65
  }));
66
66
  }
67
- var _default = /*#__PURE__*/(0, _react.forwardRef)(InstantCounter);
67
+ const InstantCounter = /*#__PURE__*/(0, _react.forwardRef)(_InstantCounter);
68
+ var _default = InstantCounter;
68
69
  exports.default = _default;
@@ -1,10 +1,10 @@
1
1
  import React from "react";
2
- declare const _default: React.ForwardRefExoticComponent<{
2
+ declare const MainGrid: React.ForwardRefExoticComponent<{
3
3
  leftContent?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
4
4
  rightContent?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
5
- children: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
5
+ children: React.ReactElement;
6
6
  } & React.RefAttributes<Pick<{
7
7
  setOrientation: (orientation: "forward" | "backward") => void;
8
8
  sectionRef: React.RefObject<HTMLDivElement>;
9
9
  }, "setOrientation">>>;
10
- export default _default;
10
+ export default MainGrid;
@@ -14,7 +14,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
14
14
  /**
15
15
  * This layout provides 3 parts to compose screens
16
16
  **/
17
- function MainGrid(_ref, ref) {
17
+ function _MainGrid(_ref, ref) {
18
18
  let children = _ref.children,
19
19
  leftContent = _ref.leftContent,
20
20
  rightContent = _ref.rightContent;
@@ -46,5 +46,6 @@ function MainGrid(_ref, ref) {
46
46
  ref: refs[2]
47
47
  }, rightContent))));
48
48
  }
49
- var _default = /*#__PURE__*/(0, _react.forwardRef)(MainGrid);
49
+ const MainGrid = /*#__PURE__*/(0, _react.forwardRef)(_MainGrid);
50
+ var _default = MainGrid;
50
51
  exports.default = _default;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { RefObject } from "react";
2
2
  export declare enum PaginationIndicatorMode {
3
3
  /** This will make the guide ball be kept on center */
4
4
  CENTERED = 0,
@@ -16,8 +16,8 @@ export declare function PaginationIndicatorView({ size, page: currentPage, pages
16
16
  onClickPage?: (page: number) => void;
17
17
  mode?: PaginationIndicatorMode;
18
18
  }): JSX.Element;
19
- declare const _default: React.ForwardRefExoticComponent<{
20
- scrollableRef: React.RefObject<HTMLDivElement>;
19
+ declare const PaginationIndicator: React.ForwardRefExoticComponent<{
20
+ scrollableRef: RefObject<HTMLDivElement>;
21
21
  estimatedWidth?: number | undefined;
22
22
  size: number;
23
23
  className?: string | undefined;
@@ -25,4 +25,4 @@ declare const _default: React.ForwardRefExoticComponent<{
25
25
  } & React.RefAttributes<{
26
26
  refreshPages: () => void;
27
27
  }>>;
28
- export default _default;
28
+ export default PaginationIndicator;
@@ -237,5 +237,6 @@ function _PaginationIndicator(_ref3, ref) {
237
237
  onClickPage: onClickPage
238
238
  });
239
239
  }
240
- var _default = /*#__PURE__*/(0, _react.forwardRef)(_PaginationIndicator);
240
+ const PaginationIndicator = /*#__PURE__*/(0, _react.forwardRef)(_PaginationIndicator);
241
+ var _default = PaginationIndicator;
241
242
  exports.default = _default;
@@ -11,5 +11,5 @@ declare type Props = PropsWithChildren<{
11
11
  y: number;
12
12
  };
13
13
  }> & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
14
- declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
- export default _default;
14
+ declare const Parallax: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ export default Parallax;
@@ -42,7 +42,7 @@ function givenTheRelativePositionHowMuchToRotate(relativePosition, maxRotation)
42
42
  /**
43
43
  * It holds a children and animates it according to mouse position
44
44
  **/
45
- function Parallax(_ref, ref) {
45
+ function _Parallax(_ref, ref) {
46
46
  let children = _ref.children,
47
47
  _ref$className = _ref.className,
48
48
  className = _ref$className === void 0 ? "" : _ref$className,
@@ -174,5 +174,6 @@ function Parallax(_ref, ref) {
174
174
  className: _ParallaxModule.default.reflection
175
175
  }));
176
176
  }
177
- var _default = /*#__PURE__*/(0, _react.forwardRef)(Parallax);
177
+ const Parallax = /*#__PURE__*/(0, _react.forwardRef)(_Parallax);
178
+ var _default = Parallax;
178
179
  exports.default = _default;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  export declare type AVAILABLE_PASSWORD_VALIDATION_RULES = "size" | "duplication";
3
- declare const _default: React.ForwardRefExoticComponent<(({
3
+ declare const PasswordInput: React.ForwardRefExoticComponent<(({
4
4
  value: string;
5
5
  error?: string | undefined;
6
6
  } & ({
@@ -37,7 +37,7 @@ declare const _default: React.ForwardRefExoticComponent<(({
37
37
  Icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
38
38
  onChange?: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
39
39
  containerProps?: Omit<React.HTMLProps<HTMLDivElement>, "ref"> | undefined;
40
- } & Omit<React.HTMLProps<HTMLInputElement | HTMLTextAreaElement>, "ref" | "onChange"> & React.RefAttributes<any>, "value" | "ref" | "onChange">) & React.RefAttributes<{
40
+ } & Omit<React.HTMLProps<HTMLInputElement | HTMLTextAreaElement>, "ref" | "onChange"> & React.RefAttributes<any>, "ref" | "onChange" | "value">) & React.RefAttributes<{
41
41
  validatePassword: (pass: string) => boolean;
42
42
  }>>;
43
- export default _default;
43
+ export default PasswordInput;
@@ -43,7 +43,7 @@ const RULES = [{
43
43
  /**
44
44
  * A Input based wrapper to handle inputing of password
45
45
  **/
46
- function PasswordInput(props, ref) {
46
+ function _PasswordInput(props, ref) {
47
47
  const _useState = (0, _react.useState)(false),
48
48
  _useState2 = _slicedToArray(_useState, 2),
49
49
  isPasswordVisibile = _useState2[0],
@@ -125,5 +125,6 @@ function PasswordInput(props, ref) {
125
125
  }, "- ", props.messages.invalidRules[R.code]);
126
126
  })));
127
127
  }
128
- var _default = /*#__PURE__*/(0, _react.forwardRef)(PasswordInput);
128
+ const PasswordInput = /*#__PURE__*/(0, _react.forwardRef)(_PasswordInput);
129
+ var _default = PasswordInput;
129
130
  exports.default = _default;
@@ -2,7 +2,7 @@ import { ComponentProps } from "react";
2
2
  /**
3
3
  * Shows a progress bar
4
4
  **/
5
- export default function ProgressBar({ size, progress, style, }: {
5
+ export default function ProgressBar({ size, progress, mode, }: {
6
6
  /**
7
7
  * Given as css font size
8
8
  */
@@ -11,10 +11,10 @@ export default function ProgressBar({ size, progress, style, }: {
11
11
  * Given in percent
12
12
  */
13
13
  progress: number;
14
- style?: "gauge" | "guide";
14
+ mode?: "gauge" | "guide";
15
15
  }): JSX.Element;
16
- export declare function BalancedProgressBar({ min, max, current, size, style, }: {
16
+ export declare function BalancedProgressBar({ min, max, current, size, mode, }: {
17
17
  min: number;
18
18
  max: number;
19
19
  current: number;
20
- } & Pick<ComponentProps<typeof ProgressBar>, "size" | "style">): JSX.Element;
20
+ } & Pick<ComponentProps<typeof ProgressBar>, "size" | "mode">): JSX.Element;