@tamagui/web 1.88.4 → 1.88.6

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 (111) 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 +3 -6
  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 +28 -350
  84. package/src/views/Stack.tsx +2 -2
  85. package/src/views/View.tsx +4 -2
  86. package/types/createComponent.d.ts.map +1 -1
  87. package/types/defaultComponentState.d.ts +1 -1
  88. package/types/defaultComponentState.d.ts.map +1 -1
  89. package/types/helpers/getSplitStyles.d.ts +2 -1
  90. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  91. package/types/hooks/useProps.d.ts +2 -2
  92. package/types/hooks/useProps.d.ts.map +1 -1
  93. package/types/interfaces/KeyTypes.d.ts +4 -0
  94. package/types/interfaces/KeyTypes.d.ts.map +1 -0
  95. package/types/interfaces/TamaguiComponentEvents.d.ts +19 -0
  96. package/types/interfaces/TamaguiComponentEvents.d.ts.map +1 -0
  97. package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts +81 -0
  98. package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts.map +1 -0
  99. package/types/interfaces/TamaguiComponentState.d.ts +14 -0
  100. package/types/interfaces/TamaguiComponentState.d.ts.map +1 -0
  101. package/types/interfaces/WebOnlyPressEvents.d.ts +17 -0
  102. package/types/interfaces/WebOnlyPressEvents.d.ts.map +1 -0
  103. package/types/internalWithTheme.d.ts.map +1 -1
  104. package/types/setupHooks.d.ts +3 -1
  105. package/types/setupHooks.d.ts.map +1 -1
  106. package/types/types.d.ts +27 -143
  107. package/types/types.d.ts.map +1 -1
  108. package/types/views/Stack.d.ts +2 -2
  109. package/types/views/Stack.d.ts.map +1 -1
  110. package/types/views/View.d.ts +4 -3
  111. package/types/views/View.d.ts.map +1 -1
@@ -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;
@@ -355,7 +268,7 @@ export type SpacerUniqueProps = {
355
268
  flex?: boolean | number;
356
269
  direction?: SpaceDirection;
357
270
  };
358
- export interface SpacerStyleProps extends Omit<StackStylePropsBase, keyof SpacerUniqueProps>, SpacerUniqueProps {
271
+ export interface SpacerStyleProps extends Omit<StackStyleBase, keyof SpacerUniqueProps>, SpacerUniqueProps {
359
272
  }
360
273
  export type SpacerProps = WithThemeShorthandsPseudosMedia<SpacerStyleProps>;
361
274
  type AllowedValueSettingBase = boolean | 'strict' | 'somewhat-strict' | 'strict-web' | 'somewhat-strict-web';
@@ -437,7 +350,7 @@ export type TamaguiSettings = TamaguiConfig['settings'];
437
350
  export type BaseStyleProps = {
438
351
  [Key in keyof TextStylePropsBase]?: TextStyleProps[Key] | GetThemeValueForKey<Key>;
439
352
  } & {
440
- [Key in keyof StackStylePropsBase]?: StackStyleProps[Key] | GetThemeValueForKey<Key>;
353
+ [Key in keyof StackStyleBase]?: StackStyle[Key] | GetThemeValueForKey<Key>;
441
354
  };
442
355
  export type CreateTamaguiProps = {
443
356
  unset?: BaseStyleProps;
@@ -770,7 +683,7 @@ export interface ExtendBaseTextProps {
770
683
  interface OverrideNonStyledProps extends TransformStyleProps, ExtendBaseTextProps, ExtendBaseStackProps, ExtraStyleProps {
771
684
  display?: 'inherit' | 'none' | 'inline' | 'block' | 'contents' | 'flex' | 'inline-flex';
772
685
  }
773
- 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 {
774
687
  }
775
688
  export interface TextStylePropsBase extends Omit<TextStyle, keyof OverrideNonStyledProps>, TransformStyleProps, ExtraStyleProps, OverrideNonStyledProps {
776
689
  ellipse?: boolean;
@@ -783,8 +696,8 @@ type LooseCombinedObjects<A extends Object, B extends Object> = A | B | (A & B);
783
696
  export interface StackNonStyleProps extends Omit<ViewProps, 'pointerEvents' | 'display' | 'children' | RNOnlyProps | keyof ExtendBaseStackProps | 'style'>, ExtendBaseStackProps, TamaguiComponentPropsBase {
784
697
  style?: StyleProp<LooseCombinedObjects<React.CSSProperties, ViewStyle>>;
785
698
  }
786
- export type StackStyleProps = WithThemeShorthandsPseudosMedia<StackStylePropsBase>;
787
- export type StackProps = StackNonStyleProps & StackStyleProps;
699
+ export type StackStyle = WithThemeShorthandsPseudosMedia<StackStyleBase>;
700
+ export type StackProps = StackNonStyleProps & StackStyle;
788
701
  export interface TextNonStyleProps extends Omit<ReactTextProps, 'children' | keyof WebOnlyPressEvents | RNOnlyProps | keyof ExtendBaseTextProps | 'style'>, ExtendBaseTextProps, TamaguiComponentPropsBase {
789
702
  style?: StyleProp<LooseCombinedObjects<React.CSSProperties, TextStyle>>;
790
703
  }
@@ -806,9 +719,6 @@ export type GetFinalProps<NonStyleProps, StylePropsBase> = Omit<NonStyleProps, k
806
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'> & {
807
720
  __tama: [Props, Ref, NonStyledProps, BaseStyles, VariantProps, ParentStaticProperties];
808
721
  };
809
- export type GetStyledProps<A extends StylableComponent> = A extends {
810
- __tama: [any, any, any, infer BaseStyles, infer VariantProps, any];
811
- } ? BaseStyles & VariantProps : GetProps<A>;
812
722
  export type InferGenericComponentProps<A> = A extends ComponentType<infer Props> ? Props : A extends new (props: infer Props) => any ? Props : {};
813
723
  export type InferStyledProps<A extends StylableComponent, B extends StaticConfigPublic> = A extends {
814
724
  __tama: any;
@@ -830,7 +740,7 @@ export type GetBaseStyles<A, B> = A extends {
830
740
  __tama: [any, any, any, infer C, any, any];
831
741
  } ? C : B extends {
832
742
  isText: true;
833
- } ? TextStylePropsBase : StackStylePropsBase;
743
+ } ? TextStylePropsBase : StackStyleBase;
834
744
  export type GetStyledVariants<A> = A extends {
835
745
  __tama: [any, any, any, any, infer B, any];
836
746
  } ? B : {};
@@ -843,7 +753,7 @@ export type StaticComponentObject<Props, Ref, NonStyledProps, BaseStyles extends
843
753
  extractable: <X>(a: X, staticConfig?: Partial<StaticConfig>) => X;
844
754
  styleable: Styleable<Props extends TamaDefer ? GetFinalProps<NonStyledProps, BaseStyles & VariantProps> : Props, Ref, NonStyledProps, BaseStyles, VariantProps, ParentStaticProperties>;
845
755
  };
846
- 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>;
847
757
  export type TamaguiProviderProps = Partial<Omit<ThemeProviderProps, 'children'>> & {
848
758
  config: TamaguiInternalConfig;
849
759
  disableInjectCSS?: boolean;
@@ -969,12 +879,19 @@ export type ViewStyleWithPseudos = TextStyleProps | (TextStyleProps & {
969
879
  */
970
880
  export type StylableComponent = TamaguiComponent | ComponentType<any> | ForwardRefExoticComponent<any> | ReactComponentWithRef<any, any> | (new (props: any) => any);
971
881
  export type SpreadKeys = '...fontSize' | '...fontStyle' | '...fontTransform' | '...lineHeight' | '...letterSpacing' | '...size' | '...space' | '...color' | '...zIndex' | '...theme' | '...radius';
972
- export type VariantDefinitions<Parent extends StylableComponent = TamaguiComponent, StaticConfig extends StaticConfigPublic = {}, MyProps extends Object = Partial<GetStyleableProps<Parent, StaticConfig['isText']>>, Val = any> = VariantDefinitionFromProps<MyProps, Val> & {
882
+ export type VariantDefinitions<Parent extends StylableComponent = TamaguiComponent, StaticConfig extends StaticConfigPublic = {}, MyProps extends Object = Partial<GetVariantProps<Parent, StaticConfig['isText']>>, Val = any> = VariantDefinitionFromProps<MyProps, Val> & {
973
883
  _isEmpty?: 1;
974
884
  };
975
- export type GetStyleableProps<A extends StylableComponent, IsText extends boolean | undefined> = A extends {
976
- __tama: [infer Props, any, any, infer BaseStyles, infer VariantProps, any];
977
- } ? Props extends TamaDefer ? GetFinalProps<{}, BaseStyles & VariantProps> : Props : WithThemeShorthandsPseudosMedia<IsText extends true ? TextStylePropsBase : StackStylePropsBase>;
885
+ export type GetVariantProps<A extends StylableComponent, IsText extends boolean | undefined> = A extends {
886
+ __tama: [
887
+ infer Props,
888
+ any,
889
+ infer NonStyledProps,
890
+ infer BaseStyles,
891
+ infer VariantProps,
892
+ any
893
+ ];
894
+ } ? Props extends TamaDefer ? GetFinalProps<NonStyledProps, BaseStyles & VariantProps> : Props : WithThemeShorthandsPseudosMedia<IsText extends true ? TextStylePropsBase : StackStyleBase>;
978
895
  export type VariantDefinitionFromProps<MyProps, Val> = MyProps extends Object ? {
979
896
  [propName: string]: VariantSpreadFunction<MyProps, Val> | ({
980
897
  [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;
@@ -1020,21 +937,6 @@ export type ThemeVariantSpreadFunction<A extends PropLike> = VariantSpreadFuncti
1020
937
  * end variants
1021
938
  * --------------------------------------------
1022
939
  */
1023
- export type SizeKeys = 'width' | 'height' | 'minWidth' | 'minHeight' | 'maxWidth' | 'maxHeight' | 'shadowRadius';
1024
- export type ColorKeys = 'color' | 'backgroundColor' | 'borderColor' | 'borderBottomColor' | 'borderTopColor' | 'borderLeftColor' | 'borderRightColor' | 'shadowColor' | 'outlineColor' | 'textShadowColor' | 'borderBlockColor' | 'borderBlockEndColor' | 'borderBlockStartColor';
1025
- 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';
1026
- export type TamaguiComponentState = {
1027
- hover: boolean;
1028
- press: boolean;
1029
- pressIn: boolean;
1030
- focus: boolean;
1031
- unmounted: boolean | 'should-enter';
1032
- animation?: null | {
1033
- style?: any;
1034
- avoidClasses?: boolean;
1035
- };
1036
- group?: Record<string, GroupState>;
1037
- };
1038
940
  export type ResolveVariableAs = 'auto' | 'value' | 'variable' | 'none' | 'web';
1039
941
  export type SplitStyleProps = {
1040
942
  mediaState?: Record<string, boolean>;
@@ -1139,7 +1041,7 @@ export type UseAnimationHook = (props: {
1139
1041
  onDidAnimate?: any;
1140
1042
  delay?: number;
1141
1043
  }) => null | {
1142
- style?: StackStylePropsBase | StackStylePropsBase[];
1044
+ style?: StackStyleBase | StackStyleBase[];
1143
1045
  };
1144
1046
  export type GestureReponderEvent = Exclude<View['props']['onResponderMove'], void> extends (event: infer Event) => void ? Event : never;
1145
1047
  export type RulesToInsert = StyleObject[];
@@ -1157,24 +1059,6 @@ export type GetStyleResult = {
1157
1059
  mediaGroups?: Set<string>;
1158
1060
  };
1159
1061
  export type ClassNamesObject = Record<string, string>;
1160
- export type TamaguiComponentEvents = {
1161
- cancelable?: boolean | undefined;
1162
- disabled?: any;
1163
- hitSlop?: any;
1164
- delayLongPress?: any;
1165
- delayPressIn?: any;
1166
- delayPressOut?: any;
1167
- focusable?: any;
1168
- minPressDuration?: number | undefined;
1169
- onPressIn: ((e: any) => void) | undefined;
1170
- onPress: ((e: any) => void) | undefined;
1171
- onLongPress?: ((e: any) => void) | undefined;
1172
- onMouseEnter?: ((e: any) => void) | undefined;
1173
- onMouseLeave?: ((e: any) => void) | undefined;
1174
- onPressOut: ((e: any) => void) | undefined;
1175
- onFocus?: ((e: any) => void) | undefined;
1176
- onBlur?: ((e: any) => void) | undefined;
1177
- };
1178
1062
  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;
1179
1063
  /**
1180
1064
  * Narrow copied from ts-toolbelt