@tamagui/web 1.88.3 → 1.88.5

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.
Files changed (112) hide show
  1. package/dist/cjs/createComponent.js.map +1 -1
  2. package/dist/cjs/createComponent.native.js.map +1 -1
  3. package/dist/cjs/helpers/getSplitStyles.js +22 -3
  4. package/dist/cjs/helpers/getSplitStyles.js.map +1 -1
  5. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  6. package/dist/cjs/interfaces/KeyTypes.js +14 -0
  7. package/dist/cjs/interfaces/KeyTypes.js.map +6 -0
  8. package/dist/cjs/interfaces/KeyTypes.native.js +15 -0
  9. package/dist/cjs/interfaces/KeyTypes.native.js.map +6 -0
  10. package/dist/cjs/interfaces/TamaguiComponentEvents.js +14 -0
  11. package/dist/cjs/interfaces/TamaguiComponentEvents.js.map +6 -0
  12. package/dist/cjs/interfaces/TamaguiComponentEvents.native.js +15 -0
  13. package/dist/cjs/interfaces/TamaguiComponentEvents.native.js.map +6 -0
  14. package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.js +14 -0
  15. package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.js.map +6 -0
  16. package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.native.js +15 -0
  17. package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.native.js.map +6 -0
  18. package/dist/cjs/interfaces/TamaguiComponentState.js +14 -0
  19. package/dist/cjs/interfaces/TamaguiComponentState.js.map +6 -0
  20. package/dist/cjs/interfaces/TamaguiComponentState.native.js +15 -0
  21. package/dist/cjs/interfaces/TamaguiComponentState.native.js.map +6 -0
  22. package/dist/cjs/interfaces/WebOnlyPressEvents.js +14 -0
  23. package/dist/cjs/interfaces/WebOnlyPressEvents.js.map +6 -0
  24. package/dist/cjs/interfaces/WebOnlyPressEvents.native.js +15 -0
  25. package/dist/cjs/interfaces/WebOnlyPressEvents.native.js.map +6 -0
  26. package/dist/cjs/internalWithTheme.js +1 -1
  27. package/dist/cjs/internalWithTheme.js.map +1 -1
  28. package/dist/cjs/internalWithTheme.native.js +1 -1
  29. package/dist/cjs/internalWithTheme.native.js.map +1 -1
  30. package/dist/cjs/types.js +3 -1
  31. package/dist/cjs/types.js.map +1 -1
  32. package/dist/cjs/types.native.js +8 -1
  33. package/dist/cjs/types.native.js.map +1 -1
  34. package/dist/cjs/views/View.js.map +1 -1
  35. package/dist/cjs/views/View.native.js.map +1 -1
  36. package/dist/esm/createComponent.js.map +1 -1
  37. package/dist/esm/createComponent.native.js.map +1 -1
  38. package/dist/esm/helpers/getSplitStyles.js +22 -3
  39. package/dist/esm/helpers/getSplitStyles.js.map +1 -1
  40. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  41. package/dist/esm/interfaces/KeyTypes.js +1 -0
  42. package/dist/esm/interfaces/KeyTypes.js.map +6 -0
  43. package/dist/esm/interfaces/KeyTypes.native.js +15 -0
  44. package/dist/esm/interfaces/KeyTypes.native.js.map +6 -0
  45. package/dist/esm/interfaces/TamaguiComponentEvents.js +1 -0
  46. package/dist/esm/interfaces/TamaguiComponentEvents.js.map +6 -0
  47. package/dist/esm/interfaces/TamaguiComponentEvents.native.js +15 -0
  48. package/dist/esm/interfaces/TamaguiComponentEvents.native.js.map +6 -0
  49. package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.js +1 -0
  50. package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.js.map +6 -0
  51. package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.native.js +15 -0
  52. package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.native.js.map +6 -0
  53. package/dist/esm/interfaces/TamaguiComponentState.js +1 -0
  54. package/dist/esm/interfaces/TamaguiComponentState.js.map +6 -0
  55. package/dist/esm/interfaces/TamaguiComponentState.native.js +15 -0
  56. package/dist/esm/interfaces/TamaguiComponentState.native.js.map +6 -0
  57. package/dist/esm/interfaces/WebOnlyPressEvents.js +1 -0
  58. package/dist/esm/interfaces/WebOnlyPressEvents.js.map +6 -0
  59. package/dist/esm/interfaces/WebOnlyPressEvents.native.js +15 -0
  60. package/dist/esm/interfaces/WebOnlyPressEvents.native.js.map +6 -0
  61. package/dist/esm/internalWithTheme.js +1 -1
  62. package/dist/esm/internalWithTheme.js.map +1 -1
  63. package/dist/esm/internalWithTheme.native.js +1 -1
  64. package/dist/esm/internalWithTheme.native.js.map +1 -1
  65. package/dist/esm/types.js +2 -0
  66. package/dist/esm/types.js.map +2 -2
  67. package/dist/esm/types.native.js +8 -1
  68. package/dist/esm/types.native.js.map +1 -1
  69. package/dist/esm/views/View.js.map +1 -1
  70. package/dist/esm/views/View.native.js.map +1 -1
  71. package/package.json +10 -10
  72. package/src/createComponent.tsx +6 -11
  73. package/src/defaultComponentState.tsx +1 -1
  74. package/src/helpers/getSplitStyles.tsx +29 -6
  75. package/src/hooks/useProps.tsx +2 -2
  76. package/src/interfaces/KeyTypes.tsx +79 -0
  77. package/src/interfaces/TamaguiComponentEvents.tsx +18 -0
  78. package/src/interfaces/TamaguiComponentPropsBaseBase.tsx +202 -0
  79. package/src/interfaces/TamaguiComponentState.tsx +15 -0
  80. package/src/interfaces/WebOnlyPressEvents.tsx +17 -0
  81. package/src/internalWithTheme.tsx +4 -8
  82. package/src/setupHooks.ts +2 -2
  83. package/src/types.tsx +23 -354
  84. package/src/views/Stack.tsx +2 -2
  85. package/src/views/View.tsx +4 -2
  86. package/types/createComponent.d.ts +3 -3
  87. package/types/createComponent.d.ts.map +1 -1
  88. package/types/defaultComponentState.d.ts +1 -1
  89. package/types/defaultComponentState.d.ts.map +1 -1
  90. package/types/helpers/getSplitStyles.d.ts +2 -1
  91. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  92. package/types/hooks/useProps.d.ts +2 -2
  93. package/types/hooks/useProps.d.ts.map +1 -1
  94. package/types/interfaces/KeyTypes.d.ts +4 -0
  95. package/types/interfaces/KeyTypes.d.ts.map +1 -0
  96. package/types/interfaces/TamaguiComponentEvents.d.ts +19 -0
  97. package/types/interfaces/TamaguiComponentEvents.d.ts.map +1 -0
  98. package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts +81 -0
  99. package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts.map +1 -0
  100. package/types/interfaces/TamaguiComponentState.d.ts +14 -0
  101. package/types/interfaces/TamaguiComponentState.d.ts.map +1 -0
  102. package/types/interfaces/WebOnlyPressEvents.d.ts +17 -0
  103. package/types/interfaces/WebOnlyPressEvents.d.ts.map +1 -0
  104. package/types/internalWithTheme.d.ts.map +1 -1
  105. package/types/setupHooks.d.ts +3 -1
  106. package/types/setupHooks.d.ts.map +1 -1
  107. package/types/types.d.ts +22 -144
  108. package/types/types.d.ts.map +1 -1
  109. package/types/views/Stack.d.ts +2 -2
  110. package/types/views/Stack.d.ts.map +1 -1
  111. package/types/views/View.d.ts +4 -3
  112. package/types/views/View.d.ts.map +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyTypes.d.ts","sourceRoot":"","sources":["../../src/interfaces/KeyTypes.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAChB,OAAO,GACP,QAAQ,GACR,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,cAAc,CAAA;AAElB,MAAM,MAAM,SAAS,GACjB,OAAO,GACP,iBAAiB,GACjB,aAAa,GACb,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,GACjB,kBAAkB,GAClB,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,qBAAqB,GACrB,uBAAuB,CAAA;AAE3B,MAAM,MAAM,SAAS,GACjB,OAAO,GACP,SAAS,GACT,mBAAmB,GACnB,iBAAiB,GACjB,aAAa,GACb,YAAY,GACZ,eAAe,GACf,aAAa,GACb,cAAc,GACd,YAAY,GACZ,cAAc,GACd,QAAQ,GACR,kBAAkB,GAClB,gBAAgB,GAChB,YAAY,GACZ,WAAW,GACX,cAAc,GACd,YAAY,GACZ,aAAa,GACb,WAAW,GACX,aAAa,GACb,GAAG,GACH,GAAG,GACH,KAAK,GACL,QAAQ,GACR,WAAW,GACX,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,oBAAoB,GACpB,qBAAqB,GACrB,sBAAsB,GACtB,sBAAsB,GACtB,uBAAuB,GACvB,wBAAwB,GACxB,yBAAyB,GACzB,yBAAyB,GACzB,mBAAmB,GACnB,iBAAiB,GACjB,cAAc,GACd,kBAAkB,GAClB,oBAAoB,GACpB,qBAAqB,GACrB,sBAAsB,GACtB,gBAAgB,GAChB,kBAAkB,GAClB,sBAAsB,GACtB,gBAAgB,GAChB,aAAa,GACb,MAAM,GACN,KAAK,GACL,OAAO,GACP,QAAQ,GACR,cAAc,CAAA"}
@@ -0,0 +1,19 @@
1
+ export type TamaguiComponentEvents = {
2
+ cancelable?: boolean | undefined;
3
+ disabled?: any;
4
+ hitSlop?: any;
5
+ delayLongPress?: any;
6
+ delayPressIn?: any;
7
+ delayPressOut?: any;
8
+ focusable?: any;
9
+ minPressDuration?: number | undefined;
10
+ onPressIn: ((e: any) => void) | undefined;
11
+ onPress: ((e: any) => void) | undefined;
12
+ onLongPress?: ((e: any) => void) | undefined;
13
+ onMouseEnter?: ((e: any) => void) | undefined;
14
+ onMouseLeave?: ((e: any) => void) | undefined;
15
+ onPressOut: ((e: any) => void) | undefined;
16
+ onFocus?: ((e: any) => void) | undefined;
17
+ onBlur?: ((e: any) => void) | undefined;
18
+ };
19
+ //# sourceMappingURL=TamaguiComponentEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TamaguiComponentEvents.d.ts","sourceRoot":"","sources":["../../src/interfaces/TamaguiComponentEvents.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAChC,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,OAAO,CAAC,EAAE,GAAG,CAAA;IACb,cAAc,CAAC,EAAE,GAAG,CAAA;IACpB,YAAY,CAAC,EAAE,GAAG,CAAA;IAClB,aAAa,CAAC,EAAE,GAAG,CAAA;IACnB,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IACzC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IACvC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IAC5C,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IAC7C,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IAC7C,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IAC1C,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IACxC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CACxC,CAAA"}
@@ -0,0 +1,81 @@
1
+ import { Role } from './Role';
2
+ import { DebugProp, ThemeName, GroupNames } from '../types';
3
+ export type TamaguiComponentPropsBaseBase = {
4
+ target?: string;
5
+ /**
6
+ * When truthy passes through all props to a single child element, and avoids rendering its own element.
7
+ * Must pass just one child React element that will receive all the props.
8
+ *
9
+ * The option "except-style" will avoid passing any style related props.
10
+ *
11
+ * The option "web" will map all React Native style props to web props (onPress becomes onClick).
12
+ *
13
+ * The option "except-style-web" combines the except-style and web options.
14
+ *
15
+ */
16
+ asChild?: boolean | 'except-style' | 'except-style-web' | 'web';
17
+ dangerouslySetInnerHTML?: {
18
+ __html: string;
19
+ };
20
+ children?: any | any[];
21
+ debug?: DebugProp;
22
+ disabled?: boolean;
23
+ /**
24
+ * Same as the web className property, useful for applying styles from CSS on web only
25
+ */
26
+ className?: string;
27
+ /**
28
+ * If given a theme it will only apply to this element, instead of passing down to children
29
+ */
30
+ themeShallow?: boolean;
31
+ themeInverse?: boolean;
32
+ /**
33
+ * Same as the web id property for setting a uid on an element
34
+ */
35
+ id?: string;
36
+ /**
37
+ * Controls the output tag on web
38
+ * {@see https://developer.mozilla.org/en-US/docs/Web/HTML/Element}
39
+ */
40
+ tag?: (string & {}) | 'address' | 'article' | 'aside' | 'footer' | 'header' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'main' | 'nav' | 'section' | 'search' | 'blockquote' | 'dd' | 'div' | 'dl' | 'dt' | 'figcaption' | 'figure' | 'hr' | 'li' | 'ol' | 'ul' | 'p' | 'pre' | 'a' | 'abbr' | 'p' | 'b' | 'abbr' | 'bdi' | 'bdo' | 'br' | 'cite' | 'code' | 'data' | 'dfn' | 'em' | 'i' | 'kbd' | 'mark' | 'q' | 'rp' | 'rt' | 'rtc' | 'ruby' | 's' | 'samp' | 'small' | 'span' | 'strong' | 'sub' | 'sup' | 'time' | 'u' | 'var' | 'wbr' | 'area' | 'audio' | 'img' | 'map' | 'track' | 'video' | 'embed' | 'object' | 'param' | 'picture' | 'source' | 'canvas' | 'noscript' | 'script' | 'del' | 'ins' | 'caption' | 'col' | 'colgroup' | 'table' | 'thead' | 'tbody' | 'td' | 'th' | 'tr' | 'button' | 'datalist' | 'fieldset' | 'form' | 'input' | 'label' | 'legend' | 'meter' | 'optgroup' | 'option' | 'output' | 'progress' | 'select' | 'textarea' | 'details' | 'dialog' | 'menu' | 'summary' | 'template';
41
+ /**
42
+ * Applies a theme to this element
43
+ */
44
+ theme?: ThemeName | null;
45
+ /**
46
+ * Marks this component as a group for use in styling children based on parents named group
47
+ * See: https://tamagui.dev/docs/intro/props
48
+ */
49
+ group?: GroupNames;
50
+ /**
51
+ * Works only alongside group, when children of the group are using container based sizing on native you can hide them until parent is measured.
52
+ * See: https://tamagui.dev/docs/intro/props
53
+ */
54
+ untilMeasured?: 'hide' | 'show';
55
+ /**
56
+ * Equivalent to "name" property on styled() for automatically applying a theme
57
+ */
58
+ componentName?: string;
59
+ /**
60
+ * Used for controlling the order of focus with keyboard or assistive device enavigation
61
+ * See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
62
+ */
63
+ tabIndex?: string | number;
64
+ /**
65
+ * Equivalent to role="" attribute on web for accessibility
66
+ */
67
+ role?: Role;
68
+ /**
69
+ * Disable all compiler optimization
70
+ */
71
+ disableOptimization?: boolean;
72
+ /**
73
+ * Forces the pseudo style state to be on
74
+ */
75
+ forceStyle?: 'hover' | 'press' | 'focus';
76
+ /**
77
+ * Disables className output of styles, instead using only inline styles
78
+ */
79
+ disableClassName?: boolean;
80
+ };
81
+ //# sourceMappingURL=TamaguiComponentPropsBaseBase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TamaguiComponentPropsBaseBase.d.ts","sourceRoot":"","sources":["../../src/interfaces/TamaguiComponentPropsBaseBase.tsx"],"names":[],"mappings":"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"}
@@ -0,0 +1,14 @@
1
+ import { GroupState } from '../types';
2
+ export type TamaguiComponentState = {
3
+ hover: boolean;
4
+ press: boolean;
5
+ pressIn: boolean;
6
+ focus: boolean;
7
+ unmounted: boolean | 'should-enter';
8
+ animation?: null | {
9
+ style?: any;
10
+ avoidClasses?: boolean;
11
+ };
12
+ group?: Record<string, GroupState>;
13
+ };
14
+ //# sourceMappingURL=TamaguiComponentState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TamaguiComponentState.d.ts","sourceRoot":"","sources":["../../src/interfaces/TamaguiComponentState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAErC,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,OAAO,CAAA;IACd,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,OAAO,CAAA;IACd,SAAS,EAAE,OAAO,GAAG,cAAc,CAAA;IACnC,SAAS,CAAC,EAAE,IAAI,GAAG;QACjB,KAAK,CAAC,EAAE,GAAG,CAAA;QACX,YAAY,CAAC,EAAE,OAAO,CAAA;KACvB,CAAA;IAED,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;CACnC,CAAA"}
@@ -0,0 +1,17 @@
1
+ import type { PressableProps } from 'react-native';
2
+ import { DivAttributes } from '../types';
3
+ export interface WebOnlyPressEvents {
4
+ onPress?: PressableProps['onPress'];
5
+ onLongPress?: PressableProps['onLongPress'];
6
+ onPressIn?: PressableProps['onPress'];
7
+ onPressOut?: PressableProps['onPress'];
8
+ onHoverIn?: DivAttributes['onMouseEnter'];
9
+ onHoverOut?: DivAttributes['onMouseLeave'];
10
+ onMouseEnter?: DivAttributes['onMouseEnter'];
11
+ onMouseLeave?: DivAttributes['onMouseLeave'];
12
+ onMouseDown?: DivAttributes['onMouseDown'];
13
+ onMouseUp?: DivAttributes['onMouseUp'];
14
+ onFocus?: DivAttributes['onFocus'];
15
+ onBlur?: DivAttributes['onBlur'];
16
+ }
17
+ //# sourceMappingURL=WebOnlyPressEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebOnlyPressEvents.d.ts","sourceRoot":"","sources":["../../src/interfaces/WebOnlyPressEvents.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;IACnC,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,SAAS,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;IACrC,UAAU,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;IACtC,SAAS,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IACzC,UAAU,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IAC1C,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IAC5C,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IAC5C,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;IAC1C,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAA;IACtC,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAA;IAClC,MAAM,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAA;CACjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"internalWithTheme.d.ts","sourceRoot":"","sources":["../src/internalWithTheme.tsx"],"names":[],"mappings":";AAIA,4DAA4D;AAE5D,eAAO,MAAM,iBAAiB,cAAe,GAAG,iBAAiB,GAAG,gCAMnE,CAAA"}
1
+ {"version":3,"file":"internalWithTheme.d.ts","sourceRoot":"","sources":["../src/internalWithTheme.tsx"],"names":[],"mappings":";AAEA,4DAA4D;AAE5D,eAAO,MAAM,iBAAiB,cAAe,GAAG,iBAAiB,GAAG,gCAInE,CAAA"}
@@ -1,4 +1,6 @@
1
- import { GetStyleResult, StaticConfig, TamaguiComponentEvents, TamaguiComponentState, TamaguiComponentStateRef } from './types';
1
+ import { GetStyleResult, StaticConfig, TamaguiComponentStateRef } from './types';
2
+ import { TamaguiComponentState } from './interfaces/TamaguiComponentState';
3
+ import { TamaguiComponentEvents } from './interfaces/TamaguiComponentEvents';
2
4
  export declare const hooks: InternalHooks;
3
5
  export declare function setupHooks(next: InternalHooks): void;
4
6
  type InternalHooks = {
@@ -1 +1 @@
1
- {"version":3,"file":"setupHooks.d.ts","sourceRoot":"","sources":["../src/setupHooks.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,KAAK,EAAE,aAAkB,CAAA;AAGtC,wBAAgB,UAAU,CAAC,IAAI,EAAE,aAAa,QAE7C;AAED,KAAK,aAAa,GAAG;IACnB,iBAAiB,CAAC,EAAE,CAClB,WAAW,EAAE,GAAG,EAChB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,QAAQ,EAAE;QAAE,OAAO,EAAE,wBAAwB,CAAA;KAAE,EAC/C,WAAW,CAAC,EAAE,OAAO,KAClB,GAAG,CAAA;IAER,SAAS,CAAC,EAAE,CACV,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,MAAM,EAAE,sBAAsB,GAAG,IAAI,EACrC,WAAW,EAAE,cAAc,EAC3B,eAAe,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,CAAC,KAAK,IAAI,EAC/D,YAAY,EAAE,YAAY,KACvB,GAAG,CAAA;IAER,WAAW,CAAC,EAAE,CACZ,WAAW,EAAE,GAAG,EAChB,QAAQ,EAAE,GAAG,EACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,MAAM,EAAE,sBAAsB,GAAG,IAAI,EACrC,YAAY,EAAE,YAAY,KACvB,GAAG,CAAA;IAER,YAAY,CAAC,EAAE,MAAM;QACnB,IAAI,EAAE,GAAG,CAAA;QACT,IAAI,EAAE,GAAG,CAAA;QACT,YAAY,EAAE,GAAG,CAAA;KAClB,CAAA;CACF,CAAA"}
1
+ {"version":3,"file":"setupHooks.d.ts","sourceRoot":"","sources":["../src/setupHooks.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,YAAY,EACZ,wBAAwB,EAEzB,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAE5E,eAAO,MAAM,KAAK,EAAE,aAAkB,CAAA;AAGtC,wBAAgB,UAAU,CAAC,IAAI,EAAE,aAAa,QAE7C;AAED,KAAK,aAAa,GAAG;IACnB,iBAAiB,CAAC,EAAE,CAClB,WAAW,EAAE,GAAG,EAChB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,QAAQ,EAAE;QAAE,OAAO,EAAE,wBAAwB,CAAA;KAAE,EAC/C,WAAW,CAAC,EAAE,OAAO,KAClB,GAAG,CAAA;IAER,SAAS,CAAC,EAAE,CACV,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,MAAM,EAAE,sBAAsB,GAAG,IAAI,EACrC,WAAW,EAAE,cAAc,EAC3B,eAAe,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,CAAC,KAAK,IAAI,EAC/D,YAAY,EAAE,YAAY,KACvB,GAAG,CAAA;IAER,WAAW,CAAC,EAAE,CACZ,WAAW,EAAE,GAAG,EAChB,QAAQ,EAAE,GAAG,EACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,MAAM,EAAE,sBAAsB,GAAG,IAAI,EACrC,YAAY,EAAE,YAAY,KACvB,GAAG,CAAA;IAER,YAAY,CAAC,EAAE,MAAM;QACnB,IAAI,EAAE,GAAG,CAAA;QACT,IAAI,EAAE,GAAG,CAAA;QACT,YAAY,EAAE,GAAG,CAAA;KAClB,CAAA;CACF,CAAA"}
package/types/types.d.ts CHANGED
@@ -1,14 +1,19 @@
1
1
  import type { StyleObject } from '@tamagui/helpers';
2
2
  import type { Properties } from 'csstype';
3
3
  import { ComponentType, ForwardRefExoticComponent, FunctionComponent, HTMLAttributes, ReactNode, RefAttributes, RefObject } from 'react';
4
- import type { PressableProps, Text as RNText, TextProps as ReactTextProps, TextStyle, View, ViewProps, ViewStyle } from 'react-native';
4
+ import type { Text as RNText, TextProps as ReactTextProps, TextStyle, View, ViewProps, ViewStyle } from 'react-native';
5
5
  import type { Variable } from './createVariable';
6
6
  import { StyledContext } from './helpers/createStyledContext';
7
7
  import { CSSColorNames } from './interfaces/CSSColorNames';
8
8
  import { RNOnlyProps } from './interfaces/RNExclusiveTypes';
9
- import { Role } from './interfaces/Role';
10
9
  import type { LanguageContextType } from './views/FontLanguage.types';
11
10
  import type { ThemeProviderProps } from './views/ThemeProvider';
11
+ import { TamaguiComponentState } from './interfaces/TamaguiComponentState';
12
+ import { WebOnlyPressEvents } from './interfaces/WebOnlyPressEvents';
13
+ import { TamaguiComponentPropsBaseBase } from './interfaces/TamaguiComponentPropsBaseBase';
14
+ import { SizeKeys, SpaceKeys, ColorKeys } from './interfaces/KeyTypes';
15
+ export * from './interfaces/KeyTypes';
16
+ export * from './interfaces/TamaguiComponentState';
12
17
  export type { MediaStyleObject, StyleObject } from '@tamagui/helpers';
13
18
  export type ColorScheme = 'light' | 'dark';
14
19
  export type IsMediaType = boolean | 'platform' | 'theme' | 'group';
@@ -16,98 +21,6 @@ export type SpaceDirection = 'vertical' | 'horizontal' | 'both';
16
21
  export type TamaguiElement = HTMLElement | View;
17
22
  export type TamaguiTextElement = HTMLElement | RNText;
18
23
  export type DebugProp = boolean | 'break' | 'verbose' | 'visualize' | 'profile';
19
- export type TamaguiComponentPropsBaseBase = {
20
- target?: string;
21
- /**
22
- * When truthy passes through all props to a single child element, and avoids rendering its own element.
23
- * Must pass just one child React element that will receive all the props.
24
- *
25
- * The option "except-style" will avoid passing any style related props.
26
- *
27
- * The option "web" will map all React Native style props to web props (onPress becomes onClick).
28
- *
29
- * The option "except-style-web" combines the except-style and web options.
30
- *
31
- */
32
- asChild?: boolean | 'except-style' | 'except-style-web' | 'web';
33
- dangerouslySetInnerHTML?: {
34
- __html: string;
35
- };
36
- children?: any | any[];
37
- debug?: DebugProp;
38
- disabled?: boolean;
39
- /**
40
- * Same as the web className property, useful for applying styles from CSS on web only
41
- */
42
- className?: string;
43
- /**
44
- * If given a theme it will only apply to this element, instead of passing down to children
45
- */
46
- themeShallow?: boolean;
47
- themeInverse?: boolean;
48
- /**
49
- * Same as the web id property for setting a uid on an element
50
- */
51
- id?: string;
52
- /**
53
- * Controls the output tag on web
54
- * {@see https://developer.mozilla.org/en-US/docs/Web/HTML/Element}
55
- */
56
- tag?: (string & {}) | 'address' | 'article' | 'aside' | 'footer' | 'header' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'main' | 'nav' | 'section' | 'search' | 'blockquote' | 'dd' | 'div' | 'dl' | 'dt' | 'figcaption' | 'figure' | 'hr' | 'li' | 'ol' | 'ul' | 'p' | 'pre' | 'a' | 'abbr' | 'p' | 'b' | 'abbr' | 'bdi' | 'bdo' | 'br' | 'cite' | 'code' | 'data' | 'dfn' | 'em' | 'i' | 'kbd' | 'mark' | 'q' | 'rp' | 'rt' | 'rtc' | 'ruby' | 's' | 'samp' | 'small' | 'span' | 'strong' | 'sub' | 'sup' | 'time' | 'u' | 'var' | 'wbr' | 'area' | 'audio' | 'img' | 'map' | 'track' | 'video' | 'embed' | 'object' | 'param' | 'picture' | 'source' | 'canvas' | 'noscript' | 'script' | 'del' | 'ins' | 'caption' | 'col' | 'colgroup' | 'table' | 'thead' | 'tbody' | 'td' | 'th' | 'tr' | 'button' | 'datalist' | 'fieldset' | 'form' | 'input' | 'label' | 'legend' | 'meter' | 'optgroup' | 'option' | 'output' | 'progress' | 'select' | 'textarea' | 'details' | 'dialog' | 'menu' | 'summary' | 'template';
57
- /**
58
- * Applies a theme to this element
59
- */
60
- theme?: ThemeName | null;
61
- /**
62
- * Marks this component as a group for use in styling children based on parents named group
63
- * See: https://tamagui.dev/docs/intro/props
64
- */
65
- group?: GroupNames;
66
- /**
67
- * Works only alongside group, when children of the group are using container based sizing on native you can hide them until parent is measured.
68
- * See: https://tamagui.dev/docs/intro/props
69
- */
70
- untilMeasured?: 'hide' | 'show';
71
- /**
72
- * Equivalent to "name" property on styled() for automatically applying a theme
73
- */
74
- componentName?: string;
75
- /**
76
- * Used for controlling the order of focus with keyboard or assistive device enavigation
77
- * See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
78
- */
79
- tabIndex?: string | number;
80
- /**
81
- * Equivalent to role="" attribute on web for accessibility
82
- */
83
- role?: Role;
84
- /**
85
- * Disable all compiler optimization
86
- */
87
- disableOptimization?: boolean;
88
- /**
89
- * Forces the pseudo style state to be on
90
- */
91
- forceStyle?: 'hover' | 'press' | 'focus';
92
- /**
93
- * Disables className output of styles, instead using only inline styles
94
- */
95
- disableClassName?: boolean;
96
- };
97
- export interface WebOnlyPressEvents {
98
- onPress?: PressableProps['onPress'];
99
- onLongPress?: PressableProps['onLongPress'];
100
- onPressIn?: PressableProps['onPress'];
101
- onPressOut?: PressableProps['onPress'];
102
- onHoverIn?: DivAttributes['onMouseEnter'];
103
- onHoverOut?: DivAttributes['onMouseLeave'];
104
- onMouseEnter?: DivAttributes['onMouseEnter'];
105
- onMouseLeave?: DivAttributes['onMouseLeave'];
106
- onMouseDown?: DivAttributes['onMouseDown'];
107
- onMouseUp?: DivAttributes['onMouseUp'];
108
- onFocus?: DivAttributes['onFocus'];
109
- onBlur?: DivAttributes['onBlur'];
110
- }
111
24
  export interface TamaguiComponentPropsBase extends TamaguiComponentPropsBaseBase, WebOnlyPressEvents {
112
25
  }
113
26
  /**
@@ -127,7 +40,7 @@ export type TamaguiProjectInfo = {
127
40
  tamaguiConfig: TamaguiInternalConfig;
128
41
  nameToPaths: NameToPaths;
129
42
  };
130
- type DivAttributes = HTMLAttributes<HTMLDivElement>;
43
+ export type DivAttributes = HTMLAttributes<HTMLDivElement>;
131
44
  export type ReactComponentWithRef<Props, Ref> = ForwardRefExoticComponent<Props & RefAttributes<Ref>>;
132
45
  export type ComponentContextI = {
133
46
  disableSSR?: boolean;
@@ -350,13 +263,14 @@ export type UseThemeWithStateProps = ThemeProps & {
350
263
  };
351
264
  type ArrayIntersection<A extends any[]> = A[keyof A];
352
265
  type GetAltThemeNames<S> = (S extends `${string}_${infer Alt}` ? GetAltThemeNames<Alt> : S) | S;
353
- export type SpacerPropsBase = {
354
- size?: SpaceValue;
266
+ export type SpacerUniqueProps = {
267
+ size?: SpaceValue | number;
355
268
  flex?: boolean | number;
356
- direction?: SpaceDirection | 'unset';
269
+ direction?: SpaceDirection;
357
270
  };
358
- type SpacerOwnProps = SpacerPropsBase & WithThemeShorthandsPseudosMedia<SpacerPropsBase>;
359
- export type SpacerProps = Omit<StackProps, 'flex' | 'direction' | 'size'> & SpacerOwnProps;
271
+ export interface SpacerStyleProps extends Omit<StackStyleBase, keyof SpacerUniqueProps>, SpacerUniqueProps {
272
+ }
273
+ export type SpacerProps = WithThemeShorthandsPseudosMedia<SpacerStyleProps>;
360
274
  type AllowedValueSettingBase = boolean | 'strict' | 'somewhat-strict' | 'strict-web' | 'somewhat-strict-web';
361
275
  type AllowedStyleValuesSettingSize = AllowedValueSettingBase | 'number' | 'percent';
362
276
  type AllowedStyleValuesSettingZIndex = AllowedValueSettingBase | 'number';
@@ -436,7 +350,7 @@ export type TamaguiSettings = TamaguiConfig['settings'];
436
350
  export type BaseStyleProps = {
437
351
  [Key in keyof TextStylePropsBase]?: TextStyleProps[Key] | GetThemeValueForKey<Key>;
438
352
  } & {
439
- [Key in keyof StackStylePropsBase]?: StackStyleProps[Key] | GetThemeValueForKey<Key>;
353
+ [Key in keyof StackStyleBase]?: StackStyle[Key] | GetThemeValueForKey<Key>;
440
354
  };
441
355
  export type CreateTamaguiProps = {
442
356
  unset?: BaseStyleProps;
@@ -769,7 +683,7 @@ export interface ExtendBaseTextProps {
769
683
  interface OverrideNonStyledProps extends TransformStyleProps, ExtendBaseTextProps, ExtendBaseStackProps, ExtraStyleProps {
770
684
  display?: 'inherit' | 'none' | 'inline' | 'block' | 'contents' | 'flex' | 'inline-flex';
771
685
  }
772
- export interface StackStylePropsBase extends Omit<ViewStyle, keyof OverrideNonStyledProps | 'elevation'>, TransformStyleProps, ExtraStyleProps, OverrideNonStyledProps {
686
+ export interface StackStyleBase extends Omit<ViewStyle, keyof OverrideNonStyledProps | 'elevation'>, TransformStyleProps, ExtraStyleProps, OverrideNonStyledProps {
773
687
  }
774
688
  export interface TextStylePropsBase extends Omit<TextStyle, keyof OverrideNonStyledProps>, TransformStyleProps, ExtraStyleProps, OverrideNonStyledProps {
775
689
  ellipse?: boolean;
@@ -782,8 +696,8 @@ type LooseCombinedObjects<A extends Object, B extends Object> = A | B | (A & B);
782
696
  export interface StackNonStyleProps extends Omit<ViewProps, 'pointerEvents' | 'display' | 'children' | RNOnlyProps | keyof ExtendBaseStackProps | 'style'>, ExtendBaseStackProps, TamaguiComponentPropsBase {
783
697
  style?: StyleProp<LooseCombinedObjects<React.CSSProperties, ViewStyle>>;
784
698
  }
785
- export type StackStyleProps = WithThemeShorthandsPseudosMedia<StackStylePropsBase>;
786
- export type StackProps = StackNonStyleProps & StackStyleProps;
699
+ export type StackStyle = WithThemeShorthandsPseudosMedia<StackStyleBase>;
700
+ export type StackProps = StackNonStyleProps & StackStyle;
787
701
  export interface TextNonStyleProps extends Omit<ReactTextProps, 'children' | keyof WebOnlyPressEvents | RNOnlyProps | keyof ExtendBaseTextProps | 'style'>, ExtendBaseTextProps, TamaguiComponentPropsBase {
788
702
  style?: StyleProp<LooseCombinedObjects<React.CSSProperties, TextStyle>>;
789
703
  }
@@ -805,9 +719,6 @@ export type GetFinalProps<NonStyleProps, StylePropsBase> = Omit<NonStyleProps, k
805
719
  export type TamaguiComponent<Props = any, Ref = any, NonStyledProps = {}, BaseStyles extends Object = {}, VariantProps = {}, ParentStaticProperties = {}> = ForwardRefExoticComponent<(Props extends TamaDefer ? GetFinalProps<NonStyledProps, BaseStyles & VariantProps> : Props) & RefAttributes<Ref>> & StaticComponentObject<Props, Ref, NonStyledProps, BaseStyles, VariantProps, ParentStaticProperties> & Omit<ParentStaticProperties, 'staticConfig' | 'extractable' | 'styleable'> & {
806
720
  __tama: [Props, Ref, NonStyledProps, BaseStyles, VariantProps, ParentStaticProperties];
807
721
  };
808
- export type GetStyledProps<A extends StylableComponent> = A extends {
809
- __tama: [any, any, any, infer BaseStyles, infer VariantProps, any];
810
- } ? BaseStyles & VariantProps : GetProps<A>;
811
722
  export type InferGenericComponentProps<A> = A extends ComponentType<infer Props> ? Props : A extends new (props: infer Props) => any ? Props : {};
812
723
  export type InferStyledProps<A extends StylableComponent, B extends StaticConfigPublic> = A extends {
813
724
  __tama: any;
@@ -829,7 +740,7 @@ export type GetBaseStyles<A, B> = A extends {
829
740
  __tama: [any, any, any, infer C, any, any];
830
741
  } ? C : B extends {
831
742
  isText: true;
832
- } ? TextStylePropsBase : StackStylePropsBase;
743
+ } ? TextStylePropsBase : StackStyleBase;
833
744
  export type GetStyledVariants<A> = A extends {
834
745
  __tama: [any, any, any, any, infer B, any];
835
746
  } ? B : {};
@@ -842,7 +753,7 @@ export type StaticComponentObject<Props, Ref, NonStyledProps, BaseStyles extends
842
753
  extractable: <X>(a: X, staticConfig?: Partial<StaticConfig>) => X;
843
754
  styleable: Styleable<Props extends TamaDefer ? GetFinalProps<NonStyledProps, BaseStyles & VariantProps> : Props, Ref, NonStyledProps, BaseStyles, VariantProps, ParentStaticProperties>;
844
755
  };
845
- export type TamaguiComponentExpectingVariants<Props = {}, Variants extends Object = {}> = TamaguiComponent<Props, any, any, Variants>;
756
+ export type TamaguiComponentExpectingVariants<Props = {}, Variants extends Object = {}> = TamaguiComponent<Props, any, any, any, Variants>;
846
757
  export type TamaguiProviderProps = Partial<Omit<ThemeProviderProps, 'children'>> & {
847
758
  config: TamaguiInternalConfig;
848
759
  disableInjectCSS?: boolean;
@@ -973,7 +884,7 @@ export type VariantDefinitions<Parent extends StylableComponent = TamaguiCompone
973
884
  };
974
885
  export type GetStyleableProps<A extends StylableComponent, IsText extends boolean | undefined> = A extends {
975
886
  __tama: [infer Props, any, any, infer BaseStyles, infer VariantProps, any];
976
- } ? Props extends TamaDefer ? GetFinalProps<{}, BaseStyles & VariantProps> : Props : WithThemeShorthandsPseudosMedia<IsText extends true ? TextStylePropsBase : StackStylePropsBase>;
887
+ } ? Props extends TamaDefer ? GetFinalProps<{}, BaseStyles & VariantProps> : Props : WithThemeShorthandsPseudosMedia<IsText extends true ? TextStylePropsBase : StackStyleBase>;
977
888
  export type VariantDefinitionFromProps<MyProps, Val> = MyProps extends Object ? {
978
889
  [propName: string]: VariantSpreadFunction<MyProps, Val> | ({
979
890
  [Key in SpreadKeys]?: Key extends '...fontSize' ? FontSizeVariantSpreadFunction<MyProps> : Key extends '...size' ? SizeVariantSpreadFunction<MyProps> : Key extends '...space' ? SpaceVariantSpreadFunction<MyProps> : Key extends '...color' ? ColorVariantSpreadFunction<MyProps> : Key extends '...lineHeight' ? FontLineHeightVariantSpreadFunction<MyProps> : Key extends '...fontTransform' ? FontTransformVariantSpreadFunction<MyProps> : Key extends '...fontStyle' ? FontStyleVariantSpreadFunction<MyProps> : Key extends '...letterSpacing' ? FontLetterSpacingVariantSpreadFunction<MyProps> : Key extends '...zIndex' ? ZIndexVariantSpreadFunction<MyProps> : Key extends '...radius' ? RadiusVariantSpreadFunction<MyProps> : Key extends '...theme' ? ThemeVariantSpreadFunction<MyProps> : never;
@@ -1019,21 +930,6 @@ export type ThemeVariantSpreadFunction<A extends PropLike> = VariantSpreadFuncti
1019
930
  * end variants
1020
931
  * --------------------------------------------
1021
932
  */
1022
- export type SizeKeys = 'width' | 'height' | 'minWidth' | 'minHeight' | 'maxWidth' | 'maxHeight' | 'shadowRadius';
1023
- export type ColorKeys = 'color' | 'backgroundColor' | 'borderColor' | 'borderBottomColor' | 'borderTopColor' | 'borderLeftColor' | 'borderRightColor' | 'shadowColor' | 'outlineColor' | 'textShadowColor' | 'borderBlockColor' | 'borderBlockEndColor' | 'borderBlockStartColor';
1024
- export type SpaceKeys = 'space' | 'padding' | 'paddingHorizontal' | 'paddingVertical' | 'paddingLeft' | 'paddingTop' | 'paddingBottom' | 'paddingLeft' | 'paddingRight' | 'paddingEnd' | 'paddingStart' | 'margin' | 'marginHorizontal' | 'marginVertical' | 'marginLeft' | 'marginTop' | 'marginBottom' | 'marginLeft' | 'marginRight' | 'marginEnd' | 'marginStart' | 'x' | 'y' | 'gap' | 'rowGap' | 'columnGap' | 'scale' | 'scaleX' | 'scaleY' | 'borderTopEndRadius' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderTopStartRadius' | 'borderBottomEndRadius' | 'borderBottomLeftRadius' | 'borderBottomRightRadius' | 'borderBottomStartRadius' | 'borderBottomWidth' | 'borderLeftWidth' | 'borderRadius' | 'borderRightWidth' | 'borderTopEndRadius' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderEndWidth' | 'borderStartWidth' | 'borderTopStartRadius' | 'borderTopWidth' | 'borderWidth' | 'left' | 'top' | 'right' | 'bottom' | 'shadowOffset';
1025
- export type TamaguiComponentState = {
1026
- hover: boolean;
1027
- press: boolean;
1028
- pressIn: boolean;
1029
- focus: boolean;
1030
- unmounted: boolean | 'should-enter';
1031
- animation?: null | {
1032
- style?: any;
1033
- avoidClasses?: boolean;
1034
- };
1035
- group?: Record<string, GroupState>;
1036
- };
1037
933
  export type ResolveVariableAs = 'auto' | 'value' | 'variable' | 'none' | 'web';
1038
934
  export type SplitStyleProps = {
1039
935
  mediaState?: Record<string, boolean>;
@@ -1138,7 +1034,7 @@ export type UseAnimationHook = (props: {
1138
1034
  onDidAnimate?: any;
1139
1035
  delay?: number;
1140
1036
  }) => null | {
1141
- style?: StackStylePropsBase | StackStylePropsBase[];
1037
+ style?: StackStyleBase | StackStyleBase[];
1142
1038
  };
1143
1039
  export type GestureReponderEvent = Exclude<View['props']['onResponderMove'], void> extends (event: infer Event) => void ? Event : never;
1144
1040
  export type RulesToInsert = StyleObject[];
@@ -1156,24 +1052,6 @@ export type GetStyleResult = {
1156
1052
  mediaGroups?: Set<string>;
1157
1053
  };
1158
1054
  export type ClassNamesObject = Record<string, string>;
1159
- export type TamaguiComponentEvents = {
1160
- cancelable?: boolean | undefined;
1161
- disabled?: any;
1162
- hitSlop?: any;
1163
- delayLongPress?: any;
1164
- delayPressIn?: any;
1165
- delayPressOut?: any;
1166
- focusable?: any;
1167
- minPressDuration?: number | undefined;
1168
- onPressIn: ((e: any) => void) | undefined;
1169
- onPress: ((e: any) => void) | undefined;
1170
- onLongPress?: ((e: any) => void) | undefined;
1171
- onMouseEnter?: ((e: any) => void) | undefined;
1172
- onMouseLeave?: ((e: any) => void) | undefined;
1173
- onPressOut: ((e: any) => void) | undefined;
1174
- onFocus?: ((e: any) => void) | undefined;
1175
- onBlur?: ((e: any) => void) | undefined;
1176
- };
1177
1055
  export type ModifyTamaguiComponentStyleProps<Comp extends TamaguiComponent, ChangedProps extends Object> = Comp extends TamaguiComponent<infer A, infer B, infer C, infer D, infer E> ? A extends Object ? TamaguiComponent<Omit<A, keyof ChangedProps> & ChangedProps, B, C, D, E> : never : never;
1178
1056
  /**
1179
1057
  * Narrow copied from ts-toolbelt