@ledgerhq/native-ui 0.7.2 → 0.7.4-monorepo.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/{assets → lib/assets}/fonts/alpha/HMAlphaMono-Medium.otf +0 -0
- package/{assets → lib/assets}/fonts/inter/Inter-Bold.otf +0 -0
- package/{assets → lib/assets}/fonts/inter/Inter-Medium.otf +0 -0
- package/{assets → lib/assets}/fonts/inter/Inter-SemiBold.otf +0 -0
- package/{assets → lib/assets}/icons.d.ts +0 -0
- package/{assets → lib/assets}/icons.js +0 -0
- package/{assets → lib/assets}/index.d.ts +0 -0
- package/{assets → lib/assets}/index.js +0 -0
- package/{assets → lib/assets}/logos/LedgerLiveAltRegular.d.ts +1 -0
- package/{assets → lib/assets}/logos/LedgerLiveAltRegular.js +0 -0
- package/{assets → lib/assets}/logos/LedgerLiveRegular.d.ts +1 -0
- package/{assets → lib/assets}/logos/LedgerLiveRegular.js +0 -0
- package/{assets → lib/assets}/logos/index.d.ts +0 -0
- package/{assets → lib/assets}/logos/index.js +0 -0
- package/{components → lib/components}/Carousel/index.d.ts +0 -0
- package/{components → lib/components}/Carousel/index.js +0 -0
- package/{components → lib/components}/Form/Checkbox/index.d.ts +1 -0
- package/{components → lib/components}/Form/Checkbox/index.js +0 -0
- package/{components → lib/components}/Form/Input/BaseInput/index.d.ts +4 -4
- package/{components → lib/components}/Form/Input/BaseInput/index.js +0 -0
- package/{components → lib/components}/Form/Input/LegendInput/index.d.ts +0 -0
- package/{components → lib/components}/Form/Input/LegendInput/index.js +0 -0
- package/{components → lib/components}/Form/Input/NumberInput/index.d.ts +0 -0
- package/{components → lib/components}/Form/Input/NumberInput/index.js +0 -0
- package/{components → lib/components}/Form/Input/QrCodeInput/index.d.ts +0 -0
- package/{components → lib/components}/Form/Input/QrCodeInput/index.js +0 -0
- package/{components → lib/components}/Form/Input/SearchInput/index.d.ts +0 -0
- package/{components → lib/components}/Form/Input/SearchInput/index.js +0 -0
- package/{components → lib/components}/Form/Input/index.d.ts +0 -0
- package/{components → lib/components}/Form/Input/index.js +0 -0
- package/{components → lib/components}/Form/SelectableList.d.ts +0 -0
- package/{components → lib/components}/Form/SelectableList.js +0 -0
- package/{components → lib/components}/Form/Slider/components.d.ts +0 -0
- package/{components → lib/components}/Form/Slider/components.js +0 -0
- package/{components → lib/components}/Form/Slider/index.d.ts +1 -0
- package/{components → lib/components}/Form/Slider/index.js +0 -0
- package/{components → lib/components}/Form/Slider/index.native.d.ts +1 -0
- package/{components → lib/components}/Form/Slider/index.native.js +0 -0
- package/{components → lib/components}/Form/Switch/index.d.ts +1 -0
- package/{components → lib/components}/Form/Switch/index.js +0 -0
- package/{components → lib/components}/Form/Toggle/index.d.ts +1 -0
- package/{components → lib/components}/Form/Toggle/index.js +0 -0
- package/{components → lib/components}/Form/index.d.ts +0 -0
- package/{components → lib/components}/Form/index.js +0 -0
- package/{components → lib/components}/Icon/BoxedIcon.d.ts +1 -0
- package/{components → lib/components}/Icon/BoxedIcon.js +0 -0
- package/{components → lib/components}/Icon/Icon.d.ts +1 -0
- package/{components → lib/components}/Icon/Icon.js +0 -0
- package/{components → lib/components}/Icon/IconBox/index.d.ts +0 -0
- package/{components → lib/components}/Icon/IconBox/index.js +0 -0
- package/{components → lib/components}/Icon/index.d.ts +0 -0
- package/{components → lib/components}/Icon/index.js +0 -0
- package/{components → lib/components}/Icon/type.d.ts +0 -0
- package/{components → lib/components}/Icon/type.js +0 -0
- package/{components → lib/components}/Layout/Box/index.d.ts +1 -1
- package/{components → lib/components}/Layout/Box/index.js +0 -0
- package/{components → lib/components}/Layout/Collapse/Accordion/index.d.ts +0 -0
- package/{components → lib/components}/Layout/Collapse/Accordion/index.js +1 -0
- package/{components → lib/components}/Layout/Flex/index.d.ts +1 -1
- package/{components → lib/components}/Layout/Flex/index.js +0 -0
- package/{components → lib/components}/Layout/List/IconBoxList/index.d.ts +0 -0
- package/{components → lib/components}/Layout/List/IconBoxList/index.js +0 -0
- package/{components → lib/components}/Layout/List/List/index.d.ts +0 -0
- package/{components → lib/components}/Layout/List/List/index.js +0 -0
- package/{components → lib/components}/Layout/List/NumberedList/index.d.ts +0 -0
- package/{components → lib/components}/Layout/List/NumberedList/index.js +0 -0
- package/{components → lib/components}/Layout/List/TipList/index.d.ts +0 -0
- package/{components → lib/components}/Layout/List/TipList/index.js +0 -0
- package/{components → lib/components}/Layout/List/index.d.ts +0 -0
- package/{components → lib/components}/Layout/List/index.js +0 -0
- package/{components → lib/components}/Layout/Modals/BaseModal/index.d.ts +3 -1
- package/{components → lib/components}/Layout/Modals/BaseModal/index.js +13 -13
- package/{components → lib/components}/Layout/Modals/BottomDrawer/index.d.ts +0 -0
- package/{components → lib/components}/Layout/Modals/BottomDrawer/index.js +0 -0
- package/{components → lib/components}/Layout/Modals/Popin/index.d.ts +0 -0
- package/{components → lib/components}/Layout/Modals/Popin/index.js +0 -0
- package/{components → lib/components}/Layout/Modals/Tooltip/index.d.ts +0 -0
- package/{components → lib/components}/Layout/Modals/Tooltip/index.js +0 -0
- package/{components → lib/components}/Layout/Modals/index.d.ts +0 -0
- package/{components → lib/components}/Layout/Modals/index.js +0 -0
- package/{components → lib/components}/Layout/ScrollContainer/index.d.ts +0 -0
- package/{components → lib/components}/Layout/ScrollContainer/index.js +0 -0
- package/{components → lib/components}/Layout/ScrollContainerHeader/Header.d.ts +1 -0
- package/{components → lib/components}/Layout/ScrollContainerHeader/Header.js +0 -0
- package/{components → lib/components}/Layout/ScrollContainerHeader/index.d.ts +0 -0
- package/{components → lib/components}/Layout/ScrollContainerHeader/index.js +0 -0
- package/{components → lib/components}/Layout/ScrollListContainer/index.d.ts +0 -0
- package/{components → lib/components}/Layout/ScrollListContainer/index.js +0 -0
- package/{components → lib/components}/Layout/Table/Row.d.ts +0 -0
- package/{components → lib/components}/Layout/Table/Row.js +0 -0
- package/{components → lib/components}/Layout/index.d.ts +0 -0
- package/{components → lib/components}/Layout/index.js +0 -0
- package/{components → lib/components}/Layout/types.d.ts +0 -0
- package/{components → lib/components}/Layout/types.js +0 -0
- package/{components → lib/components}/Loader/InfiniteLoader/index.d.ts +1 -1
- package/{components → lib/components}/Loader/InfiniteLoader/index.js +0 -0
- package/lib/components/Loader/ProgressLoader/index.d.ts +17 -0
- package/{components → lib/components}/Loader/ProgressLoader/index.js +7 -7
- package/{components → lib/components}/Loader/index.d.ts +0 -0
- package/{components → lib/components}/Loader/index.js +0 -0
- package/{components → lib/components}/Navigation/FlowStepper/index.d.ts +0 -0
- package/{components → lib/components}/Navigation/FlowStepper/index.js +0 -0
- package/{components → lib/components}/Navigation/SlideIndicator/index.d.ts +0 -0
- package/{components → lib/components}/Navigation/SlideIndicator/index.js +1 -0
- package/{components → lib/components}/Navigation/Stepper/index.d.ts +0 -0
- package/{components → lib/components}/Navigation/Stepper/index.js +0 -0
- package/{components → lib/components}/Navigation/index.d.ts +0 -0
- package/{components → lib/components}/Navigation/index.js +0 -0
- package/{components → lib/components}/ProgressBar/index.d.ts +0 -0
- package/{components → lib/components}/ProgressBar/index.js +0 -0
- package/{components → lib/components}/Tabs/Chip/index.d.ts +0 -0
- package/{components → lib/components}/Tabs/Chip/index.js +0 -0
- package/{components → lib/components}/Tabs/Graph/index.d.ts +0 -0
- package/{components → lib/components}/Tabs/Graph/index.js +0 -0
- package/{components → lib/components}/Tabs/TemplateTabs/index.d.ts +1 -1
- package/{components → lib/components}/Tabs/TemplateTabs/index.js +0 -0
- package/{components → lib/components}/Tabs/index.d.ts +0 -0
- package/{components → lib/components}/Tabs/index.js +0 -0
- package/{components → lib/components}/Text/getTextStyle.d.ts +0 -0
- package/{components → lib/components}/Text/getTextStyle.js +0 -0
- package/{components → lib/components}/Text/index.d.ts +0 -0
- package/{components → lib/components}/Text/index.js +0 -0
- package/{components → lib/components}/chart/index.d.ts +1 -0
- package/{components → lib/components}/chart/index.js +0 -0
- package/{components → lib/components}/chart/types.d.ts +0 -0
- package/{components → lib/components}/chart/types.js +0 -0
- package/{components → lib/components}/cta/Button/getButtonStyle.d.ts +0 -0
- package/{components → lib/components}/cta/Button/getButtonStyle.js +0 -0
- package/{components → lib/components}/cta/Button/index.d.ts +0 -0
- package/{components → lib/components}/cta/Button/index.js +4 -4
- package/{components → lib/components}/cta/Link/getLinkStyle.d.ts +0 -0
- package/{components → lib/components}/cta/Link/getLinkStyle.js +0 -0
- package/{components → lib/components}/cta/Link/index.d.ts +0 -0
- package/{components → lib/components}/cta/Link/index.js +0 -0
- package/{components → lib/components}/cta/getCtaStyle.d.ts +0 -0
- package/{components → lib/components}/cta/getCtaStyle.js +0 -0
- package/{components → lib/components}/cta/index.d.ts +0 -0
- package/{components → lib/components}/cta/index.js +0 -0
- package/{components → lib/components}/index.d.ts +0 -0
- package/{components → lib/components}/index.js +0 -0
- package/lib/components/message/Alert/index.d.ts +27 -0
- package/{components → lib/components}/message/Alert/index.js +7 -5
- package/lib/components/message/Log/Brackets.d.ts +15 -0
- package/lib/components/message/Log/Brackets.js +29 -0
- package/lib/components/message/Log/index.d.ts +9 -0
- package/lib/components/message/Log/index.js +15 -0
- package/{components → lib/components}/message/Notification/index.d.ts +0 -0
- package/{components → lib/components}/message/Notification/index.js +0 -0
- package/{components → lib/components}/message/index.d.ts +1 -0
- package/{components → lib/components}/message/index.js +1 -0
- package/{components → lib/components}/styled.d.ts +0 -0
- package/{components → lib/components}/styled.js +4 -1
- package/{components → lib/components}/tags/Badge/index.d.ts +0 -0
- package/{components → lib/components}/tags/Badge/index.js +0 -0
- package/{components → lib/components}/tags/Tag/index.d.ts +0 -0
- package/{components → lib/components}/tags/Tag/index.js +0 -0
- package/{components → lib/components}/tags/index.d.ts +0 -0
- package/{components → lib/components}/tags/index.js +0 -0
- package/{components → lib/components}/transitions/Fade.d.ts +1 -0
- package/{components → lib/components}/transitions/Fade.js +0 -0
- package/{components → lib/components}/transitions/Slide.d.ts +1 -0
- package/{components → lib/components}/transitions/Slide.js +0 -0
- package/{components → lib/components}/transitions/Transition.d.ts +1 -0
- package/{components → lib/components}/transitions/Transition.js +0 -0
- package/{components → lib/components}/transitions/index.d.ts +0 -0
- package/{components → lib/components}/transitions/index.js +0 -0
- package/{components → lib/components}/transitions/types.d.ts +0 -0
- package/{components → lib/components}/transitions/types.js +0 -0
- package/{helpers → lib/helpers}/getDeviceSize.d.ts +0 -0
- package/{helpers → lib/helpers}/getDeviceSize.js +0 -0
- package/{icons → lib/icons}/BracketLeft.d.ts +0 -0
- package/{icons → lib/icons}/BracketLeft.js +0 -0
- package/{icons → lib/icons}/BracketRight.d.ts +0 -0
- package/{icons → lib/icons}/BracketRight.js +0 -0
- package/{icons → lib/icons}/Close.d.ts +0 -0
- package/{icons → lib/icons}/Close.js +0 -0
- package/{icons → lib/icons}/Info.d.ts +0 -0
- package/{icons → lib/icons}/Info.js +0 -0
- package/{index.d.ts → lib/index.d.ts} +0 -0
- package/{index.js → lib/index.js} +0 -0
- package/{styles → lib/styles}/InvertTheme.d.ts +0 -0
- package/{styles → lib/styles}/InvertTheme.js +0 -0
- package/{styles → lib/styles}/StyleProvider.d.ts +0 -0
- package/{styles → lib/styles}/StyleProvider.js +0 -0
- package/{styles → lib/styles}/helpers.d.ts +0 -0
- package/{styles → lib/styles}/helpers.js +0 -0
- package/{styles → lib/styles}/index.d.ts +0 -0
- package/{styles → lib/styles}/index.js +0 -0
- package/{styles → lib/styles}/theme.d.ts +0 -0
- package/{styles → lib/styles}/theme.js +0 -0
- package/package.json +121 -16
- package/components/Loader/ProgressLoader/index.d.ts +0 -13
- 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
|
|
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
|
|
@@ -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>>, 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
|
-
}, "
|
|
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
|
+
}, "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
|
-
}, "
|
|
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
|
/**
|
|
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>>, 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;
|
|
File without changes
|
|
File without changes
|
|
@@ -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>>,
|
|
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;
|
|
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
|
|
@@ -14,5 +14,7 @@ export declare type BaseModalProps = {
|
|
|
14
14
|
description?: string;
|
|
15
15
|
subtitle?: string;
|
|
16
16
|
children?: React.ReactNode;
|
|
17
|
+
noCloseButton?: boolean;
|
|
17
18
|
} & Partial<ModalProps>;
|
|
18
|
-
export
|
|
19
|
+
export declare function ModalHeader({ Icon, iconColor, title, description, subtitle, }: Pick<BaseModalProps, "Icon" | "iconColor" | "title" | "description" | "subtitle">): React.ReactElement | null;
|
|
20
|
+
export default function BaseModal({ isOpen, onClose, noCloseButton, containerStyle, modalStyle, preventBackdropClick, Icon, iconColor, title, description, subtitle, children, ...rest }: BaseModalProps): React.ReactElement;
|
|
@@ -29,11 +29,6 @@ const ContentContainer = styled.View `
|
|
|
29
29
|
flex-shrink: 1;
|
|
30
30
|
flex-grow: 1;
|
|
31
31
|
`;
|
|
32
|
-
const HeaderContainer = styled.View `
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
margin-bottom: ${(p) => p.theme.space[7]}px;
|
|
36
|
-
`;
|
|
37
32
|
const CloseContainer = styled.View `
|
|
38
33
|
display: flex;
|
|
39
34
|
align-items: flex-end;
|
|
@@ -54,8 +49,17 @@ const defaultModalStyle = {
|
|
|
54
49
|
flex: 1,
|
|
55
50
|
margin: 16,
|
|
56
51
|
};
|
|
52
|
+
export function ModalHeader({ Icon, iconColor, title, description, subtitle, }) {
|
|
53
|
+
if (!(Icon || subtitle || title || description))
|
|
54
|
+
return null;
|
|
55
|
+
return (React.createElement(Flex, { alignItems: "center", mb: 7 },
|
|
56
|
+
Icon && (React.createElement(Flex, { mb: 7 }, React.isValidElement(Icon) ? (Icon) : (React.createElement(BoxedIcon, { size: 64, Icon: Icon, iconSize: 24, iconColor: iconColor })))),
|
|
57
|
+
subtitle && React.createElement(StyledSubtitle, { textAlign: "center" }, subtitle),
|
|
58
|
+
title && React.createElement(StyledTitle, { textAlign: "center" }, title),
|
|
59
|
+
description && (React.createElement(Text, { variant: "body", color: "neutral.c70", textAlign: "center", mt: 6 }, description))));
|
|
60
|
+
}
|
|
57
61
|
export default function BaseModal(_a) {
|
|
58
|
-
var { isOpen, onClose = () => { }, containerStyle = {}, modalStyle = {}, preventBackdropClick, Icon, iconColor, title, description, subtitle, children } = _a, rest = __rest(_a, ["isOpen", "onClose", "containerStyle", "modalStyle", "preventBackdropClick", "Icon", "iconColor", "title", "description", "subtitle", "children"]);
|
|
62
|
+
var { isOpen, onClose = () => { }, noCloseButton, containerStyle = {}, modalStyle = {}, preventBackdropClick, Icon, iconColor, title, description, subtitle, children } = _a, rest = __rest(_a, ["isOpen", "onClose", "noCloseButton", "containerStyle", "modalStyle", "preventBackdropClick", "Icon", "iconColor", "title", "description", "subtitle", "children"]);
|
|
59
63
|
const backDropProps = preventBackdropClick
|
|
60
64
|
? {}
|
|
61
65
|
: {
|
|
@@ -65,12 +69,8 @@ export default function BaseModal(_a) {
|
|
|
65
69
|
};
|
|
66
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] }),
|
|
67
71
|
React.createElement(Container, { style: containerStyle },
|
|
68
|
-
React.createElement(CloseContainer, null,
|
|
69
|
-
React.createElement(Link, { Icon: CloseMedium, onPress: onClose })),
|
|
70
|
-
React.createElement(
|
|
71
|
-
Icon && (React.createElement(Flex, { mb: 7 }, React.isValidElement(Icon) ? (Icon) : (React.createElement(BoxedIcon, { size: 64, Icon: Icon, iconSize: 24, iconColor: iconColor })))),
|
|
72
|
-
subtitle && React.createElement(StyledSubtitle, { textAlign: "center" }, subtitle),
|
|
73
|
-
title && React.createElement(StyledTitle, { textAlign: "center" }, title),
|
|
74
|
-
description && (React.createElement(Text, { variant: "body", color: "neutral.c70", textAlign: "center", mt: 6 }, description))),
|
|
72
|
+
!noCloseButton && (React.createElement(CloseContainer, null,
|
|
73
|
+
React.createElement(Link, { Icon: CloseMedium, onPress: onClose }))),
|
|
74
|
+
React.createElement(ModalHeader, { Icon: Icon, iconColor: iconColor, title: title, description: description, subtitle: subtitle }),
|
|
75
75
|
React.createElement(ContentContainer, null, children))));
|
|
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
|
|
@@ -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<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
|
};
|
|
File without changes
|
|
@@ -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.
|
|
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
|
|
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:
|
|
36
|
-
React.createElement(Circle, { cx: radius, cy: radius, fill: "transparent", r:
|
|
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:
|
|
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:
|
|
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
|
|
File without changes
|
|
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,
|
|
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>>, 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
|