@blinkdotnew/mobile-ui 2.0.0-alpha.15 → 2.0.0-alpha.16

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.js CHANGED
@@ -1666,18 +1666,48 @@ function BottomSheet({ open, onOpenChange, title, children, snapPoints = [85], d
1666
1666
  var import_react9 = require("react");
1667
1667
  var import_tamagui36 = require("tamagui");
1668
1668
  var import_jsx_runtime28 = require("react/jsx-runtime");
1669
+ function GoogleIcon({ size = 20 }) {
1670
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.XStack, { width: size, height: size, alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.SizableText, { fontSize: size, lineHeight: size, fontWeight: "700", color: "#4285F4", children: "G" }) });
1671
+ }
1672
+ function AppleIcon({ size = 20 }) {
1673
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.XStack, { width: size, height: size, alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.SizableText, { fontSize: size * 0.85, lineHeight: size, color: "$color1", children: "\uF8FF" }) });
1674
+ }
1675
+ function GitHubIcon({ size = 20 }) {
1676
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.Circle, { size, backgroundColor: "$color1", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.SizableText, { fontSize: size * 0.6, lineHeight: size, fontWeight: "900", color: "$color12", textAlign: "center", children: "GH" }) });
1677
+ }
1678
+ function MicrosoftIcon({ size = 20 }) {
1679
+ const half = Math.floor(size * 0.4);
1680
+ const gap = 2;
1681
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_tamagui36.YStack, { width: size, height: size, alignItems: "center", justifyContent: "center", children: [
1682
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_tamagui36.XStack, { gap, children: [
1683
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.YStack, { width: half, height: half, backgroundColor: "#F25022" }),
1684
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.YStack, { width: half, height: half, backgroundColor: "#7FBA00" })
1685
+ ] }),
1686
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_tamagui36.XStack, { gap, children: [
1687
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.YStack, { width: half, height: half, backgroundColor: "#00A4EF" }),
1688
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.YStack, { width: half, height: half, backgroundColor: "#FFB900" })
1689
+ ] })
1690
+ ] });
1691
+ }
1692
+ var BRAND_ICON_MAP = {
1693
+ google: GoogleIcon,
1694
+ apple: AppleIcon,
1695
+ github: GitHubIcon,
1696
+ microsoft: MicrosoftIcon,
1697
+ custom: ({ size = 20 }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.Circle, { size, backgroundColor: "$color4", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.SizableText, { fontSize: size * 0.6, color: "$color10", children: "\u2022" }) })
1698
+ };
1669
1699
  var BRAND_STYLES = {
1670
- google: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12", label: "G" },
1671
- apple: { backgroundColor: "$color12", borderColor: "$color12", textColor: "$color1", label: "\uF8FF" },
1672
- github: { backgroundColor: "$color12", borderColor: "$color12", textColor: "$color1", label: "\u25CE" },
1673
- microsoft: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12", label: "\u25A0" },
1674
- custom: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12", label: "\u2022" }
1700
+ google: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12" },
1701
+ apple: { backgroundColor: "$color12", borderColor: "$color12", textColor: "$color1" },
1702
+ github: { backgroundColor: "$color12", borderColor: "$color12", textColor: "$color1" },
1703
+ microsoft: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12" },
1704
+ custom: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12" }
1675
1705
  };
1676
- function ProviderBadge({ provider, buttonStyle }) {
1706
+ function ProviderBadge({ provider }) {
1677
1707
  const brand = provider.brand ?? "custom";
1678
- const tone = BRAND_STYLES[brand];
1679
1708
  if (provider.icon) return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, { children: provider.icon });
1680
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.Circle, { size: 28, backgroundColor: buttonStyle === "brand" ? "$color2" : "$color3", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.SizableText, { size: "$3", fontWeight: "700", color: tone.textColor, children: tone.label }) });
1709
+ const IconComponent = BRAND_ICON_MAP[brand];
1710
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(IconComponent, { size: 22 });
1681
1711
  }
1682
1712
  function LoginScreen({
1683
1713
  variant = "default",
@@ -1734,7 +1764,7 @@ function LoginScreen({
1734
1764
  pressStyle: { backgroundColor: "$color3" },
1735
1765
  children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_tamagui36.XStack, { alignItems: "center", justifyContent: "space-between", width: "100%", gap: "$2", children: [
1736
1766
  /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_tamagui36.XStack, { alignItems: "center", gap: "$2.5", children: [
1737
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ProviderBadge, { provider: p, buttonStyle: providerButtonStyle }),
1767
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ProviderBadge, { provider: p }),
1738
1768
  /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_tamagui36.YStack, { alignItems: "flex-start", children: [
1739
1769
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.SizableText, { size: "$4", fontWeight: "600", color: providerButtonStyle === "brand" ? BRAND_STYLES[p.brand ?? "custom"].textColor : void 0, children: p.name }),
1740
1770
  p.description ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_tamagui36.SizableText, { size: "$2", color: "$color10", children: p.description }) : null