@multiplatform.one/components 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/forms/FormCheckBox/index.js +4 -2
- package/dist/cjs/forms/FormCheckBox/index.js.map +1 -1
- package/dist/cjs/forms/FormSlider/FormSlider.stories.js +1 -1
- package/dist/cjs/forms/FormSlider/FormSlider.stories.js.map +1 -1
- package/dist/cjs/forms/FormSlider/index.js +3 -2
- package/dist/cjs/forms/FormSlider/index.js.map +1 -1
- package/dist/cjs/forms/FormSubmitButton/FormSubmitButton.stories.js +2 -1
- package/dist/cjs/forms/FormSubmitButton/FormSubmitButton.stories.js.map +1 -1
- package/dist/cjs/forms/FormSwitch/index.js +1 -1
- package/dist/cjs/forms/FormSwitch/index.js.map +1 -1
- package/dist/cjs/layouts/Debug/DebugLayout.stories.js +3 -2
- package/dist/cjs/layouts/Debug/DebugLayout.stories.js.map +1 -1
- package/dist/cjs/layouts/Debug/index.js +5 -4
- package/dist/cjs/layouts/Debug/index.js.map +1 -1
- package/dist/cjs/mdx/LI/LI.stories.js +47 -0
- package/dist/cjs/mdx/LI/LI.stories.js.map +6 -0
- package/dist/cjs/panels/SimpleDialog/SimpleDialog.stories.js +19 -11
- package/dist/cjs/panels/SimpleDialog/SimpleDialog.stories.js.map +2 -2
- package/dist/cjs/panels/SimpleDialog/index.js +47 -26
- package/dist/cjs/panels/SimpleDialog/index.js.map +2 -2
- package/dist/cjs/panels/SimplePopover/SimplePopover.stories.js +1 -8
- package/dist/cjs/panels/SimplePopover/SimplePopover.stories.js.map +1 -1
- package/dist/cjs/panels/SimplePopover/index.js +10 -17
- package/dist/cjs/panels/SimplePopover/index.js.map +1 -1
- package/dist/cjs/panels/SimpleSheet/SimpleSheet.stories.js +1 -1
- package/dist/cjs/panels/SimpleSheet/SimpleSheet.stories.js.map +1 -1
- package/dist/cjs/panels/SimpleTooltip/index.js +2 -2
- package/dist/cjs/panels/SimpleTooltip/index.js.map +1 -1
- package/dist/cjs/table/Table/index.js +4 -2
- package/dist/cjs/table/Table/index.js.map +1 -1
- package/dist/esm/forms/FormCheckBox/index.js +4 -2
- package/dist/esm/forms/FormCheckBox/index.js.map +1 -1
- package/dist/esm/forms/FormSlider/FormSlider.stories.js +1 -1
- package/dist/esm/forms/FormSlider/FormSlider.stories.js.map +1 -1
- package/dist/esm/forms/FormSlider/index.js +3 -2
- package/dist/esm/forms/FormSlider/index.js.map +1 -1
- package/dist/esm/forms/FormSubmitButton/FormSubmitButton.stories.js +2 -1
- package/dist/esm/forms/FormSubmitButton/FormSubmitButton.stories.js.map +1 -1
- package/dist/esm/forms/FormSwitch/index.js +1 -1
- package/dist/esm/forms/FormSwitch/index.js.map +1 -1
- package/dist/esm/layouts/Debug/DebugLayout.stories.js +3 -2
- package/dist/esm/layouts/Debug/DebugLayout.stories.js.map +1 -1
- package/dist/esm/layouts/Debug/index.js +6 -5
- package/dist/esm/layouts/Debug/index.js.map +1 -1
- package/dist/esm/mdx/LI/LI.stories.js +14 -0
- package/dist/esm/mdx/LI/LI.stories.js.map +6 -0
- package/dist/esm/panels/SimpleDialog/SimpleDialog.stories.js +18 -11
- package/dist/esm/panels/SimpleDialog/SimpleDialog.stories.js.map +2 -2
- package/dist/esm/panels/SimpleDialog/index.js +48 -27
- package/dist/esm/panels/SimpleDialog/index.js.map +2 -2
- package/dist/esm/panels/SimplePopover/SimplePopover.stories.js +1 -8
- package/dist/esm/panels/SimplePopover/SimplePopover.stories.js.map +1 -1
- package/dist/esm/panels/SimplePopover/index.js +11 -18
- package/dist/esm/panels/SimplePopover/index.js.map +1 -1
- package/dist/esm/panels/SimpleSheet/SimpleSheet.stories.js +1 -1
- package/dist/esm/panels/SimpleSheet/SimpleSheet.stories.js.map +1 -1
- package/dist/esm/panels/SimpleTooltip/index.js +2 -2
- package/dist/esm/panels/SimpleTooltip/index.js.map +1 -1
- package/dist/esm/table/Table/index.js +2 -1
- package/dist/esm/table/Table/index.js.map +1 -1
- package/dist/jsx/forms/FormCheckBox/index.js +4 -2
- package/dist/jsx/forms/FormCheckBox/index.js.map +1 -1
- package/dist/jsx/forms/FormCheckBox/index.mjs +4 -2
- package/dist/jsx/forms/FormCheckBox/index.mjs.map +1 -1
- package/dist/jsx/forms/FormSlider/FormSlider.stories.js +1 -1
- package/dist/jsx/forms/FormSlider/FormSlider.stories.js.map +1 -1
- package/dist/jsx/forms/FormSlider/FormSlider.stories.mjs +1 -1
- package/dist/jsx/forms/FormSlider/FormSlider.stories.mjs.map +1 -1
- package/dist/jsx/forms/FormSlider/index.js +2 -1
- package/dist/jsx/forms/FormSlider/index.js.map +1 -1
- package/dist/jsx/forms/FormSlider/index.mjs +2 -1
- package/dist/jsx/forms/FormSlider/index.mjs.map +1 -1
- package/dist/jsx/forms/FormSubmitButton/FormSubmitButton.stories.js +2 -1
- package/dist/jsx/forms/FormSubmitButton/FormSubmitButton.stories.js.map +1 -1
- package/dist/jsx/forms/FormSubmitButton/FormSubmitButton.stories.mjs +2 -1
- package/dist/jsx/forms/FormSubmitButton/FormSubmitButton.stories.mjs.map +1 -1
- package/dist/jsx/forms/FormSwitch/index.js +1 -1
- package/dist/jsx/forms/FormSwitch/index.js.map +1 -1
- package/dist/jsx/forms/FormSwitch/index.mjs +1 -1
- package/dist/jsx/forms/FormSwitch/index.mjs.map +1 -1
- package/dist/jsx/layouts/Debug/DebugLayout.stories.js +3 -2
- package/dist/jsx/layouts/Debug/DebugLayout.stories.js.map +1 -1
- package/dist/jsx/layouts/Debug/DebugLayout.stories.mjs +3 -2
- package/dist/jsx/layouts/Debug/DebugLayout.stories.mjs.map +1 -1
- package/dist/jsx/layouts/Debug/index.js +7 -6
- package/dist/jsx/layouts/Debug/index.js.map +1 -1
- package/dist/jsx/layouts/Debug/index.mjs +7 -6
- package/dist/jsx/layouts/Debug/index.mjs.map +1 -1
- package/dist/jsx/mdx/LI/LI.stories.js +13 -0
- package/dist/jsx/mdx/LI/LI.stories.js.map +6 -0
- package/dist/jsx/mdx/LI/LI.stories.mjs +13 -0
- package/dist/jsx/mdx/LI/LI.stories.mjs.map +6 -0
- package/dist/jsx/panels/SimpleDialog/SimpleDialog.stories.js +29 -10
- package/dist/jsx/panels/SimpleDialog/SimpleDialog.stories.js.map +2 -2
- package/dist/jsx/panels/SimpleDialog/SimpleDialog.stories.mjs +29 -10
- package/dist/jsx/panels/SimpleDialog/SimpleDialog.stories.mjs.map +2 -2
- package/dist/jsx/panels/SimpleDialog/index.js +26 -10
- package/dist/jsx/panels/SimpleDialog/index.js.map +2 -2
- package/dist/jsx/panels/SimpleDialog/index.mjs +26 -10
- package/dist/jsx/panels/SimpleDialog/index.mjs.map +2 -2
- package/dist/jsx/panels/SimplePopover/SimplePopover.stories.js +1 -4
- package/dist/jsx/panels/SimplePopover/SimplePopover.stories.js.map +1 -1
- package/dist/jsx/panels/SimplePopover/SimplePopover.stories.mjs +1 -4
- package/dist/jsx/panels/SimplePopover/SimplePopover.stories.mjs.map +1 -1
- package/dist/jsx/panels/SimplePopover/index.js +12 -19
- package/dist/jsx/panels/SimplePopover/index.js.map +1 -1
- package/dist/jsx/panels/SimplePopover/index.mjs +12 -19
- package/dist/jsx/panels/SimplePopover/index.mjs.map +1 -1
- package/dist/jsx/panels/SimpleSheet/SimpleSheet.stories.js +1 -1
- package/dist/jsx/panels/SimpleSheet/SimpleSheet.stories.js.map +1 -1
- package/dist/jsx/panels/SimpleSheet/SimpleSheet.stories.mjs +1 -1
- package/dist/jsx/panels/SimpleSheet/SimpleSheet.stories.mjs.map +1 -1
- package/dist/jsx/panels/SimpleTooltip/index.js +2 -2
- package/dist/jsx/panels/SimpleTooltip/index.js.map +1 -1
- package/dist/jsx/panels/SimpleTooltip/index.mjs +2 -2
- package/dist/jsx/panels/SimpleTooltip/index.mjs.map +1 -1
- package/dist/jsx/table/Table/index.js +2 -1
- package/dist/jsx/table/Table/index.js.map +1 -1
- package/dist/jsx/table/Table/index.mjs +2 -1
- package/dist/jsx/table/Table/index.mjs.map +1 -1
- package/package.json +10 -10
- package/src/forms/FormCheckBox/index.tsx +4 -2
- package/src/forms/FormSlider/FormSlider.stories.tsx +1 -1
- package/src/forms/FormSlider/index.tsx +2 -1
- package/src/forms/FormSubmitButton/FormSubmitButton.stories.tsx +2 -1
- package/src/forms/FormSwitch/index.tsx +3 -1
- package/src/layouts/Debug/DebugLayout.stories.tsx +3 -2
- package/src/layouts/Debug/index.tsx +8 -7
- package/src/mdx/LI/LI.stories.tsx +15 -0
- package/src/panels/SimpleDialog/SimpleDialog.stories.tsx +33 -12
- package/src/panels/SimpleDialog/index.tsx +36 -18
- package/src/panels/SimplePopover/SimplePopover.stories.tsx +4 -9
- package/src/panels/SimplePopover/index.tsx +16 -25
- package/src/panels/SimpleSheet/SimpleSheet.stories.tsx +1 -1
- package/src/panels/SimpleTooltip/index.tsx +4 -2
- package/src/table/Table/index.tsx +1 -1
- package/types/code/Code/index.d.ts +77 -18
- package/types/code/Code/index.d.ts.map +1 -1
- package/types/code/Pre/index.d.ts +22 -7
- package/types/code/Pre/index.d.ts.map +1 -1
- package/types/forms/FormCheckBox/index.d.ts.map +1 -1
- package/types/forms/FormSlider/FormSlider.stories.d.ts.map +1 -1
- package/types/forms/FormSlider/index.d.ts.map +1 -1
- package/types/forms/FormSubmitButton/FormSubmitButton.stories.d.ts.map +1 -1
- package/types/forms/FormSwitch/index.d.ts.map +1 -1
- package/types/layouts/Debug/DebugLayout.stories.d.ts.map +1 -1
- package/types/layouts/Debug/index.d.ts +3 -1
- package/types/layouts/Debug/index.d.ts.map +1 -1
- package/types/mdx/LI/LI.stories.d.ts +135 -0
- package/types/mdx/LI/LI.stories.d.ts.map +1 -0
- package/types/mdx/LI/index.d.ts +60 -15
- package/types/mdx/LI/index.d.ts.map +1 -1
- package/types/mdx/UL/UL.stories.d.ts +21 -7
- package/types/mdx/UL/UL.stories.d.ts.map +1 -1
- package/types/mdx/UL/index.d.ts +22 -7
- package/types/mdx/UL/index.d.ts.map +1 -1
- package/types/mdx/components.d.ts +22 -7
- package/types/mdx/components.d.ts.map +1 -1
- package/types/panels/SimpleDialog/SimpleDialog.stories.d.ts +1 -0
- package/types/panels/SimpleDialog/SimpleDialog.stories.d.ts.map +1 -1
- package/types/panels/SimpleDialog/index.d.ts +10 -8
- package/types/panels/SimpleDialog/index.d.ts.map +1 -1
- package/types/panels/SimplePopover/SimplePopover.stories.d.ts.map +1 -1
- package/types/panels/SimplePopover/index.d.ts +5 -6
- package/types/panels/SimplePopover/index.d.ts.map +1 -1
- package/types/panels/SimpleSheet/SimpleSheet.stories.d.ts.map +1 -1
- package/types/panels/SimpleTooltip/index.d.ts.map +1 -1
- package/types/table/Table/Table.stories.d.ts +38 -10
- package/types/table/Table/Table.stories.d.ts.map +1 -1
- package/types/table/Table/index.d.ts +43 -10
- package/types/table/Table/index.d.ts.map +1 -1
- package/types/table/TableCell/index.d.ts +18 -3
- package/types/table/TableCell/index.d.ts.map +1 -1
- package/types/table/TableCol/index.d.ts +22 -7
- package/types/table/TableCol/index.d.ts.map +1 -1
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { ComponentType, ReactNode } from 'react';
|
|
3
3
|
import type { ThemeName } from 'tamagui';
|
|
4
4
|
import type { WithLayout } from 'multiplatform.one';
|
|
5
|
-
import { Select,
|
|
5
|
+
import { Select, ZStack, XStack, Adapt, Popover, Circle } from 'tamagui';
|
|
6
6
|
import { SelectSimple } from '../../forms/SelectSimple';
|
|
7
7
|
import { createWithLayout, useLocale, useSupportedLocales } from 'multiplatform.one';
|
|
8
8
|
// @ts-ignore
|
|
@@ -17,6 +17,7 @@ export interface DebugLayoutProps<DebugViewProps> {
|
|
|
17
17
|
debugView?: ComponentType<DebugViewProps>;
|
|
18
18
|
debugViewProps?: DebugViewProps;
|
|
19
19
|
rootThemeNames?: string[];
|
|
20
|
+
size?: number;
|
|
20
21
|
subThemeNames?: string[];
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -25,6 +26,7 @@ export function DebugLayout<DebugViewProps>({
|
|
|
25
26
|
debugView,
|
|
26
27
|
debugViewProps,
|
|
27
28
|
rootThemeNames,
|
|
29
|
+
size,
|
|
28
30
|
subThemeNames,
|
|
29
31
|
}: DebugLayoutProps<DebugViewProps>) {
|
|
30
32
|
const DebugView = debugView;
|
|
@@ -72,10 +74,10 @@ export function DebugLayout<DebugViewProps>({
|
|
|
72
74
|
|
|
73
75
|
function renderDebug() {
|
|
74
76
|
return (
|
|
75
|
-
<XStack space
|
|
77
|
+
<XStack space m="$4" width={size} height={size}>
|
|
76
78
|
<Popover placement="right" size="$5">
|
|
77
79
|
<Popover.Trigger>
|
|
78
|
-
<Circle cursor="pointer" backgroundColor="$color9" width={
|
|
80
|
+
<Circle cursor="pointer" backgroundColor="$color9" width={size} height={size} />
|
|
79
81
|
</Popover.Trigger>
|
|
80
82
|
<Adapt>
|
|
81
83
|
<Popover.Sheet modal dismissOnSnapToBottom>
|
|
@@ -124,19 +126,18 @@ export function DebugLayout<DebugViewProps>({
|
|
|
124
126
|
);
|
|
125
127
|
}
|
|
126
128
|
|
|
127
|
-
if (config.get('DEBUG') !== '1') {
|
|
128
|
-
return <>{children}</>;
|
|
129
|
-
}
|
|
129
|
+
if (config.get('DEBUG') !== '1') return <>{children}</>;
|
|
130
130
|
return (
|
|
131
131
|
<ZStack fullscreen>
|
|
132
|
+
{children}
|
|
132
133
|
{renderDebug()}
|
|
133
|
-
<YStack fullscreen>{children}</YStack>
|
|
134
134
|
</ZStack>
|
|
135
135
|
);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
DebugLayout.defaultProps = {
|
|
139
139
|
rootThemeNames: ['light', 'dark'],
|
|
140
|
+
size: 12,
|
|
140
141
|
subThemeNames: ['blue', 'gray', 'green', 'orange', 'pink', 'purple', 'red', 'yellow'],
|
|
141
142
|
};
|
|
142
143
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text } from 'tamagui';
|
|
3
|
+
import { LI } from './index';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'mdx/LI',
|
|
7
|
+
component: LI,
|
|
8
|
+
parameters: { status: { type: 'beta' } },
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const main = () => (
|
|
12
|
+
<LI>
|
|
13
|
+
<Text>Hello world</Text>
|
|
14
|
+
</LI>
|
|
15
|
+
);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
2
|
import type { Meta } from '@storybook/react';
|
|
3
|
+
import { Button, Input, Dialog, YStack } from 'tamagui';
|
|
3
4
|
import { SimpleDialog } from './index';
|
|
4
|
-
import {
|
|
5
|
+
import { action } from '@storybook/addon-actions';
|
|
5
6
|
|
|
6
7
|
const meta: Meta = {
|
|
7
8
|
title: 'panels/SimpleDialog',
|
|
@@ -10,20 +11,40 @@ const meta: Meta = {
|
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export const main = () => (
|
|
13
|
-
<SimpleDialog
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
<SimpleDialog onOpenChange={action('onOpenChange')} trigger={<Button>Press Me</Button>} title="Fill the details">
|
|
15
|
+
<Input placeholder="Enter your first name" />
|
|
16
|
+
<Input placeholder="Enter your last name" />
|
|
17
|
+
<Dialog.Close>
|
|
18
|
+
<Button>Submit</Button>
|
|
19
|
+
</Dialog.Close>
|
|
20
|
+
</SimpleDialog>
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
function OpenWithFunction() {
|
|
24
|
+
const [open, setOpen] = useState(false);
|
|
25
|
+
|
|
26
|
+
function handlePress() {
|
|
27
|
+
setOpen((open) => !open);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function handleOpenChange(open) {
|
|
31
|
+
action('onOpenChange')();
|
|
32
|
+
setOpen(open);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<YStack ai="flex-start">
|
|
37
|
+
<Button onPress={handlePress}>Press Me</Button>
|
|
38
|
+
<SimpleDialog open={open} onOpenChange={handleOpenChange} title="Fill the details">
|
|
16
39
|
<Input placeholder="Enter your first name" />
|
|
17
40
|
<Input placeholder="Enter your last name" />
|
|
18
41
|
<Dialog.Close>
|
|
19
42
|
<Button>Submit</Button>
|
|
20
43
|
</Dialog.Close>
|
|
21
|
-
</
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</SimpleDialog>
|
|
27
|
-
);
|
|
44
|
+
</SimpleDialog>
|
|
45
|
+
</YStack>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
export const openWithFunction = () => <OpenWithFunction />;
|
|
28
49
|
|
|
29
50
|
export default meta;
|
|
@@ -1,30 +1,48 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
2
|
import type { DialogProps, DialogTitleProps, DialogDescriptionProps, DialogContentProps } from 'tamagui';
|
|
3
|
+
import type { ReactNode } from 'react';
|
|
3
4
|
import { Adapt, Button, Dialog, Sheet, Unspaced } from 'tamagui';
|
|
4
5
|
import { X } from '@tamagui/lucide-icons';
|
|
5
6
|
|
|
6
|
-
type SimpleDialogProps = DialogProps & {
|
|
7
|
-
description?: React.ReactNode;
|
|
8
|
-
titleStyle?: DialogTitleProps;
|
|
9
|
-
descriptionStyle?: DialogDescriptionProps;
|
|
7
|
+
export type SimpleDialogProps = DialogProps & {
|
|
10
8
|
contentStyle?: DialogContentProps;
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
description?: ReactNode;
|
|
10
|
+
descriptionStyle?: DialogDescriptionProps;
|
|
11
|
+
open?: boolean;
|
|
12
|
+
title?: ReactNode;
|
|
13
|
+
titleStyle?: DialogTitleProps;
|
|
14
|
+
trigger?: ReactNode;
|
|
15
|
+
onOpenChange?: (open: boolean) => void;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
export function SimpleDialog({
|
|
16
19
|
children,
|
|
17
|
-
|
|
18
|
-
title,
|
|
20
|
+
contentStyle,
|
|
19
21
|
description,
|
|
20
|
-
titleStyle,
|
|
21
22
|
descriptionStyle,
|
|
22
|
-
|
|
23
|
+
title,
|
|
24
|
+
titleStyle,
|
|
25
|
+
trigger,
|
|
23
26
|
...props
|
|
24
27
|
}: SimpleDialogProps) {
|
|
28
|
+
const [open, setOpen] = React.useState(props.open);
|
|
29
|
+
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
if (typeof props.open === 'undefined' || props.open === open) return;
|
|
32
|
+
setOpen(props.open);
|
|
33
|
+
}, [props.open]);
|
|
34
|
+
|
|
25
35
|
return (
|
|
26
|
-
<Dialog
|
|
27
|
-
|
|
36
|
+
<Dialog
|
|
37
|
+
modal
|
|
38
|
+
{...props}
|
|
39
|
+
open={open}
|
|
40
|
+
onOpenChange={(open) => {
|
|
41
|
+
setOpen(open);
|
|
42
|
+
if (props.onOpenChange) props.onOpenChange(open);
|
|
43
|
+
}}
|
|
44
|
+
>
|
|
45
|
+
{trigger && <Dialog.Trigger asChild>{trigger}</Dialog.Trigger>}
|
|
28
46
|
<Adapt when="sm" platform="touch">
|
|
29
47
|
<Sheet zIndex={200000} modal dismissOnSnapToBottom>
|
|
30
48
|
<Sheet.Frame padding="$4" space>
|
|
@@ -52,12 +70,12 @@ export function SimpleDialog({
|
|
|
52
70
|
space
|
|
53
71
|
{...contentStyle}
|
|
54
72
|
>
|
|
55
|
-
<Dialog.Title {...titleStyle}>{title}</Dialog.Title>
|
|
56
|
-
<Dialog.Description {...descriptionStyle}>{description
|
|
57
|
-
{
|
|
73
|
+
{title && <Dialog.Title {...titleStyle}>{title}</Dialog.Title>}
|
|
74
|
+
{description && <Dialog.Description {...descriptionStyle}>{description}</Dialog.Description>}
|
|
75
|
+
{children}
|
|
58
76
|
<Unspaced>
|
|
59
|
-
<Dialog.Close asChild>
|
|
60
|
-
<Button pos="absolute" t="$3" r="$3" size="$2" circular icon={X} />
|
|
77
|
+
<Dialog.Close asChild space>
|
|
78
|
+
<Button pos="absolute" t="$3" r="$3" size="$2" circular space icon={X} />
|
|
61
79
|
</Dialog.Close>
|
|
62
80
|
</Unspaced>
|
|
63
81
|
</Dialog.Content>
|
|
@@ -10,15 +10,10 @@ const meta: Meta = {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export const main = () => (
|
|
13
|
-
<SimplePopover
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
</YStack>
|
|
18
|
-
}
|
|
19
|
-
arrowStyle={{ bc: '$backgroundStrong' }}
|
|
20
|
-
>
|
|
21
|
-
<Button>Click here to get a Popover</Button>
|
|
13
|
+
<SimplePopover trigger={<Button>Click here to get a Popover</Button>}>
|
|
14
|
+
<YStack>
|
|
15
|
+
<Text>popover content</Text>
|
|
16
|
+
</YStack>
|
|
22
17
|
</SimplePopover>
|
|
23
18
|
);
|
|
24
19
|
export default meta;
|
|
@@ -1,28 +1,19 @@
|
|
|
1
|
-
import type { PopoverProps, PopoverContentProps,
|
|
2
|
-
import { Adapt, Popover
|
|
1
|
+
import type { PopoverProps, PopoverContentProps, PopoverArrowProps } from 'tamagui';
|
|
2
|
+
import { Adapt, Popover } from 'tamagui';
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import type { ReactNode } from 'react';
|
|
4
5
|
|
|
5
|
-
type SimplePopoverProps = PopoverProps & {
|
|
6
|
-
adaptStyle?: AdaptProps;
|
|
6
|
+
export type SimplePopoverProps = PopoverProps & {
|
|
7
7
|
contentStyle?: PopoverContentProps;
|
|
8
8
|
arrowStyle?: PopoverArrowProps;
|
|
9
|
-
|
|
9
|
+
trigger: ReactNode;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
export function SimplePopover({
|
|
13
|
-
children,
|
|
14
|
-
element,
|
|
15
|
-
contentStyle,
|
|
16
|
-
adaptStyle,
|
|
17
|
-
arrowStyle,
|
|
18
|
-
...props
|
|
19
|
-
}: SimplePopoverProps) {
|
|
12
|
+
export function SimplePopover({ children, trigger, contentStyle, arrowStyle, ...props }: SimplePopoverProps) {
|
|
20
13
|
return (
|
|
21
14
|
<Popover size="$5" allowFlip {...props}>
|
|
22
|
-
<Popover.Trigger
|
|
23
|
-
|
|
24
|
-
</Popover.Trigger>
|
|
25
|
-
<Adapt when="sm" platform="web" {...adaptStyle}>
|
|
15
|
+
<Popover.Trigger asChild>{trigger}</Popover.Trigger>
|
|
16
|
+
<Adapt when="sm" platform="touch">
|
|
26
17
|
<Popover.Sheet modal dismissOnSnapToBottom>
|
|
27
18
|
<Popover.Sheet.Frame padding="$4">
|
|
28
19
|
<Adapt.Contents />
|
|
@@ -31,15 +22,15 @@ export function SimplePopover({
|
|
|
31
22
|
</Popover.Sheet>
|
|
32
23
|
</Adapt>
|
|
33
24
|
<Popover.Content
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
enterStyle={{ x:
|
|
37
|
-
exitStyle={{ x:
|
|
25
|
+
borderWidth={1}
|
|
26
|
+
borderColor="$borderColor"
|
|
27
|
+
enterStyle={{ x: 0, y: -10, opacity: 0 }}
|
|
28
|
+
exitStyle={{ x: 0, y: -10, opacity: 0 }}
|
|
38
29
|
x={0}
|
|
39
30
|
y={0}
|
|
40
|
-
|
|
31
|
+
opacity={1}
|
|
41
32
|
animation={[
|
|
42
|
-
'
|
|
33
|
+
'quick',
|
|
43
34
|
{
|
|
44
35
|
opacity: {
|
|
45
36
|
overshootClamping: true,
|
|
@@ -49,8 +40,8 @@ export function SimplePopover({
|
|
|
49
40
|
elevate
|
|
50
41
|
{...contentStyle}
|
|
51
42
|
>
|
|
52
|
-
<Popover.Arrow
|
|
53
|
-
|
|
43
|
+
<Popover.Arrow borderWidth={1} borderColor="$borderColor" />
|
|
44
|
+
{children}
|
|
54
45
|
</Popover.Content>
|
|
55
46
|
</Popover>
|
|
56
47
|
);
|
|
@@ -16,7 +16,9 @@ export function SimpleTooltip({
|
|
|
16
16
|
}: SimpleToolTipProps & { Icon?: any }) {
|
|
17
17
|
return (
|
|
18
18
|
<Tooltip {...props}>
|
|
19
|
-
<Tooltip.Trigger>
|
|
19
|
+
<Tooltip.Trigger cursor="pointer" ai="center">
|
|
20
|
+
{children}
|
|
21
|
+
</Tooltip.Trigger>
|
|
20
22
|
<Theme inverse {...themeStyle}>
|
|
21
23
|
<Tooltip.Content
|
|
22
24
|
enterStyle={{ x: 0, y: -5, o: 0, scale: 0.9 }}
|
|
@@ -35,7 +37,7 @@ export function SimpleTooltip({
|
|
|
35
37
|
]}
|
|
36
38
|
>
|
|
37
39
|
<Tooltip.Arrow />
|
|
38
|
-
<Paragraph size="$2" lineHeight="$1" {...paragraphStyle}>
|
|
40
|
+
<Paragraph ai="center" size="$2" lineHeight="$1" {...paragraphStyle}>
|
|
39
41
|
{element}
|
|
40
42
|
</Paragraph>
|
|
41
43
|
</Tooltip.Content>
|
|
@@ -13,7 +13,7 @@ const StyledTableFrame = styled(ThemeableStack, {
|
|
|
13
13
|
my: '$4',
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
-
const TableFrame = ({ heading, children, ...props }) => {
|
|
16
|
+
export const TableFrame = ({ heading, children, ...props }) => {
|
|
17
17
|
return (
|
|
18
18
|
<StyledTableFrame overflow={'scroll' as any} {...props}>
|
|
19
19
|
{!!heading && (
|
|
@@ -1,31 +1,46 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { GetProps } from 'tamagui';
|
|
2
|
-
export declare const Code: import("tamagui").TamaguiComponent<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").
|
|
3
|
+
export declare const Code: import("tamagui").TamaguiComponent<Omit<import("react-native").TextProps, "style" | "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
4
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
5
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{
|
|
6
|
+
readonly unstyled?: boolean | undefined;
|
|
3
7
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
4
8
|
} | ({
|
|
9
|
+
readonly unstyled?: boolean | undefined;
|
|
5
10
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
6
11
|
} & {
|
|
7
12
|
[x: string]: undefined;
|
|
8
13
|
}), "colored"> & {
|
|
9
14
|
readonly colored?: boolean | undefined;
|
|
10
|
-
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").
|
|
15
|
+
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").TextProps, "style" | "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
16
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
17
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{
|
|
18
|
+
readonly unstyled?: boolean | undefined;
|
|
11
19
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
12
20
|
} | ({
|
|
21
|
+
readonly unstyled?: boolean | undefined;
|
|
13
22
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
14
23
|
} & {
|
|
15
24
|
[x: string]: undefined;
|
|
16
25
|
}), "colored"> & {
|
|
17
26
|
readonly colored?: boolean | undefined;
|
|
18
|
-
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").
|
|
27
|
+
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").TextProps, "style" | "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
28
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
29
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{
|
|
30
|
+
readonly unstyled?: boolean | undefined;
|
|
19
31
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
20
32
|
} | ({
|
|
33
|
+
readonly unstyled?: boolean | undefined;
|
|
21
34
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
22
35
|
} & {
|
|
23
36
|
[x: string]: undefined;
|
|
24
37
|
}), "colored"> & {
|
|
25
38
|
readonly colored?: boolean | undefined;
|
|
26
39
|
}>>, import("tamagui").TamaguiElement, import("tamagui").TextPropsBase, ({
|
|
40
|
+
readonly unstyled?: boolean | undefined;
|
|
27
41
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
28
42
|
} | ({
|
|
43
|
+
readonly unstyled?: boolean | undefined;
|
|
29
44
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
30
45
|
} & {
|
|
31
46
|
[x: string]: undefined;
|
|
@@ -34,75 +49,119 @@ export declare const Code: import("tamagui").TamaguiComponent<Omit<import("react
|
|
|
34
49
|
}, {
|
|
35
50
|
displayName: string | undefined;
|
|
36
51
|
}>;
|
|
37
|
-
export declare const CodeInline: import("tamagui").TamaguiComponent<(Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").
|
|
38
|
-
|
|
39
|
-
} & import("@tamagui/web").
|
|
40
|
-
readonly
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
52
|
+
export declare const CodeInline: import("tamagui").TamaguiComponent<(Omit<import("react-native").TextProps, "style" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
53
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
54
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{}, "size" | "unstyled"> & {
|
|
55
|
+
readonly unstyled?: boolean | undefined;
|
|
56
|
+
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
57
|
+
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").TextProps, "style" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
58
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
59
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{}, "size" | "unstyled"> & {
|
|
60
|
+
readonly unstyled?: boolean | undefined;
|
|
61
|
+
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
62
|
+
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").TextProps, "style" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
63
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
64
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{}, "size" | "unstyled"> & {
|
|
65
|
+
readonly unstyled?: boolean | undefined;
|
|
66
|
+
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
67
|
+
}>>) | (Omit<import("react-native").TextProps, "style" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
68
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
69
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{
|
|
70
|
+
readonly unstyled?: boolean | undefined;
|
|
44
71
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
45
72
|
}, string | number> & {
|
|
46
73
|
[x: string]: undefined;
|
|
47
|
-
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").
|
|
74
|
+
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").TextProps, "style" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
75
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
76
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{
|
|
77
|
+
readonly unstyled?: boolean | undefined;
|
|
48
78
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
49
79
|
}, string | number> & {
|
|
50
80
|
[x: string]: undefined;
|
|
51
|
-
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").
|
|
81
|
+
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").TextProps, "style" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
82
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
83
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{
|
|
84
|
+
readonly unstyled?: boolean | undefined;
|
|
52
85
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
53
86
|
}, string | number> & {
|
|
54
87
|
[x: string]: undefined;
|
|
55
|
-
}>>) | (Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").
|
|
88
|
+
}>>) | (Omit<import("react-native").TextProps, "style" | "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
89
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
90
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{
|
|
91
|
+
readonly unstyled?: boolean | undefined;
|
|
56
92
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
57
93
|
} | ({
|
|
94
|
+
readonly unstyled?: boolean | undefined;
|
|
58
95
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
59
96
|
} & {
|
|
60
97
|
[x: string]: undefined;
|
|
61
98
|
}), string | number> & {
|
|
62
99
|
[x: string]: undefined;
|
|
63
|
-
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").
|
|
100
|
+
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").TextProps, "style" | "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
101
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
102
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{
|
|
103
|
+
readonly unstyled?: boolean | undefined;
|
|
64
104
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
65
105
|
} | ({
|
|
106
|
+
readonly unstyled?: boolean | undefined;
|
|
66
107
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
67
108
|
} & {
|
|
68
109
|
[x: string]: undefined;
|
|
69
110
|
}), string | number> & {
|
|
70
111
|
[x: string]: undefined;
|
|
71
|
-
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").
|
|
112
|
+
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").TextProps, "style" | "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
113
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
114
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{
|
|
115
|
+
readonly unstyled?: boolean | undefined;
|
|
72
116
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
73
117
|
} | ({
|
|
118
|
+
readonly unstyled?: boolean | undefined;
|
|
74
119
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
75
120
|
} & {
|
|
76
121
|
[x: string]: undefined;
|
|
77
122
|
}), string | number> & {
|
|
78
123
|
[x: string]: undefined;
|
|
79
|
-
}>>) | (Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").
|
|
124
|
+
}>>) | (Omit<import("react-native").TextProps, "style" | "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
125
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
126
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{
|
|
127
|
+
readonly unstyled?: boolean | undefined;
|
|
80
128
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
81
129
|
} | ({
|
|
130
|
+
readonly unstyled?: boolean | undefined;
|
|
82
131
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
83
132
|
} & {
|
|
84
133
|
[x: string]: undefined;
|
|
85
134
|
}), string | number> & {
|
|
86
135
|
[x: string]: undefined;
|
|
87
|
-
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").
|
|
136
|
+
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").TextProps, "style" | "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
137
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
138
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{
|
|
139
|
+
readonly unstyled?: boolean | undefined;
|
|
88
140
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
89
141
|
} | ({
|
|
142
|
+
readonly unstyled?: boolean | undefined;
|
|
90
143
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
91
144
|
} & {
|
|
92
145
|
[x: string]: undefined;
|
|
93
146
|
}), string | number> & {
|
|
94
147
|
[x: string]: undefined;
|
|
95
|
-
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").
|
|
148
|
+
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").TextProps, "style" | "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseTextProps & import("tamagui").TamaguiComponentPropsBase & {
|
|
149
|
+
style?: import("@tamagui/web").StyleProp<import("react").CSSProperties & import("react-native").TextStyle>;
|
|
150
|
+
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & Omit<{
|
|
151
|
+
readonly unstyled?: boolean | undefined;
|
|
96
152
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
97
153
|
} | ({
|
|
154
|
+
readonly unstyled?: boolean | undefined;
|
|
98
155
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
99
156
|
} & {
|
|
100
157
|
[x: string]: undefined;
|
|
101
158
|
}), string | number> & {
|
|
102
159
|
[x: string]: undefined;
|
|
103
160
|
}>>), import("tamagui").TamaguiElement, import("tamagui").TextPropsBase, ({
|
|
161
|
+
readonly unstyled?: boolean | undefined;
|
|
104
162
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
105
163
|
} | ({
|
|
164
|
+
readonly unstyled?: boolean | undefined;
|
|
106
165
|
readonly size?: import("tamagui").FontSizeTokens | undefined;
|
|
107
166
|
} & {
|
|
108
167
|
[x: string]: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/code/Code/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIxC,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/code/Code/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIxC,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBf,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAE9C,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC"}
|