@xaui/native 0.9.1-alpha.93 → 0.9.1-beta.95
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-PAQZOD2L.js → chunk-2JFMCW5E.js} +1 -1
- package/dist/chunk-2TLPFGGR.cjs +251 -0
- package/dist/{chunk-TPYOQSKT.js → chunk-2UNLQRXY.js} +1 -1
- package/dist/{chunk-JKDWYNSG.js → chunk-2XEQDQAN.js} +109 -107
- package/dist/{chunk-RXEUKYM5.js → chunk-33BA4LVN.js} +1 -1
- package/dist/{chunk-ODQHAPQW.js → chunk-4AIIAF6U.js} +24 -22
- package/dist/{chunk-QCH7X7O2.cjs → chunk-4LRVB6WR.cjs} +14 -14
- package/dist/{chunk-QUSQEYLP.cjs → chunk-53E2E7GS.cjs} +26 -28
- package/dist/{chunk-2B6PUYTP.cjs → chunk-55KGHYYU.cjs} +4 -4
- package/dist/{chunk-B33OU34Z.cjs → chunk-5O7E73QP.cjs} +12 -12
- package/dist/{chunk-FVEMTBU4.js → chunk-5XTF2JDK.js} +2 -2
- package/dist/{chunk-V2CEKPJ6.js → chunk-6MVKLRLZ.js} +1 -1
- package/dist/{chunk-RSIWSVXI.js → chunk-6NAZ2IHL.js} +1 -1
- package/dist/{chunk-LPJ3UBSO.cjs → chunk-6NRWZR7T.cjs} +2 -2
- package/dist/{chunk-FXN32S75.cjs → chunk-6SRFQSPR.cjs} +3 -3
- package/dist/{chunk-7EVW6O2Q.js → chunk-6W45YHTF.js} +1 -1
- package/dist/{chunk-7NQL5DXY.js → chunk-6XY3XAEQ.js} +1 -1
- package/dist/{chunk-UEW3GAP5.cjs → chunk-6ZWQDTGQ.cjs} +5 -5
- package/dist/{chunk-VMPCXS4S.js → chunk-7OVYYZ7H.js} +22 -20
- package/dist/{chunk-CYOUOQXT.cjs → chunk-AHJLQJOE.cjs} +5 -5
- package/dist/{chunk-OPLPLFGK.cjs → chunk-AHKKEM3K.cjs} +66 -23
- package/dist/{chunk-WIX4SYZI.cjs → chunk-AIHKBSQ5.cjs} +2 -2
- package/dist/{chunk-WRZV6ORJ.js → chunk-AYOJXFHR.js} +1 -1
- package/dist/{chunk-OD6H7ANY.js → chunk-B5DBFS6M.js} +1 -1
- package/dist/{chunk-VQGNLX5C.js → chunk-BYDGJU5A.js} +1 -1
- package/dist/{chunk-NVODH2PR.js → chunk-CCTAJXZ3.js} +63 -61
- package/dist/{chunk-ORXVXYKC.cjs → chunk-CHGBWFDI.cjs} +63 -26
- package/dist/{chunk-WLJPO3AS.cjs → chunk-CZ2NUGUI.cjs} +357 -201
- package/dist/{chunk-PYQ2P3M5.cjs → chunk-CZEWWCWG.cjs} +58 -58
- package/dist/{chunk-PDSR42YC.cjs → chunk-D22K3NZU.cjs} +3 -3
- package/dist/{chunk-TRWZEOCO.js → chunk-DBP5CA5R.js} +2 -2
- package/dist/{chunk-QN2D5ZCS.cjs → chunk-DE4RSR7Q.cjs} +3 -3
- package/dist/{chunk-FOOXBVOQ.js → chunk-E5E2QA4K.js} +22 -20
- package/dist/{chunk-LECYGVIH.js → chunk-EQUD3NHO.js} +50 -48
- package/dist/chunk-ERIGD4SE.cjs +686 -0
- package/dist/{chunk-62AYYMZP.cjs → chunk-FDYPWVNP.cjs} +3 -3
- package/dist/chunk-GN7BWYXP.cjs +627 -0
- package/dist/chunk-GWTURY4S.cjs +999 -0
- package/dist/{chunk-OW4N2C3M.cjs → chunk-HBYT7B47.cjs} +88 -61
- package/dist/{chunk-XWIPLZTD.cjs → chunk-HOV25N3M.cjs} +2 -2
- package/dist/{chunk-5MMBEDZG.cjs → chunk-I3XIZWCV.cjs} +29 -29
- package/dist/{chunk-EDNCHCIN.cjs → chunk-IAJG7GYE.cjs} +2 -2
- package/dist/{chunk-P7OHZCU3.js → chunk-IAWLQN2W.js} +2 -2
- package/dist/{chunk-RCSEVEIR.js → chunk-ICVIWXK4.js} +1 -1
- package/dist/{chunk-RREJUSAS.cjs → chunk-IMIY34F4.cjs} +3 -3
- package/dist/{chunk-ZWS3FQ3J.js → chunk-IUDQG3JI.js} +57 -57
- package/dist/{chunk-O6B72H4B.js → chunk-K7VDLVLE.js} +6 -8
- package/dist/{chunk-P2CJNTAP.js → chunk-KFB24VYT.js} +22 -20
- package/dist/chunk-KHPODIQV.cjs +540 -0
- package/dist/{chunk-CBRW53GN.cjs → chunk-KMK6FUTK.cjs} +39 -23
- package/dist/{chunk-2AFA5HA2.js → chunk-KQW25RCC.js} +77 -75
- package/dist/{chunk-X4CZYJZ6.cjs → chunk-LCGJA37L.cjs} +12 -12
- package/dist/{chunk-SUJLTC2K.js → chunk-LPGY2IDX.js} +1 -1
- package/dist/{chunk-P5M5URAB.js → chunk-LSZW4G7B.js} +31 -31
- package/dist/{chunk-GYEQEF5H.js → chunk-LUPU7FJK.js} +1 -1
- package/dist/chunk-MNBEUNC5.cjs +792 -0
- package/dist/{chunk-AIND5F7P.js → chunk-MTQGFUW5.js} +29 -29
- package/dist/chunk-NGXLJ5ZF.cjs +395 -0
- package/dist/{chunk-DYQB54JA.cjs → chunk-NPAGA6SH.cjs} +2 -2
- package/dist/{chunk-QELEKXN3.cjs → chunk-OMI2FRCU.cjs} +5 -5
- package/dist/{chunk-EBCAPIBD.js → chunk-OX23MW5E.js} +70 -50
- package/dist/{chunk-MMFIMQMQ.js → chunk-OZLOYXLW.js} +2 -2
- package/dist/{chunk-JBZ7SBRV.cjs → chunk-Q3ZKZ2Y6.cjs} +3 -3
- package/dist/{chunk-TCWW7JI2.js → chunk-QT7KLGO3.js} +65 -63
- package/dist/{chunk-6RU6GUJP.js → chunk-QZF7RSVV.js} +1 -1
- package/dist/{chunk-UYQLW7OD.js → chunk-RAYO2TJL.js} +2 -2
- package/dist/{chunk-FRLWG5LM.js → chunk-RFT5MGJC.js} +25 -25
- package/dist/chunk-SIOSYITD.cjs +1039 -0
- package/dist/{chunk-USIWPESU.js → chunk-SIX5AVXG.js} +1 -1
- package/dist/{chunk-52XUGOLD.js → chunk-SX5U5UJQ.js} +3 -3
- package/dist/{chunk-GGP2ERSV.js → chunk-T5ES7FOL.js} +1 -1
- package/dist/{chunk-MSORLKO7.cjs → chunk-V3C3ATRO.cjs} +2 -2
- package/dist/{chunk-BI5ME4QP.cjs → chunk-VBS6VWW4.cjs} +5 -5
- package/dist/{chunk-2SHWOFQV.js → chunk-VQ4OTVET.js} +29 -29
- package/dist/{chunk-6GQ7UTJ7.cjs → chunk-VXAIFOXL.cjs} +2 -2
- package/dist/{chunk-BJVO7DWJ.js → chunk-W4F4NQXM.js} +1 -1
- package/dist/{chunk-ZE4IHUUO.cjs → chunk-WNEDQTH6.cjs} +2 -2
- package/dist/{chunk-CBXILKQZ.cjs → chunk-WPYJW3WM.cjs} +3 -3
- package/dist/{chunk-QHXTO525.js → chunk-WYJHDTU7.js} +1 -1
- package/dist/{chunk-PROLOLZ5.cjs → chunk-X22PLAP6.cjs} +2 -2
- package/dist/chunk-X6GT4H4I.cjs +662 -0
- package/dist/{chunk-RLC3EXMV.js → chunk-XM4IN4Q6.js} +2 -2
- package/dist/{chunk-ZKGVOXLQ.js → chunk-XOZMGNVS.js} +1 -1
- package/dist/chunk-XXXR2AD3.cjs +94 -0
- package/dist/{chunk-JC4YCKKL.js → chunk-YI5D4QZP.js} +22 -20
- package/dist/{chunk-AR7667VN.cjs → chunk-YJA7OQQZ.cjs} +4 -4
- package/dist/{chunk-PAQD6UUF.cjs → chunk-YJIVPYMG.cjs} +3 -3
- package/dist/{chunk-JJYHW4PV.js → chunk-YOPWQHNO.js} +1 -1
- package/dist/{chunk-LKRQUQZQ.cjs → chunk-YRANVNJG.cjs} +2 -2
- package/dist/chunk-ZDJQ643D.js +62 -0
- package/dist/components/accordion/index.cjs +3 -3
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/agenda-calendar/index.cjs +4 -4
- package/dist/components/agenda-calendar/index.js +3 -3
- package/dist/components/alert/index.cjs +4 -4
- package/dist/components/alert/index.js +3 -3
- package/dist/components/autocomplete/index.cjs +3 -3
- package/dist/components/autocomplete/index.js +2 -2
- package/dist/components/bottom-sheet/index.cjs +3 -3
- package/dist/components/bottom-sheet/index.js +2 -2
- package/dist/components/button/index.cjs +3 -3
- package/dist/components/button/index.js +2 -2
- package/dist/components/calendar/index.cjs +3 -3
- package/dist/components/calendar/index.js +2 -2
- package/dist/components/card/index.cjs +3 -3
- package/dist/components/card/index.js +2 -2
- package/dist/components/carousel/index.cjs +3 -3
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/checkbox/index.cjs +3 -3
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/chip/index.cjs +4 -4
- package/dist/components/chip/index.js +3 -3
- package/dist/components/close-button/index.cjs +4 -4
- package/dist/components/close-button/index.js +3 -3
- package/dist/components/color-picker/index.cjs +6 -6
- package/dist/components/color-picker/index.js +5 -5
- package/dist/components/combobox/index.cjs +4 -4
- package/dist/components/combobox/index.js +3 -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 +6 -6
- package/dist/components/date-range-picker/index.js +5 -5
- package/dist/components/date-time-picker/date-time-picker-indicator.d.cts +2 -2
- package/dist/components/date-time-picker/date-time-picker-indicator.d.ts +2 -2
- package/dist/components/date-time-picker/date-time-picker.type.d.cts +3 -2
- package/dist/components/date-time-picker/date-time-picker.type.d.ts +3 -2
- package/dist/components/date-time-picker/index.cjs +8 -9
- package/dist/components/date-time-picker/index.d.cts +1 -1
- package/dist/components/date-time-picker/index.d.ts +1 -1
- package/dist/components/date-time-picker/index.js +7 -8
- package/dist/components/dialog/index.cjs +4 -4
- package/dist/components/dialog/index.js +3 -3
- package/dist/components/dummy-field/index.cjs +3 -3
- package/dist/components/dummy-field/index.js +2 -2
- package/dist/components/fab/index.cjs +3 -3
- package/dist/components/fab/index.js +2 -2
- package/dist/components/flip-card/index.cjs +3 -3
- package/dist/components/flip-card/index.js +2 -2
- package/dist/components/index.d.cts +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/list-box/index.cjs +2 -2
- package/dist/components/list-box/index.js +1 -1
- package/dist/components/menu/index.cjs +3 -3
- package/dist/components/menu/index.js +2 -2
- package/dist/components/morph-button/index.cjs +3 -3
- package/dist/components/morph-button/index.js +2 -2
- package/dist/components/number-field/number-field-increment.d.cts +2 -2
- package/dist/components/number-field/number-field-increment.d.ts +2 -2
- package/dist/components/number-pad/index.cjs +3 -3
- package/dist/components/number-pad/index.js +2 -2
- package/dist/components/number-stepper/index.cjs +3 -3
- package/dist/components/number-stepper/index.js +2 -2
- package/dist/components/pager/index.cjs +2 -2
- package/dist/components/pager/index.js +1 -1
- package/dist/components/phone-number-field/index.cjs +14 -14
- package/dist/components/phone-number-field/index.js +3 -3
- package/dist/components/popover/index.cjs +3 -3
- package/dist/components/popover/index.js +2 -2
- package/dist/components/radio/index.cjs +3 -3
- package/dist/components/radio/index.js +2 -2
- package/dist/components/range-calendar/index.cjs +4 -4
- package/dist/components/range-calendar/index.js +3 -3
- package/dist/components/rating/index.cjs +3 -3
- package/dist/components/rating/index.js +2 -2
- package/dist/components/search-field/index.cjs +4 -4
- package/dist/components/search-field/index.js +3 -3
- package/dist/components/segment/index.cjs +4 -4
- package/dist/components/segment/index.js +2 -2
- package/dist/components/select/index.cjs +3 -3
- package/dist/components/select/index.js +2 -2
- package/dist/components/slider/index.cjs +2 -2
- package/dist/components/slider/index.js +1 -1
- package/dist/components/snackbar/index.cjs +3 -3
- package/dist/components/snackbar/index.js +2 -2
- package/dist/components/switch/index.cjs +3 -3
- package/dist/components/switch/index.js +2 -2
- package/dist/components/table/index.cjs +4 -4
- package/dist/components/table/index.js +3 -3
- package/dist/components/tabs/index.cjs +4 -4
- package/dist/components/tabs/index.js +3 -3
- package/dist/components/tag-group/index.cjs +4 -4
- package/dist/components/tag-group/index.js +3 -3
- package/dist/components/time-picker/index.cjs +4 -5
- package/dist/components/time-picker/index.d.cts +1 -1
- package/dist/components/time-picker/index.d.ts +1 -1
- package/dist/components/time-picker/index.js +3 -4
- package/dist/components/time-picker/time-picker-display.d.cts +3 -3
- package/dist/components/time-picker/time-picker-display.d.ts +3 -3
- package/dist/components/time-picker/time-picker-indicator.d.cts +2 -2
- package/dist/components/time-picker/time-picker-indicator.d.ts +2 -2
- package/dist/components/time-picker/time-picker.d.cts +1 -1
- package/dist/components/time-picker/time-picker.d.ts +1 -1
- package/dist/components/time-picker/time-picker.type.d.cts +11 -1
- package/dist/components/time-picker/time-picker.type.d.ts +11 -1
- package/dist/components/toast/index.cjs +3 -3
- package/dist/components/toast/index.js +2 -2
- package/dist/components/toggle-button/index.cjs +3 -3
- package/dist/components/toggle-button/index.js +2 -2
- package/dist/components/wheel-picker/index.cjs +2 -2
- package/dist/components/wheel-picker/index.js +1 -1
- package/dist/index.cjs +47 -60
- package/dist/index.js +50 -63
- package/dist/system/index.cjs +3 -3
- package/dist/system/index.js +2 -2
- package/dist/utils/time.d.cts +29 -0
- package/dist/utils/time.d.ts +29 -0
- package/package.json +1 -11
- package/dist/chunk-3MRCSXGT.js +0 -73
- package/dist/chunk-5E6SHYEQ.cjs +0 -631
- package/dist/chunk-6JAGPPZU.cjs +0 -788
- package/dist/chunk-CEPX7CKM.cjs +0 -365
- package/dist/chunk-CHFPFYNV.js +0 -60
- package/dist/chunk-ECR6GPJ6.js +0 -198
- package/dist/chunk-GBTNFQXN.cjs +0 -33
- package/dist/chunk-GZAGWNQM.cjs +0 -719
- package/dist/chunk-ILXKBDC6.cjs +0 -209
- package/dist/chunk-IPD3IUE2.cjs +0 -640
- package/dist/chunk-P2V6PIM7.cjs +0 -478
- package/dist/chunk-Q2BWXT55.cjs +0 -1011
- package/dist/chunk-UFKSUELU.cjs +0 -453
- package/dist/chunk-W4IPOWLY.cjs +0 -198
- package/dist/chunk-YSTLHVQV.cjs +0 -73
- package/dist/components/time-field/index.cjs +0 -27
- package/dist/components/time-field/index.d.cts +0 -52
- package/dist/components/time-field/index.d.ts +0 -52
- package/dist/components/time-field/index.js +0 -27
- package/dist/components/time-field/time-field-field.d.cts +0 -11
- package/dist/components/time-field/time-field-field.d.ts +0 -11
- package/dist/components/time-field/time-field-period.d.cts +0 -34
- package/dist/components/time-field/time-field-period.d.ts +0 -34
- package/dist/components/time-field/time-field.context.d.cts +0 -9
- package/dist/components/time-field/time-field.context.d.ts +0 -9
- package/dist/components/time-field/time-field.d.cts +0 -56
- package/dist/components/time-field/time-field.d.ts +0 -56
- package/dist/components/time-field/time-field.type.d.cts +0 -72
- package/dist/components/time-field/time-field.type.d.ts +0 -72
- package/dist/utils/time-mask.d.cts +0 -68
- package/dist/utils/time-mask.d.ts +0 -68
|
@@ -58,10 +58,10 @@ var FAR_OPACITY = 0.25;
|
|
|
58
58
|
var FAR_SCALE = 0.82;
|
|
59
59
|
var FAR_ANGLE = 55;
|
|
60
60
|
var PERSPECTIVE = 600;
|
|
61
|
-
const
|
|
62
|
-
code: "function
|
|
63
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
64
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
61
|
+
const _worklet_14507715361558_init_data = {
|
|
62
|
+
code: "function chunkMTQGFUW5Js1(){const{index,offset,rowHeight,FADE_DISTANCE,interpolate,FAR_OPACITY,PERSPECTIVE,FAR_ANGLE,FAR_SCALE}=this.__closure;const distance=index-offset.value/rowHeight;const range=[-FADE_DISTANCE,0,FADE_DISTANCE];return{opacity:interpolate(distance,range,[FAR_OPACITY,1,FAR_OPACITY],\"clamp\"),transform:[{perspective:PERSPECTIVE},{rotateX:interpolate(distance,range,[FAR_ANGLE,0,-FAR_ANGLE],\"clamp\")+\"deg\"},{scale:interpolate(distance,range,[FAR_SCALE,1,FAR_SCALE],\"clamp\")}]};}",
|
|
63
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-MTQGFUW5.js",
|
|
64
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkMTQGFUW5Js1\",\"index\",\"offset\",\"rowHeight\",\"FADE_DISTANCE\",\"interpolate\",\"FAR_OPACITY\",\"PERSPECTIVE\",\"FAR_ANGLE\",\"FAR_SCALE\",\"__closure\",\"distance\",\"value\",\"range\",\"opacity\",\"transform\",\"perspective\",\"rotateX\",\"scale\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-MTQGFUW5.js\"],\"mappings\":\"AA2E2C,SAAAA,gBAAMA,CAAA,QAAAC,KAAA,CAAAC,MAAA,CAAAC,SAAA,CAAAC,aAAA,CAAAC,WAAA,CAAAC,WAAA,CAAAC,WAAA,CAAAC,SAAA,CAAAC,SAAA,OAAAC,SAAA,CAE3C,KAAM,CAAAC,QAAQ,CAAGV,KAAK,CAAGC,MAAM,CAACU,KAAK,CAAGT,SAAS,CACjD,KAAM,CAAAU,KAAK,CAAG,CAAC,CAACT,aAAa,CAAE,CAAC,CAAEA,aAAa,CAAC,CAChD,MAAO,CACLU,OAAO,CAAET,WAAW,CAClBM,QAAQ,CACRE,KAAK,CACL,CAACP,WAAW,CAAE,CAAC,CAAEA,WAAW,CAAC,CAC7B,OACF,CAAC,CACDS,SAAS,CAAE,CACT,CAAEC,WAAW,CAAET,WAAY,CAAC,CAC5B,CACEU,OAAO,CAAKZ,WAAW,CAACM,QAAQ,CAAEE,KAAK,CAAE,CAACL,SAAS,CAAE,CAAC,CAAE,CAACA,SAAS,CAAC,CAAE,OAAO,CAAC,MAC/E,CAAC,CACD,CACEU,KAAK,CAAEb,WAAW,CAACM,QAAQ,CAAEE,KAAK,CAAE,CAACJ,SAAS,CAAE,CAAC,CAAEA,SAAS,CAAC,CAAE,OAAO,CACxE,CAAC,CAEL,CAAC,CACH\",\"ignoreList\":[]}"
|
|
65
65
|
};
|
|
66
66
|
var WheelPickerItem = forwardRef(function WheelPickerItem2({
|
|
67
67
|
value,
|
|
@@ -82,8 +82,8 @@ var WheelPickerItem = forwardRef(function WheelPickerItem2({
|
|
|
82
82
|
const [styleProps, rest] = useStyleProps(props);
|
|
83
83
|
const index = indexOf(value);
|
|
84
84
|
const isSelected = index === selectedIndex;
|
|
85
|
-
const animatedStyle = useAnimatedStyle(function
|
|
86
|
-
|
|
85
|
+
const animatedStyle = useAnimatedStyle(function chunkMTQGFUW5Js1Factory({
|
|
86
|
+
_worklet_14507715361558_init_data,
|
|
87
87
|
index,
|
|
88
88
|
offset,
|
|
89
89
|
rowHeight,
|
|
@@ -95,7 +95,7 @@ var WheelPickerItem = forwardRef(function WheelPickerItem2({
|
|
|
95
95
|
FAR_SCALE
|
|
96
96
|
}) {
|
|
97
97
|
const _e = [new global.Error(), -10, -27];
|
|
98
|
-
const
|
|
98
|
+
const chunkMTQGFUW5Js1 = function () {
|
|
99
99
|
const distance = index - offset.value / rowHeight;
|
|
100
100
|
const range = [-FADE_DISTANCE, 0, FADE_DISTANCE];
|
|
101
101
|
return {
|
|
@@ -109,7 +109,7 @@ var WheelPickerItem = forwardRef(function WheelPickerItem2({
|
|
|
109
109
|
}]
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
|
-
|
|
112
|
+
chunkMTQGFUW5Js1.__closure = {
|
|
113
113
|
index,
|
|
114
114
|
offset,
|
|
115
115
|
rowHeight,
|
|
@@ -120,13 +120,13 @@ var WheelPickerItem = forwardRef(function WheelPickerItem2({
|
|
|
120
120
|
FAR_ANGLE,
|
|
121
121
|
FAR_SCALE
|
|
122
122
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
return
|
|
123
|
+
chunkMTQGFUW5Js1.__workletHash = 14507715361558;
|
|
124
|
+
chunkMTQGFUW5Js1.__pluginVersion = "0.7.4";
|
|
125
|
+
chunkMTQGFUW5Js1.__initData = _worklet_14507715361558_init_data;
|
|
126
|
+
chunkMTQGFUW5Js1.__stackDetails = _e;
|
|
127
|
+
return chunkMTQGFUW5Js1;
|
|
128
128
|
}({
|
|
129
|
-
|
|
129
|
+
_worklet_14507715361558_init_data,
|
|
130
130
|
index,
|
|
131
131
|
offset,
|
|
132
132
|
rowHeight,
|
|
@@ -152,10 +152,10 @@ WheelPickerItem.displayName = "XAUI.WheelPicker.Item";
|
|
|
152
152
|
|
|
153
153
|
// src/components/wheel-picker/wheel-picker-column.tsx
|
|
154
154
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
155
|
-
const
|
|
156
|
-
code: "function
|
|
157
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
158
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
155
|
+
const _worklet_843878544974_init_data = {
|
|
156
|
+
code: "function chunkMTQGFUW5Js2(event){const{offset}=this.__closure;offset.value=event.contentOffset.y;}",
|
|
157
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-MTQGFUW5.js",
|
|
158
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkMTQGFUW5Js2\",\"event\",\"offset\",\"__closure\",\"value\",\"contentOffset\",\"y\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-MTQGFUW5.js\"],\"mappings\":\"AAwJO,SAAAA,gBAAUA,CAAAC,KAAA,QAAAC,MAAA,OAAAC,SAAA,CAETD,MAAM,CAACE,KAAK,CAAGH,KAAK,CAACI,aAAa,CAACC,CAAC,CACtC\",\"ignoreList\":[]}"
|
|
159
159
|
};
|
|
160
160
|
var WheelPickerColumn = forwardRef2(function WheelPickerColumn2({
|
|
161
161
|
children,
|
|
@@ -190,26 +190,26 @@ var WheelPickerColumn = forwardRef2(function WheelPickerColumn2({
|
|
|
190
190
|
const offset = useSharedValue(selectedIndex * rowHeight);
|
|
191
191
|
const scroller = useRef(null);
|
|
192
192
|
const refs = useMergedRef(scroller, ref);
|
|
193
|
-
const scrollHandler = useAnimatedScrollHandler(function
|
|
194
|
-
|
|
193
|
+
const scrollHandler = useAnimatedScrollHandler(function chunkMTQGFUW5Js2Factory({
|
|
194
|
+
_worklet_843878544974_init_data,
|
|
195
195
|
offset
|
|
196
196
|
}) {
|
|
197
197
|
const _e = [new global.Error(), -2, -27];
|
|
198
|
-
const
|
|
198
|
+
const chunkMTQGFUW5Js2 = function (event) {
|
|
199
199
|
offset.value = event.contentOffset.y;
|
|
200
200
|
};
|
|
201
|
-
|
|
201
|
+
chunkMTQGFUW5Js2.__closure = {
|
|
202
202
|
offset
|
|
203
203
|
};
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
return
|
|
204
|
+
chunkMTQGFUW5Js2.__workletHash = 843878544974;
|
|
205
|
+
chunkMTQGFUW5Js2.__pluginVersion = "0.7.4";
|
|
206
|
+
chunkMTQGFUW5Js2.__initData = _worklet_843878544974_init_data;
|
|
207
|
+
chunkMTQGFUW5Js2.__stackDetails = _e;
|
|
208
|
+
return chunkMTQGFUW5Js2;
|
|
209
209
|
}({
|
|
210
|
-
|
|
210
|
+
_worklet_843878544974_init_data,
|
|
211
211
|
offset
|
|
212
|
-
}));
|
|
212
|
+
}), [offset]);
|
|
213
213
|
const settle = useCallback(event => {
|
|
214
214
|
const index = indexFromOffset(event.nativeEvent.contentOffset.y, rowHeight, values.length);
|
|
215
215
|
const next = values[index];
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
function _interopRequireDefault(obj) {
|
|
7
|
+
return obj && obj.__esModule ? obj : {
|
|
8
|
+
default: obj
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function _nullishCoalesce(lhs, rhsFn) {
|
|
12
|
+
if (lhs != null) {
|
|
13
|
+
return lhs;
|
|
14
|
+
} else {
|
|
15
|
+
return rhsFn();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function _optionalChain(ops) {
|
|
19
|
+
let lastAccessLHS = undefined;
|
|
20
|
+
let value = ops[0];
|
|
21
|
+
let i = 1;
|
|
22
|
+
while (i < ops.length) {
|
|
23
|
+
const op = ops[i];
|
|
24
|
+
const fn = ops[i + 1];
|
|
25
|
+
i += 2;
|
|
26
|
+
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (op === 'access' || op === 'optionalAccess') {
|
|
30
|
+
lastAccessLHS = value;
|
|
31
|
+
value = fn(value);
|
|
32
|
+
} else if (op === 'call' || op === 'optionalCall') {
|
|
33
|
+
value = fn((...args) => value.call(lastAccessLHS, ...args));
|
|
34
|
+
lastAccessLHS = undefined;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
var _chunkLCGJA37Lcjs = require('./chunk-LCGJA37L.cjs');
|
|
40
|
+
var _chunkX6GT4H4Icjs = require('./chunk-X6GT4H4I.cjs');
|
|
41
|
+
var _chunkJ5COSALOcjs = require('./chunk-J5COSALO.cjs');
|
|
42
|
+
var _chunkEKS3W46Mcjs = require('./chunk-EKS3W46M.cjs');
|
|
43
|
+
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
44
|
+
var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
|
|
45
|
+
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
46
|
+
var _chunkGSZDN6EZcjs = require('./chunk-GSZDN6EZ.cjs');
|
|
47
|
+
var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
|
|
48
|
+
var _chunkIIAQISBGcjs = require('./chunk-IIAQISBG.cjs');
|
|
49
|
+
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
50
|
+
|
|
51
|
+
// src/components/date-range-picker/date-range-picker.tsx
|
|
52
|
+
var _react = require('react');
|
|
53
|
+
var _reactnative = require('react-native');
|
|
54
|
+
|
|
55
|
+
// src/components/date-range-picker/date-range-picker.context.ts
|
|
56
|
+
var [DateRangePickerProvider, useDateRangePicker] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "DateRangePicker");
|
|
57
|
+
|
|
58
|
+
// src/components/date-range-picker/date-range-picker.tsx
|
|
59
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
60
|
+
var DEFAULT_FORMAT = {
|
|
61
|
+
dateStyle: "medium"
|
|
62
|
+
};
|
|
63
|
+
var DEFAULT_SEPARATOR = " \u2013 ";
|
|
64
|
+
function DateRangePicker({
|
|
65
|
+
children,
|
|
66
|
+
variant,
|
|
67
|
+
size = "md",
|
|
68
|
+
radius,
|
|
69
|
+
color,
|
|
70
|
+
calendarVariant,
|
|
71
|
+
value: controlledValue,
|
|
72
|
+
defaultValue,
|
|
73
|
+
onValueChange,
|
|
74
|
+
isOpen: controlledOpen,
|
|
75
|
+
defaultOpen = false,
|
|
76
|
+
onOpenChange,
|
|
77
|
+
minValue,
|
|
78
|
+
maxValue,
|
|
79
|
+
firstDayOfWeek,
|
|
80
|
+
locale,
|
|
81
|
+
formatOptions = DEFAULT_FORMAT,
|
|
82
|
+
separator = DEFAULT_SEPARATOR,
|
|
83
|
+
closeOnSelect = true,
|
|
84
|
+
isDisabled = false,
|
|
85
|
+
isInvalid = false
|
|
86
|
+
}) {
|
|
87
|
+
const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0);
|
|
88
|
+
const [value, setValue] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
89
|
+
value: controlledValue,
|
|
90
|
+
defaultValue: _nullishCoalesce(defaultValue, () => _chunkLCGJA37Lcjs.EMPTY_RANGE),
|
|
91
|
+
onChange: onValueChange
|
|
92
|
+
});
|
|
93
|
+
const [isOpen, setOpen] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
94
|
+
value: controlledOpen,
|
|
95
|
+
defaultValue: defaultOpen,
|
|
96
|
+
onChange: onOpenChange
|
|
97
|
+
});
|
|
98
|
+
const selection = {
|
|
99
|
+
variant,
|
|
100
|
+
size,
|
|
101
|
+
radius,
|
|
102
|
+
isOpen: isOpen ? "true" : void 0,
|
|
103
|
+
isInvalid: isInvalid ? "true" : void 0
|
|
104
|
+
};
|
|
105
|
+
const field = _chunkJ5COSALOcjs.selectRecipe.resolve({
|
|
106
|
+
theme,
|
|
107
|
+
selection,
|
|
108
|
+
states: {
|
|
109
|
+
disabled: isDisabled
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
const fieldPressed = _chunkJ5COSALOcjs.selectRecipe.resolve({
|
|
113
|
+
theme,
|
|
114
|
+
selection,
|
|
115
|
+
states: {
|
|
116
|
+
pressed: true
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
const tint = color ? _chunkJ5COSALOcjs.selectRecipe.tint({
|
|
120
|
+
theme,
|
|
121
|
+
color,
|
|
122
|
+
selection
|
|
123
|
+
}) : void 0;
|
|
124
|
+
const onPickRange = _react.useCallback.call(void 0, next => {
|
|
125
|
+
setValue(next);
|
|
126
|
+
if (closeOnSelect && next.start !== null && next.end !== null) setOpen(false);
|
|
127
|
+
}, [closeOnSelect, setOpen, setValue]);
|
|
128
|
+
const toggle = _react.useCallback.call(void 0, () => {
|
|
129
|
+
if (isDisabled) return;
|
|
130
|
+
setOpen(!isOpen);
|
|
131
|
+
}, [isDisabled, isOpen, setOpen]);
|
|
132
|
+
const text = _react.useMemo.call(void 0, () => {
|
|
133
|
+
if (value.start === null) return void 0;
|
|
134
|
+
const format = new Intl.DateTimeFormat(locale, formatOptions);
|
|
135
|
+
const start = format.format(value.start);
|
|
136
|
+
return value.end === null ? start : `${start}${separator}${format.format(value.end)}`;
|
|
137
|
+
}, [value, locale, formatOptions, separator]);
|
|
138
|
+
const glyph = _react.useMemo.call(void 0, () => {
|
|
139
|
+
const flat = _reactnative.StyleSheet.flatten([field.indicator, _optionalChain([tint, 'optionalAccess', _ => _.indicator])]);
|
|
140
|
+
return {
|
|
141
|
+
size: flat.fontSize,
|
|
142
|
+
color: typeof flat.color === "string" ? flat.color : void 0
|
|
143
|
+
};
|
|
144
|
+
}, [field.indicator, tint]);
|
|
145
|
+
const context = _react.useMemo.call(void 0, () => ({
|
|
146
|
+
triggerStyle: [field.trigger, _optionalChain([tint, 'optionalAccess', _2 => _2.trigger])],
|
|
147
|
+
triggerPressedStyle: fieldPressed.trigger,
|
|
148
|
+
valueStyle: [field.value, _optionalChain([tint, 'optionalAccess', _3 => _3.value])],
|
|
149
|
+
placeholderStyle: tint ? [field.placeholder, {
|
|
150
|
+
color: _reactnative.StyleSheet.flatten([tint.value]).color
|
|
151
|
+
}] : field.placeholder,
|
|
152
|
+
indicatorStyle: field.indicator,
|
|
153
|
+
glyph,
|
|
154
|
+
value,
|
|
155
|
+
text,
|
|
156
|
+
onPickRange,
|
|
157
|
+
calendar: {
|
|
158
|
+
variant: calendarVariant,
|
|
159
|
+
size,
|
|
160
|
+
color,
|
|
161
|
+
minValue,
|
|
162
|
+
maxValue,
|
|
163
|
+
firstDayOfWeek,
|
|
164
|
+
locale
|
|
165
|
+
},
|
|
166
|
+
isOpen,
|
|
167
|
+
setOpen,
|
|
168
|
+
toggle,
|
|
169
|
+
isDisabled,
|
|
170
|
+
isInvalid
|
|
171
|
+
}), [field, fieldPressed, tint, glyph, value, text, onPickRange, calendarVariant, size, color, minValue, maxValue, firstDayOfWeek, locale, isOpen, setOpen, toggle, isDisabled, isInvalid]);
|
|
172
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, DateRangePickerProvider, {
|
|
173
|
+
value: context,
|
|
174
|
+
children
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
DateRangePicker.displayName = "XAUI.DateRangePicker.Root";
|
|
178
|
+
|
|
179
|
+
// src/components/date-range-picker/date-range-picker-sheet.tsx
|
|
180
|
+
|
|
181
|
+
function DateRangePickerSheet({
|
|
182
|
+
children,
|
|
183
|
+
previousLabel,
|
|
184
|
+
nextLabel,
|
|
185
|
+
...props
|
|
186
|
+
}) {
|
|
187
|
+
const picker = useDateRangePicker();
|
|
188
|
+
return /* @__PURE__ */_jsxruntime.jsxs.call(void 0, _chunkX6GT4H4Icjs.BottomSheet2, {
|
|
189
|
+
isOpen: picker.isOpen,
|
|
190
|
+
onOpenChange: picker.setOpen,
|
|
191
|
+
...props,
|
|
192
|
+
children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkX6GT4H4Icjs.BottomSheet2.Overlay, {}), /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkX6GT4H4Icjs.BottomSheet2.Content, {
|
|
193
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, DateRangePickerProvider, {
|
|
194
|
+
value: picker,
|
|
195
|
+
children: _nullishCoalesce(children, () => (/* @__PURE__ */_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, {
|
|
196
|
+
children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkX6GT4H4Icjs.BottomSheet2.Handle, {}), /* @__PURE__ */_jsxruntime.jsx.call(void 0, DateRangePickerCalendar, {
|
|
197
|
+
previousLabel,
|
|
198
|
+
nextLabel
|
|
199
|
+
})]
|
|
200
|
+
})))
|
|
201
|
+
})
|
|
202
|
+
})]
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
DateRangePickerSheet.displayName = "XAUI.DateRangePicker.Sheet";
|
|
206
|
+
function DateRangePickerCalendar({
|
|
207
|
+
previousLabel,
|
|
208
|
+
nextLabel,
|
|
209
|
+
...props
|
|
210
|
+
}) {
|
|
211
|
+
const {
|
|
212
|
+
value,
|
|
213
|
+
onPickRange,
|
|
214
|
+
calendar
|
|
215
|
+
} = useDateRangePicker();
|
|
216
|
+
return /* @__PURE__ */_jsxruntime.jsxs.call(void 0, _chunkLCGJA37Lcjs.RangeCalendar, {
|
|
217
|
+
variant: calendar.variant,
|
|
218
|
+
size: calendar.size,
|
|
219
|
+
color: calendar.color,
|
|
220
|
+
locale: calendar.locale,
|
|
221
|
+
minValue: calendar.minValue,
|
|
222
|
+
maxValue: calendar.maxValue,
|
|
223
|
+
firstDayOfWeek: calendar.firstDayOfWeek,
|
|
224
|
+
value,
|
|
225
|
+
onValueChange: onPickRange,
|
|
226
|
+
...props,
|
|
227
|
+
children: [/* @__PURE__ */_jsxruntime.jsxs.call(void 0, _chunkLCGJA37Lcjs.RangeCalendar.Header, {
|
|
228
|
+
children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkLCGJA37Lcjs.RangeCalendar.PreviousButton, {
|
|
229
|
+
accessibilityLabel: previousLabel
|
|
230
|
+
}), /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkLCGJA37Lcjs.RangeCalendar.Title, {}), /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkLCGJA37Lcjs.RangeCalendar.NextButton, {
|
|
231
|
+
accessibilityLabel: nextLabel
|
|
232
|
+
})]
|
|
233
|
+
}), /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkLCGJA37Lcjs.RangeCalendar.Weekdays, {}), /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkLCGJA37Lcjs.RangeCalendar.Grid, {})]
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
DateRangePickerCalendar.displayName = "XAUI.DateRangePicker.Calendar";
|
|
237
|
+
|
|
238
|
+
// src/components/date-range-picker/date-range-picker-indicator.tsx
|
|
239
|
+
|
|
240
|
+
var _reactnativereanimated = require('react-native-reanimated');
|
|
241
|
+
var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
|
|
242
|
+
const _worklet_11049994280866_init_data = {
|
|
243
|
+
code: "function chunkNGXLJ5ZFCjs1(){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\"}]};}",
|
|
244
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-NGXLJ5ZF.cjs",
|
|
245
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkNGXLJ5ZFCjs1\",\"_reactnativereanimated\",\"progress\",\"_chunkEKS3W46Mcjs\",\"__closure\",\"transform\",\"rotate\",\"interpolate\",\"call\",\"get\",\"INDICATOR_ROTATION\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-NGXLJ5ZF.cjs\"],\"mappings\":\"AA6PwE,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\":[]}"
|
|
246
|
+
};
|
|
247
|
+
function DateRangePickerIndicator(props) {
|
|
248
|
+
const {
|
|
249
|
+
as = _chunkGSZDN6EZcjs.ChevronDownIcon
|
|
250
|
+
} = props;
|
|
251
|
+
const {
|
|
252
|
+
indicatorStyle,
|
|
253
|
+
isOpen
|
|
254
|
+
} = useDateRangePicker();
|
|
255
|
+
const progress = _reactnativereanimated.useSharedValue.call(void 0, isOpen ? 1 : 0);
|
|
256
|
+
_react.useEffect.call(void 0, () => {
|
|
257
|
+
progress.set(_reactnativereanimated.withSpring.call(void 0, isOpen ? 1 : 0, _chunkEKS3W46Mcjs.INDICATOR_SPRING));
|
|
258
|
+
}, [isOpen, progress]);
|
|
259
|
+
const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkNGXLJ5ZFCjs1Factory({
|
|
260
|
+
_worklet_11049994280866_init_data,
|
|
261
|
+
_reactnativereanimated,
|
|
262
|
+
progress,
|
|
263
|
+
_chunkEKS3W46Mcjs
|
|
264
|
+
}) {
|
|
265
|
+
const _e = [new global.Error(), -4, -27];
|
|
266
|
+
const chunkNGXLJ5ZFCjs1 = function () {
|
|
267
|
+
return {
|
|
268
|
+
transform: [{
|
|
269
|
+
rotate: `${_reactnativereanimated.interpolate.call(void 0, progress.get(), [0, 1], [_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0], _chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])}deg`
|
|
270
|
+
}]
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
chunkNGXLJ5ZFCjs1.__closure = {
|
|
274
|
+
_reactnativereanimated,
|
|
275
|
+
progress,
|
|
276
|
+
_chunkEKS3W46Mcjs
|
|
277
|
+
};
|
|
278
|
+
chunkNGXLJ5ZFCjs1.__workletHash = 11049994280866;
|
|
279
|
+
chunkNGXLJ5ZFCjs1.__pluginVersion = "0.7.4";
|
|
280
|
+
chunkNGXLJ5ZFCjs1.__initData = _worklet_11049994280866_init_data;
|
|
281
|
+
chunkNGXLJ5ZFCjs1.__stackDetails = _e;
|
|
282
|
+
return chunkNGXLJ5ZFCjs1;
|
|
283
|
+
}({
|
|
284
|
+
_worklet_11049994280866_init_data,
|
|
285
|
+
_reactnativereanimated,
|
|
286
|
+
progress,
|
|
287
|
+
_chunkEKS3W46Mcjs
|
|
288
|
+
}), [progress]);
|
|
289
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|
|
290
|
+
style: [indicatorStyle, rotation],
|
|
291
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.Icon, {
|
|
292
|
+
as
|
|
293
|
+
})
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
DateRangePickerIndicator.displayName = "XAUI.DateRangePicker.Indicator";
|
|
297
|
+
|
|
298
|
+
// src/components/date-range-picker/date-range-picker-trigger.tsx
|
|
299
|
+
|
|
300
|
+
var DateRangePickerTrigger = _react.forwardRef.call(void 0, function DateRangePickerTrigger2({
|
|
301
|
+
children,
|
|
302
|
+
asChild = false,
|
|
303
|
+
accessibilityRole = "button",
|
|
304
|
+
accessibilityState,
|
|
305
|
+
style,
|
|
306
|
+
onPressIn,
|
|
307
|
+
onPressOut,
|
|
308
|
+
onPress,
|
|
309
|
+
...props
|
|
310
|
+
}, ref) {
|
|
311
|
+
const {
|
|
312
|
+
triggerStyle,
|
|
313
|
+
triggerPressedStyle,
|
|
314
|
+
glyph,
|
|
315
|
+
isOpen,
|
|
316
|
+
isDisabled,
|
|
317
|
+
isInvalid,
|
|
318
|
+
toggle
|
|
319
|
+
} = useDateRangePicker();
|
|
320
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
321
|
+
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, {
|
|
322
|
+
onPressIn,
|
|
323
|
+
onPressOut
|
|
324
|
+
});
|
|
325
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.IconContext.Provider, {
|
|
326
|
+
value: glyph,
|
|
327
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkHBYT7B47cjs.PressableFeedback, {
|
|
328
|
+
ref,
|
|
329
|
+
isPressed,
|
|
330
|
+
asChild,
|
|
331
|
+
accessibilityRole,
|
|
332
|
+
accessibilityState: {
|
|
333
|
+
expanded: isOpen,
|
|
334
|
+
disabled: isDisabled,
|
|
335
|
+
...accessibilityState
|
|
336
|
+
},
|
|
337
|
+
"aria-invalid": isInvalid || void 0,
|
|
338
|
+
isDisabled,
|
|
339
|
+
...rest,
|
|
340
|
+
style: [isPressed ? triggerPressedStyle : triggerStyle, styleProps, typeof style === "function" ? style({
|
|
341
|
+
pressed: isPressed
|
|
342
|
+
}) : style],
|
|
343
|
+
onPress: event => {
|
|
344
|
+
_optionalChain([onPress, 'optionalCall', _4 => _4(event)]);
|
|
345
|
+
toggle();
|
|
346
|
+
},
|
|
347
|
+
onPressIn: press.onPressIn,
|
|
348
|
+
onPressOut: press.onPressOut,
|
|
349
|
+
children
|
|
350
|
+
})
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
DateRangePickerTrigger.displayName = "XAUI.DateRangePicker.Trigger";
|
|
354
|
+
|
|
355
|
+
// src/components/date-range-picker/date-range-picker-value.tsx
|
|
356
|
+
|
|
357
|
+
var DateRangePickerValue = _react.forwardRef.call(void 0, function DateRangePickerValue2({
|
|
358
|
+
children,
|
|
359
|
+
placeholder,
|
|
360
|
+
style,
|
|
361
|
+
...props
|
|
362
|
+
}, ref) {
|
|
363
|
+
const {
|
|
364
|
+
text,
|
|
365
|
+
valueStyle,
|
|
366
|
+
placeholderStyle
|
|
367
|
+
} = useDateRangePicker();
|
|
368
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
369
|
+
const isEmpty = children === void 0 && text === void 0;
|
|
370
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
|
|
371
|
+
ref,
|
|
372
|
+
numberOfLines: 1,
|
|
373
|
+
...rest,
|
|
374
|
+
style: [isEmpty ? placeholderStyle : valueStyle, styleProps, style],
|
|
375
|
+
children: _nullishCoalesce(_nullishCoalesce(children, () => text), () => placeholder)
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
DateRangePickerValue.displayName = "XAUI.DateRangePicker.Value";
|
|
379
|
+
|
|
380
|
+
// src/components/date-range-picker/index.ts
|
|
381
|
+
var DateRangePicker2 = Object.assign(DateRangePicker, {
|
|
382
|
+
Trigger: DateRangePickerTrigger,
|
|
383
|
+
Value: DateRangePickerValue,
|
|
384
|
+
Indicator: DateRangePickerIndicator,
|
|
385
|
+
Sheet: DateRangePickerSheet,
|
|
386
|
+
Calendar: DateRangePickerCalendar
|
|
387
|
+
});
|
|
388
|
+
exports.useDateRangePicker = useDateRangePicker;
|
|
389
|
+
exports.DateRangePicker = DateRangePicker;
|
|
390
|
+
exports.DateRangePickerSheet = DateRangePickerSheet;
|
|
391
|
+
exports.DateRangePickerCalendar = DateRangePickerCalendar;
|
|
392
|
+
exports.DateRangePickerIndicator = DateRangePickerIndicator;
|
|
393
|
+
exports.DateRangePickerTrigger = DateRangePickerTrigger;
|
|
394
|
+
exports.DateRangePickerValue = DateRangePickerValue;
|
|
395
|
+
exports.DateRangePicker2 = DateRangePicker2;
|
|
@@ -6,7 +6,7 @@ var _chunkF6CQ6CBIcjs = require('./chunk-F6CQ6CBI.cjs');
|
|
|
6
6
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
@@ -375,7 +375,7 @@ var RadioRoot = _react.forwardRef.call(void 0, function Radio({
|
|
|
375
375
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioLabel, { children: text })
|
|
376
376
|
] }) : _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioIndicator, {})));
|
|
377
377
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
378
|
-
|
|
378
|
+
_chunkHBYT7B47cjs.PressableFeedback,
|
|
379
379
|
{
|
|
380
380
|
ref,
|
|
381
381
|
isPressed,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkWNEDQTH6cjs = require('./chunk-WNEDQTH6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
@@ -109,7 +109,7 @@ var TagGroupItem = _react.forwardRef.call(void 0,
|
|
|
109
109
|
);
|
|
110
110
|
const text = typeof children === "function" ? null : _chunkFHNIGHN5cjs.childrenToString.call(void 0, children);
|
|
111
111
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TagGroupItemProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.IconContext.Provider, { value: glyph, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
112
|
-
|
|
112
|
+
_chunkHBYT7B47cjs.PressableFeedback,
|
|
113
113
|
{
|
|
114
114
|
ref,
|
|
115
115
|
isPressed,
|
|
@@ -142,7 +142,7 @@ var TagGroupItemRemoveButton = _react.forwardRef.call(void 0, function TagGroupI
|
|
|
142
142
|
const { id, isSelected, isDisabled: isItemDisabled } = useTagGroupItem();
|
|
143
143
|
if (remove === void 0) return null;
|
|
144
144
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
145
|
-
|
|
145
|
+
_chunkWNEDQTH6cjs.CloseButtonBase,
|
|
146
146
|
{
|
|
147
147
|
ref,
|
|
148
148
|
name: "TagGroup.ItemRemoveButton",
|
|
@@ -241,7 +241,7 @@ var tagGroupRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
241
241
|
slots: SLOTS,
|
|
242
242
|
base: (theme) => ({
|
|
243
243
|
// The cross's thickness and its centring are the shared button's, written once there.
|
|
244
|
-
...
|
|
244
|
+
..._chunkWNEDQTH6cjs.closeButtonGeometry.call(void 0, theme),
|
|
245
245
|
root: { gap: theme.spacing(3) },
|
|
246
246
|
/**
|
|
247
247
|
* Wrapping is the point. A tag group is a set of the same kind of thing, and a set
|