@nativetail/ui 0.3.4 → 0.3.6
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/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
            	"name": "@nativetail/ui",
         | 
| 3 | 
            -
            	"version": "0.3. | 
| 3 | 
            +
            	"version": "0.3.6",
         | 
| 4 4 | 
             
            	"description": "",
         | 
| 5 5 | 
             
            	"main": "src/index.ts",
         | 
| 6 6 | 
             
            	"scripts": {},
         | 
| @@ -24,7 +24,7 @@ | |
| 24 24 | 
             
            	},
         | 
| 25 25 | 
             
            	"dependencies": {
         | 
| 26 26 | 
             
            		"@hookform/resolvers": "^3.6.0",
         | 
| 27 | 
            -
            		"@nativetail/core": "^0.0. | 
| 27 | 
            +
            		"@nativetail/core": "^0.0.9",
         | 
| 28 28 | 
             
            		"@shopify/flash-list": "^1.7.1",
         | 
| 29 29 | 
             
            		"countries-list": "^3.1.0",
         | 
| 30 30 | 
             
            		"expo-linear-gradient": "~13.0.2",
         | 
| @@ -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"> & {
         |