@tamagui/list-item 1.0.1-beta.75 → 1.0.1-beta.78
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/esm/ListItem.js +53 -8
- package/dist/esm/ListItem.js.map +1 -1
- package/package.json +5 -5
- package/types/ListItem.d.ts +48 -16
- package/types/ListItem.d.ts.map +1 -1
package/dist/esm/ListItem.js
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
1
29
|
import {
|
|
2
30
|
Spacer,
|
|
3
31
|
getSize,
|
|
@@ -66,7 +94,7 @@ const ListItemSubtitle = styled(ListItemText, {
|
|
|
66
94
|
size: "$3"
|
|
67
95
|
});
|
|
68
96
|
const ListItemComponent = forwardRef((props, ref) => {
|
|
69
|
-
const {
|
|
97
|
+
const _a = props, {
|
|
70
98
|
children,
|
|
71
99
|
icon,
|
|
72
100
|
iconAfter,
|
|
@@ -84,9 +112,27 @@ const ListItemComponent = forwardRef((props, ref) => {
|
|
|
84
112
|
fontFamily,
|
|
85
113
|
textAlign,
|
|
86
114
|
textProps,
|
|
87
|
-
title
|
|
88
|
-
|
|
89
|
-
|
|
115
|
+
title
|
|
116
|
+
} = _a, rest = __objRest(_a, [
|
|
117
|
+
"children",
|
|
118
|
+
"icon",
|
|
119
|
+
"iconAfter",
|
|
120
|
+
"noTextWrap",
|
|
121
|
+
"theme",
|
|
122
|
+
"space",
|
|
123
|
+
"spaceFlex",
|
|
124
|
+
"scaleIcon",
|
|
125
|
+
"scaleSpace",
|
|
126
|
+
"subTitle",
|
|
127
|
+
"color",
|
|
128
|
+
"fontWeight",
|
|
129
|
+
"letterSpacing",
|
|
130
|
+
"fontSize",
|
|
131
|
+
"fontFamily",
|
|
132
|
+
"textAlign",
|
|
133
|
+
"textProps",
|
|
134
|
+
"title"
|
|
135
|
+
]);
|
|
90
136
|
const size = props.size || "$4";
|
|
91
137
|
const subtitleSizeToken = getSize(size, -3);
|
|
92
138
|
const subtitleSize = `$${subtitleSizeToken.key}`;
|
|
@@ -95,11 +141,10 @@ const ListItemComponent = forwardRef((props, ref) => {
|
|
|
95
141
|
const [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon);
|
|
96
142
|
const spaceSize = getVariableValue(iconSize) * scaleSpace;
|
|
97
143
|
const contents = wrapStringChildrenInText(ListItemText, props);
|
|
98
|
-
return /* @__PURE__ */ React.createElement(ListItemFrame, {
|
|
144
|
+
return /* @__PURE__ */ React.createElement(ListItemFrame, __spreadValues({
|
|
99
145
|
fontFamily,
|
|
100
|
-
ref
|
|
101
|
-
|
|
102
|
-
}, themedIcon ? /* @__PURE__ */ React.createElement(React.Fragment, null, themedIcon, /* @__PURE__ */ React.createElement(Spacer, {
|
|
146
|
+
ref
|
|
147
|
+
}, rest), themedIcon ? /* @__PURE__ */ React.createElement(React.Fragment, null, themedIcon, /* @__PURE__ */ React.createElement(Spacer, {
|
|
103
148
|
size: spaceSize
|
|
104
149
|
})) : null, Boolean(title || subTitle) ? /* @__PURE__ */ React.createElement(YStack, {
|
|
105
150
|
flex: 1
|
package/dist/esm/ListItem.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ListItem.tsx"],
|
|
4
4
|
"sourcesContent": ["import {\n FontSizeTokens,\n GetProps,\n ReactComponentWithRef,\n Spacer,\n ThemeableProps,\n getSize,\n getVariableValue,\n styled,\n themeable,\n withStaticProperties,\n} from '@tamagui/core'\nimport { getFontSize } from '@tamagui/font-size'\nimport {\n TextParentStyles,\n useGetThemedIcon,\n wrapStringChildrenInText,\n} from '@tamagui/helpers-tamagui'\nimport { ThemeableStack, YStack } from '@tamagui/stacks'\nimport { SizableText } from '@tamagui/text'\nimport React, { FunctionComponent, forwardRef } from 'react'\nimport { View } from 'react-native'\n\n// bugfix esbuild strips react jsx: 'preserve'\nReact['createElement']\n\ntype ListItemIconProps = { color?: string; size?: number }\ntype IconProp = JSX.Element | FunctionComponent<ListItemIconProps> | null\n\nexport type ListItemProps = Omit<TextParentStyles, 'TextComponent'> &\n GetProps<typeof ListItemFrame> &\n ThemeableProps & {\n // add icon before, passes color and size automatically if Component\n icon?: IconProp\n // add icon after, passes color and size automatically if Component\n iconAfter?: IconProp\n // adjust icon relative to size\n // default: -1\n scaleIcon?: number\n // make the spacing elements flex\n spaceFlex?: number | boolean\n // adjust internal space relative to icon size\n scaleSpace?: number\n // title\n title?: React.ReactNode\n // subtitle\n subTitle?: React.ReactNode\n }\n\nexport const ListItemFrame = styled(ThemeableStack, {\n name: 'ListItem',\n tag: 'li',\n alignItems: 'center',\n flexWrap: 'nowrap',\n width: '100%',\n borderColor: '$borderColor',\n maxWidth: '100%',\n overflow: 'hidden',\n flexDirection: 'row',\n\n variants: {\n size: {\n '...size': (val, { tokens }) => {\n return {\n minHeight: tokens.size[val],\n paddingHorizontal: tokens.space[val],\n }\n },\n },\n\n active: {\n true: {\n hoverStyle: {\n backgroundColor: '$background',\n },\n },\n },\n\n disabled: {\n true: {\n opacity: 0.5,\n // TODO breaking types\n pointerEvents: 'none' as any,\n },\n },\n },\n\n defaultVariants: {\n size: '$4',\n },\n})\n\nexport const ListItemText = styled(SizableText, {\n color: '$color',\n selectable: false,\n flexGrow: 1,\n flexShrink: 1,\n ellipse: true,\n})\n\nexport const ListItemSubtitle = styled(ListItemText, {\n color: '$colorPress',\n marginTop: '$-2',\n opacity: 0.65,\n size: '$3',\n})\n\nconst ListItemComponent = forwardRef((props: ListItemProps, ref) => {\n // careful not to desctructure and re-order props, order is important\n const {\n children,\n icon,\n iconAfter,\n noTextWrap,\n theme: themeName,\n space,\n spaceFlex,\n scaleIcon = 1,\n scaleSpace = 1,\n subTitle,\n\n // text props\n color,\n fontWeight,\n letterSpacing,\n fontSize,\n fontFamily,\n textAlign,\n textProps,\n title,\n ...rest\n } = props as ListItemProps\n\n const size = props.size || '$4'\n const subtitleSizeToken = getSize(size, -3)\n const subtitleSize = `$${subtitleSizeToken.key}` as FontSizeTokens\n const iconSize = getFontSize(size) * scaleIcon\n const getThemedIcon = useGetThemedIcon({ size: iconSize, color })\n const [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon)\n const spaceSize = getVariableValue(iconSize) * scaleSpace\n const contents = wrapStringChildrenInText(ListItemText, props)\n\n return (\n <ListItemFrame fontFamily={fontFamily} ref={ref as any} {...rest}>\n {themedIcon ? (\n <>\n {themedIcon}\n <Spacer size={spaceSize} />\n </>\n ) : null}\n {/* helper for common title/subtitle pttern */}\n {Boolean(title || subTitle) ? (\n <YStack flex={1}>\n <ListItemText>{title}</ListItemText>\n {subTitle ? (\n typeof subTitle === 'string' ? (\n // TODO can use theme but we need to standardize to alt themes\n // or standardize on subtle colors in themes\n <ListItemSubtitle size={subtitleSize}>{subTitle}</ListItemSubtitle>\n ) : (\n subTitle\n )\n ) : null}\n {contents}\n </YStack>\n ) : (\n contents\n )}\n {themedIconAfter ? (\n <>\n <Spacer flex size={spaceSize} />\n {themedIconAfter}\n </>\n ) : null}\n </ListItemFrame>\n )\n})\n\nconst ListItemInner: ReactComponentWithRef<ListItemProps, HTMLLIElement | View> =\n ListItemFrame.extractable(themeable(ListItemComponent as any) as any, {\n inlineProps: new Set([\n // text props go here (can't really optimize them, but we never fully extract listItem anyway)\n 'color',\n 'fontWeight',\n 'fontSize',\n 'fontFamily',\n 'letterSpacing',\n 'textAlign',\n ]),\n })\n\nexport const ListItem = withStaticProperties(ListItemInner, {\n Text: ListItemText,\n Subtitle: ListItemSubtitle,\n})\n"],
|
|
5
|
-
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYA;AACA;AAAA;AAAA;AAAA;AAKA;AACA;AACA;AAIA,MAAM;AAyBC,MAAM,gBAAgB,OAAO,gBAAgB;AAAA,EAClD,MAAM;AAAA,EACN,KAAK;AAAA,EACL,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,OAAO;AAAA,EACP,aAAa;AAAA,EACb,UAAU;AAAA,EACV,UAAU;AAAA,EACV,eAAe;AAAA,EAEf,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,WAAW,CAAC,KAAK,EAAE,aAAa;AAC9B,eAAO;AAAA,UACL,WAAW,OAAO,KAAK;AAAA,UACvB,mBAAmB,OAAO,MAAM;AAAA,QAClC;AAAA,MACF;AAAA,IACF;AAAA,IAEA,QAAQ;AAAA,MACN,MAAM;AAAA,QACJ,YAAY;AAAA,UACV,iBAAiB;AAAA,QACnB;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C;AAAA,IAAO,MAAM;AAAA,GAAW,CAC3B,IACE,MAEH,QAAQ,SAAS,QAAQ,IACxB,oCAAC;AAAA,IAAO,MAAM;AAAA,KACZ,oCAAC,oBAAc,KAAM,GACpB,WACC,OAAO,aAAa,WAGlB,oCAAC;AAAA,IAAiB,MAAM;AAAA,KAAe,QAAS,IAEhD,WAEA,MACH,QACH,IAEA,UAED,kBACC,0DACE,oCAAC;AAAA,IAAO,MAAI;AAAA,IAAC,MAAM;AAAA,GAAW,GAC7B,eACH,IACE,IACN;AAEJ,CAAC;AAED,MAAM,gBACJ,cAAc,YAAY,UAAU,iBAAwB,GAAU;AAAA,EACpE,aAAa,oBAAI,IAAI;AAAA,IAEnB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACH,CAAC;AAEI,MAAM,WAAW,qBAAqB,eAAe;AAAA,EAC1D,MAAM;AAAA,EACN,UAAU;AACZ,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/list-item",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.78",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"watch": "tamagui-build --watch"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tamagui/core": "^1.0.1-beta.
|
|
23
|
-
"@tamagui/font-size": "^1.0.1-beta.
|
|
24
|
-
"@tamagui/helpers-tamagui": "^1.0.1-beta.
|
|
22
|
+
"@tamagui/core": "^1.0.1-beta.78",
|
|
23
|
+
"@tamagui/font-size": "^1.0.1-beta.78",
|
|
24
|
+
"@tamagui/helpers-tamagui": "^1.0.1-beta.78"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "*",
|
|
28
28
|
"react-dom": "*"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
31
|
+
"@tamagui/build": "^1.0.1-beta.78",
|
|
32
32
|
"react": "*",
|
|
33
33
|
"react-dom": "*"
|
|
34
34
|
},
|
package/types/ListItem.d.ts
CHANGED
|
@@ -117,7 +117,9 @@ export declare const ListItemText: import("@tamagui/core").TamaguiComponent<(Omi
|
|
|
117
117
|
[x: string]: undefined;
|
|
118
118
|
}>>), any, import("@tamagui/core").TextPropsBase, {
|
|
119
119
|
size?: FontSizeTokens | undefined;
|
|
120
|
-
}
|
|
120
|
+
} | ({
|
|
121
|
+
size?: FontSizeTokens | undefined;
|
|
122
|
+
} & {
|
|
121
123
|
[x: string]: undefined;
|
|
122
124
|
})>;
|
|
123
125
|
export declare const ListItemSubtitle: import("@tamagui/core").TamaguiComponent<(Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
@@ -140,43 +142,57 @@ export declare const ListItemSubtitle: import("@tamagui/core").TamaguiComponent<
|
|
|
140
142
|
[x: string]: undefined;
|
|
141
143
|
}>>) | (Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
142
144
|
size?: FontSizeTokens | undefined;
|
|
143
|
-
}
|
|
145
|
+
} | ({
|
|
146
|
+
size?: FontSizeTokens | undefined;
|
|
147
|
+
} & {
|
|
144
148
|
[x: string]: undefined;
|
|
145
149
|
}), string | number> & {
|
|
146
150
|
[x: string]: undefined;
|
|
147
151
|
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
148
152
|
size?: FontSizeTokens | undefined;
|
|
149
|
-
}
|
|
153
|
+
} | ({
|
|
154
|
+
size?: FontSizeTokens | undefined;
|
|
155
|
+
} & {
|
|
150
156
|
[x: string]: undefined;
|
|
151
157
|
}), string | number> & {
|
|
152
158
|
[x: string]: undefined;
|
|
153
159
|
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
154
160
|
size?: FontSizeTokens | undefined;
|
|
155
|
-
}
|
|
161
|
+
} | ({
|
|
162
|
+
size?: FontSizeTokens | undefined;
|
|
163
|
+
} & {
|
|
156
164
|
[x: string]: undefined;
|
|
157
165
|
}), string | number> & {
|
|
158
166
|
[x: string]: undefined;
|
|
159
167
|
}>>) | (Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
160
168
|
size?: FontSizeTokens | undefined;
|
|
161
|
-
}
|
|
169
|
+
} | ({
|
|
170
|
+
size?: FontSizeTokens | undefined;
|
|
171
|
+
} & {
|
|
162
172
|
[x: string]: undefined;
|
|
163
173
|
}), string | number> & {
|
|
164
174
|
[x: string]: undefined;
|
|
165
175
|
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
166
176
|
size?: FontSizeTokens | undefined;
|
|
167
|
-
}
|
|
177
|
+
} | ({
|
|
178
|
+
size?: FontSizeTokens | undefined;
|
|
179
|
+
} & {
|
|
168
180
|
[x: string]: undefined;
|
|
169
181
|
}), string | number> & {
|
|
170
182
|
[x: string]: undefined;
|
|
171
183
|
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
172
184
|
size?: FontSizeTokens | undefined;
|
|
173
|
-
}
|
|
185
|
+
} | ({
|
|
186
|
+
size?: FontSizeTokens | undefined;
|
|
187
|
+
} & {
|
|
174
188
|
[x: string]: undefined;
|
|
175
189
|
}), string | number> & {
|
|
176
190
|
[x: string]: undefined;
|
|
177
191
|
}>>), any, import("@tamagui/core").TextPropsBase, ({
|
|
178
192
|
size?: FontSizeTokens | undefined;
|
|
179
|
-
}
|
|
193
|
+
} | ({
|
|
194
|
+
size?: FontSizeTokens | undefined;
|
|
195
|
+
} & {
|
|
180
196
|
[x: string]: undefined;
|
|
181
197
|
})) & ({} | {
|
|
182
198
|
[x: string]: undefined;
|
|
@@ -204,7 +220,9 @@ export declare const ListItem: ReactComponentWithRef<ListItemProps, View | HTMLL
|
|
|
204
220
|
[x: string]: undefined;
|
|
205
221
|
}>>), any, import("@tamagui/core").TextPropsBase, {
|
|
206
222
|
size?: FontSizeTokens | undefined;
|
|
207
|
-
}
|
|
223
|
+
} | ({
|
|
224
|
+
size?: FontSizeTokens | undefined;
|
|
225
|
+
} & {
|
|
208
226
|
[x: string]: undefined;
|
|
209
227
|
})>;
|
|
210
228
|
Subtitle: import("@tamagui/core").TamaguiComponent<(Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
@@ -227,43 +245,57 @@ export declare const ListItem: ReactComponentWithRef<ListItemProps, View | HTMLL
|
|
|
227
245
|
[x: string]: undefined;
|
|
228
246
|
}>>) | (Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
229
247
|
size?: FontSizeTokens | undefined;
|
|
230
|
-
}
|
|
248
|
+
} | ({
|
|
249
|
+
size?: FontSizeTokens | undefined;
|
|
250
|
+
} & {
|
|
231
251
|
[x: string]: undefined;
|
|
232
252
|
}), string | number> & {
|
|
233
253
|
[x: string]: undefined;
|
|
234
254
|
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
235
255
|
size?: FontSizeTokens | undefined;
|
|
236
|
-
}
|
|
256
|
+
} | ({
|
|
257
|
+
size?: FontSizeTokens | undefined;
|
|
258
|
+
} & {
|
|
237
259
|
[x: string]: undefined;
|
|
238
260
|
}), string | number> & {
|
|
239
261
|
[x: string]: undefined;
|
|
240
262
|
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
241
263
|
size?: FontSizeTokens | undefined;
|
|
242
|
-
}
|
|
264
|
+
} | ({
|
|
265
|
+
size?: FontSizeTokens | undefined;
|
|
266
|
+
} & {
|
|
243
267
|
[x: string]: undefined;
|
|
244
268
|
}), string | number> & {
|
|
245
269
|
[x: string]: undefined;
|
|
246
270
|
}>>) | (Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
247
271
|
size?: FontSizeTokens | undefined;
|
|
248
|
-
}
|
|
272
|
+
} | ({
|
|
273
|
+
size?: FontSizeTokens | undefined;
|
|
274
|
+
} & {
|
|
249
275
|
[x: string]: undefined;
|
|
250
276
|
}), string | number> & {
|
|
251
277
|
[x: string]: undefined;
|
|
252
278
|
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
253
279
|
size?: FontSizeTokens | undefined;
|
|
254
|
-
}
|
|
280
|
+
} | ({
|
|
281
|
+
size?: FontSizeTokens | undefined;
|
|
282
|
+
} & {
|
|
255
283
|
[x: string]: undefined;
|
|
256
284
|
}), string | number> & {
|
|
257
285
|
[x: string]: undefined;
|
|
258
286
|
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
259
287
|
size?: FontSizeTokens | undefined;
|
|
260
|
-
}
|
|
288
|
+
} | ({
|
|
289
|
+
size?: FontSizeTokens | undefined;
|
|
290
|
+
} & {
|
|
261
291
|
[x: string]: undefined;
|
|
262
292
|
}), string | number> & {
|
|
263
293
|
[x: string]: undefined;
|
|
264
294
|
}>>), any, import("@tamagui/core").TextPropsBase, ({
|
|
265
295
|
size?: FontSizeTokens | undefined;
|
|
266
|
-
}
|
|
296
|
+
} | ({
|
|
297
|
+
size?: FontSizeTokens | undefined;
|
|
298
|
+
} & {
|
|
267
299
|
[x: string]: undefined;
|
|
268
300
|
})) & ({} | {
|
|
269
301
|
[x: string]: undefined;
|
package/types/ListItem.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../src/ListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,QAAQ,EACR,qBAAqB,EAErB,cAAc,EAMf,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,gBAAgB,EAGjB,MAAM,0BAA0B,CAAA;AAGjC,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAA;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAKnC,aAA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