@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 +39 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1564,18 +1564,48 @@ function BottomSheet({ open, onOpenChange, title, children, snapPoints = [85], d
|
|
|
1564
1564
|
import { useState as useState7 } from "react";
|
|
1565
1565
|
import { Button as Button6, Circle as Circle6, SizableText as SizableText25, Spinner, XStack as XStack17, YStack as YStack22 } from "tamagui";
|
|
1566
1566
|
import { Fragment as Fragment2, jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1567
|
+
function GoogleIcon({ size = 20 }) {
|
|
1568
|
+
return /* @__PURE__ */ jsx28(XStack17, { width: size, height: size, alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx28(SizableText25, { fontSize: size, lineHeight: size, fontWeight: "700", color: "#4285F4", children: "G" }) });
|
|
1569
|
+
}
|
|
1570
|
+
function AppleIcon({ size = 20 }) {
|
|
1571
|
+
return /* @__PURE__ */ jsx28(XStack17, { width: size, height: size, alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx28(SizableText25, { fontSize: size * 0.85, lineHeight: size, color: "$color1", children: "\uF8FF" }) });
|
|
1572
|
+
}
|
|
1573
|
+
function GitHubIcon({ size = 20 }) {
|
|
1574
|
+
return /* @__PURE__ */ jsx28(Circle6, { size, backgroundColor: "$color1", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx28(SizableText25, { fontSize: size * 0.6, lineHeight: size, fontWeight: "900", color: "$color12", textAlign: "center", children: "GH" }) });
|
|
1575
|
+
}
|
|
1576
|
+
function MicrosoftIcon({ size = 20 }) {
|
|
1577
|
+
const half = Math.floor(size * 0.4);
|
|
1578
|
+
const gap = 2;
|
|
1579
|
+
return /* @__PURE__ */ jsxs21(YStack22, { width: size, height: size, alignItems: "center", justifyContent: "center", children: [
|
|
1580
|
+
/* @__PURE__ */ jsxs21(XStack17, { gap, children: [
|
|
1581
|
+
/* @__PURE__ */ jsx28(YStack22, { width: half, height: half, backgroundColor: "#F25022" }),
|
|
1582
|
+
/* @__PURE__ */ jsx28(YStack22, { width: half, height: half, backgroundColor: "#7FBA00" })
|
|
1583
|
+
] }),
|
|
1584
|
+
/* @__PURE__ */ jsxs21(XStack17, { gap, children: [
|
|
1585
|
+
/* @__PURE__ */ jsx28(YStack22, { width: half, height: half, backgroundColor: "#00A4EF" }),
|
|
1586
|
+
/* @__PURE__ */ jsx28(YStack22, { width: half, height: half, backgroundColor: "#FFB900" })
|
|
1587
|
+
] })
|
|
1588
|
+
] });
|
|
1589
|
+
}
|
|
1590
|
+
var BRAND_ICON_MAP = {
|
|
1591
|
+
google: GoogleIcon,
|
|
1592
|
+
apple: AppleIcon,
|
|
1593
|
+
github: GitHubIcon,
|
|
1594
|
+
microsoft: MicrosoftIcon,
|
|
1595
|
+
custom: ({ size = 20 }) => /* @__PURE__ */ jsx28(Circle6, { size, backgroundColor: "$color4", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx28(SizableText25, { fontSize: size * 0.6, color: "$color10", children: "\u2022" }) })
|
|
1596
|
+
};
|
|
1567
1597
|
var BRAND_STYLES = {
|
|
1568
|
-
google: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12"
|
|
1569
|
-
apple: { backgroundColor: "$color12", borderColor: "$color12", textColor: "$color1"
|
|
1570
|
-
github: { backgroundColor: "$color12", borderColor: "$color12", textColor: "$color1"
|
|
1571
|
-
microsoft: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12"
|
|
1572
|
-
custom: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12"
|
|
1598
|
+
google: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12" },
|
|
1599
|
+
apple: { backgroundColor: "$color12", borderColor: "$color12", textColor: "$color1" },
|
|
1600
|
+
github: { backgroundColor: "$color12", borderColor: "$color12", textColor: "$color1" },
|
|
1601
|
+
microsoft: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12" },
|
|
1602
|
+
custom: { backgroundColor: "$color1", borderColor: "$color5", textColor: "$color12" }
|
|
1573
1603
|
};
|
|
1574
|
-
function ProviderBadge({ provider
|
|
1604
|
+
function ProviderBadge({ provider }) {
|
|
1575
1605
|
const brand = provider.brand ?? "custom";
|
|
1576
|
-
const tone = BRAND_STYLES[brand];
|
|
1577
1606
|
if (provider.icon) return /* @__PURE__ */ jsx28(Fragment2, { children: provider.icon });
|
|
1578
|
-
|
|
1607
|
+
const IconComponent = BRAND_ICON_MAP[brand];
|
|
1608
|
+
return /* @__PURE__ */ jsx28(IconComponent, { size: 22 });
|
|
1579
1609
|
}
|
|
1580
1610
|
function LoginScreen({
|
|
1581
1611
|
variant = "default",
|
|
@@ -1632,7 +1662,7 @@ function LoginScreen({
|
|
|
1632
1662
|
pressStyle: { backgroundColor: "$color3" },
|
|
1633
1663
|
children: /* @__PURE__ */ jsxs21(XStack17, { alignItems: "center", justifyContent: "space-between", width: "100%", gap: "$2", children: [
|
|
1634
1664
|
/* @__PURE__ */ jsxs21(XStack17, { alignItems: "center", gap: "$2.5", children: [
|
|
1635
|
-
/* @__PURE__ */ jsx28(ProviderBadge, { provider: p
|
|
1665
|
+
/* @__PURE__ */ jsx28(ProviderBadge, { provider: p }),
|
|
1636
1666
|
/* @__PURE__ */ jsxs21(YStack22, { alignItems: "flex-start", children: [
|
|
1637
1667
|
/* @__PURE__ */ jsx28(SizableText25, { size: "$4", fontWeight: "600", color: providerButtonStyle === "brand" ? BRAND_STYLES[p.brand ?? "custom"].textColor : void 0, children: p.name }),
|
|
1638
1668
|
p.description ? /* @__PURE__ */ jsx28(SizableText25, { size: "$2", color: "$color10", children: p.description }) : null
|