@ledgerhq/native-ui 0.7.3 → 0.7.4-monorepo.3

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 (194) hide show
  1. package/README.md +10 -10
  2. package/{assets → lib/assets}/fonts/alpha/HMAlphaMono-Medium.otf +0 -0
  3. package/{assets → lib/assets}/fonts/inter/Inter-Bold.otf +0 -0
  4. package/{assets → lib/assets}/fonts/inter/Inter-Medium.otf +0 -0
  5. package/{assets → lib/assets}/fonts/inter/Inter-SemiBold.otf +0 -0
  6. package/{assets → lib/assets}/icons.d.ts +0 -0
  7. package/{assets → lib/assets}/icons.js +0 -0
  8. package/{assets → lib/assets}/index.d.ts +0 -0
  9. package/{assets → lib/assets}/index.js +0 -0
  10. package/{assets → lib/assets}/logos/LedgerLiveAltRegular.d.ts +1 -0
  11. package/{assets → lib/assets}/logos/LedgerLiveAltRegular.js +0 -0
  12. package/{assets → lib/assets}/logos/LedgerLiveRegular.d.ts +1 -0
  13. package/{assets → lib/assets}/logos/LedgerLiveRegular.js +0 -0
  14. package/{assets → lib/assets}/logos/index.d.ts +0 -0
  15. package/{assets → lib/assets}/logos/index.js +0 -0
  16. package/{components → lib/components}/Carousel/index.d.ts +0 -0
  17. package/{components → lib/components}/Carousel/index.js +0 -0
  18. package/{components → lib/components}/Form/Checkbox/index.d.ts +1 -0
  19. package/{components → lib/components}/Form/Checkbox/index.js +0 -0
  20. package/{components → lib/components}/Form/Input/BaseInput/index.d.ts +4 -4
  21. package/{components → lib/components}/Form/Input/BaseInput/index.js +0 -0
  22. package/{components → lib/components}/Form/Input/LegendInput/index.d.ts +0 -0
  23. package/{components → lib/components}/Form/Input/LegendInput/index.js +0 -0
  24. package/{components → lib/components}/Form/Input/NumberInput/index.d.ts +0 -0
  25. package/{components → lib/components}/Form/Input/NumberInput/index.js +0 -0
  26. package/{components → lib/components}/Form/Input/QrCodeInput/index.d.ts +0 -0
  27. package/{components → lib/components}/Form/Input/QrCodeInput/index.js +0 -0
  28. package/{components → lib/components}/Form/Input/SearchInput/index.d.ts +0 -0
  29. package/{components → lib/components}/Form/Input/SearchInput/index.js +0 -0
  30. package/{components → lib/components}/Form/Input/index.d.ts +0 -0
  31. package/{components → lib/components}/Form/Input/index.js +0 -0
  32. package/{components → lib/components}/Form/SelectableList.d.ts +0 -0
  33. package/{components → lib/components}/Form/SelectableList.js +0 -0
  34. package/{components → lib/components}/Form/Slider/components.d.ts +0 -0
  35. package/{components → lib/components}/Form/Slider/components.js +0 -0
  36. package/{components → lib/components}/Form/Slider/index.d.ts +1 -0
  37. package/{components → lib/components}/Form/Slider/index.js +0 -0
  38. package/{components → lib/components}/Form/Slider/index.native.d.ts +1 -0
  39. package/{components → lib/components}/Form/Slider/index.native.js +0 -0
  40. package/{components → lib/components}/Form/Switch/index.d.ts +1 -0
  41. package/{components → lib/components}/Form/Switch/index.js +0 -0
  42. package/{components → lib/components}/Form/Toggle/index.d.ts +1 -0
  43. package/{components → lib/components}/Form/Toggle/index.js +0 -0
  44. package/{components → lib/components}/Form/index.d.ts +0 -0
  45. package/{components → lib/components}/Form/index.js +0 -0
  46. package/{components → lib/components}/Icon/BoxedIcon.d.ts +1 -0
  47. package/{components → lib/components}/Icon/BoxedIcon.js +0 -0
  48. package/{components → lib/components}/Icon/Icon.d.ts +1 -0
  49. package/{components → lib/components}/Icon/Icon.js +0 -0
  50. package/{components → lib/components}/Icon/IconBox/index.d.ts +0 -0
  51. package/{components → lib/components}/Icon/IconBox/index.js +0 -0
  52. package/{components → lib/components}/Icon/index.d.ts +0 -0
  53. package/{components → lib/components}/Icon/index.js +0 -0
  54. package/{components → lib/components}/Icon/type.d.ts +0 -0
  55. package/{components → lib/components}/Icon/type.js +0 -0
  56. package/{components → lib/components}/Layout/Box/index.d.ts +1 -1
  57. package/{components → lib/components}/Layout/Box/index.js +0 -0
  58. package/{components → lib/components}/Layout/Collapse/Accordion/index.d.ts +0 -0
  59. package/{components → lib/components}/Layout/Collapse/Accordion/index.js +1 -0
  60. package/{components → lib/components}/Layout/Flex/index.d.ts +1 -1
  61. package/{components → lib/components}/Layout/Flex/index.js +0 -0
  62. package/{components → lib/components}/Layout/List/IconBoxList/index.d.ts +0 -0
  63. package/{components → lib/components}/Layout/List/IconBoxList/index.js +0 -0
  64. package/{components → lib/components}/Layout/List/List/index.d.ts +0 -0
  65. package/{components → lib/components}/Layout/List/List/index.js +0 -0
  66. package/{components → lib/components}/Layout/List/NumberedList/index.d.ts +0 -0
  67. package/{components → lib/components}/Layout/List/NumberedList/index.js +0 -0
  68. package/{components → lib/components}/Layout/List/TipList/index.d.ts +0 -0
  69. package/{components → lib/components}/Layout/List/TipList/index.js +0 -0
  70. package/{components → lib/components}/Layout/List/index.d.ts +0 -0
  71. package/{components → lib/components}/Layout/List/index.js +0 -0
  72. package/{components → lib/components}/Layout/Modals/BaseModal/index.d.ts +1 -1
  73. package/{components → lib/components}/Layout/Modals/BaseModal/index.js +4 -1
  74. package/{components → lib/components}/Layout/Modals/BottomDrawer/index.d.ts +0 -0
  75. package/{components → lib/components}/Layout/Modals/BottomDrawer/index.js +0 -0
  76. package/{components → lib/components}/Layout/Modals/Popin/index.d.ts +0 -0
  77. package/{components → lib/components}/Layout/Modals/Popin/index.js +0 -0
  78. package/{components → lib/components}/Layout/Modals/Tooltip/index.d.ts +0 -0
  79. package/{components → lib/components}/Layout/Modals/Tooltip/index.js +0 -0
  80. package/{components → lib/components}/Layout/Modals/index.d.ts +0 -0
  81. package/{components → lib/components}/Layout/Modals/index.js +0 -0
  82. package/{components → lib/components}/Layout/ScrollContainer/index.d.ts +0 -0
  83. package/{components → lib/components}/Layout/ScrollContainer/index.js +0 -0
  84. package/{components → lib/components}/Layout/ScrollContainerHeader/Header.d.ts +1 -0
  85. package/{components → lib/components}/Layout/ScrollContainerHeader/Header.js +0 -0
  86. package/{components → lib/components}/Layout/ScrollContainerHeader/index.d.ts +0 -0
  87. package/{components → lib/components}/Layout/ScrollContainerHeader/index.js +0 -0
  88. package/{components → lib/components}/Layout/ScrollListContainer/index.d.ts +0 -0
  89. package/{components → lib/components}/Layout/ScrollListContainer/index.js +0 -0
  90. package/{components → lib/components}/Layout/Table/Row.d.ts +0 -0
  91. package/{components → lib/components}/Layout/Table/Row.js +0 -0
  92. package/{components → lib/components}/Layout/index.d.ts +0 -0
  93. package/{components → lib/components}/Layout/index.js +0 -0
  94. package/{components → lib/components}/Layout/types.d.ts +0 -0
  95. package/{components → lib/components}/Layout/types.js +0 -0
  96. package/{components → lib/components}/Loader/InfiniteLoader/index.d.ts +1 -1
  97. package/{components → lib/components}/Loader/InfiniteLoader/index.js +0 -0
  98. package/lib/components/Loader/ProgressLoader/index.d.ts +17 -0
  99. package/{components → lib/components}/Loader/ProgressLoader/index.js +7 -7
  100. package/{components → lib/components}/Loader/index.d.ts +0 -0
  101. package/{components → lib/components}/Loader/index.js +0 -0
  102. package/{components → lib/components}/Navigation/FlowStepper/index.d.ts +0 -0
  103. package/{components → lib/components}/Navigation/FlowStepper/index.js +0 -0
  104. package/{components → lib/components}/Navigation/SlideIndicator/index.d.ts +0 -0
  105. package/{components → lib/components}/Navigation/SlideIndicator/index.js +1 -0
  106. package/{components → lib/components}/Navigation/Stepper/index.d.ts +0 -0
  107. package/{components → lib/components}/Navigation/Stepper/index.js +0 -0
  108. package/{components → lib/components}/Navigation/index.d.ts +0 -0
  109. package/{components → lib/components}/Navigation/index.js +0 -0
  110. package/{components → lib/components}/ProgressBar/index.d.ts +0 -0
  111. package/{components → lib/components}/ProgressBar/index.js +0 -0
  112. package/{components → lib/components}/Tabs/Chip/index.d.ts +0 -0
  113. package/{components → lib/components}/Tabs/Chip/index.js +0 -0
  114. package/{components → lib/components}/Tabs/Graph/index.d.ts +0 -0
  115. package/{components → lib/components}/Tabs/Graph/index.js +0 -0
  116. package/{components → lib/components}/Tabs/TemplateTabs/index.d.ts +1 -1
  117. package/{components → lib/components}/Tabs/TemplateTabs/index.js +0 -0
  118. package/{components → lib/components}/Tabs/index.d.ts +0 -0
  119. package/{components → lib/components}/Tabs/index.js +0 -0
  120. package/{components → lib/components}/Text/getTextStyle.d.ts +0 -0
  121. package/{components → lib/components}/Text/getTextStyle.js +0 -0
  122. package/{components → lib/components}/Text/index.d.ts +0 -0
  123. package/{components → lib/components}/Text/index.js +0 -0
  124. package/{components → lib/components}/chart/index.d.ts +1 -0
  125. package/{components → lib/components}/chart/index.js +0 -0
  126. package/{components → lib/components}/chart/types.d.ts +0 -0
  127. package/{components → lib/components}/chart/types.js +0 -0
  128. package/{components → lib/components}/cta/Button/getButtonStyle.d.ts +0 -0
  129. package/{components → lib/components}/cta/Button/getButtonStyle.js +0 -0
  130. package/{components → lib/components}/cta/Button/index.d.ts +0 -0
  131. package/{components → lib/components}/cta/Button/index.js +4 -4
  132. package/{components → lib/components}/cta/Link/getLinkStyle.d.ts +0 -0
  133. package/{components → lib/components}/cta/Link/getLinkStyle.js +0 -0
  134. package/{components → lib/components}/cta/Link/index.d.ts +0 -0
  135. package/{components → lib/components}/cta/Link/index.js +0 -0
  136. package/{components → lib/components}/cta/getCtaStyle.d.ts +0 -0
  137. package/{components → lib/components}/cta/getCtaStyle.js +0 -0
  138. package/{components → lib/components}/cta/index.d.ts +0 -0
  139. package/{components → lib/components}/cta/index.js +0 -0
  140. package/{components → lib/components}/index.d.ts +0 -0
  141. package/{components → lib/components}/index.js +0 -0
  142. package/lib/components/message/Alert/index.d.ts +27 -0
  143. package/{components → lib/components}/message/Alert/index.js +7 -5
  144. package/lib/components/message/Log/Brackets.d.ts +15 -0
  145. package/lib/components/message/Log/Brackets.js +29 -0
  146. package/lib/components/message/Log/index.d.ts +9 -0
  147. package/lib/components/message/Log/index.js +15 -0
  148. package/{components → lib/components}/message/Notification/index.d.ts +0 -0
  149. package/{components → lib/components}/message/Notification/index.js +0 -0
  150. package/{components → lib/components}/message/index.d.ts +1 -0
  151. package/{components → lib/components}/message/index.js +1 -0
  152. package/{components → lib/components}/styled.d.ts +0 -0
  153. package/{components → lib/components}/styled.js +4 -1
  154. package/{components → lib/components}/tags/Badge/index.d.ts +0 -0
  155. package/{components → lib/components}/tags/Badge/index.js +0 -0
  156. package/{components → lib/components}/tags/Tag/index.d.ts +0 -0
  157. package/{components → lib/components}/tags/Tag/index.js +0 -0
  158. package/{components → lib/components}/tags/index.d.ts +0 -0
  159. package/{components → lib/components}/tags/index.js +0 -0
  160. package/{components → lib/components}/transitions/Fade.d.ts +1 -0
  161. package/{components → lib/components}/transitions/Fade.js +0 -0
  162. package/{components → lib/components}/transitions/Slide.d.ts +1 -0
  163. package/{components → lib/components}/transitions/Slide.js +0 -0
  164. package/{components → lib/components}/transitions/Transition.d.ts +1 -0
  165. package/{components → lib/components}/transitions/Transition.js +0 -0
  166. package/{components → lib/components}/transitions/index.d.ts +0 -0
  167. package/{components → lib/components}/transitions/index.js +0 -0
  168. package/{components → lib/components}/transitions/types.d.ts +0 -0
  169. package/{components → lib/components}/transitions/types.js +0 -0
  170. package/{helpers → lib/helpers}/getDeviceSize.d.ts +0 -0
  171. package/{helpers → lib/helpers}/getDeviceSize.js +0 -0
  172. package/{icons → lib/icons}/BracketLeft.d.ts +0 -0
  173. package/{icons → lib/icons}/BracketLeft.js +0 -0
  174. package/{icons → lib/icons}/BracketRight.d.ts +0 -0
  175. package/{icons → lib/icons}/BracketRight.js +0 -0
  176. package/{icons → lib/icons}/Close.d.ts +0 -0
  177. package/{icons → lib/icons}/Close.js +0 -0
  178. package/{icons → lib/icons}/Info.d.ts +0 -0
  179. package/{icons → lib/icons}/Info.js +0 -0
  180. package/{index.d.ts → lib/index.d.ts} +0 -0
  181. package/{index.js → lib/index.js} +0 -0
  182. package/{styles → lib/styles}/InvertTheme.d.ts +0 -0
  183. package/{styles → lib/styles}/InvertTheme.js +0 -0
  184. package/{styles → lib/styles}/StyleProvider.d.ts +0 -0
  185. package/{styles → lib/styles}/StyleProvider.js +0 -0
  186. package/{styles → lib/styles}/helpers.d.ts +0 -0
  187. package/{styles → lib/styles}/helpers.js +0 -0
  188. package/{styles → lib/styles}/index.d.ts +0 -0
  189. package/{styles → lib/styles}/index.js +0 -0
  190. package/{styles → lib/styles}/theme.d.ts +0 -0
  191. package/{styles → lib/styles}/theme.js +0 -0
  192. package/package.json +121 -16
  193. package/components/Loader/ProgressLoader/index.d.ts +0 -13
  194. package/components/message/Alert/index.d.ts +0 -10
package/README.md CHANGED
@@ -86,10 +86,10 @@ import { useFonts } from "expo-font";
86
86
  */
87
87
  function FontProvider({ children }) {
88
88
  const [fontsLoaded] = useFonts({
89
- "HMAlphaMono-Medium": require("@ledgerhq/native-ui/assets/fonts/alpha/HMAlphaMono-Medium.otf"),
90
- "Inter-Medium": require("@ledgerhq/native-ui/assets/fonts/inter/Inter-Medium.otf"),
91
- "Inter-SemiBold": require("@ledgerhq/native-ui/assets/fonts/inter/Inter-SemiBold.otf"),
92
- "Inter-Bold": require("@ledgerhq/native-ui/assets/fonts/inter/Inter-Bold.otf"),
89
+ "HMAlphaMono-Medium": require("@ledgerhq/native-ui/lib/assets/fonts/alpha/HMAlphaMono-Medium.otf"),
90
+ "Inter-Medium": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-Medium.otf"),
91
+ "Inter-SemiBold": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-SemiBold.otf"),
92
+ "Inter-Bold": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-Bold.otf"),
93
93
  });
94
94
 
95
95
  if (!fontsLoaded) {
@@ -107,8 +107,8 @@ Add the paths in the `react-native.config.js` file:
107
107
  ```js
108
108
  module.exports = {
109
109
  assets: [
110
- "node_modules/@ledgerhq/native-ui/assets/fonts/alpha",
111
- "node_modules/@ledgerhq/native-ui/assets/fonts/inter",
110
+ "node_modules/@ledgerhq/native-ui/lib/assets/fonts/alpha",
111
+ "node_modules/@ledgerhq/native-ui/lib/assets/fonts/inter",
112
112
  ],
113
113
  };
114
114
  ```
@@ -138,10 +138,10 @@ function Logo() {
138
138
 
139
139
  function FontProvider({ children }) {
140
140
  const [fontsLoaded] = useFonts({
141
- "HMAlphaMono-Medium": require("@ledgerhq/native-ui/assets/fonts/alpha/HMAlphaMono-Medium.otf"),
142
- "Inter-Medium": require("@ledgerhq/native-ui/assets/fonts/inter/Inter-Medium.otf"),
143
- "Inter-SemiBold": require("@ledgerhq/native-ui/assets/fonts/inter/Inter-SemiBold.otf"),
144
- "Inter-Bold": require("@ledgerhq/native-ui/assets/fonts/inter/Inter-Bold.otf"),
141
+ "HMAlphaMono-Medium": require("@ledgerhq/native-ui/lib/assets/fonts/alpha/HMAlphaMono-Medium.otf"),
142
+ "Inter-Medium": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-Medium.otf"),
143
+ "Inter-SemiBold": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-SemiBold.otf"),
144
+ "Inter-Bold": require("@ledgerhq/native-ui/lib/assets/fonts/inter/Inter-Bold.otf"),
145
145
  });
146
146
 
147
147
  if (!fontsLoaded) {
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type Props = {
2
3
  width?: number | string;
3
4
  height?: number | string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type Props = {
2
3
  width?: number | string;
3
4
  height?: number | string;
File without changes
File without changes
File without changes
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { BaseTextProps } from "../../Text";
2
3
  declare type CheckboxProps = {
3
4
  checked: boolean;
@@ -47,7 +47,7 @@ export declare type InputProps<T = string> = Omit<CommonProps, "value" | "onChan
47
47
  */
48
48
  containerStyle?: StyleProp<ViewStyle>;
49
49
  };
50
- export declare const InputRenderLeftContainer: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & {
50
+ export declare const InputRenderLeftContainer: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, CSS.Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, CSS.Property.Background<import("styled-system").TLengthStyledSystem>> & {
51
51
  columnGap?: string | number | undefined;
52
52
  rowGap?: string | number | undefined;
53
53
  color?: string | undefined;
@@ -58,8 +58,8 @@ export declare const InputRenderLeftContainer: import("styled-components").Style
58
58
  alignItems: string;
59
59
  flexDirection: string;
60
60
  pl: string;
61
- }, "pl" | "alignItems" | "flexDirection">;
62
- export declare const InputRenderRightContainer: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & {
61
+ }, "alignItems" | "flexDirection" | "pl">;
62
+ export declare const InputRenderRightContainer: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, CSS.Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, CSS.Property.Background<import("styled-system").TLengthStyledSystem>> & {
63
63
  columnGap?: string | number | undefined;
64
64
  rowGap?: string | number | undefined;
65
65
  color?: string | undefined;
@@ -70,7 +70,7 @@ export declare const InputRenderRightContainer: import("styled-components").Styl
70
70
  alignItems: string;
71
71
  flexDirection: string;
72
72
  pr: string;
73
- }, "pr" | "alignItems" | "flexDirection">;
73
+ }, "alignItems" | "flexDirection" | "pr">;
74
74
  declare function Input<T = string>(props: InputProps<T>, ref?: any): JSX.Element;
75
75
  declare const _default: <T>(props: Omit<CommonProps, "onChange" | "value"> & {
76
76
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { SliderProps } from "./index.native";
2
3
  declare const SliderScreen: (_props: SliderProps) => JSX.Element;
3
4
  export default SliderScreen;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare type SliderProps = {
2
3
  step: number;
3
4
  min: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type SwitchProps = {
2
3
  checked: boolean;
3
4
  onChange?: (value: boolean) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ButtonProps } from "../../cta/Button";
2
3
  declare type ToggleProps = {
3
4
  active?: boolean;
File without changes
File without changes
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconOrElementType, IconType } from "./type";
2
3
  export declare const DEFAULT_BOX_SIZE = 40;
3
4
  export declare const DEFAULT_ICON_SIZE = 16;
File without changes
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare type Props = {
2
3
  name: string;
3
4
  size?: number;
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  import { BaseStyledProps } from "../../styled";
2
2
  export declare type BoxProps = BaseStyledProps;
3
- declare const Box: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & {
3
+ declare const Box: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, CSS.Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, CSS.Property.Background<import("styled-system").TLengthStyledSystem>> & {
4
4
  columnGap?: string | number | undefined;
5
5
  rowGap?: string | number | undefined;
6
6
  color?: string | undefined;
@@ -11,6 +11,7 @@ const Accordion = ({ collapsed = false, children, title, onPress, }) => {
11
11
  };
12
12
  const style = useAnimatedStyle(() => {
13
13
  return {
14
+ // @ts-expect-error https://github.com/software-mansion/react-native-reanimated/issues/2971
14
15
  maxHeight: withTiming(animationHeight.value, config),
15
16
  };
16
17
  });
@@ -1,7 +1,7 @@
1
1
  import { BaseStyledProps } from "../../styled";
2
2
  export declare type FlexBoxProps = BaseStyledProps;
3
3
  export declare type Props = FlexBoxProps;
4
- declare const FlexBox: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & {
4
+ declare const FlexBox: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, CSS.Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, CSS.Property.Background<import("styled-system").TLengthStyledSystem>> & {
5
5
  columnGap?: string | number | undefined;
6
6
  rowGap?: string | number | undefined;
7
7
  color?: string | undefined;
@@ -16,5 +16,5 @@ export declare type BaseModalProps = {
16
16
  children?: React.ReactNode;
17
17
  noCloseButton?: boolean;
18
18
  } & Partial<ModalProps>;
19
- export declare function ModalHeader({ Icon, iconColor, title, description, subtitle, }: Pick<BaseModalProps, "Icon" | "iconColor" | "title" | "description" | "subtitle">): React.ReactElement;
19
+ export declare function ModalHeader({ Icon, iconColor, title, description, subtitle, }: Pick<BaseModalProps, "Icon" | "iconColor" | "title" | "description" | "subtitle">): React.ReactElement | null;
20
20
  export default function BaseModal({ isOpen, onClose, noCloseButton, containerStyle, modalStyle, preventBackdropClick, Icon, iconColor, title, description, subtitle, children, ...rest }: BaseModalProps): React.ReactElement;
@@ -50,6 +50,8 @@ const defaultModalStyle = {
50
50
  margin: 16,
51
51
  };
52
52
  export function ModalHeader({ Icon, iconColor, title, description, subtitle, }) {
53
+ if (!(Icon || subtitle || title || description))
54
+ return null;
53
55
  return (React.createElement(Flex, { alignItems: "center", mb: 7 },
54
56
  Icon && (React.createElement(Flex, { mb: 7 }, React.isValidElement(Icon) ? (Icon) : (React.createElement(BoxedIcon, { size: 64, Icon: Icon, iconSize: 24, iconColor: iconColor })))),
55
57
  subtitle && React.createElement(StyledSubtitle, { textAlign: "center" }, subtitle),
@@ -67,7 +69,8 @@ export default function BaseModal(_a) {
67
69
  };
68
70
  return (React.createElement(ReactNativeModal, Object.assign({}, rest, backDropProps, { isVisible: isOpen, deviceWidth: width, deviceHeight: height, useNativeDriver: true, useNativeDriverForBackdrop: true, hideModalContentWhileAnimating: true, onModalHide: onClose, style: [defaultModalStyle, modalStyle] }),
69
71
  React.createElement(Container, { style: containerStyle },
70
- React.createElement(CloseContainer, null, !noCloseButton && React.createElement(Link, { Icon: CloseMedium, onPress: onClose })),
72
+ !noCloseButton && (React.createElement(CloseContainer, null,
73
+ React.createElement(Link, { Icon: CloseMedium, onPress: onClose }))),
71
74
  React.createElement(ModalHeader, { Icon: Icon, iconColor: iconColor, title: title, description: description, subtitle: subtitle }),
72
75
  React.createElement(ContentContainer, null, children))));
73
76
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import Animated from "react-native-reanimated";
2
3
  export declare type HeaderProps = {
3
4
  TopLeftSection?: JSX.Element;
File without changes
File without changes
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  /// <reference types="styled-components-react-native" />
2
2
  import React from "react";
3
3
  import { SizeProps } from "styled-system";
4
- declare const Loader: import("styled-components").StyledComponent<import("react").ComponentClass<import("react-native-svg").SvgProps, any>, import("styled-components").DefaultTheme, SizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>>, never>;
4
+ declare const Loader: import("styled-components").StyledComponent<React.ComponentClass<import("react-native-svg").SvgProps, any>, import("styled-components").DefaultTheme, SizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, CSS.Property.Height<import("styled-system").TLengthStyledSystem>>, never>;
5
5
  export declare type Props = React.ComponentProps<typeof Loader> & {
6
6
  color?: string;
7
7
  };
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ declare type Props = {
3
+ /**
4
+ * float number between 0 and 1
5
+ */
6
+ progress?: number;
7
+ infinite?: boolean;
8
+ onPress?: () => void;
9
+ mainColor?: string;
10
+ secondaryColor?: string;
11
+ radius?: number;
12
+ strokeWidth?: number;
13
+ children?: React.ReactNode;
14
+ frontStrokeLinecap?: "butt" | "round";
15
+ };
16
+ declare const ProgressLoader: ({ progress, infinite, mainColor, secondaryColor, onPress, radius, strokeWidth, frontStrokeLinecap, children, }: Props) => React.ReactElement;
17
+ export default ProgressLoader;
@@ -4,13 +4,13 @@ import { useTheme } from "styled-components/native";
4
4
  import { TouchableOpacity } from "react-native";
5
5
  import { Flex } from "../../Layout";
6
6
  import Animated, { useAnimatedStyle, useSharedValue, withRepeat, withTiming, cancelAnimation, Easing, } from "react-native-reanimated";
7
- const ProgressLoader = ({ progress = 0, infinite, mainColor, secondaryColor, onPress, radius = 48, strokeWidth = 4, children, }) => {
7
+ const ProgressLoader = ({ progress = 0, infinite, mainColor, secondaryColor, onPress, radius = 48, strokeWidth = 4, frontStrokeLinecap = "butt", children, }) => {
8
8
  const { colors } = useTheme();
9
- const backgroundColor = secondaryColor || colors.neutral.c40;
9
+ const backgroundColor = secondaryColor || colors.primary.c30;
10
10
  const progressColor = mainColor || colors.primary.c80;
11
11
  const normalizedRadius = radius - strokeWidth / 2;
12
12
  const circumference = normalizedRadius * 2 * Math.PI;
13
- const strokeDashoffset = circumference - progress * circumference;
13
+ const strokeDashoffset = circumference * (1 - progress);
14
14
  const rotation = useSharedValue(0);
15
15
  const animatedStyles = useAnimatedStyle(() => ({
16
16
  transform: [
@@ -32,16 +32,16 @@ const ProgressLoader = ({ progress = 0, infinite, mainColor, secondaryColor, onP
32
32
  React.createElement(Flex, { alignItems: "center", justifyContent: "center" },
33
33
  React.createElement(Animated.View, { style: animatedStyles },
34
34
  React.createElement(Svg, { width: radius * 2, height: radius * 2 },
35
- React.createElement(Circle, { cx: radius, cy: radius, fill: "transparent", r: radius * 0.92, stroke: backgroundColor, strokeWidth: strokeWidth }),
36
- React.createElement(Circle, { cx: radius, cy: radius, fill: "transparent", r: radius * 0.92, stroke: mainColor, strokeWidth: strokeWidth, strokeDasharray: `${circumference / 4}, ${circumference}`, strokeDashoffset: "500", strokeLinecap: "round" }))),
35
+ React.createElement(Circle, { cx: radius, cy: radius, fill: "transparent", r: normalizedRadius, stroke: backgroundColor, strokeWidth: strokeWidth }),
36
+ React.createElement(Circle, { cx: radius, cy: radius, fill: "transparent", r: normalizedRadius, stroke: progressColor, strokeWidth: strokeWidth, strokeDasharray: `${circumference / 4}, ${circumference}`, strokeDashoffset: "500", strokeLinecap: frontStrokeLinecap }))),
37
37
  React.createElement(Flex, { position: "absolute" }, children))));
38
38
  }
39
39
  return (React.createElement(TouchableOpacity, { disabled: !onPress, onPress: onPress, activeOpacity: 1 },
40
40
  React.createElement(Flex, { alignItems: "center", justifyContent: "center" },
41
41
  React.createElement(Svg, { width: radius * 2, height: radius * 2 },
42
- React.createElement(Circle, { cx: radius, cy: radius, r: radius * 0.92, fill: "transparent", stroke: backgroundColor, strokeDashoffset: 0, strokeWidth: strokeWidth }),
42
+ React.createElement(Circle, { cx: radius, cy: radius, r: normalizedRadius, fill: "transparent", stroke: backgroundColor, strokeDashoffset: 0, strokeWidth: strokeWidth }),
43
43
  React.createElement(G, { transform: `rotate(-90) translate(-${radius * 2}, 0)` },
44
- React.createElement(Circle, { cx: radius, cy: radius, r: radius * 0.92, fill: "transparent", stroke: progressColor, strokeWidth: strokeWidth, strokeDasharray: `${circumference} ${circumference}`, strokeDashoffset: strokeDashoffset }))),
44
+ React.createElement(Circle, { cx: radius, cy: radius, r: normalizedRadius, fill: "transparent", stroke: progressColor, strokeWidth: strokeWidth, strokeDasharray: `${circumference} ${circumference}`, strokeDashoffset: strokeDashoffset, strokeLinecap: frontStrokeLinecap }))),
45
45
  React.createElement(Flex, { position: "absolute" }, children))));
46
46
  };
47
47
  export default ProgressLoader;
File without changes
File without changes
@@ -37,6 +37,7 @@ function SlideIndicator({ slidesLength, activeIndex = 0, onChange }) {
37
37
  return size;
38
38
  }, [activeIndex, slidesLength]);
39
39
  const animatedStyles = useAnimatedStyle(() => ({
40
+ // @ts-expect-error https://github.com/software-mansion/react-native-reanimated/issues/2971
40
41
  width: withTiming(activeSize.value, config),
41
42
  }));
42
43
  return (React.createElement(Container, null,
@@ -22,7 +22,7 @@ export declare type TabsProps = BaseTabsProps & {
22
22
  activeColor?: string;
23
23
  activeBg?: string;
24
24
  };
25
- export declare const TabsContainer: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & {
25
+ export declare const TabsContainer: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, CSS.Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, CSS.Property.Background<import("styled-system").TLengthStyledSystem>> & {
26
26
  columnGap?: string | number | undefined;
27
27
  rowGap?: string | number | undefined;
28
28
  color?: string | undefined;
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Item } from "./types";
2
3
  export declare type ChartProps = {
3
4
  data: Array<Item>;
File without changes
File without changes
File without changes