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