@tamagui/text 2.7.7 → 3.0.0-beta.643.1
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/Emphasis.cjs +22 -25
- package/dist/cjs/Emphasis.native.cjs +40 -0
- package/dist/cjs/Emphasis.native.js +22 -24
- package/dist/cjs/Emphasis.native.js.map +1 -1
- package/dist/cjs/Headings.cjs +51 -100
- package/dist/cjs/Headings.native.cjs +80 -0
- package/dist/cjs/Headings.native.js +51 -99
- package/dist/cjs/Headings.native.js.map +1 -1
- package/dist/cjs/Paragraph.cjs +21 -24
- package/dist/cjs/Paragraph.native.cjs +36 -0
- package/dist/cjs/Paragraph.native.js +21 -23
- package/dist/cjs/Paragraph.native.js.map +1 -1
- package/dist/cjs/SizableText.cjs +29 -45
- package/dist/cjs/SizableText.native.cjs +46 -0
- package/dist/cjs/SizableText.native.js +31 -45
- package/dist/cjs/SizableText.native.js.map +1 -1
- package/dist/cjs/index.cjs +10 -11
- package/dist/cjs/index.native.cjs +26 -0
- package/dist/cjs/index.native.js +10 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/types.cjs +10 -11
- package/dist/cjs/types.native.cjs +19 -0
- package/dist/cjs/types.native.js +10 -10
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/wrapChildrenInText.cjs +57 -67
- package/dist/cjs/wrapChildrenInText.native.cjs +74 -0
- package/dist/cjs/wrapChildrenInText.native.js +56 -66
- package/dist/cjs/wrapChildrenInText.native.js.map +1 -1
- package/dist/esm/Emphasis.mjs +8 -8
- package/dist/esm/Emphasis.mjs.map +1 -1
- package/dist/esm/Emphasis.native.js +8 -8
- package/dist/esm/Emphasis.native.js.map +1 -1
- package/dist/esm/Headings.mjs +32 -78
- package/dist/esm/Headings.mjs.map +1 -1
- package/dist/esm/Headings.native.js +32 -78
- package/dist/esm/Headings.native.js.map +1 -1
- package/dist/esm/Paragraph.mjs +8 -6
- package/dist/esm/Paragraph.mjs.map +1 -1
- package/dist/esm/Paragraph.native.js +8 -6
- package/dist/esm/Paragraph.native.js.map +1 -1
- package/dist/esm/SizableText.mjs +17 -28
- package/dist/esm/SizableText.mjs.map +1 -1
- package/dist/esm/SizableText.native.js +18 -28
- package/dist/esm/SizableText.native.js.map +1 -1
- package/dist/esm/index.js +11 -7
- package/dist/esm/index.mjs +11 -7
- package/dist/esm/index.native.js +11 -7
- package/dist/esm/types.mjs +0 -2
- package/dist/esm/types.native.js +0 -2
- package/dist/esm/wrapChildrenInText.mjs +40 -41
- package/dist/esm/wrapChildrenInText.mjs.map +1 -1
- package/dist/esm/wrapChildrenInText.native.js +41 -42
- package/dist/esm/wrapChildrenInText.native.js.map +1 -1
- package/dist/jsx/Emphasis.mjs +8 -8
- package/dist/jsx/Emphasis.mjs.map +1 -1
- package/dist/jsx/Emphasis.native.cjs +40 -0
- package/dist/jsx/Emphasis.native.js +22 -24
- package/dist/jsx/Emphasis.native.js.map +1 -1
- package/dist/jsx/Headings.mjs +32 -78
- package/dist/jsx/Headings.mjs.map +1 -1
- package/dist/jsx/Headings.native.cjs +80 -0
- package/dist/jsx/Headings.native.js +51 -99
- package/dist/jsx/Headings.native.js.map +1 -1
- package/dist/jsx/Paragraph.mjs +8 -6
- package/dist/jsx/Paragraph.mjs.map +1 -1
- package/dist/jsx/Paragraph.native.cjs +36 -0
- package/dist/jsx/Paragraph.native.js +21 -23
- package/dist/jsx/Paragraph.native.js.map +1 -1
- package/dist/jsx/SizableText.mjs +17 -28
- package/dist/jsx/SizableText.mjs.map +1 -1
- package/dist/jsx/SizableText.native.cjs +46 -0
- package/dist/jsx/SizableText.native.js +31 -45
- package/dist/jsx/SizableText.native.js.map +1 -1
- package/dist/jsx/index.js +11 -7
- package/dist/jsx/index.mjs +11 -7
- package/dist/jsx/index.native.cjs +26 -0
- package/dist/jsx/index.native.js +10 -10
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/types.mjs +0 -2
- package/dist/jsx/types.native.cjs +19 -0
- package/dist/jsx/types.native.js +10 -10
- package/dist/jsx/types.native.js.map +1 -1
- package/dist/jsx/wrapChildrenInText.mjs +40 -41
- package/dist/jsx/wrapChildrenInText.mjs.map +1 -1
- package/dist/jsx/wrapChildrenInText.native.cjs +74 -0
- package/dist/jsx/wrapChildrenInText.native.js +56 -66
- package/dist/jsx/wrapChildrenInText.native.js.map +1 -1
- package/package.json +5 -5
- package/src/Headings.tsx +15 -15
- package/src/Paragraph.tsx +3 -3
- package/src/SizableText.tsx +6 -18
- package/src/wrapChildrenInText.tsx +32 -11
- package/types/Emphasis.d.ts +15 -3
- package/types/Emphasis.d.ts.map +1 -1
- package/types/Headings.d.ts +89 -22
- package/types/Headings.d.ts.map +1 -1
- package/types/Paragraph.d.ts +11 -4
- package/types/Paragraph.d.ts.map +1 -1
- package/types/SizableText.d.ts +11 -4
- package/types/SizableText.d.ts.map +1 -1
- package/types/wrapChildrenInText.d.ts +2 -4
- package/types/wrapChildrenInText.d.ts.map +1 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/types.mjs.map +0 -1
- package/dist/esm/types.native.js.map +0 -1
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
- package/dist/jsx/types.mjs.map +0 -1
package/src/Headings.tsx
CHANGED
|
@@ -5,23 +5,23 @@ import { Paragraph } from './Paragraph'
|
|
|
5
5
|
|
|
6
6
|
export const Heading = styled(Paragraph, {
|
|
7
7
|
render: 'span',
|
|
8
|
-
|
|
8
|
+
displayName: 'Heading',
|
|
9
9
|
role: 'heading',
|
|
10
|
-
fontFamily: '
|
|
11
|
-
size: '$8',
|
|
10
|
+
fontFamily: 'heading',
|
|
12
11
|
margin: 0,
|
|
12
|
+
size: '8',
|
|
13
13
|
})
|
|
14
14
|
|
|
15
15
|
export type HeadingProps = GetProps<typeof Heading>
|
|
16
16
|
|
|
17
17
|
export const H1 = styled(Heading, {
|
|
18
|
-
|
|
18
|
+
displayName: 'H1',
|
|
19
19
|
render: 'h1',
|
|
20
20
|
|
|
21
21
|
variants: {
|
|
22
22
|
unstyled: {
|
|
23
23
|
false: {
|
|
24
|
-
size: '
|
|
24
|
+
size: '10',
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
27
|
} as const,
|
|
@@ -32,13 +32,13 @@ export const H1 = styled(Heading, {
|
|
|
32
32
|
})
|
|
33
33
|
|
|
34
34
|
export const H2 = styled(Heading, {
|
|
35
|
-
|
|
35
|
+
displayName: 'H2',
|
|
36
36
|
render: 'h2',
|
|
37
37
|
|
|
38
38
|
variants: {
|
|
39
39
|
unstyled: {
|
|
40
40
|
false: {
|
|
41
|
-
size: '
|
|
41
|
+
size: '9',
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
44
|
} as const,
|
|
@@ -49,13 +49,13 @@ export const H2 = styled(Heading, {
|
|
|
49
49
|
})
|
|
50
50
|
|
|
51
51
|
export const H3 = styled(Heading, {
|
|
52
|
-
|
|
52
|
+
displayName: 'H3',
|
|
53
53
|
render: 'h3',
|
|
54
54
|
|
|
55
55
|
variants: {
|
|
56
56
|
unstyled: {
|
|
57
57
|
false: {
|
|
58
|
-
size: '
|
|
58
|
+
size: '8',
|
|
59
59
|
},
|
|
60
60
|
},
|
|
61
61
|
} as const,
|
|
@@ -66,13 +66,13 @@ export const H3 = styled(Heading, {
|
|
|
66
66
|
})
|
|
67
67
|
|
|
68
68
|
export const H4 = styled(Heading, {
|
|
69
|
-
|
|
69
|
+
displayName: 'H4',
|
|
70
70
|
render: 'h4',
|
|
71
71
|
|
|
72
72
|
variants: {
|
|
73
73
|
unstyled: {
|
|
74
74
|
false: {
|
|
75
|
-
size: '
|
|
75
|
+
size: '7',
|
|
76
76
|
},
|
|
77
77
|
},
|
|
78
78
|
} as const,
|
|
@@ -83,13 +83,13 @@ export const H4 = styled(Heading, {
|
|
|
83
83
|
})
|
|
84
84
|
|
|
85
85
|
export const H5 = styled(Heading, {
|
|
86
|
-
|
|
86
|
+
displayName: 'H5',
|
|
87
87
|
render: 'h5',
|
|
88
88
|
|
|
89
89
|
variants: {
|
|
90
90
|
unstyled: {
|
|
91
91
|
false: {
|
|
92
|
-
size: '
|
|
92
|
+
size: '6',
|
|
93
93
|
},
|
|
94
94
|
},
|
|
95
95
|
} as const,
|
|
@@ -100,13 +100,13 @@ export const H5 = styled(Heading, {
|
|
|
100
100
|
})
|
|
101
101
|
|
|
102
102
|
export const H6 = styled(Heading, {
|
|
103
|
-
|
|
103
|
+
displayName: 'H6',
|
|
104
104
|
render: 'h6',
|
|
105
105
|
|
|
106
106
|
variants: {
|
|
107
107
|
unstyled: {
|
|
108
108
|
false: {
|
|
109
|
-
size: '
|
|
109
|
+
size: '5',
|
|
110
110
|
},
|
|
111
111
|
},
|
|
112
112
|
} as const,
|
package/src/Paragraph.tsx
CHANGED
|
@@ -4,12 +4,12 @@ import { styled } from '@tamagui/web'
|
|
|
4
4
|
import { SizableText } from './SizableText'
|
|
5
5
|
|
|
6
6
|
export const Paragraph = styled(SizableText, {
|
|
7
|
-
|
|
7
|
+
displayName: 'Paragraph',
|
|
8
8
|
render: 'p',
|
|
9
9
|
userSelect: 'auto',
|
|
10
|
-
color: '
|
|
11
|
-
size: '$true',
|
|
10
|
+
color: 'color',
|
|
12
11
|
whiteSpace: 'normal',
|
|
12
|
+
size: true,
|
|
13
13
|
})
|
|
14
14
|
|
|
15
15
|
export type ParagraphProps = GetProps<typeof Paragraph>
|
package/src/SizableText.tsx
CHANGED
|
@@ -3,23 +3,13 @@ import type { GetProps } from '@tamagui/web'
|
|
|
3
3
|
import { Text, styled } from '@tamagui/web'
|
|
4
4
|
|
|
5
5
|
export const SizableText = styled(Text, {
|
|
6
|
-
|
|
7
|
-
fontFamily: '
|
|
8
|
-
|
|
6
|
+
displayName: 'SizableText',
|
|
7
|
+
fontFamily: 'body',
|
|
8
|
+
color: 'color',
|
|
9
|
+
size: true,
|
|
9
10
|
variants: {
|
|
10
|
-
unstyled: {
|
|
11
|
-
false: {
|
|
12
|
-
size: '$true',
|
|
13
|
-
color: '$color',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
|
|
17
11
|
size: getFontSized,
|
|
18
12
|
},
|
|
19
|
-
|
|
20
|
-
defaultVariants: {
|
|
21
|
-
unstyled: process.env.TAMAGUI_HEADLESS === '1',
|
|
22
|
-
},
|
|
23
13
|
})
|
|
24
14
|
|
|
25
15
|
SizableText.staticConfig.inlineProps = new Set([
|
|
@@ -30,7 +20,7 @@ SizableText.staticConfig.inlineProps = new Set([
|
|
|
30
20
|
// we are doing weird stuff to avoid bad types
|
|
31
21
|
// TODO make this just work
|
|
32
22
|
SizableText.staticConfig.variants!.fontFamily = {
|
|
33
|
-
|
|
23
|
+
any: (val, extras) => {
|
|
34
24
|
// pass through inherit directly without font variant expansion
|
|
35
25
|
if (val === 'inherit') {
|
|
36
26
|
return { fontFamily: 'inherit' }
|
|
@@ -39,9 +29,7 @@ SizableText.staticConfig.variants!.fontFamily = {
|
|
|
39
29
|
const sizeProp = extras.props['size']
|
|
40
30
|
const fontSizeProp = extras.props['fontSize']
|
|
41
31
|
const size =
|
|
42
|
-
sizeProp ===
|
|
43
|
-
? fontSizeProp
|
|
44
|
-
: extras.props['size'] || '$true'
|
|
32
|
+
sizeProp === true && fontSizeProp ? fontSizeProp : (extras.props['size'] ?? true)
|
|
45
33
|
return getFontSized(size, extras)
|
|
46
34
|
},
|
|
47
35
|
}
|
|
@@ -5,14 +5,12 @@ import type { TextParentStyles } from './types'
|
|
|
5
5
|
|
|
6
6
|
type Props = TextParentStyles & {
|
|
7
7
|
children?: React.ReactNode
|
|
8
|
-
size?: SizeTokens
|
|
8
|
+
size?: SizeTokens | true
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export function wrapChildrenInText(
|
|
12
12
|
TextComponent: any,
|
|
13
|
-
propsIn: Props & {
|
|
14
|
-
unstyled?: boolean
|
|
15
|
-
},
|
|
13
|
+
propsIn: Props & {},
|
|
16
14
|
extraProps?: Record<string, any>
|
|
17
15
|
) {
|
|
18
16
|
const {
|
|
@@ -51,14 +49,37 @@ export function wrapChildrenInText(
|
|
|
51
49
|
if (ellipsis !== undefined) props.ellipsis = ellipsis
|
|
52
50
|
if (maxFontSizeMultiplier != null) props.maxFontSizeMultiplier = maxFontSizeMultiplier
|
|
53
51
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
// adjacent text children are joined into ONE TextComponent. `<Button>hi {name}</Button>`
|
|
53
|
+
// is two children ('hi ', name), and wrapping each separately renders them as sibling
|
|
54
|
+
// text nodes: they lay out with a gap, ellipsis/wrapping applies per fragment instead of
|
|
55
|
+
// to the whole string, and assistive tech (plus native test matchers) sees fragments
|
|
56
|
+
// rather than one label. Numbers count as text too — leaving them unwrapped throws
|
|
57
|
+
// "Text strings must be rendered within a <Text>" on native.
|
|
58
|
+
const out: React.ReactNode[] = []
|
|
59
|
+
let run: (string | number)[] = []
|
|
60
|
+
let runKey = 0
|
|
61
|
+
|
|
62
|
+
const flushRun = () => {
|
|
63
|
+
if (!run.length) return
|
|
64
|
+
out.push(
|
|
65
|
+
// data-disable-theme keeps wrapped text from adding another theme boundary
|
|
66
|
+
<TextComponent key={`text-${runKey}`} {...props} {...textProps}>
|
|
67
|
+
{run.length === 1 ? run[0] : run.join('')}
|
|
59
68
|
</TextComponent>
|
|
60
|
-
) : (
|
|
61
|
-
child
|
|
62
69
|
)
|
|
70
|
+
run = []
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
React.Children.toArray(children).forEach((child, index) => {
|
|
74
|
+
if (typeof child === 'string' || typeof child === 'number') {
|
|
75
|
+
if (!run.length) runKey = index
|
|
76
|
+
run.push(child)
|
|
77
|
+
return
|
|
78
|
+
}
|
|
79
|
+
flushRun()
|
|
80
|
+
out.push(child)
|
|
63
81
|
})
|
|
82
|
+
flushRun()
|
|
83
|
+
|
|
84
|
+
return out
|
|
64
85
|
}
|
package/types/Emphasis.d.ts
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
export declare const Strong: import("
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const Strong: import("react").FunctionComponent<Omit<import("@tamagui/web").TextNonStyleProps, keyof import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
2
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
3
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
4
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {}, import("@tamagui/web").StaticConfigPublic];
|
|
5
|
+
};
|
|
6
|
+
export declare const Span: import("react").FunctionComponent<Omit<import("@tamagui/web").TextNonStyleProps, keyof import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
7
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
8
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
9
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {}, import("@tamagui/web").StaticConfigPublic];
|
|
10
|
+
};
|
|
11
|
+
export declare const Em: import("react").FunctionComponent<Omit<import("@tamagui/web").TextNonStyleProps, keyof import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
12
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
13
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
14
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {}, import("@tamagui/web").StaticConfigPublic];
|
|
15
|
+
};
|
|
4
16
|
//# sourceMappingURL=Emphasis.d.ts.map
|
package/types/Emphasis.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Emphasis.d.ts","sourceRoot":"","sources":["../src/Emphasis.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Emphasis.d.ts","sourceRoot":"","sources":["../src/Emphasis.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;CAGjB,CAAA;AAEF,eAAO,MAAM,IAAI;;;;CAEf,CAAA;AAEF,eAAO,MAAM,EAAE;;;;CAGb,CAAA"}
|
package/types/Headings.d.ts
CHANGED
|
@@ -1,31 +1,98 @@
|
|
|
1
1
|
import type { GetProps } from '@tamagui/web';
|
|
2
|
-
export declare const Heading: import("
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export declare const Heading: import("react").FunctionComponent<Omit<import("@tamagui/web").TextNonStyleProps, "size" | keyof import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & {
|
|
3
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
4
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
5
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
6
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
7
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
8
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
9
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
10
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
11
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
12
|
+
};
|
|
6
13
|
export type HeadingProps = GetProps<typeof Heading>;
|
|
7
|
-
export declare const H1: import("
|
|
14
|
+
export declare const H1: import("react").FunctionComponent<Omit<import("@tamagui/web").TextNonStyleProps, "size" | "unstyled" | keyof import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & {
|
|
15
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
16
|
+
unstyled?: boolean | undefined;
|
|
17
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
18
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
19
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
20
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
21
|
+
unstyled?: boolean | undefined;
|
|
22
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
23
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
24
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
25
|
+
unstyled?: boolean | undefined;
|
|
26
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
27
|
+
};
|
|
28
|
+
export declare const H2: import("react").FunctionComponent<Omit<import("@tamagui/web").TextNonStyleProps, "size" | "unstyled" | keyof import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & {
|
|
29
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
30
|
+
unstyled?: boolean | undefined;
|
|
31
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
32
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
33
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
34
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
35
|
+
unstyled?: boolean | undefined;
|
|
36
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
37
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
38
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
39
|
+
unstyled?: boolean | undefined;
|
|
40
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
41
|
+
};
|
|
42
|
+
export declare const H3: import("react").FunctionComponent<Omit<import("@tamagui/web").TextNonStyleProps, "size" | "unstyled" | keyof import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & {
|
|
43
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
44
|
+
unstyled?: boolean | undefined;
|
|
45
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
46
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
47
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
48
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
49
|
+
unstyled?: boolean | undefined;
|
|
50
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
51
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
52
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
53
|
+
unstyled?: boolean | undefined;
|
|
54
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
55
|
+
};
|
|
56
|
+
export declare const H4: import("react").FunctionComponent<Omit<import("@tamagui/web").TextNonStyleProps, "size" | "unstyled" | keyof import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & {
|
|
57
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
8
58
|
unstyled?: boolean | undefined;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
59
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
60
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
61
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
62
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
12
63
|
unstyled?: boolean | undefined;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
64
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
65
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
66
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
67
|
+
unstyled?: boolean | undefined;
|
|
68
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
69
|
+
};
|
|
70
|
+
export declare const H5: import("react").FunctionComponent<Omit<import("@tamagui/web").TextNonStyleProps, "size" | "unstyled" | keyof import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & {
|
|
71
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
16
72
|
unstyled?: boolean | undefined;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
73
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
74
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
75
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
76
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
20
77
|
unstyled?: boolean | undefined;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
78
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
79
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
80
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
81
|
+
unstyled?: boolean | undefined;
|
|
82
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
83
|
+
};
|
|
84
|
+
export declare const H6: import("react").FunctionComponent<Omit<import("@tamagui/web").TextNonStyleProps, "size" | "unstyled" | keyof import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & {
|
|
85
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
24
86
|
unstyled?: boolean | undefined;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
87
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
88
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
89
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
90
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
28
91
|
unstyled?: boolean | undefined;
|
|
29
|
-
|
|
30
|
-
|
|
92
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
93
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
94
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
95
|
+
unstyled?: boolean | undefined;
|
|
96
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
97
|
+
};
|
|
31
98
|
//# sourceMappingURL=Headings.d.ts.map
|
package/types/Headings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Headings.d.ts","sourceRoot":"","sources":["../src/Headings.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAK5C,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"Headings.d.ts","sourceRoot":"","sources":["../src/Headings.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAK5C,eAAO,MAAM,OAAO;;;;;;;;;;CAOlB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAA;AAEnD,eAAO,MAAM,EAAE;;;;;;;;;;;;;CAeb,CAAA;AAEF,eAAO,MAAM,EAAE;;;;;;;;;;;;;CAeb,CAAA;AAEF,eAAO,MAAM,EAAE;;;;;;;;;;;;;CAeb,CAAA;AAEF,eAAO,MAAM,EAAE;;;;;;;;;;;;;CAeb,CAAA;AAEF,eAAO,MAAM,EAAE;;;;;;;;;;;;;CAeb,CAAA;AAEF,eAAO,MAAM,EAAE;;;;;;;;;;;;;CAeb,CAAA"}
|
package/types/Paragraph.d.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { GetProps } from '@tamagui/web';
|
|
2
|
-
export declare const Paragraph: import("
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export declare const Paragraph: import("react").FunctionComponent<Omit<import("@tamagui/web").TextNonStyleProps, "size" | keyof import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & {
|
|
3
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
4
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
5
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
6
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
7
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
8
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
9
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
10
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
11
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
12
|
+
};
|
|
6
13
|
export type ParagraphProps = GetProps<typeof Paragraph>;
|
|
7
14
|
//# sourceMappingURL=Paragraph.d.ts.map
|
package/types/Paragraph.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../src/Paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAK5C,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../src/Paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAK5C,eAAO,MAAM,SAAS;;;;;;;;;;CAOpB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAA"}
|
package/types/SizableText.d.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { GetProps } from '@tamagui/web';
|
|
2
|
-
export declare const SizableText: import("
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export declare const SizableText: import("react").FunctionComponent<Omit<import("@tamagui/web").TextNonStyleProps, "size" | keyof import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & {
|
|
3
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
4
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
5
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
6
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
7
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
8
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
9
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
10
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
11
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
12
|
+
};
|
|
6
13
|
export type SizableTextProps = GetProps<typeof SizableText>;
|
|
7
14
|
//# sourceMappingURL=SizableText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SizableText.d.ts","sourceRoot":"","sources":["../src/SizableText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAG5C,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"SizableText.d.ts","sourceRoot":"","sources":["../src/SizableText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAG5C,eAAO,MAAM,WAAW;;;;;;;;;;CAQtB,CAAA;AAwBF,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAA"}
|
|
@@ -3,10 +3,8 @@ import React from 'react';
|
|
|
3
3
|
import type { TextParentStyles } from './types';
|
|
4
4
|
type Props = TextParentStyles & {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
|
-
size?: SizeTokens;
|
|
6
|
+
size?: SizeTokens | true;
|
|
7
7
|
};
|
|
8
|
-
export declare function wrapChildrenInText(TextComponent: any, propsIn: Props & {
|
|
9
|
-
unstyled?: boolean;
|
|
10
|
-
}, extraProps?: Record<string, any>): React.ReactNode[] | (number | bigint | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element)[];
|
|
8
|
+
export declare function wrapChildrenInText(TextComponent: any, propsIn: Props & {}, extraProps?: Record<string, any>): React.ReactNode[];
|
|
11
9
|
export {};
|
|
12
10
|
//# sourceMappingURL=wrapChildrenInText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapChildrenInText.d.ts","sourceRoot":"","sources":["../src/wrapChildrenInText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,KAAK,KAAK,GAAG,gBAAgB,GAAG;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,IAAI,CAAC,EAAE,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"wrapChildrenInText.d.ts","sourceRoot":"","sources":["../src/wrapChildrenInText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,KAAK,KAAK,GAAG,gBAAgB,GAAG;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;CACzB,CAAA;AAED,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,GAAG,EAClB,OAAO,EAAE,KAAK,GAAG,EAAE,EACnB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,qBAuEjC"}
|
package/dist/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
|
package/dist/esm/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
|
package/dist/esm/types.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
|
package/dist/jsx/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
|
package/dist/jsx/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
|
package/dist/jsx/types.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
|