linked-data-browser 0.0.8-alpha.5 → 0.0.8-alpha.6
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/README.md +6 -0
- package/dist-lib/index.d.mts +6 -1
- package/dist-lib/index.d.ts +6 -1
- package/dist-lib/index.js +308 -278
- package/dist-lib/index.mjs +419 -390
- package/dist-server/_expo/static/js/web/{AppEntry-02974cfff24938192767ab98511c2421.js → AppEntry-3f89550cb70ba0801aa1bbc82a590e5d.js} +2 -2
- package/dist-server/index.html +1 -1
- package/dist-standalone/_expo/static/js/web/{AppEntry-02974cfff24938192767ab98511c2421.js → AppEntry-3f89550cb70ba0801aa1bbc82a590e5d.js} +2 -2
- package/dist-standalone/index.html +1 -1
- package/package.json +1 -1
package/dist-lib/index.mjs
CHANGED
|
@@ -26,9 +26,9 @@ import React35, {
|
|
|
26
26
|
|
|
27
27
|
// components/nav/header/Header.tsx
|
|
28
28
|
import React33 from "react";
|
|
29
|
-
import { useSolidAuth as
|
|
30
|
-
import { StyleSheet as
|
|
31
|
-
import { useTheme as
|
|
29
|
+
import { useSolidAuth as useSolidAuth6 } from "@ldo/solid-react";
|
|
30
|
+
import { StyleSheet as StyleSheet28 } from "react-native";
|
|
31
|
+
import { useTheme as useTheme18 } from "@react-navigation/native";
|
|
32
32
|
|
|
33
33
|
// components/nav/header/AddressBox.tsx
|
|
34
34
|
import React6, { useEffect as useEffect2, useMemo as useMemo2 } from "react";
|
|
@@ -548,7 +548,7 @@ function useDataBrowserConfig() {
|
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
// components/TargetResourceProvider.tsx
|
|
551
|
-
import { useResource } from "@ldo/solid-react";
|
|
551
|
+
import { useResource, useSolidAuth } from "@ldo/solid-react";
|
|
552
552
|
import { Platform as Platform4 } from "react-native";
|
|
553
553
|
var TargetResourceContext = createContext3({});
|
|
554
554
|
function useTargetResource() {
|
|
@@ -558,6 +558,7 @@ var TargetResourceProvider = ({
|
|
|
558
558
|
children
|
|
559
559
|
}) => {
|
|
560
560
|
const { mode, origin } = useDataBrowserConfig();
|
|
561
|
+
const { ranInitialAuthCheck } = useSolidAuth();
|
|
561
562
|
const [currentUrl, setCurrentUrl] = useState(() => {
|
|
562
563
|
return Platform4.OS === "web" ? new URL(window.location.href) : new URL("");
|
|
563
564
|
});
|
|
@@ -609,6 +610,10 @@ var TargetResourceProvider = ({
|
|
|
609
610
|
const curHash = currentUrl.hash;
|
|
610
611
|
return `${curOrigin}${curPathname}${curHash}`;
|
|
611
612
|
}, [currentUrl, mode]);
|
|
613
|
+
if (!ranInitialAuthCheck) return /* @__PURE__ */ React5.createElement(React5.Fragment, null);
|
|
614
|
+
return /* @__PURE__ */ React5.createElement(TargetResourceLoader, { targetUri, navigateTo }, children);
|
|
615
|
+
};
|
|
616
|
+
var TargetResourceLoader = ({ targetUri, navigateTo, children }) => {
|
|
612
617
|
const targetResource = useResource(targetUri);
|
|
613
618
|
const refresh = useCallback(async () => {
|
|
614
619
|
if (targetResource) {
|
|
@@ -773,7 +778,7 @@ var styles2 = StyleSheet5.create({
|
|
|
773
778
|
});
|
|
774
779
|
|
|
775
780
|
// components/nav/header/AvatarMenu.tsx
|
|
776
|
-
import { useResource as useResource2, useSolidAuth, useSubject } from "@ldo/solid-react";
|
|
781
|
+
import { useResource as useResource2, useSolidAuth as useSolidAuth2, useSubject } from "@ldo/solid-react";
|
|
777
782
|
import React13 from "react";
|
|
778
783
|
import { View as View7, StyleSheet as StyleSheet10 } from "react-native";
|
|
779
784
|
|
|
@@ -2781,7 +2786,7 @@ var ProfileAvatar = ({
|
|
|
2781
2786
|
|
|
2782
2787
|
// components/nav/header/AvatarMenu.tsx
|
|
2783
2788
|
var AvatarMenu = () => {
|
|
2784
|
-
const { session, logout } =
|
|
2789
|
+
const { session, logout } = useSolidAuth2();
|
|
2785
2790
|
const webIdResource = useResource2(session.webId);
|
|
2786
2791
|
const profile = useSubject(SolidProfileShapeType, session.webId);
|
|
2787
2792
|
const { navigateTo } = useTargetResource();
|
|
@@ -2826,7 +2831,7 @@ var styles7 = StyleSheet10.create({
|
|
|
2826
2831
|
});
|
|
2827
2832
|
|
|
2828
2833
|
// components/nav/header/SignInMenu.tsx
|
|
2829
|
-
import { useSolidAuth as
|
|
2834
|
+
import { useSolidAuth as useSolidAuth3 } from "@ldo/solid-react";
|
|
2830
2835
|
import React15, { useCallback as useCallback2, useState as useState4 } from "react";
|
|
2831
2836
|
import { View as View9, StyleSheet as StyleSheet12, useWindowDimensions } from "react-native";
|
|
2832
2837
|
import { EllipsisVertical } from "lucide-react-native";
|
|
@@ -3035,7 +3040,7 @@ var styles8 = StyleSheet11.create({
|
|
|
3035
3040
|
var SignInMenu = () => {
|
|
3036
3041
|
const [idpValue, setIdpValue] = useState4("");
|
|
3037
3042
|
const [, setIdpError] = useState4();
|
|
3038
|
-
const { login, signUp } =
|
|
3043
|
+
const { login, signUp } = useSolidAuth3();
|
|
3039
3044
|
const { width } = useWindowDimensions();
|
|
3040
3045
|
const { defaultIssuer } = useDataBrowserConfig();
|
|
3041
3046
|
const isSmallScreen = width < 640;
|
|
@@ -3121,7 +3126,7 @@ var styles9 = StyleSheet12.create({
|
|
|
3121
3126
|
|
|
3122
3127
|
// components/nav/header/ViewMenu.tsx
|
|
3123
3128
|
import React19 from "react";
|
|
3124
|
-
import { StyleSheet as
|
|
3129
|
+
import { StyleSheet as StyleSheet15, useWindowDimensions as useWindowDimensions2 } from "react-native";
|
|
3125
3130
|
import { ViewIcon } from "lucide-react-native";
|
|
3126
3131
|
|
|
3127
3132
|
// components/useViewContext.tsx
|
|
@@ -3243,11 +3248,34 @@ var styles10 = StyleSheet13.create({
|
|
|
3243
3248
|
});
|
|
3244
3249
|
|
|
3245
3250
|
// components/utilityResourceViews/ErrorMessageResourceView.tsx
|
|
3246
|
-
import { View as View11 } from "react-native";
|
|
3251
|
+
import { View as View11, StyleSheet as StyleSheet14 } from "react-native";
|
|
3252
|
+
import { useTheme as useTheme10 } from "@react-navigation/native";
|
|
3247
3253
|
var ErrorMessageResourceView = ({ icon, message }) => {
|
|
3248
3254
|
const Icon2 = icon;
|
|
3249
|
-
|
|
3255
|
+
const { colors } = useTheme10();
|
|
3256
|
+
return /* @__PURE__ */ React17.createElement(View11, { style: styles11.container }, /* @__PURE__ */ React17.createElement(Card, { style: styles11.card }, /* @__PURE__ */ React17.createElement(Icon2, { size: 60, color: colors.text, style: styles11.icon }), /* @__PURE__ */ React17.createElement(Text2, { style: styles11.message }, message)));
|
|
3250
3257
|
};
|
|
3258
|
+
var styles11 = StyleSheet14.create({
|
|
3259
|
+
container: {
|
|
3260
|
+
flex: 1,
|
|
3261
|
+
justifyContent: "center",
|
|
3262
|
+
alignItems: "center",
|
|
3263
|
+
padding: 24
|
|
3264
|
+
},
|
|
3265
|
+
card: {
|
|
3266
|
+
maxWidth: 400,
|
|
3267
|
+
width: "100%",
|
|
3268
|
+
padding: 24,
|
|
3269
|
+
alignItems: "center",
|
|
3270
|
+
gap: 16
|
|
3271
|
+
},
|
|
3272
|
+
icon: {
|
|
3273
|
+
marginBottom: 8
|
|
3274
|
+
},
|
|
3275
|
+
message: {
|
|
3276
|
+
textAlign: "center"
|
|
3277
|
+
}
|
|
3278
|
+
});
|
|
3251
3279
|
|
|
3252
3280
|
// components/useViewContext.tsx
|
|
3253
3281
|
import { useLdo } from "@ldo/solid-react";
|
|
@@ -3357,7 +3385,7 @@ function getErrorViews(targetResource) {
|
|
|
3357
3385
|
}
|
|
3358
3386
|
|
|
3359
3387
|
// components/nav/header/ViewMenu.tsx
|
|
3360
|
-
import { useTheme as
|
|
3388
|
+
import { useTheme as useTheme11 } from "@react-navigation/native";
|
|
3361
3389
|
var ViewMenu = () => {
|
|
3362
3390
|
const { validViews } = useViewContext();
|
|
3363
3391
|
const { width } = useWindowDimensions2();
|
|
@@ -3371,21 +3399,21 @@ var ViewMenu = () => {
|
|
|
3371
3399
|
)), /* @__PURE__ */ React19.createElement(
|
|
3372
3400
|
DropdownMenuContent,
|
|
3373
3401
|
{
|
|
3374
|
-
style:
|
|
3402
|
+
style: StyleSheet15.flatten([styles12.contentContainer])
|
|
3375
3403
|
},
|
|
3376
3404
|
validViews.map((menuItem) => /* @__PURE__ */ React19.createElement(ListItem, { key: menuItem.name, viewConfig: menuItem }, menuItem.displayName))
|
|
3377
3405
|
));
|
|
3378
3406
|
};
|
|
3379
3407
|
var ListItem = ({ viewConfig, children }) => {
|
|
3380
3408
|
const { curViewConfig, setCurViewConfig } = useViewContext();
|
|
3381
|
-
const { colors } =
|
|
3409
|
+
const { colors } = useTheme11();
|
|
3382
3410
|
const DisplayIcon = viewConfig.displayIcon;
|
|
3383
3411
|
const isSelected = curViewConfig.name === viewConfig.name;
|
|
3384
3412
|
return /* @__PURE__ */ React19.createElement(
|
|
3385
3413
|
DropdownMenuItem,
|
|
3386
3414
|
{
|
|
3387
|
-
style:
|
|
3388
|
-
|
|
3415
|
+
style: StyleSheet15.flatten([
|
|
3416
|
+
styles12.listItem,
|
|
3389
3417
|
isSelected && {
|
|
3390
3418
|
backgroundColor: colors.border
|
|
3391
3419
|
}
|
|
@@ -3397,7 +3425,7 @@ var ListItem = ({ viewConfig, children }) => {
|
|
|
3397
3425
|
);
|
|
3398
3426
|
};
|
|
3399
3427
|
ListItem.displayName = "ListItem";
|
|
3400
|
-
var
|
|
3428
|
+
var styles12 = StyleSheet15.create({
|
|
3401
3429
|
triggerContainer: {
|
|
3402
3430
|
flexDirection: "row",
|
|
3403
3431
|
alignItems: "center",
|
|
@@ -3437,12 +3465,12 @@ import React32, {
|
|
|
3437
3465
|
useMemo as useMemo9,
|
|
3438
3466
|
useState as useState9
|
|
3439
3467
|
} from "react";
|
|
3440
|
-
import { StyleSheet as
|
|
3441
|
-
import { useTheme as
|
|
3468
|
+
import { StyleSheet as StyleSheet27, useWindowDimensions as useWindowDimensions3 } from "react-native";
|
|
3469
|
+
import { useTheme as useTheme17 } from "@react-navigation/native";
|
|
3442
3470
|
|
|
3443
3471
|
// components/sharing/CopyLink.tsx
|
|
3444
3472
|
import React20, { useCallback as useCallback3, useState as useState6 } from "react";
|
|
3445
|
-
import { StyleSheet as
|
|
3473
|
+
import { StyleSheet as StyleSheet16 } from "react-native";
|
|
3446
3474
|
import { Link } from "lucide-react-native";
|
|
3447
3475
|
var CopyLink = () => {
|
|
3448
3476
|
const { targetUri } = useViewContext();
|
|
@@ -3457,14 +3485,14 @@ var CopyLink = () => {
|
|
|
3457
3485
|
Button,
|
|
3458
3486
|
{
|
|
3459
3487
|
variant: "outline",
|
|
3460
|
-
style:
|
|
3488
|
+
style: styles13.button,
|
|
3461
3489
|
onPress: onCopy,
|
|
3462
3490
|
text: message,
|
|
3463
3491
|
iconLeft: Link
|
|
3464
3492
|
}
|
|
3465
3493
|
);
|
|
3466
3494
|
};
|
|
3467
|
-
var
|
|
3495
|
+
var styles13 = StyleSheet16.create({
|
|
3468
3496
|
button: {
|
|
3469
3497
|
flexDirection: "row"
|
|
3470
3498
|
}
|
|
@@ -3472,13 +3500,13 @@ var styles12 = StyleSheet15.create({
|
|
|
3472
3500
|
|
|
3473
3501
|
// components/common/LoadingBar.tsx
|
|
3474
3502
|
import React21 from "react";
|
|
3475
|
-
import { useTheme as
|
|
3503
|
+
import { useTheme as useTheme12 } from "@react-navigation/native";
|
|
3476
3504
|
import { Bar } from "react-native-progress";
|
|
3477
|
-
import { StyleSheet as
|
|
3505
|
+
import { StyleSheet as StyleSheet17 } from "react-native";
|
|
3478
3506
|
var LoadingBar = ({
|
|
3479
3507
|
isLoading
|
|
3480
3508
|
}) => {
|
|
3481
|
-
const { colors } =
|
|
3509
|
+
const { colors } = useTheme12();
|
|
3482
3510
|
if (!isLoading) return /* @__PURE__ */ React21.createElement(React21.Fragment, null);
|
|
3483
3511
|
return /* @__PURE__ */ React21.createElement(
|
|
3484
3512
|
Bar,
|
|
@@ -3488,11 +3516,11 @@ var LoadingBar = ({
|
|
|
3488
3516
|
borderWidth: 0,
|
|
3489
3517
|
borderRadius: 0,
|
|
3490
3518
|
width: null,
|
|
3491
|
-
style:
|
|
3519
|
+
style: styles14.bar
|
|
3492
3520
|
}
|
|
3493
3521
|
);
|
|
3494
3522
|
};
|
|
3495
|
-
var
|
|
3523
|
+
var styles14 = StyleSheet17.create({
|
|
3496
3524
|
bar: {
|
|
3497
3525
|
position: "absolute",
|
|
3498
3526
|
top: 0,
|
|
@@ -3506,27 +3534,27 @@ import { ScrollView as ScrollView2 } from "react-native";
|
|
|
3506
3534
|
|
|
3507
3535
|
// components/sharing/WacRuleForm.tsx
|
|
3508
3536
|
import React31 from "react";
|
|
3509
|
-
import { StyleSheet as
|
|
3537
|
+
import { StyleSheet as StyleSheet26 } from "react-native";
|
|
3510
3538
|
|
|
3511
3539
|
// components/ui/separator.tsx
|
|
3512
|
-
import { useTheme as
|
|
3540
|
+
import { useTheme as useTheme13 } from "@react-navigation/native";
|
|
3513
3541
|
import * as SeparatorPrimitive from "@rn-primitives/separator";
|
|
3514
3542
|
import * as React22 from "react";
|
|
3515
|
-
import { StyleSheet as
|
|
3543
|
+
import { StyleSheet as StyleSheet18 } from "react-native";
|
|
3516
3544
|
function Separator2({
|
|
3517
3545
|
style,
|
|
3518
3546
|
orientation = "horizontal",
|
|
3519
3547
|
decorative = true,
|
|
3520
3548
|
...props
|
|
3521
3549
|
}) {
|
|
3522
|
-
const { colors } =
|
|
3550
|
+
const { colors } = useTheme13();
|
|
3523
3551
|
return /* @__PURE__ */ React22.createElement(
|
|
3524
3552
|
SeparatorPrimitive.Root,
|
|
3525
3553
|
{
|
|
3526
3554
|
decorative,
|
|
3527
3555
|
orientation,
|
|
3528
|
-
style:
|
|
3529
|
-
orientation === "horizontal" ?
|
|
3556
|
+
style: StyleSheet18.flatten([
|
|
3557
|
+
orientation === "horizontal" ? styles15.horizontal : styles15.vertical,
|
|
3530
3558
|
{ backgroundColor: colors.border },
|
|
3531
3559
|
style
|
|
3532
3560
|
]),
|
|
@@ -3534,7 +3562,7 @@ function Separator2({
|
|
|
3534
3562
|
}
|
|
3535
3563
|
);
|
|
3536
3564
|
}
|
|
3537
|
-
var
|
|
3565
|
+
var styles15 = StyleSheet18.create({
|
|
3538
3566
|
horizontal: {
|
|
3539
3567
|
flexShrink: 0,
|
|
3540
3568
|
height: 1,
|
|
@@ -3552,22 +3580,22 @@ import React29, { useCallback as useCallback7 } from "react";
|
|
|
3552
3580
|
|
|
3553
3581
|
// components/sharing/agentPermissions/AgentPermissionRow.tsx
|
|
3554
3582
|
import React26 from "react";
|
|
3555
|
-
import { StyleSheet as
|
|
3583
|
+
import { StyleSheet as StyleSheet22 } from "react-native";
|
|
3556
3584
|
|
|
3557
3585
|
// components/sharing/agentPermissions/AgentInformation.tsx
|
|
3558
|
-
import { useResource as useResource3, useSolidAuth as
|
|
3586
|
+
import { useResource as useResource3, useSolidAuth as useSolidAuth4, useSubject as useSubject2 } from "@ldo/solid-react";
|
|
3559
3587
|
import React23 from "react";
|
|
3560
|
-
import { View as View12, StyleSheet as
|
|
3588
|
+
import { View as View12, StyleSheet as StyleSheet19 } from "react-native";
|
|
3561
3589
|
var AgentInformation = ({
|
|
3562
3590
|
webId,
|
|
3563
3591
|
accessoryRight
|
|
3564
3592
|
}) => {
|
|
3565
|
-
const { session } =
|
|
3593
|
+
const { session } = useSolidAuth4();
|
|
3566
3594
|
useResource3(webId);
|
|
3567
3595
|
const agentProfile = useSubject2(SolidProfileShapeType, webId);
|
|
3568
|
-
return /* @__PURE__ */ React23.createElement(View12, { style:
|
|
3596
|
+
return /* @__PURE__ */ React23.createElement(View12, { style: styles16.container }, /* @__PURE__ */ React23.createElement(ProfileAvatar, { profile: agentProfile }), /* @__PURE__ */ React23.createElement(View12, { style: styles16.textContainer }, /* @__PURE__ */ React23.createElement(Text2, null, agentProfile["@id"] === session.webId ? "You" : agentProfile.fn ?? agentProfile.name ?? "Unnamed Agent"), /* @__PURE__ */ React23.createElement(Text2, { size: "xs", muted: true }, webId)), accessoryRight);
|
|
3569
3597
|
};
|
|
3570
|
-
var
|
|
3598
|
+
var styles16 = StyleSheet19.create({
|
|
3571
3599
|
container: {
|
|
3572
3600
|
flexDirection: "row",
|
|
3573
3601
|
gap: 16,
|
|
@@ -3585,9 +3613,9 @@ import React25, { useCallback as useCallback4, useMemo as useMemo5 } from "react
|
|
|
3585
3613
|
// components/ui/checkbox.tsx
|
|
3586
3614
|
import * as CheckboxPrimitive from "@rn-primitives/checkbox";
|
|
3587
3615
|
import * as React24 from "react";
|
|
3588
|
-
import { Platform as Platform10, StyleSheet as
|
|
3616
|
+
import { Platform as Platform10, StyleSheet as StyleSheet20 } from "react-native";
|
|
3589
3617
|
import { Check as Check2 } from "lucide-react-native";
|
|
3590
|
-
import { useTheme as
|
|
3618
|
+
import { useTheme as useTheme14 } from "@react-navigation/native";
|
|
3591
3619
|
var getCheckboxStyles = (checked = false, disabled = false, theme) => {
|
|
3592
3620
|
const baseStyles = {
|
|
3593
3621
|
height: 16,
|
|
@@ -3605,7 +3633,7 @@ var getCheckboxStyles = (checked = false, disabled = false, theme) => {
|
|
|
3605
3633
|
const disabledStyles = disabled ? {
|
|
3606
3634
|
opacity: 0.5
|
|
3607
3635
|
} : {};
|
|
3608
|
-
return
|
|
3636
|
+
return StyleSheet20.flatten([baseStyles, checkedStyles, disabledStyles]);
|
|
3609
3637
|
};
|
|
3610
3638
|
var getIndicatorStyles = () => ({
|
|
3611
3639
|
alignItems: "center",
|
|
@@ -3617,8 +3645,8 @@ function Checkbox({
|
|
|
3617
3645
|
style,
|
|
3618
3646
|
...props
|
|
3619
3647
|
}) {
|
|
3620
|
-
const theme =
|
|
3621
|
-
const rootStyle =
|
|
3648
|
+
const theme = useTheme14();
|
|
3649
|
+
const rootStyle = StyleSheet20.flatten([
|
|
3622
3650
|
getCheckboxStyles(props.checked, props.disabled, theme),
|
|
3623
3651
|
style
|
|
3624
3652
|
]);
|
|
@@ -3634,7 +3662,7 @@ function Checkbox({
|
|
|
3634
3662
|
|
|
3635
3663
|
// components/sharing/AccessDropdown.tsx
|
|
3636
3664
|
import { ChevronDown as ChevronDown2 } from "lucide-react-native";
|
|
3637
|
-
import { StyleSheet as
|
|
3665
|
+
import { StyleSheet as StyleSheet21 } from "react-native";
|
|
3638
3666
|
var AccessDropdown = ({
|
|
3639
3667
|
value,
|
|
3640
3668
|
onChange
|
|
@@ -3663,7 +3691,7 @@ var AccessDropdown = ({
|
|
|
3663
3691
|
},
|
|
3664
3692
|
[onChange, value]
|
|
3665
3693
|
);
|
|
3666
|
-
return /* @__PURE__ */ React25.createElement(DropdownMenu, null, /* @__PURE__ */ React25.createElement(DropdownMenuTrigger, { asChild: true, style:
|
|
3694
|
+
return /* @__PURE__ */ React25.createElement(DropdownMenu, null, /* @__PURE__ */ React25.createElement(DropdownMenuTrigger, { asChild: true, style: styles17.button }, /* @__PURE__ */ React25.createElement(Button, { variant: "outline" }, /* @__PURE__ */ React25.createElement(Text2, null, accessDescription), /* @__PURE__ */ React25.createElement(Icon, { icon: ChevronDown2, style: styles17.buttonChevron }))), /* @__PURE__ */ React25.createElement(DropdownMenuContent, null, /* @__PURE__ */ React25.createElement(DropdownMenuLabel, null, "Permissions"), /* @__PURE__ */ React25.createElement(DropdownMenuSeparator, null), /* @__PURE__ */ React25.createElement(DropdownMenuGroup, null, ["read", "append", "write", "control"].map((accessModeName) => /* @__PURE__ */ React25.createElement(
|
|
3667
3695
|
DropdownMenuItem,
|
|
3668
3696
|
{
|
|
3669
3697
|
key: accessModeName,
|
|
@@ -3683,7 +3711,7 @@ var AccessDropdown = ({
|
|
|
3683
3711
|
/* @__PURE__ */ React25.createElement(Text2, null, accessModeName.charAt(0).toUpperCase() + accessModeName.slice(1))
|
|
3684
3712
|
)))));
|
|
3685
3713
|
};
|
|
3686
|
-
var
|
|
3714
|
+
var styles17 = StyleSheet21.create({
|
|
3687
3715
|
button: {
|
|
3688
3716
|
display: "flex",
|
|
3689
3717
|
width: 130,
|
|
@@ -3703,18 +3731,18 @@ var AgentPermissionRow = ({
|
|
|
3703
3731
|
value,
|
|
3704
3732
|
onChange
|
|
3705
3733
|
}) => {
|
|
3706
|
-
return /* @__PURE__ */ React26.createElement(View13, { style:
|
|
3734
|
+
return /* @__PURE__ */ React26.createElement(View13, { style: styles18.container }, /* @__PURE__ */ React26.createElement(AgentInformation, { webId }), /* @__PURE__ */ React26.createElement(View13, { style: styles18.rightSection }, /* @__PURE__ */ React26.createElement(
|
|
3707
3735
|
Button,
|
|
3708
3736
|
{
|
|
3709
3737
|
variant: "ghost",
|
|
3710
3738
|
onPress: () => onChange(void 0),
|
|
3711
|
-
style:
|
|
3739
|
+
style: styles18.deleteButton,
|
|
3712
3740
|
iconLeft: Trash,
|
|
3713
|
-
textStyle:
|
|
3741
|
+
textStyle: styles18.deleteButtonText
|
|
3714
3742
|
}
|
|
3715
3743
|
), /* @__PURE__ */ React26.createElement(AccessDropdown, { value, onChange })));
|
|
3716
3744
|
};
|
|
3717
|
-
var
|
|
3745
|
+
var styles18 = StyleSheet22.create({
|
|
3718
3746
|
container: {
|
|
3719
3747
|
flexDirection: "row",
|
|
3720
3748
|
justifyContent: "space-between",
|
|
@@ -3733,10 +3761,10 @@ var styles17 = StyleSheet21.create({
|
|
|
3733
3761
|
|
|
3734
3762
|
// components/sharing/agentPermissions/AgentInput.tsx
|
|
3735
3763
|
import React28, { useCallback as useCallback6, useMemo as useMemo8, useState as useState8 } from "react";
|
|
3736
|
-
import { StyleSheet as
|
|
3737
|
-
import { useTheme as
|
|
3764
|
+
import { StyleSheet as StyleSheet24 } from "react-native";
|
|
3765
|
+
import { useTheme as useTheme16 } from "@react-navigation/native";
|
|
3738
3766
|
import { Pressable as Pressable3 } from "react-native";
|
|
3739
|
-
import { useLinkQuery, useSolidAuth as
|
|
3767
|
+
import { useLinkQuery, useSolidAuth as useSolidAuth5 } from "@ldo/solid-react";
|
|
3740
3768
|
|
|
3741
3769
|
// components/ui/input-dropdown.tsx
|
|
3742
3770
|
import React27, {
|
|
@@ -3746,8 +3774,8 @@ import React27, {
|
|
|
3746
3774
|
useRef,
|
|
3747
3775
|
useEffect as useEffect5
|
|
3748
3776
|
} from "react";
|
|
3749
|
-
import { View as View14, StyleSheet as
|
|
3750
|
-
import { useTheme as
|
|
3777
|
+
import { View as View14, StyleSheet as StyleSheet23 } from "react-native";
|
|
3778
|
+
import { useTheme as useTheme15 } from "@react-navigation/native";
|
|
3751
3779
|
function InputDropdown({
|
|
3752
3780
|
items,
|
|
3753
3781
|
renderItem,
|
|
@@ -3761,7 +3789,7 @@ function InputDropdown({
|
|
|
3761
3789
|
style,
|
|
3762
3790
|
...inputProps
|
|
3763
3791
|
}) {
|
|
3764
|
-
const { colors } =
|
|
3792
|
+
const { colors } = useTheme15();
|
|
3765
3793
|
const [isDropdownOpen, setIsDropdownOpen] = useState7(false);
|
|
3766
3794
|
const inputRef = useRef(null);
|
|
3767
3795
|
const filteredItems = useMemo6(() => {
|
|
@@ -3802,11 +3830,11 @@ function InputDropdown({
|
|
|
3802
3830
|
}
|
|
3803
3831
|
}, [isDropdownOpen]);
|
|
3804
3832
|
const containerStyles = {
|
|
3805
|
-
...
|
|
3833
|
+
...styles19.container,
|
|
3806
3834
|
...style
|
|
3807
3835
|
};
|
|
3808
3836
|
const dropdownStyles = {
|
|
3809
|
-
...
|
|
3837
|
+
...styles19.dropdown,
|
|
3810
3838
|
backgroundColor: colors.background,
|
|
3811
3839
|
borderColor: colors.border
|
|
3812
3840
|
};
|
|
@@ -3820,7 +3848,7 @@ function InputDropdown({
|
|
|
3820
3848
|
}
|
|
3821
3849
|
), isDropdownOpen && (filteredItems.length > 0 || isLoading) && /* @__PURE__ */ React27.createElement(Card, { style: dropdownStyles }, isLoading && /* @__PURE__ */ React27.createElement(LoadingBar, { isLoading }), filteredItems.map((item, index) => /* @__PURE__ */ React27.createElement(View14, { key: index }, renderItem(item, handleItemSelect)))));
|
|
3822
3850
|
}
|
|
3823
|
-
var
|
|
3851
|
+
var styles19 = StyleSheet23.create({
|
|
3824
3852
|
container: {
|
|
3825
3853
|
position: "relative"
|
|
3826
3854
|
},
|
|
@@ -3866,12 +3894,12 @@ function useContactFilter(webIds, searchText, contactsWithNames) {
|
|
|
3866
3894
|
// components/sharing/agentPermissions/AgentInput.tsx
|
|
3867
3895
|
import { Plus } from "lucide-react-native";
|
|
3868
3896
|
var ContactDropdownItem = ({ webId, onSelect }) => {
|
|
3869
|
-
const { colors } =
|
|
3897
|
+
const { colors } = useTheme16();
|
|
3870
3898
|
return /* @__PURE__ */ React28.createElement(
|
|
3871
3899
|
Pressable3,
|
|
3872
3900
|
{
|
|
3873
3901
|
style: ({ hovered }) => [
|
|
3874
|
-
|
|
3902
|
+
styles20.dropdownItem,
|
|
3875
3903
|
{ borderBottomColor: colors.border },
|
|
3876
3904
|
hovered && { backgroundColor: colors.border }
|
|
3877
3905
|
],
|
|
@@ -3891,7 +3919,7 @@ var AgentInput = ({
|
|
|
3891
3919
|
existingAgents,
|
|
3892
3920
|
className
|
|
3893
3921
|
}) => {
|
|
3894
|
-
const { session } =
|
|
3922
|
+
const { session } = useSolidAuth5();
|
|
3895
3923
|
const [inputValue, setInputValue] = useState8("");
|
|
3896
3924
|
const currentUserProfile = useLinkQuery(
|
|
3897
3925
|
SolidProfileShapeType,
|
|
@@ -3955,7 +3983,7 @@ var AgentInput = ({
|
|
|
3955
3983
|
}
|
|
3956
3984
|
);
|
|
3957
3985
|
};
|
|
3958
|
-
var
|
|
3986
|
+
var styles20 = StyleSheet24.create({
|
|
3959
3987
|
dropdownItem: {
|
|
3960
3988
|
padding: 8,
|
|
3961
3989
|
borderBottomWidth: 1
|
|
@@ -4011,7 +4039,7 @@ import { View as View16 } from "react-native";
|
|
|
4011
4039
|
|
|
4012
4040
|
// components/sharing/PermissionRow.tsx
|
|
4013
4041
|
import React30 from "react";
|
|
4014
|
-
import { StyleSheet as
|
|
4042
|
+
import { StyleSheet as StyleSheet25 } from "react-native";
|
|
4015
4043
|
import { View as View15 } from "react-native";
|
|
4016
4044
|
var PermissionRow = ({
|
|
4017
4045
|
Icon: Icon2,
|
|
@@ -4019,9 +4047,9 @@ var PermissionRow = ({
|
|
|
4019
4047
|
value,
|
|
4020
4048
|
onChange
|
|
4021
4049
|
}) => {
|
|
4022
|
-
return /* @__PURE__ */ React30.createElement(View15, { style:
|
|
4050
|
+
return /* @__PURE__ */ React30.createElement(View15, { style: styles21.container }, /* @__PURE__ */ React30.createElement(View15, { style: styles21.leftSection }, /* @__PURE__ */ React30.createElement(Avatar, { alt: displayName }, /* @__PURE__ */ React30.createElement(AvatarFallback, null, /* @__PURE__ */ React30.createElement(Text2, null, /* @__PURE__ */ React30.createElement(Icon2, null)))), /* @__PURE__ */ React30.createElement(Text2, { bold: true }, displayName)), /* @__PURE__ */ React30.createElement(AccessDropdown, { value, onChange }));
|
|
4023
4051
|
};
|
|
4024
|
-
var
|
|
4052
|
+
var styles21 = StyleSheet25.create({
|
|
4025
4053
|
container: {
|
|
4026
4054
|
flexDirection: "row",
|
|
4027
4055
|
justifyContent: "space-between",
|
|
@@ -4042,7 +4070,7 @@ var WacRuleForm = ({
|
|
|
4042
4070
|
value,
|
|
4043
4071
|
onChange
|
|
4044
4072
|
}) => {
|
|
4045
|
-
return /* @__PURE__ */ React31.createElement(View16, { style:
|
|
4073
|
+
return /* @__PURE__ */ React31.createElement(View16, { style: styles22.container }, /* @__PURE__ */ React31.createElement(
|
|
4046
4074
|
PermissionRow,
|
|
4047
4075
|
{
|
|
4048
4076
|
displayName: "Public Access",
|
|
@@ -4066,7 +4094,7 @@ var WacRuleForm = ({
|
|
|
4066
4094
|
}
|
|
4067
4095
|
));
|
|
4068
4096
|
};
|
|
4069
|
-
var
|
|
4097
|
+
var styles22 = StyleSheet26.create({
|
|
4070
4098
|
container: {
|
|
4071
4099
|
gap: 16,
|
|
4072
4100
|
marginTop: 8,
|
|
@@ -4090,7 +4118,7 @@ var SharingModalProvider = ({
|
|
|
4090
4118
|
children
|
|
4091
4119
|
}) => {
|
|
4092
4120
|
const { targetResource } = useViewContext();
|
|
4093
|
-
const { colors } =
|
|
4121
|
+
const { colors } = useTheme17();
|
|
4094
4122
|
const [isOpen, setIsOpen] = useState9(false);
|
|
4095
4123
|
const [wacResult, setWacResult] = useState9();
|
|
4096
4124
|
const [isLoading, setIsLoading] = useState9(false);
|
|
@@ -4147,7 +4175,7 @@ var SharingModalProvider = ({
|
|
|
4147
4175
|
/* @__PURE__ */ React32.createElement(
|
|
4148
4176
|
ScrollView2,
|
|
4149
4177
|
{
|
|
4150
|
-
style: [{ borderColor: colors.border },
|
|
4178
|
+
style: [{ borderColor: colors.border }, styles23.scrollView]
|
|
4151
4179
|
},
|
|
4152
4180
|
(() => {
|
|
4153
4181
|
if (!wacResult) return /* @__PURE__ */ React32.createElement(React32.Fragment, null);
|
|
@@ -4166,7 +4194,7 @@ var SharingModalProvider = ({
|
|
|
4166
4194
|
))
|
|
4167
4195
|
)), children);
|
|
4168
4196
|
};
|
|
4169
|
-
var
|
|
4197
|
+
var styles23 = StyleSheet27.create({
|
|
4170
4198
|
scrollView: {
|
|
4171
4199
|
flex: 1,
|
|
4172
4200
|
borderTopWidth: 1,
|
|
@@ -4182,14 +4210,14 @@ var styles22 = StyleSheet26.create({
|
|
|
4182
4210
|
|
|
4183
4211
|
// components/nav/header/Header.tsx
|
|
4184
4212
|
var Header = () => {
|
|
4185
|
-
const { session } =
|
|
4213
|
+
const { session } = useSolidAuth6();
|
|
4186
4214
|
const { openSharingModal } = useSharingModal();
|
|
4187
|
-
const { colors } =
|
|
4215
|
+
const { colors } = useTheme18();
|
|
4188
4216
|
return /* @__PURE__ */ React33.createElement(
|
|
4189
4217
|
Card,
|
|
4190
4218
|
{
|
|
4191
4219
|
style: [
|
|
4192
|
-
|
|
4220
|
+
styles24.card,
|
|
4193
4221
|
{ borderBottomWidth: 1, borderBottomColor: colors.border }
|
|
4194
4222
|
]
|
|
4195
4223
|
},
|
|
@@ -4199,7 +4227,7 @@ var Header = () => {
|
|
|
4199
4227
|
{
|
|
4200
4228
|
key: "setMemu",
|
|
4201
4229
|
variant: "ghost",
|
|
4202
|
-
style:
|
|
4230
|
+
style: styles24.shareButton,
|
|
4203
4231
|
onPress: openSharingModal,
|
|
4204
4232
|
iconLeft: UserPlus
|
|
4205
4233
|
}
|
|
@@ -4208,7 +4236,7 @@ var Header = () => {
|
|
|
4208
4236
|
session.isLoggedIn ? /* @__PURE__ */ React33.createElement(AvatarMenu, null) : /* @__PURE__ */ React33.createElement(SignInMenu, null)
|
|
4209
4237
|
);
|
|
4210
4238
|
};
|
|
4211
|
-
var
|
|
4239
|
+
var styles24 = StyleSheet28.create({
|
|
4212
4240
|
card: {
|
|
4213
4241
|
height: 56,
|
|
4214
4242
|
flexDirection: "row",
|
|
@@ -4229,7 +4257,7 @@ var styles23 = StyleSheet27.create({
|
|
|
4229
4257
|
});
|
|
4230
4258
|
|
|
4231
4259
|
// components/nav/Layout.tsx
|
|
4232
|
-
import { View as View18, StyleSheet as
|
|
4260
|
+
import { View as View18, StyleSheet as StyleSheet29 } from "react-native";
|
|
4233
4261
|
|
|
4234
4262
|
// components/nav/DialogProvider.tsx
|
|
4235
4263
|
import React34, {
|
|
@@ -4308,22 +4336,22 @@ var DialogProvider = ({
|
|
|
4308
4336
|
};
|
|
4309
4337
|
|
|
4310
4338
|
// components/nav/Layout.tsx
|
|
4311
|
-
import { useSolidAuth as
|
|
4312
|
-
import { useTheme as
|
|
4339
|
+
import { useSolidAuth as useSolidAuth7 } from "@ldo/solid-react";
|
|
4340
|
+
import { useTheme as useTheme19 } from "@react-navigation/native";
|
|
4313
4341
|
var ValidViewContext = createContext7({});
|
|
4314
4342
|
var Layout = () => {
|
|
4315
|
-
const { ranInitialAuthCheck } =
|
|
4316
|
-
const { colors } =
|
|
4343
|
+
const { ranInitialAuthCheck } = useSolidAuth7();
|
|
4344
|
+
const { colors } = useTheme19();
|
|
4317
4345
|
if (!ranInitialAuthCheck) {
|
|
4318
4346
|
return /* @__PURE__ */ React35.createElement(React35.Fragment, null);
|
|
4319
4347
|
}
|
|
4320
4348
|
return /* @__PURE__ */ React35.createElement(DialogProvider, null, /* @__PURE__ */ React35.createElement(ViewContextProvider, null, /* @__PURE__ */ React35.createElement(SharingModalProvider, null, /* @__PURE__ */ React35.createElement(
|
|
4321
4349
|
View18,
|
|
4322
4350
|
{
|
|
4323
|
-
style: [
|
|
4351
|
+
style: [styles25.container, { backgroundColor: colors.background }]
|
|
4324
4352
|
},
|
|
4325
4353
|
/* @__PURE__ */ React35.createElement(Header, null),
|
|
4326
|
-
/* @__PURE__ */ React35.createElement(View18, { style:
|
|
4354
|
+
/* @__PURE__ */ React35.createElement(View18, { style: styles25.contentView }, /* @__PURE__ */ React35.createElement(RenderView, null))
|
|
4327
4355
|
))));
|
|
4328
4356
|
};
|
|
4329
4357
|
var RenderView = () => {
|
|
@@ -4336,7 +4364,7 @@ var RenderView = () => {
|
|
|
4336
4364
|
const CurView = viewToRender.view;
|
|
4337
4365
|
return /* @__PURE__ */ React35.createElement(CurView, null);
|
|
4338
4366
|
};
|
|
4339
|
-
var
|
|
4367
|
+
var styles25 = StyleSheet29.create({
|
|
4340
4368
|
container: {
|
|
4341
4369
|
flex: 1
|
|
4342
4370
|
},
|
|
@@ -4364,7 +4392,7 @@ var DataBrowser = (props) => {
|
|
|
4364
4392
|
// components/ui/accordion.tsx
|
|
4365
4393
|
import * as AccordionPrimitive from "@rn-primitives/accordion";
|
|
4366
4394
|
import * as React37 from "react";
|
|
4367
|
-
import { Platform as Platform12, Pressable as Pressable4, View as View19, StyleSheet as
|
|
4395
|
+
import { Platform as Platform12, Pressable as Pressable4, View as View19, StyleSheet as StyleSheet30 } from "react-native";
|
|
4368
4396
|
import Animated3, {
|
|
4369
4397
|
Extrapolation,
|
|
4370
4398
|
FadeIn as FadeIn2,
|
|
@@ -4377,7 +4405,7 @@ import Animated3, {
|
|
|
4377
4405
|
withTiming as withTiming2
|
|
4378
4406
|
} from "react-native-reanimated";
|
|
4379
4407
|
import { ChevronDown as ChevronDown3 } from "lucide-react-native";
|
|
4380
|
-
import { useTheme as
|
|
4408
|
+
import { useTheme as useTheme20 } from "@react-navigation/native";
|
|
4381
4409
|
function Accordion({
|
|
4382
4410
|
children,
|
|
4383
4411
|
...props
|
|
@@ -4396,18 +4424,18 @@ function AccordionItem({
|
|
|
4396
4424
|
value,
|
|
4397
4425
|
...props
|
|
4398
4426
|
}) {
|
|
4399
|
-
const { colors } =
|
|
4427
|
+
const { colors } = useTheme20();
|
|
4400
4428
|
return /* @__PURE__ */ React37.createElement(
|
|
4401
4429
|
Animated3.View,
|
|
4402
4430
|
{
|
|
4403
|
-
style: [
|
|
4431
|
+
style: [styles26.itemContainer, { overflow: "hidden" }],
|
|
4404
4432
|
layout: LinearTransition.duration(200)
|
|
4405
4433
|
},
|
|
4406
4434
|
/* @__PURE__ */ React37.createElement(
|
|
4407
4435
|
AccordionPrimitive.Item,
|
|
4408
4436
|
{
|
|
4409
|
-
style:
|
|
4410
|
-
|
|
4437
|
+
style: StyleSheet30.flatten([
|
|
4438
|
+
styles26.item,
|
|
4411
4439
|
{ borderBottomColor: colors.border },
|
|
4412
4440
|
style
|
|
4413
4441
|
]),
|
|
@@ -4423,7 +4451,7 @@ function AccordionTrigger({
|
|
|
4423
4451
|
children,
|
|
4424
4452
|
...props
|
|
4425
4453
|
}) {
|
|
4426
|
-
const { colors } =
|
|
4454
|
+
const { colors } = useTheme20();
|
|
4427
4455
|
const { isExpanded } = AccordionPrimitive.useItemContext();
|
|
4428
4456
|
const progress = useDerivedValue2(
|
|
4429
4457
|
() => isExpanded ? withTiming2(1, { duration: 250 }) : withTiming2(0, { duration: 200 })
|
|
@@ -4437,11 +4465,11 @@ function AccordionTrigger({
|
|
|
4437
4465
|
fontWeight: "500",
|
|
4438
4466
|
color: colors.text
|
|
4439
4467
|
};
|
|
4440
|
-
return /* @__PURE__ */ React37.createElement(TextStyleProvider, { style: textStyles2 }, /* @__PURE__ */ React37.createElement(AccordionPrimitive.Header, { style:
|
|
4468
|
+
return /* @__PURE__ */ React37.createElement(TextStyleProvider, { style: textStyles2 }, /* @__PURE__ */ React37.createElement(AccordionPrimitive.Header, { style: styles26.header }, /* @__PURE__ */ React37.createElement(AccordionPrimitive.Trigger, { ...props, asChild: true }, /* @__PURE__ */ React37.createElement(
|
|
4441
4469
|
Trigger4,
|
|
4442
4470
|
{
|
|
4443
|
-
style:
|
|
4444
|
-
|
|
4471
|
+
style: StyleSheet30.flatten([
|
|
4472
|
+
styles26.trigger,
|
|
4445
4473
|
{ flex: Platform12.OS === "web" ? 1 : void 0 },
|
|
4446
4474
|
style
|
|
4447
4475
|
])
|
|
@@ -4455,7 +4483,7 @@ function AccordionContent({
|
|
|
4455
4483
|
children,
|
|
4456
4484
|
...props
|
|
4457
4485
|
}) {
|
|
4458
|
-
const { colors } =
|
|
4486
|
+
const { colors } = useTheme20();
|
|
4459
4487
|
const textStyles2 = {
|
|
4460
4488
|
fontSize: Platform12.OS === "web" ? 14 : 18,
|
|
4461
4489
|
color: colors.text
|
|
@@ -4463,14 +4491,14 @@ function AccordionContent({
|
|
|
4463
4491
|
return /* @__PURE__ */ React37.createElement(TextStyleProvider, { style: textStyles2 }, /* @__PURE__ */ React37.createElement(
|
|
4464
4492
|
AccordionPrimitive.Content,
|
|
4465
4493
|
{
|
|
4466
|
-
style:
|
|
4467
|
-
|
|
4494
|
+
style: StyleSheet30.flatten([
|
|
4495
|
+
styles26.content,
|
|
4468
4496
|
{ overflow: "hidden" },
|
|
4469
4497
|
style
|
|
4470
4498
|
]),
|
|
4471
4499
|
...props
|
|
4472
4500
|
},
|
|
4473
|
-
/* @__PURE__ */ React37.createElement(InnerContent, { style:
|
|
4501
|
+
/* @__PURE__ */ React37.createElement(InnerContent, { style: styles26.innerContent }, children)
|
|
4474
4502
|
));
|
|
4475
4503
|
}
|
|
4476
4504
|
function InnerContent({
|
|
@@ -4478,19 +4506,19 @@ function InnerContent({
|
|
|
4478
4506
|
style
|
|
4479
4507
|
}) {
|
|
4480
4508
|
if (Platform12.OS === "web") {
|
|
4481
|
-
return /* @__PURE__ */ React37.createElement(View19, { style:
|
|
4509
|
+
return /* @__PURE__ */ React37.createElement(View19, { style: StyleSheet30.flatten([styles26.innerContent, style]) }, children);
|
|
4482
4510
|
}
|
|
4483
4511
|
return /* @__PURE__ */ React37.createElement(
|
|
4484
4512
|
Animated3.View,
|
|
4485
4513
|
{
|
|
4486
4514
|
entering: FadeIn2,
|
|
4487
4515
|
exiting: FadeOutUp.duration(200),
|
|
4488
|
-
style:
|
|
4516
|
+
style: StyleSheet30.flatten([styles26.innerContent, style])
|
|
4489
4517
|
},
|
|
4490
4518
|
children
|
|
4491
4519
|
);
|
|
4492
4520
|
}
|
|
4493
|
-
var
|
|
4521
|
+
var styles26 = StyleSheet30.create({
|
|
4494
4522
|
itemContainer: {
|
|
4495
4523
|
overflow: "hidden"
|
|
4496
4524
|
},
|
|
@@ -4515,9 +4543,9 @@ var styles25 = StyleSheet29.create({
|
|
|
4515
4543
|
});
|
|
4516
4544
|
|
|
4517
4545
|
// components/ui/alert.tsx
|
|
4518
|
-
import { useTheme as
|
|
4546
|
+
import { useTheme as useTheme21 } from "@react-navigation/native";
|
|
4519
4547
|
import * as React38 from "react";
|
|
4520
|
-
import { View as View20, StyleSheet as
|
|
4548
|
+
import { View as View20, StyleSheet as StyleSheet31 } from "react-native";
|
|
4521
4549
|
function Alert({
|
|
4522
4550
|
style,
|
|
4523
4551
|
variant = "default",
|
|
@@ -4526,16 +4554,16 @@ function Alert({
|
|
|
4526
4554
|
iconSize = 16,
|
|
4527
4555
|
...props
|
|
4528
4556
|
}) {
|
|
4529
|
-
const { colors } =
|
|
4557
|
+
const { colors } = useTheme21();
|
|
4530
4558
|
const getAlertStyles = () => {
|
|
4531
4559
|
const baseAlertStyles = {
|
|
4532
4560
|
backgroundColor: colors.background,
|
|
4533
4561
|
borderColor: variant === "destructive" ? colors.notification : colors.border,
|
|
4534
4562
|
shadowColor: colors.text
|
|
4535
4563
|
};
|
|
4536
|
-
return
|
|
4564
|
+
return StyleSheet31.flatten([styles27.base, baseAlertStyles, style]);
|
|
4537
4565
|
};
|
|
4538
|
-
return /* @__PURE__ */ React38.createElement(View20, { role: "alert", style: getAlertStyles(), ...props }, /* @__PURE__ */ React38.createElement(View20, { style:
|
|
4566
|
+
return /* @__PURE__ */ React38.createElement(View20, { role: "alert", style: getAlertStyles(), ...props }, /* @__PURE__ */ React38.createElement(View20, { style: styles27.icon }, /* @__PURE__ */ React38.createElement(
|
|
4539
4567
|
Icon2,
|
|
4540
4568
|
{
|
|
4541
4569
|
size: iconSize,
|
|
@@ -4544,11 +4572,11 @@ function Alert({
|
|
|
4544
4572
|
)), children);
|
|
4545
4573
|
}
|
|
4546
4574
|
function AlertTitle({ style, ...props }) {
|
|
4547
|
-
const { colors } =
|
|
4575
|
+
const { colors } = useTheme21();
|
|
4548
4576
|
return /* @__PURE__ */ React38.createElement(
|
|
4549
4577
|
Text2,
|
|
4550
4578
|
{
|
|
4551
|
-
style:
|
|
4579
|
+
style: StyleSheet31.flatten([styles27.title, { color: colors.text }, style]),
|
|
4552
4580
|
...props
|
|
4553
4581
|
}
|
|
4554
4582
|
);
|
|
@@ -4557,12 +4585,12 @@ function AlertDescription({
|
|
|
4557
4585
|
style,
|
|
4558
4586
|
...props
|
|
4559
4587
|
}) {
|
|
4560
|
-
const { colors } =
|
|
4588
|
+
const { colors } = useTheme21();
|
|
4561
4589
|
return /* @__PURE__ */ React38.createElement(
|
|
4562
4590
|
Text2,
|
|
4563
4591
|
{
|
|
4564
|
-
style:
|
|
4565
|
-
|
|
4592
|
+
style: StyleSheet31.flatten([
|
|
4593
|
+
styles27.description,
|
|
4566
4594
|
{ color: colors.text },
|
|
4567
4595
|
style
|
|
4568
4596
|
]),
|
|
@@ -4570,7 +4598,7 @@ function AlertDescription({
|
|
|
4570
4598
|
}
|
|
4571
4599
|
);
|
|
4572
4600
|
}
|
|
4573
|
-
var
|
|
4601
|
+
var styles27 = StyleSheet31.create({
|
|
4574
4602
|
base: {
|
|
4575
4603
|
position: "relative",
|
|
4576
4604
|
width: "100%",
|
|
@@ -4616,10 +4644,10 @@ var AspectRatio = AspectRatioPrimitive.Root;
|
|
|
4616
4644
|
// components/ui/badge.tsx
|
|
4617
4645
|
import React39 from "react";
|
|
4618
4646
|
import * as Slot2 from "@rn-primitives/slot";
|
|
4619
|
-
import { View as View22, StyleSheet as
|
|
4620
|
-
import { useTheme as
|
|
4647
|
+
import { View as View22, StyleSheet as StyleSheet32 } from "react-native";
|
|
4648
|
+
import { useTheme as useTheme22 } from "@react-navigation/native";
|
|
4621
4649
|
function Badge({ style, variant = "default", asChild, ...props }) {
|
|
4622
|
-
const { colors } =
|
|
4650
|
+
const { colors } = useTheme22();
|
|
4623
4651
|
const Component = asChild ? Slot2.View : View22;
|
|
4624
4652
|
const getVariantStyles = () => {
|
|
4625
4653
|
switch (variant) {
|
|
@@ -4652,18 +4680,18 @@ function Badge({ style, variant = "default", asChild, ...props }) {
|
|
|
4652
4680
|
return colors.background;
|
|
4653
4681
|
}
|
|
4654
4682
|
};
|
|
4655
|
-
const badgeStyle =
|
|
4656
|
-
|
|
4683
|
+
const badgeStyle = StyleSheet32.flatten([
|
|
4684
|
+
styles28.base,
|
|
4657
4685
|
getVariantStyles(),
|
|
4658
4686
|
style
|
|
4659
4687
|
]);
|
|
4660
|
-
const textStyle =
|
|
4688
|
+
const textStyle = StyleSheet32.flatten([
|
|
4661
4689
|
textStyles.base,
|
|
4662
4690
|
{ color: getTextColor() }
|
|
4663
4691
|
]);
|
|
4664
4692
|
return /* @__PURE__ */ React39.createElement(TextStyleProvider, { style: textStyle }, /* @__PURE__ */ React39.createElement(Component, { style: badgeStyle, ...props }));
|
|
4665
4693
|
}
|
|
4666
|
-
var
|
|
4694
|
+
var styles28 = StyleSheet32.create({
|
|
4667
4695
|
base: {
|
|
4668
4696
|
flexDirection: "row",
|
|
4669
4697
|
alignItems: "center",
|
|
@@ -4673,7 +4701,7 @@ var styles27 = StyleSheet31.create({
|
|
|
4673
4701
|
paddingVertical: 2
|
|
4674
4702
|
}
|
|
4675
4703
|
});
|
|
4676
|
-
var textStyles =
|
|
4704
|
+
var textStyles = StyleSheet32.create({
|
|
4677
4705
|
base: {
|
|
4678
4706
|
fontSize: 12,
|
|
4679
4707
|
fontWeight: "600"
|
|
@@ -4691,7 +4719,7 @@ import * as ContextMenuPrimitive from "@rn-primitives/context-menu";
|
|
|
4691
4719
|
import * as React40 from "react";
|
|
4692
4720
|
import {
|
|
4693
4721
|
Platform as Platform13,
|
|
4694
|
-
StyleSheet as
|
|
4722
|
+
StyleSheet as StyleSheet33,
|
|
4695
4723
|
Text as Text5,
|
|
4696
4724
|
View as View23
|
|
4697
4725
|
} from "react-native";
|
|
@@ -4699,7 +4727,7 @@ import { Check as Check3 } from "lucide-react-native";
|
|
|
4699
4727
|
import { ChevronDown as ChevronDown4 } from "lucide-react-native";
|
|
4700
4728
|
import { ChevronRight as ChevronRight3 } from "lucide-react-native";
|
|
4701
4729
|
import { ChevronUp as ChevronUp2 } from "lucide-react-native";
|
|
4702
|
-
import { useTheme as
|
|
4730
|
+
import { useTheme as useTheme23 } from "@react-navigation/native";
|
|
4703
4731
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
4704
4732
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
4705
4733
|
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
@@ -4711,30 +4739,30 @@ function ContextMenuSubTrigger({
|
|
|
4711
4739
|
children,
|
|
4712
4740
|
...props
|
|
4713
4741
|
}) {
|
|
4714
|
-
const { colors } =
|
|
4742
|
+
const { colors } = useTheme23();
|
|
4715
4743
|
const { open } = ContextMenuPrimitive.useSubContext();
|
|
4716
4744
|
const Icon2 = Platform13.OS === "web" ? ChevronRight3 : open ? ChevronUp2 : ChevronDown4;
|
|
4717
4745
|
const textStyles2 = {
|
|
4718
4746
|
fontSize: Platform13.OS === "web" ? 14 : 18,
|
|
4719
4747
|
color: open ? colors.primary : colors.primary
|
|
4720
4748
|
};
|
|
4721
|
-
const triggerStyles =
|
|
4722
|
-
|
|
4749
|
+
const triggerStyles = StyleSheet33.flatten([
|
|
4750
|
+
styles29.subTrigger,
|
|
4723
4751
|
{
|
|
4724
4752
|
backgroundColor: open ? colors.border : "transparent",
|
|
4725
4753
|
paddingLeft: inset ? 32 : 8
|
|
4726
4754
|
},
|
|
4727
4755
|
style
|
|
4728
4756
|
]);
|
|
4729
|
-
return /* @__PURE__ */ React40.createElement(TextStyleProvider, { style: textStyles2 }, /* @__PURE__ */ React40.createElement(ContextMenuPrimitive.SubTrigger, { style: triggerStyles, ...props }, children, /* @__PURE__ */ React40.createElement(Icon2, { size: 18, color: colors.text, style:
|
|
4757
|
+
return /* @__PURE__ */ React40.createElement(TextStyleProvider, { style: textStyles2 }, /* @__PURE__ */ React40.createElement(ContextMenuPrimitive.SubTrigger, { style: triggerStyles, ...props }, children, /* @__PURE__ */ React40.createElement(Icon2, { size: 18, color: colors.text, style: styles29.icon })));
|
|
4730
4758
|
}
|
|
4731
4759
|
function ContextMenuSubContent({
|
|
4732
4760
|
style,
|
|
4733
4761
|
...props
|
|
4734
4762
|
}) {
|
|
4735
|
-
const { colors } =
|
|
4736
|
-
const contentStyles =
|
|
4737
|
-
|
|
4763
|
+
const { colors } = useTheme23();
|
|
4764
|
+
const contentStyles = StyleSheet33.flatten([
|
|
4765
|
+
styles29.subContent,
|
|
4738
4766
|
{
|
|
4739
4767
|
backgroundColor: colors.background,
|
|
4740
4768
|
borderColor: colors.border,
|
|
@@ -4750,9 +4778,9 @@ function ContextMenuContent({
|
|
|
4750
4778
|
portalHost,
|
|
4751
4779
|
...props
|
|
4752
4780
|
}) {
|
|
4753
|
-
const { colors } =
|
|
4754
|
-
const contentStyles =
|
|
4755
|
-
|
|
4781
|
+
const { colors } = useTheme23();
|
|
4782
|
+
const contentStyles = StyleSheet33.flatten([
|
|
4783
|
+
styles29.content,
|
|
4756
4784
|
{
|
|
4757
4785
|
backgroundColor: colors.background,
|
|
4758
4786
|
borderColor: colors.border,
|
|
@@ -4763,10 +4791,10 @@ function ContextMenuContent({
|
|
|
4763
4791
|
return /* @__PURE__ */ React40.createElement(ContextMenuPrimitive.Portal, { hostName: portalHost }, /* @__PURE__ */ React40.createElement(
|
|
4764
4792
|
ContextMenuPrimitive.Overlay,
|
|
4765
4793
|
{
|
|
4766
|
-
style: overlayStyle ?
|
|
4767
|
-
Platform13.OS !== "web" ?
|
|
4794
|
+
style: overlayStyle ? StyleSheet33.flatten([
|
|
4795
|
+
Platform13.OS !== "web" ? StyleSheet33.absoluteFill : void 0,
|
|
4768
4796
|
overlayStyle
|
|
4769
|
-
]) : Platform13.OS !== "web" ?
|
|
4797
|
+
]) : Platform13.OS !== "web" ? StyleSheet33.absoluteFill : void 0
|
|
4770
4798
|
},
|
|
4771
4799
|
/* @__PURE__ */ React40.createElement(ContextMenuPrimitive.Content, { style: contentStyles, ...props })
|
|
4772
4800
|
));
|
|
@@ -4776,13 +4804,13 @@ function ContextMenuItem({
|
|
|
4776
4804
|
inset,
|
|
4777
4805
|
...props
|
|
4778
4806
|
}) {
|
|
4779
|
-
const { colors } =
|
|
4807
|
+
const { colors } = useTheme23();
|
|
4780
4808
|
const textStyles2 = {
|
|
4781
4809
|
fontSize: Platform13.OS === "web" ? 14 : 18,
|
|
4782
4810
|
color: colors.text
|
|
4783
4811
|
};
|
|
4784
|
-
const itemStyles =
|
|
4785
|
-
|
|
4812
|
+
const itemStyles = StyleSheet33.flatten([
|
|
4813
|
+
styles29.item,
|
|
4786
4814
|
{
|
|
4787
4815
|
paddingLeft: inset ? 32 : 8,
|
|
4788
4816
|
opacity: props.disabled ? 0.5 : 1
|
|
@@ -4796,39 +4824,39 @@ function ContextMenuCheckboxItem({
|
|
|
4796
4824
|
children,
|
|
4797
4825
|
...props
|
|
4798
4826
|
}) {
|
|
4799
|
-
const { colors } =
|
|
4800
|
-
const checkboxStyles =
|
|
4801
|
-
|
|
4827
|
+
const { colors } = useTheme23();
|
|
4828
|
+
const checkboxStyles = StyleSheet33.flatten([
|
|
4829
|
+
styles29.checkboxItem,
|
|
4802
4830
|
{
|
|
4803
4831
|
opacity: props.disabled ? 0.5 : 1
|
|
4804
4832
|
},
|
|
4805
4833
|
style
|
|
4806
4834
|
]);
|
|
4807
|
-
return /* @__PURE__ */ React40.createElement(ContextMenuPrimitive.CheckboxItem, { style: checkboxStyles, ...props }, /* @__PURE__ */ React40.createElement(View23, { style:
|
|
4835
|
+
return /* @__PURE__ */ React40.createElement(ContextMenuPrimitive.CheckboxItem, { style: checkboxStyles, ...props }, /* @__PURE__ */ React40.createElement(View23, { style: styles29.checkboxIndicator }, /* @__PURE__ */ React40.createElement(ContextMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React40.createElement(Check3, { size: 14, strokeWidth: 3, color: colors.text }))), children);
|
|
4808
4836
|
}
|
|
4809
4837
|
function ContextMenuRadioItem({
|
|
4810
4838
|
style,
|
|
4811
4839
|
children,
|
|
4812
4840
|
...props
|
|
4813
4841
|
}) {
|
|
4814
|
-
const { colors } =
|
|
4815
|
-
const radioStyles =
|
|
4816
|
-
|
|
4842
|
+
const { colors } = useTheme23();
|
|
4843
|
+
const radioStyles = StyleSheet33.flatten([
|
|
4844
|
+
styles29.radioItem,
|
|
4817
4845
|
{
|
|
4818
4846
|
opacity: props.disabled ? 0.5 : 1
|
|
4819
4847
|
},
|
|
4820
4848
|
style
|
|
4821
4849
|
]);
|
|
4822
|
-
return /* @__PURE__ */ React40.createElement(ContextMenuPrimitive.RadioItem, { style: radioStyles, ...props }, /* @__PURE__ */ React40.createElement(View23, { style:
|
|
4850
|
+
return /* @__PURE__ */ React40.createElement(ContextMenuPrimitive.RadioItem, { style: radioStyles, ...props }, /* @__PURE__ */ React40.createElement(View23, { style: styles29.radioIndicator }, /* @__PURE__ */ React40.createElement(ContextMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React40.createElement(View23, { style: [styles29.radioDot, { backgroundColor: colors.text }] }))), children);
|
|
4823
4851
|
}
|
|
4824
4852
|
function ContextMenuLabel({
|
|
4825
4853
|
style,
|
|
4826
4854
|
inset,
|
|
4827
4855
|
...props
|
|
4828
4856
|
}) {
|
|
4829
|
-
const { colors } =
|
|
4830
|
-
const labelStyles =
|
|
4831
|
-
|
|
4857
|
+
const { colors } = useTheme23();
|
|
4858
|
+
const labelStyles = StyleSheet33.flatten([
|
|
4859
|
+
styles29.label,
|
|
4832
4860
|
{
|
|
4833
4861
|
color: colors.text,
|
|
4834
4862
|
paddingLeft: inset ? 32 : 8
|
|
@@ -4841,9 +4869,9 @@ function ContextMenuSeparator({
|
|
|
4841
4869
|
style,
|
|
4842
4870
|
...props
|
|
4843
4871
|
}) {
|
|
4844
|
-
const { colors } =
|
|
4845
|
-
const separatorStyles =
|
|
4846
|
-
|
|
4872
|
+
const { colors } = useTheme23();
|
|
4873
|
+
const separatorStyles = StyleSheet33.flatten([
|
|
4874
|
+
styles29.separator,
|
|
4847
4875
|
{
|
|
4848
4876
|
backgroundColor: colors.border
|
|
4849
4877
|
},
|
|
@@ -4852,9 +4880,9 @@ function ContextMenuSeparator({
|
|
|
4852
4880
|
return /* @__PURE__ */ React40.createElement(ContextMenuPrimitive.Separator, { style: separatorStyles, ...props });
|
|
4853
4881
|
}
|
|
4854
4882
|
function ContextMenuShortcut({ style, ...props }) {
|
|
4855
|
-
const { colors } =
|
|
4856
|
-
const shortcutStyles =
|
|
4857
|
-
|
|
4883
|
+
const { colors } = useTheme23();
|
|
4884
|
+
const shortcutStyles = StyleSheet33.flatten([
|
|
4885
|
+
styles29.shortcut,
|
|
4858
4886
|
{
|
|
4859
4887
|
color: colors.text
|
|
4860
4888
|
},
|
|
@@ -4862,7 +4890,7 @@ function ContextMenuShortcut({ style, ...props }) {
|
|
|
4862
4890
|
]);
|
|
4863
4891
|
return /* @__PURE__ */ React40.createElement(Text5, { style: shortcutStyles, ...props });
|
|
4864
4892
|
}
|
|
4865
|
-
var
|
|
4893
|
+
var styles29 = StyleSheet33.create({
|
|
4866
4894
|
subTrigger: {
|
|
4867
4895
|
flexDirection: "row",
|
|
4868
4896
|
alignItems: "center",
|
|
@@ -4965,9 +4993,9 @@ var styles28 = StyleSheet32.create({
|
|
|
4965
4993
|
// components/ui/hover-card.tsx
|
|
4966
4994
|
import * as HoverCardPrimitive from "@rn-primitives/hover-card";
|
|
4967
4995
|
import * as React41 from "react";
|
|
4968
|
-
import { Platform as Platform14, StyleSheet as
|
|
4996
|
+
import { Platform as Platform14, StyleSheet as StyleSheet34 } from "react-native";
|
|
4969
4997
|
import Animated4, { FadeIn as FadeIn3 } from "react-native-reanimated";
|
|
4970
|
-
import { useTheme as
|
|
4998
|
+
import { useTheme as useTheme24 } from "@react-navigation/native";
|
|
4971
4999
|
var HoverCard = HoverCardPrimitive.Root;
|
|
4972
5000
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
4973
5001
|
function HoverCardContent({
|
|
@@ -4976,9 +5004,9 @@ function HoverCardContent({
|
|
|
4976
5004
|
sideOffset = 4,
|
|
4977
5005
|
...props
|
|
4978
5006
|
}) {
|
|
4979
|
-
const { colors } =
|
|
4980
|
-
const contentStyles =
|
|
4981
|
-
|
|
5007
|
+
const { colors } = useTheme24();
|
|
5008
|
+
const contentStyles = StyleSheet34.flatten([
|
|
5009
|
+
styles30.content,
|
|
4982
5010
|
{
|
|
4983
5011
|
backgroundColor: colors.background,
|
|
4984
5012
|
borderColor: colors.border,
|
|
@@ -4992,7 +5020,7 @@ function HoverCardContent({
|
|
|
4992
5020
|
return /* @__PURE__ */ React41.createElement(HoverCardPrimitive.Portal, null, /* @__PURE__ */ React41.createElement(
|
|
4993
5021
|
HoverCardPrimitive.Overlay,
|
|
4994
5022
|
{
|
|
4995
|
-
style: Platform14.OS !== "web" ?
|
|
5023
|
+
style: Platform14.OS !== "web" ? StyleSheet34.absoluteFill : void 0
|
|
4996
5024
|
},
|
|
4997
5025
|
/* @__PURE__ */ React41.createElement(Animated4.View, { entering: FadeIn3 }, /* @__PURE__ */ React41.createElement(TextStyleProvider, { style: textStyles2 }, /* @__PURE__ */ React41.createElement(
|
|
4998
5026
|
HoverCardPrimitive.Content,
|
|
@@ -5005,7 +5033,7 @@ function HoverCardContent({
|
|
|
5005
5033
|
)))
|
|
5006
5034
|
));
|
|
5007
5035
|
}
|
|
5008
|
-
var
|
|
5036
|
+
var styles30 = StyleSheet34.create({
|
|
5009
5037
|
content: {
|
|
5010
5038
|
zIndex: 50,
|
|
5011
5039
|
width: 256,
|
|
@@ -5022,7 +5050,7 @@ var styles29 = StyleSheet33.create({
|
|
|
5022
5050
|
// components/ui/label.tsx
|
|
5023
5051
|
import * as LabelPrimitive from "@rn-primitives/label";
|
|
5024
5052
|
import * as React42 from "react";
|
|
5025
|
-
import { StyleSheet as
|
|
5053
|
+
import { StyleSheet as StyleSheet35 } from "react-native";
|
|
5026
5054
|
function Label3({
|
|
5027
5055
|
style,
|
|
5028
5056
|
onPress,
|
|
@@ -5034,7 +5062,7 @@ function Label3({
|
|
|
5034
5062
|
return /* @__PURE__ */ React42.createElement(
|
|
5035
5063
|
LabelPrimitive.Root,
|
|
5036
5064
|
{
|
|
5037
|
-
style:
|
|
5065
|
+
style: styles31.root,
|
|
5038
5066
|
onPress,
|
|
5039
5067
|
onLongPress,
|
|
5040
5068
|
onPressIn,
|
|
@@ -5043,13 +5071,13 @@ function Label3({
|
|
|
5043
5071
|
/* @__PURE__ */ React42.createElement(
|
|
5044
5072
|
LabelPrimitive.Text,
|
|
5045
5073
|
{
|
|
5046
|
-
style:
|
|
5074
|
+
style: StyleSheet35.flatten([styles31.text, style]),
|
|
5047
5075
|
...props
|
|
5048
5076
|
}
|
|
5049
5077
|
)
|
|
5050
5078
|
);
|
|
5051
5079
|
}
|
|
5052
|
-
var
|
|
5080
|
+
var styles31 = StyleSheet35.create({
|
|
5053
5081
|
root: {
|
|
5054
5082
|
// web:cursor-default - handled by platform
|
|
5055
5083
|
},
|
|
@@ -5066,12 +5094,12 @@ var styles30 = StyleSheet34.create({
|
|
|
5066
5094
|
// components/ui/menubar.tsx
|
|
5067
5095
|
import * as MenubarPrimitive from "@rn-primitives/menubar";
|
|
5068
5096
|
import * as React43 from "react";
|
|
5069
|
-
import { Platform as Platform15, Text as Text7, View as View24, StyleSheet as
|
|
5097
|
+
import { Platform as Platform15, Text as Text7, View as View24, StyleSheet as StyleSheet36 } from "react-native";
|
|
5070
5098
|
import { Check as Check4 } from "lucide-react-native";
|
|
5071
5099
|
import { ChevronDown as ChevronDown5 } from "lucide-react-native";
|
|
5072
5100
|
import { ChevronRight as ChevronRight4 } from "lucide-react-native";
|
|
5073
5101
|
import { ChevronUp as ChevronUp3 } from "lucide-react-native";
|
|
5074
|
-
import { useTheme as
|
|
5102
|
+
import { useTheme as useTheme25 } from "@react-navigation/native";
|
|
5075
5103
|
var MenubarMenu = MenubarPrimitive.Menu;
|
|
5076
5104
|
var MenubarGroup = MenubarPrimitive.Group;
|
|
5077
5105
|
var MenubarPortal = MenubarPrimitive.Portal;
|
|
@@ -5081,9 +5109,9 @@ function Menubar({
|
|
|
5081
5109
|
style,
|
|
5082
5110
|
...props
|
|
5083
5111
|
}) {
|
|
5084
|
-
const { colors } =
|
|
5085
|
-
const rootStyles =
|
|
5086
|
-
|
|
5112
|
+
const { colors } = useTheme25();
|
|
5113
|
+
const rootStyles = StyleSheet36.flatten([
|
|
5114
|
+
styles32.root,
|
|
5087
5115
|
{
|
|
5088
5116
|
backgroundColor: colors.background,
|
|
5089
5117
|
borderColor: colors.border
|
|
@@ -5096,11 +5124,11 @@ function MenubarTrigger({
|
|
|
5096
5124
|
style,
|
|
5097
5125
|
...props
|
|
5098
5126
|
}) {
|
|
5099
|
-
const { colors } =
|
|
5127
|
+
const { colors } = useTheme25();
|
|
5100
5128
|
const { value } = MenubarPrimitive.useRootContext();
|
|
5101
5129
|
const { value: itemValue } = MenubarPrimitive.useMenuContext();
|
|
5102
|
-
const triggerStyles =
|
|
5103
|
-
|
|
5130
|
+
const triggerStyles = StyleSheet36.flatten([
|
|
5131
|
+
styles32.trigger,
|
|
5104
5132
|
{
|
|
5105
5133
|
backgroundColor: value === itemValue ? colors.border : "transparent",
|
|
5106
5134
|
color: value === itemValue ? colors.text : colors.text
|
|
@@ -5115,30 +5143,30 @@ function MenubarSubTrigger({
|
|
|
5115
5143
|
children,
|
|
5116
5144
|
...props
|
|
5117
5145
|
}) {
|
|
5118
|
-
const { colors } =
|
|
5146
|
+
const { colors } = useTheme25();
|
|
5119
5147
|
const { open } = MenubarPrimitive.useSubContext();
|
|
5120
5148
|
const Icon2 = Platform15.OS === "web" ? ChevronRight4 : open ? ChevronUp3 : ChevronDown5;
|
|
5121
5149
|
const textStyles2 = {
|
|
5122
5150
|
fontSize: Platform15.OS === "web" ? 14 : 18,
|
|
5123
5151
|
color: open ? colors.primary : colors.primary
|
|
5124
5152
|
};
|
|
5125
|
-
const triggerStyles =
|
|
5126
|
-
|
|
5153
|
+
const triggerStyles = StyleSheet36.flatten([
|
|
5154
|
+
styles32.subTrigger,
|
|
5127
5155
|
{
|
|
5128
5156
|
backgroundColor: open ? colors.border : "transparent",
|
|
5129
5157
|
paddingLeft: inset ? 32 : 8
|
|
5130
5158
|
},
|
|
5131
5159
|
style
|
|
5132
5160
|
]);
|
|
5133
|
-
return /* @__PURE__ */ React43.createElement(TextStyleProvider, { style: textStyles2 }, /* @__PURE__ */ React43.createElement(MenubarPrimitive.SubTrigger, { style: triggerStyles, ...props }, children, /* @__PURE__ */ React43.createElement(Icon2, { size: 18, color: colors.text, style:
|
|
5161
|
+
return /* @__PURE__ */ React43.createElement(TextStyleProvider, { style: textStyles2 }, /* @__PURE__ */ React43.createElement(MenubarPrimitive.SubTrigger, { style: triggerStyles, ...props }, children, /* @__PURE__ */ React43.createElement(Icon2, { size: 18, color: colors.text, style: styles32.icon })));
|
|
5134
5162
|
}
|
|
5135
5163
|
function MenubarSubContent({
|
|
5136
5164
|
style,
|
|
5137
5165
|
...props
|
|
5138
5166
|
}) {
|
|
5139
|
-
const { colors } =
|
|
5140
|
-
const contentStyles =
|
|
5141
|
-
|
|
5167
|
+
const { colors } = useTheme25();
|
|
5168
|
+
const contentStyles = StyleSheet36.flatten([
|
|
5169
|
+
styles32.subContent,
|
|
5142
5170
|
{
|
|
5143
5171
|
backgroundColor: colors.background,
|
|
5144
5172
|
borderColor: colors.border,
|
|
@@ -5153,9 +5181,9 @@ function MenubarContent({
|
|
|
5153
5181
|
portalHost,
|
|
5154
5182
|
...props
|
|
5155
5183
|
}) {
|
|
5156
|
-
const { colors } =
|
|
5157
|
-
const contentStyles =
|
|
5158
|
-
|
|
5184
|
+
const { colors } = useTheme25();
|
|
5185
|
+
const contentStyles = StyleSheet36.flatten([
|
|
5186
|
+
styles32.content,
|
|
5159
5187
|
{
|
|
5160
5188
|
backgroundColor: colors.background,
|
|
5161
5189
|
borderColor: colors.border,
|
|
@@ -5170,13 +5198,13 @@ function MenubarItem({
|
|
|
5170
5198
|
inset,
|
|
5171
5199
|
...props
|
|
5172
5200
|
}) {
|
|
5173
|
-
const { colors } =
|
|
5201
|
+
const { colors } = useTheme25();
|
|
5174
5202
|
const textStyles2 = {
|
|
5175
5203
|
fontSize: Platform15.OS === "web" ? 14 : 18,
|
|
5176
5204
|
color: colors.text
|
|
5177
5205
|
};
|
|
5178
|
-
const itemStyles =
|
|
5179
|
-
|
|
5206
|
+
const itemStyles = StyleSheet36.flatten([
|
|
5207
|
+
styles32.item,
|
|
5180
5208
|
{
|
|
5181
5209
|
paddingLeft: inset ? 32 : 8,
|
|
5182
5210
|
opacity: props.disabled ? 0.5 : 1
|
|
@@ -5191,9 +5219,9 @@ function MenubarCheckboxItem({
|
|
|
5191
5219
|
checked,
|
|
5192
5220
|
...props
|
|
5193
5221
|
}) {
|
|
5194
|
-
const { colors } =
|
|
5195
|
-
const checkboxStyles =
|
|
5196
|
-
|
|
5222
|
+
const { colors } = useTheme25();
|
|
5223
|
+
const checkboxStyles = StyleSheet36.flatten([
|
|
5224
|
+
styles32.checkboxItem,
|
|
5197
5225
|
{
|
|
5198
5226
|
opacity: props.disabled ? 0.5 : 1
|
|
5199
5227
|
},
|
|
@@ -5206,7 +5234,7 @@ function MenubarCheckboxItem({
|
|
|
5206
5234
|
checked,
|
|
5207
5235
|
...props
|
|
5208
5236
|
},
|
|
5209
|
-
/* @__PURE__ */ React43.createElement(View24, { style:
|
|
5237
|
+
/* @__PURE__ */ React43.createElement(View24, { style: styles32.checkboxIndicator }, /* @__PURE__ */ React43.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React43.createElement(Check4, { size: 14, strokeWidth: 3, color: colors.text }))),
|
|
5210
5238
|
children
|
|
5211
5239
|
);
|
|
5212
5240
|
}
|
|
@@ -5215,24 +5243,24 @@ function MenubarRadioItem({
|
|
|
5215
5243
|
children,
|
|
5216
5244
|
...props
|
|
5217
5245
|
}) {
|
|
5218
|
-
const { colors } =
|
|
5219
|
-
const radioStyles =
|
|
5220
|
-
|
|
5246
|
+
const { colors } = useTheme25();
|
|
5247
|
+
const radioStyles = StyleSheet36.flatten([
|
|
5248
|
+
styles32.radioItem,
|
|
5221
5249
|
{
|
|
5222
5250
|
opacity: props.disabled ? 0.5 : 1
|
|
5223
5251
|
},
|
|
5224
5252
|
style
|
|
5225
5253
|
]);
|
|
5226
|
-
return /* @__PURE__ */ React43.createElement(MenubarPrimitive.RadioItem, { style: radioStyles, ...props }, /* @__PURE__ */ React43.createElement(View24, { style:
|
|
5254
|
+
return /* @__PURE__ */ React43.createElement(MenubarPrimitive.RadioItem, { style: radioStyles, ...props }, /* @__PURE__ */ React43.createElement(View24, { style: styles32.radioIndicator }, /* @__PURE__ */ React43.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React43.createElement(View24, { style: [styles32.radioDot, { backgroundColor: colors.text }] }))), children);
|
|
5227
5255
|
}
|
|
5228
5256
|
function MenubarLabel({
|
|
5229
5257
|
style,
|
|
5230
5258
|
inset,
|
|
5231
5259
|
...props
|
|
5232
5260
|
}) {
|
|
5233
|
-
const { colors } =
|
|
5234
|
-
const labelStyles =
|
|
5235
|
-
|
|
5261
|
+
const { colors } = useTheme25();
|
|
5262
|
+
const labelStyles = StyleSheet36.flatten([
|
|
5263
|
+
styles32.label,
|
|
5236
5264
|
{
|
|
5237
5265
|
color: colors.text,
|
|
5238
5266
|
paddingLeft: inset ? 32 : 8
|
|
@@ -5245,9 +5273,9 @@ function MenubarSeparator({
|
|
|
5245
5273
|
style,
|
|
5246
5274
|
...props
|
|
5247
5275
|
}) {
|
|
5248
|
-
const { colors } =
|
|
5249
|
-
const separatorStyles =
|
|
5250
|
-
|
|
5276
|
+
const { colors } = useTheme25();
|
|
5277
|
+
const separatorStyles = StyleSheet36.flatten([
|
|
5278
|
+
styles32.separator,
|
|
5251
5279
|
{
|
|
5252
5280
|
backgroundColor: colors.border
|
|
5253
5281
|
},
|
|
@@ -5256,9 +5284,9 @@ function MenubarSeparator({
|
|
|
5256
5284
|
return /* @__PURE__ */ React43.createElement(MenubarPrimitive.Separator, { style: separatorStyles, ...props });
|
|
5257
5285
|
}
|
|
5258
5286
|
function MenubarShortcut({ style, ...props }) {
|
|
5259
|
-
const { colors } =
|
|
5260
|
-
const shortcutStyles =
|
|
5261
|
-
|
|
5287
|
+
const { colors } = useTheme25();
|
|
5288
|
+
const shortcutStyles = StyleSheet36.flatten([
|
|
5289
|
+
styles32.shortcut,
|
|
5262
5290
|
{
|
|
5263
5291
|
color: colors.text
|
|
5264
5292
|
},
|
|
@@ -5266,7 +5294,7 @@ function MenubarShortcut({ style, ...props }) {
|
|
|
5266
5294
|
]);
|
|
5267
5295
|
return /* @__PURE__ */ React43.createElement(Text7, { style: shortcutStyles, ...props });
|
|
5268
5296
|
}
|
|
5269
|
-
var
|
|
5297
|
+
var styles32 = StyleSheet36.create({
|
|
5270
5298
|
root: {
|
|
5271
5299
|
flexDirection: "row",
|
|
5272
5300
|
height: Platform15.OS === "web" ? 40 : 48,
|
|
@@ -5387,9 +5415,9 @@ var styles31 = StyleSheet35.create({
|
|
|
5387
5415
|
// components/ui/navigation-menu.tsx
|
|
5388
5416
|
import * as NavigationMenuPrimitive from "@rn-primitives/navigation-menu";
|
|
5389
5417
|
import * as React44 from "react";
|
|
5390
|
-
import { Platform as Platform16, View as View25, StyleSheet as
|
|
5418
|
+
import { Platform as Platform16, View as View25, StyleSheet as StyleSheet37, Pressable as Pressable5 } from "react-native";
|
|
5391
5419
|
import { ChevronDown as ChevronDown6 } from "lucide-react-native";
|
|
5392
|
-
import { useTheme as
|
|
5420
|
+
import { useTheme as useTheme26 } from "@react-navigation/native";
|
|
5393
5421
|
function NavigationMenu({
|
|
5394
5422
|
style,
|
|
5395
5423
|
children,
|
|
@@ -5398,7 +5426,7 @@ function NavigationMenu({
|
|
|
5398
5426
|
return /* @__PURE__ */ React44.createElement(
|
|
5399
5427
|
NavigationMenuPrimitive.Root,
|
|
5400
5428
|
{
|
|
5401
|
-
style:
|
|
5429
|
+
style: StyleSheet37.flatten([styles33.navigationMenu, style]),
|
|
5402
5430
|
...props
|
|
5403
5431
|
},
|
|
5404
5432
|
children,
|
|
@@ -5412,7 +5440,7 @@ function NavigationMenuList({
|
|
|
5412
5440
|
return /* @__PURE__ */ React44.createElement(
|
|
5413
5441
|
NavigationMenuPrimitive.List,
|
|
5414
5442
|
{
|
|
5415
|
-
style:
|
|
5443
|
+
style: StyleSheet37.flatten([styles33.navigationMenuList, style]),
|
|
5416
5444
|
...props
|
|
5417
5445
|
}
|
|
5418
5446
|
);
|
|
@@ -5423,7 +5451,7 @@ function NavigationMenuTrigger({
|
|
|
5423
5451
|
children,
|
|
5424
5452
|
...props
|
|
5425
5453
|
}) {
|
|
5426
|
-
const { colors } =
|
|
5454
|
+
const { colors } = useTheme26();
|
|
5427
5455
|
const { value } = NavigationMenuPrimitive.useRootContext();
|
|
5428
5456
|
const { value: itemValue } = NavigationMenuPrimitive.useItemContext();
|
|
5429
5457
|
const isActive = value === itemValue;
|
|
@@ -5431,14 +5459,14 @@ function NavigationMenuTrigger({
|
|
|
5431
5459
|
Pressable5,
|
|
5432
5460
|
{
|
|
5433
5461
|
style: ({ hovered }) => ({
|
|
5434
|
-
...
|
|
5462
|
+
...styles33.trigger,
|
|
5435
5463
|
backgroundColor: isActive ? colors.card : hovered ? colors.border : colors.background,
|
|
5436
5464
|
...style
|
|
5437
5465
|
}),
|
|
5438
5466
|
...props
|
|
5439
5467
|
},
|
|
5440
5468
|
children,
|
|
5441
|
-
/* @__PURE__ */ React44.createElement(View25, { style:
|
|
5469
|
+
/* @__PURE__ */ React44.createElement(View25, { style: styles33.chevronContainer }, /* @__PURE__ */ React44.createElement(ChevronDown6, { size: 12, color: colors.text, "aria-hidden": true }))
|
|
5442
5470
|
));
|
|
5443
5471
|
}
|
|
5444
5472
|
function NavigationMenuContent({
|
|
@@ -5447,12 +5475,12 @@ function NavigationMenuContent({
|
|
|
5447
5475
|
portalHost,
|
|
5448
5476
|
...props
|
|
5449
5477
|
}) {
|
|
5450
|
-
const { colors } =
|
|
5478
|
+
const { colors } = useTheme26();
|
|
5451
5479
|
return /* @__PURE__ */ React44.createElement(NavigationMenuPrimitive.Portal, { hostName: portalHost }, /* @__PURE__ */ React44.createElement(
|
|
5452
5480
|
NavigationMenuPrimitive.Content,
|
|
5453
5481
|
{
|
|
5454
|
-
style:
|
|
5455
|
-
|
|
5482
|
+
style: StyleSheet37.flatten([
|
|
5483
|
+
styles33.content,
|
|
5456
5484
|
{
|
|
5457
5485
|
backgroundColor: colors.background,
|
|
5458
5486
|
borderColor: colors.border
|
|
@@ -5469,12 +5497,12 @@ function NavigationMenuViewport({
|
|
|
5469
5497
|
style,
|
|
5470
5498
|
...props
|
|
5471
5499
|
}) {
|
|
5472
|
-
const { colors } =
|
|
5473
|
-
return /* @__PURE__ */ React44.createElement(View25, { style:
|
|
5500
|
+
const { colors } = useTheme26();
|
|
5501
|
+
return /* @__PURE__ */ React44.createElement(View25, { style: styles33.viewportContainer }, /* @__PURE__ */ React44.createElement(
|
|
5474
5502
|
View25,
|
|
5475
5503
|
{
|
|
5476
|
-
style:
|
|
5477
|
-
|
|
5504
|
+
style: StyleSheet37.flatten([
|
|
5505
|
+
styles33.viewport,
|
|
5478
5506
|
{
|
|
5479
5507
|
backgroundColor: colors.background,
|
|
5480
5508
|
borderColor: colors.border
|
|
@@ -5491,26 +5519,26 @@ function NavigationMenuIndicator({
|
|
|
5491
5519
|
style,
|
|
5492
5520
|
...props
|
|
5493
5521
|
}) {
|
|
5494
|
-
const { colors } =
|
|
5522
|
+
const { colors } = useTheme26();
|
|
5495
5523
|
return /* @__PURE__ */ React44.createElement(
|
|
5496
5524
|
NavigationMenuPrimitive.Indicator,
|
|
5497
5525
|
{
|
|
5498
5526
|
ref,
|
|
5499
|
-
style:
|
|
5527
|
+
style: StyleSheet37.flatten([styles33.indicator, style]),
|
|
5500
5528
|
...props
|
|
5501
5529
|
},
|
|
5502
5530
|
/* @__PURE__ */ React44.createElement(
|
|
5503
5531
|
View25,
|
|
5504
5532
|
{
|
|
5505
|
-
style:
|
|
5506
|
-
|
|
5533
|
+
style: StyleSheet37.flatten([
|
|
5534
|
+
styles33.indicatorArrow,
|
|
5507
5535
|
{ backgroundColor: colors.border }
|
|
5508
5536
|
])
|
|
5509
5537
|
}
|
|
5510
5538
|
)
|
|
5511
5539
|
);
|
|
5512
5540
|
}
|
|
5513
|
-
var
|
|
5541
|
+
var styles33 = StyleSheet37.create({
|
|
5514
5542
|
navigationMenu: {
|
|
5515
5543
|
position: "relative",
|
|
5516
5544
|
zIndex: 10,
|
|
@@ -5610,9 +5638,9 @@ var styles32 = StyleSheet36.create({
|
|
|
5610
5638
|
// components/ui/popover.tsx
|
|
5611
5639
|
import React45 from "react";
|
|
5612
5640
|
import * as PopoverPrimitive from "@rn-primitives/popover";
|
|
5613
|
-
import { Platform as Platform17, StyleSheet as
|
|
5641
|
+
import { Platform as Platform17, StyleSheet as StyleSheet38 } from "react-native";
|
|
5614
5642
|
import Animated5, { FadeIn as FadeIn4, FadeOut as FadeOut2 } from "react-native-reanimated";
|
|
5615
|
-
import { useTheme as
|
|
5643
|
+
import { useTheme as useTheme27 } from "@react-navigation/native";
|
|
5616
5644
|
var Popover = PopoverPrimitive.Root;
|
|
5617
5645
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
5618
5646
|
function PopoverContent({
|
|
@@ -5622,9 +5650,9 @@ function PopoverContent({
|
|
|
5622
5650
|
portalHost,
|
|
5623
5651
|
...props
|
|
5624
5652
|
}) {
|
|
5625
|
-
const { colors } =
|
|
5626
|
-
const contentStyles =
|
|
5627
|
-
|
|
5653
|
+
const { colors } = useTheme27();
|
|
5654
|
+
const contentStyles = StyleSheet38.flatten([
|
|
5655
|
+
styles34.content,
|
|
5628
5656
|
{
|
|
5629
5657
|
backgroundColor: colors.background,
|
|
5630
5658
|
borderColor: colors.border,
|
|
@@ -5638,7 +5666,7 @@ function PopoverContent({
|
|
|
5638
5666
|
return /* @__PURE__ */ React45.createElement(PopoverPrimitive.Portal, { hostName: portalHost }, /* @__PURE__ */ React45.createElement(
|
|
5639
5667
|
PopoverPrimitive.Overlay,
|
|
5640
5668
|
{
|
|
5641
|
-
style: Platform17.OS !== "web" ?
|
|
5669
|
+
style: Platform17.OS !== "web" ? StyleSheet38.absoluteFill : void 0
|
|
5642
5670
|
},
|
|
5643
5671
|
/* @__PURE__ */ React45.createElement(Animated5.View, { entering: FadeIn4.duration(200), exiting: FadeOut2 }, /* @__PURE__ */ React45.createElement(TextStyleProvider, { style: textStyles2 }, /* @__PURE__ */ React45.createElement(
|
|
5644
5672
|
PopoverPrimitive.Content,
|
|
@@ -5651,7 +5679,7 @@ function PopoverContent({
|
|
|
5651
5679
|
)))
|
|
5652
5680
|
));
|
|
5653
5681
|
}
|
|
5654
|
-
var
|
|
5682
|
+
var styles34 = StyleSheet38.create({
|
|
5655
5683
|
content: {
|
|
5656
5684
|
zIndex: 50,
|
|
5657
5685
|
width: 288,
|
|
@@ -5668,7 +5696,7 @@ var styles33 = StyleSheet37.create({
|
|
|
5668
5696
|
// components/ui/progress.tsx
|
|
5669
5697
|
import * as ProgressPrimitive from "@rn-primitives/progress";
|
|
5670
5698
|
import * as React46 from "react";
|
|
5671
|
-
import { Platform as Platform18, View as View26, StyleSheet as
|
|
5699
|
+
import { Platform as Platform18, View as View26, StyleSheet as StyleSheet39 } from "react-native";
|
|
5672
5700
|
import Animated6, {
|
|
5673
5701
|
Extrapolation as Extrapolation2,
|
|
5674
5702
|
interpolate as interpolate2,
|
|
@@ -5676,16 +5704,16 @@ import Animated6, {
|
|
|
5676
5704
|
useDerivedValue as useDerivedValue3,
|
|
5677
5705
|
withSpring
|
|
5678
5706
|
} from "react-native-reanimated";
|
|
5679
|
-
import { useTheme as
|
|
5707
|
+
import { useTheme as useTheme28 } from "@react-navigation/native";
|
|
5680
5708
|
function Progress({
|
|
5681
5709
|
style,
|
|
5682
5710
|
value,
|
|
5683
5711
|
indicatorStyle,
|
|
5684
5712
|
...props
|
|
5685
5713
|
}) {
|
|
5686
|
-
const { colors } =
|
|
5687
|
-
const progressStyles =
|
|
5688
|
-
|
|
5714
|
+
const { colors } = useTheme28();
|
|
5715
|
+
const progressStyles = StyleSheet39.flatten([
|
|
5716
|
+
styles35.progress,
|
|
5689
5717
|
{ backgroundColor: colors.border },
|
|
5690
5718
|
style
|
|
5691
5719
|
]);
|
|
@@ -5695,7 +5723,7 @@ function Indicator4({
|
|
|
5695
5723
|
value,
|
|
5696
5724
|
style
|
|
5697
5725
|
}) {
|
|
5698
|
-
const { colors } =
|
|
5726
|
+
const { colors } = useTheme28();
|
|
5699
5727
|
const progress = useDerivedValue3(() => value ?? 0);
|
|
5700
5728
|
const indicator = useAnimatedStyle3(() => {
|
|
5701
5729
|
return {
|
|
@@ -5709,8 +5737,8 @@ function Indicator4({
|
|
|
5709
5737
|
return /* @__PURE__ */ React46.createElement(
|
|
5710
5738
|
View26,
|
|
5711
5739
|
{
|
|
5712
|
-
style:
|
|
5713
|
-
|
|
5740
|
+
style: StyleSheet39.flatten([
|
|
5741
|
+
styles35.indicatorWeb,
|
|
5714
5742
|
{
|
|
5715
5743
|
transform: `translateX(-${100 - (value ?? 0)}%)`,
|
|
5716
5744
|
backgroundColor: colors.primary
|
|
@@ -5724,16 +5752,16 @@ function Indicator4({
|
|
|
5724
5752
|
return /* @__PURE__ */ React46.createElement(ProgressPrimitive.Indicator, { asChild: true }, /* @__PURE__ */ React46.createElement(
|
|
5725
5753
|
Animated6.View,
|
|
5726
5754
|
{
|
|
5727
|
-
style:
|
|
5755
|
+
style: StyleSheet39.flatten([
|
|
5728
5756
|
indicator,
|
|
5729
|
-
|
|
5757
|
+
styles35.indicator,
|
|
5730
5758
|
{ backgroundColor: colors.primary },
|
|
5731
5759
|
style
|
|
5732
5760
|
])
|
|
5733
5761
|
}
|
|
5734
5762
|
));
|
|
5735
5763
|
}
|
|
5736
|
-
var
|
|
5764
|
+
var styles35 = StyleSheet39.create({
|
|
5737
5765
|
progress: {
|
|
5738
5766
|
position: "relative",
|
|
5739
5767
|
height: 16,
|
|
@@ -5754,8 +5782,8 @@ var styles34 = StyleSheet38.create({
|
|
|
5754
5782
|
// components/ui/radio-group.tsx
|
|
5755
5783
|
import React47 from "react";
|
|
5756
5784
|
import * as RadioGroupPrimitive from "@rn-primitives/radio-group";
|
|
5757
|
-
import { View as View27, StyleSheet as
|
|
5758
|
-
import { useTheme as
|
|
5785
|
+
import { View as View27, StyleSheet as StyleSheet40 } from "react-native";
|
|
5786
|
+
import { useTheme as useTheme29 } from "@react-navigation/native";
|
|
5759
5787
|
function RadioGroup4({
|
|
5760
5788
|
style,
|
|
5761
5789
|
...props
|
|
@@ -5763,7 +5791,7 @@ function RadioGroup4({
|
|
|
5763
5791
|
return /* @__PURE__ */ React47.createElement(
|
|
5764
5792
|
RadioGroupPrimitive.Root,
|
|
5765
5793
|
{
|
|
5766
|
-
style:
|
|
5794
|
+
style: StyleSheet40.flatten([styles36.root, style]),
|
|
5767
5795
|
...props
|
|
5768
5796
|
}
|
|
5769
5797
|
);
|
|
@@ -5772,28 +5800,28 @@ function RadioGroupItem({
|
|
|
5772
5800
|
style,
|
|
5773
5801
|
...props
|
|
5774
5802
|
}) {
|
|
5775
|
-
const { colors } =
|
|
5776
|
-
const itemStyles =
|
|
5777
|
-
|
|
5803
|
+
const { colors } = useTheme29();
|
|
5804
|
+
const itemStyles = StyleSheet40.flatten([
|
|
5805
|
+
styles36.item,
|
|
5778
5806
|
{
|
|
5779
5807
|
borderColor: colors.primary,
|
|
5780
5808
|
opacity: props.disabled ? 0.5 : 1
|
|
5781
5809
|
},
|
|
5782
5810
|
style
|
|
5783
5811
|
]);
|
|
5784
|
-
const indicatorStyles =
|
|
5785
|
-
|
|
5812
|
+
const indicatorStyles = StyleSheet40.flatten([
|
|
5813
|
+
styles36.indicator,
|
|
5786
5814
|
{ backgroundColor: colors.primary }
|
|
5787
5815
|
]);
|
|
5788
|
-
return /* @__PURE__ */ React47.createElement(RadioGroupPrimitive.Item, { style: itemStyles, ...props }, /* @__PURE__ */ React47.createElement(RadioGroupPrimitive.Indicator, { style:
|
|
5816
|
+
return /* @__PURE__ */ React47.createElement(RadioGroupPrimitive.Item, { style: itemStyles, ...props }, /* @__PURE__ */ React47.createElement(RadioGroupPrimitive.Indicator, { style: styles36.indicatorContainer }, /* @__PURE__ */ React47.createElement(View27, { style: indicatorStyles })));
|
|
5789
5817
|
}
|
|
5790
5818
|
function RadioGroupItemWithLabel({
|
|
5791
5819
|
value,
|
|
5792
5820
|
children
|
|
5793
5821
|
}) {
|
|
5794
|
-
return /* @__PURE__ */ React47.createElement(View27, { style:
|
|
5822
|
+
return /* @__PURE__ */ React47.createElement(View27, { style: styles36.itemWithLabel }, /* @__PURE__ */ React47.createElement(RadioGroupItem, { "aria-labelledby": `label-for-${value}`, value }), /* @__PURE__ */ React47.createElement(Label3, { nativeID: `label-for-${value}`, style: styles36.label }, children));
|
|
5795
5823
|
}
|
|
5796
|
-
var
|
|
5824
|
+
var styles36 = StyleSheet40.create({
|
|
5797
5825
|
root: {
|
|
5798
5826
|
gap: 8
|
|
5799
5827
|
},
|
|
@@ -5831,7 +5859,7 @@ var styles35 = StyleSheet39.create({
|
|
|
5831
5859
|
// components/ui/select.tsx
|
|
5832
5860
|
import * as SelectPrimitive from "@rn-primitives/select";
|
|
5833
5861
|
import * as React48 from "react";
|
|
5834
|
-
import { Platform as Platform19, StyleSheet as
|
|
5862
|
+
import { Platform as Platform19, StyleSheet as StyleSheet41, View as View28 } from "react-native";
|
|
5835
5863
|
import Animated7, { FadeIn as FadeIn5, FadeOut as FadeOut3 } from "react-native-reanimated";
|
|
5836
5864
|
import { Check as Check5 } from "lucide-react-native";
|
|
5837
5865
|
import { ChevronDown as ChevronDown7 } from "lucide-react-native";
|
|
@@ -5845,12 +5873,12 @@ function SelectTrigger({
|
|
|
5845
5873
|
children,
|
|
5846
5874
|
...props
|
|
5847
5875
|
}) {
|
|
5848
|
-
const triggerStyle =
|
|
5849
|
-
|
|
5850
|
-
props.disabled &&
|
|
5876
|
+
const triggerStyle = StyleSheet41.flatten([
|
|
5877
|
+
styles37.trigger,
|
|
5878
|
+
props.disabled && styles37.triggerDisabled,
|
|
5851
5879
|
style
|
|
5852
5880
|
]);
|
|
5853
|
-
return /* @__PURE__ */ React48.createElement(SelectPrimitive.Trigger, { ref, style: triggerStyle, ...props }, children, /* @__PURE__ */ React48.createElement(ChevronDown7, { size: 16, "aria-hidden": true, style:
|
|
5881
|
+
return /* @__PURE__ */ React48.createElement(SelectPrimitive.Trigger, { ref, style: triggerStyle, ...props }, children, /* @__PURE__ */ React48.createElement(ChevronDown7, { size: 16, "aria-hidden": true, style: styles37.chevron }));
|
|
5854
5882
|
}
|
|
5855
5883
|
function SelectScrollUpButton({
|
|
5856
5884
|
style,
|
|
@@ -5862,10 +5890,10 @@ function SelectScrollUpButton({
|
|
|
5862
5890
|
return /* @__PURE__ */ React48.createElement(
|
|
5863
5891
|
SelectPrimitive.ScrollUpButton,
|
|
5864
5892
|
{
|
|
5865
|
-
style:
|
|
5893
|
+
style: StyleSheet41.flatten([styles37.scrollButton, style]),
|
|
5866
5894
|
...props
|
|
5867
5895
|
},
|
|
5868
|
-
/* @__PURE__ */ React48.createElement(ChevronUp4, { size: 14, style:
|
|
5896
|
+
/* @__PURE__ */ React48.createElement(ChevronUp4, { size: 14, style: styles37.chevron })
|
|
5869
5897
|
);
|
|
5870
5898
|
}
|
|
5871
5899
|
function SelectScrollDownButton({
|
|
@@ -5878,10 +5906,10 @@ function SelectScrollDownButton({
|
|
|
5878
5906
|
return /* @__PURE__ */ React48.createElement(
|
|
5879
5907
|
SelectPrimitive.ScrollDownButton,
|
|
5880
5908
|
{
|
|
5881
|
-
style:
|
|
5909
|
+
style: StyleSheet41.flatten([styles37.scrollButton, style]),
|
|
5882
5910
|
...props
|
|
5883
5911
|
},
|
|
5884
|
-
/* @__PURE__ */ React48.createElement(ChevronDown7, { size: 14, style:
|
|
5912
|
+
/* @__PURE__ */ React48.createElement(ChevronDown7, { size: 14, style: styles37.chevron })
|
|
5885
5913
|
);
|
|
5886
5914
|
}
|
|
5887
5915
|
function SelectContent({
|
|
@@ -5895,7 +5923,7 @@ function SelectContent({
|
|
|
5895
5923
|
return /* @__PURE__ */ React48.createElement(SelectPrimitive.Portal, { hostName: portalHost }, /* @__PURE__ */ React48.createElement(
|
|
5896
5924
|
SelectPrimitive.Overlay,
|
|
5897
5925
|
{
|
|
5898
|
-
style: Platform19.OS !== "web" ?
|
|
5926
|
+
style: Platform19.OS !== "web" ? StyleSheet41.absoluteFill : void 0
|
|
5899
5927
|
},
|
|
5900
5928
|
/* @__PURE__ */ React48.createElement(
|
|
5901
5929
|
Animated7.View,
|
|
@@ -5907,7 +5935,7 @@ function SelectContent({
|
|
|
5907
5935
|
/* @__PURE__ */ React48.createElement(
|
|
5908
5936
|
SelectPrimitive.Content,
|
|
5909
5937
|
{
|
|
5910
|
-
style:
|
|
5938
|
+
style: StyleSheet41.flatten([styles37.content, style]),
|
|
5911
5939
|
position,
|
|
5912
5940
|
...props
|
|
5913
5941
|
},
|
|
@@ -5915,8 +5943,8 @@ function SelectContent({
|
|
|
5915
5943
|
/* @__PURE__ */ React48.createElement(
|
|
5916
5944
|
SelectPrimitive.Viewport,
|
|
5917
5945
|
{
|
|
5918
|
-
style:
|
|
5919
|
-
|
|
5946
|
+
style: StyleSheet41.flatten([
|
|
5947
|
+
styles37.viewport,
|
|
5920
5948
|
position === "popper" && {
|
|
5921
5949
|
height: "var(--radix-select-trigger-height)",
|
|
5922
5950
|
width: "100%",
|
|
@@ -5938,7 +5966,7 @@ function SelectLabel({
|
|
|
5938
5966
|
return /* @__PURE__ */ React48.createElement(
|
|
5939
5967
|
SelectPrimitive.Label,
|
|
5940
5968
|
{
|
|
5941
|
-
style:
|
|
5969
|
+
style: StyleSheet41.flatten([styles37.label, style]),
|
|
5942
5970
|
...props
|
|
5943
5971
|
}
|
|
5944
5972
|
);
|
|
@@ -5947,19 +5975,19 @@ function SelectItem({
|
|
|
5947
5975
|
style,
|
|
5948
5976
|
...props
|
|
5949
5977
|
}) {
|
|
5950
|
-
const itemStyle =
|
|
5951
|
-
|
|
5952
|
-
props.disabled &&
|
|
5978
|
+
const itemStyle = StyleSheet41.flatten([
|
|
5979
|
+
styles37.item,
|
|
5980
|
+
props.disabled && styles37.itemDisabled,
|
|
5953
5981
|
style
|
|
5954
5982
|
]);
|
|
5955
|
-
return /* @__PURE__ */ React48.createElement(SelectPrimitive.Item, { style: itemStyle, ...props }, /* @__PURE__ */ React48.createElement(View28, { style:
|
|
5983
|
+
return /* @__PURE__ */ React48.createElement(SelectPrimitive.Item, { style: itemStyle, ...props }, /* @__PURE__ */ React48.createElement(View28, { style: styles37.itemIndicator }, /* @__PURE__ */ React48.createElement(SelectPrimitive.ItemIndicator, null, /* @__PURE__ */ React48.createElement(
|
|
5956
5984
|
Check5,
|
|
5957
5985
|
{
|
|
5958
5986
|
size: 16,
|
|
5959
5987
|
strokeWidth: 3,
|
|
5960
5988
|
color: "hsl(var(--popover-foreground))"
|
|
5961
5989
|
}
|
|
5962
|
-
))), /* @__PURE__ */ React48.createElement(SelectPrimitive.ItemText, { style:
|
|
5990
|
+
))), /* @__PURE__ */ React48.createElement(SelectPrimitive.ItemText, { style: styles37.itemText }));
|
|
5963
5991
|
}
|
|
5964
5992
|
function SelectSeparator({
|
|
5965
5993
|
style,
|
|
@@ -5968,12 +5996,12 @@ function SelectSeparator({
|
|
|
5968
5996
|
return /* @__PURE__ */ React48.createElement(
|
|
5969
5997
|
SelectPrimitive.Separator,
|
|
5970
5998
|
{
|
|
5971
|
-
style:
|
|
5999
|
+
style: StyleSheet41.flatten([styles37.separator, style]),
|
|
5972
6000
|
...props
|
|
5973
6001
|
}
|
|
5974
6002
|
);
|
|
5975
6003
|
}
|
|
5976
|
-
var
|
|
6004
|
+
var styles37 = StyleSheet41.create({
|
|
5977
6005
|
trigger: {
|
|
5978
6006
|
flexDirection: "row",
|
|
5979
6007
|
height: 40,
|
|
@@ -6072,14 +6100,14 @@ import Animated8, {
|
|
|
6072
6100
|
withSequence,
|
|
6073
6101
|
withTiming as withTiming3
|
|
6074
6102
|
} from "react-native-reanimated";
|
|
6075
|
-
import { StyleSheet as
|
|
6076
|
-
import { useTheme as
|
|
6103
|
+
import { StyleSheet as StyleSheet42 } from "react-native";
|
|
6104
|
+
import { useTheme as useTheme30 } from "@react-navigation/native";
|
|
6077
6105
|
var duration = 1e3;
|
|
6078
6106
|
function Skeleton({
|
|
6079
6107
|
style,
|
|
6080
6108
|
...props
|
|
6081
6109
|
}) {
|
|
6082
|
-
const { colors } =
|
|
6110
|
+
const { colors } = useTheme30();
|
|
6083
6111
|
const sv = useSharedValue(1);
|
|
6084
6112
|
React49.useEffect(() => {
|
|
6085
6113
|
sv.value = withRepeat(
|
|
@@ -6089,13 +6117,13 @@ function Skeleton({
|
|
|
6089
6117
|
}, []);
|
|
6090
6118
|
const animatedStyle = useAnimatedStyle4(() => ({
|
|
6091
6119
|
opacity: sv.value,
|
|
6092
|
-
...
|
|
6120
|
+
...styles38.skeleton,
|
|
6093
6121
|
backgroundColor: colors.border,
|
|
6094
6122
|
style
|
|
6095
6123
|
}));
|
|
6096
6124
|
return /* @__PURE__ */ React49.createElement(Animated8.View, { style: animatedStyle, ...props });
|
|
6097
6125
|
}
|
|
6098
|
-
var
|
|
6126
|
+
var styles38 = StyleSheet42.create({
|
|
6099
6127
|
skeleton: {
|
|
6100
6128
|
borderRadius: 6
|
|
6101
6129
|
}
|
|
@@ -6104,7 +6132,7 @@ var styles37 = StyleSheet41.create({
|
|
|
6104
6132
|
// components/ui/table.tsx
|
|
6105
6133
|
import * as TablePrimitive from "@rn-primitives/table";
|
|
6106
6134
|
import * as React50 from "react";
|
|
6107
|
-
import { StyleSheet as
|
|
6135
|
+
import { StyleSheet as StyleSheet43 } from "react-native";
|
|
6108
6136
|
function Table({
|
|
6109
6137
|
style,
|
|
6110
6138
|
...props
|
|
@@ -6112,7 +6140,7 @@ function Table({
|
|
|
6112
6140
|
return /* @__PURE__ */ React50.createElement(
|
|
6113
6141
|
TablePrimitive.Root,
|
|
6114
6142
|
{
|
|
6115
|
-
style:
|
|
6143
|
+
style: StyleSheet43.flatten([styles39.table, style]),
|
|
6116
6144
|
...props
|
|
6117
6145
|
}
|
|
6118
6146
|
);
|
|
@@ -6124,7 +6152,7 @@ function TableHeader({
|
|
|
6124
6152
|
return /* @__PURE__ */ React50.createElement(
|
|
6125
6153
|
TablePrimitive.Header,
|
|
6126
6154
|
{
|
|
6127
|
-
style:
|
|
6155
|
+
style: StyleSheet43.flatten([styles39.header, style]),
|
|
6128
6156
|
...props
|
|
6129
6157
|
}
|
|
6130
6158
|
);
|
|
@@ -6136,7 +6164,7 @@ function TableBody({
|
|
|
6136
6164
|
return /* @__PURE__ */ React50.createElement(
|
|
6137
6165
|
TablePrimitive.Body,
|
|
6138
6166
|
{
|
|
6139
|
-
style:
|
|
6167
|
+
style: StyleSheet43.flatten([styles39.body, { minHeight: 2 }, style]),
|
|
6140
6168
|
...props
|
|
6141
6169
|
}
|
|
6142
6170
|
);
|
|
@@ -6148,7 +6176,7 @@ function TableFooter({
|
|
|
6148
6176
|
return /* @__PURE__ */ React50.createElement(
|
|
6149
6177
|
TablePrimitive.Footer,
|
|
6150
6178
|
{
|
|
6151
|
-
style:
|
|
6179
|
+
style: StyleSheet43.flatten([styles39.footer, style]),
|
|
6152
6180
|
...props
|
|
6153
6181
|
}
|
|
6154
6182
|
);
|
|
@@ -6160,7 +6188,7 @@ function TableRow({
|
|
|
6160
6188
|
return /* @__PURE__ */ React50.createElement(
|
|
6161
6189
|
TablePrimitive.Row,
|
|
6162
6190
|
{
|
|
6163
|
-
style:
|
|
6191
|
+
style: StyleSheet43.flatten([styles39.row, style]),
|
|
6164
6192
|
...props
|
|
6165
6193
|
}
|
|
6166
6194
|
);
|
|
@@ -6177,7 +6205,7 @@ function TableHead({
|
|
|
6177
6205
|
/* @__PURE__ */ React50.createElement(
|
|
6178
6206
|
TablePrimitive.Head,
|
|
6179
6207
|
{
|
|
6180
|
-
style:
|
|
6208
|
+
style: StyleSheet43.flatten([styles39.head, style]),
|
|
6181
6209
|
...props
|
|
6182
6210
|
}
|
|
6183
6211
|
)
|
|
@@ -6190,12 +6218,12 @@ function TableCell({
|
|
|
6190
6218
|
return /* @__PURE__ */ React50.createElement(
|
|
6191
6219
|
TablePrimitive.Cell,
|
|
6192
6220
|
{
|
|
6193
|
-
style:
|
|
6221
|
+
style: StyleSheet43.flatten([styles39.cell, style]),
|
|
6194
6222
|
...props
|
|
6195
6223
|
}
|
|
6196
6224
|
);
|
|
6197
6225
|
}
|
|
6198
|
-
var
|
|
6226
|
+
var styles39 = StyleSheet43.create({
|
|
6199
6227
|
table: {
|
|
6200
6228
|
width: "100%",
|
|
6201
6229
|
fontSize: 14
|
|
@@ -6236,7 +6264,7 @@ var styles38 = StyleSheet42.create({
|
|
|
6236
6264
|
// components/ui/tabs.tsx
|
|
6237
6265
|
import * as TabsPrimitive from "@rn-primitives/tabs";
|
|
6238
6266
|
import * as React51 from "react";
|
|
6239
|
-
import { StyleSheet as
|
|
6267
|
+
import { StyleSheet as StyleSheet44 } from "react-native";
|
|
6240
6268
|
var Tabs = TabsPrimitive.Root;
|
|
6241
6269
|
function TabsList({
|
|
6242
6270
|
style,
|
|
@@ -6245,7 +6273,7 @@ function TabsList({
|
|
|
6245
6273
|
return /* @__PURE__ */ React51.createElement(
|
|
6246
6274
|
TabsPrimitive.List,
|
|
6247
6275
|
{
|
|
6248
|
-
style:
|
|
6276
|
+
style: StyleSheet44.flatten([styles40.list, style]),
|
|
6249
6277
|
...props
|
|
6250
6278
|
}
|
|
6251
6279
|
);
|
|
@@ -6256,13 +6284,13 @@ function TabsTrigger({
|
|
|
6256
6284
|
}) {
|
|
6257
6285
|
const { value } = TabsPrimitive.useRootContext();
|
|
6258
6286
|
const isActive = props.value === value;
|
|
6259
|
-
const triggerStyle =
|
|
6260
|
-
|
|
6261
|
-
isActive &&
|
|
6262
|
-
props.disabled &&
|
|
6287
|
+
const triggerStyle = StyleSheet44.flatten([
|
|
6288
|
+
styles40.trigger,
|
|
6289
|
+
isActive && styles40.triggerActive,
|
|
6290
|
+
props.disabled && styles40.triggerDisabled,
|
|
6263
6291
|
style
|
|
6264
6292
|
]);
|
|
6265
|
-
const textStyle = isActive ?
|
|
6293
|
+
const textStyle = isActive ? StyleSheet44.flatten([styles40.triggerText, styles40.triggerTextActive]) : styles40.triggerText;
|
|
6266
6294
|
return /* @__PURE__ */ React51.createElement(TextStyleContext.Provider, { value: { style: textStyle } }, /* @__PURE__ */ React51.createElement(TabsPrimitive.Trigger, { style: triggerStyle, ...props }));
|
|
6267
6295
|
}
|
|
6268
6296
|
function TabsContent({
|
|
@@ -6271,7 +6299,7 @@ function TabsContent({
|
|
|
6271
6299
|
}) {
|
|
6272
6300
|
return /* @__PURE__ */ React51.createElement(TabsPrimitive.Content, { style, ...props });
|
|
6273
6301
|
}
|
|
6274
|
-
var
|
|
6302
|
+
var styles40 = StyleSheet44.create({
|
|
6275
6303
|
list: {
|
|
6276
6304
|
flexDirection: "row",
|
|
6277
6305
|
height: 40,
|
|
@@ -6316,7 +6344,7 @@ var styles39 = StyleSheet43.create({
|
|
|
6316
6344
|
|
|
6317
6345
|
// components/ui/textarea.tsx
|
|
6318
6346
|
import * as React52 from "react";
|
|
6319
|
-
import { TextInput as TextInput2, StyleSheet as
|
|
6347
|
+
import { TextInput as TextInput2, StyleSheet as StyleSheet45 } from "react-native";
|
|
6320
6348
|
function Textarea({
|
|
6321
6349
|
style,
|
|
6322
6350
|
multiline = true,
|
|
@@ -6324,9 +6352,9 @@ function Textarea({
|
|
|
6324
6352
|
placeholderTextColor,
|
|
6325
6353
|
...props
|
|
6326
6354
|
}) {
|
|
6327
|
-
const textareaStyle =
|
|
6328
|
-
|
|
6329
|
-
props.editable === false &&
|
|
6355
|
+
const textareaStyle = StyleSheet45.flatten([
|
|
6356
|
+
styles41.textarea,
|
|
6357
|
+
props.editable === false && styles41.textareaDisabled,
|
|
6330
6358
|
style
|
|
6331
6359
|
]);
|
|
6332
6360
|
return /* @__PURE__ */ React52.createElement(
|
|
@@ -6341,7 +6369,7 @@ function Textarea({
|
|
|
6341
6369
|
}
|
|
6342
6370
|
);
|
|
6343
6371
|
}
|
|
6344
|
-
var
|
|
6372
|
+
var styles41 = StyleSheet45.create({
|
|
6345
6373
|
textarea: {
|
|
6346
6374
|
minHeight: 80,
|
|
6347
6375
|
width: "100%",
|
|
@@ -6364,8 +6392,8 @@ var styles40 = StyleSheet44.create({
|
|
|
6364
6392
|
|
|
6365
6393
|
// components/ui/toggle-group.tsx
|
|
6366
6394
|
import * as React53 from "react";
|
|
6367
|
-
import { StyleSheet as
|
|
6368
|
-
import { useTheme as
|
|
6395
|
+
import { StyleSheet as StyleSheet46 } from "react-native";
|
|
6396
|
+
import { useTheme as useTheme31 } from "@react-navigation/native";
|
|
6369
6397
|
import * as ToggleGroupPrimitive from "@rn-primitives/toggle-group";
|
|
6370
6398
|
var ToggleGroupContext = React53.createContext(null);
|
|
6371
6399
|
function ToggleGroup({
|
|
@@ -6378,7 +6406,7 @@ function ToggleGroup({
|
|
|
6378
6406
|
return /* @__PURE__ */ React53.createElement(
|
|
6379
6407
|
ToggleGroupPrimitive.Root,
|
|
6380
6408
|
{
|
|
6381
|
-
style:
|
|
6409
|
+
style: StyleSheet46.flatten([styles42.root, style]),
|
|
6382
6410
|
...props
|
|
6383
6411
|
},
|
|
6384
6412
|
/* @__PURE__ */ React53.createElement(ToggleGroupContext.Provider, { value: { variant, size } }, children)
|
|
@@ -6400,7 +6428,7 @@ function ToggleGroupItem({
|
|
|
6400
6428
|
size,
|
|
6401
6429
|
...props
|
|
6402
6430
|
}) {
|
|
6403
|
-
const { colors } =
|
|
6431
|
+
const { colors } = useTheme31();
|
|
6404
6432
|
const context = useToggleGroupContext();
|
|
6405
6433
|
const { value } = ToggleGroupPrimitive.useRootContext();
|
|
6406
6434
|
const isSelected = ToggleGroupPrimitive.utils.getIsSelected(
|
|
@@ -6415,23 +6443,23 @@ function ToggleGroupItem({
|
|
|
6415
6443
|
const getSizeStyles = () => {
|
|
6416
6444
|
switch (finalSize) {
|
|
6417
6445
|
case "sm":
|
|
6418
|
-
return
|
|
6446
|
+
return styles42.smItemSize;
|
|
6419
6447
|
case "lg":
|
|
6420
|
-
return
|
|
6448
|
+
return styles42.lgItemSize;
|
|
6421
6449
|
default:
|
|
6422
|
-
return
|
|
6450
|
+
return styles42.defaultItemSize;
|
|
6423
6451
|
}
|
|
6424
6452
|
};
|
|
6425
6453
|
const getVariantStyles = () => {
|
|
6426
6454
|
switch (finalVariant) {
|
|
6427
6455
|
case "outline":
|
|
6428
|
-
return
|
|
6456
|
+
return styles42.outlineItem;
|
|
6429
6457
|
default:
|
|
6430
|
-
return
|
|
6458
|
+
return styles42.defaultItem;
|
|
6431
6459
|
}
|
|
6432
6460
|
};
|
|
6433
|
-
const itemStyles =
|
|
6434
|
-
|
|
6461
|
+
const itemStyles = StyleSheet46.flatten([
|
|
6462
|
+
styles42.item,
|
|
6435
6463
|
getVariantStyles(),
|
|
6436
6464
|
getSizeStyles(),
|
|
6437
6465
|
{
|
|
@@ -6447,10 +6475,10 @@ function ToggleGroupIcon({
|
|
|
6447
6475
|
icon: Icon2,
|
|
6448
6476
|
...props
|
|
6449
6477
|
}) {
|
|
6450
|
-
const { colors } =
|
|
6478
|
+
const { colors } = useTheme31();
|
|
6451
6479
|
return /* @__PURE__ */ React53.createElement(Icon2, { color: colors.text, ...props });
|
|
6452
6480
|
}
|
|
6453
|
-
var
|
|
6481
|
+
var styles42 = StyleSheet46.create({
|
|
6454
6482
|
root: {
|
|
6455
6483
|
flexDirection: "row",
|
|
6456
6484
|
alignItems: "center",
|
|
@@ -6486,8 +6514,8 @@ var styles41 = StyleSheet45.create({
|
|
|
6486
6514
|
// components/ui/toggle.tsx
|
|
6487
6515
|
import * as TogglePrimitive from "@rn-primitives/toggle";
|
|
6488
6516
|
import * as React54 from "react";
|
|
6489
|
-
import { StyleSheet as
|
|
6490
|
-
import { useTheme as
|
|
6517
|
+
import { StyleSheet as StyleSheet47 } from "react-native";
|
|
6518
|
+
import { useTheme as useTheme32 } from "@react-navigation/native";
|
|
6491
6519
|
var toggleVariants = {
|
|
6492
6520
|
default: {
|
|
6493
6521
|
backgroundColor: "transparent"
|
|
@@ -6507,7 +6535,7 @@ function Toggle({
|
|
|
6507
6535
|
size = "default",
|
|
6508
6536
|
...props
|
|
6509
6537
|
}) {
|
|
6510
|
-
const { colors } =
|
|
6538
|
+
const { colors } = useTheme32();
|
|
6511
6539
|
const textStyles2 = {
|
|
6512
6540
|
fontSize: size === "sm" ? 14 : size === "lg" ? 16 : 14,
|
|
6513
6541
|
fontWeight: "500",
|
|
@@ -6516,23 +6544,23 @@ function Toggle({
|
|
|
6516
6544
|
const getSizeStyles = () => {
|
|
6517
6545
|
switch (size) {
|
|
6518
6546
|
case "sm":
|
|
6519
|
-
return
|
|
6547
|
+
return styles43.smSize;
|
|
6520
6548
|
case "lg":
|
|
6521
|
-
return
|
|
6549
|
+
return styles43.lgSize;
|
|
6522
6550
|
default:
|
|
6523
|
-
return
|
|
6551
|
+
return styles43.defaultSize;
|
|
6524
6552
|
}
|
|
6525
6553
|
};
|
|
6526
6554
|
const getVariantStyles = () => {
|
|
6527
6555
|
switch (variant) {
|
|
6528
6556
|
case "outline":
|
|
6529
|
-
return
|
|
6557
|
+
return styles43.outlineVariant;
|
|
6530
6558
|
default:
|
|
6531
|
-
return
|
|
6559
|
+
return styles43.defaultVariant;
|
|
6532
6560
|
}
|
|
6533
6561
|
};
|
|
6534
|
-
const toggleStyles =
|
|
6535
|
-
|
|
6562
|
+
const toggleStyles = StyleSheet47.flatten([
|
|
6563
|
+
styles43.toggle,
|
|
6536
6564
|
getVariantStyles(),
|
|
6537
6565
|
getSizeStyles(),
|
|
6538
6566
|
{
|
|
@@ -6548,10 +6576,10 @@ function ToggleIcon({
|
|
|
6548
6576
|
icon: Icon2,
|
|
6549
6577
|
...props
|
|
6550
6578
|
}) {
|
|
6551
|
-
const { colors } =
|
|
6579
|
+
const { colors } = useTheme32();
|
|
6552
6580
|
return /* @__PURE__ */ React54.createElement(Icon2, { color: colors.text, ...props });
|
|
6553
6581
|
}
|
|
6554
|
-
var
|
|
6582
|
+
var styles43 = StyleSheet47.create({
|
|
6555
6583
|
toggle: {
|
|
6556
6584
|
alignItems: "center",
|
|
6557
6585
|
justifyContent: "center",
|
|
@@ -6581,9 +6609,9 @@ var styles42 = StyleSheet46.create({
|
|
|
6581
6609
|
// components/ui/tooltip.tsx
|
|
6582
6610
|
import * as TooltipPrimitive from "@rn-primitives/tooltip";
|
|
6583
6611
|
import * as React55 from "react";
|
|
6584
|
-
import { Platform as Platform20, StyleSheet as
|
|
6612
|
+
import { Platform as Platform20, StyleSheet as StyleSheet48 } from "react-native";
|
|
6585
6613
|
import Animated9, { FadeIn as FadeIn6, FadeOut as FadeOut4 } from "react-native-reanimated";
|
|
6586
|
-
import { useTheme as
|
|
6614
|
+
import { useTheme as useTheme33 } from "@react-navigation/native";
|
|
6587
6615
|
var Tooltip = TooltipPrimitive.Root;
|
|
6588
6616
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
6589
6617
|
function TooltipContent({
|
|
@@ -6592,9 +6620,9 @@ function TooltipContent({
|
|
|
6592
6620
|
portalHost,
|
|
6593
6621
|
...props
|
|
6594
6622
|
}) {
|
|
6595
|
-
const { colors } =
|
|
6596
|
-
const tooltipStyles =
|
|
6597
|
-
|
|
6623
|
+
const { colors } = useTheme33();
|
|
6624
|
+
const tooltipStyles = StyleSheet48.flatten([
|
|
6625
|
+
styles44.content,
|
|
6598
6626
|
{
|
|
6599
6627
|
backgroundColor: colors.background,
|
|
6600
6628
|
borderColor: colors.border,
|
|
@@ -6609,7 +6637,7 @@ function TooltipContent({
|
|
|
6609
6637
|
return /* @__PURE__ */ React55.createElement(TooltipPrimitive.Portal, { hostName: portalHost }, /* @__PURE__ */ React55.createElement(
|
|
6610
6638
|
TooltipPrimitive.Overlay,
|
|
6611
6639
|
{
|
|
6612
|
-
style: Platform20.OS !== "web" ?
|
|
6640
|
+
style: Platform20.OS !== "web" ? StyleSheet48.absoluteFill : void 0
|
|
6613
6641
|
},
|
|
6614
6642
|
/* @__PURE__ */ React55.createElement(
|
|
6615
6643
|
Animated9.View,
|
|
@@ -6628,7 +6656,7 @@ function TooltipContent({
|
|
|
6628
6656
|
)
|
|
6629
6657
|
));
|
|
6630
6658
|
}
|
|
6631
|
-
var
|
|
6659
|
+
var styles44 = StyleSheet48.create({
|
|
6632
6660
|
content: {
|
|
6633
6661
|
zIndex: 50,
|
|
6634
6662
|
overflow: "hidden",
|
|
@@ -6646,7 +6674,7 @@ var styles43 = StyleSheet47.create({
|
|
|
6646
6674
|
// components/ui/typography.tsx
|
|
6647
6675
|
import * as Slot3 from "@rn-primitives/slot";
|
|
6648
6676
|
import * as React56 from "react";
|
|
6649
|
-
import { Platform as Platform21, Text as RNText2, StyleSheet as
|
|
6677
|
+
import { Platform as Platform21, Text as RNText2, StyleSheet as StyleSheet49 } from "react-native";
|
|
6650
6678
|
function H1({ style, asChild = false, ...props }) {
|
|
6651
6679
|
const Component = asChild ? Slot3.Text : RNText2;
|
|
6652
6680
|
return /* @__PURE__ */ React56.createElement(
|
|
@@ -6654,7 +6682,7 @@ function H1({ style, asChild = false, ...props }) {
|
|
|
6654
6682
|
{
|
|
6655
6683
|
role: "heading",
|
|
6656
6684
|
"aria-level": "1",
|
|
6657
|
-
style:
|
|
6685
|
+
style: StyleSheet49.flatten([styles45.h1, style]),
|
|
6658
6686
|
...props
|
|
6659
6687
|
}
|
|
6660
6688
|
);
|
|
@@ -6666,7 +6694,7 @@ function H2({ style, asChild = false, ...props }) {
|
|
|
6666
6694
|
{
|
|
6667
6695
|
role: "heading",
|
|
6668
6696
|
"aria-level": "2",
|
|
6669
|
-
style:
|
|
6697
|
+
style: StyleSheet49.flatten([styles45.h2, style]),
|
|
6670
6698
|
...props
|
|
6671
6699
|
}
|
|
6672
6700
|
);
|
|
@@ -6678,7 +6706,7 @@ function H3({ style, asChild = false, ...props }) {
|
|
|
6678
6706
|
{
|
|
6679
6707
|
role: "heading",
|
|
6680
6708
|
"aria-level": "3",
|
|
6681
|
-
style:
|
|
6709
|
+
style: StyleSheet49.flatten([styles45.h3, style]),
|
|
6682
6710
|
...props
|
|
6683
6711
|
}
|
|
6684
6712
|
);
|
|
@@ -6690,14 +6718,14 @@ function H4({ style, asChild = false, ...props }) {
|
|
|
6690
6718
|
{
|
|
6691
6719
|
role: "heading",
|
|
6692
6720
|
"aria-level": "4",
|
|
6693
|
-
style:
|
|
6721
|
+
style: StyleSheet49.flatten([styles45.h4, style]),
|
|
6694
6722
|
...props
|
|
6695
6723
|
}
|
|
6696
6724
|
);
|
|
6697
6725
|
}
|
|
6698
6726
|
function P({ style, asChild = false, ...props }) {
|
|
6699
6727
|
const Component = asChild ? Slot3.Text : RNText2;
|
|
6700
|
-
return /* @__PURE__ */ React56.createElement(Component, { style:
|
|
6728
|
+
return /* @__PURE__ */ React56.createElement(Component, { style: StyleSheet49.flatten([styles45.p, style]), ...props });
|
|
6701
6729
|
}
|
|
6702
6730
|
function BlockQuote({ style, asChild = false, ...props }) {
|
|
6703
6731
|
const Component = asChild ? Slot3.Text : RNText2;
|
|
@@ -6705,7 +6733,7 @@ function BlockQuote({ style, asChild = false, ...props }) {
|
|
|
6705
6733
|
Component,
|
|
6706
6734
|
{
|
|
6707
6735
|
role: Platform21.OS === "web" ? "blockquote" : void 0,
|
|
6708
|
-
style:
|
|
6736
|
+
style: StyleSheet49.flatten([styles45.blockquote, style]),
|
|
6709
6737
|
...props
|
|
6710
6738
|
}
|
|
6711
6739
|
);
|
|
@@ -6716,28 +6744,28 @@ function Code({ style, asChild = false, ...props }) {
|
|
|
6716
6744
|
Component,
|
|
6717
6745
|
{
|
|
6718
6746
|
role: Platform21.OS === "web" ? "code" : void 0,
|
|
6719
|
-
style:
|
|
6747
|
+
style: StyleSheet49.flatten([styles45.code, style]),
|
|
6720
6748
|
...props
|
|
6721
6749
|
}
|
|
6722
6750
|
);
|
|
6723
6751
|
}
|
|
6724
6752
|
function Lead({ style, asChild = false, ...props }) {
|
|
6725
6753
|
const Component = asChild ? Slot3.Text : RNText2;
|
|
6726
|
-
return /* @__PURE__ */ React56.createElement(Component, { style:
|
|
6754
|
+
return /* @__PURE__ */ React56.createElement(Component, { style: StyleSheet49.flatten([styles45.lead, style]), ...props });
|
|
6727
6755
|
}
|
|
6728
6756
|
function Large({ style, asChild = false, ...props }) {
|
|
6729
6757
|
const Component = asChild ? Slot3.Text : RNText2;
|
|
6730
|
-
return /* @__PURE__ */ React56.createElement(Component, { style:
|
|
6758
|
+
return /* @__PURE__ */ React56.createElement(Component, { style: StyleSheet49.flatten([styles45.large, style]), ...props });
|
|
6731
6759
|
}
|
|
6732
6760
|
function Small({ style, asChild = false, ...props }) {
|
|
6733
6761
|
const Component = asChild ? Slot3.Text : RNText2;
|
|
6734
|
-
return /* @__PURE__ */ React56.createElement(Component, { style:
|
|
6762
|
+
return /* @__PURE__ */ React56.createElement(Component, { style: StyleSheet49.flatten([styles45.small, style]), ...props });
|
|
6735
6763
|
}
|
|
6736
6764
|
function Muted({ style, asChild = false, ...props }) {
|
|
6737
6765
|
const Component = asChild ? Slot3.Text : RNText2;
|
|
6738
|
-
return /* @__PURE__ */ React56.createElement(Component, { style:
|
|
6766
|
+
return /* @__PURE__ */ React56.createElement(Component, { style: StyleSheet49.flatten([styles45.muted, style]), ...props });
|
|
6739
6767
|
}
|
|
6740
|
-
var
|
|
6768
|
+
var styles45 = StyleSheet49.create({
|
|
6741
6769
|
h1: {
|
|
6742
6770
|
fontSize: 36,
|
|
6743
6771
|
color: "hsl(var(--foreground))",
|
|
@@ -6897,7 +6925,7 @@ import React57, {
|
|
|
6897
6925
|
import {
|
|
6898
6926
|
View as View29,
|
|
6899
6927
|
FlatList,
|
|
6900
|
-
StyleSheet as
|
|
6928
|
+
StyleSheet as StyleSheet50,
|
|
6901
6929
|
Pressable as Pressable6,
|
|
6902
6930
|
ScrollView as ScrollView3,
|
|
6903
6931
|
Platform as Platform22
|
|
@@ -6910,12 +6938,12 @@ import { File } from "lucide-react-native";
|
|
|
6910
6938
|
import { Trash as Trash2 } from "lucide-react-native";
|
|
6911
6939
|
import { Plus as Plus2 } from "lucide-react-native";
|
|
6912
6940
|
import { Notifier } from "react-native-notifier";
|
|
6913
|
-
import { useTheme as
|
|
6941
|
+
import { useTheme as useTheme34 } from "@react-navigation/native";
|
|
6914
6942
|
import { Loader2 } from "lucide-react-native";
|
|
6915
6943
|
var ContainerView = () => {
|
|
6916
6944
|
const { targetResource, navigateTo } = useViewContext();
|
|
6917
6945
|
const { prompt } = useDialog();
|
|
6918
|
-
const { colors } =
|
|
6946
|
+
const { colors } = useTheme34();
|
|
6919
6947
|
const { resourceCreators = [] } = useDataBrowserConfig();
|
|
6920
6948
|
const [isCreating, setIsCreating] = useState11(false);
|
|
6921
6949
|
const [loadingMessages, setLoadingMessages] = useState11([]);
|
|
@@ -6988,14 +7016,14 @@ var ContainerView = () => {
|
|
|
6988
7016
|
}
|
|
6989
7017
|
);
|
|
6990
7018
|
}
|
|
6991
|
-
return /* @__PURE__ */ React57.createElement(View29, { style:
|
|
7019
|
+
return /* @__PURE__ */ React57.createElement(View29, { style: styles46.mainContainer }, /* @__PURE__ */ React57.createElement(View29, { style: styles46.leftPanel }, /* @__PURE__ */ React57.createElement(DropdownMenu, null, /* @__PURE__ */ React57.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React57.createElement(
|
|
6992
7020
|
Button,
|
|
6993
7021
|
{
|
|
6994
7022
|
text: "Create",
|
|
6995
7023
|
iconLeft: Plus2,
|
|
6996
7024
|
disabled: isCreating || availableCreators.length === 0
|
|
6997
7025
|
}
|
|
6998
|
-
)), /* @__PURE__ */ React57.createElement(DropdownMenuContent, { style:
|
|
7026
|
+
)), /* @__PURE__ */ React57.createElement(DropdownMenuContent, { style: styles46.createDropdownContent }, availableCreators.map((creator) => /* @__PURE__ */ React57.createElement(
|
|
6999
7027
|
DropdownMenuItem,
|
|
7000
7028
|
{
|
|
7001
7029
|
key: creator.name,
|
|
@@ -7006,22 +7034,22 @@ var ContainerView = () => {
|
|
|
7006
7034
|
)))), isCreating && /* @__PURE__ */ React57.createElement(
|
|
7007
7035
|
View29,
|
|
7008
7036
|
{
|
|
7009
|
-
style: [
|
|
7037
|
+
style: [styles46.creatingPanel, { backgroundColor: colors.border }]
|
|
7010
7038
|
},
|
|
7011
|
-
/* @__PURE__ */ React57.createElement(View29, { style:
|
|
7039
|
+
/* @__PURE__ */ React57.createElement(View29, { style: styles46.creatingHeader }, /* @__PURE__ */ React57.createElement(Loader2, { size: 16, style: styles46.spinner }), /* @__PURE__ */ React57.createElement(Text2, null, "Creating\u2026")),
|
|
7012
7040
|
loadingMessages.length > 0 && /* @__PURE__ */ React57.createElement(
|
|
7013
7041
|
ScrollView3,
|
|
7014
7042
|
{
|
|
7015
|
-
style:
|
|
7016
|
-
contentContainerStyle:
|
|
7043
|
+
style: styles46.loadingMessages,
|
|
7044
|
+
contentContainerStyle: styles46.loadingMessagesContent
|
|
7017
7045
|
},
|
|
7018
|
-
loadingMessages.map((msg, i) => /* @__PURE__ */ React57.createElement(Text2, { key: i, style:
|
|
7046
|
+
loadingMessages.map((msg, i) => /* @__PURE__ */ React57.createElement(Text2, { key: i, style: styles46.loadingMessageItem }, msg))
|
|
7019
7047
|
)
|
|
7020
7048
|
)), /* @__PURE__ */ React57.createElement(
|
|
7021
7049
|
View29,
|
|
7022
7050
|
{
|
|
7023
7051
|
style: [
|
|
7024
|
-
|
|
7052
|
+
styles46.rightPanel,
|
|
7025
7053
|
{ borderLeftWidth: 1, borderLeftColor: colors.border }
|
|
7026
7054
|
]
|
|
7027
7055
|
},
|
|
@@ -7033,7 +7061,7 @@ var ContainerView = () => {
|
|
|
7033
7061
|
ItemSeparatorComponent: () => /* @__PURE__ */ React57.createElement(
|
|
7034
7062
|
View29,
|
|
7035
7063
|
{
|
|
7036
|
-
style: [
|
|
7064
|
+
style: [styles46.listSeparator, { backgroundColor: colors.border }]
|
|
7037
7065
|
}
|
|
7038
7066
|
),
|
|
7039
7067
|
renderItem: ({ item }) => {
|
|
@@ -7044,14 +7072,14 @@ var ContainerView = () => {
|
|
|
7044
7072
|
{
|
|
7045
7073
|
onPress: () => navigateTo(item.uri),
|
|
7046
7074
|
style: ({ hovered }) => [
|
|
7047
|
-
|
|
7075
|
+
styles46.listItemRow,
|
|
7048
7076
|
hovered && { backgroundColor: colors.border }
|
|
7049
7077
|
]
|
|
7050
7078
|
},
|
|
7051
|
-
/* @__PURE__ */ React57.createElement(View29, { style:
|
|
7079
|
+
/* @__PURE__ */ React57.createElement(View29, { style: styles46.listItem }, /* @__PURE__ */ React57.createElement(View29, { style: styles46.listItemText }, /* @__PURE__ */ React57.createElement(Icon, { icon: TypeIcon, size: 18 }), /* @__PURE__ */ React57.createElement(
|
|
7052
7080
|
Text2,
|
|
7053
7081
|
{
|
|
7054
|
-
style:
|
|
7082
|
+
style: styles46.listItemLabel,
|
|
7055
7083
|
numberOfLines: 1,
|
|
7056
7084
|
ellipsizeMode: "middle"
|
|
7057
7085
|
},
|
|
@@ -7061,7 +7089,7 @@ var ContainerView = () => {
|
|
|
7061
7089
|
{
|
|
7062
7090
|
variant: "ghost",
|
|
7063
7091
|
size: "icon",
|
|
7064
|
-
style:
|
|
7092
|
+
style: styles46.deleteButton,
|
|
7065
7093
|
onPress: () => onDelete(item),
|
|
7066
7094
|
iconLeft: Trash2
|
|
7067
7095
|
}
|
|
@@ -7072,7 +7100,7 @@ var ContainerView = () => {
|
|
|
7072
7100
|
)
|
|
7073
7101
|
));
|
|
7074
7102
|
};
|
|
7075
|
-
var
|
|
7103
|
+
var styles46 = StyleSheet50.create({
|
|
7076
7104
|
mainContainer: {
|
|
7077
7105
|
flex: 1,
|
|
7078
7106
|
flexDirection: "row"
|
|
@@ -7162,13 +7190,13 @@ var ContainerResourceView = {
|
|
|
7162
7190
|
import { User as User2 } from "lucide-react-native";
|
|
7163
7191
|
|
|
7164
7192
|
// resourceViews/Profile/ProfileView.tsx
|
|
7165
|
-
import { ScrollView as ScrollView4, View as View31, StyleSheet as
|
|
7193
|
+
import { ScrollView as ScrollView4, View as View31, StyleSheet as StyleSheet52 } from "react-native";
|
|
7166
7194
|
import React59 from "react";
|
|
7167
7195
|
|
|
7168
7196
|
// resourceViews/Profile/ProfileKnows.tsx
|
|
7169
7197
|
import React58, { useCallback as useCallback11, useState as useState12 } from "react";
|
|
7170
7198
|
import { Plus as Plus3 } from "lucide-react-native";
|
|
7171
|
-
import { View as View30, StyleSheet as
|
|
7199
|
+
import { View as View30, StyleSheet as StyleSheet51 } from "react-native";
|
|
7172
7200
|
import { Trash as Trash3 } from "lucide-react-native";
|
|
7173
7201
|
var ProfileKnows = ({
|
|
7174
7202
|
resource,
|
|
@@ -7182,7 +7210,7 @@ var ProfileKnows = ({
|
|
|
7182
7210
|
});
|
|
7183
7211
|
setNewContact("");
|
|
7184
7212
|
}, [newContact, resource, setProfile]);
|
|
7185
|
-
return /* @__PURE__ */ React58.createElement(View30, { style:
|
|
7213
|
+
return /* @__PURE__ */ React58.createElement(View30, { style: styles47.container }, /* @__PURE__ */ React58.createElement(
|
|
7186
7214
|
Input,
|
|
7187
7215
|
{
|
|
7188
7216
|
placeholder: "https://example.pod/john/profile/card#me",
|
|
@@ -7216,7 +7244,7 @@ var ProfileKnows = ({
|
|
|
7216
7244
|
}
|
|
7217
7245
|
)));
|
|
7218
7246
|
};
|
|
7219
|
-
var
|
|
7247
|
+
var styles47 = StyleSheet51.create({
|
|
7220
7248
|
container: {
|
|
7221
7249
|
gap: 16
|
|
7222
7250
|
// gap-4 equivalent (4 * 4px = 16px)
|
|
@@ -7231,7 +7259,7 @@ var ProfileView = () => {
|
|
|
7231
7259
|
const [profile, setProfile, commitProfile, transactionDataset] = useChangeSubject(SolidProfileShapeType, targetUri);
|
|
7232
7260
|
if (!targetUri || !profileResource || !profile || profileResource.type === "InvalidIdentifierResource")
|
|
7233
7261
|
return /* @__PURE__ */ React59.createElement(React59.Fragment, null);
|
|
7234
|
-
return /* @__PURE__ */ React59.createElement(ScrollView4, { contentContainerStyle:
|
|
7262
|
+
return /* @__PURE__ */ React59.createElement(ScrollView4, { contentContainerStyle: styles48.scrollContainer }, /* @__PURE__ */ React59.createElement(View31, { style: styles48.container }, /* @__PURE__ */ React59.createElement(Text2, { variant: "h1" }, "Profile"), /* @__PURE__ */ React59.createElement(
|
|
7235
7263
|
Input,
|
|
7236
7264
|
{
|
|
7237
7265
|
placeholder: "John Doe",
|
|
@@ -7255,13 +7283,13 @@ var ProfileView = () => {
|
|
|
7255
7283
|
{
|
|
7256
7284
|
disabled: !transactionDataset.hasChanges(),
|
|
7257
7285
|
text: "Update Profile",
|
|
7258
|
-
style:
|
|
7286
|
+
style: styles48.updateButton,
|
|
7259
7287
|
onPress: commitProfile,
|
|
7260
7288
|
isLoading: profileResource.isLoading()
|
|
7261
7289
|
}
|
|
7262
7290
|
)));
|
|
7263
7291
|
};
|
|
7264
|
-
var
|
|
7292
|
+
var styles48 = StyleSheet52.create({
|
|
7265
7293
|
scrollContainer: {
|
|
7266
7294
|
flexDirection: "row",
|
|
7267
7295
|
justifyContent: "center",
|
|
@@ -7297,7 +7325,7 @@ var ProfileResourceView = {
|
|
|
7297
7325
|
import { Code as Code4 } from "lucide-react-native";
|
|
7298
7326
|
|
|
7299
7327
|
// resourceViews/RawCode/RawCodeView.tsx
|
|
7300
|
-
import { useSolidAuth as
|
|
7328
|
+
import { useSolidAuth as useSolidAuth8 } from "@ldo/solid-react";
|
|
7301
7329
|
import React61, {
|
|
7302
7330
|
useCallback as useCallback12,
|
|
7303
7331
|
useEffect as useEffect8,
|
|
@@ -7334,13 +7362,13 @@ var RawCodeEditor = ({
|
|
|
7334
7362
|
};
|
|
7335
7363
|
|
|
7336
7364
|
// resourceViews/RawCode/RawCodeView.tsx
|
|
7337
|
-
import { View as View32, StyleSheet as
|
|
7365
|
+
import { View as View32, StyleSheet as StyleSheet53 } from "react-native";
|
|
7338
7366
|
import { Notifier as Notifier2 } from "react-native-notifier";
|
|
7339
7367
|
import { Save } from "lucide-react-native";
|
|
7340
|
-
import { useTheme as
|
|
7368
|
+
import { useTheme as useTheme35 } from "@react-navigation/native";
|
|
7341
7369
|
var RawCodeView = () => {
|
|
7342
|
-
const { fetch: fetch2 } =
|
|
7343
|
-
const { colors } =
|
|
7370
|
+
const { fetch: fetch2 } = useSolidAuth8();
|
|
7371
|
+
const { colors } = useTheme35();
|
|
7344
7372
|
const [content, setContent] = useState13("");
|
|
7345
7373
|
const [contentType, setContentType] = useState13("");
|
|
7346
7374
|
const [didEdit, setDidEdit] = useState13(false);
|
|
@@ -7389,7 +7417,7 @@ var RawCodeView = () => {
|
|
|
7389
7417
|
useEffect8(() => {
|
|
7390
7418
|
fetchContent();
|
|
7391
7419
|
}, [fetchContent]);
|
|
7392
|
-
return /* @__PURE__ */ React61.createElement(View32, { style: [
|
|
7420
|
+
return /* @__PURE__ */ React61.createElement(View32, { style: [styles49.container, { backgroundColor: colors.background }] }, /* @__PURE__ */ React61.createElement(LoadingBar, { isLoading: isFetching || isSaving }), /* @__PURE__ */ React61.createElement(
|
|
7393
7421
|
RawCodeEditor,
|
|
7394
7422
|
{
|
|
7395
7423
|
value: content,
|
|
@@ -7401,7 +7429,7 @@ var RawCodeView = () => {
|
|
|
7401
7429
|
), /* @__PURE__ */ React61.createElement(
|
|
7402
7430
|
Button,
|
|
7403
7431
|
{
|
|
7404
|
-
style:
|
|
7432
|
+
style: styles49.saveButton,
|
|
7405
7433
|
onPress: submitChanges,
|
|
7406
7434
|
text: "Save Changes",
|
|
7407
7435
|
iconLeft: Save,
|
|
@@ -7410,7 +7438,7 @@ var RawCodeView = () => {
|
|
|
7410
7438
|
}
|
|
7411
7439
|
));
|
|
7412
7440
|
};
|
|
7413
|
-
var
|
|
7441
|
+
var styles49 = StyleSheet53.create({
|
|
7414
7442
|
container: {
|
|
7415
7443
|
flex: 1,
|
|
7416
7444
|
position: "relative"
|
|
@@ -7437,7 +7465,7 @@ import { Image as ImageIcon } from "lucide-react-native";
|
|
|
7437
7465
|
|
|
7438
7466
|
// resourceViews/Image/ImageView.tsx
|
|
7439
7467
|
import React62, { useMemo as useMemo12, useEffect as useEffect9 } from "react";
|
|
7440
|
-
import { View as View33, Image as Image2, StyleSheet as
|
|
7468
|
+
import { View as View33, Image as Image2, StyleSheet as StyleSheet54 } from "react-native";
|
|
7441
7469
|
import { useResource as useResource5 } from "@ldo/solid-react";
|
|
7442
7470
|
var ImageView = () => {
|
|
7443
7471
|
const { targetUri } = useViewContext();
|
|
@@ -7455,32 +7483,32 @@ var ImageView = () => {
|
|
|
7455
7483
|
}, [blobUrl]);
|
|
7456
7484
|
if (!targetUri || !imageResource) return null;
|
|
7457
7485
|
if (imageResource.isLoading?.() ?? imageResource.status?.type === "unfetched") {
|
|
7458
|
-
return /* @__PURE__ */ React62.createElement(View33, { style:
|
|
7486
|
+
return /* @__PURE__ */ React62.createElement(View33, { style: styles50.center }, /* @__PURE__ */ React62.createElement(LoadingBar, { isLoading: true }), /* @__PURE__ */ React62.createElement(Text2, null, "Loading image\u2026"));
|
|
7459
7487
|
}
|
|
7460
7488
|
if (imageResource.status?.isError) {
|
|
7461
|
-
return /* @__PURE__ */ React62.createElement(View33, { style:
|
|
7489
|
+
return /* @__PURE__ */ React62.createElement(View33, { style: styles50.center }, /* @__PURE__ */ React62.createElement(Text2, null, imageResource.status.message ?? "Failed to load image."));
|
|
7462
7490
|
}
|
|
7463
7491
|
if (!imageResource.isBinary()) {
|
|
7464
|
-
return /* @__PURE__ */ React62.createElement(View33, { style:
|
|
7492
|
+
return /* @__PURE__ */ React62.createElement(View33, { style: styles50.center }, /* @__PURE__ */ React62.createElement(Text2, null, "This resource is not a binary image."));
|
|
7465
7493
|
}
|
|
7466
7494
|
const blob = imageResource.getBlob();
|
|
7467
7495
|
if (!blob || !blob.type.startsWith("image/")) {
|
|
7468
|
-
return /* @__PURE__ */ React62.createElement(View33, { style:
|
|
7496
|
+
return /* @__PURE__ */ React62.createElement(View33, { style: styles50.center }, /* @__PURE__ */ React62.createElement(Text2, null, "This binary resource is not an image (", blob?.type ?? "unknown type", ")."));
|
|
7469
7497
|
}
|
|
7470
7498
|
if (!blobUrl) {
|
|
7471
|
-
return /* @__PURE__ */ React62.createElement(View33, { style:
|
|
7499
|
+
return /* @__PURE__ */ React62.createElement(View33, { style: styles50.center }, /* @__PURE__ */ React62.createElement(Text2, null, "Unable to display image."));
|
|
7472
7500
|
}
|
|
7473
|
-
return /* @__PURE__ */ React62.createElement(View33, { style:
|
|
7501
|
+
return /* @__PURE__ */ React62.createElement(View33, { style: styles50.container }, /* @__PURE__ */ React62.createElement(
|
|
7474
7502
|
Image2,
|
|
7475
7503
|
{
|
|
7476
7504
|
source: { uri: blobUrl },
|
|
7477
|
-
style:
|
|
7505
|
+
style: styles50.image,
|
|
7478
7506
|
resizeMode: "contain",
|
|
7479
7507
|
accessibilityLabel: "Image resource"
|
|
7480
7508
|
}
|
|
7481
7509
|
));
|
|
7482
7510
|
};
|
|
7483
|
-
var
|
|
7511
|
+
var styles50 = StyleSheet54.create({
|
|
7484
7512
|
container: {
|
|
7485
7513
|
flex: 1,
|
|
7486
7514
|
padding: 16,
|
|
@@ -7686,6 +7714,7 @@ export {
|
|
|
7686
7714
|
TabsContent,
|
|
7687
7715
|
TabsList,
|
|
7688
7716
|
TabsTrigger,
|
|
7717
|
+
TargetResourceLoader,
|
|
7689
7718
|
TargetResourceProvider,
|
|
7690
7719
|
Text2 as Text,
|
|
7691
7720
|
TextStyleContext,
|