@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.
- package/dist/components/UXModal/index.js +1 -2
- package/dist/components/input/input.js +0 -1
- package/dist/components/input/number-input.js +0 -1
- package/dist/components/input/styles.d.ts +1 -0
- package/dist/components/input/styles.js +1 -0
- package/dist/config/config.default.js +2 -1
- package/dist/config/config.ux.js +2 -1
- package/dist/icons/CloseIcon.d.ts +2 -2
- package/dist/icons/CloseIcon.js +2 -2
- package/dist/types/theme.d.ts +2 -1
- package/package.json +2 -2
|
@@ -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:
|
|
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,
|
package/dist/config/config.ux.js
CHANGED
package/dist/icons/CloseIcon.js
CHANGED
|
@@ -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
|
|
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 =
|
|
20
|
+
const CloseIcon = CloseIcon_CloseIcon;
|
|
21
21
|
export { CloseIcon as default };
|
package/dist/types/theme.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
48
|
+
"@particle-network/icons": "0.0.17"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@babel/core": "^7.24.0",
|