anhedral 0.13.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -229
- package/assets/patches/audit-deps.mjs +12 -2
- package/assets/stack/ai-schema.ts.txt +5 -0
- package/assets/stack/ai.ts.txt +30 -0
- package/assets/stack/api-index.ts.txt +15 -0
- package/assets/stack/auth-features.ts.txt +4 -0
- package/assets/stack/auth-journal.json.txt +13 -0
- package/assets/stack/auth-migration.sql.txt +53 -0
- package/assets/stack/auth-routes.ts.txt +11 -0
- package/assets/stack/auth-schema.ts.txt +64 -0
- package/assets/stack/auth-snapshot.json.txt +346 -0
- package/assets/stack/auth.ts.txt +32 -0
- package/assets/stack/billing-mode.ts.txt +8 -0
- package/assets/stack/billing-schema.ts.txt +11 -0
- package/assets/stack/desktop.rs.txt +21 -0
- package/assets/stack/entitlement-guard.ts.txt +32 -0
- package/assets/stack/entitlements.ts.txt +8 -0
- package/assets/stack/events-schema.ts.txt +12 -0
- package/assets/stack/events.ts.txt +59 -0
- package/assets/stack/mobile-auth.ts.txt +25 -0
- package/assets/stack/mobile-billing.tsx.txt +63 -0
- package/assets/stack/mobile-session.tsx.txt +83 -0
- package/assets/stack/native-button.tsx.txt +108 -0
- package/assets/stack/native-global.css.txt +4 -0
- package/assets/stack/native-lib-utils.ts.txt +5 -0
- package/assets/stack/native-metro.config.js.txt +6 -0
- package/assets/stack/native-nativewind-env.d.ts.txt +1 -0
- package/assets/stack/native-tailwind.config.js.txt +73 -0
- package/assets/stack/native-text.tsx.txt +89 -0
- package/assets/stack/purchases.ts.txt +65 -0
- package/assets/stack/revenuecat.ts.txt +88 -0
- package/assets/stack/rtc-schema.ts.txt +10 -0
- package/assets/stack/rtc.ts.txt +122 -0
- package/assets/stack/security.ts.txt +31 -0
- package/assets/stack/storage.ts.txt +36 -0
- package/assets/stack/stripe.ts.txt +126 -0
- package/assets/stack/web-sign-in.tsx.txt +51 -0
- package/assets/ui/LICENSE.react-native-reusables +21 -0
- package/assets/ui/LICENSE.shadcn +21 -0
- package/assets/ui/UPSTREAM.json +39 -0
- package/assets/ui/catalog.json +891 -0
- package/assets/ui/extensions/registry.json +6 -0
- package/assets/ui/native/_controls.tsx +521 -0
- package/assets/ui/native/_core.tsx +118 -0
- package/assets/ui/native/_data.tsx +200 -0
- package/assets/ui/native/_display.tsx +453 -0
- package/assets/ui/native/_feedback.tsx +242 -0
- package/assets/ui/native/_legacy-dialog.tsx +38 -0
- package/assets/ui/native/_motion.tsx +520 -0
- package/assets/ui/native/_overlay.tsx +402 -0
- package/assets/ui/native/_selection.tsx +366 -0
- package/assets/ui/native/accordion.tsx +1 -0
- package/assets/ui/native/alert-dialog.tsx +11 -0
- package/assets/ui/native/alert.tsx +1 -0
- package/assets/ui/native/aspect-ratio.tsx +1 -0
- package/assets/ui/native/attachment.tsx +8 -0
- package/assets/ui/native/avatar.tsx +8 -0
- package/assets/ui/native/badge.tsx +1 -0
- package/assets/ui/native/breadcrumb.tsx +9 -0
- package/assets/ui/native/bubble.tsx +1 -0
- package/assets/ui/native/button-group.tsx +1 -0
- package/assets/ui/native/button.tsx +86 -0
- package/assets/ui/native/calendar.tsx +170 -0
- package/assets/ui/native/card.tsx +44 -0
- package/assets/ui/native/carousel.tsx +1 -0
- package/assets/ui/native/chart.tsx +193 -0
- package/assets/ui/native/checkbox.tsx +1 -0
- package/assets/ui/native/code-block.tsx +137 -0
- package/assets/ui/native/collapsible.tsx +1 -0
- package/assets/ui/native/combobox.tsx +1 -0
- package/assets/ui/native/command.tsx +11 -0
- package/assets/ui/native/context-menu.tsx +16 -0
- package/assets/ui/native/data-table.tsx +1 -0
- package/assets/ui/native/date-picker.tsx +43 -0
- package/assets/ui/native/dialog.tsx +15 -0
- package/assets/ui/native/direction.tsx +1 -0
- package/assets/ui/native/drawer.tsx +10 -0
- package/assets/ui/native/dropdown-menu.tsx +16 -0
- package/assets/ui/native/empty.tsx +8 -0
- package/assets/ui/native/field.tsx +13 -0
- package/assets/ui/native/hover-card.tsx +1 -0
- package/assets/ui/native/input-group.tsx +8 -0
- package/assets/ui/native/input-otp.tsx +1 -0
- package/assets/ui/native/input.tsx +28 -0
- package/assets/ui/native/item.tsx +12 -0
- package/assets/ui/native/kbd.tsx +1 -0
- package/assets/ui/native/label.tsx +4 -0
- package/assets/ui/native/layout.tsx +26 -0
- package/assets/ui/native/marker.tsx +1 -0
- package/assets/ui/native/menubar.tsx +17 -0
- package/assets/ui/native/message-scroller.tsx +6 -0
- package/assets/ui/native/message.tsx +10 -0
- package/assets/ui/native/native-select.tsx +1 -0
- package/assets/ui/native/navigation-menu.tsx +10 -0
- package/assets/ui/native/pagination.tsx +9 -0
- package/assets/ui/native/popover.tsx +1 -0
- package/assets/ui/native/progress.tsx +1 -0
- package/assets/ui/native/questionnaire.tsx +130 -0
- package/assets/ui/native/radio-group.tsx +1 -0
- package/assets/ui/native/registry.json +1103 -0
- package/assets/ui/native/resizable.tsx +1 -0
- package/assets/ui/native/scroll-area.tsx +1 -0
- package/assets/ui/native/select.tsx +11 -0
- package/assets/ui/native/separator.tsx +1 -0
- package/assets/ui/native/sheet.tsx +10 -0
- package/assets/ui/native/sidebar.tsx +22 -0
- package/assets/ui/native/skeleton.tsx +1 -0
- package/assets/ui/native/slider.tsx +1 -0
- package/assets/ui/native/spinner.tsx +1 -0
- package/assets/ui/native/switch.tsx +1 -0
- package/assets/ui/native/table.tsx +10 -0
- package/assets/ui/native/tabs.tsx +1 -0
- package/assets/ui/native/text.tsx +20 -0
- package/assets/ui/native/textarea.tsx +1 -0
- package/assets/ui/native/theme-switcher.tsx +22 -0
- package/assets/ui/native/toast.tsx +11 -0
- package/assets/ui/native/toggle-group.tsx +1 -0
- package/assets/ui/native/toggle.tsx +1 -0
- package/assets/ui/native/tooltip.tsx +1 -0
- package/assets/ui/native/trace.tsx +20 -0
- package/assets/ui/native/typography.tsx +15 -0
- package/assets/ui/theme-storage.ts +25 -0
- package/assets/ui/theme.tsx +66 -0
- package/assets/ui/web/button.tsx +59 -0
- package/assets/ui/web/input.tsx +21 -0
- package/assets/ui/web/label.tsx +19 -0
- package/dist/bin.js +7 -12
- package/dist/capabilities.d.ts +4 -33
- package/dist/capabilities.js +2 -84
- package/dist/capability-catalog.d.ts +83 -0
- package/dist/capability-catalog.js +121 -0
- package/dist/capability-command.d.ts +3 -0
- package/dist/capability-command.js +188 -0
- package/dist/capability-editor.d.ts +17 -0
- package/dist/capability-editor.js +97 -0
- package/dist/capability-recipes.d.ts +4 -0
- package/dist/capability-recipes.js +520 -0
- package/dist/capability-references.d.ts +4 -0
- package/dist/capability-references.js +7 -0
- package/dist/cli-commands.d.ts +1 -2
- package/dist/cli-commands.js +10 -104
- package/dist/cli-output.d.ts +1 -2
- package/dist/cli-output.js +6 -251
- package/dist/command-schema.js +40 -374
- package/dist/dependencies.d.ts +34 -62
- package/dist/dependencies.js +112 -199
- package/dist/index.d.ts +1 -45
- package/dist/index.js +1 -30
- package/dist/platforms/mobile.js +29 -139
- package/dist/platforms/web.d.ts +3 -0
- package/dist/platforms/web.js +251 -0
- package/dist/project-config.d.ts +2 -13
- package/dist/project-config.js +10 -83
- package/dist/registry/context.js +0 -1
- package/dist/registry/options.js +6 -40
- package/dist/registry/resolve.d.ts +3 -4
- package/dist/registry/resolve.js +18 -108
- package/dist/registry/types.d.ts +1 -7
- package/dist/registry/usage.js +3 -9
- package/dist/runtime-policy.d.ts +0 -2
- package/dist/runtime-policy.js +0 -16
- package/dist/scaffold/backend.d.ts +0 -4
- package/dist/scaffold/backend.js +1 -189
- package/dist/scaffold/bootstrap.d.ts +2 -3
- package/dist/scaffold/bootstrap.js +37 -43
- package/dist/scaffold/compose.js +2 -14
- package/dist/scaffold/database.d.ts +1 -1
- package/dist/scaffold/database.js +19 -126
- package/dist/scaffold/documentation.d.ts +0 -1
- package/dist/scaffold/documentation.js +82 -84
- package/dist/scaffold/expo-runtime.d.ts +2 -2
- package/dist/scaffold/expo-runtime.js +9 -101
- package/dist/scaffold/native-ui.d.ts +2 -0
- package/dist/scaffold/native-ui.js +74 -0
- package/dist/scaffold/stack-documentation.d.ts +0 -1
- package/dist/scaffold/stack-documentation.js +3 -49
- package/dist/scaffold/storage.d.ts +2 -0
- package/dist/scaffold/storage.js +21 -0
- package/dist/scaffold/styling.d.ts +1 -1
- package/dist/scaffold/styling.js +20 -28
- package/dist/scaffold/workspace.js +63 -199
- package/dist/stack-registry.d.ts +2 -58
- package/dist/stack-registry.js +22 -446
- package/dist/standard.js +7 -24
- package/dist/ui-catalog.d.ts +26 -0
- package/dist/ui-catalog.js +31 -0
- package/dist/ui-command.d.ts +3 -0
- package/dist/ui-command.js +219 -0
- package/dist/ui-project.d.ts +22 -0
- package/dist/ui-project.js +110 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/anhedral-stack.md +4 -119
- package/docs/capabilities.md +110 -0
- package/docs/native-ui.md +102 -0
- package/docs/software-factory.md +16 -577
- package/docs/stack-standard.md +11 -307
- package/docs/ui.md +33 -0
- package/docs/verification.md +511 -0
- package/package.json +26 -27
- package/dist/access.d.ts +0 -10
- package/dist/access.js +0 -93
- package/dist/auth-schema-snapshot.d.ts +0 -346
- package/dist/auth-schema-snapshot.js +0 -347
- package/dist/auth-schema.d.ts +0 -1
- package/dist/auth-schema.js +0 -57
- package/dist/capability-contract.d.ts +0 -47
- package/dist/capability-contract.js +0 -168
- package/dist/catalog-model.d.ts +0 -24
- package/dist/catalog-model.js +0 -1
- package/dist/catalog-registration.d.ts +0 -16
- package/dist/catalog-registration.js +0 -22
- package/dist/catalog-snapshot.d.ts +0 -5
- package/dist/catalog-snapshot.js +0 -97
- package/dist/cli-delivery.d.ts +0 -3
- package/dist/cli-delivery.js +0 -172
- package/dist/cloudflare.d.ts +0 -25
- package/dist/cloudflare.js +0 -226
- package/dist/delivery-evidence.d.ts +0 -62
- package/dist/delivery-evidence.js +0 -186
- package/dist/delivery.d.ts +0 -88
- package/dist/delivery.js +0 -570
- package/dist/inspector-model.d.ts +0 -123
- package/dist/inspector-model.js +0 -1
- package/dist/integration-service-readers.d.ts +0 -13
- package/dist/integration-service-readers.js +0 -173
- package/dist/lifecycle-model.d.ts +0 -15
- package/dist/lifecycle-model.js +0 -20
- package/dist/lifecycle.d.ts +0 -11
- package/dist/lifecycle.js +0 -91
- package/dist/management.d.ts +0 -3
- package/dist/management.js +0 -47
- package/dist/mobile-delivery.d.ts +0 -77
- package/dist/mobile-delivery.js +0 -366
- package/dist/neon-service-data.d.ts +0 -8
- package/dist/neon-service-data.js +0 -117
- package/dist/platforms/desktop.d.ts +0 -2
- package/dist/platforms/desktop.js +0 -415
- package/dist/platforms/extension.d.ts +0 -2
- package/dist/platforms/extension.js +0 -328
- package/dist/project-catalog.d.ts +0 -41
- package/dist/project-catalog.js +0 -288
- package/dist/project-inspector.d.ts +0 -4
- package/dist/project-inspector.js +0 -702
- package/dist/project-lifecycle.d.ts +0 -25
- package/dist/project-lifecycle.js +0 -57
- package/dist/project-state.d.ts +0 -49
- package/dist/project-state.js +0 -563
- package/dist/provider-auth.d.ts +0 -41
- package/dist/provider-auth.js +0 -215
- package/dist/provider-readiness.d.ts +0 -30
- package/dist/provider-readiness.js +0 -104
- package/dist/providers/adapters.d.ts +0 -17
- package/dist/providers/adapters.js +0 -278
- package/dist/providers/api.d.ts +0 -29
- package/dist/providers/api.js +0 -253
- package/dist/providers/config.d.ts +0 -15
- package/dist/providers/config.js +0 -182
- package/dist/providers/definitions.d.ts +0 -318
- package/dist/providers/definitions.js +0 -127
- package/dist/providers/provision.d.ts +0 -24
- package/dist/providers/provision.js +0 -76
- package/dist/providers/receipts.d.ts +0 -20
- package/dist/providers/receipts.js +0 -66
- package/dist/providers/recovery-verification.d.ts +0 -7
- package/dist/providers/recovery-verification.js +0 -112
- package/dist/providers/recovery.d.ts +0 -30
- package/dist/providers/recovery.js +0 -34
- package/dist/providers/runtime.d.ts +0 -10
- package/dist/providers/runtime.js +0 -265
- package/dist/providers/schema.d.ts +0 -28
- package/dist/providers/schema.js +0 -49
- package/dist/providers/state.d.ts +0 -55
- package/dist/providers/state.js +0 -289
- package/dist/provision.d.ts +0 -55
- package/dist/provision.js +0 -284
- package/dist/r2-service-data.d.ts +0 -2
- package/dist/r2-service-data.js +0 -136
- package/dist/readiness.d.ts +0 -23
- package/dist/readiness.js +0 -122
- package/dist/registry/add.d.ts +0 -24
- package/dist/registry/add.js +0 -270
- package/dist/registry/bootstrap.d.ts +0 -2
- package/dist/registry/bootstrap.js +0 -14
- package/dist/registry/commands.d.ts +0 -3
- package/dist/registry/commands.js +0 -85
- package/dist/registry/presets.d.ts +0 -4
- package/dist/registry/presets.js +0 -41
- package/dist/registry/preview.d.ts +0 -11
- package/dist/registry/preview.js +0 -91
- package/dist/registry/receipt.d.ts +0 -3
- package/dist/registry/receipt.js +0 -68
- package/dist/repository.d.ts +0 -24
- package/dist/repository.js +0 -96
- package/dist/scaffold/auth.d.ts +0 -3
- package/dist/scaffold/auth.js +0 -151
- package/dist/scaffold/billing-config.d.ts +0 -1
- package/dist/scaffold/billing-config.js +0 -73
- package/dist/scaffold/billing-contracts.d.ts +0 -2
- package/dist/scaffold/billing-contracts.js +0 -48
- package/dist/scaffold/billing-providers.d.ts +0 -1
- package/dist/scaffold/billing-providers.js +0 -249
- package/dist/scaffold/billing-schema.d.ts +0 -1
- package/dist/scaffold/billing-schema.js +0 -34
- package/dist/scaffold/billing-security.d.ts +0 -1
- package/dist/scaffold/billing-security.js +0 -46
- package/dist/scaffold/billing-server.d.ts +0 -1
- package/dist/scaffold/billing-server.js +0 -139
- package/dist/scaffold/billing-store.d.ts +0 -1
- package/dist/scaffold/billing-store.js +0 -72
- package/dist/scaffold/billing.d.ts +0 -2
- package/dist/scaffold/billing.js +0 -216
- package/dist/scaffold/cloudflare-services.d.ts +0 -8
- package/dist/scaffold/cloudflare-services.js +0 -198
- package/dist/scaffold/expo-auth.d.ts +0 -3
- package/dist/scaffold/expo-auth.js +0 -192
- package/dist/scaffold/expo-billing.d.ts +0 -3
- package/dist/scaffold/expo-billing.js +0 -292
- package/dist/scaffold/integrations.d.ts +0 -4
- package/dist/scaffold/integrations.js +0 -12
- package/dist/scaffold/lint.d.ts +0 -4
- package/dist/scaffold/lint.js +0 -56
- package/dist/scaffold/neon-realtime.d.ts +0 -2
- package/dist/scaffold/neon-realtime.js +0 -97
- package/dist/scaffold/services.d.ts +0 -5
- package/dist/scaffold/services.js +0 -108
- package/dist/scaffold/stream.d.ts +0 -2
- package/dist/scaffold/stream.js +0 -114
- package/dist/scaffold/void.d.ts +0 -4
- package/dist/scaffold/void.js +0 -264
- package/dist/scaffold/web.d.ts +0 -2
- package/dist/scaffold/web.js +0 -130
- package/dist/service-deletion.d.ts +0 -29
- package/dist/service-deletion.js +0 -195
- package/dist/service-descriptor.d.ts +0 -10
- package/dist/service-descriptor.js +0 -78
- package/dist/service-model.d.ts +0 -49
- package/dist/service-model.js +0 -8
- package/dist/service-operations.d.ts +0 -29
- package/dist/service-operations.js +0 -78
- package/dist/service-readers.d.ts +0 -8
- package/dist/service-readers.js +0 -247
- package/dist/services-command.d.ts +0 -39
- package/dist/services-command.js +0 -102
- package/dist/ship.d.ts +0 -348
- package/dist/ship.js +0 -239
- package/dist/vercel-project.d.ts +0 -101
- package/dist/vercel-project.js +0 -305
- package/dist/vercel.d.ts +0 -67
- package/dist/vercel.js +0 -581
- package/dist/vinext.d.ts +0 -2
- package/dist/vinext.js +0 -86
- package/dist/void-execution.d.ts +0 -10
- package/dist/void-execution.js +0 -94
- package/dist/void-migrations.d.ts +0 -6
- package/dist/void-migrations.js +0 -110
- package/dist/void-state.d.ts +0 -16
- package/dist/void-state.js +0 -65
- package/dist/void.d.ts +0 -3
- package/dist/void.js +0 -5
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { View, type ViewProps } from 'react-native';
|
|
2
|
+
import { Text, type TextProps } from './text';
|
|
3
|
+
import { content } from './_core';
|
|
4
|
+
import { useTheme } from '../theme';
|
|
5
|
+
export function Card({ style, children, ...props }: ViewProps) {
|
|
6
|
+
const { colors } = useTheme();
|
|
7
|
+
return (
|
|
8
|
+
<View
|
|
9
|
+
{...props}
|
|
10
|
+
style={[
|
|
11
|
+
{
|
|
12
|
+
backgroundColor: colors.card,
|
|
13
|
+
borderWidth: 1,
|
|
14
|
+
borderColor: colors.border,
|
|
15
|
+
borderRadius: 12,
|
|
16
|
+
paddingVertical: 16,
|
|
17
|
+
gap: 16,
|
|
18
|
+
},
|
|
19
|
+
style,
|
|
20
|
+
]}
|
|
21
|
+
>
|
|
22
|
+
{content(children)}
|
|
23
|
+
</View>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
export function CardContent({ style, children, ...props }: ViewProps) {
|
|
27
|
+
return (
|
|
28
|
+
<View {...props} style={[{ paddingHorizontal: 16, gap: 12 }, style]}>
|
|
29
|
+
{content(children)}
|
|
30
|
+
</View>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
export const CardHeader = CardContent;
|
|
34
|
+
export const CardFooter = CardContent;
|
|
35
|
+
export function CardTitle(props: TextProps) {
|
|
36
|
+
return <Text accessibilityRole="header" variant="title" {...props} />;
|
|
37
|
+
}
|
|
38
|
+
export function CardDescription(props: TextProps) {
|
|
39
|
+
return <Text variant="muted" {...props} />;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CardAction(props: ViewProps) {
|
|
43
|
+
return <View {...props} style={[{ alignSelf: 'flex-end' }, props.style]} />;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext } from './_motion';
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { useState, type ReactNode } from 'react';
|
|
2
|
+
import { View, Pressable, type ViewProps } from 'react-native';
|
|
3
|
+
import Svg, { Rect, Path, Circle, Polygon } from 'react-native-svg';
|
|
4
|
+
import { Box, LabelText, Muted, row, useControllable } from './_core';
|
|
5
|
+
import { useTheme } from '../theme';
|
|
6
|
+
export type ChartPoint = { label: string; value: number };
|
|
7
|
+
export type ChartConfig = Record<string, { label: string; color?: string }>;
|
|
8
|
+
export const ChartContainer = ({
|
|
9
|
+
config: _config,
|
|
10
|
+
...props
|
|
11
|
+
}: ViewProps & { config?: ChartConfig }) => <Box {...props} />;
|
|
12
|
+
export function Chart({
|
|
13
|
+
data,
|
|
14
|
+
type = 'bar',
|
|
15
|
+
height = 200,
|
|
16
|
+
value,
|
|
17
|
+
onValueChange,
|
|
18
|
+
accessibilityLabel = 'Chart',
|
|
19
|
+
children,
|
|
20
|
+
}: {
|
|
21
|
+
data: readonly ChartPoint[];
|
|
22
|
+
type?: 'bar' | 'line' | 'area' | 'pie' | 'radar' | 'radial';
|
|
23
|
+
height?: number;
|
|
24
|
+
value?: number;
|
|
25
|
+
onValueChange?: (index: number) => void;
|
|
26
|
+
accessibilityLabel?: string;
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
}) {
|
|
29
|
+
const { colors } = useTheme();
|
|
30
|
+
const [width, setWidth] = useState(320);
|
|
31
|
+
const [selected, set] = useControllable(value, -1, onValueChange);
|
|
32
|
+
const points = data.map((point) => ({
|
|
33
|
+
...point,
|
|
34
|
+
value: Number.isFinite(point.value) ? point.value : 0,
|
|
35
|
+
}));
|
|
36
|
+
const h = Math.max(44, Number.isFinite(height) ? height : 200);
|
|
37
|
+
const padding = 16;
|
|
38
|
+
const plotWidth = Math.max(1, width - padding * 2);
|
|
39
|
+
const plotHeight = h - padding * 2;
|
|
40
|
+
const minimum = Math.min(0, ...points.map((point) => point.value));
|
|
41
|
+
const maximum = Math.max(1, ...points.map((point) => point.value));
|
|
42
|
+
const y = (number: number) => padding + ((maximum - number) / (maximum - minimum)) * plotHeight;
|
|
43
|
+
const x = (index: number) => padding + ((index + 0.5) / Math.max(1, points.length)) * plotWidth;
|
|
44
|
+
const path = points
|
|
45
|
+
.map((point, index) => `${index ? 'L' : 'M'}${x(index)},${y(point.value)}`)
|
|
46
|
+
.join(' ');
|
|
47
|
+
const palette = [
|
|
48
|
+
colors.primary,
|
|
49
|
+
colors['chart-1'] ?? colors.secondary,
|
|
50
|
+
colors['chart-2'] ?? colors.primary,
|
|
51
|
+
colors['chart-3'] ?? colors.muted,
|
|
52
|
+
];
|
|
53
|
+
const total = points.reduce((sum, point) => sum + Math.max(0, point.value), 0);
|
|
54
|
+
let angle = -Math.PI / 2;
|
|
55
|
+
const radius = Math.max(1, Math.min(plotWidth, plotHeight) / 2);
|
|
56
|
+
const centerX = width / 2;
|
|
57
|
+
const centerY = h / 2;
|
|
58
|
+
const radar = points
|
|
59
|
+
.map((point, index) => {
|
|
60
|
+
const theta = (index / Math.max(1, points.length)) * Math.PI * 2 - Math.PI / 2;
|
|
61
|
+
const size = (Math.max(0, point.value) / maximum) * radius;
|
|
62
|
+
return `${centerX + Math.cos(theta) * size},${centerY + Math.sin(theta) * size}`;
|
|
63
|
+
})
|
|
64
|
+
.join(' ');
|
|
65
|
+
return (
|
|
66
|
+
<Box
|
|
67
|
+
accessibilityLabel={accessibilityLabel}
|
|
68
|
+
onLayout={(event) => setWidth(Math.max(44, event.nativeEvent.layout.width))}
|
|
69
|
+
>
|
|
70
|
+
{!points.length ? (
|
|
71
|
+
<Muted>No chart data</Muted>
|
|
72
|
+
) : (
|
|
73
|
+
<Svg width={width} height={h} accessibilityElementsHidden>
|
|
74
|
+
{type === 'bar' &&
|
|
75
|
+
points.map((point, index) => (
|
|
76
|
+
<Rect
|
|
77
|
+
key={index}
|
|
78
|
+
x={x(index) - (plotWidth / points.length) * 0.3}
|
|
79
|
+
y={Math.min(y(point.value), y(0))}
|
|
80
|
+
width={(plotWidth / points.length) * 0.6}
|
|
81
|
+
height={Math.abs(y(point.value) - y(0))}
|
|
82
|
+
fill={palette[index % palette.length]}
|
|
83
|
+
/>
|
|
84
|
+
))}
|
|
85
|
+
{(type === 'line' || type === 'area') && (
|
|
86
|
+
<Path
|
|
87
|
+
d={
|
|
88
|
+
type === 'area'
|
|
89
|
+
? `${path} L${x(points.length - 1)},${y(0)} L${x(0)},${y(0)} Z`
|
|
90
|
+
: path
|
|
91
|
+
}
|
|
92
|
+
stroke={colors.primary}
|
|
93
|
+
strokeWidth={2}
|
|
94
|
+
fill={type === 'area' ? colors.secondary : 'none'}
|
|
95
|
+
/>
|
|
96
|
+
)}
|
|
97
|
+
{type === 'radar' && (
|
|
98
|
+
<Polygon
|
|
99
|
+
points={radar}
|
|
100
|
+
fill={colors.secondary}
|
|
101
|
+
stroke={colors.primary}
|
|
102
|
+
strokeWidth={2}
|
|
103
|
+
/>
|
|
104
|
+
)}
|
|
105
|
+
{type === 'pie' &&
|
|
106
|
+
total > 0 &&
|
|
107
|
+
points.map((point, index) => {
|
|
108
|
+
const arc = (Math.max(0, point.value) / total) * Math.PI * 2;
|
|
109
|
+
const start = angle;
|
|
110
|
+
angle += arc;
|
|
111
|
+
if (arc >= Math.PI * 2 - 0.000001)
|
|
112
|
+
return (
|
|
113
|
+
<Circle
|
|
114
|
+
key={index}
|
|
115
|
+
cx={centerX}
|
|
116
|
+
cy={centerY}
|
|
117
|
+
r={radius}
|
|
118
|
+
fill={palette[index % palette.length]}
|
|
119
|
+
/>
|
|
120
|
+
);
|
|
121
|
+
return (
|
|
122
|
+
<Path
|
|
123
|
+
key={index}
|
|
124
|
+
d={`M${centerX},${centerY} L${centerX + radius * Math.cos(start)},${centerY + radius * Math.sin(start)} A${radius},${radius} 0 ${arc > Math.PI ? 1 : 0} 1 ${centerX + radius * Math.cos(angle)},${centerY + radius * Math.sin(angle)} Z`}
|
|
125
|
+
fill={palette[index % palette.length]}
|
|
126
|
+
/>
|
|
127
|
+
);
|
|
128
|
+
})}
|
|
129
|
+
{type === 'radial' &&
|
|
130
|
+
points.map((point, index) => {
|
|
131
|
+
const r = (radius * (index + 1)) / points.length;
|
|
132
|
+
return (
|
|
133
|
+
<Circle
|
|
134
|
+
key={index}
|
|
135
|
+
cx={centerX}
|
|
136
|
+
cy={centerY}
|
|
137
|
+
r={r}
|
|
138
|
+
fill="none"
|
|
139
|
+
stroke={palette[index % palette.length]}
|
|
140
|
+
strokeWidth={Math.max(1, radius / points.length - 3)}
|
|
141
|
+
strokeDasharray={`${(Math.max(0, point.value) / maximum) * 2 * Math.PI * r} ${2 * Math.PI * r}`}
|
|
142
|
+
transform={`rotate(-90 ${centerX} ${centerY})`}
|
|
143
|
+
/>
|
|
144
|
+
);
|
|
145
|
+
})}
|
|
146
|
+
</Svg>
|
|
147
|
+
)}
|
|
148
|
+
<View style={row()}>
|
|
149
|
+
{points.map((point, index) => (
|
|
150
|
+
<Pressable
|
|
151
|
+
key={index}
|
|
152
|
+
accessibilityRole="button"
|
|
153
|
+
accessibilityLabel={`${point.label}: ${point.value}`}
|
|
154
|
+
accessibilityState={{ selected: selected === index }}
|
|
155
|
+
onPress={() => set(index)}
|
|
156
|
+
style={{ minHeight: 44, justifyContent: 'center', padding: 4 }}
|
|
157
|
+
>
|
|
158
|
+
<LabelText>
|
|
159
|
+
{point.label}: {point.value}
|
|
160
|
+
</LabelText>
|
|
161
|
+
</Pressable>
|
|
162
|
+
))}
|
|
163
|
+
</View>
|
|
164
|
+
{selected >= 0 && points[selected] && <ChartTooltipContent point={points[selected]} />}
|
|
165
|
+
{children}
|
|
166
|
+
</Box>
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
export function ChartTooltipContent({ point }: { point?: ChartPoint }) {
|
|
170
|
+
return point ? (
|
|
171
|
+
<LabelText accessibilityLiveRegion="polite">
|
|
172
|
+
{point.label}: {point.value}
|
|
173
|
+
</LabelText>
|
|
174
|
+
) : null;
|
|
175
|
+
}
|
|
176
|
+
export const ChartTooltip = ChartTooltipContent;
|
|
177
|
+
export function ChartLegendContent({
|
|
178
|
+
items = [],
|
|
179
|
+
}: {
|
|
180
|
+
items?: { label: string; color?: string }[];
|
|
181
|
+
}) {
|
|
182
|
+
return (
|
|
183
|
+
<Box style={row()}>
|
|
184
|
+
{items.map((item, index) => (
|
|
185
|
+
<View key={index} style={row()}>
|
|
186
|
+
<View style={{ width: 12, height: 12, backgroundColor: item.color }} />
|
|
187
|
+
<LabelText>{item.label}</LabelText>
|
|
188
|
+
</View>
|
|
189
|
+
))}
|
|
190
|
+
</Box>
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
export const ChartLegend = ChartLegendContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Checkbox } from './_controls';
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { createContext, useContext, useState, type ReactNode } from 'react';
|
|
2
|
+
import { ScrollView, View, Text, type ViewProps } from 'react-native';
|
|
3
|
+
import { Box, LabelText, Muted, row, monospace } from './_core';
|
|
4
|
+
import { Button, type ButtonProps } from './button';
|
|
5
|
+
import { useTheme } from '../theme';
|
|
6
|
+
export type CodeToken = {
|
|
7
|
+
text: string;
|
|
8
|
+
kind: 'plain' | 'keyword' | 'string' | 'number' | 'comment' | 'added' | 'removed';
|
|
9
|
+
};
|
|
10
|
+
/** Small offline lexer; preserves every source byte. It never executes supplied code. */
|
|
11
|
+
export function tokenizeCode(code: string, language = 'typescript'): CodeToken[] {
|
|
12
|
+
if (language === 'diff' || language === 'patch')
|
|
13
|
+
return code.split(/(?<=\n)/).map((text) => ({
|
|
14
|
+
text,
|
|
15
|
+
kind:
|
|
16
|
+
text.startsWith('+') && !text.startsWith('+++')
|
|
17
|
+
? 'added'
|
|
18
|
+
: text.startsWith('-') && !text.startsWith('---')
|
|
19
|
+
? 'removed'
|
|
20
|
+
: text.startsWith('@@')
|
|
21
|
+
? 'keyword'
|
|
22
|
+
: 'plain',
|
|
23
|
+
}));
|
|
24
|
+
const tokens: CodeToken[] = [];
|
|
25
|
+
const pattern =
|
|
26
|
+
/(?:\/\/[^\n]*|\/\*[\s\S]*?\*\/|#[^\n]*)|(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`)|\b(?:const|let|var|function|return|if|else|for|while|class|interface|type|export|import|from|async|await|new|throw|try|catch|true|false|null|undefined|def|in|and|or|not|None|True|False|select|from|where|SELECT|FROM|WHERE)\b|\b\d+(?:\.\d+)?\b/g;
|
|
27
|
+
let position = 0;
|
|
28
|
+
for (const match of code.matchAll(pattern)) {
|
|
29
|
+
if (match.index > position)
|
|
30
|
+
tokens.push({ text: code.slice(position, match.index), kind: 'plain' });
|
|
31
|
+
const text = match[0];
|
|
32
|
+
const kind = /^(?:\/\/|\/\*|#)/.test(text)
|
|
33
|
+
? 'comment'
|
|
34
|
+
: /^["'`]/.test(text)
|
|
35
|
+
? 'string'
|
|
36
|
+
: /^\d/.test(text)
|
|
37
|
+
? 'number'
|
|
38
|
+
: 'keyword';
|
|
39
|
+
tokens.push({ text, kind });
|
|
40
|
+
position = match.index + text.length;
|
|
41
|
+
}
|
|
42
|
+
if (position < code.length) tokens.push({ text: code.slice(position), kind: 'plain' });
|
|
43
|
+
return tokens;
|
|
44
|
+
}
|
|
45
|
+
const CodeContext = createContext({ code: '', language: 'typescript' });
|
|
46
|
+
export function CodeBlock({
|
|
47
|
+
code,
|
|
48
|
+
language = 'typescript',
|
|
49
|
+
children,
|
|
50
|
+
style,
|
|
51
|
+
...props
|
|
52
|
+
}: ViewProps & { code: string; language?: string; children?: ReactNode }) {
|
|
53
|
+
return (
|
|
54
|
+
<CodeContext.Provider value={{ code, language }}>
|
|
55
|
+
<Box {...props} style={style}>
|
|
56
|
+
{children ?? <CodeBlockContent />}
|
|
57
|
+
</Box>
|
|
58
|
+
</CodeContext.Provider>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
export function CodeBlockContent({ style, ...props }: ViewProps) {
|
|
62
|
+
const { code, language } = useContext(CodeContext);
|
|
63
|
+
const { colors } = useTheme();
|
|
64
|
+
const palette = {
|
|
65
|
+
plain: colors.foreground,
|
|
66
|
+
keyword: colors.primary,
|
|
67
|
+
string: colors['chart-2'] ?? colors.primary,
|
|
68
|
+
number: colors['chart-1'] ?? colors.primary,
|
|
69
|
+
comment: colors['muted-foreground'],
|
|
70
|
+
added: colors['chart-2'] ?? colors.primary,
|
|
71
|
+
removed: colors.destructive,
|
|
72
|
+
};
|
|
73
|
+
return (
|
|
74
|
+
<ScrollView horizontal>
|
|
75
|
+
<View
|
|
76
|
+
{...props}
|
|
77
|
+
style={[{ padding: 12, backgroundColor: colors.muted, borderRadius: 8 }, style]}
|
|
78
|
+
>
|
|
79
|
+
<Text
|
|
80
|
+
selectable
|
|
81
|
+
accessibilityLabel={code}
|
|
82
|
+
style={{ fontFamily: monospace, fontSize: 13, lineHeight: 20 }}
|
|
83
|
+
>
|
|
84
|
+
{tokenizeCode(code, language).map((token, index) => (
|
|
85
|
+
<Text
|
|
86
|
+
key={index}
|
|
87
|
+
style={{
|
|
88
|
+
color: palette[token.kind],
|
|
89
|
+
fontWeight: token.kind === 'keyword' ? '600' : '400',
|
|
90
|
+
}}
|
|
91
|
+
>
|
|
92
|
+
{token.text}
|
|
93
|
+
</Text>
|
|
94
|
+
))}
|
|
95
|
+
</Text>
|
|
96
|
+
</View>
|
|
97
|
+
</ScrollView>
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
export const CodeBlockHeader = ({ style, ...props }: ViewProps) => (
|
|
101
|
+
<Box {...props} style={row(style)} />
|
|
102
|
+
);
|
|
103
|
+
export const CodeBlockTitle = LabelText;
|
|
104
|
+
export const CodeBlockLanguage = () => <Muted>{useContext(CodeContext).language}</Muted>;
|
|
105
|
+
export function CodeBlockCopyButton({
|
|
106
|
+
children = 'Copy code',
|
|
107
|
+
onCopy,
|
|
108
|
+
...props
|
|
109
|
+
}: Omit<ButtonProps, 'children'> & {
|
|
110
|
+
children?: ReactNode;
|
|
111
|
+
onCopy?: (code: string) => void | Promise<void>;
|
|
112
|
+
}) {
|
|
113
|
+
const { code } = useContext(CodeContext);
|
|
114
|
+
const [status, setStatus] = useState<'idle' | 'pending' | 'copied' | 'error'>('idle');
|
|
115
|
+
return (
|
|
116
|
+
<>
|
|
117
|
+
<Button
|
|
118
|
+
accessibilityLabel="Copy code"
|
|
119
|
+
{...props}
|
|
120
|
+
disabled={props.disabled || status === 'pending'}
|
|
121
|
+
onPress={async () => {
|
|
122
|
+
setStatus('pending');
|
|
123
|
+
try {
|
|
124
|
+
await (onCopy ? onCopy(code) : (await import('expo-clipboard')).setStringAsync(code));
|
|
125
|
+
setStatus('copied');
|
|
126
|
+
} catch {
|
|
127
|
+
setStatus('error');
|
|
128
|
+
}
|
|
129
|
+
}}
|
|
130
|
+
>
|
|
131
|
+
{children}
|
|
132
|
+
</Button>
|
|
133
|
+
{status === 'copied' && <Muted accessibilityLiveRegion="polite">Copied</Muted>}
|
|
134
|
+
{status === 'error' && <Muted accessibilityRole="alert">Copy failed. Try again.</Muted>}
|
|
135
|
+
</>
|
|
136
|
+
);
|
|
137
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent } from './_controls';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Combobox } from './_selection';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export {
|
|
2
|
+
ContextMenu,
|
|
3
|
+
ContextMenuTrigger,
|
|
4
|
+
ContextMenuContent,
|
|
5
|
+
ContextMenuItem,
|
|
6
|
+
ContextMenuCheckboxItem,
|
|
7
|
+
ContextMenuRadioGroup,
|
|
8
|
+
ContextMenuRadioItem,
|
|
9
|
+
ContextMenuLabel,
|
|
10
|
+
ContextMenuSeparator,
|
|
11
|
+
ContextMenuGroup,
|
|
12
|
+
ContextMenuShortcut,
|
|
13
|
+
ContextMenuSub,
|
|
14
|
+
ContextMenuSubTrigger,
|
|
15
|
+
ContextMenuSubContent,
|
|
16
|
+
} from './_overlay';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DataTable } from './_data';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { Calendar, type CalendarProps } from './calendar';
|
|
3
|
+
import { OverlayRoot, OverlayTrigger, OverlayContent } from './_overlay';
|
|
4
|
+
import { useControllable } from './_core';
|
|
5
|
+
export function DatePicker({
|
|
6
|
+
value,
|
|
7
|
+
defaultValue,
|
|
8
|
+
onValueChange,
|
|
9
|
+
placeholder = 'Pick a date',
|
|
10
|
+
disabled = false,
|
|
11
|
+
disabledDates,
|
|
12
|
+
...calendar
|
|
13
|
+
}: Omit<CalendarProps, 'mode' | 'selected' | 'onSelect' | 'disabled'> & {
|
|
14
|
+
value?: Date;
|
|
15
|
+
defaultValue?: Date;
|
|
16
|
+
onValueChange?: (value: Date | undefined) => void;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
disabledDates?: (date: Date) => boolean;
|
|
20
|
+
}) {
|
|
21
|
+
const [selected, set] = useControllable<Date | undefined>(value, defaultValue, onValueChange);
|
|
22
|
+
const [open, setOpen] = useState(false);
|
|
23
|
+
return (
|
|
24
|
+
<OverlayRoot open={open} onOpenChange={setOpen}>
|
|
25
|
+
<OverlayTrigger disabled={disabled} variant="outline" accessibilityLabel="Choose date">
|
|
26
|
+
{selected?.toLocaleDateString(calendar.locale) ?? placeholder}
|
|
27
|
+
</OverlayTrigger>
|
|
28
|
+
<OverlayContent>
|
|
29
|
+
<Calendar
|
|
30
|
+
{...calendar}
|
|
31
|
+
disabled={disabledDates}
|
|
32
|
+
mode="single"
|
|
33
|
+
selected={selected}
|
|
34
|
+
defaultMonth={selected ?? calendar.defaultMonth}
|
|
35
|
+
onSelect={(date) => {
|
|
36
|
+
set(date);
|
|
37
|
+
setOpen(false);
|
|
38
|
+
}}
|
|
39
|
+
/>
|
|
40
|
+
</OverlayContent>
|
|
41
|
+
</OverlayRoot>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import { Dialog as LegacyDialog } from './_legacy-dialog';
|
|
3
|
+
import { OverlayRoot, type OverlayProps } from './_overlay';
|
|
4
|
+
export function Dialog(props: OverlayProps | ComponentProps<typeof LegacyDialog>) {
|
|
5
|
+
return 'triggerLabel' in props ? <LegacyDialog {...props} /> : <OverlayRoot {...props} />;
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
OverlayTrigger as DialogTrigger,
|
|
9
|
+
OverlayContent as DialogContent,
|
|
10
|
+
OverlayClose as DialogClose,
|
|
11
|
+
OverlayTitle as DialogTitle,
|
|
12
|
+
OverlayDescription as DialogDescription,
|
|
13
|
+
OverlayHeader as DialogHeader,
|
|
14
|
+
OverlayFooter as DialogFooter,
|
|
15
|
+
} from './_overlay';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DirectionProvider, useDirection } from './_core';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export {
|
|
2
|
+
DropdownMenu,
|
|
3
|
+
DropdownMenuTrigger,
|
|
4
|
+
DropdownMenuContent,
|
|
5
|
+
DropdownMenuItem,
|
|
6
|
+
DropdownMenuCheckboxItem,
|
|
7
|
+
DropdownMenuRadioGroup,
|
|
8
|
+
DropdownMenuRadioItem,
|
|
9
|
+
DropdownMenuLabel,
|
|
10
|
+
DropdownMenuSeparator,
|
|
11
|
+
DropdownMenuGroup,
|
|
12
|
+
DropdownMenuShortcut,
|
|
13
|
+
DropdownMenuSub,
|
|
14
|
+
DropdownMenuSubTrigger,
|
|
15
|
+
DropdownMenuSubContent,
|
|
16
|
+
} from './_overlay';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { HoverCard, HoverCardTrigger, HoverCardContent } from './_overlay';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator } from './_controls';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TextInput, type TextInputProps } from 'react-native';
|
|
2
|
+
import type { Ref } from 'react';
|
|
3
|
+
import { useTheme } from '../theme';
|
|
4
|
+
export type InputProps = TextInputProps & { invalid?: boolean; ref?: Ref<TextInput> };
|
|
5
|
+
export function Input({ style, invalid, ...props }: InputProps) {
|
|
6
|
+
const { colors } = useTheme();
|
|
7
|
+
return (
|
|
8
|
+
<TextInput
|
|
9
|
+
{...props}
|
|
10
|
+
placeholderTextColor={colors['muted-foreground']}
|
|
11
|
+
selectionColor={colors.primary}
|
|
12
|
+
style={[
|
|
13
|
+
{
|
|
14
|
+
minHeight: 44,
|
|
15
|
+
borderWidth: 1,
|
|
16
|
+
borderColor: invalid ? colors.destructive : colors.input,
|
|
17
|
+
backgroundColor: colors.background,
|
|
18
|
+
color: colors.foreground,
|
|
19
|
+
borderRadius: 8,
|
|
20
|
+
paddingHorizontal: 12,
|
|
21
|
+
paddingVertical: 10,
|
|
22
|
+
fontSize: 16,
|
|
23
|
+
},
|
|
24
|
+
style,
|
|
25
|
+
]}
|
|
26
|
+
/>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Kbd, KbdGroup } from './_display';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ScrollView, View, type ViewProps } from 'react-native';
|
|
2
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
3
|
+
import type { ReactNode } from 'react';
|
|
4
|
+
import { useTheme } from '../theme';
|
|
5
|
+
export function Stack({ style, ...props }: ViewProps) {
|
|
6
|
+
return <View {...props} style={[{ gap: 12 }, style]} />;
|
|
7
|
+
}
|
|
8
|
+
export function Screen({ children }: { children: ReactNode }) {
|
|
9
|
+
const insets = useSafeAreaInsets();
|
|
10
|
+
const { colors } = useTheme();
|
|
11
|
+
return (
|
|
12
|
+
<ScrollView
|
|
13
|
+
style={{ flex: 1, backgroundColor: colors.background }}
|
|
14
|
+
contentContainerStyle={{
|
|
15
|
+
paddingTop: insets.top + 24,
|
|
16
|
+
paddingBottom: insets.bottom + 24,
|
|
17
|
+
paddingHorizontal: 20,
|
|
18
|
+
flexGrow: 1,
|
|
19
|
+
}}
|
|
20
|
+
keyboardShouldPersistTaps="handled"
|
|
21
|
+
automaticallyAdjustKeyboardInsets
|
|
22
|
+
>
|
|
23
|
+
<View style={{ width: '100%', maxWidth: 640, alignSelf: 'center', gap: 24 }}>{children}</View>
|
|
24
|
+
</ScrollView>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Marker, MarkerContent, MarkerIcon } from './_display';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export {
|
|
2
|
+
Menubar,
|
|
3
|
+
MenubarMenu,
|
|
4
|
+
MenubarTrigger,
|
|
5
|
+
MenubarContent,
|
|
6
|
+
MenubarItem,
|
|
7
|
+
MenubarCheckboxItem,
|
|
8
|
+
MenubarRadioGroup,
|
|
9
|
+
MenubarRadioItem,
|
|
10
|
+
MenubarLabel,
|
|
11
|
+
MenubarSeparator,
|
|
12
|
+
MenubarGroup,
|
|
13
|
+
MenubarShortcut,
|
|
14
|
+
MenubarSub,
|
|
15
|
+
MenubarSubTrigger,
|
|
16
|
+
MenubarSubContent,
|
|
17
|
+
} from './_overlay';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NativeSelect, NativeSelectOption, NativeSelectOptGroup } from './_selection';
|