@particle-network/ui-native 0.0.30 → 0.0.32

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.
@@ -3,7 +3,6 @@ import react, { forwardRef, useCallback, useEffect, useMemo, useRef, useState }
3
3
  import { Animated, Dimensions, PanResponder, Platform, ScrollView, StyleSheet } from "react-native";
4
4
  import { Modal, Portal } from "react-native-paper";
5
5
  import { useSafeAreaInsets } from "react-native-safe-area-context";
6
- import { setColorWithOpacity } from "@particle-network/ui-shared";
7
6
  import { useColors, useComponentConfig, useKeyboard, useMs } from "../../hooks/index.js";
8
7
  import { Box } from "../layout/Box/index.js";
9
8
  import { Circle } from "../layout/Circle.js";
@@ -219,7 +218,7 @@ const UXModal = /*#__PURE__*/ forwardRef((props, scrollViewRef)=>{
219
218
  ],
220
219
  theme: {
221
220
  colors: {
222
- backdrop: setColorWithOpacity(getColor('bg-200') ?? '#000000', 0.7)
221
+ backdrop: getColor(modalConfig.backdrop, 0.7)
223
222
  }
224
223
  },
225
224
  visible: isOpen,
@@ -141,7 +141,6 @@ const UXInput = /*#__PURE__*/ forwardRef((props, ref)=>{
141
141
  ...restProps
142
142
  }),
143
143
  isClearable && !!internalValue && !isDisabled && !isReadOnly && /*#__PURE__*/ jsx(UXPressable, {
144
- p: 4,
145
144
  onPress: handleClear,
146
145
  children: /*#__PURE__*/ jsx(CloseIcon, {
147
146
  style: styles.clearButton
@@ -235,7 +235,6 @@ const UXNumberInput = /*#__PURE__*/ forwardRef((props, ref)=>{
235
235
  ...restProps
236
236
  }),
237
237
  isClearable && !isNaN(internalValue) && !isDisabled && !isReadOnly && /*#__PURE__*/ jsx(UXPressable, {
238
- p: 4,
239
238
  onPress: handleClear,
240
239
  children: /*#__PURE__*/ jsx(CloseIcon, {
241
240
  style: styles.clearButton,
@@ -15,6 +15,7 @@ export declare const useStyles: (props: UseStylesProps) => {
15
15
  opacity: number;
16
16
  };
17
17
  input: {
18
+ height: "100%";
18
19
  flex: number;
19
20
  paddingTop: number;
20
21
  paddingBottom: number;
@@ -90,6 +90,7 @@ const useStyles = (props)=>{
90
90
  opacity: isDisabled ? disabledOpacity : 1
91
91
  },
92
92
  input: {
93
+ height: '100%',
93
94
  flex: 1,
94
95
  paddingTop: 0,
95
96
  paddingBottom: 0,
@@ -36,7 +36,8 @@ const defaultComponentConfig = {
36
36
  }
37
37
  },
38
38
  modal: {
39
- radius: 24
39
+ radius: 24,
40
+ backdrop: 'bg-default'
40
41
  },
41
42
  tabs: {
42
43
  defaultProps: {},
@@ -40,7 +40,8 @@ const uxComponentConfig = {
40
40
  }
41
41
  },
42
42
  modal: {
43
- radius: 34
43
+ radius: 34,
44
+ backdrop: 'bg-200'
44
45
  },
45
46
  tabs: {
46
47
  defaultProps: {
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { IconProps } from './types';
3
- declare const DotIcon: React.FC<IconProps>;
4
- export default DotIcon;
3
+ declare const CloseIcon: React.FC<IconProps>;
4
+ export default CloseIcon;
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import react_native_svg, { Path } from "react-native-svg";
4
4
  import { useColors } from "../hooks/index.js";
5
- const DotIcon = ({ size = 16, color = 'default', ...props })=>{
5
+ const CloseIcon_CloseIcon = ({ size = 16, color = 'default', ...props })=>{
6
6
  const { getColor } = useColors();
7
7
  const colorValue = getColor(color);
8
8
  return /*#__PURE__*/ jsx(react_native_svg, {
@@ -17,5 +17,5 @@ const DotIcon = ({ size = 16, color = 'default', ...props })=>{
17
17
  })
18
18
  });
19
19
  };
20
- const CloseIcon = DotIcon;
20
+ const CloseIcon = CloseIcon_CloseIcon;
21
21
  export { CloseIcon as default };
@@ -1,4 +1,4 @@
1
- import type { DynamicColors, RadiusScale, SpacingScale, ThemeColors, UXRadius } from '@particle-network/ui-shared';
1
+ import type { DynamicColors, RadiusScale, SpacingScale, ThemeColors, UXColor, UXRadius } from '@particle-network/ui-shared';
2
2
  export type ThemeMode = 'light' | 'dark';
3
3
  export interface CommonComponentConfig {
4
4
  defaultProps?: {
@@ -24,6 +24,7 @@ export interface ComponentConfig {
24
24
  input: Omit<CommonComponentConfig, 'color'>;
25
25
  modal: {
26
26
  radius: number;
27
+ backdrop: UXColor;
27
28
  };
28
29
  tabs: Pick<CommonComponentConfig, 'defaultProps' | 'fontSize'>;
29
30
  chip: Pick<CommonComponentConfig, 'defaultProps'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-native",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "license": "MIT",
5
5
  "main": "./entry.js",
6
6
  "react-native": "./dist/index.js",
@@ -45,7 +45,7 @@
45
45
  "react-native-size-matters": "^0.4.2",
46
46
  "react-native-toast-message": "^2.3.3",
47
47
  "@particle-network/ui-shared": "0.0.7",
48
- "@particle-network/icons": "0.0.16"
48
+ "@particle-network/icons": "0.0.17"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@babel/core": "^7.24.0",