@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
|
@@ -29,7 +29,7 @@ function _optionalChain(ops) {
|
|
|
29
29
|
}
|
|
30
30
|
return value;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var _chunkQRH45OO3cjs = require('./chunk-QRH45OO3.cjs');
|
|
33
33
|
var _chunkEKS3W46Mcjs = require('./chunk-EKS3W46M.cjs');
|
|
34
34
|
var _chunkWFEMJCXOcjs = require('./chunk-WFEMJCXO.cjs');
|
|
35
35
|
var _chunkGSZDN6EZcjs = require('./chunk-GSZDN6EZ.cjs');
|
|
@@ -43,10 +43,10 @@ var _reactnativereanimated = require('react-native-reanimated');
|
|
|
43
43
|
var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
|
|
44
44
|
var _jsxruntime = require('react/jsx-runtime');
|
|
45
45
|
var HIT_SLOP = 8;
|
|
46
|
-
const
|
|
47
|
-
code: "function
|
|
48
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
49
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
46
|
+
const _worklet_11295820641151_init_data = {
|
|
47
|
+
code: "function chunkCS6CYB4ICjs1(){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\"}]};}",
|
|
48
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-CS6CYB4I.cjs",
|
|
49
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkCS6CYB4ICjs1\",\"_reactnativereanimated\",\"progress\",\"_chunkEKS3W46Mcjs\",\"__closure\",\"transform\",\"rotate\",\"interpolate\",\"call\",\"get\",\"INDICATOR_ROTATION\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-CS6CYB4I.cjs\"],\"mappings\":\"AAiDwE,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\":[]}"
|
|
50
50
|
};
|
|
51
51
|
function ComboboxIndicator(props) {
|
|
52
52
|
const {
|
|
@@ -58,37 +58,37 @@ function ComboboxIndicator(props) {
|
|
|
58
58
|
isOpen,
|
|
59
59
|
isDisabled,
|
|
60
60
|
toggle
|
|
61
|
-
} =
|
|
61
|
+
} = _chunkQRH45OO3cjs.useAutocomplete.call(void 0);
|
|
62
62
|
const progress = _reactnativereanimated.useSharedValue.call(void 0, isOpen ? 1 : 0);
|
|
63
63
|
_react.useEffect.call(void 0, () => {
|
|
64
64
|
progress.set(_reactnativereanimated.withSpring.call(void 0, isOpen ? 1 : 0, _chunkEKS3W46Mcjs.INDICATOR_SPRING));
|
|
65
65
|
}, [isOpen, progress]);
|
|
66
|
-
const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
67
|
-
|
|
66
|
+
const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkCS6CYB4ICjs1Factory({
|
|
67
|
+
_worklet_11295820641151_init_data,
|
|
68
68
|
_reactnativereanimated,
|
|
69
69
|
progress,
|
|
70
70
|
_chunkEKS3W46Mcjs
|
|
71
71
|
}) {
|
|
72
72
|
const _e = [new global.Error(), -4, -27];
|
|
73
|
-
const
|
|
73
|
+
const chunkCS6CYB4ICjs1 = function () {
|
|
74
74
|
return {
|
|
75
75
|
transform: [{
|
|
76
76
|
rotate: `${_reactnativereanimated.interpolate.call(void 0, progress.get(), [0, 1], [_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0], _chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])}deg`
|
|
77
77
|
}]
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
-
|
|
80
|
+
chunkCS6CYB4ICjs1.__closure = {
|
|
81
81
|
_reactnativereanimated,
|
|
82
82
|
progress,
|
|
83
83
|
_chunkEKS3W46Mcjs
|
|
84
84
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return
|
|
85
|
+
chunkCS6CYB4ICjs1.__workletHash = 11295820641151;
|
|
86
|
+
chunkCS6CYB4ICjs1.__pluginVersion = "0.7.4";
|
|
87
|
+
chunkCS6CYB4ICjs1.__initData = _worklet_11295820641151_init_data;
|
|
88
|
+
chunkCS6CYB4ICjs1.__stackDetails = _e;
|
|
89
|
+
return chunkCS6CYB4ICjs1;
|
|
90
90
|
}({
|
|
91
|
-
|
|
91
|
+
_worklet_11295820641151_init_data,
|
|
92
92
|
_reactnativereanimated,
|
|
93
93
|
progress,
|
|
94
94
|
_chunkEKS3W46Mcjs
|
|
@@ -137,9 +137,12 @@ var ComboboxInput = _react.forwardRef.call(void 0, function ComboboxInput2({
|
|
|
137
137
|
setQuery,
|
|
138
138
|
isOpen,
|
|
139
139
|
isDisabled,
|
|
140
|
+
isInvalid,
|
|
140
141
|
open,
|
|
141
|
-
labelFor
|
|
142
|
-
|
|
142
|
+
labelFor,
|
|
143
|
+
labelId,
|
|
144
|
+
descriptionId
|
|
145
|
+
} = _chunkQRH45OO3cjs.useAutocomplete.call(void 0);
|
|
143
146
|
const handleChangeText = _react.useCallback.call(void 0, next => {
|
|
144
147
|
setQuery(next);
|
|
145
148
|
_optionalChain([onChangeText, 'optionalCall', _ => _(next)]);
|
|
@@ -158,6 +161,9 @@ var ComboboxInput = _react.forwardRef.call(void 0, function ComboboxInput2({
|
|
|
158
161
|
autoCorrect: false,
|
|
159
162
|
autoCapitalize: "none",
|
|
160
163
|
placeholderTextColor: placeholderColor,
|
|
164
|
+
"aria-labelledby": labelId,
|
|
165
|
+
"aria-describedby": descriptionId,
|
|
166
|
+
"aria-invalid": isInvalid || void 0,
|
|
161
167
|
...rest,
|
|
162
168
|
style: [valueStyle, sheet.input, styleProps, style]
|
|
163
169
|
});
|
|
@@ -167,7 +173,7 @@ ComboboxInput.displayName = "XAUI.Combobox.Input";
|
|
|
167
173
|
// src/components/combobox/combobox.tsx
|
|
168
174
|
|
|
169
175
|
function ComboboxRoot(props) {
|
|
170
|
-
return /* @__PURE__ */_jsxruntime.jsx.call(void 0,
|
|
176
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkQRH45OO3cjs.Autocomplete, {
|
|
171
177
|
...props
|
|
172
178
|
});
|
|
173
179
|
}
|
|
@@ -191,7 +197,7 @@ var ComboboxTrigger = _react.forwardRef.call(void 0, function ComboboxTrigger2({
|
|
|
191
197
|
isDisabled,
|
|
192
198
|
isInvalid,
|
|
193
199
|
setAnchor
|
|
194
|
-
} =
|
|
200
|
+
} = _chunkQRH45OO3cjs.useAutocomplete.call(void 0);
|
|
195
201
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
196
202
|
const node = _react.useRef.call(void 0, null);
|
|
197
203
|
const refs = _chunkWFEMJCXOcjs.useMergedRef.call(void 0, node, ref);
|
|
@@ -235,14 +241,17 @@ ComboboxTrigger.displayName = "XAUI.Combobox.Trigger";
|
|
|
235
241
|
|
|
236
242
|
// src/components/combobox/index.ts
|
|
237
243
|
var Combobox = Object.assign(ComboboxRoot, {
|
|
244
|
+
Label: _chunkQRH45OO3cjs.AutocompleteLabel,
|
|
238
245
|
Trigger: ComboboxTrigger,
|
|
239
246
|
Input: ComboboxInput,
|
|
240
247
|
Indicator: ComboboxIndicator,
|
|
241
|
-
Overlay:
|
|
242
|
-
Content:
|
|
243
|
-
Item:
|
|
244
|
-
ItemLabel:
|
|
245
|
-
Empty:
|
|
248
|
+
Overlay: _chunkQRH45OO3cjs.AutocompleteOverlay,
|
|
249
|
+
Content: _chunkQRH45OO3cjs.AutocompleteContent,
|
|
250
|
+
Item: _chunkQRH45OO3cjs.AutocompleteItem,
|
|
251
|
+
ItemLabel: _chunkQRH45OO3cjs.AutocompleteItemLabel,
|
|
252
|
+
Empty: _chunkQRH45OO3cjs.AutocompleteEmpty,
|
|
253
|
+
Description: _chunkQRH45OO3cjs.AutocompleteDescription,
|
|
254
|
+
Error: _chunkQRH45OO3cjs.AutocompleteError
|
|
246
255
|
});
|
|
247
256
|
exports.ComboboxIndicator = ComboboxIndicator;
|
|
248
257
|
exports.ComboboxInput = ComboboxInput;
|
|
@@ -135,10 +135,10 @@ var AvatarImage = _react.forwardRef.call(void 0, function AvatarImage2({
|
|
|
135
135
|
});
|
|
136
136
|
});
|
|
137
137
|
AvatarImage.displayName = "XAUI.Avatar.Image";
|
|
138
|
-
const
|
|
139
|
-
code: "function
|
|
140
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
141
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
138
|
+
const _worklet_7695127479397_init_data = {
|
|
139
|
+
code: "function chunkENZBKNFJCjs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
140
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ENZBKNFJ.cjs",
|
|
141
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkENZBKNFJCjs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ENZBKNFJ.cjs\"],\"mappings\":\"AAsG+E,SAAAA,iBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
|
|
142
142
|
};
|
|
143
143
|
var FadingImage = _react.forwardRef.call(void 0, function FadingImage2({
|
|
144
144
|
onLoad,
|
|
@@ -152,26 +152,26 @@ var FadingImage = _react.forwardRef.call(void 0, function FadingImage2({
|
|
|
152
152
|
});
|
|
153
153
|
_optionalChain([onLoad, 'optionalCall', _ => _(event)]);
|
|
154
154
|
}, [opacity, onLoad]);
|
|
155
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
156
|
-
|
|
155
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkENZBKNFJCjs1Factory({
|
|
156
|
+
_worklet_7695127479397_init_data,
|
|
157
157
|
opacity
|
|
158
158
|
}) {
|
|
159
159
|
const _e = [new global.Error(), -2, -27];
|
|
160
|
-
const
|
|
160
|
+
const chunkENZBKNFJCjs1 = function () {
|
|
161
161
|
return {
|
|
162
162
|
opacity: opacity.value
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
|
-
|
|
165
|
+
chunkENZBKNFJCjs1.__closure = {
|
|
166
166
|
opacity
|
|
167
167
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
return
|
|
168
|
+
chunkENZBKNFJCjs1.__workletHash = 7695127479397;
|
|
169
|
+
chunkENZBKNFJCjs1.__pluginVersion = "0.7.4";
|
|
170
|
+
chunkENZBKNFJCjs1.__initData = _worklet_7695127479397_init_data;
|
|
171
|
+
chunkENZBKNFJCjs1.__stackDetails = _e;
|
|
172
|
+
return chunkENZBKNFJCjs1;
|
|
173
173
|
}({
|
|
174
|
-
|
|
174
|
+
_worklet_7695127479397_init_data,
|
|
175
175
|
opacity
|
|
176
176
|
}), [opacity]);
|
|
177
177
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.Image, {
|
|
@@ -330,7 +330,7 @@ var avatarRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
330
330
|
radius: _chunkSL3V7R2Ycjs.radiusAxis.call(void 0, "root")
|
|
331
331
|
},
|
|
332
332
|
/**
|
|
333
|
-
* A circle at every size, where
|
|
333
|
+
* A circle at every size, where the reference implementation fixes one large radius for all three — which
|
|
334
334
|
* makes their small avatars round and their large ones squircles. `full` says the shape
|
|
335
335
|
* the name means once, and `radius` is still there for the logo that wants a square.
|
|
336
336
|
*/
|
|
@@ -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');
|
|
@@ -245,11 +246,76 @@ var SelectContent = _react.forwardRef.call(void 0, function SelectContent2({
|
|
|
245
246
|
});
|
|
246
247
|
SelectContent.displayName = "XAUI.Select.Content";
|
|
247
248
|
|
|
249
|
+
// src/components/select/select-description.tsx
|
|
250
|
+
|
|
251
|
+
var SelectDescription = _react.forwardRef.call(void 0, function SelectDescription2({
|
|
252
|
+
children,
|
|
253
|
+
style,
|
|
254
|
+
nativeID,
|
|
255
|
+
...props
|
|
256
|
+
}, ref) {
|
|
257
|
+
const {
|
|
258
|
+
descriptionStyle,
|
|
259
|
+
descriptionId
|
|
260
|
+
} = useSelect();
|
|
261
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
262
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
|
|
263
|
+
ref,
|
|
264
|
+
nativeID: _nullishCoalesce(nativeID, () => descriptionId),
|
|
265
|
+
style: [descriptionStyle, styleProps, style],
|
|
266
|
+
...rest,
|
|
267
|
+
children
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
SelectDescription.displayName = "XAUI.Select.Description";
|
|
271
|
+
|
|
272
|
+
// src/components/select/select-error.tsx
|
|
273
|
+
|
|
274
|
+
var SelectError = _react.forwardRef.call(void 0, function SelectError2({
|
|
275
|
+
children,
|
|
276
|
+
style,
|
|
277
|
+
...props
|
|
278
|
+
}, ref) {
|
|
279
|
+
const {
|
|
280
|
+
errorStyle
|
|
281
|
+
} = useSelect();
|
|
282
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
283
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
|
|
284
|
+
ref,
|
|
285
|
+
style: [errorStyle, styleProps, style],
|
|
286
|
+
...rest,
|
|
287
|
+
children
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
SelectError.displayName = "XAUI.Select.Error";
|
|
291
|
+
|
|
292
|
+
// src/components/select/select-group-label.tsx
|
|
293
|
+
|
|
294
|
+
var SelectGroupLabel = _react.forwardRef.call(void 0, function SelectGroupLabel2({
|
|
295
|
+
children,
|
|
296
|
+
accessibilityRole = "header",
|
|
297
|
+
style,
|
|
298
|
+
...props
|
|
299
|
+
}, ref) {
|
|
300
|
+
const {
|
|
301
|
+
groupLabelStyle
|
|
302
|
+
} = useSelect();
|
|
303
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
304
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
|
|
305
|
+
ref,
|
|
306
|
+
accessibilityRole,
|
|
307
|
+
...rest,
|
|
308
|
+
style: [groupLabelStyle, styleProps, style],
|
|
309
|
+
children
|
|
310
|
+
});
|
|
311
|
+
});
|
|
312
|
+
SelectGroupLabel.displayName = "XAUI.Select.GroupLabel";
|
|
313
|
+
|
|
248
314
|
// src/components/select/select-indicator.tsx
|
|
249
|
-
const
|
|
250
|
-
code: "function
|
|
251
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
252
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
315
|
+
const _worklet_997286029610_init_data = {
|
|
316
|
+
code: "function chunkETY5PM3ECjs1(){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\"}]};}",
|
|
317
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ETY5PM3E.cjs",
|
|
318
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkETY5PM3ECjs1\",\"_reactnativereanimated\",\"progress\",\"_chunkEKS3W46Mcjs\",\"__closure\",\"transform\",\"rotate\",\"interpolate\",\"call\",\"get\",\"INDICATOR_ROTATION\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ETY5PM3E.cjs\"],\"mappings\":\"AA8TwE,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\":[]}"
|
|
253
319
|
};
|
|
254
320
|
function SelectIndicator({
|
|
255
321
|
as = _chunkGSZDN6EZcjs.ChevronDownIcon,
|
|
@@ -263,32 +329,32 @@ function SelectIndicator({
|
|
|
263
329
|
_react.useEffect.call(void 0, () => {
|
|
264
330
|
progress.set(_reactnativereanimated.withSpring.call(void 0, isOpen ? 1 : 0, _chunkEKS3W46Mcjs.INDICATOR_SPRING));
|
|
265
331
|
}, [isOpen, progress]);
|
|
266
|
-
const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
267
|
-
|
|
332
|
+
const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkETY5PM3ECjs1Factory({
|
|
333
|
+
_worklet_997286029610_init_data,
|
|
268
334
|
_reactnativereanimated,
|
|
269
335
|
progress,
|
|
270
336
|
_chunkEKS3W46Mcjs
|
|
271
337
|
}) {
|
|
272
338
|
const _e = [new global.Error(), -4, -27];
|
|
273
|
-
const
|
|
339
|
+
const chunkETY5PM3ECjs1 = function () {
|
|
274
340
|
return {
|
|
275
341
|
transform: [{
|
|
276
342
|
rotate: `${_reactnativereanimated.interpolate.call(void 0, progress.get(), [0, 1], [_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0], _chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])}deg`
|
|
277
343
|
}]
|
|
278
344
|
};
|
|
279
345
|
};
|
|
280
|
-
|
|
346
|
+
chunkETY5PM3ECjs1.__closure = {
|
|
281
347
|
_reactnativereanimated,
|
|
282
348
|
progress,
|
|
283
349
|
_chunkEKS3W46Mcjs
|
|
284
350
|
};
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
return
|
|
351
|
+
chunkETY5PM3ECjs1.__workletHash = 997286029610;
|
|
352
|
+
chunkETY5PM3ECjs1.__pluginVersion = "0.7.4";
|
|
353
|
+
chunkETY5PM3ECjs1.__initData = _worklet_997286029610_init_data;
|
|
354
|
+
chunkETY5PM3ECjs1.__stackDetails = _e;
|
|
355
|
+
return chunkETY5PM3ECjs1;
|
|
290
356
|
}({
|
|
291
|
-
|
|
357
|
+
_worklet_997286029610_init_data,
|
|
292
358
|
_reactnativereanimated,
|
|
293
359
|
progress,
|
|
294
360
|
_chunkEKS3W46Mcjs
|
|
@@ -376,19 +442,20 @@ SelectItemIndicator.displayName = "XAUI.Select.ItemIndicator";
|
|
|
376
442
|
|
|
377
443
|
var SelectLabel = _react.forwardRef.call(void 0, function SelectLabel2({
|
|
378
444
|
children,
|
|
379
|
-
accessibilityRole = "header",
|
|
380
445
|
style,
|
|
446
|
+
nativeID,
|
|
381
447
|
...props
|
|
382
448
|
}, ref) {
|
|
383
449
|
const {
|
|
384
|
-
labelStyle
|
|
450
|
+
labelStyle,
|
|
451
|
+
labelId
|
|
385
452
|
} = useSelect();
|
|
386
453
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
387
454
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
|
|
388
455
|
ref,
|
|
389
|
-
|
|
390
|
-
...rest,
|
|
456
|
+
nativeID: _nullishCoalesce(nativeID, () => labelId),
|
|
391
457
|
style: [labelStyle, styleProps, style],
|
|
458
|
+
...rest,
|
|
392
459
|
children
|
|
393
460
|
});
|
|
394
461
|
});
|
|
@@ -452,7 +519,9 @@ var SelectTrigger = _react.forwardRef.call(void 0, function SelectTrigger2({
|
|
|
452
519
|
isDisabled,
|
|
453
520
|
isInvalid,
|
|
454
521
|
toggle,
|
|
455
|
-
setAnchor
|
|
522
|
+
setAnchor,
|
|
523
|
+
labelId,
|
|
524
|
+
descriptionId
|
|
456
525
|
} = useSelect();
|
|
457
526
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
458
527
|
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, {
|
|
@@ -497,6 +566,8 @@ var SelectTrigger = _react.forwardRef.call(void 0, function SelectTrigger2({
|
|
|
497
566
|
...accessibilityState
|
|
498
567
|
},
|
|
499
568
|
"aria-invalid": isInvalid || void 0,
|
|
569
|
+
"aria-labelledby": labelId,
|
|
570
|
+
"aria-describedby": descriptionId,
|
|
500
571
|
...rest,
|
|
501
572
|
onLayout: handleLayout,
|
|
502
573
|
style: [triggerStyle, isPressed && triggerPressedStyle, styleProps, typeof style === "function" ? style({
|
|
@@ -541,7 +612,7 @@ SelectValue.displayName = "XAUI.Select.Value";
|
|
|
541
612
|
|
|
542
613
|
// src/components/select/select.tsx
|
|
543
614
|
|
|
544
|
-
|
|
615
|
+
var Select = _react.forwardRef.call(void 0, function Select2({
|
|
545
616
|
children,
|
|
546
617
|
variant,
|
|
547
618
|
size,
|
|
@@ -554,14 +625,21 @@ function Select({
|
|
|
554
625
|
defaultOpen = false,
|
|
555
626
|
onOpenChange,
|
|
556
627
|
isDisabled = false,
|
|
557
|
-
isInvalid = false
|
|
558
|
-
|
|
628
|
+
isInvalid = false,
|
|
629
|
+
asChild = false,
|
|
630
|
+
style,
|
|
631
|
+
...props
|
|
632
|
+
}, ref) {
|
|
559
633
|
const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0);
|
|
634
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
560
635
|
const {
|
|
561
636
|
labelFor,
|
|
562
637
|
registerLabel
|
|
563
638
|
} = _chunkFJGPDWMScjs.useLabelRegistry.call(void 0);
|
|
564
639
|
const [anchor, setAnchor] = _react.useState.call(void 0, null);
|
|
640
|
+
const id = _react.useId.call(void 0);
|
|
641
|
+
const labelId = `${id}-label`;
|
|
642
|
+
const descriptionId = `${id}-description`;
|
|
565
643
|
const [value, setValue] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
566
644
|
value: controlledValue,
|
|
567
645
|
defaultValue,
|
|
@@ -579,25 +657,32 @@ function Select({
|
|
|
579
657
|
isOpen: isOpen ? "true" : void 0,
|
|
580
658
|
isInvalid: isInvalid ? "true" : void 0
|
|
581
659
|
};
|
|
582
|
-
const styles =
|
|
660
|
+
const styles = _chunkL4B6Z45Qcjs.selectRecipe.resolve({
|
|
583
661
|
theme,
|
|
584
|
-
selection
|
|
585
|
-
states: {
|
|
586
|
-
disabled: isDisabled
|
|
587
|
-
}
|
|
662
|
+
selection
|
|
588
663
|
});
|
|
589
|
-
const pressed =
|
|
664
|
+
const pressed = _chunkL4B6Z45Qcjs.selectRecipe.resolve({
|
|
590
665
|
theme,
|
|
591
666
|
selection,
|
|
592
667
|
states: {
|
|
593
668
|
pressed: true
|
|
594
669
|
}
|
|
595
670
|
});
|
|
596
|
-
const tint = color ?
|
|
671
|
+
const tint = color ? _chunkL4B6Z45Qcjs.selectRecipe.tint({
|
|
597
672
|
theme,
|
|
598
673
|
color,
|
|
599
674
|
selection
|
|
600
675
|
}) : void 0;
|
|
676
|
+
const labelled = _chunkBKY5YQ7Wcjs.textFieldRecipe.resolve({
|
|
677
|
+
theme,
|
|
678
|
+
selection: {
|
|
679
|
+
size,
|
|
680
|
+
isInvalid: isInvalid ? "true" : void 0
|
|
681
|
+
},
|
|
682
|
+
states: {
|
|
683
|
+
disabled: isDisabled
|
|
684
|
+
}
|
|
685
|
+
});
|
|
601
686
|
const open = _react.useCallback.call(void 0, () => setOpen(true), [setOpen]);
|
|
602
687
|
const close = _react.useCallback.call(void 0, () => setOpen(false), [setOpen]);
|
|
603
688
|
const toggle = _react.useCallback.call(void 0, () => setOpen(!isOpen), [isOpen, setOpen]);
|
|
@@ -620,7 +705,10 @@ function Select({
|
|
|
620
705
|
indicatorStyle: styles.indicator,
|
|
621
706
|
overlayStyle: styles.overlay,
|
|
622
707
|
contentStyle: styles.content,
|
|
623
|
-
|
|
708
|
+
groupLabelStyle: styles.groupLabel,
|
|
709
|
+
labelStyle: labelled.label,
|
|
710
|
+
descriptionStyle: labelled.description,
|
|
711
|
+
errorStyle: labelled.error,
|
|
624
712
|
itemStyle: styles.item,
|
|
625
713
|
itemPressedStyle: pressed.item,
|
|
626
714
|
itemLabelStyle: styles.itemLabel,
|
|
@@ -646,34 +734,57 @@ function Select({
|
|
|
646
734
|
anchor,
|
|
647
735
|
setAnchor,
|
|
648
736
|
labelFor,
|
|
649
|
-
registerLabel
|
|
737
|
+
registerLabel,
|
|
738
|
+
labelId,
|
|
739
|
+
descriptionId
|
|
650
740
|
};
|
|
651
|
-
}, [styles, pressed, tint, value, isOpen, isDisabled, isInvalid, open, close, toggle, select, anchor, labelFor, registerLabel]);
|
|
741
|
+
}, [styles, pressed, tint, labelled, labelId, descriptionId, value, isOpen, isDisabled, isInvalid, open, close, toggle, select, anchor, labelFor, registerLabel]);
|
|
742
|
+
const columnStyle = [labelled.root, styleProps, style];
|
|
743
|
+
const column = asChild ?
|
|
744
|
+
// R12 — the caller's element is the column.
|
|
745
|
+
/* @__PURE__ */
|
|
746
|
+
_jsxruntime.jsx.call(void 0, _chunkCDRGTUYFcjs.Slot, {
|
|
747
|
+
ref,
|
|
748
|
+
...rest,
|
|
749
|
+
style: columnStyle,
|
|
750
|
+
children
|
|
751
|
+
}) : /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
|
|
752
|
+
ref,
|
|
753
|
+
...rest,
|
|
754
|
+
style: columnStyle,
|
|
755
|
+
children
|
|
756
|
+
});
|
|
652
757
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, SelectProvider, {
|
|
653
758
|
value: context,
|
|
654
|
-
children
|
|
759
|
+
children: column
|
|
655
760
|
});
|
|
656
|
-
}
|
|
761
|
+
});
|
|
657
762
|
Select.displayName = "XAUI.Select.Root";
|
|
658
763
|
|
|
659
764
|
// src/components/select/index.ts
|
|
660
|
-
var
|
|
765
|
+
var Select3 = Object.assign(Select, {
|
|
766
|
+
Label: SelectLabel,
|
|
661
767
|
Trigger: SelectTrigger,
|
|
662
768
|
Value: SelectValue,
|
|
663
769
|
Indicator: SelectIndicator,
|
|
664
770
|
Overlay: SelectOverlay,
|
|
665
771
|
Content: SelectContent,
|
|
666
|
-
|
|
772
|
+
GroupLabel: SelectGroupLabel,
|
|
667
773
|
Item: SelectItem,
|
|
668
774
|
ItemLabel: SelectItemLabel,
|
|
669
775
|
ItemDescription: SelectItemDescription,
|
|
670
|
-
ItemIndicator: SelectItemIndicator
|
|
776
|
+
ItemIndicator: SelectItemIndicator,
|
|
777
|
+
Description: SelectDescription,
|
|
778
|
+
Error: SelectError
|
|
671
779
|
});
|
|
672
780
|
exports.useSelect = useSelect;
|
|
673
781
|
exports.useSelectItem = useSelectItem;
|
|
674
782
|
exports.SelectItemLabel = SelectItemLabel;
|
|
675
783
|
exports.SelectItem = SelectItem;
|
|
676
784
|
exports.SelectContent = SelectContent;
|
|
785
|
+
exports.SelectDescription = SelectDescription;
|
|
786
|
+
exports.SelectError = SelectError;
|
|
787
|
+
exports.SelectGroupLabel = SelectGroupLabel;
|
|
677
788
|
exports.SelectIndicator = SelectIndicator;
|
|
678
789
|
exports.SelectItemDescription = SelectItemDescription;
|
|
679
790
|
exports.CheckIcon = CheckIcon;
|
|
@@ -683,4 +794,4 @@ exports.SelectOverlay = SelectOverlay;
|
|
|
683
794
|
exports.SelectTrigger = SelectTrigger;
|
|
684
795
|
exports.SelectValue = SelectValue;
|
|
685
796
|
exports.Select = Select;
|
|
686
|
-
exports.Select2 =
|
|
797
|
+
exports.Select2 = Select3;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNRU5APUEcjs = require('./chunk-NRU5APUE.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -11,14 +11,14 @@ var _chunkNADCILBLcjs = require('./chunk-NADCILBL.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk2IOL3VDPcjs = require('./chunk-2IOL3VDP.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var _chunkWLWZG2PAcjs = require('./chunk-WLWZG2PA.cjs');
|
|
18
17
|
|
|
18
|
+
var _chunkWNEDQTH6cjs = require('./chunk-WNEDQTH6.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkBKY5YQ7Wcjs = require('./chunk-BKY5YQ7W.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkSL3V7R2Ycjs = require('./chunk-SL3V7R2Y.cjs');
|
|
@@ -43,7 +43,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
43
43
|
var SearchFieldClear = _react.forwardRef.call(void 0,
|
|
44
44
|
function SearchFieldClear2({ onPress, ...props }, ref) {
|
|
45
45
|
const { query, clear, clearStyle, clearGlyphStyle } = useSearchField();
|
|
46
|
-
const { isDisabled } =
|
|
46
|
+
const { isDisabled } = _chunk2IOL3VDPcjs.useTextField.call(void 0, );
|
|
47
47
|
const handlePress = _react.useCallback.call(void 0,
|
|
48
48
|
(event) => {
|
|
49
49
|
clear();
|
|
@@ -52,7 +52,7 @@ var SearchFieldClear = _react.forwardRef.call(void 0,
|
|
|
52
52
|
[clear, onPress]
|
|
53
53
|
);
|
|
54
54
|
if (query.length === 0) return null;
|
|
55
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
55
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNRU5APUEcjs.FieldGroupSuffix, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
56
|
_chunkWNEDQTH6cjs.CloseButtonBase,
|
|
57
57
|
{
|
|
58
58
|
ref,
|
|
@@ -75,13 +75,13 @@ var SearchFieldField = _react.forwardRef.call(void 0,
|
|
|
75
75
|
function SearchFieldField2({ style, ...props }, ref) {
|
|
76
76
|
const { query, onType, submit, boxStyle } = useSearchField();
|
|
77
77
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
78
|
-
const group =
|
|
78
|
+
const group = _chunkNRU5APUEcjs.useOptionalFieldGroup.call(void 0, );
|
|
79
79
|
const padding = _react.useMemo.call(void 0,
|
|
80
|
-
() =>
|
|
80
|
+
() => _chunkNRU5APUEcjs.decoratorPadding.call(void 0, _nullishCoalesce(_optionalChain([group, 'optionalAccess', _2 => _2.prefixWidth]), () => ( 0)), _nullishCoalesce(_optionalChain([group, 'optionalAccess', _3 => _3.suffixWidth]), () => ( 0))),
|
|
81
81
|
[_optionalChain([group, 'optionalAccess', _4 => _4.prefixWidth]), _optionalChain([group, 'optionalAccess', _5 => _5.suffixWidth])]
|
|
82
82
|
);
|
|
83
83
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
84
|
-
|
|
84
|
+
_chunk2IOL3VDPcjs.TextFieldField,
|
|
85
85
|
{
|
|
86
86
|
ref,
|
|
87
87
|
accessibilityRole: "search",
|
|
@@ -128,7 +128,7 @@ function SearchFieldIcon({
|
|
|
128
128
|
size,
|
|
129
129
|
color
|
|
130
130
|
}) {
|
|
131
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
131
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNRU5APUEcjs.FieldGroupIcon, { as, size, color });
|
|
132
132
|
}
|
|
133
133
|
SearchFieldIcon.displayName = "XAUI.SearchField.Icon";
|
|
134
134
|
|
|
@@ -144,7 +144,7 @@ var VARIANT_TOKENS = {
|
|
|
144
144
|
var BAR_RATIO = 16 / 32;
|
|
145
145
|
function sizeAxis(size) {
|
|
146
146
|
return (theme) => {
|
|
147
|
-
const side = theme.fontSizes[
|
|
147
|
+
const side = theme.fontSizes[_chunkBKY5YQ7Wcjs.FIELD_GLYPH_SIZES[size]];
|
|
148
148
|
return {
|
|
149
149
|
clear: { width: side, height: side },
|
|
150
150
|
clearGlyph: { width: Math.round(side * BAR_RATIO) }
|
|
@@ -229,19 +229,19 @@ var SearchFieldRoot = _react.forwardRef.call(void 0,
|
|
|
229
229
|
}),
|
|
230
230
|
[query, report, clear, submit, styles, tint]
|
|
231
231
|
);
|
|
232
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SearchFieldProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
232
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SearchFieldProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IOL3VDPcjs.TextFieldRoot, { ref, variant: "tertiary", size, ...props, children }) });
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
235
|
SearchFieldRoot.displayName = "XAUI.SearchField.Root";
|
|
236
236
|
|
|
237
237
|
// src/components/search-field/index.ts
|
|
238
238
|
var SearchField2 = Object.assign(SearchFieldRoot, {
|
|
239
|
-
Label:
|
|
239
|
+
Label: _chunk2IOL3VDPcjs.TextFieldLabel,
|
|
240
240
|
Icon: SearchFieldIcon,
|
|
241
241
|
Field: SearchFieldField,
|
|
242
242
|
Clear: SearchFieldClear,
|
|
243
|
-
Description:
|
|
244
|
-
Error:
|
|
243
|
+
Description: _chunk2IOL3VDPcjs.TextFieldDescription,
|
|
244
|
+
Error: _chunk2IOL3VDPcjs.TextFieldError
|
|
245
245
|
});
|
|
246
246
|
|
|
247
247
|
|