@ovotech/element-native 3.0.0-canary-53e995f-104 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +1 -1
  2. package/dist/components/Accordion/Accordion.js +6 -9
  3. package/dist/components/Accordion/Group.d.ts +1 -4
  4. package/dist/components/Accordion/Group.js +10 -24
  5. package/dist/components/Accordion/styles.d.ts +3 -3
  6. package/dist/components/Accordion/types.d.ts +3 -3
  7. package/dist/components/Badge/Badge.d.ts +1 -1
  8. package/dist/components/CTAButton/CTAButton.d.ts +3 -3
  9. package/dist/components/CTALink/CTALink.d.ts +3 -3
  10. package/dist/components/Card/Card.d.ts +1 -1
  11. package/dist/components/DataTable/styles.d.ts +11 -11
  12. package/dist/components/DescriptionList/styled.d.ts +1 -1
  13. package/dist/components/Divider/Divider.js +1 -3
  14. package/dist/components/ErrorText/ErrorText.d.ts +1 -1
  15. package/dist/components/FormGroup/FormGroup.js +0 -1
  16. package/dist/components/Grid/Col.d.ts +1 -1
  17. package/dist/components/Grid/Row.d.ts +1 -1
  18. package/dist/components/HintText/HintText.d.ts +1 -1
  19. package/dist/components/Icon/Icon.d.ts +2 -2
  20. package/dist/components/Input/CurrencyInput.d.ts +2 -2
  21. package/dist/components/Input/EmailInput.d.ts +2 -2
  22. package/dist/components/Input/Input.d.ts +5 -5
  23. package/dist/components/Input/NumberInput.d.ts +2 -2
  24. package/dist/components/Input/PasswordInput.d.ts +2 -2
  25. package/dist/components/Input/PasswordInput.styled.d.ts +1 -1
  26. package/dist/components/Input/PasswordVisibilityToggle.d.ts +1 -2
  27. package/dist/components/Input/PhoneInput.d.ts +2 -2
  28. package/dist/components/Input/TelInput.d.ts +10 -0
  29. package/dist/components/Input/TelInput.js +41 -0
  30. package/dist/components/Input/TextInput.d.ts +2 -2
  31. package/dist/components/Input/TextareaInput.d.ts +2 -2
  32. package/dist/components/LabelText/LabelText.d.ts +1 -1
  33. package/dist/components/List/List.d.ts +3 -3
  34. package/dist/components/Margin/Margin.d.ts +1 -4
  35. package/dist/components/Notification/Notification.d.ts +2 -2
  36. package/dist/components/Radio/Radio.js +2 -2
  37. package/dist/components/SelectField/Select.d.ts +1 -2
  38. package/dist/components/SelectField/Select.js +14 -15
  39. package/dist/components/SkeletonLoading/Skeleton.d.ts +1 -1
  40. package/dist/components/SubLabelText/SubLabelText.d.ts +1 -1
  41. package/dist/components/Text/Text.d.ts +5 -5
  42. package/dist/components/TextField/CurrencyField.d.ts +2 -2
  43. package/dist/components/TextField/EmailField.d.ts +2 -2
  44. package/dist/components/TextField/NumberField.d.ts +2 -2
  45. package/dist/components/TextField/PasswordField.d.ts +2 -2
  46. package/dist/components/TextField/PhoneField.d.ts +2 -2
  47. package/dist/components/TextField/TelField.d.ts +2 -2
  48. package/dist/components/TextField/TextField.d.ts +2 -2
  49. package/dist/components/TextField/TextareaField.d.ts +2 -2
  50. package/dist/components/index.d.ts +0 -1
  51. package/dist/components/index.js +0 -1
  52. package/dist/esm/components/Accordion/Accordion.js +6 -9
  53. package/dist/esm/components/Accordion/Group.js +10 -24
  54. package/dist/esm/components/Divider/Divider.js +1 -3
  55. package/dist/esm/components/FormGroup/FormGroup.js +0 -1
  56. package/dist/esm/components/Input/TelInput.js +15 -0
  57. package/dist/esm/components/Radio/Radio.js +2 -2
  58. package/dist/esm/components/SelectField/Select.js +16 -14
  59. package/dist/esm/components/index.js +0 -1
  60. package/dist/esm/providers/icons/HidePassword.js +15 -0
  61. package/dist/esm/providers/icons/Payment.js +15 -0
  62. package/dist/esm/providers/icons/ShowPassword.js +15 -0
  63. package/dist/esm/providers/icons/Usage.js +15 -0
  64. package/dist/esm/utils/utils.js +0 -1
  65. package/dist/providers/IconsProvider.d.ts +1 -1
  66. package/dist/providers/icons/HidePassword.d.ts +2 -0
  67. package/dist/providers/icons/HidePassword.js +22 -0
  68. package/dist/providers/icons/Payment.d.ts +2 -0
  69. package/dist/providers/icons/Payment.js +22 -0
  70. package/dist/providers/icons/ShowPassword.d.ts +2 -0
  71. package/dist/providers/icons/ShowPassword.js +22 -0
  72. package/dist/providers/icons/Usage.d.ts +2 -0
  73. package/dist/providers/icons/Usage.js +22 -0
  74. package/dist/providers/types.d.ts +0 -1
  75. package/dist/styled.native.d.ts +6 -6
  76. package/dist/theme/create-theme.d.ts +1 -1
  77. package/dist/theme/index.d.ts +1 -1
  78. package/dist/utils/utils.js +0 -1
  79. package/package.json +2 -4
  80. package/dist/components/ActionList/ActionList.d.ts +0 -22
  81. package/dist/components/ActionList/ActionList.js +0 -60
  82. package/dist/components/ActionList/index.d.ts +0 -1
  83. package/dist/components/ActionList/index.js +0 -17
  84. package/dist/components/ActionList/styled.d.ts +0 -1155
  85. package/dist/components/ActionList/styled.js +0 -57
  86. package/dist/esm/components/ActionList/ActionList.js +0 -56
  87. package/dist/esm/components/ActionList/index.js +0 -1
  88. package/dist/esm/components/ActionList/styled.js +0 -31
@@ -2,4 +2,4 @@ import { ComponentClass, ComponentType } from 'react';
2
2
  import { AnimateProps } from 'react-native-reanimated';
3
3
  import { AccordionProps } from './types';
4
4
  export declare function withAnimated<T extends object>(WrappedComponent: ComponentType<T>): ComponentClass<AnimateProps<T>>;
5
- export declare const Accordion: ({ expanded, first, last, title, children, onToggle, }: AccordionProps) => JSX.Element;
5
+ export declare const Accordion: ({ expanded, first, headingComponent, last, title, children, onToggle, }: AccordionProps) => JSX.Element;
@@ -56,7 +56,6 @@ var react_native_reanimated_1 = __importStar(require("react-native-reanimated"))
56
56
  var styled_native_1 = require("../../styled.native");
57
57
  var utils_1 = require("../../utils");
58
58
  var Heading_1 = require("../Heading");
59
- var Group_1 = require("./Group");
60
59
  var Icon_1 = require("./Icon");
61
60
  var hooks_1 = require("./hooks");
62
61
  var styles_1 = require("./styles");
@@ -78,15 +77,13 @@ function withAnimated(WrappedComponent) {
78
77
  }
79
78
  exports.withAnimated = withAnimated;
80
79
  var Accordion = function (_a) {
81
- var _b = _a.expanded, expanded = _b === void 0 ? false : _b, first = _a.first, last = _a.last, title = _a.title, children = _a.children, onToggle = _a.onToggle;
82
- var _c = (0, react_1.useContext)(styled_native_1.ThemeContext), core = _c.core, semantic = _c.semantic;
83
- var Header = (0, react_1.useContext)(Group_1.AccordionGroupContext).Header;
84
- var AccordionHeading = Header !== null && Header !== void 0 ? Header : Heading_1.Heading4;
85
- var AnimatedHeading = (0, react_1.useMemo)(function () { return withAnimated(AccordionHeading); }, [
86
- AccordionHeading,
80
+ var _b = _a.expanded, expanded = _b === void 0 ? false : _b, first = _a.first, _c = _a.headingComponent, headingComponent = _c === void 0 ? Heading_1.Heading4 : _c, last = _a.last, title = _a.title, children = _a.children, onToggle = _a.onToggle;
81
+ var _d = (0, react_1.useContext)(styled_native_1.ThemeContext), core = _d.core, semantic = _d.semantic;
82
+ var AnimatedHeading = (0, react_1.useMemo)(function () { return withAnimated(headingComponent); }, [
83
+ headingComponent,
87
84
  ]);
88
- var _d = (0, hooks_1.useLayout)(0), layout = _d[0], onLayout = _d[1];
89
- var _e = (0, react_1.useState)(expanded), open = _e[0], setOpen = _e[1];
85
+ var _e = (0, hooks_1.useLayout)(0), layout = _e[0], onLayout = _e[1];
86
+ var _f = (0, react_1.useState)(expanded), open = _f[0], setOpen = _f[1];
90
87
  var handleHeightContent = (0, react_1.useMemo)(function () { return layout.height || 100; }, [
91
88
  layout.height,
92
89
  ]);
@@ -1,6 +1,3 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { AccordionGroupProps } from './types';
3
- export declare const AccordionGroupContext: import("react").Context<{
4
- Header?: AccordionGroupProps['headingComponent'];
5
- }>;
6
- export declare const AccordionGroup: ({ children, headingComponent, }: PropsWithChildren<AccordionGroupProps>) => JSX.Element;
3
+ export declare const AccordionGroup: ({ children, }: PropsWithChildren<AccordionGroupProps>) => JSX.Element;
@@ -1,33 +1,19 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.AccordionGroup = exports.AccordionGroupContext = void 0;
3
+ exports.AccordionGroup = void 0;
15
4
  var jsx_runtime_1 = require("react/jsx-runtime");
16
5
  var react_1 = require("react");
17
6
  var react_native_1 = require("react-native");
18
- exports.AccordionGroupContext = (0, react_1.createContext)({
19
- Header: undefined,
20
- });
21
7
  var AccordionGroup = function (_a) {
22
- var children = _a.children, headingComponent = _a.headingComponent;
8
+ var children = _a.children;
23
9
  var childCount = react_1.Children.count(children);
24
- return ((0, jsx_runtime_1.jsx)(exports.AccordionGroupContext.Provider, __assign({ value: { Header: headingComponent } }, { children: (0, jsx_runtime_1.jsx)(react_native_1.View, { children: react_1.Children.map(children, function (child, i) {
25
- return (0, react_1.isValidElement)(child)
26
- ? (0, react_1.cloneElement)(child, {
27
- first: i === 0,
28
- last: i === childCount - 1,
29
- })
30
- : child;
31
- }) }) })));
10
+ return ((0, jsx_runtime_1.jsx)(react_native_1.View, { children: react_1.Children.map(children, function (child, i) {
11
+ return (0, react_1.isValidElement)(child)
12
+ ? (0, react_1.cloneElement)(child, {
13
+ first: i === 0,
14
+ last: i === childCount - 1,
15
+ })
16
+ : child;
17
+ }) }));
32
18
  };
33
19
  exports.AccordionGroup = AccordionGroup;
@@ -226,7 +226,7 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
226
226
  };
227
227
  };
228
228
  };
229
- } & object, {
229
+ }, {
230
230
  first?: boolean | undefined;
231
231
  last?: boolean | undefined;
232
232
  }, never>;
@@ -457,7 +457,7 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
457
457
  };
458
458
  };
459
459
  };
460
- } & object, {}, never>;
460
+ }, {}, never>;
461
461
  export declare const StyledContainer: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
462
462
  core: {
463
463
  radius: Record<"small" | "medium" | "large" | "max", string>;
@@ -685,4 +685,4 @@ export declare const StyledContainer: import("styled-components").StyledComponen
685
685
  };
686
686
  };
687
687
  };
688
- } & object, {}, never>;
688
+ }, {}, never>;
@@ -5,17 +5,17 @@ export declare type AccordionProps = PropsWithChildren<{
5
5
  children?: ReactNode;
6
6
  onToggle?: CallableFunction;
7
7
  /**
8
- * @deprecated inline prop is no longer affects styling
8
+ * @deprecated as it no longer affects styling
9
9
  */
10
10
  inline?: boolean;
11
+ headingComponent?: React.ComponentType<any>;
11
12
  first?: boolean;
12
13
  last?: boolean;
13
14
  testId?: string;
14
15
  }>;
15
16
  export declare type AccordionGroupProps = {
16
17
  /**
17
- * @deprecated inline prop is no longer affects styling
18
+ * @deprecated as it no longer affects styling
18
19
  */
19
20
  inline?: boolean;
20
- headingComponent?: React.ComponentType<any>;
21
21
  };
@@ -229,7 +229,7 @@ declare const StyledBadge: import("styled-components").StyledComponent<typeof im
229
229
  };
230
230
  };
231
231
  };
232
- } & object, {
232
+ }, {
233
233
  customVariant?: {
234
234
  backgroundColor: string;
235
235
  foregroundColor: string;
@@ -13,7 +13,7 @@ declare const CTAButton: ({ iconLeft, iconRight, children, fullWidth, variant, .
13
13
  declare type CTAProps = Omit<ComponentProps<typeof CTAButton>, 'variant' | 'ref'> & {
14
14
  ref: Ref<TouchableOpacity>;
15
15
  };
16
- declare const PrimaryCTAButton: import("react").ForwardRefExoticComponent<Pick<CTAProps, "iconLeft" | "iconRight" | "fullWidth" | keyof TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
17
- declare const SecondaryCTAButton: import("react").ForwardRefExoticComponent<Pick<CTAProps, "iconLeft" | "iconRight" | "fullWidth" | keyof TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
18
- declare const DestructiveCTAButton: import("react").ForwardRefExoticComponent<Pick<CTAProps, "iconLeft" | "iconRight" | "fullWidth" | keyof TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
16
+ declare const PrimaryCTAButton: import("react").ForwardRefExoticComponent<Pick<CTAProps, keyof TouchableOpacityProps | "fullWidth" | "iconLeft" | "iconRight"> & import("react").RefAttributes<TouchableOpacity>>;
17
+ declare const SecondaryCTAButton: import("react").ForwardRefExoticComponent<Pick<CTAProps, keyof TouchableOpacityProps | "fullWidth" | "iconLeft" | "iconRight"> & import("react").RefAttributes<TouchableOpacity>>;
18
+ declare const DestructiveCTAButton: import("react").ForwardRefExoticComponent<Pick<CTAProps, keyof TouchableOpacityProps | "fullWidth" | "iconLeft" | "iconRight"> & import("react").RefAttributes<TouchableOpacity>>;
19
19
  export { CTAButton, PrimaryCTAButton, SecondaryCTAButton, DestructiveCTAButton, };
@@ -4,8 +4,8 @@ import { CTAButton } from '../CTAButton';
4
4
  declare type CTALinkProps = Omit<ComponentProps<typeof CTAButton>, 'ref'> & {
5
5
  ref: Ref<TouchableOpacity>;
6
6
  };
7
- declare const CTALink: import("react").ForwardRefExoticComponent<Pick<CTALinkProps, "iconLeft" | "iconRight" | "fullWidth" | keyof import("react-native/types").TouchableOpacityProps | "variant"> & import("react").RefAttributes<TouchableOpacity>>;
7
+ declare const CTALink: import("react").ForwardRefExoticComponent<Pick<CTALinkProps, "variant" | keyof import("react-native/types").TouchableOpacityProps | "fullWidth" | "iconLeft" | "iconRight"> & import("react").RefAttributes<TouchableOpacity>>;
8
8
  declare type CTAProps = Omit<ComponentProps<typeof CTALink>, 'variant'>;
9
- declare const PrimaryCTALink: import("react").ForwardRefExoticComponent<Pick<CTAProps, "key" | "iconLeft" | "iconRight" | "fullWidth" | keyof import("react-native/types").TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
10
- declare const SecondaryCTALink: import("react").ForwardRefExoticComponent<Pick<CTAProps, "key" | "iconLeft" | "iconRight" | "fullWidth" | keyof import("react-native/types").TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
9
+ declare const PrimaryCTALink: import("react").ForwardRefExoticComponent<Pick<CTAProps, "key" | keyof import("react-native/types").TouchableOpacityProps | "fullWidth" | "iconLeft" | "iconRight"> & import("react").RefAttributes<TouchableOpacity>>;
10
+ declare const SecondaryCTALink: import("react").ForwardRefExoticComponent<Pick<CTAProps, "key" | keyof import("react-native/types").TouchableOpacityProps | "fullWidth" | "iconLeft" | "iconRight"> & import("react").RefAttributes<TouchableOpacity>>;
11
11
  export { CTALink, PrimaryCTALink, SecondaryCTALink };
@@ -225,6 +225,6 @@ export declare const Card: import("styled-components").StyledComponent<typeof im
225
225
  };
226
226
  };
227
227
  };
228
- } & object, {
228
+ }, {
229
229
  inline?: boolean | undefined;
230
230
  }, never>;
@@ -226,7 +226,7 @@ export declare const StyledTableContainer: import("styled-components").StyledCom
226
226
  };
227
227
  };
228
228
  };
229
- } & object, {}, never>;
229
+ }, {}, never>;
230
230
  export declare const TableHeader: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
231
231
  core: {
232
232
  radius: Record<"small" | "medium" | "large" | "max", string>;
@@ -454,7 +454,7 @@ export declare const TableHeader: import("styled-components").StyledComponent<ty
454
454
  };
455
455
  };
456
456
  };
457
- } & object, {
457
+ }, {
458
458
  cellWidth: string;
459
459
  } & Breakpoints, never>;
460
460
  export declare const TableHeaderText: import("styled-components").StyledComponent<typeof import("react-native").Text, import("../../theme/theme").Theme & {
@@ -684,7 +684,7 @@ export declare const TableHeaderText: import("styled-components").StyledComponen
684
684
  };
685
685
  };
686
686
  };
687
- } & object, Breakpoints, never>;
687
+ }, Breakpoints, never>;
688
688
  export declare const TableCaptionText: import("styled-components").StyledComponent<typeof import("react-native").Text, import("../../theme/theme").Theme & {
689
689
  core: {
690
690
  radius: Record<"small" | "medium" | "large" | "max", string>;
@@ -912,7 +912,7 @@ export declare const TableCaptionText: import("styled-components").StyledCompone
912
912
  };
913
913
  };
914
914
  };
915
- } & object, Breakpoints, never>;
915
+ }, Breakpoints, never>;
916
916
  export declare const CellText: import("styled-components").StyledComponent<typeof import("react-native").Text, import("../../theme/theme").Theme & {
917
917
  core: {
918
918
  radius: Record<"small" | "medium" | "large" | "max", string>;
@@ -1140,7 +1140,7 @@ export declare const CellText: import("styled-components").StyledComponent<typeo
1140
1140
  };
1141
1141
  };
1142
1142
  };
1143
- } & object, Breakpoints, never>;
1143
+ }, Breakpoints, never>;
1144
1144
  export declare const TableCaption: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
1145
1145
  core: {
1146
1146
  radius: Record<"small" | "medium" | "large" | "max", string>;
@@ -1368,7 +1368,7 @@ export declare const TableCaption: import("styled-components").StyledComponent<t
1368
1368
  };
1369
1369
  };
1370
1370
  };
1371
- } & object, Breakpoints, never>;
1371
+ }, Breakpoints, never>;
1372
1372
  export declare const TableRow: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
1373
1373
  core: {
1374
1374
  radius: Record<"small" | "medium" | "large" | "max", string>;
@@ -1596,7 +1596,7 @@ export declare const TableRow: import("styled-components").StyledComponent<typeo
1596
1596
  };
1597
1597
  };
1598
1598
  };
1599
- } & object, {
1599
+ }, {
1600
1600
  stripe: boolean;
1601
1601
  }, never>;
1602
1602
  export declare const TableRowHeading: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
@@ -1826,7 +1826,7 @@ export declare const TableRowHeading: import("styled-components").StyledComponen
1826
1826
  };
1827
1827
  };
1828
1828
  };
1829
- } & object, {}, never>;
1829
+ }, {}, never>;
1830
1830
  export declare const TableBody: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
1831
1831
  core: {
1832
1832
  radius: Record<"small" | "medium" | "large" | "max", string>;
@@ -2054,7 +2054,7 @@ export declare const TableBody: import("styled-components").StyledComponent<type
2054
2054
  };
2055
2055
  };
2056
2056
  };
2057
- } & object, {}, never>;
2057
+ }, {}, never>;
2058
2058
  export declare const TableCell: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
2059
2059
  core: {
2060
2060
  radius: Record<"small" | "medium" | "large" | "max", string>;
@@ -2282,7 +2282,7 @@ export declare const TableCell: import("styled-components").StyledComponent<type
2282
2282
  };
2283
2283
  };
2284
2284
  };
2285
- } & object, {
2285
+ }, {
2286
2286
  cellWidth: string;
2287
2287
  } & Breakpoints, never>;
2288
2288
  export declare const RowHeading: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
@@ -2512,6 +2512,6 @@ export declare const RowHeading: import("styled-components").StyledComponent<typ
2512
2512
  };
2513
2513
  };
2514
2514
  };
2515
- } & object, {
2515
+ }, {
2516
2516
  cellWidth: string;
2517
2517
  } & Breakpoints, never>;
@@ -232,7 +232,7 @@ export declare const Dl: import("react").ForwardRefExoticComponent<Pick<Omit<{
232
232
  };
233
233
  };
234
234
  };
235
- } & object) | undefined;
235
+ }) | undefined;
236
236
  } & {
237
237
  as?: string | import("react").ComponentType<any> | undefined;
238
238
  forwardedAs?: string | import("react").ComponentType<any> | undefined;
@@ -32,9 +32,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
32
32
  var styled_native_1 = __importStar(require("../../styled.native"));
33
33
  var StyledDivider = styled_native_1.default.View(function (_a) {
34
34
  var semantic = _a.theme.semantic, _b = _a.type, type = _b === void 0 ? 'default' : _b, _c = _a.width, width = _c === void 0 ? '100%' : _c;
35
- return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 1px;\n background: ", ";\n width: ", ";\n "], ["\n height: 1px;\n background: ", ";\n width: ", ";\n "])), type === 'default'
36
- ? semantic.border.graphic
37
- : semantic.border.differentiated, width);
35
+ return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 1px;\n background: ", ";\n width: ", ";\n "], ["\n height: 1px;\n background: ", ";\n width: ", ";\n "])), type === 'default' ? semantic.border.graphic : semantic.border.differentiated, width);
38
36
  });
39
37
  var Divider = function (_a) {
40
38
  var type = _a.type, width = _a.width;
@@ -232,7 +232,7 @@ declare const ErrorText: import("react").ForwardRefExoticComponent<Pick<Omit<{
232
232
  };
233
233
  };
234
234
  };
235
- } & object) | undefined;
235
+ }) | undefined;
236
236
  } & {
237
237
  as?: string | import("react").ComponentType<any> | undefined;
238
238
  forwardedAs?: string | import("react").ComponentType<any> | undefined;
@@ -34,7 +34,6 @@ var jsx_runtime_1 = require("react/jsx-runtime");
34
34
  var react_native_1 = require("react-native");
35
35
  var styled_native_1 = __importDefault(require("../../styled.native"));
36
36
  var FormGroupWrapper = styled_native_1.default.View(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: row;\n"], ["\n flex-direction: row;\n"])));
37
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
38
37
  var FormGroup = function (_a) {
39
38
  var children = _a.children, error = _a.error, rest = __rest(_a, ["children", "error"]);
40
39
  return ((0, jsx_runtime_1.jsx)(FormGroupWrapper, __assign({}, rest, { children: (0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ style: { flex: 1 } }, { children: children })) })));
@@ -231,7 +231,7 @@ declare const Col: import("react").ForwardRefExoticComponent<Pick<Omit<{
231
231
  };
232
232
  };
233
233
  };
234
- } & object) | undefined;
234
+ }) | undefined;
235
235
  } & {
236
236
  as?: string | import("react").ComponentType<any> | undefined;
237
237
  forwardedAs?: string | import("react").ComponentType<any> | undefined;
@@ -227,7 +227,7 @@ declare const StyledRow: import("styled-components").StyledComponent<typeof impo
227
227
  };
228
228
  };
229
229
  };
230
- } & object, {
230
+ }, {
231
231
  isNested?: boolean | undefined;
232
232
  } & {
233
233
  children?: import("react").ReactNode;
@@ -232,7 +232,7 @@ declare const HintText: import("react").ForwardRefExoticComponent<Pick<Omit<{
232
232
  };
233
233
  };
234
234
  };
235
- } & object) | undefined;
235
+ }) | undefined;
236
236
  } & {
237
237
  as?: string | import("react").ComponentType<any> | undefined;
238
238
  forwardedAs?: string | import("react").ComponentType<any> | undefined;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { SvgProps } from 'react-native-svg';
3
- import { IconNameExtended } from '../../providers';
3
+ import { IconName } from '../../providers';
4
4
  export declare type IconBase = React.FunctionComponent<SvgProps>;
5
5
  export declare type IconProps = SvgProps & {
6
- name: IconNameExtended;
6
+ name: IconName | (string & {});
7
7
  color?: string;
8
8
  size: string | number;
9
9
  };
@@ -7,8 +7,8 @@ export declare type CurrencyInputProps = InputProps & {
7
7
  declare const CurrencyInput: import("react").ForwardRefExoticComponent<import("react-native/types").TextInputProps & {
8
8
  invalid?: boolean | undefined;
9
9
  stretch?: boolean | undefined;
10
- iconLeft?: string | undefined;
11
- iconRight?: string | undefined;
10
+ iconLeft?: import("../../providers").IconName | undefined;
11
+ iconRight?: import("../../providers").IconName | undefined;
12
12
  rightSlot?: import("react").ReactNode;
13
13
  } & {
14
14
  currency?: "GBP" | "EUR" | "AUD" | "USD" | undefined;
@@ -3,8 +3,8 @@ import { TextInput } from 'react-native';
3
3
  declare const EmailInput: import("react").ForwardRefExoticComponent<import("react-native/types").TextInputProps & {
4
4
  invalid?: boolean | undefined;
5
5
  stretch?: boolean | undefined;
6
- iconLeft?: string | undefined;
7
- iconRight?: string | undefined;
6
+ iconLeft?: import("../../providers").IconName | undefined;
7
+ iconRight?: import("../../providers").IconName | undefined;
8
8
  rightSlot?: import("react").ReactNode;
9
9
  } & import("react").RefAttributes<TextInput>>;
10
10
  export { EmailInput };
@@ -1,18 +1,18 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { TextInput, TextInputProps } from 'react-native';
3
- import { IconNameExtended } from '../../providers/types';
3
+ import { IconName } from '../../providers/types';
4
4
  export declare type InputProps = TextInputProps & {
5
5
  invalid?: boolean;
6
6
  stretch?: boolean;
7
- iconLeft?: IconNameExtended;
8
- iconRight?: IconNameExtended;
7
+ iconLeft?: IconName | (string & object);
8
+ iconRight?: IconName | (string & object);
9
9
  rightSlot?: ReactNode;
10
10
  };
11
11
  declare const Input: import("react").ForwardRefExoticComponent<TextInputProps & {
12
12
  invalid?: boolean | undefined;
13
13
  stretch?: boolean | undefined;
14
- iconLeft?: string | undefined;
15
- iconRight?: string | undefined;
14
+ iconLeft?: IconName | undefined;
15
+ iconRight?: IconName | undefined;
16
16
  rightSlot?: ReactNode;
17
17
  } & import("react").RefAttributes<TextInput>>;
18
18
  export { Input };
@@ -3,8 +3,8 @@ import { TextInput as RNTextInput } from 'react-native';
3
3
  declare const NumberInput: import("react").ForwardRefExoticComponent<import("react-native/types").TextInputProps & {
4
4
  invalid?: boolean | undefined;
5
5
  stretch?: boolean | undefined;
6
- iconLeft?: string | undefined;
7
- iconRight?: string | undefined;
6
+ iconLeft?: import("../../providers").IconName | undefined;
7
+ iconRight?: import("../../providers").IconName | undefined;
8
8
  rightSlot?: import("react").ReactNode;
9
9
  } & import("react").RefAttributes<RNTextInput>>;
10
10
  export { NumberInput };
@@ -3,8 +3,8 @@ import { TextInput as RNTextInput } from 'react-native';
3
3
  declare const PasswordInput: import("react").ForwardRefExoticComponent<import("react-native/types").TextInputProps & {
4
4
  invalid?: boolean | undefined;
5
5
  stretch?: boolean | undefined;
6
- iconLeft?: string | undefined;
7
- iconRight?: string | undefined;
6
+ iconLeft?: import("../../providers").IconName | undefined;
7
+ iconRight?: import("../../providers").IconName | undefined;
8
8
  rightSlot?: import("react").ReactNode;
9
9
  } & {
10
10
  hasVisibilityToggle?: boolean | undefined;
@@ -226,6 +226,6 @@ export declare const StyledPressable: import("styled-components").StyledComponen
226
226
  };
227
227
  };
228
228
  };
229
- } & object, {
229
+ }, {
230
230
  focused: boolean;
231
231
  }, never>;
@@ -1,10 +1,9 @@
1
- import { IconNameExtended } from '../../providers';
2
1
  export declare const useTogglePasswordVisibility: () => {
3
2
  isPasswordVisible: boolean;
4
3
  handlePasswordVisibility: () => void;
5
4
  };
6
5
  declare type PasswordVisibilityToggleProps = {
7
- iconName: IconNameExtended;
6
+ iconName: string;
8
7
  visibilityToggleLabel: string;
9
8
  handlePasswordVisibility: () => void;
10
9
  };
@@ -3,8 +3,8 @@ import { TextInput } from 'react-native';
3
3
  declare const PhoneInput: import("react").ForwardRefExoticComponent<import("react-native/types").TextInputProps & {
4
4
  invalid?: boolean | undefined;
5
5
  stretch?: boolean | undefined;
6
- iconLeft?: string | undefined;
7
- iconRight?: string | undefined;
6
+ iconLeft?: import("../../providers").IconName | undefined;
7
+ iconRight?: import("../../providers").IconName | undefined;
8
8
  rightSlot?: import("react").ReactNode;
9
9
  } & import("react").RefAttributes<TextInput>>;
10
10
  export { PhoneInput };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { TextInput } from 'react-native';
3
+ declare const TelInput: React.ForwardRefExoticComponent<import("react-native/types").TextInputProps & {
4
+ invalid?: boolean | undefined;
5
+ stretch?: boolean | undefined;
6
+ iconLeft?: (string & {}) | import("../../providers").IconName | undefined;
7
+ iconRight?: (string & {}) | import("../../providers").IconName | undefined;
8
+ rightSlot?: React.ReactNode;
9
+ } & React.RefAttributes<TextInput>>;
10
+ export { TelInput };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.TelInput = void 0;
38
+ var react_1 = __importStar(require("react"));
39
+ var Input_1 = require("./Input");
40
+ var TelInput = (0, react_1.forwardRef)(function (props, ref) { return (react_1.default.createElement(Input_1.Input, __assign({}, props, { keyboardType: "phone-pad", autoCapitalize: "none", autoCorrect: false, ref: ref }))); });
41
+ exports.TelInput = TelInput;
@@ -3,8 +3,8 @@ import { TextInput as RNTextInput } from 'react-native';
3
3
  declare const TextInput: import("react").ForwardRefExoticComponent<import("react-native/types").TextInputProps & {
4
4
  invalid?: boolean | undefined;
5
5
  stretch?: boolean | undefined;
6
- iconLeft?: string | undefined;
7
- iconRight?: string | undefined;
6
+ iconLeft?: import("../../providers").IconName | undefined;
7
+ iconRight?: import("../../providers").IconName | undefined;
8
8
  rightSlot?: import("react").ReactNode;
9
9
  } & import("react").RefAttributes<RNTextInput>>;
10
10
  export { TextInput };
@@ -7,8 +7,8 @@ declare type TextareaInputProps = InputProps & {
7
7
  declare const TextareaInput: import("react").ForwardRefExoticComponent<import("react-native/types").TextInputProps & {
8
8
  invalid?: boolean | undefined;
9
9
  stretch?: boolean | undefined;
10
- iconLeft?: string | undefined;
11
- iconRight?: string | undefined;
10
+ iconLeft?: import("../../providers").IconName | undefined;
11
+ iconRight?: import("../../providers").IconName | undefined;
12
12
  rightSlot?: import("react").ReactNode;
13
13
  } & {
14
14
  rows?: number | undefined;
@@ -232,7 +232,7 @@ declare const LabelText: import("react").ForwardRefExoticComponent<Pick<Omit<{
232
232
  };
233
233
  };
234
234
  };
235
- } & object) | undefined;
235
+ }) | undefined;
236
236
  } & {
237
237
  as?: string | import("react").ComponentType<any> | undefined;
238
238
  forwardedAs?: string | import("react").ComponentType<any> | undefined;
@@ -232,7 +232,7 @@ declare const ListWrapper: import("react").ForwardRefExoticComponent<Pick<Omit<{
232
232
  };
233
233
  };
234
234
  };
235
- } & object) | undefined;
235
+ }) | undefined;
236
236
  } & {
237
237
  as?: string | import("react").ComponentType<any> | undefined;
238
238
  forwardedAs?: string | import("react").ComponentType<any> | undefined;
@@ -473,7 +473,7 @@ declare const Li: import("react").ForwardRefExoticComponent<Pick<Omit<{
473
473
  };
474
474
  };
475
475
  };
476
- } & object) | undefined;
476
+ }) | undefined;
477
477
  } & {
478
478
  as?: string | import("react").ComponentType<any> | undefined;
479
479
  forwardedAs?: string | import("react").ComponentType<any> | undefined;
@@ -714,7 +714,7 @@ declare const Dl: import("react").ForwardRefExoticComponent<Pick<Omit<{
714
714
  };
715
715
  };
716
716
  };
717
- } & object) | undefined;
717
+ }) | undefined;
718
718
  } & {
719
719
  as?: string | import("react").ComponentType<any> | undefined;
720
720
  forwardedAs?: string | import("react").ComponentType<any> | undefined;
@@ -239,15 +239,12 @@ declare const StyledMargin: import("styled-components").StyledComponent<typeof i
239
239
  };
240
240
  };
241
241
  };
242
- } & object, MProps, never>;
242
+ }, MProps, never>;
243
243
  declare type Props = Omit<ComponentProps<typeof StyledMargin>, 'mTop' | 'mBottom' | 'mLeft' | 'mRight' | 'breakpoints'> & {
244
244
  top?: SpaceKey | SpaceKey[];
245
245
  bottom?: SpaceKey | SpaceKey[];
246
246
  left?: SpaceKey | SpaceKey[];
247
247
  right?: SpaceKey | SpaceKey[];
248
- horizontal?: SpaceKey | SpaceKey[];
249
- vertical?: SpaceKey | SpaceKey[];
250
- all?: SpaceKey | SpaceKey[];
251
248
  };
252
249
  declare const Margin: ({ top, bottom, left, right, ...rest }: Props) => JSX.Element;
253
250
  export { Margin };
@@ -229,7 +229,7 @@ export declare const NotificationContentBox: import("styled-components").StyledC
229
229
  };
230
230
  };
231
231
  };
232
- } & object, {}, never>;
232
+ }, {}, never>;
233
233
  export declare const NotificationTitleBox: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
234
234
  core: {
235
235
  radius: Record<"small" | "medium" | "large" | "max", string>;
@@ -457,7 +457,7 @@ export declare const NotificationTitleBox: import("styled-components").StyledCom
457
457
  };
458
458
  };
459
459
  };
460
- } & object, {
460
+ }, {
461
461
  variant: NotificationVariantName;
462
462
  noMargin?: boolean | undefined;
463
463
  dismissible: boolean;