@ledgerhq/native-ui 0.7.4-monorepo.3 → 0.7.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.
- package/README.md +10 -10
- package/{lib/assets → assets}/fonts/alpha/HMAlphaMono-Medium.otf +0 -0
- package/{lib/assets → assets}/fonts/inter/Inter-Bold.otf +0 -0
- package/{lib/assets → assets}/fonts/inter/Inter-Medium.otf +0 -0
- package/{lib/assets → assets}/fonts/inter/Inter-SemiBold.otf +0 -0
- package/{lib/assets → assets}/icons.d.ts +0 -0
- package/{lib/assets → assets}/icons.js +0 -0
- package/{lib/assets → assets}/index.d.ts +0 -0
- package/{lib/assets → assets}/index.js +0 -0
- package/{lib/assets → assets}/logos/LedgerLiveAltRegular.d.ts +0 -1
- package/{lib/assets → assets}/logos/LedgerLiveAltRegular.js +0 -0
- package/{lib/assets → assets}/logos/LedgerLiveRegular.d.ts +0 -1
- package/{lib/assets → assets}/logos/LedgerLiveRegular.js +0 -0
- package/{lib/assets → assets}/logos/index.d.ts +0 -0
- package/{lib/assets → assets}/logos/index.js +0 -0
- package/{lib/components → components}/Carousel/index.d.ts +0 -0
- package/{lib/components → components}/Carousel/index.js +0 -0
- package/components/ChartCard/index.d.ts +19 -0
- package/components/ChartCard/index.js +38 -0
- package/{lib/components → components}/Form/Checkbox/index.d.ts +0 -1
- package/{lib/components → components}/Form/Checkbox/index.js +0 -0
- package/{lib/components → components}/Form/Input/BaseInput/index.d.ts +4 -4
- package/{lib/components → components}/Form/Input/BaseInput/index.js +0 -0
- package/{lib/components → components}/Form/Input/LegendInput/index.d.ts +0 -0
- package/{lib/components → components}/Form/Input/LegendInput/index.js +0 -0
- package/{lib/components → components}/Form/Input/NumberInput/index.d.ts +0 -0
- package/{lib/components → components}/Form/Input/NumberInput/index.js +0 -0
- package/{lib/components → components}/Form/Input/QrCodeInput/index.d.ts +0 -0
- package/{lib/components → components}/Form/Input/QrCodeInput/index.js +0 -0
- package/{lib/components → components}/Form/Input/SearchInput/index.d.ts +0 -0
- package/{lib/components → components}/Form/Input/SearchInput/index.js +0 -0
- package/{lib/components → components}/Form/Input/index.d.ts +0 -0
- package/{lib/components → components}/Form/Input/index.js +0 -0
- package/{lib/components → components}/Form/SelectableList.d.ts +0 -0
- package/{lib/components → components}/Form/SelectableList.js +0 -0
- package/{lib/components → components}/Form/Slider/components.d.ts +0 -0
- package/{lib/components → components}/Form/Slider/components.js +0 -0
- package/{lib/components → components}/Form/Slider/index.d.ts +0 -1
- package/{lib/components → components}/Form/Slider/index.js +0 -0
- package/{lib/components → components}/Form/Slider/index.native.d.ts +0 -1
- package/{lib/components → components}/Form/Slider/index.native.js +0 -0
- package/{lib/components → components}/Form/Switch/index.d.ts +0 -1
- package/{lib/components → components}/Form/Switch/index.js +0 -0
- package/{lib/components → components}/Form/Toggle/index.d.ts +0 -1
- package/{lib/components → components}/Form/Toggle/index.js +0 -0
- package/{lib/components → components}/Form/index.d.ts +0 -0
- package/{lib/components → components}/Form/index.js +0 -0
- package/{lib/components → components}/Icon/BoxedIcon.d.ts +0 -1
- package/{lib/components → components}/Icon/BoxedIcon.js +0 -0
- package/{lib/components → components}/Icon/Icon.d.ts +0 -1
- package/{lib/components → components}/Icon/Icon.js +0 -0
- package/{lib/components → components}/Icon/IconBox/index.d.ts +0 -0
- package/{lib/components → components}/Icon/IconBox/index.js +0 -0
- package/{lib/components → components}/Icon/index.d.ts +0 -0
- package/{lib/components → components}/Icon/index.js +0 -0
- package/{lib/components → components}/Icon/type.d.ts +0 -0
- package/{lib/components → components}/Icon/type.js +0 -0
- package/{lib/components → components}/Layout/Box/index.d.ts +1 -1
- package/{lib/components → components}/Layout/Box/index.js +0 -0
- package/{lib/components → components}/Layout/Collapse/Accordion/index.d.ts +0 -0
- package/{lib/components → components}/Layout/Collapse/Accordion/index.js +0 -1
- package/{lib/components → components}/Layout/Flex/index.d.ts +1 -1
- package/{lib/components → components}/Layout/Flex/index.js +0 -0
- package/{lib/components → components}/Layout/List/IconBoxList/index.d.ts +0 -0
- package/{lib/components → components}/Layout/List/IconBoxList/index.js +0 -0
- package/{lib/components → components}/Layout/List/List/index.d.ts +0 -0
- package/{lib/components → components}/Layout/List/List/index.js +0 -0
- package/{lib/components → components}/Layout/List/NumberedList/index.d.ts +0 -0
- package/{lib/components → components}/Layout/List/NumberedList/index.js +0 -0
- package/{lib/components → components}/Layout/List/TipList/index.d.ts +0 -0
- package/{lib/components → components}/Layout/List/TipList/index.js +0 -0
- package/{lib/components → components}/Layout/List/index.d.ts +0 -0
- package/{lib/components → components}/Layout/List/index.js +0 -0
- package/{lib/components → components}/Layout/Modals/BaseModal/index.d.ts +0 -0
- package/{lib/components → components}/Layout/Modals/BaseModal/index.js +0 -0
- package/{lib/components → components}/Layout/Modals/BottomDrawer/index.d.ts +0 -0
- package/{lib/components → components}/Layout/Modals/BottomDrawer/index.js +0 -0
- package/{lib/components → components}/Layout/Modals/Popin/index.d.ts +0 -0
- package/{lib/components → components}/Layout/Modals/Popin/index.js +0 -0
- package/{lib/components → components}/Layout/Modals/Tooltip/index.d.ts +0 -0
- package/{lib/components → components}/Layout/Modals/Tooltip/index.js +0 -0
- package/{lib/components → components}/Layout/Modals/index.d.ts +0 -0
- package/{lib/components → components}/Layout/Modals/index.js +0 -0
- package/{lib/components → components}/Layout/ScrollContainer/index.d.ts +0 -0
- package/{lib/components → components}/Layout/ScrollContainer/index.js +0 -0
- package/{lib/components → components}/Layout/ScrollContainerHeader/Header.d.ts +0 -1
- package/{lib/components → components}/Layout/ScrollContainerHeader/Header.js +0 -0
- package/{lib/components → components}/Layout/ScrollContainerHeader/index.d.ts +0 -0
- package/{lib/components → components}/Layout/ScrollContainerHeader/index.js +0 -0
- package/{lib/components → components}/Layout/ScrollListContainer/index.d.ts +0 -0
- package/{lib/components → components}/Layout/ScrollListContainer/index.js +0 -0
- package/{lib/components → components}/Layout/Table/Row.d.ts +0 -0
- package/{lib/components → components}/Layout/Table/Row.js +0 -0
- package/{lib/components → components}/Layout/index.d.ts +0 -0
- package/{lib/components → components}/Layout/index.js +0 -0
- package/{lib/components → components}/Layout/types.d.ts +0 -0
- package/{lib/components → components}/Layout/types.js +0 -0
- package/{lib/components → components}/Loader/InfiniteLoader/index.d.ts +1 -1
- package/{lib/components → components}/Loader/InfiniteLoader/index.js +0 -0
- package/{lib/components → components}/Loader/ProgressLoader/index.d.ts +0 -0
- package/{lib/components → components}/Loader/ProgressLoader/index.js +0 -0
- package/{lib/components → components}/Loader/index.d.ts +0 -0
- package/{lib/components → components}/Loader/index.js +0 -0
- package/{lib/components → components}/Navigation/FlowStepper/index.d.ts +0 -0
- package/{lib/components → components}/Navigation/FlowStepper/index.js +0 -0
- package/{lib/components → components}/Navigation/SlideIndicator/index.d.ts +0 -0
- package/{lib/components → components}/Navigation/SlideIndicator/index.js +0 -1
- package/{lib/components → components}/Navigation/Stepper/index.d.ts +0 -0
- package/{lib/components → components}/Navigation/Stepper/index.js +0 -0
- package/{lib/components → components}/Navigation/index.d.ts +0 -0
- package/{lib/components → components}/Navigation/index.js +0 -0
- package/{lib/components → components}/ProgressBar/index.d.ts +0 -0
- package/{lib/components → components}/ProgressBar/index.js +0 -0
- package/{lib/components → components}/Tabs/Chip/index.d.ts +0 -0
- package/{lib/components → components}/Tabs/Chip/index.js +0 -0
- package/{lib/components → components}/Tabs/Graph/index.d.ts +0 -0
- package/{lib/components → components}/Tabs/Graph/index.js +0 -0
- package/{lib/components → components}/Tabs/TemplateTabs/index.d.ts +1 -1
- package/{lib/components → components}/Tabs/TemplateTabs/index.js +0 -0
- package/{lib/components → components}/Tabs/index.d.ts +0 -0
- package/{lib/components → components}/Tabs/index.js +0 -0
- package/{lib/components → components}/Text/getTextStyle.d.ts +0 -0
- package/{lib/components → components}/Text/getTextStyle.js +0 -0
- package/{lib/components → components}/Text/index.d.ts +0 -0
- package/{lib/components → components}/Text/index.js +0 -0
- package/components/chart/index.d.ts +15 -0
- package/components/chart/index.js +68 -0
- package/components/chart/types.d.ts +6 -0
- package/{lib/components → components}/chart/types.js +0 -0
- package/{lib/components → components}/cta/Button/getButtonStyle.d.ts +0 -0
- package/{lib/components → components}/cta/Button/getButtonStyle.js +0 -0
- package/{lib/components → components}/cta/Button/index.d.ts +0 -0
- package/{lib/components → components}/cta/Button/index.js +0 -0
- package/{lib/components → components}/cta/Link/getLinkStyle.d.ts +0 -0
- package/{lib/components → components}/cta/Link/getLinkStyle.js +0 -0
- package/{lib/components → components}/cta/Link/index.d.ts +0 -0
- package/{lib/components → components}/cta/Link/index.js +0 -0
- package/{lib/components → components}/cta/getCtaStyle.d.ts +0 -0
- package/{lib/components → components}/cta/getCtaStyle.js +0 -0
- package/{lib/components → components}/cta/index.d.ts +0 -0
- package/{lib/components → components}/cta/index.js +0 -0
- package/{lib/components → components}/index.d.ts +2 -0
- package/{lib/components → components}/index.js +2 -0
- package/{lib/components → components}/message/Alert/index.d.ts +0 -0
- package/{lib/components → components}/message/Alert/index.js +0 -0
- package/{lib/components → components}/message/Log/Brackets.d.ts +0 -0
- package/{lib/components → components}/message/Log/Brackets.js +0 -0
- package/{lib/components → components}/message/Log/index.d.ts +0 -0
- package/{lib/components → components}/message/Log/index.js +0 -0
- package/{lib/components → components}/message/Notification/index.d.ts +0 -0
- package/{lib/components → components}/message/Notification/index.js +0 -0
- package/{lib/components → components}/message/index.d.ts +0 -0
- package/{lib/components → components}/message/index.js +0 -0
- package/{lib/components → components}/styled.d.ts +0 -0
- package/{lib/components → components}/styled.js +1 -4
- package/{lib/components → components}/tags/Badge/index.d.ts +0 -0
- package/{lib/components → components}/tags/Badge/index.js +0 -0
- package/{lib/components → components}/tags/Tag/index.d.ts +0 -0
- package/{lib/components → components}/tags/Tag/index.js +0 -0
- package/{lib/components → components}/tags/index.d.ts +0 -0
- package/{lib/components → components}/tags/index.js +0 -0
- package/{lib/components → components}/transitions/Fade.d.ts +0 -1
- package/{lib/components → components}/transitions/Fade.js +0 -0
- package/{lib/components → components}/transitions/Slide.d.ts +0 -1
- package/{lib/components → components}/transitions/Slide.js +0 -0
- package/{lib/components → components}/transitions/Transition.d.ts +0 -1
- package/{lib/components → components}/transitions/Transition.js +0 -0
- package/{lib/components → components}/transitions/index.d.ts +0 -0
- package/{lib/components → components}/transitions/index.js +0 -0
- package/{lib/components → components}/transitions/types.d.ts +0 -0
- package/{lib/components → components}/transitions/types.js +0 -0
- package/{lib/helpers → helpers}/getDeviceSize.d.ts +0 -0
- package/{lib/helpers → helpers}/getDeviceSize.js +0 -0
- package/{lib/icons → icons}/BracketLeft.d.ts +0 -0
- package/{lib/icons → icons}/BracketLeft.js +0 -0
- package/{lib/icons → icons}/BracketRight.d.ts +0 -0
- package/{lib/icons → icons}/BracketRight.js +0 -0
- package/{lib/icons → icons}/Close.d.ts +0 -0
- package/{lib/icons → icons}/Close.js +0 -0
- package/{lib/icons → icons}/Info.d.ts +0 -0
- package/{lib/icons → icons}/Info.js +0 -0
- package/{lib/index.d.ts → index.d.ts} +0 -0
- package/{lib/index.js → index.js} +0 -0
- package/package.json +16 -121
- package/{lib/styles → styles}/InvertTheme.d.ts +0 -0
- package/{lib/styles → styles}/InvertTheme.js +0 -0
- package/{lib/styles → styles}/StyleProvider.d.ts +0 -0
- package/{lib/styles → styles}/StyleProvider.js +0 -0
- package/{lib/styles → styles}/helpers.d.ts +0 -0
- package/{lib/styles → styles}/helpers.js +0 -0
- package/{lib/styles → styles}/index.d.ts +0 -0
- package/{lib/styles → styles}/index.js +0 -0
- package/{lib/styles → styles}/theme.d.ts +0 -0
- package/{lib/styles → styles}/theme.js +0 -0
- package/lib/components/chart/index.d.ts +0 -11
- package/lib/components/chart/index.js +0 -59
- package/lib/components/chart/types.d.ts +0 -6
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/
|
|
90
|
-
"Inter-Medium": require("@ledgerhq/native-ui/
|
|
91
|
-
"Inter-SemiBold": require("@ledgerhq/native-ui/
|
|
92
|
-
"Inter-Bold": require("@ledgerhq/native-ui/
|
|
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"),
|
|
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/
|
|
111
|
-
"node_modules/@ledgerhq/native-ui/
|
|
110
|
+
"node_modules/@ledgerhq/native-ui/assets/fonts/alpha",
|
|
111
|
+
"node_modules/@ledgerhq/native-ui/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/
|
|
142
|
-
"Inter-Medium": require("@ledgerhq/native-ui/
|
|
143
|
-
"Inter-SemiBold": require("@ledgerhq/native-ui/
|
|
144
|
-
"Inter-Bold": require("@ledgerhq/native-ui/
|
|
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"),
|
|
145
145
|
});
|
|
146
146
|
|
|
147
147
|
if (!fontsLoaded) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const ChartCard: ({ Header, Footer, range, isLoading, refreshChart, chartData, currencyColor, margin, locale, ranges, yAxisFormatter, valueFormatter, }: {
|
|
3
|
+
Header?: React.ReactNode;
|
|
4
|
+
Footer?: React.ReactNode;
|
|
5
|
+
range: string;
|
|
6
|
+
isLoading?: boolean | undefined;
|
|
7
|
+
refreshChart: (request: any) => void;
|
|
8
|
+
chartData: any;
|
|
9
|
+
currencyColor: string;
|
|
10
|
+
margin: number;
|
|
11
|
+
locale: string;
|
|
12
|
+
ranges: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
16
|
+
yAxisFormatter: (value: number) => string;
|
|
17
|
+
valueFormatter: (value: number) => string;
|
|
18
|
+
}) => JSX.Element;
|
|
19
|
+
export default ChartCard;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React, { useCallback, useMemo } from "react";
|
|
2
|
+
import { useTheme } from "styled-components/native";
|
|
3
|
+
import { Flex, GraphTabs, InfiniteLoader } from "../index";
|
|
4
|
+
import * as Animatable from "react-native-animatable";
|
|
5
|
+
import Chart from "../chart";
|
|
6
|
+
const ChartCard = ({ Header, Footer, range, isLoading, refreshChart, chartData, currencyColor, margin = 0, locale, ranges, yAxisFormatter, valueFormatter, }) => {
|
|
7
|
+
const { colors } = useTheme();
|
|
8
|
+
const rangesLabels = ranges.map(({ label }) => label);
|
|
9
|
+
const activeRangeIndex = ranges.findIndex((r) => r.value === range);
|
|
10
|
+
const setRange = useCallback((index) => {
|
|
11
|
+
var _a;
|
|
12
|
+
if (isLoading)
|
|
13
|
+
return;
|
|
14
|
+
const newRange = (_a = ranges[index]) === null || _a === void 0 ? void 0 : _a.value;
|
|
15
|
+
if (range !== newRange)
|
|
16
|
+
refreshChart({ range: newRange });
|
|
17
|
+
}, [isLoading, range, ranges, refreshChart]);
|
|
18
|
+
const timeFormat = useMemo(() => {
|
|
19
|
+
switch (ranges[activeRangeIndex].value) {
|
|
20
|
+
case "24h":
|
|
21
|
+
return { hour: "numeric", minute: "numeric" };
|
|
22
|
+
case "7d":
|
|
23
|
+
return { weekday: "short" };
|
|
24
|
+
case "30d":
|
|
25
|
+
return { month: "short", day: "numeric" };
|
|
26
|
+
default:
|
|
27
|
+
return { month: "short" };
|
|
28
|
+
}
|
|
29
|
+
}, [ranges, activeRangeIndex]);
|
|
30
|
+
return (React.createElement(Flex, { margin: margin, padding: 6, borderRadius: 2, bg: "neutral.c30" },
|
|
31
|
+
Header,
|
|
32
|
+
React.createElement(Flex, { mt: 6, height: 100, alignItems: "center", justifyContent: "center" }, chartData && chartData.length > 0 ? (React.createElement(Animatable.View, { animation: "fadeIn", duration: 400, useNativeDriver: true },
|
|
33
|
+
React.createElement(Chart, { locale: locale, data: chartData, backgroundColor: colors.neutral.c30, color: currencyColor, timeFormat: timeFormat, valueKey: "value", yAxisFormatter: yAxisFormatter, valueFormatter: valueFormatter, disableTooltips: false }))) : (React.createElement(InfiniteLoader, { size: 32 }))),
|
|
34
|
+
React.createElement(Flex, { mt: 70 },
|
|
35
|
+
React.createElement(GraphTabs, { activeIndex: activeRangeIndex, activeBg: "neutral.c30", onChange: setRange, labels: rangesLabels })),
|
|
36
|
+
Footer));
|
|
37
|
+
};
|
|
38
|
+
export default ChartCard;
|
|
File without changes
|
|
@@ -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>>,
|
|
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>> & {
|
|
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
|
-
}, "
|
|
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>>,
|
|
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>> & {
|
|
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
|
-
}, "
|
|
73
|
+
}, "pr" | "alignItems" | "flexDirection">;
|
|
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
|
/**
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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>>,
|
|
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>> & {
|
|
4
4
|
columnGap?: string | number | undefined;
|
|
5
5
|
rowGap?: string | number | undefined;
|
|
6
6
|
color?: string | undefined;
|
|
File without changes
|
|
File without changes
|
|
@@ -11,7 +11,6 @@ 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
|
|
15
14
|
maxHeight: withTiming(animationHeight.value, config),
|
|
16
15
|
};
|
|
17
16
|
});
|
|
@@ -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>>,
|
|
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>> & {
|
|
5
5
|
columnGap?: string | number | undefined;
|
|
6
6
|
rowGap?: string | number | undefined;
|
|
7
7
|
color?: string | undefined;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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<
|
|
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>;
|
|
5
5
|
export declare type Props = React.ComponentProps<typeof Loader> & {
|
|
6
6
|
color?: string;
|
|
7
7
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -37,7 +37,6 @@ 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
|
|
41
40
|
width: withTiming(activeSize.value, config),
|
|
42
41
|
}));
|
|
43
42
|
return (React.createElement(Container, null,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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>>,
|
|
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>> & {
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Item } from "./types";
|
|
2
|
+
export declare type ChartProps = {
|
|
3
|
+
data: Array<Item>;
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
color: string;
|
|
6
|
+
timeFormat?: any;
|
|
7
|
+
valueKey?: string;
|
|
8
|
+
height?: number;
|
|
9
|
+
yAxisFormatter: (n: number) => string;
|
|
10
|
+
valueFormatter: (n: number) => string;
|
|
11
|
+
disableTooltips: boolean;
|
|
12
|
+
locale: string;
|
|
13
|
+
};
|
|
14
|
+
declare const Chart: ({ data, backgroundColor, color, timeFormat, valueKey, height, yAxisFormatter, valueFormatter, disableTooltips, locale, }: ChartProps) => JSX.Element;
|
|
15
|
+
export default Chart;
|