@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",
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.73.6",
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
- className={mergeClasses(
144
- "mr-2 h-5 w-5 text-primary-foreground ",
145
- textClasses,
146
- loadingIndicatorClassName
147
- )}
142
+ style={{
143
+ marginRight: 8,
144
+ }}
145
+ size="small"
146
+ color={useColor("primary-foreground")}
148
147
  />
149
148
  )}
150
149
  {children}
@@ -114,9 +114,7 @@ const DropdownTrigger = ({
114
114
  }
115
115
  }, [H, W]);
116
116
  const handlePress = useCallback(() => {
117
- if (__DEV__) {
118
- _measure();
119
- }
117
+ _measure();
120
118
  toggle();
121
119
  }, [toggle, _measure]);
122
120
 
@@ -1,5 +1,6 @@
1
- import { ActivityIndicator, cn, useColor } from "@nativetail/core";
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"> & {