@lobehub/icons-rn 1.0.4 → 1.1.0

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/index.d.mts CHANGED
@@ -59,6 +59,7 @@ declare const RNModelIcon: React__default.NamedExoticComponent<RNModelIconProps>
59
59
 
60
60
  interface RNModelTagProps {
61
61
  model: string;
62
+ size?: number;
62
63
  style?: ViewStyle;
63
64
  textStyle?: ViewStyle;
64
65
  type?: 'color' | 'mono';
package/dist/index.d.ts CHANGED
@@ -59,6 +59,7 @@ declare const RNModelIcon: React__default.NamedExoticComponent<RNModelIconProps>
59
59
 
60
60
  interface RNModelTagProps {
61
61
  model: string;
62
+ size?: number;
62
63
  style?: ViewStyle;
63
64
  textStyle?: ViewStyle;
64
65
  type?: 'color' | 'mono';
package/dist/index.js CHANGED
@@ -5439,7 +5439,6 @@ var Combine27 = react.memo((_a) => {
5439
5439
  Icon: Mono_default31,
5440
5440
  Text: Text_default29,
5441
5441
  "aria-label": TITLE30,
5442
- iconProps: { shape: "square" },
5443
5442
  spaceMultiple: COMBINE_SPACE_MULTIPLE27,
5444
5443
  textMultiple: COMBINE_TEXT_MULTIPLE27
5445
5444
  }, rest)
@@ -6692,7 +6691,6 @@ var Combine33 = react.memo((_a) => {
6692
6691
  Icon: Mono_default38,
6693
6692
  Text: Text_default37,
6694
6693
  "aria-label": TITLE37,
6695
- iconProps: { shape: "square" },
6696
6694
  spaceMultiple: COMBINE_SPACE_MULTIPLE33,
6697
6695
  textMultiple: COMBINE_TEXT_MULTIPLE33
6698
6696
  }, rest)
@@ -10753,43 +10751,50 @@ var RNModelIcon = react.memo(
10753
10751
  );
10754
10752
  RNModelIcon.displayName = "RNModelIcon";
10755
10753
  var ModelIcon_default = RNModelIcon;
10756
- var RNModelTag = react.memo((_a) => {
10757
- var _b = _a, { type = "mono", model, style, textStyle } = _b, rest = __objRest(_b, ["type", "model", "style", "textStyle"]);
10758
- return /* @__PURE__ */ jsxRuntime.jsxs(
10759
- reactNative.View,
10760
- __spreadProps(__spreadValues({
10761
- style: [
10762
- {
10763
- alignItems: "center",
10764
- backgroundColor: "#f5f5f5",
10765
- borderRadius: 12,
10766
- flexDirection: "row",
10767
- paddingHorizontal: 8,
10768
- paddingVertical: 4
10769
- },
10770
- style
10771
- ]
10772
- }, rest), {
10773
- children: [
10774
- /* @__PURE__ */ jsxRuntime.jsx(ModelIcon_default, { model, size: 12, type }),
10775
- /* @__PURE__ */ jsxRuntime.jsx(
10776
- reactNative.Text,
10754
+ var RNModelTag = react.memo(
10755
+ (_a) => {
10756
+ var _b = _a, { type = "mono", model, size = 12, style, textStyle } = _b, rest = __objRest(_b, ["type", "model", "size", "style", "textStyle"]);
10757
+ const textSize = Math.max(size * 0.9, 10);
10758
+ const paddingHorizontal = Math.max(size * 0.67, 8);
10759
+ const paddingVertical = Math.max(size * 0.33, 4);
10760
+ const borderRadius = Math.max(size, 12);
10761
+ const marginLeft = Math.max(size * 0.33, 4);
10762
+ return /* @__PURE__ */ jsxRuntime.jsxs(
10763
+ reactNative.View,
10764
+ __spreadProps(__spreadValues({
10765
+ style: [
10777
10766
  {
10778
- style: [
10779
- {
10780
- color: "#666",
10781
- fontSize: 12,
10782
- marginLeft: 4
10783
- },
10784
- textStyle
10785
- ],
10786
- children: model
10787
- }
10788
- )
10789
- ]
10790
- })
10791
- );
10792
- });
10767
+ alignItems: "center",
10768
+ backgroundColor: "#f5f5f5",
10769
+ borderRadius,
10770
+ flexDirection: "row",
10771
+ paddingHorizontal,
10772
+ paddingVertical
10773
+ },
10774
+ style
10775
+ ]
10776
+ }, rest), {
10777
+ children: [
10778
+ /* @__PURE__ */ jsxRuntime.jsx(ModelIcon_default, { model, size, type }),
10779
+ /* @__PURE__ */ jsxRuntime.jsx(
10780
+ reactNative.Text,
10781
+ {
10782
+ style: [
10783
+ {
10784
+ color: "#666",
10785
+ fontSize: textSize,
10786
+ marginLeft
10787
+ },
10788
+ textStyle
10789
+ ],
10790
+ children: model
10791
+ }
10792
+ )
10793
+ ]
10794
+ })
10795
+ );
10796
+ }
10797
+ );
10793
10798
  RNModelTag.displayName = "RNModelTag";
10794
10799
  var ModelTag_default = RNModelTag;
10795
10800
 
@@ -17423,7 +17428,6 @@ var Combine97 = react.memo((_a) => {
17423
17428
  Icon: Mono_default106,
17424
17429
  Text: Text_default103,
17425
17430
  "aria-label": TITLE106,
17426
- iconProps: { shape: "square" },
17427
17431
  spaceMultiple: COMBINE_SPACE_MULTIPLE96,
17428
17432
  textMultiple: COMBINE_TEXT_MULTIPLE96
17429
17433
  }, rest)
@@ -21774,7 +21778,6 @@ var Combine122 = react.memo((_a) => {
21774
21778
  __spreadValues({
21775
21779
  Text: Text_default129,
21776
21780
  "aria-label": TITLE132,
21777
- iconProps: { shape: "square" },
21778
21781
  spaceMultiple: COMBINE_SPACE_MULTIPLE121,
21779
21782
  textMultiple: COMBINE_TEXT_MULTIPLE121
21780
21783
  }, rest)