@nativetail/ui 0.3.3 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nativetail/ui",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.5",
|
4
4
|
"description": "",
|
5
5
|
"main": "src/index.ts",
|
6
6
|
"scripts": {},
|
@@ -32,7 +32,7 @@
|
|
32
32
|
"moti": "^0.29.0",
|
33
33
|
"react": "18.2.0",
|
34
34
|
"react-hook-form": "^7.51.0",
|
35
|
-
"react-native": "0.
|
35
|
+
"react-native": "0.74.2",
|
36
36
|
"react-native-actions-sheet": "^0.9.6",
|
37
37
|
"react-native-circular-progress-indicator": "^4.4.2",
|
38
38
|
"react-native-gesture-handler": "^2.17.1",
|
@@ -1,11 +1,9 @@
|
|
1
1
|
import React, { useMemo } from "react";
|
2
2
|
|
3
3
|
import {
|
4
|
-
ActivityIndicator,
|
5
4
|
cn,
|
6
5
|
ConfigVariants,
|
7
6
|
cva,
|
8
|
-
mergeClasses,
|
9
7
|
Pressable,
|
10
8
|
separateClasses,
|
11
9
|
useColor,
|
@@ -13,6 +11,7 @@ import {
|
|
13
11
|
VariantProps,
|
14
12
|
} from "@nativetail/core";
|
15
13
|
import { MotiPressableProps } from "moti/interactions";
|
14
|
+
import { ActivityIndicator } from "react-native";
|
16
15
|
import { useComponentTheme } from "../../utils/component-theme";
|
17
16
|
|
18
17
|
const buttonVariants = cva(
|
@@ -140,11 +139,11 @@ const Button = (passedProps: ButtonProps) => {
|
|
140
139
|
{leftElement}
|
141
140
|
{loading && (
|
142
141
|
<ActivityIndicator
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
)}
|
142
|
+
style={{
|
143
|
+
marginRight: 8,
|
144
|
+
}}
|
145
|
+
size="small"
|
146
|
+
color={useColor("primary-foreground")}
|
148
147
|
/>
|
149
148
|
)}
|
150
149
|
{children}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { cn, useColor } from "@nativetail/core";
|
2
2
|
import { forwardRef } from "react";
|
3
|
+
import { ActivityIndicator } from "react-native";
|
3
4
|
import { Dialog, DialogMethods, DialogProps } from "../dialog";
|
4
5
|
|
5
6
|
export type LoaderProps = Omit<DialogProps, "children"> & {
|