@knitui/components 1.0.0 → 1.2.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/lib/commonjs/ActionIcon/ActionIcon.js +1 -1
- package/lib/commonjs/ActionIcon/ActionIcon.js.map +1 -1
- package/lib/commonjs/Affix/Affix.js +1 -1
- package/lib/commonjs/Affix/Affix.js.map +1 -1
- package/lib/commonjs/Alert/Alert.js +1 -1
- package/lib/commonjs/Alert/Alert.js.map +1 -1
- package/lib/commonjs/Avatar/Avatar.js +1 -1
- package/lib/commonjs/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/Badge/Badge.js +1 -1
- package/lib/commonjs/Badge/Badge.js.map +1 -1
- package/lib/commonjs/Button/Button.js +1 -1
- package/lib/commonjs/Button/Button.js.map +1 -1
- package/lib/commonjs/CloseButton/CloseButton.js +1 -1
- package/lib/commonjs/CloseButton/CloseButton.js.map +1 -1
- package/lib/commonjs/Image/Image.js +108 -27
- package/lib/commonjs/Image/Image.js.map +1 -1
- package/lib/commonjs/Image/createImage.js +26 -0
- package/lib/commonjs/Image/createImage.js.map +1 -1
- package/lib/commonjs/Image/shared.js +8 -1
- package/lib/commonjs/Image/shared.js.map +1 -1
- package/lib/commonjs/Input/Input.native.js +15 -6
- package/lib/commonjs/Input/Input.native.js.map +1 -1
- package/lib/commonjs/KeyboardAwareScrollView/KeyboardAwareScrollView.native.js.map +1 -1
- package/lib/commonjs/Modal/drag/DragDismissHost.js +4 -1
- package/lib/commonjs/Modal/drag/DragDismissHost.js.map +1 -1
- package/lib/commonjs/Modal/drag/DragDismissOverlay.js +4 -1
- package/lib/commonjs/Modal/drag/DragDismissOverlay.js.map +1 -1
- package/lib/commonjs/Modal/drag/useDragDismiss.js +83 -67
- package/lib/commonjs/Modal/drag/useDragDismiss.js.map +1 -1
- package/lib/commonjs/Modal/modal-base.js +2 -2
- package/lib/commonjs/Modal/modal-base.js.map +1 -1
- package/lib/commonjs/Pill/Pill.js +1 -1
- package/lib/commonjs/Pill/Pill.js.map +1 -1
- package/lib/commonjs/Popover/Popover.shared.js +1 -1
- package/lib/commonjs/Popover/Popover.shared.js.map +1 -1
- package/lib/commonjs/Portal/OverlayHost.js.map +1 -1
- package/lib/commonjs/Portal/OverlayPortal.js +33 -0
- package/lib/commonjs/Portal/OverlayPortal.js.map +1 -0
- package/lib/commonjs/Portal/index.js +7 -0
- package/lib/commonjs/Portal/index.js.map +1 -1
- package/lib/commonjs/ScrollArea/ScrollArea.native.js +25 -15
- package/lib/commonjs/ScrollArea/ScrollArea.native.js.map +1 -1
- package/lib/commonjs/ThemeIcon/ThemeIcon.js +1 -1
- package/lib/commonjs/ThemeIcon/ThemeIcon.js.map +1 -1
- package/lib/commonjs/Tooltip/Tooltip.js +1 -1
- package/lib/commonjs/Tooltip/Tooltip.js.map +1 -1
- package/lib/commonjs/index.js +6 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internal/gradient-shared.js +11 -1
- package/lib/commonjs/internal/gradient-shared.js.map +1 -1
- package/lib/commonjs/internal/gradient.js +6 -0
- package/lib/commonjs/internal/gradient.js.map +1 -1
- package/lib/commonjs/internal/gradient.native.js +6 -0
- package/lib/commonjs/internal/gradient.native.js.map +1 -1
- package/lib/commonjs/internal/use-looping-animation.native.js +1 -1
- package/lib/commonjs/internal/use-looping-animation.native.js.map +1 -1
- package/lib/module/ActionIcon/ActionIcon.js +2 -2
- package/lib/module/ActionIcon/ActionIcon.js.map +1 -1
- package/lib/module/Affix/Affix.js +2 -2
- package/lib/module/Affix/Affix.js.map +1 -1
- package/lib/module/Alert/Alert.js +2 -2
- package/lib/module/Alert/Alert.js.map +1 -1
- package/lib/module/Avatar/Avatar.js +2 -2
- package/lib/module/Avatar/Avatar.js.map +1 -1
- package/lib/module/Badge/Badge.js +2 -2
- package/lib/module/Badge/Badge.js.map +1 -1
- package/lib/module/Button/Button.js +2 -2
- package/lib/module/Button/Button.js.map +1 -1
- package/lib/module/CloseButton/CloseButton.js +2 -2
- package/lib/module/CloseButton/CloseButton.js.map +1 -1
- package/lib/module/Image/Image.js +108 -27
- package/lib/module/Image/Image.js.map +1 -1
- package/lib/module/Image/createImage.js +26 -1
- package/lib/module/Image/createImage.js.map +1 -1
- package/lib/module/Image/shared.js +7 -0
- package/lib/module/Image/shared.js.map +1 -1
- package/lib/module/Input/Input.native.js +15 -6
- package/lib/module/Input/Input.native.js.map +1 -1
- package/lib/module/KeyboardAwareScrollView/KeyboardAwareScrollView.native.js.map +1 -1
- package/lib/module/Modal/drag/DragDismissHost.js +4 -1
- package/lib/module/Modal/drag/DragDismissHost.js.map +1 -1
- package/lib/module/Modal/drag/DragDismissOverlay.js +4 -1
- package/lib/module/Modal/drag/DragDismissOverlay.js.map +1 -1
- package/lib/module/Modal/drag/useDragDismiss.js +84 -68
- package/lib/module/Modal/drag/useDragDismiss.js.map +1 -1
- package/lib/module/Modal/modal-base.js +3 -3
- package/lib/module/Modal/modal-base.js.map +1 -1
- package/lib/module/Pill/Pill.js +2 -2
- package/lib/module/Pill/Pill.js.map +1 -1
- package/lib/module/Popover/Popover.shared.js +2 -2
- package/lib/module/Popover/Popover.shared.js.map +1 -1
- package/lib/module/Portal/OverlayHost.js.map +1 -1
- package/lib/module/Portal/OverlayPortal.js +28 -0
- package/lib/module/Portal/OverlayPortal.js.map +1 -0
- package/lib/module/Portal/index.js +4 -0
- package/lib/module/Portal/index.js.map +1 -1
- package/lib/module/ScrollArea/ScrollArea.native.js +26 -16
- package/lib/module/ScrollArea/ScrollArea.native.js.map +1 -1
- package/lib/module/ThemeIcon/ThemeIcon.js +2 -2
- package/lib/module/ThemeIcon/ThemeIcon.js.map +1 -1
- package/lib/module/Tooltip/Tooltip.js +2 -2
- package/lib/module/Tooltip/Tooltip.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/gradient-shared.js +9 -0
- package/lib/module/internal/gradient-shared.js.map +1 -1
- package/lib/module/internal/gradient.js +2 -0
- package/lib/module/internal/gradient.js.map +1 -1
- package/lib/module/internal/gradient.native.js +2 -0
- package/lib/module/internal/gradient.native.js.map +1 -1
- package/lib/module/internal/use-looping-animation.native.js +1 -1
- package/lib/module/internal/use-looping-animation.native.js.map +1 -1
- package/lib/typescript/ActionIcon/ActionIcon.d.ts.map +1 -1
- package/lib/typescript/Alert/Alert.d.ts.map +1 -1
- package/lib/typescript/Avatar/Avatar.d.ts +14 -14
- package/lib/typescript/Avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/Badge/Badge.d.ts.map +1 -1
- package/lib/typescript/Button/Button.d.ts.map +1 -1
- package/lib/typescript/CloseButton/CloseButton.d.ts.map +1 -1
- package/lib/typescript/Image/Image.d.ts +14 -14
- package/lib/typescript/Image/Image.d.ts.map +1 -1
- package/lib/typescript/Image/Image.native.d.ts +14 -14
- package/lib/typescript/Image/createImage.d.ts +25 -18
- package/lib/typescript/Image/createImage.d.ts.map +1 -1
- package/lib/typescript/Image/index.d.ts +1 -1
- package/lib/typescript/Image/index.d.ts.map +1 -1
- package/lib/typescript/Image/shared.d.ts +6 -0
- package/lib/typescript/Image/shared.d.ts.map +1 -1
- package/lib/typescript/Image/types.d.ts +54 -0
- package/lib/typescript/Image/types.d.ts.map +1 -1
- package/lib/typescript/Input/Input.native.d.ts +21 -21
- package/lib/typescript/Input/Input.native.d.ts.map +1 -1
- package/lib/typescript/KeyboardAvoidingView/KeyboardAvoidingView.native.d.ts +2 -2
- package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.native.d.ts +12 -18
- package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.native.d.ts.map +1 -1
- package/lib/typescript/Modal/drag/DragDismissHost.d.ts.map +1 -1
- package/lib/typescript/Modal/drag/DragDismissOverlay.d.ts.map +1 -1
- package/lib/typescript/Modal/drag/useDragDismiss.d.ts +2 -2
- package/lib/typescript/Modal/drag/useDragDismiss.d.ts.map +1 -1
- package/lib/typescript/Modal/modal-base-inner.native.d.ts +2 -2
- package/lib/typescript/Modal/modal-base-inner.native.d.ts.map +1 -1
- package/lib/typescript/Pill/Pill.d.ts.map +1 -1
- package/lib/typescript/Portal/OverlayHost.d.ts +2 -2
- package/lib/typescript/Portal/OverlayHost.d.ts.map +1 -1
- package/lib/typescript/Portal/OverlayPortal.d.ts +19 -0
- package/lib/typescript/Portal/OverlayPortal.d.ts.map +1 -0
- package/lib/typescript/Portal/index.d.ts +4 -0
- package/lib/typescript/Portal/index.d.ts.map +1 -1
- package/lib/typescript/ScrollArea/ScrollArea.native.d.ts.map +1 -1
- package/lib/typescript/ThemeIcon/ThemeIcon.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +2 -2
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/internal/gradient-shared.d.ts +1 -0
- package/lib/typescript/internal/gradient-shared.d.ts.map +1 -1
- package/lib/typescript/internal/gradient.d.ts +1 -0
- package/lib/typescript/internal/gradient.d.ts.map +1 -1
- package/lib/typescript/internal/gradient.native.d.ts +1 -0
- package/lib/typescript/internal/gradient.native.d.ts.map +1 -1
- package/lib/typescript/internal/use-looping-animation.native.d.ts +2 -2
- package/lib/typescript/internal/use-looping-animation.native.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/ActionIcon/ActionIcon.tsx +2 -2
- package/src/Affix/Affix.tsx +2 -2
- package/src/Alert/Alert.tsx +2 -2
- package/src/Avatar/Avatar.tsx +2 -2
- package/src/Badge/Badge.tsx +2 -2
- package/src/Button/Button.tsx +2 -2
- package/src/CloseButton/CloseButton.tsx +2 -2
- package/src/Image/Image.tsx +109 -23
- package/src/Image/createImage.tsx +26 -0
- package/src/Image/index.ts +1 -1
- package/src/Image/shared.ts +14 -0
- package/src/Image/types.ts +57 -1
- package/src/Input/Input.native.tsx +22 -7
- package/src/KeyboardAwareScrollView/KeyboardAwareScrollView.native.tsx +33 -32
- package/src/Modal/drag/DragDismissHost.tsx +10 -5
- package/src/Modal/drag/DragDismissOverlay.tsx +9 -5
- package/src/Modal/drag/useDragDismiss.ts +29 -21
- package/src/Modal/modal-base.tsx +4 -4
- package/src/Pill/Pill.tsx +2 -2
- package/src/Popover/Popover.shared.tsx +3 -3
- package/src/Portal/OverlayHost.tsx +4 -4
- package/src/Portal/OverlayPortal.tsx +26 -0
- package/src/Portal/index.ts +4 -0
- package/src/ScrollArea/ScrollArea.native.tsx +39 -33
- package/src/ThemeIcon/ThemeIcon.tsx +2 -2
- package/src/Tooltip/Tooltip.tsx +3 -3
- package/src/index.ts +11 -1
- package/src/internal/gradient-shared.ts +13 -0
- package/src/internal/gradient.native.tsx +1 -0
- package/src/internal/gradient.tsx +1 -0
- package/src/internal/use-looping-animation.native.tsx +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createImage.d.ts","sourceRoot":"","sources":["../../../src/Image/createImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EACL,KAAK,QAAQ,EAKb,IAAI,EAEL,MAAM,cAAc,CAAC;AAItB,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"createImage.d.ts","sourceRoot":"","sources":["../../../src/Image/createImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EACL,KAAK,QAAQ,EAKb,IAAI,EAEL,MAAM,cAAc,CAAC;AAItB,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAWjE,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,SAAS,CAAC;AAErD,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;AACjE,KA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,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAHnC,kEAAkE;iBACzD,UAAU,CAAC,WAAW,CAAC;QAChC,sEAAsE;wBACtD,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAsMxB,KAAK,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAzM1B,kEAAkE;iBACzD,UAAU,CAAC,WAAW,CAAC;QAChC,sEAAsE;wBACtD,OAAO,CAAC,UAAU,CAAC;;;;;;;;;uJA2TtC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { createImage, type CreateImageOptions, type ImageStyles } from "./createImage";
|
|
2
2
|
export * from "./Image";
|
|
3
|
-
export type { ImageProps, ImageType } from "./types";
|
|
3
|
+
export type { ImageProps, ImageType, ImageWebProps, ImageWebSource } from "./types";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACvF,cAAc,SAAS,CAAC;AACxB,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACvF,cAAc,SAAS,CAAC;AACxB,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { ImageContentPosition } from "expo-image";
|
|
8
8
|
import type { ImageHostResizeMode, ImageObjectFit, ImageObjectPosition, ImageProps, ImageType } from "./types";
|
|
9
|
+
/**
|
|
10
|
+
* The web-only `<img>` / `<picture>` props (`ImageWebProps`): forwarded
|
|
11
|
+
* untouched to the web `<img>` (and `sources` to its `<picture>`), dropped
|
|
12
|
+
* before native expo-image sees them.
|
|
13
|
+
*/
|
|
14
|
+
export declare const IMAGE_WEB_PROP_KEYS: readonly ["srcSet", "sizes", "decoding", "fetchPriority", "loading", "sources"];
|
|
9
15
|
/**
|
|
10
16
|
* Pull a usable `src` value (URL string, `require()` number, or `{ uri }`
|
|
11
17
|
* object) out of either the `src` or deprecated `source` prop. Returns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/Image/shared.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAGvD,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,SAAS,EACV,MAAM,SAAS,CAAC;AAEjB;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,MAAM,GAAG,SAKhE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,WAAW,MAAM,KAAG,cAC7B,CAAC;AAM9B;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,GACnC,OAAO,mBAAmB,GAAG,SAAS,KACrC,oBAAoB,GAAG,SAqDzB,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,qBAAqB,GAAI,WAAW,MAAM,KAAG,mBAYzD,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,qBAAqB,GAChC,YAAY,UAAU,CAAC,YAAY,CAAC,KACnC,cAAc,GAAG,SAanB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,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,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,MAAM,EACjD,QAAQ,CAAC,EACT,OAAM,eAAoB,KACzB,CAAC,GAAG,SASN,CAAC"}
|
|
@@ -84,6 +84,60 @@ export type ImageProps = Omit<ViewProps, "transition"> & ForwardedExpoProps & {
|
|
|
84
84
|
objectPosition?: ImageObjectPosition;
|
|
85
85
|
onLoad?: (event: ImageLoadEvent) => void;
|
|
86
86
|
onError?: (event: ImageErrorEvent) => void;
|
|
87
|
+
} & ImageWebProps;
|
|
88
|
+
/**
|
|
89
|
+
* Web-only `<img>` attributes, written on the real `<img>` (never its wrapper)
|
|
90
|
+
* and in the server HTML, so the browser's preload scanner sees them before
|
|
91
|
+
* hydration. Native drops them without a warning: expo-image picks from a
|
|
92
|
+
* `source` list by its own measured size.
|
|
93
|
+
*
|
|
94
|
+
* The intrinsic size is the SOURCE's: a source object's `width` / `height`
|
|
95
|
+
* (`src={{ uri, width: 1600, height: 900 }}`, or numeric `width` / `height`
|
|
96
|
+
* props, which the unified API turns into one) become the `<img>`'s `width` /
|
|
97
|
+
* `height` attributes, so the browser knows the picture's aspect ratio before
|
|
98
|
+
* a byte arrives.
|
|
99
|
+
*/
|
|
100
|
+
export type ImageWebProps = {
|
|
101
|
+
/** The `<img srcset>` candidates (`"a.avif 256w, b.avif 512w"`), web only. */
|
|
102
|
+
srcSet?: string;
|
|
103
|
+
/** The `<img sizes>` the browser picks a `srcSet` candidate by, web only. */
|
|
104
|
+
sizes?: string;
|
|
105
|
+
/** The `<img decoding>` hint: `"async"` off the main thread, `"sync"` for the one hero. Web only. */
|
|
106
|
+
decoding?: "async" | "sync" | "auto";
|
|
107
|
+
/**
|
|
108
|
+
* The `<img fetchpriority>`, web only. Wins over `priority` there (which maps
|
|
109
|
+
* `"high"` / `"low"` to it too).
|
|
110
|
+
*/
|
|
111
|
+
fetchPriority?: "high" | "low" | "auto";
|
|
112
|
+
/**
|
|
113
|
+
* The `<img loading>`, web only. Default `"lazy"` (the browser fetches an
|
|
114
|
+
* image as it nears the viewport); `"eager"` for the one above-the-fold
|
|
115
|
+
* (LCP) image, with `fetchPriority="high"`.
|
|
116
|
+
*/
|
|
117
|
+
loading?: "lazy" | "eager";
|
|
118
|
+
/**
|
|
119
|
+
* Format alternatives, web only: given (non-empty), the `<img>` is wrapped
|
|
120
|
+
* in a `<picture>` with one `<source>` per entry, in order, before it. The
|
|
121
|
+
* browser takes the first source whose `type` it decodes (and whose `media`
|
|
122
|
+
* matches); none does → the `<img>`'s own `src` / `srcSet`. So
|
|
123
|
+
* `sources={[{ type: "image/avif", srcSet: avif, sizes }]}` with a WebP
|
|
124
|
+
* `src` / `srcSet` downloads only the AVIF where it is supported and only
|
|
125
|
+
* the WebP elsewhere. The `<picture>` is `display: contents` (no box of its
|
|
126
|
+
* own), and the `<img>` stays the element that loads, errors and fills the
|
|
127
|
+
* box. Native ignores them: expo-image picks its own format.
|
|
128
|
+
*/
|
|
129
|
+
sources?: readonly ImageWebSource[];
|
|
130
|
+
};
|
|
131
|
+
/** One `<picture><source>` of {@link ImageWebProps.sources}, web only. */
|
|
132
|
+
export type ImageWebSource = {
|
|
133
|
+
/** The `<source srcset>` candidates (`"a.avif 256w, b.avif 512w"`, or one URL). */
|
|
134
|
+
srcSet: string;
|
|
135
|
+
/** The MIME type (`"image/avif"`): a browser that can't decode it skips the source. */
|
|
136
|
+
type: string;
|
|
137
|
+
/** The `<source sizes>`; omitted, the browser assumes `100vw`. */
|
|
138
|
+
sizes?: string;
|
|
139
|
+
/** The `<source media>` query the source applies under. */
|
|
140
|
+
media?: string;
|
|
87
141
|
};
|
|
88
142
|
export type { ImageErrorEventData };
|
|
89
143
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/Image/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,IAAI,SAAS,EAClB,UAAU,IAAI,cAAc,EAC5B,oBAAoB,EACpB,mBAAm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;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,SAAS,cAAc,EAAE,CAAC;CACrC,CAAC;AAEF,0EAA0E;AAC1E,MAAM,MAAM,cAAc,GAAG;IAC3B,mFAAmF;IACnF,MAAM,EAAE,MAAM,CAAC;IACf,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAEpC;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,OAAO,SAAS,EACd,UAAU,GACV,kBAAkB,GAClB,gBAAgB,GAChB,mBAAmB,GACnB,uBAAuB,GACvB,WAAW,CACd,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,yBAAyB,CACrD,OAAO,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAC1D,GACC,YAAY,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type TextInputProps as RNTextInputProps, TextInput } from "react-native";
|
|
3
|
-
import { type GetProps } from "@knitui/core";
|
|
3
|
+
import { type GetProps, type TamaguiElement } from "@knitui/core";
|
|
4
4
|
import type { InputNativeProps } from "./InputNativeProps";
|
|
5
5
|
import { InputChrome } from "./shared";
|
|
6
6
|
import type { InputSharedProps } from "./types";
|
|
7
|
-
declare const InputHostStyle: React.FunctionComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & RNTextInputProps
|
|
7
|
+
declare const InputHostStyle: React.FunctionComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & RNTextInputProps & React.RefAttributes<TamaguiElement>, "size"> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").TextStylePropsBase, "size">> & import("@tamagui/web").WithFlatVariantValues<{
|
|
8
8
|
size?: import("..").CssString | import("@tamagui/web").FontSize | undefined;
|
|
9
|
-
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>>, "theme" | "debug" | "children" | "value" | "render" | "textAlign" | "disabled" | "pointerEvents" | "
|
|
10
|
-
ref?: React.Ref<
|
|
11
|
-
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer,
|
|
9
|
+
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>>, "theme" | "debug" | "children" | "ref" | "value" | "render" | "textAlign" | "disabled" | "pointerEvents" | "container" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "className" | "themeShallow" | "id" | "group" | "untilMeasured" | "name" | "tabIndex" | "role" | "disableOptimization" | "disableNativeStyle" | "forceStyle" | "disableClassName" | "hitSlop" | "animatedBy" | "textAlignVertical" | "numberOfLines" | "style" | "onPress" | "onPressIn" | "onPressOut" | "onMouseEnter" | "onMouseLeave" | "onFocus" | "onBlur" | "onClick" | "onKeyDown" | "onKeyUp" | "onChange" | "onScroll" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onPointerCancel" | "onStartShouldSetResponder" | "onLayout" | "focusable" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlurCapture" | "onFocusCapture" | "onKeyDownCapture" | "onKeyUpCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "onAccessibilityAction" | "onAccessibilityTap" | "onMagicTap" | "onAccessibilityEscape" | "defaultValue" | "autoComplete" | "maxLength" | "key" | "lineBreakStrategyIOS" | "selectionColor" | "textBreakStrategy" | "allowFontScaling" | "maxFontSizeMultiplier" | "readOnly" | "enterKeyHint" | "inputMode" | "multiline" | "onChangeText" | "onSubmitEditing" | "onSelectionChange" | "onEndEditing" | "onContentSizeChange" | "onKeyPress" | "placeholderTextColor" | "cursorColor" | "selectionHandleColor" | "autoCorrect" | "autoCapitalize" | "spellCheck" | "autoFocus" | "placeholder" | "rows" | "selection" | "textContentType" | "returnKeyType" | "submitBehavior" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "selectTextOnFocus" | "secureTextEntry" | "keyboardType" | "keyboardAppearance" | "clearButtonMode" | "clearTextOnFocus" | "enablesReturnKeyAutomatically" | "dataDetectorTypes" | "scrollEnabled" | "passwordRules" | "rejectResponderTermination" | "lineBreakModeIOS" | "smartInsertDelete" | "inputAccessoryViewID" | "inputAccessoryViewButtonLabel" | "disableKeyboardShortcuts" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "returnKeyLabel" | "showSoftInputOnFocus" | "underlineColorAndroid" | "experimental_acceptDragAndDropTypes" | "editable" | "forwardedRef"> & {
|
|
10
|
+
ref?: React.Ref<(HTMLElement & import("@tamagui/web").TamaguiElementMethods) | import("@tamagui/react-native-types").ViewInstance | React.Component<RNTextInputProps & React.RefAttributes<TamaguiElement>, any, any>> | undefined;
|
|
11
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, (HTMLElement & import("@tamagui/web").TamaguiElementMethods) | import("@tamagui/react-native-types").ViewInstance | React.Component<RNTextInputProps & React.RefAttributes<TamaguiElement>, any, any>, import("@tamagui/web").TamaguiComponentPropsBaseBase & RNTextInputProps & React.RefAttributes<TamaguiElement>, import("@tamagui/web").TextStylePropsBase, {
|
|
12
12
|
size?: import("..").CssString | import("@tamagui/web").FontSize | undefined;
|
|
13
13
|
}, {
|
|
14
14
|
readonly isInput: true;
|
|
15
15
|
}> & Omit<{
|
|
16
16
|
readonly isInput: true;
|
|
17
17
|
}, "staticConfig"> & {
|
|
18
|
-
__tama: [import("@tamagui/web").TamaDefer,
|
|
18
|
+
__tama: [import("@tamagui/web").TamaDefer, (HTMLElement & import("@tamagui/web").TamaguiElementMethods) | import("@tamagui/react-native-types").ViewInstance | React.Component<RNTextInputProps & React.RefAttributes<TamaguiElement>, any, any>, import("@tamagui/web").TamaguiComponentPropsBaseBase & RNTextInputProps & React.RefAttributes<TamaguiElement>, import("@tamagui/web").TextStylePropsBase, {
|
|
19
19
|
size?: import("..").CssString | import("@tamagui/web").FontSize | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
readonly isInput: true;
|
|
@@ -36,7 +36,7 @@ type NativeInputOwnProps = InputSharedProps & Omit<InputNativeProps, Overlapping
|
|
|
36
36
|
};
|
|
37
37
|
/** The host frame's style props (padding, text styles, input colours) stay public. */
|
|
38
38
|
type NativeInputProps = Omit<GetProps<typeof InputHostStyle>, keyof NativeInputOwnProps> & NativeInputOwnProps;
|
|
39
|
-
export declare const Input: React.FunctionComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/web").TamaguiComponentPropsBaseBase & RNTextInputProps
|
|
39
|
+
export declare const Input: React.FunctionComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/web").TamaguiComponentPropsBaseBase & RNTextInputProps & React.RefAttributes<TamaguiElement>, import("@tamagui/web").TextStylePropsBase, {
|
|
40
40
|
size?: import("..").CssString | import("@tamagui/web").FontSize | undefined;
|
|
41
41
|
}>, "color" | "fontSize" | "fontWeight" | "letterSpacing" | "children" | "value" | "type" | "render" | "textAlign" | "textTransform" | "disabled" | "verticalAlign" | "fontFamily" | "fontStyle" | "id" | "name" | "textAlignVertical" | "numberOfLines" | "multiple" | "onPress" | "onFocus" | "onBlur" | "onKeyDown" | "onChange" | "onInput" | "onScroll" | "pattern" | "max" | "min" | "defaultValue" | "autoComplete" | "maxLength" | "minLength" | "autosize" | "error" | "styles" | "lineBreakStrategyIOS" | "textBreakStrategy" | "allowFontScaling" | "maxFontSizeMultiplier" | "readOnly" | "step" | "enterKeyHint" | "inputMode" | "rootRef" | "multiline" | "required" | "wrapperProps" | "onChangeText" | "onSubmitEditing" | "onSelectionChange" | "onEndEditing" | "onContentSizeChange" | "onKeyPress" | "autoCorrect" | "autoCapitalize" | keyof import("./types").__InputProps | keyof import("./types").InputColorStyleProps | "withAria" | "spellCheck" | "autoFocus" | "placeholder" | "rows" | "minRows" | "maxRows" | "selection" | "textContentType" | "component" | "returnKeyType" | "submitBehavior" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "selectTextOnFocus" | "secureTextEntry" | "keyboardType" | "autoFocusNative" | "keyboardAppearance" | "clearButtonMode" | "clearTextOnFocus" | "enablesReturnKeyAutomatically" | "dataDetectorTypes" | "scrollEnabled" | "passwordRules" | "rejectResponderTermination" | "lineBreakModeIOS" | "smartInsertDelete" | "inputAccessoryViewID" | "inputAccessoryViewButtonLabel" | "disableKeyboardShortcuts" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "returnKeyLabel" | "showSoftInputOnFocus" | "dirname"> & import("./types").__InputProps & {
|
|
42
42
|
color?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"color"> | undefined>;
|
|
@@ -97,13 +97,13 @@ export declare const Input: React.FunctionComponent<Omit<import("@tamagui/web").
|
|
|
97
97
|
onPress?: RNTextInputProps["onPress"];
|
|
98
98
|
children?: React.ReactNode;
|
|
99
99
|
} & {
|
|
100
|
-
ref?: React.Ref<
|
|
101
|
-
}> & import("@tamagui/web").StaticComponentObject<NativeInputProps,
|
|
102
|
-
__tama: [NativeInputProps,
|
|
100
|
+
ref?: React.Ref<TamaguiElement> | undefined;
|
|
101
|
+
}> & import("@tamagui/web").StaticComponentObject<NativeInputProps, TamaguiElement, NativeInputProps, {}, {}, {}> & Omit<{}, "staticConfig"> & {
|
|
102
|
+
__tama: [NativeInputProps, TamaguiElement, NativeInputProps, {}, {}, {}];
|
|
103
103
|
} & {
|
|
104
|
-
Wrapper: import("@knitui/core").StyleableComponent<import("./shared").InputWrapperProps,
|
|
104
|
+
Wrapper: import("@knitui/core").StyleableComponent<import("./shared").InputWrapperProps, TamaguiElement>;
|
|
105
105
|
Chrome: typeof InputChrome;
|
|
106
|
-
Label: import("@knitui/core").StyleableComponent<import("./shared").InputLabelProps,
|
|
106
|
+
Label: import("@knitui/core").StyleableComponent<import("./shared").InputLabelProps, TamaguiElement>;
|
|
107
107
|
Error: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiTextNonStyleProps, "size" | "inherit" | "lineClamp" | "inline" | "span" | "truncate"> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").TextStylePropsBase, "size" | "inherit" | "lineClamp" | "inline" | "span" | "truncate">> & import("@tamagui/web").WithFlatVariantValues<{
|
|
108
108
|
size?: import("..").CssString | import("@tamagui/web").FontSize | undefined;
|
|
109
109
|
inherit?: boolean | undefined;
|
|
@@ -186,9 +186,9 @@ export declare const Input: React.FunctionComponent<Omit<import("@tamagui/web").
|
|
|
186
186
|
}, import("@tamagui/web").StaticConfigPublic];
|
|
187
187
|
};
|
|
188
188
|
ClearButton: React.FunctionComponent<import("..").CloseButtonProps & {
|
|
189
|
-
ref?: React.Ref<
|
|
190
|
-
}> & import("@tamagui/web").StaticComponentObject<import("..").CloseButtonProps,
|
|
191
|
-
__tama: [import("..").CloseButtonProps,
|
|
189
|
+
ref?: React.Ref<TamaguiElement> | undefined;
|
|
190
|
+
}> & import("@tamagui/web").StaticComponentObject<import("..").CloseButtonProps, TamaguiElement, import("..").CloseButtonProps, {}, {}, {}> & Omit<{}, "staticConfig"> & {
|
|
191
|
+
__tama: [import("..").CloseButtonProps, TamaguiElement, import("..").CloseButtonProps, {}, {}, {}];
|
|
192
192
|
} & {
|
|
193
193
|
Frame: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "size" | "radius" | "variant" | "disabled" | "shadow"> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, "size" | "radius" | "variant" | "disabled" | "shadow">> & import("@tamagui/web").WithFlatVariantValues<{
|
|
194
194
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | (number | import("..").CssString) | undefined;
|
|
@@ -197,15 +197,15 @@ export declare const Input: React.FunctionComponent<Omit<import("@tamagui/web").
|
|
|
197
197
|
disabled?: boolean | undefined;
|
|
198
198
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
199
199
|
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, "theme" | "debug" | "children" | "render" | "container" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "className" | "themeShallow" | "id" | "group" | "untilMeasured" | "name" | "tabIndex" | "role" | "disableOptimization" | "disableNativeStyle" | "forceStyle" | "disableClassName" | "hitSlop" | "animatedBy" | "style" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onFocus" | "onBlur" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onPointerCancel" | "onStartShouldSetResponder" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "onLayout" | "rel" | "download" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlurCapture" | "onFocusCapture" | "onKeyDownCapture" | "onKeyUpCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder" | "onAccessibilityAction" | "onAccessibilityTap" | "onMagicTap" | "onAccessibilityEscape"> & {
|
|
200
|
-
ref?: React.Ref<
|
|
201
|
-
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer,
|
|
200
|
+
ref?: React.Ref<TamaguiElement> | undefined;
|
|
201
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
202
202
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | (number | import("..").CssString) | undefined;
|
|
203
203
|
radius?: import("..").RadiusValue | undefined;
|
|
204
204
|
variant?: import("..").ActionIconVariant | undefined;
|
|
205
205
|
disabled?: boolean | undefined;
|
|
206
206
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
207
207
|
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
208
|
-
__tama: [import("@tamagui/web").TamaDefer,
|
|
208
|
+
__tama: [import("@tamagui/web").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
209
209
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | (number | import("..").CssString) | undefined;
|
|
210
210
|
radius?: import("..").RadiusValue | undefined;
|
|
211
211
|
variant?: import("..").ActionIconVariant | undefined;
|
|
@@ -217,12 +217,12 @@ export declare const Input: React.FunctionComponent<Omit<import("@tamagui/web").
|
|
|
217
217
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
218
218
|
iconSize?: import("..").CssString | import("@tamagui/web").FontSize | undefined;
|
|
219
219
|
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, keyof import("@tamagui/core").RNTamaguiViewNonStyleProps> & {
|
|
220
|
-
ref?: React.Ref<
|
|
221
|
-
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer,
|
|
220
|
+
ref?: React.Ref<TamaguiElement> | undefined;
|
|
221
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
222
222
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
223
223
|
iconSize?: import("..").CssString | import("@tamagui/web").FontSize | undefined;
|
|
224
224
|
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
225
|
-
__tama: [import("@tamagui/web").TamaDefer,
|
|
225
|
+
__tama: [import("@tamagui/web").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
226
226
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
227
227
|
iconSize?: import("..").CssString | import("@tamagui/web").FontSize | undefined;
|
|
228
228
|
}, import("@tamagui/web").StaticConfigPublic];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.native.d.ts","sourceRoot":"","sources":["../../../src/Input/Input.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,cAAc,IAAI,gBAAgB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAElF,OAAO,EAEL,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"Input.native.d.ts","sourceRoot":"","sources":["../../../src/Input/Input.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,cAAc,IAAI,gBAAgB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAElF,OAAO,EAEL,KAAK,QAAQ,EAIb,KAAK,cAAc,EAGpB,MAAM,cAAc,CAAC;AAKtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAML,WAAW,EASZ,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAEV,gBAAgB,EAGjB,MAAM,SAAS,CAAC;AAajB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;CAA8D,CAAC;AAwBnF,KAAK,sBAAsB,GAAG,aAAa,GAAG,gBAAgB,GAAG,YAAY,CAAC;AAC9E,KAAK,mBAAmB,GAAG,gBAAgB,GACzC,IAAI,CAAC,gBAAgB,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AmiB5B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,gBAAgB,CAAC;AAC1C,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC"}
|
|
@@ -15,7 +15,7 @@ import { type GetProps } from "@knitui/core";
|
|
|
15
15
|
* The web build is a plain pass-through `Box` — browsers reflow for their own
|
|
16
16
|
* on-screen keyboard, so the native-only props are accepted and ignored there.
|
|
17
17
|
*/
|
|
18
|
-
declare const Frame: React.FunctionComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").KeyboardAvoidingViewProps, never> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, never>> & import("@tamagui/web").WithFlatVariantValues<{}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, "theme" | "debug" | "children" | "render" | "disabled" | "pointerEvents" | "container" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "className" | "themeShallow" | "id" | "group" | "untilMeasured" | "name" | "tabIndex" | "role" | "disableOptimization" | "disableNativeStyle" | "forceStyle" | "disableClassName" | "hitSlop" | "animatedBy" | "style" | "onFocus" | "onBlur" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onPointerCancel" | "onStartShouldSetResponder" | "onLayout" | "focusable" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "onTouchCancel" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchStart" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "
|
|
18
|
+
declare const Frame: React.FunctionComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").KeyboardAvoidingViewProps, never> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, never>> & import("@tamagui/web").WithFlatVariantValues<{}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, "theme" | "debug" | "children" | "render" | "disabled" | "pointerEvents" | "container" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "className" | "themeShallow" | "id" | "group" | "untilMeasured" | "name" | "tabIndex" | "role" | "disableOptimization" | "disableNativeStyle" | "forceStyle" | "disableClassName" | "hitSlop" | "animatedBy" | "style" | "onMouseEnter" | "onMouseLeave" | "onFocus" | "onBlur" | "onClick" | "onKeyDown" | "onKeyUp" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onPointerCancel" | "onStartShouldSetResponder" | "onLayout" | "focusable" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlurCapture" | "onFocusCapture" | "onKeyDownCapture" | "onKeyUpCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder" | "onAccessibilityAction" | "onAccessibilityTap" | "onMagicTap" | "onAccessibilityEscape" | "enabled" | "behavior" | "keyboardVerticalOffset" | "contentContainerStyle"> & {
|
|
19
19
|
ref?: React.Ref<RNKeyboardAvoidingView> | undefined;
|
|
20
20
|
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, RNKeyboardAvoidingView, import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").KeyboardAvoidingViewProps, import("@tamagui/web").StackStyleBase, {}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
21
21
|
__tama: [import("@tamagui/web").TamaDefer, RNKeyboardAvoidingView, import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").KeyboardAvoidingViewProps, import("@tamagui/web").StackStyleBase, {}, import("@tamagui/web").StaticConfigPublic];
|
|
@@ -27,7 +27,7 @@ export type KeyboardAvoidingViewProps = GetProps<typeof Frame> & {
|
|
|
27
27
|
*/
|
|
28
28
|
automaticOffset?: boolean;
|
|
29
29
|
};
|
|
30
|
-
export declare const KeyboardAvoidingView: React.ForwardRefExoticComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").KeyboardAvoidingViewProps, never> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, never>> & import("@tamagui/web").WithFlatVariantValues<{}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, "theme" | "debug" | "children" | "render" | "disabled" | "pointerEvents" | "container" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "className" | "themeShallow" | "id" | "group" | "untilMeasured" | "name" | "tabIndex" | "role" | "disableOptimization" | "disableNativeStyle" | "forceStyle" | "disableClassName" | "hitSlop" | "animatedBy" | "style" | "onFocus" | "onBlur" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onPointerCancel" | "onStartShouldSetResponder" | "onLayout" | "focusable" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "onTouchCancel" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchStart" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "
|
|
30
|
+
export declare const KeyboardAvoidingView: React.ForwardRefExoticComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").KeyboardAvoidingViewProps, never> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, never>> & import("@tamagui/web").WithFlatVariantValues<{}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, "theme" | "debug" | "children" | "render" | "disabled" | "pointerEvents" | "container" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "className" | "themeShallow" | "id" | "group" | "untilMeasured" | "name" | "tabIndex" | "role" | "disableOptimization" | "disableNativeStyle" | "forceStyle" | "disableClassName" | "hitSlop" | "animatedBy" | "style" | "onMouseEnter" | "onMouseLeave" | "onFocus" | "onBlur" | "onClick" | "onKeyDown" | "onKeyUp" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onPointerCancel" | "onStartShouldSetResponder" | "onLayout" | "focusable" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlurCapture" | "onFocusCapture" | "onKeyDownCapture" | "onKeyUpCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder" | "onAccessibilityAction" | "onAccessibilityTap" | "onMagicTap" | "onAccessibilityEscape" | "enabled" | "behavior" | "keyboardVerticalOffset" | "contentContainerStyle"> & {
|
|
31
31
|
/**
|
|
32
32
|
* Accepted for cross-platform API parity (it was a `react-native-keyboard-controller`
|
|
33
33
|
* prop). RN's built-in `KeyboardAvoidingView` has no equivalent, so it's ignored.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { type ScrollViewInstance } from "react-native";
|
|
3
3
|
import { type GetProps } from "@knitui/core";
|
|
4
4
|
/**
|
|
5
5
|
* Native build of the `KeyboardAwareScrollView` form primitive.
|
|
@@ -22,10 +22,16 @@ import { type GetProps } from "@knitui/core";
|
|
|
22
22
|
* focused input into view on Android — the keyboard-height padding lets the user
|
|
23
23
|
* scroll to it. The web build is a plain scrollable `Box`.
|
|
24
24
|
*/
|
|
25
|
-
declare const Frame: React.FunctionComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").ScrollViewProps,
|
|
26
|
-
ref?: React.Ref<
|
|
27
|
-
}> & import("@tamagui/web").
|
|
28
|
-
|
|
25
|
+
declare const Frame: React.FunctionComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & Omit<import("react-native").ScrollViewProps, "ref"> & {
|
|
26
|
+
ref?: React.Ref<ScrollViewInstance> | undefined;
|
|
27
|
+
}, never> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, never>> & import("@tamagui/web").WithFlatVariantValues<{}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, "theme" | "debug" | "children" | "ref" | "render" | "disabled" | "pointerEvents" | "container" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "className" | "themeShallow" | "id" | "group" | "untilMeasured" | "name" | "tabIndex" | "role" | "disableOptimization" | "disableNativeStyle" | "forceStyle" | "disableClassName" | "hitSlop" | "animatedBy" | "style" | "horizontal" | "onMouseEnter" | "onMouseLeave" | "onFocus" | "onBlur" | "onClick" | "onKeyDown" | "onKeyUp" | "onScroll" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onPointerCancel" | "onStartShouldSetResponder" | "onLayout" | "focusable" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlurCapture" | "onFocusCapture" | "onKeyDownCapture" | "onKeyUpCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "onAccessibilityAction" | "onAccessibilityTap" | "onMagicTap" | "onAccessibilityEscape" | "keyboardShouldPersistTaps" | "onContentSizeChange" | "contentContainerStyle" | "showsVerticalScrollIndicator" | "showsHorizontalScrollIndicator" | "maintainVisibleContentPosition" | "scrollEnabled" | "contentInset" | "contentOffset" | "zoomScale" | "automaticallyAdjustContentInsets" | "automaticallyAdjustKeyboardInsets" | "automaticallyAdjustsScrollIndicatorInsets" | "bounces" | "disableScrollViewPanResponder" | "bouncesZoom" | "alwaysBounceHorizontal" | "alwaysBounceVertical" | "centerContent" | "indicatorStyle" | "directionalLockEnabled" | "canCancelContentTouches" | "maximumZoomScale" | "minimumZoomScale" | "pinchGestureEnabled" | "scrollIndicatorInsets" | "scrollToOverflowEnabled" | "scrollsToTop" | "onScrollToTop" | "contentInsetAdjustmentBehavior" | "nestedScrollEnabled" | "endFillColor" | "scrollPerfTag" | "overScrollMode" | "persistentScrollbar" | "fadingEdgeLength" | "scrollsChildToFocus" | "disableIntervalMomentum" | "decelerationRate" | "experimental_endDraggingSensitivityMultiplier" | "invertStickyHeaders" | "keyboardDismissMode" | "onMomentumScrollBegin" | "onMomentumScrollEnd" | "onScrollBeginDrag" | "onScrollEndDrag" | "onKeyboardDidShow" | "onKeyboardDidHide" | "onKeyboardWillShow" | "onKeyboardWillHide" | "pagingEnabled" | "scrollEventThrottle" | "stickyHeaderHiddenOnScroll" | "stickyHeaderIndices" | "StickyHeaderComponent" | "snapToAlignment" | "snapToInterval" | "snapToOffsets" | "snapToStart" | "snapToEnd" | "refreshControl" | "innerViewRef" | "scrollViewRef"> & {
|
|
28
|
+
ref?: React.Ref<ScrollViewInstance> | undefined;
|
|
29
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, ScrollViewInstance, import("@tamagui/web").TamaguiComponentPropsBaseBase & Omit<import("react-native").ScrollViewProps, "ref"> & {
|
|
30
|
+
ref?: React.Ref<ScrollViewInstance> | undefined;
|
|
31
|
+
}, import("@tamagui/web").StackStyleBase, {}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
32
|
+
__tama: [import("@tamagui/web").TamaDefer, ScrollViewInstance, import("@tamagui/web").TamaguiComponentPropsBaseBase & Omit<import("react-native").ScrollViewProps, "ref"> & {
|
|
33
|
+
ref?: React.Ref<ScrollViewInstance> | undefined;
|
|
34
|
+
}, import("@tamagui/web").StackStyleBase, {}, import("@tamagui/web").StaticConfigPublic];
|
|
29
35
|
};
|
|
30
36
|
export type KeyboardAwareScrollViewProps = GetProps<typeof Frame> & {
|
|
31
37
|
/**
|
|
@@ -40,18 +46,6 @@ export type KeyboardAwareScrollViewProps = GetProps<typeof Frame> & {
|
|
|
40
46
|
mode?: string;
|
|
41
47
|
ScrollViewComponent?: unknown;
|
|
42
48
|
};
|
|
43
|
-
export declare const KeyboardAwareScrollView: React.ForwardRefExoticComponent<Omit<
|
|
44
|
-
/**
|
|
45
|
-
* RNKC tuning props — accepted for cross-platform API parity but not honored by
|
|
46
|
-
* this implementation (see the note above). `extraKeyboardSpace` is the one
|
|
47
|
-
* exception: it's added to the Android bottom padding.
|
|
48
|
-
*/
|
|
49
|
-
bottomOffset?: number;
|
|
50
|
-
extraKeyboardSpace?: number;
|
|
51
|
-
disableScrollOnKeyboardHide?: boolean;
|
|
52
|
-
enabled?: boolean;
|
|
53
|
-
mode?: string;
|
|
54
|
-
ScrollViewComponent?: unknown;
|
|
55
|
-
} & React.RefAttributes<ScrollView>>;
|
|
49
|
+
export declare const KeyboardAwareScrollView: React.ForwardRefExoticComponent<Omit<KeyboardAwareScrollViewProps, "ref"> & React.RefAttributes<ScrollViewInstance>>;
|
|
56
50
|
export {};
|
|
57
51
|
//# sourceMappingURL=KeyboardAwareScrollView.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardAwareScrollView.native.d.ts","sourceRoot":"","sources":["../../../src/KeyboardAwareScrollView/KeyboardAwareScrollView.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"KeyboardAwareScrollView.native.d.ts","sourceRoot":"","sources":["../../../src/KeyboardAwareScrollView/KeyboardAwareScrollView.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAwB,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAE7E,OAAO,EAAE,KAAK,QAAQ,EAAU,MAAM,cAAc,CAAC;AAGrD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,KAAK;;;;;;;;;;CAGT,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,GAAG;IAClE;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,uBAAuB,sHAiClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DragDismissHost.d.ts","sourceRoot":"","sources":["../../../../src/Modal/drag/DragDismissHost.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,QAA8B,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"DragDismissHost.d.ts","sourceRoot":"","sources":["../../../../src/Modal/drag/DragDismissHost.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,QAA8B,MAAM,yBAAyB,CAAC;AAGrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,4FAkB3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DragDismissOverlay.d.ts","sourceRoot":"","sources":["../../../../src/Modal/drag/DragDismissOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAUvD,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,MAAM,EACN,UAAc,EACd,OAAO,EACP,YAAY,GACb,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"DragDismissOverlay.d.ts","sourceRoot":"","sources":["../../../../src/Modal/drag/DragDismissOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAUvD,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,MAAM,EACN,UAAc,EACd,OAAO,EACP,YAAY,GACb,EAAE,uBAAuB,qBAezB"}
|
|
@@ -35,12 +35,12 @@ export interface DragDismissParams {
|
|
|
35
35
|
onDismiss: () => void;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
* A single-axis drag-to-dismiss `
|
|
38
|
+
* A single-axis drag-to-dismiss pan (RNGH 3 `usePanGesture`), shared by `Modal` (axis `y`,
|
|
39
39
|
* sign `-1` — drag up) and `Drawer` (per-edge axis/sign). Tracks the finger toward the
|
|
40
40
|
* dismiss edge into `offset` (rubber-banding the wrong way), and on release runs
|
|
41
41
|
* the pure {@link shouldDismiss} on the UI thread: dismiss → spring off-screen
|
|
42
42
|
* then `onDismiss`; otherwise spring back to rest. Works on web and native (RNGH
|
|
43
|
-
* `
|
|
43
|
+
* `usePanGesture` supports both). Returns the gesture for a `<GestureDetector>`.
|
|
44
44
|
*/
|
|
45
45
|
export declare function useDragDismiss(params: DragDismissParams): PanGesture;
|
|
46
46
|
//# sourceMappingURL=useDragDismiss.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDragDismiss.d.ts","sourceRoot":"","sources":["../../../../src/Modal/drag/useDragDismiss.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"useDragDismiss.d.ts","sourceRoot":"","sources":["../../../../src/Modal/drag/useDragDismiss.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,UAAU,EAGhB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,KAAK,WAAW,EAGhB,KAAK,gBAAgB,EACtB,MAAM,yBAAyB,CAAC;AAKjC;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,gBAKpC,CAAC;AASF,MAAM,MAAM,QAAQ,GAAG,GAAG,GAAG,GAAG,CAAC;AAEjC,MAAM,WAAW,iBAAiB;IAChC,kFAAkF;IAClF,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5B,iBAAiB;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,uEAAuE;IACvE,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACb,2EAA2E;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+EAA+E;IAC/E,OAAO,EAAE,OAAO,CAAC;IACjB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,0EAA0E;IAC1E,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,iBAAiB,GAAG,UAAU,CAmGpE"}
|
|
@@ -16,12 +16,12 @@ import { type GetProps } from "@knitui/core";
|
|
|
16
16
|
* `styled()` over the keyboard-avoiding view keeps the kit's token-aware style
|
|
17
17
|
* props (`paddingVertical="xl"`, `alignItems`, …) working.
|
|
18
18
|
*/
|
|
19
|
-
declare const Frame: React.FunctionComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").KeyboardAvoidingViewProps, never> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, never>> & import("@tamagui/web").WithFlatVariantValues<{}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, "theme" | "debug" | "children" | "render" | "disabled" | "pointerEvents" | "container" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "className" | "themeShallow" | "id" | "group" | "untilMeasured" | "name" | "tabIndex" | "role" | "disableOptimization" | "disableNativeStyle" | "forceStyle" | "disableClassName" | "hitSlop" | "animatedBy" | "style" | "onFocus" | "onBlur" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onPointerCancel" | "onStartShouldSetResponder" | "onLayout" | "focusable" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "onTouchCancel" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchStart" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "
|
|
19
|
+
declare const Frame: React.FunctionComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").KeyboardAvoidingViewProps, never> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, never>> & import("@tamagui/web").WithFlatVariantValues<{}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, "theme" | "debug" | "children" | "render" | "disabled" | "pointerEvents" | "container" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "className" | "themeShallow" | "id" | "group" | "untilMeasured" | "name" | "tabIndex" | "role" | "disableOptimization" | "disableNativeStyle" | "forceStyle" | "disableClassName" | "hitSlop" | "animatedBy" | "style" | "onMouseEnter" | "onMouseLeave" | "onFocus" | "onBlur" | "onClick" | "onKeyDown" | "onKeyUp" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onPointerCancel" | "onStartShouldSetResponder" | "onLayout" | "focusable" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlurCapture" | "onFocusCapture" | "onKeyDownCapture" | "onKeyUpCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder" | "onAccessibilityAction" | "onAccessibilityTap" | "onMagicTap" | "onAccessibilityEscape" | "enabled" | "behavior" | "keyboardVerticalOffset" | "contentContainerStyle"> & {
|
|
20
20
|
ref?: React.Ref<KeyboardAvoidingView> | undefined;
|
|
21
21
|
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, KeyboardAvoidingView, import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").KeyboardAvoidingViewProps, import("@tamagui/web").StackStyleBase, {}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
22
22
|
__tama: [import("@tamagui/web").TamaDefer, KeyboardAvoidingView, import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").KeyboardAvoidingViewProps, import("@tamagui/web").StackStyleBase, {}, import("@tamagui/web").StaticConfigPublic];
|
|
23
23
|
};
|
|
24
24
|
export type ModalBaseInnerProps = GetProps<typeof Frame>;
|
|
25
|
-
export declare const ModalBaseInner: React.ForwardRefExoticComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").KeyboardAvoidingViewProps, never> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, never>> & import("@tamagui/web").WithFlatVariantValues<{}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, "theme" | "debug" | "children" | "render" | "disabled" | "pointerEvents" | "container" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "className" | "themeShallow" | "id" | "group" | "untilMeasured" | "name" | "tabIndex" | "role" | "disableOptimization" | "disableNativeStyle" | "forceStyle" | "disableClassName" | "hitSlop" | "animatedBy" | "style" | "onFocus" | "onBlur" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onPointerCancel" | "onStartShouldSetResponder" | "onLayout" | "focusable" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "onTouchCancel" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchStart" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "
|
|
25
|
+
export declare const ModalBaseInner: React.ForwardRefExoticComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").KeyboardAvoidingViewProps, never> & Omit<import("@tamagui/web").WithThemeValues<Omit<import("@tamagui/web").StackStyleBase, never>> & import("@tamagui/web").WithFlatVariantValues<{}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>, "theme" | "debug" | "children" | "render" | "disabled" | "pointerEvents" | "container" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "className" | "themeShallow" | "id" | "group" | "untilMeasured" | "name" | "tabIndex" | "role" | "disableOptimization" | "disableNativeStyle" | "forceStyle" | "disableClassName" | "hitSlop" | "animatedBy" | "style" | "onMouseEnter" | "onMouseLeave" | "onFocus" | "onBlur" | "onClick" | "onKeyDown" | "onKeyUp" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onPointerCancel" | "onStartShouldSetResponder" | "onLayout" | "focusable" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlurCapture" | "onFocusCapture" | "onKeyDownCapture" | "onKeyUpCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder" | "onAccessibilityAction" | "onAccessibilityTap" | "onMagicTap" | "onAccessibilityEscape" | "enabled" | "behavior" | "keyboardVerticalOffset" | "contentContainerStyle"> & React.RefAttributes<KeyboardAvoidingView>>;
|
|
26
26
|
export {};
|
|
27
27
|
//# sourceMappingURL=modal-base-inner.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-base-inner.native.d.ts","sourceRoot":"","sources":["../../../src/Modal/modal-base-inner.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,KAAK,QAAQ,EAAU,MAAM,cAAc,CAAC;AAErD;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,KAAK;;;;CAOT,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEzD,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"modal-base-inner.native.d.ts","sourceRoot":"","sources":["../../../src/Modal/modal-base-inner.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,KAAK,QAAQ,EAAU,MAAM,cAAc,CAAC;AAErD;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,KAAK;;;;CAOT,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEzD,eAAO,MAAM,cAAc,0tGAK1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pill.d.ts","sourceRoot":"","sources":["../../../src/Pill/Pill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,KAAK,QAAQ,EAId,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAC7B,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,
|
|
1
|
+
{"version":3,"file":"Pill.d.ts","sourceRoot":"","sources":["../../../src/Pill/Pill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,KAAK,QAAQ,EAId,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAC7B,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAsB,KAAK,aAAa,EAAe,MAAM,sBAAsB,CAAC;AAE3F,OAAO,EAIL,KAAK,OAAO,EACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIjE,KAAK,QAAQ,GAAG,OAAO,CAAC;AACxB,KAAK,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AA+BvD;;;;;GAKG;AACH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;CAyBb,CAAC;AAEH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBb,CAAC;AAWH,UAAU,qBAAqB;IAC7B,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,gBAAgB,6CAA0D,CAAC;AAEjF,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,QAAQ,CAAC,OAAO,GAAG,CAAC,EAAE,K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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKf,CAAC;AAEH,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,qBAAqB,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { type ViewInstance } from "react-native";
|
|
3
3
|
import type { OverlayHostProps } from "./types";
|
|
4
4
|
/** The full-screen host `@knitui/core`'s `<Provider>` mounts (via `PortalProvider`). */
|
|
5
5
|
export declare const ROOT_OVERLAY_HOST = "root";
|
|
@@ -42,5 +42,5 @@ export declare function useTopmostOverlayHost(): string;
|
|
|
42
42
|
* @internal The scoped host's measurable frame (or `null` under the root host),
|
|
43
43
|
* for the native floating engine's container-origin math.
|
|
44
44
|
*/
|
|
45
|
-
export declare function useOverlayHostFrame(): React.RefObject<
|
|
45
|
+
export declare function useOverlayHostFrame(): React.RefObject<ViewInstance | null> | null;
|
|
46
46
|
//# sourceMappingURL=OverlayHost.d.ts.map
|