@lobehub/icons-rn 1.0.4 → 1.0.5

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
@@ -10751,43 +10751,50 @@ var RNModelIcon = memo(
10751
10751
  );
10752
10752
  RNModelIcon.displayName = "RNModelIcon";
10753
10753
  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,
10754
+ var RNModelTag = 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__ */ jsxs(
10763
+ View,
10764
+ __spreadProps(__spreadValues({
10765
+ style: [
10775
10766
  {
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
- });
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__ */ jsx(ModelIcon_default, { model, size, type }),
10779
+ /* @__PURE__ */ jsx(
10780
+ 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
+ );
10791
10798
  RNModelTag.displayName = "RNModelTag";
10792
10799
  var ModelTag_default = RNModelTag;
10793
10800