@xaui/native 0.9.1-alpha.35 → 0.9.1-alpha.37
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-ZC35YYKS.js → chunk-2PMXMKS5.js} +13 -8
- package/dist/{chunk-CYS6U374.cjs → chunk-3P6M2R4S.cjs} +6 -6
- package/dist/{chunk-7CTIE42J.cjs → chunk-437QULXO.cjs} +16 -8
- package/dist/{chunk-M2BGCN77.js → chunk-4PTWZCOK.js} +9 -9
- package/dist/{chunk-ZA6RT3XQ.js → chunk-5PPNDKRX.js} +16 -16
- package/dist/{chunk-AYOVBZAX.js → chunk-6G3XWPNP.js} +5 -5
- package/dist/{chunk-PCWT2YBE.cjs → chunk-7B3UBUC6.cjs} +3 -3
- package/dist/{chunk-HXL2QCMR.js → chunk-7LSY4WFL.js} +14 -14
- package/dist/{chunk-OHEHPQLC.cjs → chunk-ACAPTWE3.cjs} +16 -12
- package/dist/{chunk-I66VMLHE.cjs → chunk-AP6RVIIK.cjs} +21 -21
- package/dist/{chunk-UR6DNU2M.js → chunk-BORJJYDW.js} +4 -4
- package/dist/{chunk-XWMB66ZM.cjs → chunk-C5VDFRAD.cjs} +3 -3
- package/dist/{chunk-PBR44KVV.cjs → chunk-CUQTAPBU.cjs} +22 -22
- package/dist/{chunk-QY4MN7X3.cjs → chunk-DKH6BNPF.cjs} +15 -15
- package/dist/{chunk-6M7RUU7V.cjs → chunk-DRMT346W.cjs} +64 -64
- package/dist/chunk-DVDQSW7U.cjs +1006 -0
- package/dist/{chunk-NMAZ2TQF.js → chunk-E3X5ODKQ.js} +3 -3
- package/dist/{chunk-U3RDU3HU.js → chunk-EOJ5MYAQ.js} +5 -5
- package/dist/{chunk-UORTYL63.cjs → chunk-FTQHDJYL.cjs} +14 -14
- package/dist/{chunk-DBXFFJTC.cjs → chunk-GTT4NHS2.cjs} +11 -11
- package/dist/{chunk-WJPQARJ5.js → chunk-HXW4ANVB.js} +3 -3
- package/dist/{chunk-MSMZBUZO.cjs → chunk-IGLKACSR.cjs} +7 -7
- package/dist/{chunk-HNW4HIMO.js → chunk-IKJVLJKT.js} +15 -15
- package/dist/{chunk-CNNLMMFV.cjs → chunk-ITURCQMQ.cjs} +7 -7
- package/dist/{chunk-DUQUCOUY.cjs → chunk-JB5LGQ54.cjs} +3 -3
- package/dist/{chunk-NLASSGA7.js → chunk-JDSE4TQL.js} +10 -2
- package/dist/{chunk-GBFQZQ77.js → chunk-JXNFOOKC.js} +7 -7
- package/dist/{chunk-Q3D6KIVF.cjs → chunk-LEWW24RQ.cjs} +105 -99
- package/dist/{chunk-MEYCZS32.js → chunk-M63GFNKV.js} +19 -4
- package/dist/chunk-MESKS6AI.js +0 -0
- package/dist/{chunk-MHEL3NAN.js → chunk-NKPTXTTS.js} +53 -53
- package/dist/{chunk-VSALV7VO.cjs → chunk-NTD3NPRX.cjs} +3 -3
- package/dist/{chunk-HVD5EX7V.js → chunk-O3A3DBSZ.js} +3 -3
- package/dist/chunk-OJCCV65P.cjs +1 -0
- package/dist/{chunk-JCYWU5TO.js → chunk-OULTSBKU.js} +3 -3
- package/dist/{chunk-CM4LI5OH.cjs → chunk-P747CRAY.cjs} +9 -9
- package/dist/{chunk-BA2MPBCO.js → chunk-RGKWNK4T.js} +58 -58
- package/dist/{chunk-NFFL3E4N.js → chunk-RVRVGG73.js} +4 -4
- package/dist/{chunk-L55CDXNI.js → chunk-SMW6ZWMH.js} +110 -104
- package/dist/{chunk-YUG22AXX.cjs → chunk-SNIHUKDA.cjs} +16 -16
- package/dist/{chunk-SLUJFE6R.js → chunk-SO5UAGIU.js} +15 -15
- package/dist/{chunk-2IWL6R3D.js → chunk-TDYPY2J7.js} +8 -8
- package/dist/{chunk-LZK77LFX.js → chunk-TJHYSSBZ.js} +3 -3
- package/dist/{chunk-I6ZB3FZI.cjs → chunk-TK44VBIE.cjs} +22 -7
- package/dist/{chunk-OX2YNMNS.cjs → chunk-UBOXW5WO.cjs} +63 -63
- package/dist/{chunk-XNNJM5DQ.js → chunk-UGF35NSE.js} +75 -75
- package/dist/{chunk-AOEXU5UV.cjs → chunk-VFTT3Q4B.cjs} +4 -4
- package/dist/{chunk-4SLOOIE5.cjs → chunk-WDDXU3OH.cjs} +14 -9
- package/dist/{chunk-TZG3DERP.js → chunk-WKCQ6VGW.js} +15 -11
- package/dist/{chunk-TVCS5UOE.cjs → chunk-WVLSQO6K.cjs} +49 -49
- package/dist/chunk-XWY4DF37.js +1143 -0
- package/dist/{chunk-K7LLERKT.cjs → chunk-ZJWEVFAO.cjs} +12 -12
- package/dist/components/alert/index.cjs +7 -8
- package/dist/components/alert/index.d.cts +1 -1
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/alert/index.js +6 -7
- package/dist/components/avatar/index.cjs +4 -5
- package/dist/components/avatar/index.d.cts +3 -3
- package/dist/components/avatar/index.d.ts +3 -3
- package/dist/components/avatar/index.js +3 -4
- package/dist/components/badge/index.cjs +3 -4
- package/dist/components/badge/index.d.cts +1 -1
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/badge/index.js +2 -3
- package/dist/components/button/index.cjs +6 -7
- package/dist/components/button/index.d.cts +168 -168
- package/dist/components/button/index.d.ts +168 -168
- package/dist/components/button/index.js +5 -6
- package/dist/components/card/index.cjs +5 -6
- package/dist/components/card/index.d.cts +169 -169
- package/dist/components/card/index.d.ts +169 -169
- package/dist/components/card/index.js +4 -5
- package/dist/components/checkbox/index.cjs +5 -6
- package/dist/components/checkbox/index.d.cts +336 -336
- package/dist/components/checkbox/index.d.ts +336 -336
- package/dist/components/checkbox/index.js +4 -5
- package/dist/components/chip/index.cjs +7 -8
- package/dist/components/chip/index.d.cts +169 -169
- package/dist/components/chip/index.d.ts +169 -169
- package/dist/components/chip/index.js +6 -7
- package/dist/components/divider/index.cjs +3 -4
- package/dist/components/divider/index.d.cts +1 -1
- package/dist/components/divider/index.d.ts +1 -1
- package/dist/components/divider/index.js +2 -3
- package/dist/components/field-group/index.cjs +27 -0
- package/dist/components/{input-group → field-group}/index.d.cts +66 -66
- package/dist/components/{input-group → field-group}/index.d.ts +66 -66
- package/dist/components/field-group/index.js +27 -0
- package/dist/components/input-otp/index.cjs +3 -4
- package/dist/components/input-otp/index.d.cts +1 -1
- package/dist/components/input-otp/index.d.ts +1 -1
- package/dist/components/input-otp/index.js +2 -3
- package/dist/components/radio/index.cjs +5 -6
- package/dist/components/radio/index.d.cts +336 -336
- package/dist/components/radio/index.d.ts +336 -336
- package/dist/components/radio/index.js +4 -5
- package/dist/components/select/index.cjs +47 -0
- package/dist/components/select/index.d.cts +519 -0
- package/dist/components/select/index.d.ts +519 -0
- package/dist/components/select/index.js +47 -0
- package/dist/components/skeleton/index.cjs +3 -4
- package/dist/components/skeleton/index.d.cts +1 -1
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/skeleton/index.js +2 -3
- package/dist/components/spinner/index.cjs +4 -5
- package/dist/components/spinner/index.d.cts +1 -1
- package/dist/components/spinner/index.d.ts +1 -1
- package/dist/components/spinner/index.js +3 -4
- package/dist/components/switch/index.cjs +5 -6
- package/dist/components/switch/index.d.cts +338 -338
- package/dist/components/switch/index.d.ts +338 -338
- package/dist/components/switch/index.js +4 -5
- package/dist/components/text-area/index.cjs +4 -5
- package/dist/components/text-area/index.d.cts +10 -10
- package/dist/components/text-area/index.d.ts +10 -10
- package/dist/components/text-area/index.js +3 -4
- package/dist/components/text-field/index.cjs +25 -0
- package/dist/components/text-field/index.d.cts +205 -0
- package/dist/components/text-field/index.d.ts +205 -0
- package/dist/components/text-field/index.js +25 -0
- package/dist/components/typography/index.cjs +3 -4
- package/dist/components/typography/index.d.cts +2 -2
- package/dist/components/typography/index.d.ts +2 -2
- package/dist/components/typography/index.js +2 -3
- package/dist/components/view/index.cjs +3 -4
- package/dist/components/view/index.d.cts +6 -6
- package/dist/components/view/index.d.ts +6 -6
- package/dist/components/view/index.js +2 -3
- package/dist/index.cjs +64 -28
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +100 -64
- package/dist/system/index.cjs +10 -10
- package/dist/system/index.d.cts +15 -2
- package/dist/system/index.d.ts +15 -2
- package/dist/system/index.js +8 -8
- package/dist/{input.type-D2qgi03E.d.ts → text-field.type-0l73acce.d.ts} +24 -24
- package/dist/{input.type-BUMDlzL9.d.cts → text-field.type-DBh06DU5.d.cts} +24 -24
- package/dist/theme/index.cjs +4 -3
- package/dist/theme/index.d.cts +21 -1
- package/dist/theme/index.d.ts +21 -1
- package/dist/theme/index.js +3 -2
- package/package.json +26 -16
- package/dist/chunk-GGW42MY4.js +0 -20
- package/dist/chunk-MC7SY2QH.cjs +0 -20
- package/dist/components/input/index.cjs +0 -26
- package/dist/components/input/index.d.cts +0 -205
- package/dist/components/input/index.d.ts +0 -205
- package/dist/components/input/index.js +0 -26
- package/dist/components/input-group/index.cjs +0 -28
- package/dist/components/input-group/index.js +0 -28
package/dist/index.js
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TextArea,
|
|
3
3
|
useTextArea
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7LSY4WFL.js";
|
|
5
5
|
import {
|
|
6
6
|
TextSpan,
|
|
7
7
|
Typography,
|
|
8
8
|
typographyRecipe
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O3A3DBSZ.js";
|
|
10
10
|
import {
|
|
11
11
|
Column,
|
|
12
12
|
Grid,
|
|
13
13
|
Row,
|
|
14
14
|
Stack,
|
|
15
15
|
useGrid
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import
|
|
18
|
-
Portal,
|
|
19
|
-
PortalContext,
|
|
20
|
-
PortalHost
|
|
21
|
-
} from "./chunk-ZC35YYKS.js";
|
|
16
|
+
} from "./chunk-JDSE4TQL.js";
|
|
17
|
+
import "./chunk-MESKS6AI.js";
|
|
22
18
|
import {
|
|
23
19
|
XAUIProvider,
|
|
24
20
|
buildRadius,
|
|
@@ -30,21 +26,31 @@ import {
|
|
|
30
26
|
primitives,
|
|
31
27
|
sourceKeys,
|
|
32
28
|
tokens
|
|
33
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WKCQ6VGW.js";
|
|
34
30
|
import {
|
|
35
31
|
Divider,
|
|
36
32
|
dividerRecipe
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
33
|
+
} from "./chunk-OULTSBKU.js";
|
|
34
|
+
import {
|
|
35
|
+
FieldGroup,
|
|
36
|
+
FieldGroupField,
|
|
37
|
+
FieldGroupIcon,
|
|
38
|
+
FieldGroupPrefix,
|
|
39
|
+
FieldGroupRoot,
|
|
40
|
+
FieldGroupSuffix,
|
|
45
41
|
decoratorPadding,
|
|
46
|
-
|
|
47
|
-
} from "./chunk-
|
|
42
|
+
useFieldGroup
|
|
43
|
+
} from "./chunk-NKPTXTTS.js";
|
|
44
|
+
import {
|
|
45
|
+
TextField,
|
|
46
|
+
TextFieldDescription,
|
|
47
|
+
TextFieldError,
|
|
48
|
+
TextFieldField,
|
|
49
|
+
TextFieldLabel,
|
|
50
|
+
TextFieldRoot,
|
|
51
|
+
textFieldRecipe,
|
|
52
|
+
useTextField
|
|
53
|
+
} from "./chunk-SMW6ZWMH.js";
|
|
48
54
|
import {
|
|
49
55
|
InputOTP,
|
|
50
56
|
OTP_ALPHANUMERIC,
|
|
@@ -55,17 +61,7 @@ import {
|
|
|
55
61
|
inputOTPRecipe,
|
|
56
62
|
useInputOTP,
|
|
57
63
|
useInputOTPBox
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import {
|
|
60
|
-
Input,
|
|
61
|
-
InputDescription,
|
|
62
|
-
InputError,
|
|
63
|
-
InputField,
|
|
64
|
-
InputLabel,
|
|
65
|
-
InputRoot,
|
|
66
|
-
inputRecipe,
|
|
67
|
-
useInput
|
|
68
|
-
} from "./chunk-L55CDXNI.js";
|
|
64
|
+
} from "./chunk-SO5UAGIU.js";
|
|
69
65
|
import {
|
|
70
66
|
Radio,
|
|
71
67
|
RadioIndicator,
|
|
@@ -73,15 +69,39 @@ import {
|
|
|
73
69
|
RadioRoot,
|
|
74
70
|
radioRecipe,
|
|
75
71
|
useRadio
|
|
76
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-RVRVGG73.js";
|
|
73
|
+
import {
|
|
74
|
+
CheckIcon,
|
|
75
|
+
ChevronDownIcon,
|
|
76
|
+
Select,
|
|
77
|
+
Select2,
|
|
78
|
+
SelectContent,
|
|
79
|
+
SelectIndicator,
|
|
80
|
+
SelectItem,
|
|
81
|
+
SelectItemDescription,
|
|
82
|
+
SelectItemIndicator,
|
|
83
|
+
SelectItemLabel,
|
|
84
|
+
SelectLabel,
|
|
85
|
+
SelectOverlay,
|
|
86
|
+
SelectTrigger,
|
|
87
|
+
SelectValue,
|
|
88
|
+
selectRecipe,
|
|
89
|
+
useSelect,
|
|
90
|
+
useSelectItem
|
|
91
|
+
} from "./chunk-XWY4DF37.js";
|
|
92
|
+
import {
|
|
93
|
+
Portal,
|
|
94
|
+
PortalContext,
|
|
95
|
+
PortalHost
|
|
96
|
+
} from "./chunk-2PMXMKS5.js";
|
|
77
97
|
import {
|
|
78
98
|
Skeleton,
|
|
79
99
|
skeletonRecipe
|
|
80
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-IKJVLJKT.js";
|
|
81
101
|
import {
|
|
82
102
|
Spinner,
|
|
83
103
|
spinnerRecipe
|
|
84
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-E3X5ODKQ.js";
|
|
85
105
|
import {
|
|
86
106
|
Switch,
|
|
87
107
|
SwitchLabel,
|
|
@@ -90,27 +110,27 @@ import {
|
|
|
90
110
|
SwitchTrack,
|
|
91
111
|
switchRecipe,
|
|
92
112
|
useSwitch
|
|
93
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-RGKWNK4T.js";
|
|
94
114
|
import {
|
|
95
115
|
Alert,
|
|
96
116
|
alertRecipe,
|
|
97
117
|
useAlert
|
|
98
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-6G3XWPNP.js";
|
|
99
119
|
import {
|
|
100
120
|
Avatar,
|
|
101
121
|
avatarRecipe,
|
|
102
122
|
useAvatar
|
|
103
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-5PPNDKRX.js";
|
|
104
124
|
import {
|
|
105
125
|
Badge,
|
|
106
126
|
badgeRecipe,
|
|
107
127
|
placementInsets
|
|
108
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-TJHYSSBZ.js";
|
|
109
129
|
import {
|
|
110
130
|
Button,
|
|
111
131
|
buttonRecipe,
|
|
112
132
|
useButton
|
|
113
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-TDYPY2J7.js";
|
|
114
134
|
import {
|
|
115
135
|
ROTATION_DURATION,
|
|
116
136
|
useMergedRef,
|
|
@@ -123,7 +143,7 @@ import {
|
|
|
123
143
|
cardRecipe,
|
|
124
144
|
markBackground,
|
|
125
145
|
useCard
|
|
126
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-JXNFOOKC.js";
|
|
127
147
|
import {
|
|
128
148
|
Checkbox,
|
|
129
149
|
CheckboxIndicator,
|
|
@@ -131,7 +151,7 @@ import {
|
|
|
131
151
|
CheckboxRoot,
|
|
132
152
|
checkboxRecipe,
|
|
133
153
|
useCheckbox
|
|
134
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-BORJJYDW.js";
|
|
135
155
|
import {
|
|
136
156
|
SelectionFill
|
|
137
157
|
} from "./chunk-BA2DBSAN.js";
|
|
@@ -142,16 +162,16 @@ import {
|
|
|
142
162
|
Chip,
|
|
143
163
|
chipRecipe,
|
|
144
164
|
useChip
|
|
145
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-4PTWZCOK.js";
|
|
146
166
|
import {
|
|
147
167
|
CloseButton,
|
|
148
168
|
closeButtonBase
|
|
149
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-EOJ5MYAQ.js";
|
|
150
170
|
import {
|
|
151
171
|
Icon,
|
|
152
172
|
IconContext,
|
|
153
173
|
useIconContext
|
|
154
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-HXW4ANVB.js";
|
|
155
175
|
import {
|
|
156
176
|
FEEDBACK_OVERLAY,
|
|
157
177
|
HIGHLIGHT_DURATION,
|
|
@@ -173,11 +193,11 @@ import {
|
|
|
173
193
|
resolveSlotAnimation,
|
|
174
194
|
rippleRadiusFor,
|
|
175
195
|
useFeedback
|
|
176
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-UGF35NSE.js";
|
|
197
|
+
import "./chunk-EGLLDKN6.js";
|
|
177
198
|
import {
|
|
178
199
|
usePressState
|
|
179
200
|
} from "./chunk-423RQBOX.js";
|
|
180
|
-
import "./chunk-EGLLDKN6.js";
|
|
181
201
|
import {
|
|
182
202
|
Slot,
|
|
183
203
|
childrenToString,
|
|
@@ -191,9 +211,6 @@ import {
|
|
|
191
211
|
createRecipe,
|
|
192
212
|
radiusAxis
|
|
193
213
|
} from "./chunk-4GTAZM2C.js";
|
|
194
|
-
import {
|
|
195
|
-
useStyleProps
|
|
196
|
-
} from "./chunk-MEYCZS32.js";
|
|
197
214
|
import {
|
|
198
215
|
ThemeContext,
|
|
199
216
|
deriveTint,
|
|
@@ -201,7 +218,9 @@ import {
|
|
|
201
218
|
useThemeColor,
|
|
202
219
|
useXAUITheme
|
|
203
220
|
} from "./chunk-A3EGFI6T.js";
|
|
204
|
-
import
|
|
221
|
+
import {
|
|
222
|
+
useStyleProps
|
|
223
|
+
} from "./chunk-M63GFNKV.js";
|
|
205
224
|
export {
|
|
206
225
|
Alert,
|
|
207
226
|
Avatar,
|
|
@@ -209,33 +228,29 @@ export {
|
|
|
209
228
|
Button,
|
|
210
229
|
CARD_BACKGROUND,
|
|
211
230
|
Card,
|
|
231
|
+
CheckIcon,
|
|
212
232
|
Checkbox,
|
|
213
233
|
CheckboxIndicator,
|
|
214
234
|
CheckboxLabel,
|
|
215
235
|
CheckboxRoot,
|
|
236
|
+
ChevronDownIcon,
|
|
216
237
|
Chip,
|
|
217
238
|
CloseButton,
|
|
218
239
|
Column,
|
|
219
240
|
Divider,
|
|
220
241
|
FEEDBACK_OVERLAY,
|
|
242
|
+
FieldGroup,
|
|
243
|
+
FieldGroupField,
|
|
244
|
+
FieldGroupIcon,
|
|
245
|
+
FieldGroupPrefix,
|
|
246
|
+
FieldGroupRoot,
|
|
247
|
+
FieldGroupSuffix,
|
|
221
248
|
Grid,
|
|
222
249
|
HIGHLIGHT_DURATION,
|
|
223
250
|
HIGHLIGHT_OPACITY,
|
|
224
251
|
Icon,
|
|
225
252
|
IconContext,
|
|
226
|
-
Input,
|
|
227
|
-
InputDescription,
|
|
228
|
-
InputError,
|
|
229
|
-
InputField,
|
|
230
|
-
InputGroup,
|
|
231
|
-
InputGroupField,
|
|
232
|
-
InputGroupIcon,
|
|
233
|
-
InputGroupPrefix,
|
|
234
|
-
InputGroupRoot,
|
|
235
|
-
InputGroupSuffix,
|
|
236
|
-
InputLabel,
|
|
237
253
|
InputOTP,
|
|
238
|
-
InputRoot,
|
|
239
254
|
OTP_ALPHANUMERIC,
|
|
240
255
|
OTP_DIGITS,
|
|
241
256
|
OTP_LETTERS,
|
|
@@ -259,6 +274,18 @@ export {
|
|
|
259
274
|
RadioRoot,
|
|
260
275
|
Row,
|
|
261
276
|
SCALE_REFERENCE_WIDTH,
|
|
277
|
+
Select2 as Select,
|
|
278
|
+
SelectContent,
|
|
279
|
+
SelectIndicator,
|
|
280
|
+
SelectItem,
|
|
281
|
+
SelectItemDescription,
|
|
282
|
+
SelectItemIndicator,
|
|
283
|
+
SelectItemLabel,
|
|
284
|
+
SelectLabel,
|
|
285
|
+
SelectOverlay,
|
|
286
|
+
Select as SelectRoot,
|
|
287
|
+
SelectTrigger,
|
|
288
|
+
SelectValue,
|
|
262
289
|
SelectionFill,
|
|
263
290
|
Skeleton,
|
|
264
291
|
Slot,
|
|
@@ -270,6 +297,12 @@ export {
|
|
|
270
297
|
SwitchThumb,
|
|
271
298
|
SwitchTrack,
|
|
272
299
|
TextArea,
|
|
300
|
+
TextField,
|
|
301
|
+
TextFieldDescription,
|
|
302
|
+
TextFieldError,
|
|
303
|
+
TextFieldField,
|
|
304
|
+
TextFieldLabel,
|
|
305
|
+
TextFieldRoot,
|
|
273
306
|
TextSpan,
|
|
274
307
|
ThemeContext,
|
|
275
308
|
Typography,
|
|
@@ -296,7 +329,6 @@ export {
|
|
|
296
329
|
dividerRecipe,
|
|
297
330
|
extractPastedCode,
|
|
298
331
|
inputOTPRecipe,
|
|
299
|
-
inputRecipe,
|
|
300
332
|
markBackground,
|
|
301
333
|
markOverlay,
|
|
302
334
|
mergeProps,
|
|
@@ -310,10 +342,12 @@ export {
|
|
|
310
342
|
resolveAnimation,
|
|
311
343
|
resolveSlotAnimation,
|
|
312
344
|
rippleRadiusFor,
|
|
345
|
+
selectRecipe,
|
|
313
346
|
skeletonRecipe,
|
|
314
347
|
sourceKeys,
|
|
315
348
|
spinnerRecipe,
|
|
316
349
|
switchRecipe,
|
|
350
|
+
textFieldRecipe,
|
|
317
351
|
tokens,
|
|
318
352
|
typographyRecipe,
|
|
319
353
|
useAlert,
|
|
@@ -325,10 +359,9 @@ export {
|
|
|
325
359
|
useColorMode,
|
|
326
360
|
useControllableState,
|
|
327
361
|
useFeedback,
|
|
362
|
+
useFieldGroup,
|
|
328
363
|
useGrid,
|
|
329
364
|
useIconContext,
|
|
330
|
-
useInput,
|
|
331
|
-
useInputGroup,
|
|
332
365
|
useInputOTP,
|
|
333
366
|
useInputOTPBox,
|
|
334
367
|
useMergedRef,
|
|
@@ -336,9 +369,12 @@ export {
|
|
|
336
369
|
usePrevious,
|
|
337
370
|
useRadio,
|
|
338
371
|
useRotation,
|
|
372
|
+
useSelect,
|
|
373
|
+
useSelectItem,
|
|
339
374
|
useStyleProps,
|
|
340
375
|
useSwitch,
|
|
341
376
|
useTextArea,
|
|
377
|
+
useTextField,
|
|
342
378
|
useThemeColor,
|
|
343
379
|
useXAUITheme
|
|
344
380
|
};
|
package/dist/system/index.cjs
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-OJCCV65P.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
var _chunkWDDXU3OHcjs = require('../chunk-WDDXU3OH.cjs');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
var _chunkF6CQ6CBIcjs = require('../chunk-F6CQ6CBI.cjs');
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
12
|
-
var
|
|
13
|
+
var _chunk3P6M2R4Scjs = require('../chunk-3P6M2R4S.cjs');
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
|
|
17
|
-
var
|
|
18
|
+
var _chunk7B3UBUC6cjs = require('../chunk-7B3UBUC6.cjs');
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
|
|
@@ -36,9 +37,9 @@ var _chunkPCWT2YBEcjs = require('../chunk-PCWT2YBE.cjs');
|
|
|
36
37
|
|
|
37
38
|
|
|
38
39
|
|
|
39
|
-
var
|
|
40
|
-
require('../chunk-7DPL3ZDS.cjs');
|
|
40
|
+
var _chunkDRMT346Wcjs = require('../chunk-DRMT346W.cjs');
|
|
41
41
|
require('../chunk-EJQCQPET.cjs');
|
|
42
|
+
require('../chunk-7DPL3ZDS.cjs');
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
|
|
@@ -52,11 +53,10 @@ var _chunkH4E4HDEPcjs = require('../chunk-H4E4HDEP.cjs');
|
|
|
52
53
|
|
|
53
54
|
|
|
54
55
|
var _chunkFNEUOBCVcjs = require('../chunk-FNEUOBCV.cjs');
|
|
56
|
+
require('../chunk-57SJ4LJF.cjs');
|
|
55
57
|
|
|
56
58
|
|
|
57
|
-
var
|
|
58
|
-
require('../chunk-57SJ4LJF.cjs');
|
|
59
|
-
require('../chunk-MC7SY2QH.cjs');
|
|
59
|
+
var _chunkTK44VBIEcjs = require('../chunk-TK44VBIE.cjs');
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
@@ -95,4 +95,4 @@ require('../chunk-MC7SY2QH.cjs');
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
exports.CloseButton =
|
|
98
|
+
exports.CloseButton = _chunk3P6M2R4Scjs.CloseButton; exports.FEEDBACK_OVERLAY = _chunkDRMT346Wcjs.FEEDBACK_OVERLAY; exports.HIGHLIGHT_DURATION = _chunkDRMT346Wcjs.HIGHLIGHT_DURATION; exports.HIGHLIGHT_OPACITY = _chunkDRMT346Wcjs.HIGHLIGHT_OPACITY; exports.Icon = _chunk7B3UBUC6cjs.Icon; exports.IconContext = _chunk7B3UBUC6cjs.IconContext; exports.PRESS_DURATION = _chunkDRMT346Wcjs.PRESS_DURATION; exports.PRESS_SCALE = _chunkDRMT346Wcjs.PRESS_SCALE; exports.Portal = _chunkWDDXU3OHcjs.Portal; exports.PortalContext = _chunkWDDXU3OHcjs.PortalContext; exports.PortalHost = _chunkWDDXU3OHcjs.PortalHost; exports.PressableFeedback = _chunkDRMT346Wcjs.PressableFeedback; exports.RIPPLE_CONFIRM_DURATION = _chunkDRMT346Wcjs.RIPPLE_CONFIRM_DURATION; exports.RIPPLE_EXPAND_DURATION = _chunkDRMT346Wcjs.RIPPLE_EXPAND_DURATION; exports.RIPPLE_FADE_IN = _chunkDRMT346Wcjs.RIPPLE_FADE_IN; exports.RIPPLE_FADE_OUT = _chunkDRMT346Wcjs.RIPPLE_FADE_OUT; exports.RIPPLE_FADE_OUT_DELAY = _chunkDRMT346Wcjs.RIPPLE_FADE_OUT_DELAY; exports.RIPPLE_OPACITY = _chunkDRMT346Wcjs.RIPPLE_OPACITY; exports.RIPPLE_START_SCALE = _chunkDRMT346Wcjs.RIPPLE_START_SCALE; exports.SCALE_REFERENCE_WIDTH = _chunkDRMT346Wcjs.SCALE_REFERENCE_WIDTH; exports.SelectionFill = _chunkF6CQ6CBIcjs.SelectionFill; exports.Slot = _chunk54FJOKANcjs.Slot; exports.childrenToString = _chunk54FJOKANcjs.childrenToString; exports.closeButtonBase = _chunk3P6M2R4Scjs.closeButtonBase; exports.createRecipe = _chunkFNEUOBCVcjs.createRecipe; exports.createSlotContext = _chunk54FJOKANcjs.createSlotContext; exports.markOverlay = _chunkDRMT346Wcjs.markOverlay; exports.mergeProps = _chunk54FJOKANcjs.mergeProps; exports.mergeRefs = _chunkH4E4HDEPcjs.mergeRefs; exports.pressScaleFor = _chunkDRMT346Wcjs.pressScaleFor; exports.radiusAxis = _chunkFNEUOBCVcjs.radiusAxis; exports.resolveAnimation = _chunkDRMT346Wcjs.resolveAnimation; exports.resolveSlotAnimation = _chunkDRMT346Wcjs.resolveSlotAnimation; exports.rippleRadiusFor = _chunkDRMT346Wcjs.rippleRadiusFor; exports.useFeedback = _chunkDRMT346Wcjs.useFeedback; exports.useIconContext = _chunk7B3UBUC6cjs.useIconContext; exports.useStyleProps = _chunkTK44VBIEcjs.useStyleProps;
|
package/dist/system/index.d.cts
CHANGED
|
@@ -100,6 +100,19 @@ declare namespace Portal {
|
|
|
100
100
|
type PortalMethods = {
|
|
101
101
|
addPortal: (key: string, element: ReactNode) => void;
|
|
102
102
|
removePortal: (key: string) => void;
|
|
103
|
+
/**
|
|
104
|
+
* Where the host's own view sits in the window, in points.
|
|
105
|
+
*
|
|
106
|
+
* An overlay is measured against a trigger that reports window coordinates, but it is
|
|
107
|
+
* rendered inside this host — so it is laid out against the host's origin, not the
|
|
108
|
+
* window's. Anything the two differ by (a status bar, a safe-area inset, a host mounted
|
|
109
|
+
* below a header) is exactly the distance the overlay would be wrong by. Subtracting it
|
|
110
|
+
* is what makes `measureInWindow` on the trigger mean the same thing on both sides.
|
|
111
|
+
*/
|
|
112
|
+
origin: {
|
|
113
|
+
x: number;
|
|
114
|
+
y: number;
|
|
115
|
+
};
|
|
103
116
|
};
|
|
104
117
|
/**
|
|
105
118
|
* `null` outside a host, and `Portal` treats that as "render nothing" rather than
|
|
@@ -298,7 +311,7 @@ declare function resolveSlotAnimation(override: SlotAnimation | undefined, enabl
|
|
|
298
311
|
* off — and it is the only shape that survives `asChild`, where the caller's own element
|
|
299
312
|
* is the pressable and there is no sibling for the primitive to inject.
|
|
300
313
|
*/
|
|
301
|
-
declare const PressableFeedback: react.ForwardRefExoticComponent<Omit<react_native.PressableProps, "
|
|
314
|
+
declare const PressableFeedback: react.ForwardRefExoticComponent<Omit<react_native.PressableProps, "style" | "children" | "disabled"> & ViewStyleProps & {
|
|
302
315
|
isPressed?: boolean;
|
|
303
316
|
isDisabled?: boolean;
|
|
304
317
|
asChild?: boolean;
|
|
@@ -492,7 +505,7 @@ declare const CloseButton: react.ForwardRefExoticComponent<{
|
|
|
492
505
|
baseStyle?: react_native.StyleProp<react_native.ViewStyle>;
|
|
493
506
|
glyphStyle?: react_native.StyleProp<react_native.ViewStyle>;
|
|
494
507
|
style?: react_native.StyleProp<react_native.ViewStyle> | ((state: react_native.PressableStateCallbackType) => react_native.StyleProp<react_native.ViewStyle>);
|
|
495
|
-
} & Omit<PressableFeedbackProps, "
|
|
508
|
+
} & Omit<PressableFeedbackProps, "style" | "children" | "isPressed"> & react.RefAttributes<View>>;
|
|
496
509
|
|
|
497
510
|
/** The two slots a component publishes for a `CloseButton`: its box and one cross bar. */
|
|
498
511
|
type CloseButtonSlots = {
|
package/dist/system/index.d.ts
CHANGED
|
@@ -100,6 +100,19 @@ declare namespace Portal {
|
|
|
100
100
|
type PortalMethods = {
|
|
101
101
|
addPortal: (key: string, element: ReactNode) => void;
|
|
102
102
|
removePortal: (key: string) => void;
|
|
103
|
+
/**
|
|
104
|
+
* Where the host's own view sits in the window, in points.
|
|
105
|
+
*
|
|
106
|
+
* An overlay is measured against a trigger that reports window coordinates, but it is
|
|
107
|
+
* rendered inside this host — so it is laid out against the host's origin, not the
|
|
108
|
+
* window's. Anything the two differ by (a status bar, a safe-area inset, a host mounted
|
|
109
|
+
* below a header) is exactly the distance the overlay would be wrong by. Subtracting it
|
|
110
|
+
* is what makes `measureInWindow` on the trigger mean the same thing on both sides.
|
|
111
|
+
*/
|
|
112
|
+
origin: {
|
|
113
|
+
x: number;
|
|
114
|
+
y: number;
|
|
115
|
+
};
|
|
103
116
|
};
|
|
104
117
|
/**
|
|
105
118
|
* `null` outside a host, and `Portal` treats that as "render nothing" rather than
|
|
@@ -298,7 +311,7 @@ declare function resolveSlotAnimation(override: SlotAnimation | undefined, enabl
|
|
|
298
311
|
* off — and it is the only shape that survives `asChild`, where the caller's own element
|
|
299
312
|
* is the pressable and there is no sibling for the primitive to inject.
|
|
300
313
|
*/
|
|
301
|
-
declare const PressableFeedback: react.ForwardRefExoticComponent<Omit<react_native.PressableProps, "
|
|
314
|
+
declare const PressableFeedback: react.ForwardRefExoticComponent<Omit<react_native.PressableProps, "style" | "children" | "disabled"> & ViewStyleProps & {
|
|
302
315
|
isPressed?: boolean;
|
|
303
316
|
isDisabled?: boolean;
|
|
304
317
|
asChild?: boolean;
|
|
@@ -492,7 +505,7 @@ declare const CloseButton: react.ForwardRefExoticComponent<{
|
|
|
492
505
|
baseStyle?: react_native.StyleProp<react_native.ViewStyle>;
|
|
493
506
|
glyphStyle?: react_native.StyleProp<react_native.ViewStyle>;
|
|
494
507
|
style?: react_native.StyleProp<react_native.ViewStyle> | ((state: react_native.PressableStateCallbackType) => react_native.StyleProp<react_native.ViewStyle>);
|
|
495
|
-
} & Omit<PressableFeedbackProps, "
|
|
508
|
+
} & Omit<PressableFeedbackProps, "style" | "children" | "isPressed"> & react.RefAttributes<View>>;
|
|
496
509
|
|
|
497
510
|
/** The two slots a component publishes for a `CloseButton`: its box and one cross bar. */
|
|
498
511
|
type CloseButtonSlots = {
|
package/dist/system/index.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
+
import "../chunk-MESKS6AI.js";
|
|
1
2
|
import {
|
|
2
3
|
Portal,
|
|
3
4
|
PortalContext,
|
|
4
5
|
PortalHost
|
|
5
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-2PMXMKS5.js";
|
|
6
7
|
import {
|
|
7
8
|
SelectionFill
|
|
8
9
|
} from "../chunk-BA2DBSAN.js";
|
|
9
10
|
import {
|
|
10
11
|
CloseButton,
|
|
11
12
|
closeButtonBase
|
|
12
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-EOJ5MYAQ.js";
|
|
13
14
|
import {
|
|
14
15
|
Icon,
|
|
15
16
|
IconContext,
|
|
16
17
|
useIconContext
|
|
17
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-HXW4ANVB.js";
|
|
18
19
|
import {
|
|
19
20
|
FEEDBACK_OVERLAY,
|
|
20
21
|
HIGHLIGHT_DURATION,
|
|
@@ -36,9 +37,9 @@ import {
|
|
|
36
37
|
resolveSlotAnimation,
|
|
37
38
|
rippleRadiusFor,
|
|
38
39
|
useFeedback
|
|
39
|
-
} from "../chunk-
|
|
40
|
-
import "../chunk-423RQBOX.js";
|
|
40
|
+
} from "../chunk-UGF35NSE.js";
|
|
41
41
|
import "../chunk-EGLLDKN6.js";
|
|
42
|
+
import "../chunk-423RQBOX.js";
|
|
42
43
|
import {
|
|
43
44
|
Slot,
|
|
44
45
|
childrenToString,
|
|
@@ -52,11 +53,10 @@ import {
|
|
|
52
53
|
createRecipe,
|
|
53
54
|
radiusAxis
|
|
54
55
|
} from "../chunk-4GTAZM2C.js";
|
|
56
|
+
import "../chunk-A3EGFI6T.js";
|
|
55
57
|
import {
|
|
56
58
|
useStyleProps
|
|
57
|
-
} from "../chunk-
|
|
58
|
-
import "../chunk-A3EGFI6T.js";
|
|
59
|
-
import "../chunk-GGW42MY4.js";
|
|
59
|
+
} from "../chunk-M63GFNKV.js";
|
|
60
60
|
export {
|
|
61
61
|
CloseButton,
|
|
62
62
|
FEEDBACK_OVERLAY,
|
|
@@ -3,7 +3,7 @@ import { StyleProp, TextStyle, ViewStyle, TextInputProps, TextProps, ViewProps }
|
|
|
3
3
|
import { T as TextStyleProps, V as ViewStyleProps } from './style-props.type-CfnoGEP7.js';
|
|
4
4
|
import { S as Size, R as RadiusKey } from './theme.type-C2gNHpEx.js';
|
|
5
5
|
|
|
6
|
-
type
|
|
6
|
+
type TextFieldSlot = 'root' | 'label' | 'field' | 'textArea' | 'placeholder' | 'description' | 'error' | 'prefix' | 'suffix' | 'icon';
|
|
7
7
|
/**
|
|
8
8
|
* The library's four emphasis levels, narrowed like the `Card`'s (§1 bis). A field
|
|
9
9
|
* **reports nothing** — an error is `isInvalid`, which is a state and not a variant — so
|
|
@@ -27,7 +27,7 @@ type InputSlot = 'root' | 'label' | 'field' | 'textArea' | 'placeholder' | 'desc
|
|
|
27
27
|
* and we ship at `1`. That is the one shipped default where the two differ;
|
|
28
28
|
* `createTheme({ borderWidth: { field: 0 } })` reproduces theirs.
|
|
29
29
|
*/
|
|
30
|
-
type
|
|
30
|
+
type TextFieldVariant = 'primary' | 'secondary' | 'tertiary' | 'ghost';
|
|
31
31
|
/**
|
|
32
32
|
* Where the label sits relative to the field's box.
|
|
33
33
|
*
|
|
@@ -36,24 +36,24 @@ type InputVariant = 'primary' | 'secondary' | 'tertiary' | 'ghost';
|
|
|
36
36
|
* own padding, so the JSX is identical either way and nothing is reparented (R4).
|
|
37
37
|
*
|
|
38
38
|
* Because the inside label positions itself against the top of the root, it assumes the
|
|
39
|
-
* field is the first thing in the column's flow: write `
|
|
40
|
-
* `
|
|
39
|
+
* field is the first thing in the column's flow: write `TextField.Description` and
|
|
40
|
+
* `TextField.Error` after the field, which is where they belong anyway.
|
|
41
41
|
*/
|
|
42
|
-
type
|
|
43
|
-
type
|
|
42
|
+
type TextFieldLabelPlacement = 'outside' | 'inside';
|
|
43
|
+
type TextFieldSize = Size;
|
|
44
44
|
/**
|
|
45
|
-
* What the `
|
|
45
|
+
* What the `TextField` itself understands. R14 — a name in here is the component's, so the
|
|
46
46
|
* style prop that shares it is not exposed: `size` is the field's scale and never
|
|
47
47
|
* `ViewStyle`'s, and `color` is R7's tint.
|
|
48
48
|
*/
|
|
49
|
-
type
|
|
50
|
-
variant?:
|
|
49
|
+
type TextFieldOwnProps = {
|
|
50
|
+
variant?: TextFieldVariant;
|
|
51
51
|
/** The field's height, its padding, the gaps and the type. Never width. */
|
|
52
|
-
size?:
|
|
52
|
+
size?: TextFieldSize;
|
|
53
53
|
/** Overrides the `field` radius the theme chose for every size. */
|
|
54
54
|
radius?: RadiusKey;
|
|
55
55
|
/** Above the box, or lifted into it. @default 'outside' */
|
|
56
|
-
labelPlacement?:
|
|
56
|
+
labelPlacement?: TextFieldLabelPlacement;
|
|
57
57
|
/**
|
|
58
58
|
* A raw tint (`'#7c3aed'`), never a token (R7). It lands where the variant put its
|
|
59
59
|
* tokens — the fill of a `default`, the border of a `tertiary` — and, because the focus
|
|
@@ -65,7 +65,7 @@ type InputOwnProps = {
|
|
|
65
65
|
* treatment off: an error outranks focus, and a field that is both should read as
|
|
66
66
|
* wrong rather than as busy.
|
|
67
67
|
*
|
|
68
|
-
* It does **not** mount or unmount `
|
|
68
|
+
* It does **not** mount or unmount `TextField.Error`. That stays the caller's — a slot that
|
|
69
69
|
* silently renders nothing is a slot you cannot debug.
|
|
70
70
|
*/
|
|
71
71
|
isInvalid?: boolean;
|
|
@@ -76,10 +76,10 @@ type InputOwnProps = {
|
|
|
76
76
|
};
|
|
77
77
|
/**
|
|
78
78
|
* R14 — the input's own props, the wrapper `View`'s, and every `ViewStyle` key neither
|
|
79
|
-
* already claims. **`TextInputProps` are not here**: they belong to `
|
|
79
|
+
* already claims. **`TextInputProps` are not here**: they belong to `TextField.Field`, which
|
|
80
80
|
* is the node that has them.
|
|
81
81
|
*/
|
|
82
|
-
type
|
|
82
|
+
type TextFieldProps = TextFieldOwnProps & Omit<ViewProps, keyof TextFieldOwnProps> & Omit<ViewStyleProps, keyof TextFieldOwnProps | keyof ViewProps> & {
|
|
83
83
|
/** R12 — merge into the single child instead of rendering a `View`. */
|
|
84
84
|
asChild?: boolean;
|
|
85
85
|
};
|
|
@@ -89,14 +89,14 @@ type InputProps = InputOwnProps & Omit<ViewProps, keyof InputOwnProps> & Omit<Vi
|
|
|
89
89
|
* `editable` is absent: it is `disabled` under another name, and R8 keeps that off the
|
|
90
90
|
* public surface — `isDisabled` on the root is what stops the field.
|
|
91
91
|
*/
|
|
92
|
-
type
|
|
92
|
+
type TextFieldFieldProps = Omit<TextInputProps, 'editable'> & Omit<TextStyleProps, keyof TextInputProps>;
|
|
93
93
|
/** `Text`'s own props win over the `TextStyle` keys of the same name (R14). */
|
|
94
|
-
type
|
|
94
|
+
type TextFieldTextProps = TextProps & Omit<TextStyleProps, keyof TextProps> & {
|
|
95
95
|
children?: ReactNode;
|
|
96
96
|
};
|
|
97
|
-
type
|
|
98
|
-
type
|
|
99
|
-
type
|
|
97
|
+
type TextFieldLabelProps = TextFieldTextProps;
|
|
98
|
+
type TextFieldDescriptionProps = TextFieldTextProps;
|
|
99
|
+
type TextFieldErrorProps = TextFieldTextProps;
|
|
100
100
|
/**
|
|
101
101
|
* Read off `TextInput`'s own props rather than spelled out: React Native has renamed the
|
|
102
102
|
* payload of these two more than once, and a hand-written `NativeSyntheticEvent<…>` here
|
|
@@ -109,10 +109,10 @@ type FieldBlurEvent = Parameters<NonNullable<TextInputProps['onBlur']>>[0];
|
|
|
109
109
|
* cached `StyleSheet` reference with the uncached tint pass layered over it, so a slot
|
|
110
110
|
* merges its own `style` on top and does no work of its own.
|
|
111
111
|
*/
|
|
112
|
-
type
|
|
112
|
+
type TextFieldContextValue = {
|
|
113
113
|
labelStyle: StyleProp<TextStyle>;
|
|
114
114
|
fieldStyle: StyleProp<TextStyle>;
|
|
115
|
-
/** Layered *over* `fieldStyle` by `
|
|
115
|
+
/** Layered *over* `fieldStyle` by `TextField.TextArea`: only what a multiline field adds. */
|
|
116
116
|
textAreaStyle: StyleProp<TextStyle>;
|
|
117
117
|
/**
|
|
118
118
|
* Values, not a style: `rows` is a raw number, so the height it implies is arithmetic
|
|
@@ -126,7 +126,7 @@ type InputContextValue = {
|
|
|
126
126
|
descriptionStyle: StyleProp<TextStyle>;
|
|
127
127
|
errorStyle: StyleProp<TextStyle>;
|
|
128
128
|
/**
|
|
129
|
-
* The two decorators of
|
|
129
|
+
* The two decorators of a `FieldGroup`, already pinned to their edge and inset by the
|
|
130
130
|
* field's own padding. They are resolved here, on the root, because the size that
|
|
131
131
|
* decides that padding is the root's — the group itself adds no axis of its own.
|
|
132
132
|
*/
|
|
@@ -149,7 +149,7 @@ type InputContextValue = {
|
|
|
149
149
|
/**
|
|
150
150
|
* The focus state lives on the **root**, because the root's recipe resolves on it (R5)
|
|
151
151
|
* and it needs the value before it renders — but the node that hears the event is
|
|
152
|
-
* `
|
|
152
|
+
* `TextField.Field`, three levels down. These are how it reports back. Their identity is
|
|
153
153
|
* stable, so publishing them costs no re-render of a memoized slot.
|
|
154
154
|
*/
|
|
155
155
|
onFieldFocus: (event: FieldFocusEvent) => void;
|
|
@@ -164,4 +164,4 @@ type InputContextValue = {
|
|
|
164
164
|
isInvalid: boolean;
|
|
165
165
|
};
|
|
166
166
|
|
|
167
|
-
export type {
|
|
167
|
+
export type { TextFieldFieldProps as T, TextFieldProps as a, TextFieldContextValue as b, TextFieldDescriptionProps as c, TextFieldErrorProps as d, TextFieldLabelPlacement as e, TextFieldLabelProps as f, TextFieldSize as g, TextFieldSlot as h, TextFieldVariant as i };
|