@xaui/native 0.9.1-alpha.94 → 0.9.1-beta.100
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-AXKDHX5V.cjs → chunk-2IOL3VDP.cjs} +3 -3
- package/dist/{chunk-LUPU7FJK.js → chunk-356DND54.js} +1 -1
- package/dist/{chunk-B5DBFS6M.js → chunk-3BRVAMXQ.js} +1 -1
- package/dist/{chunk-4LRVB6WR.cjs → chunk-3DQCHPB6.cjs} +12 -12
- package/dist/{chunk-5O7E73QP.cjs → chunk-3MMOZP4Y.cjs} +8 -8
- package/dist/{chunk-X6GT4H4I.cjs → chunk-3TBT6ORW.cjs} +15 -15
- package/dist/{chunk-DN3X5WIB.js → chunk-3VMKOQXH.js} +1 -1
- package/dist/{chunk-WPYJW3WM.cjs → chunk-435MOVG2.cjs} +3 -3
- package/dist/{chunk-V4IFH65I.cjs → chunk-5CXOSDFI.cjs} +2 -2
- package/dist/{chunk-5XTF2JDK.js → chunk-5G36GMFS.js} +1 -1
- package/dist/{chunk-VBS6VWW4.cjs → chunk-5UT5I53X.cjs} +3 -3
- package/dist/{chunk-4AIIAF6U.js → chunk-73EVNWZI.js} +16 -16
- package/dist/{chunk-7OVYYZ7H.js → chunk-7EPH24S2.js} +15 -15
- package/dist/{chunk-G2YHGLN3.cjs → chunk-7JWOAGB3.cjs} +9 -9
- package/dist/{chunk-6SRFQSPR.cjs → chunk-ADGHFLBJ.cjs} +1 -1
- package/dist/{chunk-OZLOYXLW.js → chunk-BBQQIO6L.js} +4 -4
- package/dist/{chunk-X22PLAP6.cjs → chunk-BGBJTBFC.cjs} +1 -1
- package/dist/{chunk-33BA4LVN.js → chunk-BH4IN6H6.js} +1 -1
- package/dist/{chunk-WLWZG2PA.cjs → chunk-BKY5YQ7W.cjs} +1 -1
- package/dist/{chunk-AHJLQJOE.cjs → chunk-C2S6J27O.cjs} +1 -1
- package/dist/chunk-C6JO2RTV.cjs +752 -0
- package/dist/{chunk-2TLPFGGR.cjs → chunk-CS6CYB4I.cjs} +34 -25
- package/dist/{chunk-WYRM77XM.cjs → chunk-ENZBKNFJ.cjs} +15 -15
- package/dist/{chunk-ERIGD4SE.cjs → chunk-ETY5PM3E.cjs} +150 -39
- package/dist/{chunk-YJIVPYMG.cjs → chunk-FLKTJ46K.cjs} +15 -15
- package/dist/{chunk-OX23MW5E.js → chunk-FSVZXWLZ.js} +44 -44
- package/dist/{chunk-E5E2QA4K.js → chunk-GVZJNIHN.js} +176 -62
- package/dist/{chunk-6W45YHTF.js → chunk-HDERVGWZ.js} +1 -1
- package/dist/{chunk-KHPODIQV.cjs → chunk-IHRPAKCZ.cjs} +15 -15
- package/dist/{chunk-2XEQDQAN.js → chunk-IVELCJEN.js} +99 -99
- package/dist/{chunk-5YZUYSV7.js → chunk-JYV53WUN.js} +1 -1
- package/dist/{chunk-DE4RSR7Q.cjs → chunk-KAYZH7ZN.cjs} +1 -1
- package/dist/{chunk-IMIY34F4.cjs → chunk-KIXHSX3L.cjs} +1 -1
- package/dist/{chunk-7M6YKCHX.js → chunk-KZZWNDDO.js} +2 -2
- package/dist/{chunk-J5COSALO.cjs → chunk-L4B6Z45Q.cjs} +5 -5
- package/dist/{chunk-KFB24VYT.js → chunk-LMMHAGOM.js} +26 -17
- package/dist/{chunk-EQUD3NHO.js → chunk-LYWXGEED.js} +43 -43
- package/dist/{chunk-BYDGJU5A.js → chunk-M352N6PQ.js} +5 -5
- package/dist/{chunk-XOZMGNVS.js → chunk-MXSIY6QQ.js} +3 -3
- package/dist/{chunk-3CPLJJWX.js → chunk-MZUYTCCB.js} +1 -1
- package/dist/{chunk-K7VDLVLE.js → chunk-NQDTGYHC.js} +3 -3
- package/dist/{chunk-NADCILBL.cjs → chunk-NRU5APUE.cjs} +4 -4
- package/dist/{chunk-43S673KF.js → chunk-NTVPLDJC.js} +1 -1
- package/dist/{chunk-7AVZ2FST.cjs → chunk-NXVSNESK.cjs} +12 -12
- package/dist/{chunk-E4FWGZH2.js → chunk-OUNTRW6E.js} +5 -5
- package/dist/{chunk-MNBEUNC5.cjs → chunk-QRH45OO3.cjs} +144 -33
- package/dist/chunk-SVS726BW.js +822 -0
- package/dist/{chunk-YOPWQHNO.js → chunk-TNFLBURM.js} +1 -1
- package/dist/{chunk-YCQEX25B.cjs → chunk-U6YD3UBO.cjs} +7 -7
- package/dist/{chunk-GN7BWYXP.cjs → chunk-USQK6SFZ.cjs} +15 -15
- package/dist/{chunk-QT7KLGO3.js → chunk-V5FYHQKQ.js} +102 -87
- package/dist/{chunk-KMK6FUTK.cjs → chunk-V5V2QYFH.cjs} +9 -9
- package/dist/{chunk-YGETADPV.js → chunk-V7YT4SDX.js} +2 -2
- package/dist/{chunk-DBP5CA5R.js → chunk-VL2ZT4BB.js} +3 -3
- package/dist/{chunk-Q6OVVUAT.js → chunk-VTGWFZCA.js} +2 -2
- package/dist/{chunk-YI5D4QZP.js → chunk-WIGDDZHO.js} +190 -76
- package/dist/{chunk-NGXLJ5ZF.cjs → chunk-WSDDUVF6.cjs} +22 -22
- package/dist/{chunk-AIHKBSQ5.cjs → chunk-YUCK5VJO.cjs} +8 -8
- package/dist/{chunk-SIOSYITD.cjs → chunk-ZBFBF7S4.cjs} +60 -45
- package/dist/{chunk-SX5U5UJQ.js → chunk-ZBY7Q7WJ.js} +2 -2
- package/dist/{chunk-53E2E7GS.cjs → chunk-ZNKHL5O6.cjs} +15 -15
- package/dist/{chunk-U5CUBDJA.js → chunk-ZR5YOCOQ.js} +15 -15
- package/dist/components/accordion/accordion.animation.d.cts +1 -1
- package/dist/components/accordion/accordion.animation.d.ts +1 -1
- package/dist/components/accordion/accordion.type.d.cts +1 -1
- package/dist/components/accordion/accordion.type.d.ts +1 -1
- package/dist/components/accordion/index.cjs +2 -2
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-calendar/agenda-calendar-today-button.d.cts +4 -0
- package/dist/components/agenda-calendar/agenda-calendar-today-button.d.ts +4 -0
- package/dist/components/agenda-calendar/agenda-calendar.recipe.d.cts +1 -1
- package/dist/components/agenda-calendar/agenda-calendar.recipe.d.ts +1 -1
- package/dist/components/agenda-calendar/agenda-calendar.type.d.cts +4 -1
- package/dist/components/agenda-calendar/agenda-calendar.type.d.ts +4 -1
- package/dist/components/agenda-calendar/index.cjs +2 -2
- package/dist/components/agenda-calendar/index.js +1 -1
- package/dist/components/alert/alert-icon.d.cts +2 -2
- package/dist/components/alert/alert-icon.d.ts +2 -2
- package/dist/components/alert/alert.type.d.cts +1 -1
- package/dist/components/alert/alert.type.d.ts +1 -1
- package/dist/components/alert/index.cjs +2 -2
- package/dist/components/alert/index.js +1 -1
- package/dist/components/autocomplete/autocomplete-description.d.cts +14 -0
- package/dist/components/autocomplete/autocomplete-description.d.ts +14 -0
- package/dist/components/autocomplete/autocomplete-error.d.cts +12 -0
- package/dist/components/autocomplete/autocomplete-error.d.ts +12 -0
- package/dist/components/autocomplete/autocomplete-label.d.cts +15 -0
- package/dist/components/autocomplete/autocomplete-label.d.ts +15 -0
- package/dist/components/autocomplete/autocomplete.d.cts +50 -7
- package/dist/components/autocomplete/autocomplete.d.ts +50 -7
- package/dist/components/autocomplete/autocomplete.type.d.cts +21 -4
- package/dist/components/autocomplete/autocomplete.type.d.ts +21 -4
- package/dist/components/autocomplete/index.cjs +10 -3
- package/dist/components/autocomplete/index.d.cts +50 -3
- package/dist/components/autocomplete/index.d.ts +50 -3
- package/dist/components/autocomplete/index.js +9 -2
- package/dist/components/avatar/avatar-fallback.d.cts +1 -1
- package/dist/components/avatar/avatar-fallback.d.ts +1 -1
- package/dist/components/avatar/avatar.d.cts +1 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/avatar.type.d.cts +1 -1
- package/dist/components/avatar/avatar.type.d.ts +1 -1
- package/dist/components/avatar/index.cjs +2 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.cts +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +1 -1
- package/dist/components/bottom-sheet/index.cjs +2 -2
- package/dist/components/bottom-sheet/index.js +1 -1
- package/dist/components/card/card-background.d.cts +1 -1
- package/dist/components/card/card-background.d.ts +1 -1
- package/dist/components/card/card.utils.d.cts +1 -1
- package/dist/components/card/card.utils.d.ts +1 -1
- package/dist/components/checkbox/checkbox.recipe.d.cts +1 -1
- package/dist/components/checkbox/checkbox.recipe.d.ts +1 -1
- package/dist/components/checkbox/checkbox.type.d.cts +1 -1
- package/dist/components/checkbox/checkbox.type.d.ts +1 -1
- package/dist/components/checkbox/index.cjs +2 -2
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/chip/chip.type.d.cts +1 -1
- package/dist/components/chip/chip.type.d.ts +1 -1
- package/dist/components/chip/index.cjs +2 -2
- package/dist/components/chip/index.js +1 -1
- package/dist/components/color-picker/index.cjs +7 -7
- package/dist/components/color-picker/index.js +6 -6
- package/dist/components/combobox/combobox.type.d.cts +5 -1
- package/dist/components/combobox/combobox.type.d.ts +5 -1
- package/dist/components/combobox/index.cjs +5 -4
- package/dist/components/combobox/index.d.cts +15 -1
- package/dist/components/combobox/index.d.ts +15 -1
- package/dist/components/combobox/index.js +4 -3
- package/dist/components/date-picker/index.cjs +4 -4
- package/dist/components/date-picker/index.js +3 -3
- package/dist/components/date-range-picker/index.cjs +4 -4
- package/dist/components/date-range-picker/index.js +3 -3
- package/dist/components/date-time-picker/index.cjs +5 -5
- package/dist/components/date-time-picker/index.js +4 -4
- package/dist/components/dialog/index.cjs +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dummy-field/index.cjs +5 -5
- package/dist/components/dummy-field/index.js +4 -4
- package/dist/components/field-group/field-group-icon.d.cts +1 -1
- package/dist/components/field-group/field-group-icon.d.ts +1 -1
- package/dist/components/field-group/index.cjs +4 -4
- package/dist/components/field-group/index.js +3 -3
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/input-otp/input-otp.type.d.cts +1 -1
- package/dist/components/input-otp/input-otp.type.d.ts +1 -1
- package/dist/components/list-box/list-box-item-suffix.d.cts +1 -1
- package/dist/components/list-box/list-box-item-suffix.d.ts +1 -1
- package/dist/components/mask-field/index.cjs +5 -5
- package/dist/components/mask-field/index.js +4 -4
- package/dist/components/menu/index.cjs +2 -2
- package/dist/components/menu/index.js +1 -1
- package/dist/components/number-field/index.cjs +5 -5
- package/dist/components/number-field/index.js +4 -4
- package/dist/components/phone-number-field/index.cjs +37 -30
- package/dist/components/phone-number-field/index.js +13 -6
- package/dist/components/popover/index.cjs +2 -2
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.recipe.d.cts +1 -1
- package/dist/components/popover/popover.recipe.d.ts +1 -1
- package/dist/components/search-field/index.cjs +5 -5
- package/dist/components/search-field/index.js +4 -4
- package/dist/components/select/index.cjs +10 -3
- package/dist/components/select/index.d.cts +45 -4
- package/dist/components/select/index.d.ts +45 -4
- package/dist/components/select/index.js +9 -2
- package/dist/components/select/select-description.d.cts +14 -0
- package/dist/components/select/select-description.d.ts +14 -0
- package/dist/components/select/select-error.d.cts +13 -0
- package/dist/components/select/select-error.d.ts +13 -0
- package/dist/components/select/select-group-label.d.cts +11 -0
- package/dist/components/select/select-group-label.d.ts +11 -0
- package/dist/components/select/select-indicator.d.cts +1 -1
- package/dist/components/select/select-indicator.d.ts +1 -1
- package/dist/components/select/select-label.d.cts +11 -2
- package/dist/components/select/select-label.d.ts +11 -2
- package/dist/components/select/select.d.cts +49 -9
- package/dist/components/select/select.d.ts +49 -9
- package/dist/components/select/select.recipe.d.cts +1 -1
- package/dist/components/select/select.recipe.d.ts +1 -1
- package/dist/components/select/select.type.d.cts +33 -9
- package/dist/components/select/select.type.d.ts +33 -9
- package/dist/components/skeleton/skeleton.type.d.cts +1 -1
- package/dist/components/skeleton/skeleton.type.d.ts +1 -1
- package/dist/components/slide-button/index.cjs +30 -0
- package/dist/components/slide-button/index.d.cts +44 -0
- package/dist/components/slide-button/index.d.ts +44 -0
- package/dist/components/slide-button/index.js +30 -0
- package/dist/components/slide-button/slide-button-fill.d.cts +29 -0
- package/dist/components/slide-button/slide-button-fill.d.ts +29 -0
- package/dist/components/slide-button/slide-button-icon.d.cts +10 -0
- package/dist/components/slide-button/slide-button-icon.d.ts +10 -0
- package/dist/components/slide-button/slide-button-label.d.cts +20 -0
- package/dist/components/slide-button/slide-button-label.d.ts +20 -0
- package/dist/components/slide-button/slide-button-thumb.d.cts +20 -0
- package/dist/components/slide-button/slide-button-thumb.d.ts +20 -0
- package/dist/components/slide-button/slide-button.animation.d.cts +33 -0
- package/dist/components/slide-button/slide-button.animation.d.ts +33 -0
- package/dist/components/slide-button/slide-button.context.d.cts +7 -0
- package/dist/components/slide-button/slide-button.context.d.ts +7 -0
- package/dist/components/slide-button/slide-button.d.cts +56 -0
- package/dist/components/slide-button/slide-button.d.ts +56 -0
- package/dist/components/slide-button/slide-button.recipe.d.cts +31 -0
- package/dist/components/slide-button/slide-button.recipe.d.ts +31 -0
- package/dist/components/slide-button/slide-button.type.d.cts +79 -0
- package/dist/components/slide-button/slide-button.type.d.ts +79 -0
- package/dist/components/slider/slider-thumb.d.cts +1 -1
- package/dist/components/slider/slider-thumb.d.ts +1 -1
- package/dist/components/slider/slider.recipe.d.cts +1 -1
- package/dist/components/slider/slider.recipe.d.ts +1 -1
- package/dist/components/spinner/spinner.d.cts +1 -1
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/switch/switch.style.d.cts +1 -1
- package/dist/components/switch/switch.style.d.ts +1 -1
- package/dist/components/table/index.cjs +3 -3
- package/dist/components/table/index.js +2 -2
- package/dist/components/text-area/index.cjs +4 -4
- package/dist/components/text-area/index.js +3 -3
- package/dist/components/text-area/text-area.d.cts +1 -1
- package/dist/components/text-area/text-area.d.ts +1 -1
- package/dist/components/text-field/index.cjs +3 -3
- package/dist/components/text-field/index.js +2 -2
- package/dist/components/text-field/text-field.type.d.cts +4 -4
- package/dist/components/text-field/text-field.type.d.ts +4 -4
- package/dist/components/time-picker/index.cjs +4 -4
- package/dist/components/time-picker/index.js +3 -3
- package/dist/components/toast/index.cjs +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/toast.animation.d.cts +2 -2
- package/dist/components/toast/toast.animation.d.ts +2 -2
- package/dist/components/toast/toast.utils.d.cts +1 -1
- package/dist/components/toast/toast.utils.d.ts +1 -1
- package/dist/components/typography/typography.type.d.cts +1 -1
- package/dist/components/typography/typography.type.d.ts +1 -1
- package/dist/hooks/use-rotation.d.cts +1 -1
- package/dist/hooks/use-rotation.d.ts +1 -1
- package/dist/index.cjs +66 -42
- package/dist/index.js +74 -50
- package/dist/system/anchored/indicator-spring.d.cts +2 -2
- package/dist/system/anchored/indicator-spring.d.ts +2 -2
- package/dist/theme/derive-colors.d.cts +1 -1
- package/dist/theme/derive-colors.d.ts +1 -1
- package/dist/theme/index.cjs +2 -2
- package/dist/theme/index.js +1 -1
- package/package.json +11 -1
|
@@ -38,7 +38,8 @@ function _optionalChain(ops) {
|
|
|
38
38
|
}
|
|
39
39
|
var _chunkFJGPDWMScjs = require('./chunk-FJGPDWMS.cjs');
|
|
40
40
|
var _chunkYVYYONTPcjs = require('./chunk-YVYYONTP.cjs');
|
|
41
|
-
var
|
|
41
|
+
var _chunkBKY5YQ7Wcjs = require('./chunk-BKY5YQ7W.cjs');
|
|
42
|
+
var _chunkL4B6Z45Qcjs = require('./chunk-L4B6Z45Q.cjs');
|
|
42
43
|
var _chunkWDDXU3OHcjs = require('./chunk-WDDXU3OH.cjs');
|
|
43
44
|
var _chunkEKS3W46Mcjs = require('./chunk-EKS3W46M.cjs');
|
|
44
45
|
var _chunkWFEMJCXOcjs = require('./chunk-WFEMJCXO.cjs');
|
|
@@ -139,7 +140,7 @@ var autocompleteRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
139
140
|
|
|
140
141
|
// src/components/autocomplete/autocomplete.tsx
|
|
141
142
|
var _jsxruntime = require('react/jsx-runtime');
|
|
142
|
-
|
|
143
|
+
var Autocomplete = _react.forwardRef.call(void 0, function Autocomplete2({
|
|
143
144
|
children,
|
|
144
145
|
variant,
|
|
145
146
|
size,
|
|
@@ -155,14 +156,21 @@ function Autocomplete({
|
|
|
155
156
|
defaultQuery = "",
|
|
156
157
|
onQueryChange,
|
|
157
158
|
isDisabled = false,
|
|
158
|
-
isInvalid = false
|
|
159
|
-
|
|
159
|
+
isInvalid = false,
|
|
160
|
+
asChild = false,
|
|
161
|
+
style,
|
|
162
|
+
...props
|
|
163
|
+
}, ref) {
|
|
160
164
|
const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0);
|
|
165
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
161
166
|
const {
|
|
162
167
|
labelFor,
|
|
163
168
|
registerLabel
|
|
164
169
|
} = _chunkFJGPDWMScjs.useLabelRegistry.call(void 0);
|
|
165
170
|
const [anchor, setAnchor] = _react.useState.call(void 0, null);
|
|
171
|
+
const id = _react.useId.call(void 0);
|
|
172
|
+
const labelId = `${id}-label`;
|
|
173
|
+
const descriptionId = `${id}-description`;
|
|
166
174
|
const [value, setValue] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
167
175
|
value: controlledValue,
|
|
168
176
|
defaultValue,
|
|
@@ -185,25 +193,32 @@ function Autocomplete({
|
|
|
185
193
|
isOpen: isOpen ? "true" : void 0,
|
|
186
194
|
isInvalid: isInvalid ? "true" : void 0
|
|
187
195
|
};
|
|
188
|
-
const styles =
|
|
196
|
+
const styles = _chunkL4B6Z45Qcjs.selectRecipe.resolve({
|
|
189
197
|
theme,
|
|
190
|
-
selection
|
|
191
|
-
states: {
|
|
192
|
-
disabled: isDisabled
|
|
193
|
-
}
|
|
198
|
+
selection
|
|
194
199
|
});
|
|
195
|
-
const pressed =
|
|
200
|
+
const pressed = _chunkL4B6Z45Qcjs.selectRecipe.resolve({
|
|
196
201
|
theme,
|
|
197
202
|
selection,
|
|
198
203
|
states: {
|
|
199
204
|
pressed: true
|
|
200
205
|
}
|
|
201
206
|
});
|
|
202
|
-
const tint = color ?
|
|
207
|
+
const tint = color ? _chunkL4B6Z45Qcjs.selectRecipe.tint({
|
|
203
208
|
theme,
|
|
204
209
|
color,
|
|
205
210
|
selection
|
|
206
211
|
}) : void 0;
|
|
212
|
+
const labelled = _chunkBKY5YQ7Wcjs.textFieldRecipe.resolve({
|
|
213
|
+
theme,
|
|
214
|
+
selection: {
|
|
215
|
+
size,
|
|
216
|
+
isInvalid: isInvalid ? "true" : void 0
|
|
217
|
+
},
|
|
218
|
+
states: {
|
|
219
|
+
disabled: isDisabled
|
|
220
|
+
}
|
|
221
|
+
});
|
|
207
222
|
const own = autocompleteRecipe.resolve({
|
|
208
223
|
theme,
|
|
209
224
|
selection: {
|
|
@@ -246,6 +261,9 @@ function Autocomplete({
|
|
|
246
261
|
itemStyle: styles.item,
|
|
247
262
|
itemPressedStyle: pressed.item,
|
|
248
263
|
itemLabelStyle: styles.itemLabel,
|
|
264
|
+
labelStyle: labelled.label,
|
|
265
|
+
descriptionStyle: labelled.description,
|
|
266
|
+
errorStyle: labelled.error,
|
|
249
267
|
glyph: {
|
|
250
268
|
size: indicator.fontSize,
|
|
251
269
|
color: typeof indicator.color === "string" ? indicator.color : void 0
|
|
@@ -264,14 +282,31 @@ function Autocomplete({
|
|
|
264
282
|
anchor,
|
|
265
283
|
setAnchor,
|
|
266
284
|
labelFor,
|
|
267
|
-
registerLabel
|
|
285
|
+
registerLabel,
|
|
286
|
+
labelId,
|
|
287
|
+
descriptionId
|
|
268
288
|
};
|
|
269
|
-
}, [styles, pressed, tint, own, ownTint, value, query, setQueryState, isOpen, isDisabled, isInvalid, open, close, toggle, select, anchor, labelFor, registerLabel]);
|
|
289
|
+
}, [styles, pressed, tint, own, ownTint, labelled, labelId, descriptionId, value, query, setQueryState, isOpen, isDisabled, isInvalid, open, close, toggle, select, anchor, labelFor, registerLabel]);
|
|
290
|
+
const columnStyle = [labelled.root, styleProps, style];
|
|
291
|
+
const column = asChild ?
|
|
292
|
+
// R12 — the caller's element is the column.
|
|
293
|
+
/* @__PURE__ */
|
|
294
|
+
_jsxruntime.jsx.call(void 0, _chunkCDRGTUYFcjs.Slot, {
|
|
295
|
+
ref,
|
|
296
|
+
...rest,
|
|
297
|
+
style: columnStyle,
|
|
298
|
+
children
|
|
299
|
+
}) : /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
|
|
300
|
+
ref,
|
|
301
|
+
...rest,
|
|
302
|
+
style: columnStyle,
|
|
303
|
+
children
|
|
304
|
+
});
|
|
270
305
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, AutocompleteProvider, {
|
|
271
306
|
value: context,
|
|
272
|
-
children
|
|
307
|
+
children: column
|
|
273
308
|
});
|
|
274
|
-
}
|
|
309
|
+
});
|
|
275
310
|
Autocomplete.displayName = "XAUI.Autocomplete.Root";
|
|
276
311
|
|
|
277
312
|
// src/components/autocomplete/autocomplete-content.tsx
|
|
@@ -564,11 +599,54 @@ function partition(children) {
|
|
|
564
599
|
};
|
|
565
600
|
}
|
|
566
601
|
|
|
602
|
+
// src/components/autocomplete/autocomplete-description.tsx
|
|
603
|
+
|
|
604
|
+
var AutocompleteDescription = _react.forwardRef.call(void 0, function AutocompleteDescription2({
|
|
605
|
+
children,
|
|
606
|
+
style,
|
|
607
|
+
nativeID,
|
|
608
|
+
...props
|
|
609
|
+
}, ref) {
|
|
610
|
+
const {
|
|
611
|
+
descriptionStyle,
|
|
612
|
+
descriptionId
|
|
613
|
+
} = useAutocomplete();
|
|
614
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
615
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
|
|
616
|
+
ref,
|
|
617
|
+
nativeID: _nullishCoalesce(nativeID, () => descriptionId),
|
|
618
|
+
style: [descriptionStyle, styleProps, style],
|
|
619
|
+
...rest,
|
|
620
|
+
children
|
|
621
|
+
});
|
|
622
|
+
});
|
|
623
|
+
AutocompleteDescription.displayName = "XAUI.Autocomplete.Description";
|
|
624
|
+
|
|
625
|
+
// src/components/autocomplete/autocomplete-error.tsx
|
|
626
|
+
|
|
627
|
+
var AutocompleteError = _react.forwardRef.call(void 0, function AutocompleteError2({
|
|
628
|
+
children,
|
|
629
|
+
style,
|
|
630
|
+
...props
|
|
631
|
+
}, ref) {
|
|
632
|
+
const {
|
|
633
|
+
errorStyle
|
|
634
|
+
} = useAutocomplete();
|
|
635
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
636
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
|
|
637
|
+
ref,
|
|
638
|
+
style: [errorStyle, styleProps, style],
|
|
639
|
+
...rest,
|
|
640
|
+
children
|
|
641
|
+
});
|
|
642
|
+
});
|
|
643
|
+
AutocompleteError.displayName = "XAUI.Autocomplete.Error";
|
|
644
|
+
|
|
567
645
|
// src/components/autocomplete/autocomplete-indicator.tsx
|
|
568
|
-
const
|
|
569
|
-
code: "function
|
|
570
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
571
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
646
|
+
const _worklet_11757462218469_init_data = {
|
|
647
|
+
code: "function chunkQRH45OO3Cjs1(){const{_reactnativereanimated,progress,_chunkEKS3W46Mcjs}=this.__closure;return{transform:[{rotate:_reactnativereanimated.interpolate.call(void 0,progress.get(),[0,1],[_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0],_chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])+\"deg\"}]};}",
|
|
648
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-QRH45OO3.cjs",
|
|
649
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkQRH45OO3Cjs1\",\"_reactnativereanimated\",\"progress\",\"_chunkEKS3W46Mcjs\",\"__closure\",\"transform\",\"rotate\",\"interpolate\",\"call\",\"get\",\"INDICATOR_ROTATION\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-QRH45OO3.cjs\"],\"mappings\":\"AAwlBwE,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,QAAA,CAAAC,iBAAA,OAAAC,SAAA,CAE1E,MAAO,CACLC,SAAS,CAAE,CACT,CACEC,MAAM,CAAKL,sBAAsB,CAACM,WAAW,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEN,QAAQ,CAACO,GAAG,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACN,iBAAiB,CAACO,kBAAkB,CAAC,CAAC,CAAC,CAAEP,iBAAiB,CAACO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,MACxK,CAAC,CAEL,CAAC,CACH\",\"ignoreList\":[]}"
|
|
572
650
|
};
|
|
573
651
|
function AutocompleteIndicator(props) {
|
|
574
652
|
const {
|
|
@@ -582,32 +660,32 @@ function AutocompleteIndicator(props) {
|
|
|
582
660
|
_react.useEffect.call(void 0, () => {
|
|
583
661
|
progress.set(_reactnativereanimated.withSpring.call(void 0, isOpen ? 1 : 0, _chunkEKS3W46Mcjs.INDICATOR_SPRING));
|
|
584
662
|
}, [isOpen, progress]);
|
|
585
|
-
const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
586
|
-
|
|
663
|
+
const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkQRH45OO3Cjs1Factory({
|
|
664
|
+
_worklet_11757462218469_init_data,
|
|
587
665
|
_reactnativereanimated,
|
|
588
666
|
progress,
|
|
589
667
|
_chunkEKS3W46Mcjs
|
|
590
668
|
}) {
|
|
591
669
|
const _e = [new global.Error(), -4, -27];
|
|
592
|
-
const
|
|
670
|
+
const chunkQRH45OO3Cjs1 = function () {
|
|
593
671
|
return {
|
|
594
672
|
transform: [{
|
|
595
673
|
rotate: `${_reactnativereanimated.interpolate.call(void 0, progress.get(), [0, 1], [_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0], _chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])}deg`
|
|
596
674
|
}]
|
|
597
675
|
};
|
|
598
676
|
};
|
|
599
|
-
|
|
677
|
+
chunkQRH45OO3Cjs1.__closure = {
|
|
600
678
|
_reactnativereanimated,
|
|
601
679
|
progress,
|
|
602
680
|
_chunkEKS3W46Mcjs
|
|
603
681
|
};
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
return
|
|
682
|
+
chunkQRH45OO3Cjs1.__workletHash = 11757462218469;
|
|
683
|
+
chunkQRH45OO3Cjs1.__pluginVersion = "0.7.4";
|
|
684
|
+
chunkQRH45OO3Cjs1.__initData = _worklet_11757462218469_init_data;
|
|
685
|
+
chunkQRH45OO3Cjs1.__stackDetails = _e;
|
|
686
|
+
return chunkQRH45OO3Cjs1;
|
|
609
687
|
}({
|
|
610
|
-
|
|
688
|
+
_worklet_11757462218469_init_data,
|
|
611
689
|
_reactnativereanimated,
|
|
612
690
|
progress,
|
|
613
691
|
_chunkEKS3W46Mcjs
|
|
@@ -621,6 +699,29 @@ function AutocompleteIndicator(props) {
|
|
|
621
699
|
}
|
|
622
700
|
AutocompleteIndicator.displayName = "XAUI.Autocomplete.Indicator";
|
|
623
701
|
|
|
702
|
+
// src/components/autocomplete/autocomplete-label.tsx
|
|
703
|
+
|
|
704
|
+
var AutocompleteLabel = _react.forwardRef.call(void 0, function AutocompleteLabel2({
|
|
705
|
+
children,
|
|
706
|
+
style,
|
|
707
|
+
nativeID,
|
|
708
|
+
...props
|
|
709
|
+
}, ref) {
|
|
710
|
+
const {
|
|
711
|
+
labelStyle,
|
|
712
|
+
labelId
|
|
713
|
+
} = useAutocomplete();
|
|
714
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
715
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
|
|
716
|
+
ref,
|
|
717
|
+
nativeID: _nullishCoalesce(nativeID, () => labelId),
|
|
718
|
+
style: [labelStyle, styleProps, style],
|
|
719
|
+
...rest,
|
|
720
|
+
children
|
|
721
|
+
});
|
|
722
|
+
});
|
|
723
|
+
AutocompleteLabel.displayName = "XAUI.Autocomplete.Label";
|
|
724
|
+
|
|
624
725
|
// src/components/autocomplete/autocomplete-overlay.tsx
|
|
625
726
|
|
|
626
727
|
var AnimatedPressable = _reactnativereanimated2.default.createAnimatedComponent(_reactnative.Pressable);
|
|
@@ -678,7 +779,9 @@ var AutocompleteTrigger = _react.forwardRef.call(void 0, function AutocompleteTr
|
|
|
678
779
|
isDisabled,
|
|
679
780
|
isInvalid,
|
|
680
781
|
toggle,
|
|
681
|
-
setAnchor
|
|
782
|
+
setAnchor,
|
|
783
|
+
labelId,
|
|
784
|
+
descriptionId
|
|
682
785
|
} = useAutocomplete();
|
|
683
786
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
684
787
|
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, {
|
|
@@ -723,6 +826,8 @@ var AutocompleteTrigger = _react.forwardRef.call(void 0, function AutocompleteTr
|
|
|
723
826
|
...accessibilityState
|
|
724
827
|
},
|
|
725
828
|
"aria-invalid": isInvalid || void 0,
|
|
829
|
+
"aria-labelledby": labelId,
|
|
830
|
+
"aria-describedby": descriptionId,
|
|
726
831
|
...rest,
|
|
727
832
|
onLayout: handleLayout,
|
|
728
833
|
style: [triggerStyle, isPressed && triggerPressedStyle, styleProps, typeof style === "function" ? style({
|
|
@@ -765,7 +870,8 @@ var AutocompleteValue = _react.forwardRef.call(void 0, function AutocompleteValu
|
|
|
765
870
|
AutocompleteValue.displayName = "XAUI.Autocomplete.Value";
|
|
766
871
|
|
|
767
872
|
// src/components/autocomplete/index.ts
|
|
768
|
-
var
|
|
873
|
+
var Autocomplete3 = Object.assign(Autocomplete, {
|
|
874
|
+
Label: AutocompleteLabel,
|
|
769
875
|
Trigger: AutocompleteTrigger,
|
|
770
876
|
Value: AutocompleteValue,
|
|
771
877
|
Indicator: AutocompleteIndicator,
|
|
@@ -774,7 +880,9 @@ var Autocomplete2 = Object.assign(Autocomplete, {
|
|
|
774
880
|
Search: AutocompleteSearch,
|
|
775
881
|
Item: AutocompleteItem,
|
|
776
882
|
ItemLabel: AutocompleteItemLabel,
|
|
777
|
-
Empty: AutocompleteEmpty
|
|
883
|
+
Empty: AutocompleteEmpty,
|
|
884
|
+
Description: AutocompleteDescription,
|
|
885
|
+
Error: AutocompleteError
|
|
778
886
|
});
|
|
779
887
|
exports.useAutocomplete = useAutocomplete;
|
|
780
888
|
exports.useAutocompleteItem = useAutocompleteItem;
|
|
@@ -785,8 +893,11 @@ exports.AutocompleteItemLabel = AutocompleteItemLabel;
|
|
|
785
893
|
exports.AutocompleteItem = AutocompleteItem;
|
|
786
894
|
exports.AutocompleteSearch = AutocompleteSearch;
|
|
787
895
|
exports.AutocompleteContent = AutocompleteContent;
|
|
896
|
+
exports.AutocompleteDescription = AutocompleteDescription;
|
|
897
|
+
exports.AutocompleteError = AutocompleteError;
|
|
788
898
|
exports.AutocompleteIndicator = AutocompleteIndicator;
|
|
899
|
+
exports.AutocompleteLabel = AutocompleteLabel;
|
|
789
900
|
exports.AutocompleteOverlay = AutocompleteOverlay;
|
|
790
901
|
exports.AutocompleteTrigger = AutocompleteTrigger;
|
|
791
902
|
exports.AutocompleteValue = AutocompleteValue;
|
|
792
|
-
exports.Autocomplete2 =
|
|
903
|
+
exports.Autocomplete2 = Autocomplete3;
|