@particle-network/ui-native 0.5.1-beta.6 → 0.5.1-beta.8

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.
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import type { IconProps } from '../../icons/types';
2
+ import CircleQuestionIcon from '@particle-network/icons/native/CircleQuestionIcon';
3
3
  import type { SquareProps } from '../layout/Square';
4
4
  import { type UXTooltipProps } from '../UXTooltip';
5
5
  export type UXHintProps = UXTooltipProps & {
6
6
  style?: SquareProps['style'];
7
- iconStyle?: IconProps['style'];
7
+ iconStyle?: React.ComponentProps<typeof CircleQuestionIcon>['style'];
8
+ iconColor?: React.ComponentProps<typeof CircleQuestionIcon>['color'];
8
9
  };
9
10
  export declare const UXHint: React.FC<UXHintProps>;
@@ -1,11 +1,11 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import "react";
3
+ import CircleQuestionIcon from "@particle-network/icons/native/CircleQuestionIcon";
3
4
  import { useMs } from "../../hooks/index.js";
4
- import { Icon } from "../../icons/index.js";
5
5
  import { Square } from "../layout/Square.js";
6
6
  import { UXTooltip } from "../UXTooltip/index.js";
7
7
  const UXHint = (props)=>{
8
- const { content, children, iconStyle, style, ...restProps } = props;
8
+ const { content, children, iconStyle, iconColor = 'secondary', style, ...restProps } = props;
9
9
  const { ms } = useMs();
10
10
  return /*#__PURE__*/ jsx(UXTooltip, {
11
11
  content: content || children,
@@ -14,9 +14,8 @@ const UXHint = (props)=>{
14
14
  center: true,
15
15
  size: 16,
16
16
  style: style,
17
- children: /*#__PURE__*/ jsx(Icon, {
18
- name: "question",
19
- color: "secondary",
17
+ children: /*#__PURE__*/ jsx(CircleQuestionIcon, {
18
+ color: iconColor,
20
19
  size: ms(14),
21
20
  style: iconStyle
22
21
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-native",
3
- "version": "0.5.1-beta.6",
3
+ "version": "0.5.1-beta.8",
4
4
  "main": "./entry.js",
5
5
  "react-native": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -45,8 +45,8 @@
45
45
  "react-native-size-matters": "^0.4.2",
46
46
  "react-native-toast-message": "^2.3.3",
47
47
  "react-native-worklets": "0.5.1",
48
- "@particle-network/ui-shared": "0.4.1-beta.4",
49
- "@particle-network/icons": "0.5.1-beta.5"
48
+ "@particle-network/icons": "0.5.1-beta.6",
49
+ "@particle-network/ui-shared": "0.4.1-beta.5"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@babel/core": "^7.24.0",
@@ -90,8 +90,8 @@
90
90
  "vite": "^6.3.5",
91
91
  "zustand": "^5.0.8",
92
92
  "@particle-network/eslint-config": "0.3.0",
93
- "@particle-network/icons": "0.5.1-beta.5",
94
- "@particle-network/lintstaged-config": "0.1.0"
93
+ "@particle-network/lintstaged-config": "0.1.0",
94
+ "@particle-network/icons": "0.5.1-beta.6"
95
95
  },
96
96
  "overrides": {
97
97
  "react-docgen-typescript": "2.2.2",