@onepercentio/one-ui 0.21.0 → 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 (45) hide show
  1. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.d.ts +3 -3
  2. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.js +3 -2
  3. package/dist/components/AnchoredTooltip/AnchoredTooltip.d.ts +2 -2
  4. package/dist/components/AnchoredTooltip/AnchoredTooltip.js +3 -2
  5. package/dist/components/Button/Button.d.ts +2 -2
  6. package/dist/components/Button/Button.js +2 -1
  7. package/dist/components/Collapsable/Collapsable.d.ts +4 -4
  8. package/dist/components/Collapsable/Collapsable.js +3 -2
  9. package/dist/components/EmailInput/EmailInput.d.ts +2 -2
  10. package/dist/components/EmailInput/EmailInput.js +3 -2
  11. package/dist/components/FadeIn/FadeIn.d.ts +4 -4
  12. package/dist/components/FadeIn/FadeIn.js +3 -2
  13. package/dist/components/FileInput/View/Compact/Compact.js +2 -2
  14. package/dist/components/Form/Form.d.ts +3 -4
  15. package/dist/components/Form/Form.js +3 -2
  16. package/dist/components/InfinityScroll/InfinityScroll.d.ts +3 -3
  17. package/dist/components/InfinityScroll/InfinityScroll.js +3 -2
  18. package/dist/components/Input/Input.d.ts +2 -2
  19. package/dist/components/Input/Input.js +3 -2
  20. package/dist/components/InstantCounter/InstantCounter.d.ts +2 -2
  21. package/dist/components/InstantCounter/InstantCounter.js +3 -2
  22. package/dist/components/MainGrid/MainGrid.d.ts +3 -3
  23. package/dist/components/MainGrid/MainGrid.js +3 -2
  24. package/dist/components/PaginationIndicator/PaginationIndicator.d.ts +4 -4
  25. package/dist/components/PaginationIndicator/PaginationIndicator.js +2 -1
  26. package/dist/components/Parallax/Parallax.d.ts +2 -2
  27. package/dist/components/Parallax/Parallax.js +3 -2
  28. package/dist/components/PasswordInput/PasswordInput.d.ts +2 -2
  29. package/dist/components/PasswordInput/PasswordInput.js +3 -2
  30. package/dist/components/ProgressBar/ProgressBar.d.ts +4 -4
  31. package/dist/components/ProgressBar/ProgressBar.js +6 -6
  32. package/dist/components/SectionContainer/SectionContainer.d.ts +3 -3
  33. package/dist/components/SectionContainer/SectionContainer.js +3 -2
  34. package/dist/components/StaticScroller/StaticScroller.d.ts +2 -2
  35. package/dist/components/StaticScroller/StaticScroller.js +3 -2
  36. package/dist/components/Tabs/Tabs.module.scss +3 -2
  37. package/dist/components/Text/Text.d.ts +2 -2
  38. package/dist/components/Text/Text.js +2 -1
  39. package/dist/components/Transition/Transition.d.ts +8 -23
  40. package/dist/components/Transition/Transition.js +3 -2
  41. package/dist/components/UncontrolledTransition/UncontrolledTransition.d.ts +5 -5
  42. package/dist/components/UncontrolledTransition/UncontrolledTransition.js +3 -2
  43. package/dist/components/WalletConnectionWrapper/WalletConnectionWrapper.d.ts +2 -2
  44. package/dist/components/WalletConnectionWrapper/WalletConnectionWrapper.js +3 -2
  45. package/package.json +1 -1
@@ -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;
@@ -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;
@@ -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
  } & ({
@@ -40,4 +40,4 @@ declare const _default: React.ForwardRefExoticComponent<(({
40
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;
@@ -17,10 +17,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
17
17
  function ProgressBar(_ref) {
18
18
  let size = _ref.size,
19
19
  progress = _ref.progress,
20
- _ref$style = _ref.style,
21
- style = _ref$style === void 0 ? "guide" : _ref$style;
20
+ _ref$mode = _ref.mode,
21
+ mode = _ref$mode === void 0 ? "guide" : _ref$mode;
22
22
  return /*#__PURE__*/_react.default.createElement("div", {
23
- className: "".concat(_ProgressBarModule.default.container, " ").concat(_ProgressBarModule.default[style], " ").concat(progress === 100 ? _ProgressBarModule.default.completed : ""),
23
+ className: "".concat(_ProgressBarModule.default.container, " ").concat(_ProgressBarModule.default[mode], " ").concat(progress === 100 ? _ProgressBarModule.default.completed : ""),
24
24
  style: {
25
25
  fontSize: size
26
26
  }
@@ -28,7 +28,7 @@ function ProgressBar(_ref) {
28
28
  style: {
29
29
  width: "".concat(progress, "%")
30
30
  }
31
- }), style === "guide" && /*#__PURE__*/_react.default.createElement("span", {
31
+ }), mode === "guide" && /*#__PURE__*/_react.default.createElement("span", {
32
32
  style: {
33
33
  left: "".concat(progress, "%")
34
34
  }
@@ -39,7 +39,7 @@ function BalancedProgressBar(_ref2) {
39
39
  max = _ref2.max,
40
40
  current = _ref2.current,
41
41
  size = _ref2.size,
42
- style = _ref2.style;
42
+ mode = _ref2.mode;
43
43
  const progress = (0, _react.useMemo)(function () {
44
44
  const progressVal = current - min;
45
45
  const maxVal = max - min;
@@ -49,6 +49,6 @@ function BalancedProgressBar(_ref2) {
49
49
  return /*#__PURE__*/_react.default.createElement(ProgressBar, {
50
50
  size: size,
51
51
  progress: progress,
52
- style: style
52
+ mode: mode
53
53
  });
54
54
  }
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
  export declare function createId(...args: string[]): string;
3
- declare const _default: React.ForwardRefExoticComponent<{
3
+ declare const SectionContainer: React.ForwardRefExoticComponent<{
4
4
  decoration?: "dark" | "light" | undefined;
5
5
  section?: string | undefined;
6
6
  className?: string | undefined;
7
- onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
7
+ onClick?: JSX.IntrinsicElements["div"]["onClick"];
8
8
  } & {
9
9
  children?: React.ReactNode;
10
10
  } & React.RefAttributes<HTMLDivElement>>;
11
- export default _default;
11
+ export default SectionContainer;
@@ -20,7 +20,7 @@ function createId() {
20
20
  /**
21
21
  * This component wraps a section and limits it's content as well as defining an id to reference this section
22
22
  **/
23
- function SectionContainer(_ref, ref) {
23
+ function _SectionContainer(_ref, ref) {
24
24
  let children = _ref.children,
25
25
  section = _ref.section,
26
26
  _ref$className = _ref.className,
@@ -38,5 +38,6 @@ function SectionContainer(_ref, ref) {
38
38
  className: "".concat(_SectionContainerModule.default.decoration, " ").concat(_SectionContainerModule.default[decoration])
39
39
  })));
40
40
  }
41
- var _default = /*#__PURE__*/(0, _react.forwardRef)(SectionContainer);
41
+ const SectionContainer = /*#__PURE__*/(0, _react.forwardRef)(_SectionContainer);
42
+ var _default = SectionContainer;
42
43
  exports.default = _default;
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
- declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, "ref"> & React.RefAttributes<HTMLDivElement>>;
3
- export default _default;
2
+ declare const StaticScroller: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, "ref"> & React.RefAttributes<HTMLDivElement>>;
3
+ export default StaticScroller;
@@ -18,7 +18,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
18
18
  /**
19
19
  * Mantains a static content at the start of the container and when scrolled animates it's concealment
20
20
  **/
21
- function StaticScroller(_ref, ref) {
21
+ function _StaticScroller(_ref, ref) {
22
22
  let children = _ref.children,
23
23
  props = _objectWithoutProperties(_ref, _excluded);
24
24
  const rootRef = (0, _react.useMemo)(function () {
@@ -64,5 +64,6 @@ function StaticScroller(_ref, ref) {
64
64
  ref: rootRef
65
65
  }), children);
66
66
  }
67
- var _default = /*#__PURE__*/(0, _react.forwardRef)(StaticScroller);
67
+ const StaticScroller = /*#__PURE__*/(0, _react.forwardRef)(_StaticScroller);
68
+ var _default = StaticScroller;
68
69
  exports.default = _default;
@@ -12,9 +12,10 @@
12
12
  }
13
13
  }
14
14
  &.FULL {
15
+ overflow: visible;
15
16
  p {
16
17
  transition: color 250ms linear;
17
- padding: 16px 40px;
18
+ padding: 0.4em 1em;
18
19
  z-index: 1;
19
20
  margin: 0px;
20
21
 
@@ -24,7 +25,7 @@
24
25
  }
25
26
  .guide {
26
27
  box-shadow: $elevation;
27
- border-radius: 24px / 50%;
28
+ border-radius: 1em / 50%;
28
29
  }
29
30
  }
30
31
  }
@@ -6,10 +6,10 @@ export declare function _Text({ type, children, className, ...otherProps }: Reac
6
6
  className?: string;
7
7
  type: OnepercentUtility.UIElements.TextVariants;
8
8
  } & React.HTMLAttributes<HTMLParagraphElement>>, _ref?: ForwardedRef<HTMLParagraphElement>): JSX.Element;
9
- declare const _default: React.ForwardRefExoticComponent<{
9
+ declare const Text: React.ForwardRefExoticComponent<{
10
10
  className?: string | undefined;
11
11
  type: OnepercentUtility.UIElements.TextVariants;
12
12
  } & React.HTMLAttributes<HTMLParagraphElement> & {
13
13
  children?: React.ReactNode;
14
14
  } & React.RefAttributes<HTMLParagraphElement>>;
15
- export default _default;
15
+ export default Text;
@@ -33,5 +33,6 @@ function _Text(_ref2, _ref) {
33
33
  className: "".concat(_TextModule.default.text, " ").concat(classNameType[type] || _TextModule.default[type], " ").concat(className, " ").concat(otherProps.onClick ? _TextModule.default.iteractible : "")
34
34
  }, otherProps), children);
35
35
  }
36
- var _default = /*#__PURE__*/(0, _react.forwardRef)(_Text);
36
+ const Text = /*#__PURE__*/(0, _react.forwardRef)(_Text);
37
+ var _default = Text;
37
38
  exports.default = _default;
@@ -1,4 +1,4 @@
1
- import React, { DetailedHTMLProps } from "react";
1
+ import React, { DetailedHTMLProps, Key, ReactElement } from "react";
2
2
  export declare type TransitionTypeDefinitions = {
3
3
  transitionType?: TransitionAnimationTypes.SLIDE | TransitionAnimationTypes.POP_FROM_CLICK_ORIGIN | TransitionAnimationTypes.FADE | TransitionAnimationTypes.COIN_FLIP;
4
4
  } | {
@@ -49,12 +49,12 @@ export declare enum TransitionAnimationTypes {
49
49
  MASK = 5,
50
50
  CUSTOM = 6
51
51
  }
52
- declare const _default: React.ForwardRefExoticComponent<(Omit<{
52
+ declare const Transition: React.ForwardRefExoticComponent<(Omit<{
53
53
  step: number;
54
54
  className?: string | undefined;
55
55
  contentStyle?: React.CSSProperties | undefined;
56
56
  contentClassName?: string | undefined;
57
- children: (React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined)[];
57
+ children: (React.ReactElement | undefined)[];
58
58
  onDiscardStep?: ((discardedKey: React.Key) => void) | undefined;
59
59
  lockTransitionWidth?: boolean | undefined;
60
60
  lockTransitionHeight?: boolean | undefined;
@@ -65,7 +65,7 @@ declare const _default: React.ForwardRefExoticComponent<(Omit<{
65
65
  className?: string | undefined;
66
66
  contentStyle?: React.CSSProperties | undefined;
67
67
  contentClassName?: string | undefined;
68
- children: (React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined)[];
68
+ children: (React.ReactElement | undefined)[];
69
69
  onDiscardStep?: ((discardedKey: React.Key) => void) | undefined;
70
70
  lockTransitionWidth?: boolean | undefined;
71
71
  lockTransitionHeight?: boolean | undefined;
@@ -77,7 +77,7 @@ declare const _default: React.ForwardRefExoticComponent<(Omit<{
77
77
  className?: string | undefined;
78
78
  contentStyle?: React.CSSProperties | undefined;
79
79
  contentClassName?: string | undefined;
80
- children: (React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined)[];
80
+ children: (React.ReactElement | undefined)[];
81
81
  onDiscardStep?: ((discardedKey: React.Key) => void) | undefined;
82
82
  lockTransitionWidth?: boolean | undefined;
83
83
  lockTransitionHeight?: boolean | undefined;
@@ -92,27 +92,12 @@ declare const _default: React.ForwardRefExoticComponent<(Omit<{
92
92
  className?: string | undefined;
93
93
  contentStyle?: React.CSSProperties | undefined;
94
94
  contentClassName?: string | undefined;
95
- children: (React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined)[];
95
+ children: (React.ReactElement | undefined)[];
96
96
  onDiscardStep?: ((discardedKey: React.Key) => void) | undefined;
97
97
  lockTransitionWidth?: boolean | undefined;
98
98
  lockTransitionHeight?: boolean | undefined;
99
99
  } & {
100
100
  transitionType?: TransitionAnimationTypes.CUSTOM | undefined;
101
- config: {
102
- /**
103
- * Applied to the element that was not visible and is now entering the screen
104
- */
105
- backward: {
106
- elementEntering: string;
107
- elementExiting: string;
108
- };
109
- /**
110
- * Applied to the element that was visible and now is exiting the screen
111
- */
112
- forward: {
113
- elementEntering: string;
114
- elementExiting: string;
115
- };
116
- };
101
+ config: ReturnType<typeof TransitionClasses>;
117
102
  } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, any>, "className" | "children">, "ref">) & React.RefAttributes<HTMLDivElement | null>>;
118
- export default _default;
103
+ export default Transition;
@@ -100,7 +100,7 @@ function ChildrenWrapperFactory(func, key, externalPropsContainer, toRemoveKeys)
100
100
  /**
101
101
  * Handles the transition between multiple children and recycling of elements
102
102
  **/
103
- function Transition(_ref, _containerRef) {
103
+ function _Transition(_ref, _containerRef) {
104
104
  let step = _ref.step,
105
105
  contentStyle = _ref.contentStyle,
106
106
  _ref$contentClassName = _ref.contentClassName,
@@ -329,5 +329,6 @@ let TransitionAnimationTypes = /*#__PURE__*/function (TransitionAnimationTypes)
329
329
  return TransitionAnimationTypes;
330
330
  }({});
331
331
  exports.TransitionAnimationTypes = TransitionAnimationTypes;
332
- var _default = /*#__PURE__*/(0, _react.forwardRef)(Transition);
332
+ const Transition = /*#__PURE__*/(0, _react.forwardRef)(_Transition);
333
+ var _default = Transition;
333
334
  exports.default = _default;
@@ -1,14 +1,14 @@
1
- import React from "react";
1
+ import React, { Key, RefObject } from "react";
2
2
  import { TransitionProps, TransitionTypeDefinitions } from "../Transition/Transition";
3
- declare const _default: React.ForwardRefExoticComponent<({
3
+ declare const UncontrolledTransition: React.ForwardRefExoticComponent<({
4
4
  className?: string | undefined;
5
5
  contentClassName?: string | undefined;
6
6
  children?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
7
7
  lockTransitionWidth?: boolean | undefined;
8
8
  lockTransitionHeight?: boolean | undefined;
9
- onDiscardStep?: ((key: React.Key) => void) | undefined;
9
+ onDiscardStep?: ((key: Key) => void) | undefined;
10
10
  } & Pick<TransitionProps, "contentStyle"> & TransitionTypeDefinitions & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, any>, "className" | "children" | "ref">) & React.RefAttributes<{
11
11
  setOrientation: (orientation: "forward" | "backward") => void;
12
- sectionRef: React.RefObject<HTMLDivElement>;
12
+ sectionRef: RefObject<HTMLDivElement>;
13
13
  }>>;
14
- export default _default;
14
+ export default UncontrolledTransition;
@@ -32,7 +32,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
32
32
  /**
33
33
  * This component handles when a child changes and transition this child change, allowing the finest experiences
34
34
  **/
35
- function UncontrolledTransition(_ref, ref) {
35
+ function _UncontrolledTransition(_ref, ref) {
36
36
  let _ref$className = _ref.className,
37
37
  className = _ref$className === void 0 ? "" : _ref$className,
38
38
  contentClassName = _ref.contentClassName,
@@ -114,5 +114,6 @@ function UncontrolledTransition(_ref, ref) {
114
114
  contentClassName: contentClassName
115
115
  }, props), childStack) : null);
116
116
  }
117
- var _default = /*#__PURE__*/(0, _react.forwardRef)(UncontrolledTransition);
117
+ const UncontrolledTransition = /*#__PURE__*/(0, _react.forwardRef)(_UncontrolledTransition);
118
+ var _default = UncontrolledTransition;
118
119
  exports.default = _default;
@@ -37,13 +37,13 @@ declare type Props = {
37
37
  */
38
38
  Content: (props: WalletConnectionProps) => ReactElement;
39
39
  };
40
- declare const _default: React.ForwardRefExoticComponent<Props & {
40
+ declare const WalletConnectionWrapper: React.ForwardRefExoticComponent<Props & {
41
41
  children?: React.ReactNode;
42
42
  } & React.RefAttributes<{
43
43
  connect: () => Promise<void>;
44
44
  disconnect: () => void;
45
45
  }>>;
46
- export default _default;
46
+ export default WalletConnectionWrapper;
47
47
  export declare const BaseWalletConnectionWrapper: React.ForwardRefExoticComponent<Props & {
48
48
  children?: any;
49
49
  } & React.RefAttributes<{
@@ -23,7 +23,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
23
23
  /**
24
24
  * This component handles a lot of cenarios when dealing with the wallet connection to different providers (ex: Metamask)
25
25
  **/
26
- function WalletConnectionWrapper(props, ref) {
26
+ function _WalletConnectionWrapper(props, ref) {
27
27
  return /*#__PURE__*/_react.default.createElement(_useWallet.UseWalletProvider, null, /*#__PURE__*/_react.default.createElement(Content, _extends({
28
28
  compRef: ref || /*#__PURE__*/(0, _react.createRef)()
29
29
  }, props)));
@@ -126,7 +126,8 @@ function Content(_ref) {
126
126
  wallet: wallet.account
127
127
  }), children));
128
128
  }
129
- var _default = /*#__PURE__*/(0, _react.forwardRef)(WalletConnectionWrapper);
129
+ const WalletConnectionWrapper = /*#__PURE__*/(0, _react.forwardRef)(_WalletConnectionWrapper);
130
+ var _default = WalletConnectionWrapper;
130
131
  exports.default = _default;
131
132
  const BaseWalletConnectionWrapper = /*#__PURE__*/(0, _react.forwardRef)(_BaseWalletConnectionWrapper);
132
133
  exports.BaseWalletConnectionWrapper = BaseWalletConnectionWrapper;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onepercentio/one-ui",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "A set of reusable components created through the development of Onepercent projects",
5
5
  "repository": "git@github.com:onepercentio/one-ui.git",
6
6
  "author": "Murilo Oliveira de Araujo <murilo.araujo@onepercent.io>",