@tap-payments/auth-jsconnect 1.0.4 → 1.0.5

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 (156) hide show
  1. package/build/@types/app.d.ts +16 -0
  2. package/build/@types/app.js +6 -1
  3. package/build/@types/theme.d.ts +12 -3
  4. package/build/@types/theme.js +15 -1
  5. package/build/app/rootReducer.d.ts +1 -1
  6. package/build/app/rootReducer.js +1 -1
  7. package/build/app/settings.d.ts +7 -2
  8. package/build/app/settings.js +21 -6
  9. package/build/app/store.d.ts +2 -2
  10. package/build/assets/locales/ar.json +22 -3
  11. package/build/assets/locales/en.json +20 -1
  12. package/build/components/AnimationFlow/BottomSheet.d.ts +3 -2
  13. package/build/components/AnimationFlow/BottomSheet.js +30 -3
  14. package/build/components/AnimationFlow/Dialog.d.ts +3 -2
  15. package/build/components/AnimationFlow/Dialog.js +32 -9
  16. package/build/components/Button/Button.d.ts +7 -3
  17. package/build/components/Button/Button.js +20 -2
  18. package/build/components/Collapse/Collapse.d.ts +5 -0
  19. package/build/components/Collapse/Collapse.js +28 -0
  20. package/build/components/Collapse/index.d.ts +3 -0
  21. package/build/components/Collapse/index.js +2 -0
  22. package/build/components/DatePicker/DatePicker.js +3 -3
  23. package/build/components/Input/Input.d.ts +4 -1
  24. package/build/components/Input/Input.js +7 -5
  25. package/build/components/Loader/Loader.d.ts +10 -8
  26. package/build/components/Loader/Loader.js +14 -35
  27. package/build/components/OTPTimer/OTPTimer.d.ts +2 -1
  28. package/build/components/OTPTimer/OTPTimer.js +4 -5
  29. package/build/components/Providers/ThemeProvider.js +6 -9
  30. package/build/components/SimpleList/SimpleList.d.ts +10 -2
  31. package/build/components/SimpleList/SimpleList.js +53 -21
  32. package/build/components/Slide/Slide.d.ts +6 -0
  33. package/build/components/Slide/Slide.js +30 -0
  34. package/build/components/Slide/index.d.ts +3 -0
  35. package/build/components/Slide/index.js +2 -0
  36. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +14 -0
  37. package/build/components/SocialMediaGroup/SocialMediaGroup.js +86 -0
  38. package/build/components/SocialMediaGroup/index.d.ts +3 -0
  39. package/build/components/SocialMediaGroup/index.js +2 -0
  40. package/build/components/ToggleButton/ToggleButton.d.ts +5 -0
  41. package/build/components/ToggleButton/ToggleButton.js +44 -0
  42. package/build/components/ToggleButton/index.d.ts +3 -0
  43. package/build/components/ToggleButton/index.js +2 -0
  44. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +5 -0
  45. package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +37 -0
  46. package/build/components/ToggleButtonGroup/index.d.ts +3 -0
  47. package/build/components/ToggleButtonGroup/index.js +2 -0
  48. package/build/components/Tooltip/Tooltip.d.ts +10 -0
  49. package/build/components/Tooltip/Tooltip.js +44 -0
  50. package/build/components/Tooltip/index.d.ts +3 -0
  51. package/build/components/Tooltip/index.js +2 -0
  52. package/build/components/Warning/Warning.d.ts +2 -1
  53. package/build/components/Warning/Warning.js +2 -1
  54. package/build/constants/app.d.ts +5 -4
  55. package/build/constants/app.js +35 -4
  56. package/build/constants/assets.d.ts +7 -0
  57. package/build/constants/assets.js +8 -1
  58. package/build/constants/index.d.ts +1 -0
  59. package/build/constants/index.js +1 -0
  60. package/build/constants/validation.d.ts +2 -0
  61. package/build/constants/validation.js +2 -0
  62. package/build/features/app/{midStore.d.ts → business/midStore.d.ts} +2 -2
  63. package/build/features/app/{midStore.js → business/midStore.js} +0 -0
  64. package/build/features/app/connect/midStore.d.ts +10 -0
  65. package/build/features/app/connect/midStore.js +18 -0
  66. package/build/features/business/index.d.ts +0 -0
  67. package/build/features/business/index.js +1 -0
  68. package/build/features/business/screens/IDBOD/DOB.d.ts +5 -0
  69. package/build/features/business/screens/IDBOD/DOB.js +44 -0
  70. package/build/features/business/screens/IDBOD/ID.d.ts +5 -0
  71. package/build/features/business/screens/IDBOD/ID.js +68 -0
  72. package/build/features/business/screens/IDBOD/IDBOD.d.ts +5 -0
  73. package/build/features/business/screens/IDBOD/IDBOD.js +86 -0
  74. package/build/features/business/screens/IDBOD/index.d.ts +3 -0
  75. package/build/features/business/screens/IDBOD/index.js +2 -0
  76. package/build/features/business/screens/IDBOD/validation.d.ts +11 -0
  77. package/build/features/business/screens/IDBOD/validation.js +5 -0
  78. package/build/features/connect/Connect.js +28 -18
  79. package/build/features/connect/Footer.d.ts +4 -0
  80. package/build/features/connect/Footer.js +16 -0
  81. package/build/features/connect/screens/Individual/Email.d.ts +5 -0
  82. package/build/features/connect/screens/Individual/Email.js +56 -0
  83. package/build/features/connect/screens/Individual/Individual.d.ts +5 -0
  84. package/build/features/connect/screens/Individual/Individual.js +86 -0
  85. package/build/features/connect/screens/Individual/Name.d.ts +5 -0
  86. package/build/features/connect/screens/Individual/Name.js +58 -0
  87. package/build/features/connect/screens/Individual/index.d.ts +3 -0
  88. package/build/features/connect/screens/Individual/index.js +2 -0
  89. package/build/features/connect/screens/Individual/validation.d.ts +11 -0
  90. package/build/features/connect/screens/Individual/validation.js +5 -0
  91. package/build/features/connect/screens/MID/BusinessCountry.d.ts +2 -6
  92. package/build/features/connect/screens/MID/BusinessCountry.js +16 -40
  93. package/build/features/connect/screens/MID/IDNumber.d.ts +0 -4
  94. package/build/features/connect/screens/MID/IDNumber.js +13 -10
  95. package/build/features/connect/screens/MID/MID.js +73 -19
  96. package/build/features/connect/screens/MID/MIDTitle.js +2 -2
  97. package/build/features/connect/screens/MID/MobileNumber.d.ts +2 -7
  98. package/build/features/connect/screens/MID/MobileNumber.js +23 -48
  99. package/build/features/connect/screens/MID/validation.d.ts +18 -0
  100. package/build/features/connect/screens/MID/validation.js +8 -0
  101. package/build/features/connect/screens/Merchant/BrandName.d.ts +5 -0
  102. package/build/features/connect/screens/Merchant/BrandName.js +99 -0
  103. package/build/features/connect/screens/Merchant/Merchant.d.ts +5 -0
  104. package/build/features/connect/screens/Merchant/Merchant.js +94 -0
  105. package/build/features/connect/screens/Merchant/SocialMedia.d.ts +5 -0
  106. package/build/features/connect/screens/Merchant/SocialMedia.js +87 -0
  107. package/build/features/connect/screens/Merchant/TAC.d.ts +5 -0
  108. package/build/features/connect/screens/Merchant/TAC.js +88 -0
  109. package/build/features/connect/screens/Merchant/index.d.ts +3 -0
  110. package/build/features/connect/screens/Merchant/index.js +2 -0
  111. package/build/features/connect/screens/Merchant/validation.d.ts +50 -0
  112. package/build/features/connect/screens/Merchant/validation.js +23 -0
  113. package/build/features/connect/screens/OTP/OTP.d.ts +6 -2
  114. package/build/features/connect/screens/OTP/OTP.js +64 -25
  115. package/build/features/connect/screens/OTP/OTPInput.d.ts +5 -0
  116. package/build/features/connect/screens/OTP/OTPInput.js +51 -0
  117. package/build/features/connect/screens/OTP/OTPTimer.d.ts +5 -0
  118. package/build/features/connect/screens/OTP/OTPTimer.js +35 -0
  119. package/build/features/connect/screens/OTP/validation.d.ts +8 -0
  120. package/build/features/connect/screens/OTP/validation.js +4 -0
  121. package/build/features/connect/screens/Password/Password.d.ts +5 -0
  122. package/build/features/connect/screens/Password/Password.js +86 -0
  123. package/build/features/connect/screens/Password/PasswordInput.d.ts +5 -0
  124. package/build/features/connect/screens/Password/PasswordInput.js +73 -0
  125. package/build/features/connect/screens/Password/index.d.ts +3 -0
  126. package/build/features/connect/screens/Password/index.js +2 -0
  127. package/build/features/connect/screens/Password/validation.d.ts +8 -0
  128. package/build/features/connect/screens/Password/validation.js +4 -0
  129. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +5 -0
  130. package/build/features/connect/screens/ThankYou/ThankYou.js +76 -0
  131. package/build/features/connect/screens/ThankYou/index.d.ts +3 -0
  132. package/build/features/connect/screens/ThankYou/index.js +2 -0
  133. package/build/features/featuresScreens.d.ts +2 -0
  134. package/build/features/featuresScreens.js +28 -0
  135. package/build/hooks/index.d.ts +4 -0
  136. package/build/hooks/index.js +4 -0
  137. package/build/hooks/useAppDispatch.d.ts +4 -0
  138. package/build/hooks/useAppDispatch.js +2 -0
  139. package/build/hooks/useAppSelector.d.ts +3 -0
  140. package/build/hooks/useAppSelector.js +2 -0
  141. package/build/hooks/useAppTheme.js +3 -2
  142. package/build/hooks/useEventListener.d.ts +5 -0
  143. package/build/hooks/useEventListener.js +20 -0
  144. package/build/hooks/useLanguage.d.ts +4 -0
  145. package/build/hooks/useLanguage.js +8 -0
  146. package/build/index.css +5 -0
  147. package/build/theme/palette.js +1 -0
  148. package/build/theme/theme.d.ts +1 -1
  149. package/build/theme/theme.js +0 -1
  150. package/build/utils/string.d.ts +1 -1
  151. package/build/utils/string.js +1 -3
  152. package/build/utils/validation.d.ts +4 -0
  153. package/build/utils/validation.js +12 -0
  154. package/package.json +120 -116
  155. package/build/app/hooks.d.ts +0 -7
  156. package/build/app/hooks.js +0 -3
@@ -9,53 +9,32 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import React, { Fragment } from 'react';
12
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import React from 'react';
14
14
  import { styled } from '@mui/material/styles';
15
- import Box from '@mui/material/Box';
16
- var DivStyled = styled(Box)(function (_a) {
15
+ var RootStyled = styled('div')(function (_a) {
17
16
  var theme = _a.theme;
18
17
  return ({
19
- width: theme.spacing(12.5),
20
- height: theme.spacing(12.5),
21
- margin: 'auto',
22
- display: 'block',
23
- position: 'absolute'
24
- });
25
- });
26
- var LoaderContainerStyled = styled(Box)(function (_a) {
27
- var theme = _a.theme;
28
- return ({
29
- width: theme.spacing(12.5),
30
- height: theme.spacing(12.5),
18
+ width: '100px',
19
+ height: '100px',
31
20
  display: 'block',
32
21
  position: 'relative',
33
22
  margin: 'auto'
34
23
  });
35
24
  });
36
- var SvgBoxLoaderStyled = styled('svg')(function (_a) {
37
- var theme = _a.theme;
38
- return ({
39
- width: '100%',
40
- height: '100%',
41
- position: 'absolute',
42
- margin: '0',
43
- left: '0',
44
- right: '0',
45
- top: theme.spacing(-0.18)
46
- });
25
+ var LoaderBoxStyled = styled('svg')(function (_a) {
26
+ var size = _a.size;
27
+ return (__assign({ width: '100%', height: '100%', position: 'absolute', margin: '0', left: '0', right: '0' }, (size && { transform: "scale(".concat(size / 40.0, ")") })));
47
28
  });
48
- var Loader = function (_a) {
49
- var outerColor = _a.outerColor, innerColor = _a.innerColor, duration = _a.duration, runAnimation = _a.runAnimation, style = _a.style, svgStyle = _a.svgStyle, size = _a.size;
50
- var defaultDuration = duration || 0;
51
- var scaleStyle = size ? { transform: 'scale(' + size / 40.0 + ')' } : {};
52
- return (_jsx(DivStyled, { children: _jsx(LoaderContainerStyled, __assign({ style: style }, { children: _jsxs(SvgBoxLoaderStyled, __assign({ style: Object.assign(scaleStyle, svgStyle) }, { children: [_jsx("circle", __assign({ style: { stroke: outerColor }, cx: '50%', cy: '50%', r: '20', fill: 'none', strokeLinecap: 'round', strokeWidth: ' 3.6px', strokeDasharray: ' 125, 124' }, { children: runAnimation && (_jsxs(Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '0 50 50', to: '360 50 50', dur: defaultDuration / 3 + 's', repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; 122; 122; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: defaultDuration + 's', repeatCount: 'indefinite' })] })) })), _jsx("circle", __assign({ style: { stroke: innerColor }, cx: '50%', cy: '50%', r: '14', fill: 'none', strokeLinecap: 'round', strokeWidth: ' 3.6px', strokeDasharray: ' 88, 124' }, { children: runAnimation && (_jsxs(Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '360 50 50', to: '0 50 50', dur: defaultDuration / 3 + 's', repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; -85; -85; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: defaultDuration + 's', repeatCount: 'indefinite' })] })) }))] })) })) }));
53
- };
29
+ function Loader(props) {
30
+ return (_jsx(RootStyled, __assign({ className: props.className, style: props.style }, { children: _jsxs(LoaderBoxStyled, __assign({ size: props.size, className: 'loader-box-container' }, { children: [_jsx("circle", __assign({ style: { stroke: props.outerColor }, cx: '50%', cy: '50%', r: '20', fill: 'none', strokeLinecap: 'round', strokeWidth: ' 3.6px', strokeDasharray: ' 125, 124' }, { children: props.toggleAnimation && (_jsxs(_Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '0 50 50', to: '360 50 50', dur: "".concat(props.duration || 0 / 3, "s"), repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; 122; 122; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: "".concat(props.duration, "s"), repeatCount: 'indefinite' })] })) })), _jsx("circle", __assign({ style: { stroke: props.innerColor }, cx: '50%', cy: '50%', r: '14', fill: 'none', strokeLinecap: 'round', strokeWidth: ' 3.6px', strokeDasharray: ' 88, 124' }, { children: props.toggleAnimation && (_jsxs(_Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '360 50 50', to: '0 50 50', dur: "".concat(props.duration || 0 / 3, "s"), repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; -85; -85; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: "".concat(props.duration, "s"), repeatCount: 'indefinite' })] })) }))] })) })));
31
+ }
54
32
  Loader.defaultProps = {
55
33
  outerColor: '#423e3c',
56
34
  innerColor: '#423e3c',
57
- runAnimation: false,
35
+ duration: 3,
36
+ toggleAnimation: false,
58
37
  size: 50,
59
- duration: 3.0
38
+ style: null
60
39
  };
61
40
  export default React.memo(Loader);
@@ -2,9 +2,10 @@ import * as React from 'react';
2
2
  import { BoxProps } from '@mui/material/Box';
3
3
  export interface OTPTimerProps extends BoxProps {
4
4
  time?: number;
5
+ resendText: string;
5
6
  }
6
7
  declare const _default: React.MemoExoticComponent<{
7
- ({ time, ...rest }: OTPTimerProps): JSX.Element;
8
+ ({ time, resendText, ...rest }: OTPTimerProps): JSX.Element;
8
9
  defaultProps: {
9
10
  time: number;
10
11
  };
@@ -30,7 +30,6 @@ var OTPTimerStyled = styled(Box)(function (_a) {
30
30
  return ({
31
31
  display: 'flex',
32
32
  paddingInline: theme.spacing(2.5),
33
- paddingBlockStart: theme.spacing(6.25),
34
33
  justifyContent: 'end'
35
34
  });
36
35
  });
@@ -39,16 +38,16 @@ var OTPTimerTextStyled = styled(Text)(function (_a) {
39
38
  return ({
40
39
  width: 'fit-content',
41
40
  fontWeight: theme.typography.fontWeightBold,
42
- fontSize: theme.spacing(1.75),
41
+ fontSize: theme.typography.fontSize,
43
42
  marginTop: theme.spacing(0.5)
44
43
  });
45
44
  });
46
45
  var OTPTimerComponent = function (_a) {
47
- var time = _a.time, rest = __rest(_a, ["time"]);
46
+ var time = _a.time, resendText = _a.resendText, rest = __rest(_a, ["time", "resendText"]);
48
47
  var defaultTime = time || 0;
49
48
  return (_jsx(OTPTimerStyled, __assign({}, rest, { children: _jsx(OTPTimerTextStyled, __assign({ variant: 'h4', color: 'primary', sx: {
50
- cursor: time == 0 ? 'pointer' : 'auto'
51
- } }, { children: defaultTime > 0 ? (defaultTime > 9 ? "00:".concat(time) : "00:0".concat(time)) : 'RESEND OTP' })) })));
49
+ cursor: defaultTime <= 0 ? 'pointer' : 'default'
50
+ } }, { children: defaultTime > 0 ? (defaultTime > 9 ? "00:".concat(time) : "00:0".concat(time)) : resendText })) })));
52
51
  };
53
52
  OTPTimerComponent.defaultProps = {
54
53
  time: 59
@@ -10,15 +10,12 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { useEffect } from 'react';
14
- import { createTheme, ThemeProvider as MUIThemeProvider } from '@mui/material/styles';
13
+ import { Fragment } from 'react';
14
+ import { ThemeProvider as MUIThemeProvider } from '@mui/material/styles';
15
15
  export default function ThemeProvider(_a) {
16
16
  var children = _a.children, theme = _a.theme;
17
- useEffect(function () {
18
- if (!theme)
19
- console.info('Now the application is using the default theme.');
20
- if (theme)
21
- console.info('Now the application is using the custom theme.');
22
- }, [theme]);
23
- return _jsx(MUIThemeProvider, __assign({ theme: theme || createTheme() }, { children: children }));
17
+ if (!theme) {
18
+ return _jsx(Fragment, {});
19
+ }
20
+ return _jsx(MUIThemeProvider, __assign({ theme: theme }, { children: children }));
24
21
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { ListProps } from '@mui/material/List';
3
3
  import { ListItemProps } from '@mui/material/ListItem';
4
4
  export interface SimpleListProps<T> extends ListProps {
@@ -6,5 +6,13 @@ export interface SimpleListProps<T> extends ListProps {
6
6
  listItemProps?: ListItemProps;
7
7
  onSelectItem: (item: T) => void;
8
8
  renderItem: (item: T) => React.ReactElement;
9
+ searchKeyPath?: string;
9
10
  }
10
- export default function SimpleList<T>({ list, listItemProps, onSelectItem, renderItem, children, style, ...rest }: SimpleListProps<T>): JSX.Element;
11
+ declare function SimpleList<T>({ list, listItemProps, onSelectItem, renderItem, children, searchKeyPath, ...rest }: SimpleListProps<T>): JSX.Element;
12
+ declare namespace SimpleList {
13
+ var defaultProps: {
14
+ searchKeyPath: string;
15
+ };
16
+ }
17
+ declare const _default: typeof SimpleList;
18
+ export default _default;
@@ -22,31 +22,38 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import { createElement as _createElement } from "react";
25
+ import * as React from 'react';
25
26
  import List from '@mui/material/List';
26
27
  import ListItem from '@mui/material/ListItem';
27
- import { styled, useTheme } from '@mui/material/styles';
28
- import useMediaQuery from '@mui/material/useMediaQuery';
29
- var TapList = styled(List)(function (_a) {
28
+ import { styled } from '@mui/material/styles';
29
+ import get from 'lodash-es/get';
30
+ import { useEventListener } from '../../hooks';
31
+ var ListStyled = styled(List)(function (_a) {
32
+ var _b;
30
33
  var theme = _a.theme;
31
- return ({
32
- overflowY: 'auto',
33
- listStyle: 'none',
34
- paddingTop: theme.spacing(2.125),
35
- height: '100%',
36
- '&::-webkit-scrollbar': {
34
+ return (_b = {
35
+ overflowY: 'auto',
36
+ listStyle: 'none',
37
+ paddingTop: theme.spacing(2.125),
38
+ height: theme.spacing(40)
39
+ },
40
+ _b[theme.breakpoints.down('sm')] = {
41
+ height: "calc(100vh - ".concat(theme.spacing(34.875), ")")
42
+ },
43
+ _b['&::-webkit-scrollbar'] = {
37
44
  width: '0px'
38
45
  },
39
- '&::-webkit-scrollbar-track': {
46
+ _b['&::-webkit-scrollbar-track'] = {
40
47
  boxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)',
41
48
  webkitBoxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)'
42
49
  },
43
- '&::-webkit-scrollbar-thumb': {
50
+ _b['&::-webkit-scrollbar-thumb'] = {
44
51
  backgroundColor: 'rgba(0,0,0,.1)',
45
52
  outline: '1px solid slategrey'
46
- }
47
- });
53
+ },
54
+ _b);
48
55
  });
49
- var TapListItem = styled(ListItem)(function (_a) {
56
+ var ListItemStyled = styled(ListItem)(function (_a) {
50
57
  var theme = _a.theme;
51
58
  return ({
52
59
  display: 'flex',
@@ -58,14 +65,39 @@ var TapListItem = styled(ListItem)(function (_a) {
58
65
  justifyContent: 'space-between'
59
66
  });
60
67
  });
61
- export default function SimpleList(_a) {
62
- var list = _a.list, listItemProps = _a.listItemProps, onSelectItem = _a.onSelectItem, renderItem = _a.renderItem, children = _a.children, style = _a.style, rest = __rest(_a, ["list", "listItemProps", "onSelectItem", "renderItem", "children", "style"]);
63
- var theme = useTheme();
64
- var matches = useMediaQuery(theme.breakpoints.down('sm'));
65
- return (_jsx(TapList, __assign({}, rest, { style: __assign({ height: matches ? "calc(100vh - ".concat(theme.spacing(34.875), ")") : theme.spacing(40) }, style) }, { children: children ||
66
- (list || []).map(function (item, idx) {
67
- return (_createElement(TapListItem, __assign({}, listItemProps, { onClick: function () {
68
+ function SimpleList(_a) {
69
+ var list = _a.list, listItemProps = _a.listItemProps, onSelectItem = _a.onSelectItem, renderItem = _a.renderItem, children = _a.children, searchKeyPath = _a.searchKeyPath, rest = __rest(_a, ["list", "listItemProps", "onSelectItem", "renderItem", "children", "searchKeyPath"]);
70
+ var _b = React.useState([]), items = _b[0], setItems = _b[1];
71
+ React.useEffect(function () {
72
+ setItems(list);
73
+ }, [list]);
74
+ var filterItems = function (arr, searchKey) {
75
+ return arr.filter(function (item) {
76
+ var searchValue = get(item, searchKeyPath || '') || '';
77
+ return searchValue.charAt(0).toLowerCase() === searchKey.charAt(searchKey.length - 1).toLowerCase();
78
+ });
79
+ };
80
+ var onKeySearch = function (_a) {
81
+ var code = _a.code;
82
+ if (code) {
83
+ var filteredArr = filterItems(items, code);
84
+ if (filteredArr.length === 0 || code === 'Backspace')
85
+ setItems(list);
86
+ else
87
+ setItems(filteredArr);
88
+ }
89
+ };
90
+ if (searchKeyPath)
91
+ useEventListener('keydown', onKeySearch);
92
+ return (_jsx(ListStyled, __assign({}, rest, { children: children ||
93
+ items.map(function (item, idx) {
94
+ return (_createElement(ListItemStyled, __assign({}, listItemProps, { onClick: function () {
68
95
  onSelectItem(item);
69
96
  }, disableGutters: true, key: idx }), renderItem(item)));
70
97
  }) })));
71
98
  }
99
+ SimpleList.defaultProps = {
100
+ searchKeyPath: ''
101
+ };
102
+ var typedMemo = React.memo;
103
+ export default typedMemo(SimpleList);
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { SlideProps as MUISlideProps } from '@mui/material/Slide';
3
+ export interface SlideProps extends MUISlideProps {
4
+ }
5
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<SlideProps, "className" | "style" | "color" | "direction" | "translate" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "in" | "mountOnEnter" | "unmountOnExit" | "timeout" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "exit" | "container"> & React.RefAttributes<unknown>>>;
6
+ export default _default;
@@ -0,0 +1,30 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import React from 'react';
25
+ import MUISlide from '@mui/material/Slide';
26
+ var Slide = React.forwardRef(function (_a, ref) {
27
+ var children = _a.children, rest = __rest(_a, ["children"]);
28
+ return (_jsx(MUISlide, __assign({ ref: ref, direction: 'up', timeout: { exit: 300, appear: 500, enter: 300 }, mountOnEnter: true, unmountOnExit: true }, rest, { children: children })));
29
+ });
30
+ export default React.memo(Slide);
@@ -0,0 +1,3 @@
1
+ import Slide, { SlideProps } from './Slide';
2
+ export type { SlideProps };
3
+ export default Slide;
@@ -0,0 +1,2 @@
1
+ import Slide from './Slide';
2
+ export default Slide;
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { SocialMediaTypes } from '../../@types';
3
+ import { ToggleButtonGroupProps } from '../ToggleButtonGroup';
4
+ import { ToggleButtonProps } from '../ToggleButton';
5
+ export interface SocialMediaGroupProps extends ToggleButtonGroupProps {
6
+ toggleButtonProps?: ToggleButtonProps;
7
+ }
8
+ declare const _default: React.MemoExoticComponent<{
9
+ ({ children, defaultValue, onChange, toggleButtonProps, ...rest }: SocialMediaGroupProps): JSX.Element;
10
+ defaultProps: {
11
+ defaultValue: SocialMediaTypes;
12
+ };
13
+ }>;
14
+ export default _default;
@@ -0,0 +1,86 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import * as React from 'react';
25
+ import { styled } from '@mui/material/styles';
26
+ import { ICONS_NAMES } from '../../constants';
27
+ import { SocialMediaTypes } from '../../@types';
28
+ import ToggleButtonGroup from '../ToggleButtonGroup';
29
+ import ToggleButton from '../ToggleButton';
30
+ import Icon from '../Icon';
31
+ var WebToggleButton = styled(ToggleButton, {
32
+ shouldForwardProp: function (prop) { return prop !== 'isActive'; }
33
+ })(function (_a) {
34
+ var theme = _a.theme, isActive = _a.isActive;
35
+ return ({
36
+ borderBottom: isActive ? "".concat(theme.spacing(0.25), " solid #3A4154") : 'none'
37
+ });
38
+ });
39
+ var TwitterToggleButton = styled(ToggleButton, {
40
+ shouldForwardProp: function (prop) { return prop !== 'isActive'; }
41
+ })(function (_a) {
42
+ var theme = _a.theme, isActive = _a.isActive;
43
+ return ({
44
+ borderBottom: isActive ? "".concat(theme.spacing(0.25), " solid #1DA1F2") : 'none'
45
+ });
46
+ });
47
+ var InstagramToggleButton = styled(ToggleButton, {
48
+ shouldForwardProp: function (prop) { return prop !== 'isActive'; }
49
+ })(function (_a) {
50
+ var theme = _a.theme, isActive = _a.isActive;
51
+ return ({
52
+ borderBottom: isActive ? "".concat(theme.spacing(0.25), " solid #8A3AB9") : 'none'
53
+ });
54
+ });
55
+ var WebTwitterIconStyled = styled(Icon)(function (_a) {
56
+ var theme = _a.theme;
57
+ return ({
58
+ width: theme.spacing(5.5),
59
+ height: theme.spacing(5.5)
60
+ });
61
+ });
62
+ var InstagramIconStyled = styled(Icon, {
63
+ shouldForwardProp: function (prop) { return prop !== 'isActive'; }
64
+ })(function (_a) {
65
+ var theme = _a.theme, isActive = _a.isActive;
66
+ return ({
67
+ width: isActive ? '100%' : theme.spacing(5.5),
68
+ height: isActive ? '100%' : theme.spacing(5.5)
69
+ });
70
+ });
71
+ var SocialMediaGroupComponent = function (_a) {
72
+ var children = _a.children, defaultValue = _a.defaultValue, onChange = _a.onChange, toggleButtonProps = _a.toggleButtonProps, rest = __rest(_a, ["children", "defaultValue", "onChange", "toggleButtonProps"]);
73
+ var _b = React.useState(defaultValue), socialMediaType = _b[0], setSocialMediaType = _b[1];
74
+ var isWebActive = socialMediaType === SocialMediaTypes.WEB;
75
+ var isTwitterActive = socialMediaType === SocialMediaTypes.TWITTER;
76
+ var isInstagramActive = socialMediaType === SocialMediaTypes.INSTAGRAM;
77
+ var handleOnChange = function (event, value) {
78
+ setSocialMediaType(value);
79
+ onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
80
+ };
81
+ return (_jsxs(ToggleButtonGroup, __assign({ value: socialMediaType, exclusive: true }, rest, { onChange: handleOnChange }, { children: [children, " ||", _jsx(WebToggleButton, __assign({ isActive: isWebActive }, toggleButtonProps, { value: SocialMediaTypes.WEB }, { children: _jsx(WebTwitterIconStyled, { src: isWebActive ? ICONS_NAMES.WEB_ACTIVE_ICON : ICONS_NAMES.WEB_ICON }) })), _jsx(TwitterToggleButton, __assign({ isActive: isTwitterActive }, toggleButtonProps, { value: SocialMediaTypes.TWITTER }, { children: _jsx(WebTwitterIconStyled, { src: isTwitterActive ? ICONS_NAMES.TWITTER_ACTIVE_ICON : ICONS_NAMES.TWITTER_ICON }) })), _jsx(InstagramToggleButton, __assign({ isActive: isInstagramActive }, toggleButtonProps, { value: SocialMediaTypes.INSTAGRAM }, { children: _jsx(InstagramIconStyled, { isActive: isInstagramActive, src: isInstagramActive ? ICONS_NAMES.INSTAGRAM_ACTIVE_ICON : ICONS_NAMES.INSTAGRAM_ICON }) }))] })));
82
+ };
83
+ export default React.memo(SocialMediaGroupComponent);
84
+ SocialMediaGroupComponent.defaultProps = {
85
+ defaultValue: SocialMediaTypes.WEB
86
+ };
@@ -0,0 +1,3 @@
1
+ import SocialMediaGroup, { SocialMediaGroupProps } from './SocialMediaGroup';
2
+ export type { SocialMediaGroupProps };
3
+ export default SocialMediaGroup;
@@ -0,0 +1,2 @@
1
+ import SocialMediaGroup from './SocialMediaGroup';
2
+ export default SocialMediaGroup;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import { ToggleButtonProps } from '@mui/material/ToggleButton';
3
+ export type { ToggleButtonProps };
4
+ declare const _default: React.MemoExoticComponent<({ children, ...props }: ToggleButtonProps<"button", {}>) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,44 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import * as React from 'react';
25
+ import { styled } from '@mui/material/styles';
26
+ import ToggleButton from '@mui/material/ToggleButton';
27
+ var ToggleButtonStyled = styled(ToggleButton)(function (_a) {
28
+ var theme = _a.theme;
29
+ return ({
30
+ width: theme.spacing(5.5),
31
+ height: theme.spacing(5.5),
32
+ border: 'none',
33
+ borderRadius: theme.spacing(0),
34
+ background: 'none',
35
+ '&.Mui-selected': {
36
+ background: 'none'
37
+ }
38
+ });
39
+ });
40
+ var ToggleButtonComponent = function (_a) {
41
+ var children = _a.children, props = __rest(_a, ["children"]);
42
+ return (_jsx(ToggleButtonStyled, __assign({ disableFocusRipple: true, disableRipple: true, disableTouchRipple: true }, props, { children: children })));
43
+ };
44
+ export default React.memo(ToggleButtonComponent);
@@ -0,0 +1,3 @@
1
+ import ToggleButton, { ToggleButtonProps } from './ToggleButton';
2
+ export type { ToggleButtonProps };
3
+ export default ToggleButton;
@@ -0,0 +1,2 @@
1
+ import ToggleButton from './ToggleButton';
2
+ export default ToggleButton;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import { ToggleButtonGroupProps } from '@mui/material/ToggleButtonGroup';
3
+ export type { ToggleButtonGroupProps };
4
+ declare const _default: React.MemoExoticComponent<({ children, ...props }: ToggleButtonGroupProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,37 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import * as React from 'react';
25
+ import { styled, alpha } from '@mui/material/styles';
26
+ import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
27
+ var ToggleButtonGroupStyled = styled(ToggleButtonGroup)(function (_a) {
28
+ var theme = _a.theme;
29
+ return ({
30
+ background: alpha(theme.palette.secondary.main, 0.1)
31
+ });
32
+ });
33
+ var ToggleButtonGroupComponent = function (_a) {
34
+ var children = _a.children, props = __rest(_a, ["children"]);
35
+ return _jsx(ToggleButtonGroupStyled, __assign({}, props, { children: children }));
36
+ };
37
+ export default React.memo(ToggleButtonGroupComponent);
@@ -0,0 +1,3 @@
1
+ import ToggleButtonGroup, { ToggleButtonGroupProps } from './ToggleButtonGroup';
2
+ export type { ToggleButtonGroupProps };
3
+ export default ToggleButtonGroup;
@@ -0,0 +1,2 @@
1
+ import ToggleButtonGroup from './ToggleButtonGroup';
2
+ export default ToggleButtonGroup;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { TooltipProps } from '@mui/material/Tooltip';
3
+ export type { TooltipProps };
4
+ declare const _default: React.MemoExoticComponent<{
5
+ ({ children, ...rest }: TooltipProps): JSX.Element;
6
+ defaultProps: {
7
+ placement: string;
8
+ };
9
+ }>;
10
+ export default _default;
@@ -0,0 +1,44 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import * as React from 'react';
25
+ import { styled, alpha } from '@mui/material/styles';
26
+ import Tooltip, { tooltipClasses } from '@mui/material/Tooltip';
27
+ var StyledTooltip = styled(function (_a) {
28
+ var className = _a.className, props = __rest(_a, ["className"]);
29
+ return (_jsx(Tooltip, __assign({}, props, { classes: { popper: className } })));
30
+ })(function (_a) {
31
+ var _b;
32
+ var theme = _a.theme;
33
+ return (_b = {},
34
+ _b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)) }),
35
+ _b);
36
+ });
37
+ var TooltipComponent = function (_a) {
38
+ var children = _a.children, rest = __rest(_a, ["children"]);
39
+ return _jsx(StyledTooltip, __assign({}, rest, { children: children }));
40
+ };
41
+ export default React.memo(TooltipComponent);
42
+ TooltipComponent.defaultProps = {
43
+ placement: 'bottom-end'
44
+ };
@@ -0,0 +1,3 @@
1
+ import Tooltip, { TooltipProps } from './Tooltip';
2
+ export type { TooltipProps };
3
+ export default Tooltip;
@@ -0,0 +1,2 @@
1
+ import Tooltip from './Tooltip';
2
+ export default Tooltip;
@@ -1,13 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import { BoxProps } from '@mui/material/Box';
3
3
  export interface WarningProps extends BoxProps {
4
- children: string;
4
+ children?: string;
5
5
  warningType?: 'alert' | 'error';
6
6
  }
7
7
  declare const _default: React.MemoExoticComponent<{
8
8
  ({ children, warningType, ...rest }: WarningProps): JSX.Element;
9
9
  defaultProps: {
10
10
  warningType: string;
11
+ children: string;
11
12
  };
12
13
  }>;
13
14
  export default _default;