@tamagui/text 2.7.7 → 3.0.0-beta.1091.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 +21 -25
- package/dist/cjs/Emphasis.native.cjs +39 -0
- package/dist/cjs/Emphasis.native.js +21 -24
- package/dist/cjs/Emphasis.native.js.map +1 -1
- package/dist/cjs/Headings.cjs +50 -100
- package/dist/cjs/Headings.native.cjs +79 -0
- package/dist/cjs/Headings.native.js +50 -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 +40 -46
- package/dist/cjs/SizableText.native.cjs +56 -0
- package/dist/cjs/SizableText.native.js +42 -46
- package/dist/cjs/SizableText.native.js.map +1 -1
- package/dist/cjs/index.cjs +9 -11
- package/dist/cjs/index.native.cjs +25 -0
- package/dist/cjs/index.native.js +9 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/types.cjs +25 -11
- package/dist/cjs/types.native.cjs +34 -0
- package/dist/cjs/types.native.js +25 -10
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/wrapChildrenInText.cjs +56 -67
- package/dist/cjs/wrapChildrenInText.native.cjs +73 -0
- package/dist/cjs/wrapChildrenInText.native.js +55 -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 +9 -6
- package/dist/esm/Paragraph.mjs.map +1 -1
- package/dist/esm/Paragraph.native.js +9 -6
- package/dist/esm/Paragraph.native.js.map +1 -1
- package/dist/esm/SizableText.mjs +29 -29
- package/dist/esm/SizableText.mjs.map +1 -1
- package/dist/esm/SizableText.native.js +30 -29
- 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 +11 -0
- package/dist/esm/types.mjs.map +1 -1
- package/dist/esm/types.native.js +11 -0
- package/dist/esm/types.native.js.map +1 -1
- 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 +39 -0
- package/dist/jsx/Emphasis.native.js +21 -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 +79 -0
- package/dist/jsx/Headings.native.js +50 -99
- package/dist/jsx/Headings.native.js.map +1 -1
- package/dist/jsx/Paragraph.mjs +9 -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 +29 -29
- package/dist/jsx/SizableText.mjs.map +1 -1
- package/dist/jsx/SizableText.native.cjs +56 -0
- package/dist/jsx/SizableText.native.js +42 -46
- 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 +25 -0
- package/dist/jsx/index.native.js +9 -10
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/types.mjs +11 -0
- package/dist/jsx/types.mjs.map +1 -1
- package/dist/jsx/types.native.cjs +34 -0
- package/dist/jsx/types.native.js +25 -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 +73 -0
- package/dist/jsx/wrapChildrenInText.native.js +55 -66
- package/dist/jsx/wrapChildrenInText.native.js.map +1 -1
- package/package.json +7 -6
- package/src/Headings.tsx +15 -15
- package/src/Paragraph.tsx +4 -3
- package/src/SizableText.tsx +32 -33
- package/src/types.ts +30 -5
- 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 +1 -2
- package/types/SizableText.d.ts.map +1 -1
- package/types/types.d.ts +44 -1
- package/types/types.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/jsx/index.js.map +0 -1
- package/dist/jsx/index.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,13 @@ 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
|
+
className: 'tm-paragraph',
|
|
8
9
|
render: 'p',
|
|
9
10
|
userSelect: 'auto',
|
|
10
|
-
color: '
|
|
11
|
-
size: '$true',
|
|
11
|
+
color: 'color',
|
|
12
12
|
whiteSpace: 'normal',
|
|
13
|
+
size: true,
|
|
13
14
|
})
|
|
14
15
|
|
|
15
16
|
export type ParagraphProps = GetProps<typeof Paragraph>
|
package/src/SizableText.tsx
CHANGED
|
@@ -2,24 +2,42 @@ import { getFontSized } from '@tamagui/get-font-sized'
|
|
|
2
2
|
import type { GetProps } from '@tamagui/web'
|
|
3
3
|
import { Text, styled } from '@tamagui/web'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
fontFamily: '
|
|
8
|
-
|
|
5
|
+
const SizableTextFrame = styled(Text, {
|
|
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
|
},
|
|
13
|
+
})
|
|
19
14
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
export const SizableText = SizableTextFrame.resolve((props, env) => {
|
|
16
|
+
if (props.fontFamily === 'inherit') {
|
|
17
|
+
return { fontFamily: 'inherit' }
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// This replaces the old `fontFamily: { any: ... }` variant. Only an
|
|
21
|
+
// authored fontFamily prop triggered that variant; running it for the
|
|
22
|
+
// component's inherited base family would let this resolver overwrite a
|
|
23
|
+
// later variant's size (for example H1's unstyled=false -> size=10).
|
|
24
|
+
if (props.fontFamily === undefined) {
|
|
25
|
+
return {}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const size =
|
|
29
|
+
props.size === true && props.fontSize ? props.fontSize : (props.size ?? true)
|
|
30
|
+
const sized = getFontSized(size as any, env)
|
|
31
|
+
return {
|
|
32
|
+
color: sized?.color,
|
|
33
|
+
fontFamily: sized?.fontFamily,
|
|
34
|
+
fontSize: sized?.fontSize,
|
|
35
|
+
fontStyle: sized?.fontStyle,
|
|
36
|
+
fontWeight: sized?.fontWeight,
|
|
37
|
+
letterSpacing: sized?.letterSpacing,
|
|
38
|
+
lineHeight: sized?.lineHeight,
|
|
39
|
+
textTransform: sized?.textTransform,
|
|
40
|
+
}
|
|
23
41
|
})
|
|
24
42
|
|
|
25
43
|
SizableText.staticConfig.inlineProps = new Set([
|
|
@@ -27,23 +45,4 @@ SizableText.staticConfig.inlineProps = new Set([
|
|
|
27
45
|
'maxFontSizeMultiplier',
|
|
28
46
|
])
|
|
29
47
|
|
|
30
|
-
// we are doing weird stuff to avoid bad types
|
|
31
|
-
// TODO make this just work
|
|
32
|
-
SizableText.staticConfig.variants!.fontFamily = {
|
|
33
|
-
'...': (val, extras) => {
|
|
34
|
-
// pass through inherit directly without font variant expansion
|
|
35
|
-
if (val === 'inherit') {
|
|
36
|
-
return { fontFamily: 'inherit' }
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const sizeProp = extras.props['size']
|
|
40
|
-
const fontSizeProp = extras.props['fontSize']
|
|
41
|
-
const size =
|
|
42
|
-
sizeProp === '$true' && fontSizeProp
|
|
43
|
-
? fontSizeProp
|
|
44
|
-
: extras.props['size'] || '$true'
|
|
45
|
-
return getFontSized(size, extras)
|
|
46
|
-
},
|
|
47
|
-
}
|
|
48
|
-
|
|
49
48
|
export type SizableTextProps = GetProps<typeof SizableText>
|
package/src/types.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
stylePropsTextOnly,
|
|
3
|
+
type Shorthands,
|
|
4
|
+
type TextStyle,
|
|
5
|
+
type TextStylePropsBase,
|
|
6
|
+
type WithShorthands,
|
|
7
|
+
} from '@tamagui/web'
|
|
8
|
+
|
|
1
9
|
import type { SizableTextProps } from './SizableText'
|
|
2
10
|
|
|
11
|
+
export const textParentProps = {
|
|
12
|
+
...stylePropsTextOnly,
|
|
13
|
+
ellipsis: true,
|
|
14
|
+
maxFontSizeMultiplier: true,
|
|
15
|
+
noTextWrap: true,
|
|
16
|
+
numberOfLines: true,
|
|
17
|
+
textProps: true,
|
|
18
|
+
} as const
|
|
19
|
+
|
|
3
20
|
export type TextContextStyles = {
|
|
4
21
|
color?: SizableTextProps['color']
|
|
5
22
|
fontWeight?: SizableTextProps['fontWeight']
|
|
@@ -12,8 +29,16 @@ export type TextContextStyles = {
|
|
|
12
29
|
maxFontSizeMultiplier?: number
|
|
13
30
|
}
|
|
14
31
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
32
|
+
type TextParentStyleKeys = Extract<keyof TextStylePropsBase, keyof typeof textParentProps>
|
|
33
|
+
|
|
34
|
+
type TextParentStyleProps = Partial<Pick<TextStyle, TextParentStyleKeys>>
|
|
35
|
+
type TextParentShorthandKeys = {
|
|
36
|
+
[Key in keyof Shorthands]: Shorthands[Key] extends TextParentStyleKeys ? Key : never
|
|
37
|
+
}[keyof Shorthands]
|
|
38
|
+
|
|
39
|
+
export type TextParentStyles = TextParentStyleProps &
|
|
40
|
+
Pick<WithShorthands<TextParentStyleProps>, TextParentShorthandKeys> & {
|
|
41
|
+
maxFontSizeMultiplier?: number
|
|
42
|
+
textProps?: Partial<SizableTextProps>
|
|
43
|
+
noTextWrap?: boolean
|
|
44
|
+
}
|
|
@@ -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("@tamagui/web").
|
|
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").WithFlatVariantValues<{}> & 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").WithFlatVariantValues<{}> & 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").WithFlatVariantValues<{}> & 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("@tamagui/web").
|
|
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> & import("@tamagui/web").WithFlatVariantValues<{
|
|
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("@tamagui/web").
|
|
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> & import("@tamagui/web").WithFlatVariantValues<{
|
|
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> & import("@tamagui/web").WithFlatVariantValues<{
|
|
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> & import("@tamagui/web").WithFlatVariantValues<{
|
|
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> & import("@tamagui/web").WithFlatVariantValues<{
|
|
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> & import("@tamagui/web").WithFlatVariantValues<{
|
|
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> & import("@tamagui/web").WithFlatVariantValues<{
|
|
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("@tamagui/web").
|
|
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> & import("@tamagui/web").WithFlatVariantValues<{
|
|
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;;;;;;;;;;CAQpB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAA"}
|
package/types/SizableText.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { GetProps } from '@tamagui/web';
|
|
2
2
|
export declare const SizableText: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
3
|
-
|
|
4
|
-
size?: import("@tamagui/web").FontSizeTokens | undefined;
|
|
3
|
+
size?: import("@tamagui/web").FontSize | undefined;
|
|
5
4
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
6
5
|
export type SizableTextProps = GetProps<typeof SizableText>;
|
|
7
6
|
//# 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;
|
|
1
|
+
{"version":3,"file":"SizableText.d.ts","sourceRoot":"","sources":["../src/SizableText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAa5C,eAAO,MAAM,WAAW;;6CA0BtB,CAAA;AAOF,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAA"}
|
package/types/types.d.ts
CHANGED
|
@@ -1,4 +1,40 @@
|
|
|
1
|
+
import { type Shorthands, type TextStyle, type TextStylePropsBase, type WithShorthands } from '@tamagui/web';
|
|
1
2
|
import type { SizableTextProps } from './SizableText';
|
|
3
|
+
export declare const textParentProps: {
|
|
4
|
+
readonly WebkitBoxOrient: true;
|
|
5
|
+
readonly WebkitLineClamp: true;
|
|
6
|
+
readonly color: true;
|
|
7
|
+
readonly font: true;
|
|
8
|
+
readonly fontFamily: true;
|
|
9
|
+
readonly fontSize: true;
|
|
10
|
+
readonly fontStyle: true;
|
|
11
|
+
readonly fontVariant: true;
|
|
12
|
+
readonly fontWeight: true;
|
|
13
|
+
readonly letterSpacing: true;
|
|
14
|
+
readonly lineHeight: true;
|
|
15
|
+
readonly textAlign: true;
|
|
16
|
+
readonly textDecoration: true;
|
|
17
|
+
readonly textDecorationColor: true;
|
|
18
|
+
readonly textDecorationDistance: true;
|
|
19
|
+
readonly textDecorationLine: true;
|
|
20
|
+
readonly textDecorationStyle: true;
|
|
21
|
+
readonly textOverflow: true;
|
|
22
|
+
readonly textShadow: true;
|
|
23
|
+
readonly textShadowColor: true;
|
|
24
|
+
readonly textShadowOffset: true;
|
|
25
|
+
readonly textShadowRadius: true;
|
|
26
|
+
readonly textTransform: true;
|
|
27
|
+
readonly userSelect: true;
|
|
28
|
+
readonly verticalAlign: true;
|
|
29
|
+
readonly whiteSpace: true;
|
|
30
|
+
readonly wordWrap: true;
|
|
31
|
+
readonly writingDirection: true;
|
|
32
|
+
readonly ellipsis: true;
|
|
33
|
+
readonly maxFontSizeMultiplier: true;
|
|
34
|
+
readonly noTextWrap: true;
|
|
35
|
+
readonly numberOfLines: true;
|
|
36
|
+
readonly textProps: true;
|
|
37
|
+
};
|
|
2
38
|
export type TextContextStyles = {
|
|
3
39
|
color?: SizableTextProps['color'];
|
|
4
40
|
fontWeight?: SizableTextProps['fontWeight'];
|
|
@@ -10,8 +46,15 @@ export type TextContextStyles = {
|
|
|
10
46
|
ellipsis?: SizableTextProps['ellipsis'];
|
|
11
47
|
maxFontSizeMultiplier?: number;
|
|
12
48
|
};
|
|
13
|
-
|
|
49
|
+
type TextParentStyleKeys = Extract<keyof TextStylePropsBase, keyof typeof textParentProps>;
|
|
50
|
+
type TextParentStyleProps = Partial<Pick<TextStyle, TextParentStyleKeys>>;
|
|
51
|
+
type TextParentShorthandKeys = {
|
|
52
|
+
[Key in keyof Shorthands]: Shorthands[Key] extends TextParentStyleKeys ? Key : never;
|
|
53
|
+
}[keyof Shorthands];
|
|
54
|
+
export type TextParentStyles = TextParentStyleProps & Pick<WithShorthands<TextParentStyleProps>, TextParentShorthandKeys> & {
|
|
55
|
+
maxFontSizeMultiplier?: number;
|
|
14
56
|
textProps?: Partial<SizableTextProps>;
|
|
15
57
|
noTextWrap?: boolean;
|
|
16
58
|
};
|
|
59
|
+
export {};
|
|
17
60
|
//# sourceMappingURL=types.d.ts.map
|
package/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACjC,UAAU,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAA;IAC3C,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAA;IACvC,UAAU,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAA;IAC3C,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAA;IACzC,aAAa,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAA;IACjD,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAA;IACzC,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAA;IACvC,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACpB,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlB,CAAA;AAEV,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACjC,UAAU,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAA;IAC3C,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAA;IACvC,UAAU,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAA;IAC3C,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAA;IACzC,aAAa,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAA;IACjD,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAA;IACzC,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAA;IACvC,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AAED,KAAK,mBAAmB,GAAG,OAAO,CAAC,MAAM,kBAAkB,EAAE,MAAM,OAAO,eAAe,CAAC,CAAA;AAE1F,KAAK,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,CAAA;AACzE,KAAK,uBAAuB,GAAG;KAC5B,GAAG,IAAI,MAAM,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,SAAS,mBAAmB,GAAG,GAAG,GAAG,KAAK;CACrF,CAAC,MAAM,UAAU,CAAC,CAAA;AAEnB,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GACjD,IAAI,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,uBAAuB,CAAC,GAAG;IACpE,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAA;IACrC,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,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/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":[]}
|