@tamagui/core 1.0.22 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/helpers/getSplitStyles.js +67 -60
- package/dist/cjs/helpers/getSplitStyles.js.map +2 -2
- package/dist/cjs/helpers/warnOnce.js +38 -0
- package/dist/cjs/helpers/warnOnce.js.map +7 -0
- package/dist/cjs/types.js.map +1 -1
- package/dist/esm/helpers/getSplitStyles.js +67 -60
- package/dist/esm/helpers/getSplitStyles.js.map +2 -2
- package/dist/esm/helpers/warnOnce.js +14 -0
- package/dist/esm/helpers/warnOnce.js.map +7 -0
- package/package.json +13 -15
- package/src/helpers/getSplitStyles.tsx +83 -71
- package/src/helpers/warnOnce.tsx +11 -0
- package/src/types.tsx +5 -4
- package/types/helpers/warnOnce.d.ts +2 -0
- package/types/types.d.ts +5 -4
package/types/types.d.ts
CHANGED
|
@@ -373,7 +373,7 @@ type WithThemeShorthandsPseudosMediaAnimation<A extends object> = WithThemeShort
|
|
|
373
373
|
/**
|
|
374
374
|
* Base style-only props (no media, pseudo):
|
|
375
375
|
*/
|
|
376
|
-
type
|
|
376
|
+
type PropsWebOnly = {
|
|
377
377
|
pointerEvents?: ViewProps['pointerEvents'];
|
|
378
378
|
cursor?: Properties['cursor'];
|
|
379
379
|
contain?: Properties['contain'];
|
|
@@ -383,11 +383,12 @@ type StylePropsWebOnly = {
|
|
|
383
383
|
outlineStyle?: Properties['outlineStyle'];
|
|
384
384
|
outlineOffset?: Properties['outlineOffset'];
|
|
385
385
|
outlineWidth?: Properties['outlineWidth'];
|
|
386
|
+
tabIndex?: string | number;
|
|
387
|
+
role?: string;
|
|
386
388
|
};
|
|
387
|
-
export type StackStylePropsBase = Omit<ViewStyle, 'display' | 'backfaceVisibility' | 'elevation'> & TransformStyleProps &
|
|
388
|
-
export type TextStylePropsBase = Omit<TextStyle, 'display' | 'backfaceVisibility'> & TransformStyleProps &
|
|
389
|
+
export type StackStylePropsBase = Omit<ViewStyle, 'display' | 'backfaceVisibility' | 'elevation'> & TransformStyleProps & PropsWebOnly;
|
|
390
|
+
export type TextStylePropsBase = Omit<TextStyle, 'display' | 'backfaceVisibility'> & TransformStyleProps & PropsWebOnly & {
|
|
389
391
|
ellipse?: boolean;
|
|
390
|
-
selectable?: boolean;
|
|
391
392
|
textDecorationDistance?: number;
|
|
392
393
|
textOverflow?: Properties['textOverflow'];
|
|
393
394
|
whiteSpace?: Properties['whiteSpace'];
|