@xaui/native 0.9.1-alpha.25 → 0.9.1-alpha.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-3LKGVKQY.cjs +145 -0
- package/dist/{chunk-GSEK6OCY.cjs → chunk-5OXZIZRZ.cjs} +7 -7
- package/dist/{chunk-YEW5LPWL.cjs → chunk-JCKVYYZO.cjs} +42 -4
- package/dist/{chunk-MRYLLKML.js → chunk-PQHC65AG.js} +15 -15
- package/dist/{chunk-ZDCGPK5Z.js → chunk-TR2TGPDQ.js} +1 -1
- package/dist/{chunk-2OY76YNB.js → chunk-V2FQN6ZK.js} +42 -4
- package/dist/chunk-WEMZ4VMC.js +145 -0
- package/dist/{chunk-EWBBDVTM.cjs → chunk-WVCAFORA.cjs} +15 -15
- package/dist/components/alert/index.cjs +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/button/index.cjs +3 -3
- package/dist/components/button/index.js +2 -2
- package/dist/components/chip/index.cjs +3 -3
- package/dist/components/chip/index.js +2 -2
- package/dist/components/input/index.cjs +2 -2
- package/dist/components/input/index.d.cts +3 -3
- package/dist/components/input/index.d.ts +3 -3
- package/dist/components/input/index.js +1 -1
- package/dist/components/input-group/index.cjs +26 -0
- package/dist/components/input-group/index.d.cts +270 -0
- package/dist/components/input-group/index.d.ts +270 -0
- package/dist/components/input-group/index.js +26 -0
- package/dist/components/text-area/index.cjs +3 -3
- package/dist/components/text-area/index.d.cts +1 -1
- package/dist/components/text-area/index.d.ts +1 -1
- package/dist/components/text-area/index.js +2 -2
- package/dist/index.cjs +27 -9
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +39 -21
- package/dist/{input.type-BpJeUIe8.d.cts → input.type-BUMDlzL9.d.cts} +18 -2
- package/dist/{input.type-DjyZ6P2C.d.ts → input.type-D2qgi03E.d.ts} +18 -2
- package/dist/system/index.cjs +2 -2
- package/dist/system/index.js +5 -5
- package/package.json +11 -1
- package/dist/{chunk-4J26FA6O.js → chunk-3WISQT22.js} +3 -3
- package/dist/{chunk-AV5LMFS3.cjs → chunk-I7G77Q65.cjs} +2 -2
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import * as react_native from 'react-native';
|
|
4
|
+
import { StyleProp, ViewStyle, ViewProps, View, TextInput } from 'react-native';
|
|
5
|
+
import { V as ViewStyleProps, T as TextStyleProps } from '../../style-props.type-CfnoGEP7.js';
|
|
6
|
+
import { b as IconProps } from '../../icon.type-Dq4_qePa.js';
|
|
7
|
+
import { I as InputFieldProps } from '../../input.type-D2qgi03E.js';
|
|
8
|
+
import '../../theme.type-C2gNHpEx.js';
|
|
9
|
+
|
|
10
|
+
type InputGroupOwnProps = {
|
|
11
|
+
style?: StyleProp<ViewStyle>;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* R14 — the wrapper `View`'s own props, plus every `ViewStyle` key it does not claim.
|
|
16
|
+
*
|
|
17
|
+
* **There is no `variant`, no `size`, no `color` and no `isDisabled` here.** They are the
|
|
18
|
+
* `Input`'s, and an `InputGroup` is one row inside it: a second `size` on this root would
|
|
19
|
+
* be a second answer to a question the field has already answered.
|
|
20
|
+
*/
|
|
21
|
+
type InputGroupProps = InputGroupOwnProps & Omit<ViewProps, keyof InputGroupOwnProps> & Omit<ViewStyleProps, keyof InputGroupOwnProps | keyof ViewProps> & {
|
|
22
|
+
/** R12 — merge into the single child instead of rendering a `View`. */
|
|
23
|
+
asChild?: boolean;
|
|
24
|
+
};
|
|
25
|
+
type InputGroupDecoratorOwnProps = {
|
|
26
|
+
/**
|
|
27
|
+
* The decorator stops taking touches and disappears from the accessibility tree, so a
|
|
28
|
+
* tap on the glyph focuses the field under it and a screen reader announces the field
|
|
29
|
+
* rather than a mark it cannot act on.
|
|
30
|
+
*
|
|
31
|
+
* Leave it off whenever the decorator holds something to press — a reveal toggle, a
|
|
32
|
+
* clear button — which is the whole reason it is a prop and not the default.
|
|
33
|
+
*
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
isDecorative?: boolean;
|
|
37
|
+
style?: StyleProp<ViewStyle>;
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
};
|
|
40
|
+
type InputGroupDecoratorProps = InputGroupDecoratorOwnProps & Omit<ViewProps, keyof InputGroupDecoratorOwnProps> & Omit<ViewStyleProps, keyof InputGroupDecoratorOwnProps | keyof ViewProps>;
|
|
41
|
+
type InputGroupPrefixProps = InputGroupDecoratorProps;
|
|
42
|
+
type InputGroupSuffixProps = InputGroupDecoratorProps;
|
|
43
|
+
/** Which edge a decorator is pinned to, and therefore which width it reports. */
|
|
44
|
+
type InputGroupSide = 'prefix' | 'suffix';
|
|
45
|
+
/**
|
|
46
|
+
* Everything `Input.Field` accepts. It **is** that field — the same `TextInput`, the same
|
|
47
|
+
* focus plumbing, the same styles — with the padding the two decorators measured.
|
|
48
|
+
*/
|
|
49
|
+
type InputGroupFieldProps = InputFieldProps;
|
|
50
|
+
/** Everything `Icon` accepts. `size` and `color` fall back to the field's own. */
|
|
51
|
+
type InputGroupIconProps = IconProps;
|
|
52
|
+
/**
|
|
53
|
+
* R5 — but the only thing here that is not already resolved on the `Input`'s context: two
|
|
54
|
+
* widths nobody can know before layout.
|
|
55
|
+
*
|
|
56
|
+
* A decorator is out of flow, so it cannot push the text aside the way a sibling in a row
|
|
57
|
+
* would; the field clears it by padding instead, and the padding is the decorator's own
|
|
58
|
+
* measured width. That is the same shape `TextArea` uses for `rows` — a raw number the
|
|
59
|
+
* slot turns into a style, outside the cache.
|
|
60
|
+
*/
|
|
61
|
+
type InputGroupContextValue = {
|
|
62
|
+
/** `0` while the decorator is absent, and until its first layout. */
|
|
63
|
+
prefixWidth: number;
|
|
64
|
+
suffixWidth: number;
|
|
65
|
+
setPrefixWidth: (width: number) => void;
|
|
66
|
+
setSuffixWidth: (width: number) => void;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* A glyph that takes the field's scale and the placeholder's colour without being told
|
|
71
|
+
* either:
|
|
72
|
+
*
|
|
73
|
+
* ```tsx
|
|
74
|
+
* <InputGroup.Prefix isDecorative>
|
|
75
|
+
* <InputGroup.Icon as={MailIcon} />
|
|
76
|
+
* </InputGroup.Prefix>
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* The size comes from the `Input`'s own `size` — one step above the field's type, as on
|
|
80
|
+
* the `Button` and the `Chip`, because a 16pt glyph beside 16pt of text reads as the
|
|
81
|
+
* smaller of the two. The colour is the theme's `fieldPlaceholder`: a mark in a field is
|
|
82
|
+
* decoration for the text, not text. An explicit `size` or `color` still wins, which is
|
|
83
|
+
* what `Icon` promises everywhere else in the library — and it is the answer for a tinted
|
|
84
|
+
* `primary` field, where the fill is the caller's colour and the placeholder grey is no
|
|
85
|
+
* longer readable over it.
|
|
86
|
+
*
|
|
87
|
+
* It is not one of HeroUI's three parts: theirs colour the glyph at the call site. This is
|
|
88
|
+
* the same slot `Button`, `Chip` and `Alert` all have, and it exists so that a form does
|
|
89
|
+
* not carry a hard-coded `#888` on every field.
|
|
90
|
+
*/
|
|
91
|
+
declare function InputGroupIcon({ size, color, ...rest }: InputGroupIconProps): react.JSX.Element;
|
|
92
|
+
declare namespace InputGroupIcon {
|
|
93
|
+
var displayName: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* A field with something beside it — a glyph, a unit, a reveal toggle.
|
|
98
|
+
*
|
|
99
|
+
* ```tsx
|
|
100
|
+
* <Input>
|
|
101
|
+
* <Input.Label>Mot de passe</Input.Label>
|
|
102
|
+
* <InputGroup>
|
|
103
|
+
* <InputGroup.Prefix isDecorative>
|
|
104
|
+
* <InputGroup.Icon as={LockIcon} />
|
|
105
|
+
* </InputGroup.Prefix>
|
|
106
|
+
* <InputGroup.Field secureTextEntry value={password} onChangeText={setPassword} />
|
|
107
|
+
* <InputGroup.Suffix>
|
|
108
|
+
* <Pressable onPress={toggle} hitSlop={20}>
|
|
109
|
+
* <InputGroup.Icon as={EyeIcon} />
|
|
110
|
+
* </Pressable>
|
|
111
|
+
* </InputGroup.Suffix>
|
|
112
|
+
* </InputGroup>
|
|
113
|
+
* <Input.Description>Douze caractères au moins.</Input.Description>
|
|
114
|
+
* </Input>
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
117
|
+
* **It goes inside an `Input`, and it replaces nothing but the field.** The column, the
|
|
118
|
+
* label, the hint, the error, the four variants, the `size`, the `radius`, the tint, the
|
|
119
|
+
* focus and `isInvalid` are all still the `Input`'s — this root is one row of that column,
|
|
120
|
+
* and it owns exactly one thing: how wide the two decorators turned out to be.
|
|
121
|
+
*
|
|
122
|
+
* That is why the box is still the `TextInput` itself. A wrapper carrying the border, the
|
|
123
|
+
* fill and the radius would be a second thing to keep in step with `Input`, and the day
|
|
124
|
+
* one of them gained a shadow the other would not have it. The decorators are laid **over**
|
|
125
|
+
* the field instead, out of flow, and the field clears them with padding.
|
|
126
|
+
*
|
|
127
|
+
* It works under `TextArea` too — the same context, the same field — though a decorator
|
|
128
|
+
* centred over six lines of text is rarely what a multiline field wants.
|
|
129
|
+
*/
|
|
130
|
+
declare const InputGroupRoot: react.ForwardRefExoticComponent<{
|
|
131
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
132
|
+
children?: react.ReactNode;
|
|
133
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
134
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
135
|
+
children?: react.ReactNode;
|
|
136
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction"> & {
|
|
137
|
+
asChild?: boolean;
|
|
138
|
+
} & react.RefAttributes<View>>;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The `TextInput` itself — `Input.Field` with the room the two decorators need.
|
|
142
|
+
*
|
|
143
|
+
* ```tsx
|
|
144
|
+
* <InputGroup.Field value={query} onChangeText={setQuery} placeholder="Rechercher…" />
|
|
145
|
+
* ```
|
|
146
|
+
*
|
|
147
|
+
* It renders the `Input`'s field rather than a second `TextInput`, so the focus plumbing,
|
|
148
|
+
* the placeholder colour, the label association, `isInvalid` and `isDisabled` are the ones
|
|
149
|
+
* already written, and every `TextInput` prop is written here for the same reason it is
|
|
150
|
+
* there.
|
|
151
|
+
*
|
|
152
|
+
* The padding is arithmetic rather than a token, the way `TextArea`'s height is: a
|
|
153
|
+
* decorator's width is not knowable before layout, so it measures itself and this turns
|
|
154
|
+
* the two numbers into `paddingStart` and `paddingEnd`. They land **after** the recipe's
|
|
155
|
+
* own `paddingHorizontal`, which is what makes them win, and before the caller's `style`,
|
|
156
|
+
* which still has the last word.
|
|
157
|
+
*/
|
|
158
|
+
declare const InputGroupField: react.ForwardRefExoticComponent<Omit<react_native.TextInputProps, "editable"> & Omit<TextStyleProps, keyof react_native.TextInputProps> & react.RefAttributes<TextInput>>;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* What sits before the text — a search glyph, a currency, a country code.
|
|
162
|
+
*
|
|
163
|
+
* ```tsx
|
|
164
|
+
* <InputGroup>
|
|
165
|
+
* <InputGroup.Prefix isDecorative>
|
|
166
|
+
* <InputGroup.Icon as={SearchIcon} />
|
|
167
|
+
* </InputGroup.Prefix>
|
|
168
|
+
* <InputGroup.Field placeholder="Rechercher…" />
|
|
169
|
+
* </InputGroup>
|
|
170
|
+
* ```
|
|
171
|
+
*
|
|
172
|
+
* It is pinned to the **leading** edge and inset by the field's own padding, so the glyph
|
|
173
|
+
* starts where the text would have. The field then clears it by the width it measured —
|
|
174
|
+
* which is what lets a `+33` prefix and a 16pt mark both sit right, without either one
|
|
175
|
+
* being told a number.
|
|
176
|
+
*
|
|
177
|
+
* Add `isDecorative` whenever it holds nothing to press. Leave it off for a control.
|
|
178
|
+
*/
|
|
179
|
+
declare const InputGroupPrefix: react.ForwardRefExoticComponent<{
|
|
180
|
+
isDecorative?: boolean;
|
|
181
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
182
|
+
children?: react.ReactNode;
|
|
183
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
184
|
+
isDecorative?: boolean;
|
|
185
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
186
|
+
children?: react.ReactNode;
|
|
187
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDecorative"> & react.RefAttributes<View>>;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* What sits after the text — a reveal toggle, a clear button, a unit, a counter.
|
|
191
|
+
*
|
|
192
|
+
* ```tsx
|
|
193
|
+
* <InputGroup>
|
|
194
|
+
* <InputGroup.Field secureTextEntry value={password} onChangeText={setPassword} />
|
|
195
|
+
* <InputGroup.Suffix>
|
|
196
|
+
* <Pressable onPress={toggle} hitSlop={20}>
|
|
197
|
+
* <InputGroup.Icon as={isVisible ? EyeOffIcon : EyeIcon} />
|
|
198
|
+
* </Pressable>
|
|
199
|
+
* </InputGroup.Suffix>
|
|
200
|
+
* </InputGroup>
|
|
201
|
+
* ```
|
|
202
|
+
*
|
|
203
|
+
* The trailing edge is where a suffix is most often a **control**, which is why
|
|
204
|
+
* `isDecorative` is off by default: a decorator that swallowed its own taps would be a
|
|
205
|
+
* reveal toggle you cannot press.
|
|
206
|
+
*
|
|
207
|
+
* The library ships no button for it. A suffix holds whatever you put in it, and
|
|
208
|
+
* `Pressable` with a `hitSlop` is the thing to put there — a 16pt glyph is not a touch
|
|
209
|
+
* target on its own.
|
|
210
|
+
*/
|
|
211
|
+
declare const InputGroupSuffix: react.ForwardRefExoticComponent<{
|
|
212
|
+
isDecorative?: boolean;
|
|
213
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
214
|
+
children?: react.ReactNode;
|
|
215
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
216
|
+
isDecorative?: boolean;
|
|
217
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
218
|
+
children?: react.ReactNode;
|
|
219
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDecorative"> & react.RefAttributes<View>>;
|
|
220
|
+
|
|
221
|
+
declare const useInputGroup: () => InputGroupContextValue;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* The room a decorator asks the field to leave it, from the width it measured.
|
|
225
|
+
*
|
|
226
|
+
* `start` and `end`, never `left` and `right` (R13): the prefix is the leading edge in
|
|
227
|
+
* both directions of writing, and RTL mirrors the logical property and only it.
|
|
228
|
+
*
|
|
229
|
+
* It returns `undefined` rather than an object of two `undefined`s when there is nothing
|
|
230
|
+
* to clear, so a group with no decorator adds no entry to the field's style array — and
|
|
231
|
+
* the `useMemo` around it keeps the same reference until a width actually changes.
|
|
232
|
+
*/
|
|
233
|
+
declare function decoratorPadding(prefixWidth: number, suffixWidth: number): ViewStyle | undefined;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* The four parts of a decorated field. The label, the hint and the error are **not** here:
|
|
237
|
+
* they are the `Input`'s, and an `InputGroup` lives inside one.
|
|
238
|
+
*/
|
|
239
|
+
declare const InputGroup: react.ForwardRefExoticComponent<{
|
|
240
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
241
|
+
children?: react.ReactNode;
|
|
242
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
243
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
244
|
+
children?: react.ReactNode;
|
|
245
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction"> & {
|
|
246
|
+
asChild?: boolean;
|
|
247
|
+
} & react.RefAttributes<react_native.View>> & {
|
|
248
|
+
Prefix: react.ForwardRefExoticComponent<{
|
|
249
|
+
isDecorative?: boolean;
|
|
250
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
251
|
+
children?: react.ReactNode;
|
|
252
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
253
|
+
isDecorative?: boolean;
|
|
254
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
255
|
+
children?: react.ReactNode;
|
|
256
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDecorative"> & react.RefAttributes<react_native.View>>;
|
|
257
|
+
Field: react.ForwardRefExoticComponent<Omit<react_native.TextInputProps, "editable"> & Omit<TextStyleProps, keyof react_native.TextInputProps> & react.RefAttributes<react_native.TextInput>>;
|
|
258
|
+
Suffix: react.ForwardRefExoticComponent<{
|
|
259
|
+
isDecorative?: boolean;
|
|
260
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
261
|
+
children?: react.ReactNode;
|
|
262
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
263
|
+
isDecorative?: boolean;
|
|
264
|
+
style?: react_native.StyleProp<react_native.ViewStyle>;
|
|
265
|
+
children?: react.ReactNode;
|
|
266
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDecorative"> & react.RefAttributes<react_native.View>>;
|
|
267
|
+
Icon: typeof InputGroupIcon;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
export { InputGroup, type InputGroupContextValue, InputGroupField, type InputGroupFieldProps, InputGroupIcon, type InputGroupIconProps, InputGroupPrefix, type InputGroupPrefixProps, type InputGroupProps, InputGroupRoot, type InputGroupSide, InputGroupSuffix, type InputGroupSuffixProps, decoratorPadding, useInputGroup };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
InputGroup,
|
|
3
|
+
InputGroupField,
|
|
4
|
+
InputGroupIcon,
|
|
5
|
+
InputGroupPrefix,
|
|
6
|
+
InputGroupRoot,
|
|
7
|
+
InputGroupSuffix,
|
|
8
|
+
decoratorPadding,
|
|
9
|
+
useInputGroup
|
|
10
|
+
} from "../../chunk-WEMZ4VMC.js";
|
|
11
|
+
import "../../chunk-ICR42HHG.js";
|
|
12
|
+
import "../../chunk-V2FQN6ZK.js";
|
|
13
|
+
import "../../chunk-3JATAB7S.js";
|
|
14
|
+
import "../../chunk-PMO62QK4.js";
|
|
15
|
+
import "../../chunk-A3EGFI6T.js";
|
|
16
|
+
import "../../chunk-GGW42MY4.js";
|
|
17
|
+
export {
|
|
18
|
+
InputGroup,
|
|
19
|
+
InputGroupField,
|
|
20
|
+
InputGroupIcon,
|
|
21
|
+
InputGroupPrefix,
|
|
22
|
+
InputGroupRoot,
|
|
23
|
+
InputGroupSuffix,
|
|
24
|
+
decoratorPadding,
|
|
25
|
+
useInputGroup
|
|
26
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
4
|
+
var _chunk5OXZIZRZcjs = require('../../chunk-5OXZIZRZ.cjs');
|
|
5
|
+
require('../../chunk-JCKVYYZO.cjs');
|
|
6
6
|
require('../../chunk-YXVKQMCK.cjs');
|
|
7
7
|
require('../../chunk-HUZ4AUM2.cjs');
|
|
8
8
|
require('../../chunk-57SJ4LJF.cjs');
|
|
@@ -10,4 +10,4 @@ require('../../chunk-MC7SY2QH.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.TextArea =
|
|
13
|
+
exports.TextArea = _chunk5OXZIZRZcjs.TextArea; exports.useTextArea = _chunk5OXZIZRZcjs.useTextArea;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { I as InputFieldProps, a as InputProps } from '../../input.type-
|
|
3
|
+
import { I as InputFieldProps, a as InputProps } from '../../input.type-BUMDlzL9.cjs';
|
|
4
4
|
import * as react_native from 'react-native';
|
|
5
5
|
import { T as TextStyleProps } from '../../style-props.type-CfnoGEP7.cjs';
|
|
6
6
|
import '../../theme.type-C2gNHpEx.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { I as InputFieldProps, a as InputProps } from '../../input.type-
|
|
3
|
+
import { I as InputFieldProps, a as InputProps } from '../../input.type-D2qgi03E.js';
|
|
4
4
|
import * as react_native from 'react-native';
|
|
5
5
|
import { T as TextStyleProps } from '../../style-props.type-CfnoGEP7.js';
|
|
6
6
|
import '../../theme.type-C2gNHpEx.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TextArea,
|
|
3
3
|
useTextArea
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-TR2TGPDQ.js";
|
|
5
|
+
import "../../chunk-V2FQN6ZK.js";
|
|
6
6
|
import "../../chunk-3JATAB7S.js";
|
|
7
7
|
import "../../chunk-PMO62QK4.js";
|
|
8
8
|
import "../../chunk-A3EGFI6T.js";
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
var _chunk5OXZIZRZcjs = require('./chunk-5OXZIZRZ.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
4
8
|
|
|
5
9
|
var _chunkY7U6ACMBcjs = require('./chunk-Y7U6ACMB.cjs');
|
|
6
10
|
|
|
@@ -36,7 +40,7 @@ var _chunkJ4JFIC4Wcjs = require('./chunk-J4JFIC4W.cjs');
|
|
|
36
40
|
|
|
37
41
|
|
|
38
42
|
|
|
39
|
-
var
|
|
43
|
+
var _chunkWVCAFORAcjs = require('./chunk-WVCAFORA.cjs');
|
|
40
44
|
|
|
41
45
|
|
|
42
46
|
|
|
@@ -48,7 +52,7 @@ var _chunk6FBGCF5Tcjs = require('./chunk-6FBGCF5T.cjs');
|
|
|
48
52
|
|
|
49
53
|
|
|
50
54
|
|
|
51
|
-
var
|
|
55
|
+
var _chunkI7G77Q65cjs = require('./chunk-I7G77Q65.cjs');
|
|
52
56
|
|
|
53
57
|
|
|
54
58
|
|
|
@@ -57,7 +61,6 @@ var _chunkJ2JJLKLGcjs = require('./chunk-J2JJLKLG.cjs');
|
|
|
57
61
|
|
|
58
62
|
|
|
59
63
|
|
|
60
|
-
var _chunkB4W2XNBPcjs = require('./chunk-B4W2XNBP.cjs');
|
|
61
64
|
|
|
62
65
|
|
|
63
66
|
|
|
@@ -76,38 +79,45 @@ var _chunkB4W2XNBPcjs = require('./chunk-B4W2XNBP.cjs');
|
|
|
76
79
|
|
|
77
80
|
|
|
78
81
|
|
|
82
|
+
var _chunkIG4Q3WQOcjs = require('./chunk-IG4Q3WQO.cjs');
|
|
79
83
|
|
|
80
84
|
|
|
81
85
|
|
|
82
86
|
|
|
83
|
-
var _chunkIG4Q3WQOcjs = require('./chunk-IG4Q3WQO.cjs');
|
|
84
87
|
|
|
85
88
|
|
|
86
89
|
|
|
87
90
|
|
|
88
91
|
|
|
92
|
+
var _chunk3LKGVKQYcjs = require('./chunk-3LKGVKQY.cjs');
|
|
89
93
|
|
|
90
94
|
|
|
91
95
|
|
|
92
96
|
|
|
97
|
+
var _chunkB4W2XNBPcjs = require('./chunk-B4W2XNBP.cjs');
|
|
98
|
+
|
|
93
99
|
|
|
94
100
|
|
|
95
|
-
var _chunkBULNTP5Ncjs = require('./chunk-BULNTP5N.cjs');
|
|
96
|
-
require('./chunk-EJQCQPET.cjs');
|
|
97
101
|
|
|
98
102
|
|
|
99
103
|
|
|
100
|
-
var _chunkGSEK6OCYcjs = require('./chunk-GSEK6OCY.cjs');
|
|
101
104
|
|
|
102
105
|
|
|
103
106
|
|
|
107
|
+
var _chunkJCKVYYZOcjs = require('./chunk-JCKVYYZO.cjs');
|
|
104
108
|
|
|
105
109
|
|
|
106
110
|
|
|
107
111
|
|
|
108
112
|
|
|
109
113
|
|
|
110
|
-
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
var _chunkBULNTP5Ncjs = require('./chunk-BULNTP5N.cjs');
|
|
120
|
+
require('./chunk-EJQCQPET.cjs');
|
|
111
121
|
|
|
112
122
|
|
|
113
123
|
|
|
@@ -241,4 +251,12 @@ function usePrevious(value) {
|
|
|
241
251
|
|
|
242
252
|
|
|
243
253
|
|
|
244
|
-
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
exports.Alert = _chunkJ4JFIC4Wcjs.Alert; exports.Button = _chunkWVCAFORAcjs.Button; exports.CARD_BACKGROUND = _chunk6FBGCF5Tcjs.CARD_BACKGROUND; exports.Card = _chunk6FBGCF5Tcjs.Card; exports.Chip = _chunkI7G77Q65cjs.Chip; exports.CloseButton = _chunkJ2JJLKLGcjs.CloseButton; exports.Column = _chunkIBEX4XGVcjs.Column; exports.FEEDBACK_OVERLAY = _chunkIG4Q3WQOcjs.FEEDBACK_OVERLAY; exports.Grid = _chunkIBEX4XGVcjs.Grid; exports.HIGHLIGHT_DURATION = _chunkIG4Q3WQOcjs.HIGHLIGHT_DURATION; exports.HIGHLIGHT_OPACITY = _chunkIG4Q3WQOcjs.HIGHLIGHT_OPACITY; exports.Icon = _chunkB4W2XNBPcjs.Icon; exports.IconContext = _chunkB4W2XNBPcjs.IconContext; exports.Input = _chunkJCKVYYZOcjs.Input; exports.InputDescription = _chunkJCKVYYZOcjs.InputDescription; exports.InputError = _chunkJCKVYYZOcjs.InputError; exports.InputField = _chunkJCKVYYZOcjs.InputField; exports.InputGroup = _chunk3LKGVKQYcjs.InputGroup; exports.InputGroupField = _chunk3LKGVKQYcjs.InputGroupField; exports.InputGroupIcon = _chunk3LKGVKQYcjs.InputGroupIcon; exports.InputGroupPrefix = _chunk3LKGVKQYcjs.InputGroupPrefix; exports.InputGroupRoot = _chunk3LKGVKQYcjs.InputGroupRoot; exports.InputGroupSuffix = _chunk3LKGVKQYcjs.InputGroupSuffix; exports.InputLabel = _chunkJCKVYYZOcjs.InputLabel; exports.InputOTP = _chunkBULNTP5Ncjs.InputOTP; exports.InputRoot = _chunkJCKVYYZOcjs.InputRoot; exports.OTP_ALPHANUMERIC = _chunkBULNTP5Ncjs.OTP_ALPHANUMERIC; exports.OTP_DIGITS = _chunkBULNTP5Ncjs.OTP_DIGITS; exports.OTP_LETTERS = _chunkBULNTP5Ncjs.OTP_LETTERS; exports.PRESS_DURATION = _chunkIG4Q3WQOcjs.PRESS_DURATION; exports.PRESS_SCALE = _chunkIG4Q3WQOcjs.PRESS_SCALE; exports.Portal = _chunk6HXWQ5AUcjs.Portal; exports.PortalContext = _chunk6HXWQ5AUcjs.PortalContext; exports.PortalHost = _chunk6HXWQ5AUcjs.PortalHost; exports.PressableFeedback = _chunkIG4Q3WQOcjs.PressableFeedback; exports.RIPPLE_CONFIRM_DURATION = _chunkIG4Q3WQOcjs.RIPPLE_CONFIRM_DURATION; exports.RIPPLE_EXPAND_DURATION = _chunkIG4Q3WQOcjs.RIPPLE_EXPAND_DURATION; exports.RIPPLE_FADE_IN = _chunkIG4Q3WQOcjs.RIPPLE_FADE_IN; exports.RIPPLE_FADE_OUT = _chunkIG4Q3WQOcjs.RIPPLE_FADE_OUT; exports.RIPPLE_FADE_OUT_DELAY = _chunkIG4Q3WQOcjs.RIPPLE_FADE_OUT_DELAY; exports.RIPPLE_OPACITY = _chunkIG4Q3WQOcjs.RIPPLE_OPACITY; exports.RIPPLE_START_SCALE = _chunkIG4Q3WQOcjs.RIPPLE_START_SCALE; exports.Row = _chunkIBEX4XGVcjs.Row; exports.SCALE_REFERENCE_WIDTH = _chunkIG4Q3WQOcjs.SCALE_REFERENCE_WIDTH; exports.Slot = _chunkHUZ4AUM2cjs.Slot; exports.Stack = _chunkIBEX4XGVcjs.Stack; exports.TextArea = _chunk5OXZIZRZcjs.TextArea; exports.TextSpan = _chunkY7U6ACMBcjs.TextSpan; exports.ThemeContext = _chunk57SJ4LJFcjs.ThemeContext; exports.Typography = _chunkY7U6ACMBcjs.Typography; exports.XAUIProvider = _chunkOHEHPQLCcjs.XAUIProvider; exports.alertRecipe = _chunkJ4JFIC4Wcjs.alertRecipe; exports.buildRadius = _chunkOHEHPQLCcjs.buildRadius; exports.buildShadows = _chunkOHEHPQLCcjs.buildShadows; exports.buildSlots = _chunkBULNTP5Ncjs.buildSlots; exports.buttonRecipe = _chunkWVCAFORAcjs.buttonRecipe; exports.cardRecipe = _chunk6FBGCF5Tcjs.cardRecipe; exports.childrenToString = _chunkHUZ4AUM2cjs.childrenToString; exports.chipRecipe = _chunkI7G77Q65cjs.chipRecipe; exports.closeButtonBase = _chunkJ2JJLKLGcjs.closeButtonBase; exports.createRecipe = _chunkYXVKQMCKcjs.createRecipe; exports.createSlotContext = _chunkHUZ4AUM2cjs.createSlotContext; exports.createTheme = _chunkOHEHPQLCcjs.createTheme; exports.decoratorPadding = _chunk3LKGVKQYcjs.decoratorPadding; exports.defaultTheme = _chunkOHEHPQLCcjs.defaultTheme; exports.deriveColors = _chunkOHEHPQLCcjs.deriveColors; exports.deriveTint = _chunk57SJ4LJFcjs.deriveTint; exports.extractPastedCode = _chunkBULNTP5Ncjs.extractPastedCode; exports.inputOTPRecipe = _chunkBULNTP5Ncjs.inputOTPRecipe; exports.inputRecipe = _chunkJCKVYYZOcjs.inputRecipe; exports.markBackground = _chunk6FBGCF5Tcjs.markBackground; exports.markOverlay = _chunkIG4Q3WQOcjs.markOverlay; exports.mergeProps = _chunkHUZ4AUM2cjs.mergeProps; exports.mergeRefs = _chunkHUZ4AUM2cjs.mergeRefs; exports.palette = _chunkOHEHPQLCcjs.palette; exports.pressScaleFor = _chunkIG4Q3WQOcjs.pressScaleFor; exports.primitives = _chunkOHEHPQLCcjs.primitives; exports.radiusAxis = _chunkYXVKQMCKcjs.radiusAxis; exports.resolveAnimation = _chunkIG4Q3WQOcjs.resolveAnimation; exports.resolveSlotAnimation = _chunkIG4Q3WQOcjs.resolveSlotAnimation; exports.rippleRadiusFor = _chunkIG4Q3WQOcjs.rippleRadiusFor; exports.sourceKeys = _chunkOHEHPQLCcjs.sourceKeys; exports.tokens = _chunkOHEHPQLCcjs.tokens; exports.typographyRecipe = _chunkY7U6ACMBcjs.typographyRecipe; exports.useAlert = _chunkJ4JFIC4Wcjs.useAlert; exports.useButton = _chunkWVCAFORAcjs.useButton; exports.useCard = _chunk6FBGCF5Tcjs.useCard; exports.useChip = _chunkI7G77Q65cjs.useChip; exports.useColorMode = _chunk57SJ4LJFcjs.useColorMode; exports.useControllableState = _chunkBULNTP5Ncjs.useControllableState; exports.useFeedback = _chunkIG4Q3WQOcjs.useFeedback; exports.useGrid = _chunkIBEX4XGVcjs.useGrid; exports.useIconContext = _chunkB4W2XNBPcjs.useIconContext; exports.useInput = _chunkJCKVYYZOcjs.useInput; exports.useInputGroup = _chunk3LKGVKQYcjs.useInputGroup; exports.useInputOTP = _chunkBULNTP5Ncjs.useInputOTP; exports.useInputOTPBox = _chunkBULNTP5Ncjs.useInputOTPBox; exports.useMergedRef = useMergedRef; exports.usePressState = _chunkIG4Q3WQOcjs.usePressState; exports.usePrevious = usePrevious; exports.useStyleProps = _chunkHUZ4AUM2cjs.useStyleProps; exports.useTextArea = _chunk5OXZIZRZcjs.useTextArea; exports.useThemeColor = _chunk57SJ4LJFcjs.useThemeColor; exports.useXAUITheme = _chunk57SJ4LJFcjs.useXAUITheme;
|
package/dist/index.d.cts
CHANGED
|
@@ -3,6 +3,7 @@ export { Button, ButtonContextValue, ButtonIconProps, ButtonLabelProps, ButtonPr
|
|
|
3
3
|
export { CARD_BACKGROUND, Card, CardBackgroundProps, CardBodyProps, CardContextValue, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardSize, CardSlot, CardTitleProps, CardVariant, cardRecipe, markBackground, useCard } from './components/card/index.cjs';
|
|
4
4
|
export { Chip, ChipAvatarProps, ChipCloseProps, ChipContextValue, ChipDotProps, ChipIconProps, ChipLabelProps, ChipProps, ChipSize, ChipSlot, ChipVariant, chipRecipe, useChip } from './components/chip/index.cjs';
|
|
5
5
|
export { Input, InputDescription, InputError, InputField, InputLabel, InputRoot, inputRecipe, useInput } from './components/input/index.cjs';
|
|
6
|
+
export { InputGroup, InputGroupContextValue, InputGroupField, InputGroupFieldProps, InputGroupIcon, InputGroupIconProps, InputGroupPrefix, InputGroupPrefixProps, InputGroupProps, InputGroupRoot, InputGroupSide, InputGroupSuffix, InputGroupSuffixProps, decoratorPadding, useInputGroup } from './components/input-group/index.cjs';
|
|
6
7
|
export { InputOTP, InputOTPBoxContextValue, InputOTPBoxProps, InputOTPCaretProps, InputOTPContextValue, InputOTPGroupProps, InputOTPHandle, InputOTPPattern, InputOTPPlaceholderProps, InputOTPProps, InputOTPRenderState, InputOTPSeparatorProps, InputOTPSize, InputOTPSlot, InputOTPValueProps, InputOTPVariant, OTPSlotState, OTP_ALPHANUMERIC, OTP_DIGITS, OTP_LETTERS, buildSlots, extractPastedCode, inputOTPRecipe, useInputOTP, useInputOTPBox } from './components/input-otp/index.cjs';
|
|
7
8
|
export { TextArea, TextAreaContextValue, TextAreaFieldProps, TextAreaProps, useTextArea } from './components/text-area/index.cjs';
|
|
8
9
|
export { TextSpan, TextSpanProps, Typography, TypographyProps, TypographySlot, TypographyVariant, typographyRecipe } from './components/typography/index.cjs';
|
|
@@ -17,7 +18,7 @@ export { A as Axes, C as CompoundVariant, R as Recipe, b as RecipeConfig, a as R
|
|
|
17
18
|
export { D as DirectionalStyleKey, I as ImageStyleProps, S as StyleProps, T as TextStyleProps, V as ViewStyleProps } from './style-props.type-CfnoGEP7.cjs';
|
|
18
19
|
export { ColorModePreference, PaletteFamily, PaletteShade, ThemeContext, XAUIProvider, XAUIProviderProps, XAUITint, buildRadius, buildShadows, createTheme, defaultTheme, deriveColors, deriveTint, palette, primitives, sourceKeys, tokens, useColorMode, useThemeColor, useXAUITheme } from './theme/index.cjs';
|
|
19
20
|
export { C as ColorMode, F as FontSizeKey, b as FontWeightKey, R as RadiusKey, S as Size, a as XAUIColors, c as XAUIDerivedColors, d as XAUIPrimitiveColors, e as XAUIRadius, f as XAUIShadow, g as XAUISourceColors, X as XAUITheme, h as XAUIThemeConfig, i as XAUIThemeSet } from './theme.type-C2gNHpEx.cjs';
|
|
20
|
-
export { b as InputContextValue, c as InputDescriptionProps, d as InputErrorProps, I as InputFieldProps, e as InputLabelPlacement, f as InputLabelProps, a as InputProps, g as InputSize, h as InputSlot, i as InputVariant } from './input.type-
|
|
21
|
+
export { b as InputContextValue, c as InputDescriptionProps, d as InputErrorProps, I as InputFieldProps, e as InputLabelPlacement, f as InputLabelProps, a as InputProps, g as InputSize, h as InputSlot, i as InputVariant } from './input.type-BUMDlzL9.cjs';
|
|
21
22
|
export { A as AnimationConfig, a as AnimationProp, F as FeedbackContext, P as PressableFeedbackProps, R as RadiusStyle, b as ResolvedAnimation, c as RippleWave, S as SlotAnimation } from './pressable-feedback.type-BA2C9sSz.cjs';
|
|
22
23
|
import 'react-native-reanimated';
|
|
23
24
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { Button, ButtonContextValue, ButtonIconProps, ButtonLabelProps, ButtonPr
|
|
|
3
3
|
export { CARD_BACKGROUND, Card, CardBackgroundProps, CardBodyProps, CardContextValue, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardSize, CardSlot, CardTitleProps, CardVariant, cardRecipe, markBackground, useCard } from './components/card/index.js';
|
|
4
4
|
export { Chip, ChipAvatarProps, ChipCloseProps, ChipContextValue, ChipDotProps, ChipIconProps, ChipLabelProps, ChipProps, ChipSize, ChipSlot, ChipVariant, chipRecipe, useChip } from './components/chip/index.js';
|
|
5
5
|
export { Input, InputDescription, InputError, InputField, InputLabel, InputRoot, inputRecipe, useInput } from './components/input/index.js';
|
|
6
|
+
export { InputGroup, InputGroupContextValue, InputGroupField, InputGroupFieldProps, InputGroupIcon, InputGroupIconProps, InputGroupPrefix, InputGroupPrefixProps, InputGroupProps, InputGroupRoot, InputGroupSide, InputGroupSuffix, InputGroupSuffixProps, decoratorPadding, useInputGroup } from './components/input-group/index.js';
|
|
6
7
|
export { InputOTP, InputOTPBoxContextValue, InputOTPBoxProps, InputOTPCaretProps, InputOTPContextValue, InputOTPGroupProps, InputOTPHandle, InputOTPPattern, InputOTPPlaceholderProps, InputOTPProps, InputOTPRenderState, InputOTPSeparatorProps, InputOTPSize, InputOTPSlot, InputOTPValueProps, InputOTPVariant, OTPSlotState, OTP_ALPHANUMERIC, OTP_DIGITS, OTP_LETTERS, buildSlots, extractPastedCode, inputOTPRecipe, useInputOTP, useInputOTPBox } from './components/input-otp/index.js';
|
|
7
8
|
export { TextArea, TextAreaContextValue, TextAreaFieldProps, TextAreaProps, useTextArea } from './components/text-area/index.js';
|
|
8
9
|
export { TextSpan, TextSpanProps, Typography, TypographyProps, TypographySlot, TypographyVariant, typographyRecipe } from './components/typography/index.js';
|
|
@@ -17,7 +18,7 @@ export { A as Axes, C as CompoundVariant, R as Recipe, b as RecipeConfig, a as R
|
|
|
17
18
|
export { D as DirectionalStyleKey, I as ImageStyleProps, S as StyleProps, T as TextStyleProps, V as ViewStyleProps } from './style-props.type-CfnoGEP7.js';
|
|
18
19
|
export { ColorModePreference, PaletteFamily, PaletteShade, ThemeContext, XAUIProvider, XAUIProviderProps, XAUITint, buildRadius, buildShadows, createTheme, defaultTheme, deriveColors, deriveTint, palette, primitives, sourceKeys, tokens, useColorMode, useThemeColor, useXAUITheme } from './theme/index.js';
|
|
19
20
|
export { C as ColorMode, F as FontSizeKey, b as FontWeightKey, R as RadiusKey, S as Size, a as XAUIColors, c as XAUIDerivedColors, d as XAUIPrimitiveColors, e as XAUIRadius, f as XAUIShadow, g as XAUISourceColors, X as XAUITheme, h as XAUIThemeConfig, i as XAUIThemeSet } from './theme.type-C2gNHpEx.js';
|
|
20
|
-
export { b as InputContextValue, c as InputDescriptionProps, d as InputErrorProps, I as InputFieldProps, e as InputLabelPlacement, f as InputLabelProps, a as InputProps, g as InputSize, h as InputSlot, i as InputVariant } from './input.type-
|
|
21
|
+
export { b as InputContextValue, c as InputDescriptionProps, d as InputErrorProps, I as InputFieldProps, e as InputLabelPlacement, f as InputLabelProps, a as InputProps, g as InputSize, h as InputSlot, i as InputVariant } from './input.type-D2qgi03E.js';
|
|
21
22
|
export { A as AnimationConfig, a as AnimationProp, F as FeedbackContext, P as PressableFeedbackProps, R as RadiusStyle, b as ResolvedAnimation, c as RippleWave, S as SlotAnimation } from './pressable-feedback.type-Bs4dQlGj.js';
|
|
22
23
|
import 'react-native-reanimated';
|
|
23
24
|
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TextArea,
|
|
3
|
+
useTextArea
|
|
4
|
+
} from "./chunk-TR2TGPDQ.js";
|
|
1
5
|
import {
|
|
2
6
|
TextSpan,
|
|
3
7
|
Typography,
|
|
@@ -36,7 +40,7 @@ import {
|
|
|
36
40
|
Button,
|
|
37
41
|
buttonRecipe,
|
|
38
42
|
useButton
|
|
39
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-PQHC65AG.js";
|
|
40
44
|
import {
|
|
41
45
|
CARD_BACKGROUND,
|
|
42
46
|
Card,
|
|
@@ -48,16 +52,11 @@ import {
|
|
|
48
52
|
Chip,
|
|
49
53
|
chipRecipe,
|
|
50
54
|
useChip
|
|
51
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-3WISQT22.js";
|
|
52
56
|
import {
|
|
53
57
|
CloseButton,
|
|
54
58
|
closeButtonBase
|
|
55
59
|
} from "./chunk-A4RGJBP2.js";
|
|
56
|
-
import {
|
|
57
|
-
Icon,
|
|
58
|
-
IconContext,
|
|
59
|
-
useIconContext
|
|
60
|
-
} from "./chunk-ICR42HHG.js";
|
|
61
60
|
import {
|
|
62
61
|
FEEDBACK_OVERLAY,
|
|
63
62
|
HIGHLIGHT_DURATION,
|
|
@@ -81,6 +80,31 @@ import {
|
|
|
81
80
|
useFeedback,
|
|
82
81
|
usePressState
|
|
83
82
|
} from "./chunk-4HELPMAK.js";
|
|
83
|
+
import {
|
|
84
|
+
InputGroup,
|
|
85
|
+
InputGroupField,
|
|
86
|
+
InputGroupIcon,
|
|
87
|
+
InputGroupPrefix,
|
|
88
|
+
InputGroupRoot,
|
|
89
|
+
InputGroupSuffix,
|
|
90
|
+
decoratorPadding,
|
|
91
|
+
useInputGroup
|
|
92
|
+
} from "./chunk-WEMZ4VMC.js";
|
|
93
|
+
import {
|
|
94
|
+
Icon,
|
|
95
|
+
IconContext,
|
|
96
|
+
useIconContext
|
|
97
|
+
} from "./chunk-ICR42HHG.js";
|
|
98
|
+
import {
|
|
99
|
+
Input,
|
|
100
|
+
InputDescription,
|
|
101
|
+
InputError,
|
|
102
|
+
InputField,
|
|
103
|
+
InputLabel,
|
|
104
|
+
InputRoot,
|
|
105
|
+
inputRecipe,
|
|
106
|
+
useInput
|
|
107
|
+
} from "./chunk-V2FQN6ZK.js";
|
|
84
108
|
import {
|
|
85
109
|
InputOTP,
|
|
86
110
|
OTP_ALPHANUMERIC,
|
|
@@ -94,20 +118,6 @@ import {
|
|
|
94
118
|
useInputOTPBox
|
|
95
119
|
} from "./chunk-I6UCYAO2.js";
|
|
96
120
|
import "./chunk-EGLLDKN6.js";
|
|
97
|
-
import {
|
|
98
|
-
TextArea,
|
|
99
|
-
useTextArea
|
|
100
|
-
} from "./chunk-ZDCGPK5Z.js";
|
|
101
|
-
import {
|
|
102
|
-
Input,
|
|
103
|
-
InputDescription,
|
|
104
|
-
InputError,
|
|
105
|
-
InputField,
|
|
106
|
-
InputLabel,
|
|
107
|
-
InputRoot,
|
|
108
|
-
inputRecipe,
|
|
109
|
-
useInput
|
|
110
|
-
} from "./chunk-2OY76YNB.js";
|
|
111
121
|
import {
|
|
112
122
|
createRecipe,
|
|
113
123
|
radiusAxis
|
|
@@ -162,6 +172,12 @@ export {
|
|
|
162
172
|
InputDescription,
|
|
163
173
|
InputError,
|
|
164
174
|
InputField,
|
|
175
|
+
InputGroup,
|
|
176
|
+
InputGroupField,
|
|
177
|
+
InputGroupIcon,
|
|
178
|
+
InputGroupPrefix,
|
|
179
|
+
InputGroupRoot,
|
|
180
|
+
InputGroupSuffix,
|
|
165
181
|
InputLabel,
|
|
166
182
|
InputOTP,
|
|
167
183
|
InputRoot,
|
|
@@ -202,6 +218,7 @@ export {
|
|
|
202
218
|
createRecipe,
|
|
203
219
|
createSlotContext,
|
|
204
220
|
createTheme,
|
|
221
|
+
decoratorPadding,
|
|
205
222
|
defaultTheme,
|
|
206
223
|
deriveColors,
|
|
207
224
|
deriveTint,
|
|
@@ -232,6 +249,7 @@ export {
|
|
|
232
249
|
useGrid,
|
|
233
250
|
useIconContext,
|
|
234
251
|
useInput,
|
|
252
|
+
useInputGroup,
|
|
235
253
|
useInputOTP,
|
|
236
254
|
useInputOTPBox,
|
|
237
255
|
useMergedRef,
|