@xaui/native 0.9.1-alpha.92 → 0.9.1-alpha.94
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-AHKKEM3K.cjs +536 -0
- 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-KPKEZWZM.js → chunk-VQ4OTVET.js} +189 -211
- 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 +4 -2
- package/dist/components/pager/index.d.cts +2 -2
- package/dist/components/pager/index.d.ts +2 -2
- package/dist/components/pager/index.js +3 -1
- package/dist/components/pager/pager.d.cts +3 -4
- package/dist/components/pager/pager.d.ts +3 -4
- package/dist/components/pager/pager.recipe.d.cts +19 -1
- package/dist/components/pager/pager.recipe.d.ts +19 -1
- package/dist/components/pager/pager.type.d.cts +5 -6
- package/dist/components/pager/pager.type.d.ts +5 -6
- 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 +48 -59
- package/dist/index.js +52 -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-UR37LVPU.cjs +0 -382
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { INDICATOR_ROTATION, INDICATOR_SPRING } from "./chunk-64MXEVT3.js";
|
|
2
2
|
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
3
|
-
import { PressableFeedback } from "./chunk-
|
|
3
|
+
import { PressableFeedback } from "./chunk-KQW25RCC.js";
|
|
4
4
|
import { usePressState } from "./chunk-423RQBOX.js";
|
|
5
5
|
import { ChevronDownIcon, Icon, IconContext } from "./chunk-JN6IRT2M.js";
|
|
6
6
|
import { createRecipe, radiusAxis } from "./chunk-DKVXTMIJ.js";
|
|
@@ -53,10 +53,10 @@ AccordionContent.displayName = "XAUI.Accordion.Content";
|
|
|
53
53
|
import { useEffect } from "react";
|
|
54
54
|
import Animated2, { interpolate, useAnimatedStyle, useSharedValue, withSpring } from "react-native-reanimated";
|
|
55
55
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
56
|
-
const
|
|
57
|
-
code: "function
|
|
58
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
59
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
56
|
+
const _worklet_5209976091547_init_data = {
|
|
57
|
+
code: "function chunk7OVYYZ7HJs1(){const{interpolate,progress,INDICATOR_ROTATION}=this.__closure;return{transform:[{rotate:interpolate(progress.get(),[0,1],[INDICATOR_ROTATION[0],INDICATOR_ROTATION[1]])+\"deg\"}]};}",
|
|
58
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-7OVYYZ7H.js",
|
|
59
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk7OVYYZ7HJs1\",\"interpolate\",\"progress\",\"INDICATOR_ROTATION\",\"__closure\",\"transform\",\"rotate\",\"get\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-7OVYYZ7H.js\"],\"mappings\":\"AA8FoC,SAAAA,gBAAMA,CAAA,QAAAC,WAAA,CAAAC,QAAA,CAAAC,kBAAA,OAAAC,SAAA,CAEtC,MAAO,CACLC,SAAS,CAAE,CACT,CACEC,MAAM,CAAKL,WAAW,CAACC,QAAQ,CAACK,GAAG,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACJ,kBAAkB,CAAC,CAAC,CAAC,CAAEA,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,MAChG,CAAC,CAEL,CAAC,CACH\",\"ignoreList\":[]}"
|
|
60
60
|
};
|
|
61
61
|
function AccordionIndicator({
|
|
62
62
|
as = ChevronDownIcon,
|
|
@@ -72,34 +72,36 @@ function AccordionIndicator({
|
|
|
72
72
|
useEffect(() => {
|
|
73
73
|
progress.set(withSpring(isExpanded ? 1 : 0, INDICATOR_SPRING));
|
|
74
74
|
}, [isExpanded, progress]);
|
|
75
|
-
const rotation = useAnimatedStyle(function
|
|
76
|
-
|
|
75
|
+
const rotation = useAnimatedStyle(function chunk7OVYYZ7HJs1Factory({
|
|
76
|
+
_worklet_5209976091547_init_data,
|
|
77
77
|
interpolate,
|
|
78
78
|
progress,
|
|
79
79
|
INDICATOR_ROTATION
|
|
80
80
|
}) {
|
|
81
81
|
const _e = [new global.Error(), -4, -27];
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
const chunk7OVYYZ7HJs1 = function () {
|
|
83
|
+
return {
|
|
84
|
+
transform: [{
|
|
85
|
+
rotate: `${interpolate(progress.get(), [0, 1], [INDICATOR_ROTATION[0], INDICATOR_ROTATION[1]])}deg`
|
|
86
|
+
}]
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
chunk7OVYYZ7HJs1.__closure = {
|
|
88
90
|
interpolate,
|
|
89
91
|
progress,
|
|
90
92
|
INDICATOR_ROTATION
|
|
91
93
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
return
|
|
94
|
+
chunk7OVYYZ7HJs1.__workletHash = 5209976091547;
|
|
95
|
+
chunk7OVYYZ7HJs1.__pluginVersion = "0.7.4";
|
|
96
|
+
chunk7OVYYZ7HJs1.__initData = _worklet_5209976091547_init_data;
|
|
97
|
+
chunk7OVYYZ7HJs1.__stackDetails = _e;
|
|
98
|
+
return chunk7OVYYZ7HJs1;
|
|
97
99
|
}({
|
|
98
|
-
|
|
100
|
+
_worklet_5209976091547_init_data,
|
|
99
101
|
interpolate,
|
|
100
102
|
progress,
|
|
101
103
|
INDICATOR_ROTATION
|
|
102
|
-
}));
|
|
104
|
+
}), [progress]);
|
|
103
105
|
return /* @__PURE__ */jsx2(Animated2.View, {
|
|
104
106
|
style: [indicatorStyle, rotation],
|
|
105
107
|
children: /* @__PURE__ */jsx2(Icon, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkWDDXU3OHcjs = require('./chunk-WDDXU3OH.cjs');
|
|
@@ -14,7 +14,7 @@ var _chunkEKS3W46Mcjs = require('./chunk-EKS3W46M.cjs');
|
|
|
14
14
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
@@ -50,7 +50,7 @@ var DialogClose = _react.forwardRef.call(void 0, function DialogClose2({ asChild
|
|
|
50
50
|
[close, onPress]
|
|
51
51
|
);
|
|
52
52
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53
|
-
|
|
53
|
+
_chunkWNEDQTH6cjs.CloseButtonBase,
|
|
54
54
|
{
|
|
55
55
|
ref,
|
|
56
56
|
name: "Dialog.Close",
|
|
@@ -204,7 +204,7 @@ var DialogTrigger = _react.forwardRef.call(void 0,
|
|
|
204
204
|
[onPress, toggle]
|
|
205
205
|
);
|
|
206
206
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
207
|
-
|
|
207
|
+
_chunkHBYT7B47cjs.PressableFeedback,
|
|
208
208
|
{
|
|
209
209
|
ref,
|
|
210
210
|
isPressed,
|
|
@@ -249,7 +249,7 @@ var CLOSE_BAR = 16;
|
|
|
249
249
|
var dialogRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
250
250
|
slots: SLOTS,
|
|
251
251
|
base: (theme) => {
|
|
252
|
-
const shared =
|
|
252
|
+
const shared = _chunkWNEDQTH6cjs.closeButtonGeometry.call(void 0, theme);
|
|
253
253
|
return {
|
|
254
254
|
// Unlike the `Popover`'s, this backdrop dims by default. A popover is an aside you can
|
|
255
255
|
// read the page around; a dialog is a question, and the page behind it is not
|
|
@@ -0,0 +1,536 @@
|
|
|
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 _chunkFTPPUTWLcjs = require('./chunk-FTPPUTWL.cjs');
|
|
40
|
+
var _chunkWFEMJCXOcjs = require('./chunk-WFEMJCXO.cjs');
|
|
41
|
+
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
42
|
+
var _chunkSL3V7R2Ycjs = require('./chunk-SL3V7R2Y.cjs');
|
|
43
|
+
var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
|
|
44
|
+
var _chunkIIAQISBGcjs = require('./chunk-IIAQISBG.cjs');
|
|
45
|
+
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
46
|
+
|
|
47
|
+
// src/components/pager/pager-content.tsx
|
|
48
|
+
var _react = require('react');
|
|
49
|
+
var _reactnativereanimated = require('react-native-reanimated');
|
|
50
|
+
var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
|
|
51
|
+
|
|
52
|
+
// src/components/pager/pager.context.ts
|
|
53
|
+
var [PagerProvider, usePager] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "Pager");
|
|
54
|
+
|
|
55
|
+
// src/components/pager/pager-content.tsx
|
|
56
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
57
|
+
const _worklet_2720740189091_init_data = {
|
|
58
|
+
code: "function chunkAHKKEM3KCjs1(event){const{isHorizontal,offset,_chunkFTPPUTWLcjs,step,count,settled,_reactnativereanimated,onSettle}=this.__closure;const travelled=isHorizontal?event.contentOffset.x:event.contentOffset.y;offset.set(travelled);const next=_chunkFTPPUTWLcjs.indexFromOffset.call(void 0,travelled,step,count);if(next!==settled.get()){settled.set(next);_reactnativereanimated.runOnJS.call(void 0,onSettle)(next);}}",
|
|
59
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-AHKKEM3K.cjs",
|
|
60
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkAHKKEM3KCjs1\",\"event\",\"isHorizontal\",\"offset\",\"_chunkFTPPUTWLcjs\",\"step\",\"count\",\"settled\",\"_reactnativereanimated\",\"onSettle\",\"__closure\",\"travelled\",\"contentOffset\",\"x\",\"y\",\"set\",\"next\",\"indexFromOffset\",\"call\",\"get\",\"runOnJS\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-AHKKEM3K.cjs\"],\"mappings\":\"AAkEO,SAAAA,iBAAUA,CAAAC,KAAA,QAAAC,YAAA,CAAAC,MAAA,CAAAC,iBAAA,CAAAC,IAAA,CAAAC,KAAA,CAAAC,OAAA,CAAAC,sBAAA,CAAAC,QAAA,OAAAC,SAAA,CAET,KAAM,CAAAC,SAAS,CAAGT,YAAY,CAAGD,KAAK,CAACW,aAAa,CAACC,CAAC,CAAGZ,KAAK,CAACW,aAAa,CAACE,CAAC,CAC9EX,MAAM,CAACY,GAAG,CAACJ,SAAS,CAAC,CACrB,KAAM,CAAAK,IAAI,CAAGZ,iBAAiB,CAACa,eAAe,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEP,SAAS,CAAEN,IAAI,CAAEC,KAAK,CAAC,CACnF,GAAIU,IAAI,GAAKT,OAAO,CAACY,GAAG,CAAC,CAAC,CAAE,CAC1BZ,OAAO,CAACQ,GAAG,CAACC,IAAI,CAAC,CACjBR,sBAAsB,CAACY,OAAO,CAACF,IAAI,CAAC,IAAK,EAAC,CAAET,QAAQ,CAAC,CAACO,IAAI,CAAC,CAC7D,CACF\",\"ignoreList\":[]}"
|
|
61
|
+
};
|
|
62
|
+
var PagerContent = _react.forwardRef.call(void 0, function PagerContent2({
|
|
63
|
+
children,
|
|
64
|
+
style,
|
|
65
|
+
onLayout,
|
|
66
|
+
...props
|
|
67
|
+
}, ref) {
|
|
68
|
+
const {
|
|
69
|
+
contentStyle,
|
|
70
|
+
orientation,
|
|
71
|
+
step,
|
|
72
|
+
track,
|
|
73
|
+
setTrack,
|
|
74
|
+
count,
|
|
75
|
+
setCount,
|
|
76
|
+
offset,
|
|
77
|
+
trackRef,
|
|
78
|
+
isDisabled,
|
|
79
|
+
onSettle
|
|
80
|
+
} = usePager();
|
|
81
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
82
|
+
const scroller = _chunkWFEMJCXOcjs.useMergedRef.call(void 0, ref, trackRef);
|
|
83
|
+
const given = _react.Children.count(children);
|
|
84
|
+
_react.useEffect.call(void 0, () => {
|
|
85
|
+
if (given !== count) setCount(given);
|
|
86
|
+
}, [count, given, setCount]);
|
|
87
|
+
const handleLayout = event => {
|
|
88
|
+
_optionalChain([onLayout, 'optionalCall', _2 => _2(event)]);
|
|
89
|
+
const {
|
|
90
|
+
width,
|
|
91
|
+
height
|
|
92
|
+
} = event.nativeEvent.layout;
|
|
93
|
+
if (width !== track.width || height !== track.height) setTrack({
|
|
94
|
+
width,
|
|
95
|
+
height
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
const settled = _reactnativereanimated.useSharedValue.call(void 0, 0);
|
|
99
|
+
const isHorizontal = orientation === "horizontal";
|
|
100
|
+
const scroll = _reactnativereanimated.useAnimatedScrollHandler.call(void 0, function chunkAHKKEM3KCjs1Factory({
|
|
101
|
+
_worklet_2720740189091_init_data,
|
|
102
|
+
isHorizontal,
|
|
103
|
+
offset,
|
|
104
|
+
_chunkFTPPUTWLcjs,
|
|
105
|
+
step,
|
|
106
|
+
count,
|
|
107
|
+
settled,
|
|
108
|
+
_reactnativereanimated,
|
|
109
|
+
onSettle
|
|
110
|
+
}) {
|
|
111
|
+
const _e = [new global.Error(), -9, -27];
|
|
112
|
+
const chunkAHKKEM3KCjs1 = function (event) {
|
|
113
|
+
const travelled = isHorizontal ? event.contentOffset.x : event.contentOffset.y;
|
|
114
|
+
offset.set(travelled);
|
|
115
|
+
const next = _chunkFTPPUTWLcjs.indexFromOffset.call(void 0, travelled, step, count);
|
|
116
|
+
if (next !== settled.get()) {
|
|
117
|
+
settled.set(next);
|
|
118
|
+
_reactnativereanimated.runOnJS.call(void 0, onSettle)(next);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
chunkAHKKEM3KCjs1.__closure = {
|
|
122
|
+
isHorizontal,
|
|
123
|
+
offset,
|
|
124
|
+
_chunkFTPPUTWLcjs,
|
|
125
|
+
step,
|
|
126
|
+
count,
|
|
127
|
+
settled,
|
|
128
|
+
_reactnativereanimated,
|
|
129
|
+
onSettle
|
|
130
|
+
};
|
|
131
|
+
chunkAHKKEM3KCjs1.__workletHash = 2720740189091;
|
|
132
|
+
chunkAHKKEM3KCjs1.__pluginVersion = "0.7.4";
|
|
133
|
+
chunkAHKKEM3KCjs1.__initData = _worklet_2720740189091_init_data;
|
|
134
|
+
chunkAHKKEM3KCjs1.__stackDetails = _e;
|
|
135
|
+
return chunkAHKKEM3KCjs1;
|
|
136
|
+
}({
|
|
137
|
+
_worklet_2720740189091_init_data,
|
|
138
|
+
isHorizontal,
|
|
139
|
+
offset,
|
|
140
|
+
_chunkFTPPUTWLcjs,
|
|
141
|
+
step,
|
|
142
|
+
count,
|
|
143
|
+
settled,
|
|
144
|
+
_reactnativereanimated,
|
|
145
|
+
onSettle
|
|
146
|
+
}), [offset, settled, step, count, onSettle, isHorizontal]);
|
|
147
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.ScrollView, {
|
|
148
|
+
ref: scroller,
|
|
149
|
+
horizontal: isHorizontal,
|
|
150
|
+
pagingEnabled: true,
|
|
151
|
+
showsHorizontalScrollIndicator: false,
|
|
152
|
+
showsVerticalScrollIndicator: false,
|
|
153
|
+
scrollEnabled: !isDisabled,
|
|
154
|
+
decelerationRate: "fast",
|
|
155
|
+
scrollEventThrottle: 16,
|
|
156
|
+
...rest,
|
|
157
|
+
style: [contentStyle, styleProps, style],
|
|
158
|
+
onLayout: handleLayout,
|
|
159
|
+
onScroll: scroll,
|
|
160
|
+
children: step > 0 ? children : null
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
PagerContent.displayName = "XAUI.Pager.Content";
|
|
164
|
+
|
|
165
|
+
// src/components/pager/pager-indicator.tsx
|
|
166
|
+
|
|
167
|
+
var _reactnative = require('react-native');
|
|
168
|
+
|
|
169
|
+
// src/components/pager/pager.recipe.ts
|
|
170
|
+
var SLOTS = ["root", "content", "page", "indicator", "dot"];
|
|
171
|
+
var VARIANT_TOKENS = {
|
|
172
|
+
primary: {
|
|
173
|
+
bgSelected: "accent"
|
|
174
|
+
},
|
|
175
|
+
// The page's own ink, for an indicator that has to read as chrome rather than as accent.
|
|
176
|
+
secondary: {
|
|
177
|
+
bgSelected: "foreground"
|
|
178
|
+
},
|
|
179
|
+
// The raised ground — white on a light theme. A pager over a *photograph* wants
|
|
180
|
+
// `color="#ffffff"` instead: a photograph is a photograph in both colour modes, and this
|
|
181
|
+
// token flips with the theme.
|
|
182
|
+
tertiary: {
|
|
183
|
+
bgSelected: "surface"
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
var DOT_REST_OPACITY = 0.3;
|
|
187
|
+
var SIZES = {
|
|
188
|
+
xs: {
|
|
189
|
+
dot: 5,
|
|
190
|
+
gap: 1
|
|
191
|
+
},
|
|
192
|
+
sm: {
|
|
193
|
+
dot: 6,
|
|
194
|
+
gap: 1.5
|
|
195
|
+
},
|
|
196
|
+
md: {
|
|
197
|
+
dot: 7,
|
|
198
|
+
gap: 1.5
|
|
199
|
+
},
|
|
200
|
+
lg: {
|
|
201
|
+
dot: 8,
|
|
202
|
+
gap: 2
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
function sizeAxis(step) {
|
|
206
|
+
const {
|
|
207
|
+
dot,
|
|
208
|
+
gap
|
|
209
|
+
} = step;
|
|
210
|
+
return theme => ({
|
|
211
|
+
indicator: {
|
|
212
|
+
gap: theme.spacing(gap)
|
|
213
|
+
},
|
|
214
|
+
dot: {
|
|
215
|
+
width: dot,
|
|
216
|
+
height: dot,
|
|
217
|
+
borderRadius: dot / 2
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
function orientationAxis(direction) {
|
|
222
|
+
return () => ({
|
|
223
|
+
indicator: {
|
|
224
|
+
flexDirection: direction
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
var pagerRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
229
|
+
slots: SLOTS,
|
|
230
|
+
base: () => ({
|
|
231
|
+
/**
|
|
232
|
+
* **The root has no size of its own**, and that is deliberate rather than missing.
|
|
233
|
+
*
|
|
234
|
+
* `flex: 1` here would have been the convenient default and it is a trap: React Native
|
|
235
|
+
* expands it to a zero flex-basis, which **overrides an explicit `height`** — so
|
|
236
|
+
* `<Pager height={240}>` would collapse to the height of its dots, and the prop the
|
|
237
|
+
* caller reached for would silently do nothing. It is the same reason there is no
|
|
238
|
+
* `fullWidth` on a `Button`: RN's own behaviour is the answer, and the caller says which
|
|
239
|
+
* of the two they want — `flex={1}` to fill a screen, `height={320}` inside a scroll
|
|
240
|
+
* view.
|
|
241
|
+
*
|
|
242
|
+
* The track keeps its `flex: 1`, so it takes whatever the root was given less the dots.
|
|
243
|
+
* Nothing sizes it from outside, which is why it is safe there and not here.
|
|
244
|
+
*/
|
|
245
|
+
content: {
|
|
246
|
+
flex: 1
|
|
247
|
+
},
|
|
248
|
+
// A page is the size of the track on both axes, and that number is measured rather than
|
|
249
|
+
// named, so it arrives as an inline style instead of from here.
|
|
250
|
+
page: {
|
|
251
|
+
overflow: "hidden"
|
|
252
|
+
},
|
|
253
|
+
indicator: {
|
|
254
|
+
alignItems: "center",
|
|
255
|
+
justifyContent: "center"
|
|
256
|
+
}
|
|
257
|
+
}),
|
|
258
|
+
variantTokens: VARIANT_TOKENS,
|
|
259
|
+
/**
|
|
260
|
+
* Every dot takes the same colour. What separates the current one from the rest is its
|
|
261
|
+
* opacity, animated on the UI thread — so this is a plain style rather than a value the
|
|
262
|
+
* root has to flatten and hand to a worklet.
|
|
263
|
+
*/
|
|
264
|
+
paint: (_theme, colors) => ({
|
|
265
|
+
dot: {
|
|
266
|
+
backgroundColor: colors.bgSelected
|
|
267
|
+
}
|
|
268
|
+
}),
|
|
269
|
+
variants: {
|
|
270
|
+
size: {
|
|
271
|
+
xs: sizeAxis(SIZES.xs),
|
|
272
|
+
sm: sizeAxis(SIZES.sm),
|
|
273
|
+
md: sizeAxis(SIZES.md),
|
|
274
|
+
lg: sizeAxis(SIZES.lg)
|
|
275
|
+
},
|
|
276
|
+
orientation: {
|
|
277
|
+
horizontal: orientationAxis("row"),
|
|
278
|
+
vertical: orientationAxis("column")
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
states: {
|
|
282
|
+
disabled: theme => ({
|
|
283
|
+
indicator: {
|
|
284
|
+
opacity: theme.opacity.disabled
|
|
285
|
+
}
|
|
286
|
+
})
|
|
287
|
+
},
|
|
288
|
+
defaultVariants: {
|
|
289
|
+
variant: "primary",
|
|
290
|
+
size: "md",
|
|
291
|
+
orientation: "horizontal"
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
// src/components/pager/pager-indicator.tsx
|
|
296
|
+
|
|
297
|
+
var HIT_SLOP = 8;
|
|
298
|
+
var AnimatedPressable = _reactnativereanimated2.default.createAnimatedComponent(_reactnative.Pressable);
|
|
299
|
+
var PagerIndicator = _react.forwardRef.call(void 0, function PagerIndicator2({
|
|
300
|
+
children,
|
|
301
|
+
style,
|
|
302
|
+
...props
|
|
303
|
+
}, ref) {
|
|
304
|
+
const {
|
|
305
|
+
indicatorStyle,
|
|
306
|
+
count
|
|
307
|
+
} = usePager();
|
|
308
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
309
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
|
|
310
|
+
ref,
|
|
311
|
+
...rest,
|
|
312
|
+
style: [indicatorStyle, styleProps, style],
|
|
313
|
+
children: _nullishCoalesce(children, () => Array.from({
|
|
314
|
+
length: count
|
|
315
|
+
}, (_, index) => /* @__PURE__ */_jsxruntime.jsx.call(void 0, PagerDot, {
|
|
316
|
+
index
|
|
317
|
+
}, index)))
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
PagerIndicator.displayName = "XAUI.Pager.Indicator";
|
|
321
|
+
const _worklet_6452727907809_init_data = {
|
|
322
|
+
code: "function chunkAHKKEM3KCjs2(){const{_chunkFTPPUTWLcjs,offset,step,count,index,_reactnativereanimated,DOT_REST_OPACITY}=this.__closure;const distance=Math.abs(_chunkFTPPUTWLcjs.progressFromOffset.call(void 0,offset.get(),step,count)-index);const nearness=Math.max(0,1-distance);return{opacity:_reactnativereanimated.interpolate.call(void 0,nearness,[0,1],[DOT_REST_OPACITY,1])};}",
|
|
323
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-AHKKEM3K.cjs",
|
|
324
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkAHKKEM3KCjs2\",\"_chunkFTPPUTWLcjs\",\"offset\",\"step\",\"count\",\"index\",\"_reactnativereanimated\",\"DOT_REST_OPACITY\",\"__closure\",\"distance\",\"Math\",\"abs\",\"progressFromOffset\",\"call\",\"get\",\"nearness\",\"max\",\"opacity\",\"interpolate\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-AHKKEM3K.cjs\"],\"mappings\":\"AAgNsE,SAAAA,iBAAMA,CAAA,QAAAC,iBAAA,CAAAC,MAAA,CAAAC,IAAA,CAAAC,KAAA,CAAAC,KAAA,CAAAC,sBAAA,CAAAC,gBAAA,OAAAC,SAAA,CAExE,KAAM,CAAAC,QAAQ,CAAGC,IAAI,CAACC,GAAG,CAACV,iBAAiB,CAACW,kBAAkB,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEX,MAAM,CAACY,GAAG,CAAC,CAAC,CAAEX,IAAI,CAAEC,KAAK,CAAC,CAAGC,KAAK,CAAC,CAC/G,KAAM,CAAAU,QAAQ,CAAGL,IAAI,CAACM,GAAG,CAAC,CAAC,CAAE,CAAC,CAAGP,QAAQ,CAAC,CAC1C,MAAO,CAAEQ,OAAO,CAAEX,sBAAsB,CAACY,WAAW,CAACL,IAAI,CAAC,IAAK,EAAC,CAAEE,QAAQ,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACR,gBAAgB,CAAE,CAAC,CAAC,CAAE,CAAC,CAC9G\",\"ignoreList\":[]}"
|
|
325
|
+
};
|
|
326
|
+
var PagerDot = _react.forwardRef.call(void 0, function PagerDot2({
|
|
327
|
+
index,
|
|
328
|
+
children,
|
|
329
|
+
style,
|
|
330
|
+
...props
|
|
331
|
+
}, ref) {
|
|
332
|
+
const {
|
|
333
|
+
dotStyle,
|
|
334
|
+
offset,
|
|
335
|
+
step,
|
|
336
|
+
count,
|
|
337
|
+
index: current,
|
|
338
|
+
isDisabled,
|
|
339
|
+
goTo
|
|
340
|
+
} = usePager();
|
|
341
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
342
|
+
const travel = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkAHKKEM3KCjs2Factory({
|
|
343
|
+
_worklet_6452727907809_init_data,
|
|
344
|
+
_chunkFTPPUTWLcjs,
|
|
345
|
+
offset,
|
|
346
|
+
step,
|
|
347
|
+
count,
|
|
348
|
+
index,
|
|
349
|
+
_reactnativereanimated,
|
|
350
|
+
DOT_REST_OPACITY
|
|
351
|
+
}) {
|
|
352
|
+
const _e = [new global.Error(), -8, -27];
|
|
353
|
+
const chunkAHKKEM3KCjs2 = function () {
|
|
354
|
+
const distance = Math.abs(_chunkFTPPUTWLcjs.progressFromOffset.call(void 0, offset.get(), step, count) - index);
|
|
355
|
+
const nearness = Math.max(0, 1 - distance);
|
|
356
|
+
return {
|
|
357
|
+
opacity: _reactnativereanimated.interpolate.call(void 0, nearness, [0, 1], [DOT_REST_OPACITY, 1])
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
chunkAHKKEM3KCjs2.__closure = {
|
|
361
|
+
_chunkFTPPUTWLcjs,
|
|
362
|
+
offset,
|
|
363
|
+
step,
|
|
364
|
+
count,
|
|
365
|
+
index,
|
|
366
|
+
_reactnativereanimated,
|
|
367
|
+
DOT_REST_OPACITY
|
|
368
|
+
};
|
|
369
|
+
chunkAHKKEM3KCjs2.__workletHash = 6452727907809;
|
|
370
|
+
chunkAHKKEM3KCjs2.__pluginVersion = "0.7.4";
|
|
371
|
+
chunkAHKKEM3KCjs2.__initData = _worklet_6452727907809_init_data;
|
|
372
|
+
chunkAHKKEM3KCjs2.__stackDetails = _e;
|
|
373
|
+
return chunkAHKKEM3KCjs2;
|
|
374
|
+
}({
|
|
375
|
+
_worklet_6452727907809_init_data,
|
|
376
|
+
_chunkFTPPUTWLcjs,
|
|
377
|
+
offset,
|
|
378
|
+
step,
|
|
379
|
+
count,
|
|
380
|
+
index,
|
|
381
|
+
_reactnativereanimated,
|
|
382
|
+
DOT_REST_OPACITY
|
|
383
|
+
}), [offset, step, count, index]);
|
|
384
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, AnimatedPressable, {
|
|
385
|
+
ref,
|
|
386
|
+
accessibilityRole: "button",
|
|
387
|
+
accessibilityState: {
|
|
388
|
+
selected: index === current,
|
|
389
|
+
disabled: isDisabled
|
|
390
|
+
},
|
|
391
|
+
accessibilityValue: {
|
|
392
|
+
now: index + 1,
|
|
393
|
+
min: 1,
|
|
394
|
+
max: count
|
|
395
|
+
},
|
|
396
|
+
disabled: isDisabled,
|
|
397
|
+
hitSlop: HIT_SLOP,
|
|
398
|
+
...rest,
|
|
399
|
+
style: [dotStyle, travel, styleProps, style],
|
|
400
|
+
onPress: () => goTo(index),
|
|
401
|
+
children
|
|
402
|
+
});
|
|
403
|
+
});
|
|
404
|
+
PagerDot.displayName = "XAUI.Pager.Dot";
|
|
405
|
+
|
|
406
|
+
// src/components/pager/pager-page.tsx
|
|
407
|
+
|
|
408
|
+
var PagerPage = _react.forwardRef.call(void 0, function PagerPage2({
|
|
409
|
+
children,
|
|
410
|
+
style,
|
|
411
|
+
...props
|
|
412
|
+
}, ref) {
|
|
413
|
+
const {
|
|
414
|
+
pageStyle,
|
|
415
|
+
track
|
|
416
|
+
} = usePager();
|
|
417
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
418
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
|
|
419
|
+
ref,
|
|
420
|
+
...rest,
|
|
421
|
+
style: [pageStyle, {
|
|
422
|
+
width: track.width,
|
|
423
|
+
height: track.height
|
|
424
|
+
}, styleProps, style],
|
|
425
|
+
children
|
|
426
|
+
});
|
|
427
|
+
});
|
|
428
|
+
PagerPage.displayName = "XAUI.Pager.Page";
|
|
429
|
+
|
|
430
|
+
// src/components/pager/pager.tsx
|
|
431
|
+
|
|
432
|
+
var PagerRoot = _react.forwardRef.call(void 0, function Pager({
|
|
433
|
+
children,
|
|
434
|
+
variant,
|
|
435
|
+
size,
|
|
436
|
+
color,
|
|
437
|
+
orientation = "horizontal",
|
|
438
|
+
index: indexProp,
|
|
439
|
+
defaultIndex = 0,
|
|
440
|
+
onIndexChange,
|
|
441
|
+
isDisabled = false,
|
|
442
|
+
style,
|
|
443
|
+
...props
|
|
444
|
+
}, ref) {
|
|
445
|
+
const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0);
|
|
446
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
447
|
+
const [index, setIndex] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
448
|
+
value: indexProp,
|
|
449
|
+
defaultValue: defaultIndex,
|
|
450
|
+
onChange: onIndexChange
|
|
451
|
+
});
|
|
452
|
+
const [track, setTrack] = _react.useState.call(void 0, {
|
|
453
|
+
width: 0,
|
|
454
|
+
height: 0
|
|
455
|
+
});
|
|
456
|
+
const [count, setCount] = _react.useState.call(void 0, 0);
|
|
457
|
+
const trackRef = _reactnativereanimated.useAnimatedRef.call(void 0);
|
|
458
|
+
const offset = _reactnativereanimated.useSharedValue.call(void 0, 0);
|
|
459
|
+
const selection = {
|
|
460
|
+
variant,
|
|
461
|
+
size,
|
|
462
|
+
orientation
|
|
463
|
+
};
|
|
464
|
+
const states = {
|
|
465
|
+
disabled: isDisabled
|
|
466
|
+
};
|
|
467
|
+
const styles = pagerRecipe.resolve({
|
|
468
|
+
theme,
|
|
469
|
+
selection,
|
|
470
|
+
states
|
|
471
|
+
});
|
|
472
|
+
const tint = color ? pagerRecipe.tint({
|
|
473
|
+
theme,
|
|
474
|
+
color,
|
|
475
|
+
selection,
|
|
476
|
+
states
|
|
477
|
+
}) : void 0;
|
|
478
|
+
const step = orientation === "horizontal" ? track.width : track.height;
|
|
479
|
+
const goTo = _react.useCallback.call(void 0, next => {
|
|
480
|
+
const distance = next * step;
|
|
481
|
+
_optionalChain([trackRef, 'access', _3 => _3.current, 'optionalAccess', _4 => _4.scrollTo, 'call', _5 => _5({
|
|
482
|
+
x: orientation === "horizontal" ? distance : 0,
|
|
483
|
+
y: orientation === "horizontal" ? 0 : distance,
|
|
484
|
+
animated: true
|
|
485
|
+
})]);
|
|
486
|
+
setIndex(next);
|
|
487
|
+
}, [orientation, setIndex, step, trackRef]);
|
|
488
|
+
const context = _react.useMemo.call(void 0, () => ({
|
|
489
|
+
contentStyle: styles.content,
|
|
490
|
+
pageStyle: styles.page,
|
|
491
|
+
indicatorStyle: styles.indicator,
|
|
492
|
+
// One colour for every dot; the current one is told apart by its opacity, which the dot
|
|
493
|
+
// animates itself. Nothing here has to be flattened into a value for a worklet.
|
|
494
|
+
dotStyle: tint ? [styles.dot, tint.dot] : styles.dot,
|
|
495
|
+
orientation,
|
|
496
|
+
index,
|
|
497
|
+
count,
|
|
498
|
+
setCount,
|
|
499
|
+
track,
|
|
500
|
+
setTrack,
|
|
501
|
+
step,
|
|
502
|
+
offset,
|
|
503
|
+
goTo,
|
|
504
|
+
onSettle: setIndex,
|
|
505
|
+
trackRef,
|
|
506
|
+
isDisabled
|
|
507
|
+
}), [styles, tint, orientation, index, count, track, setTrack, step, offset, goTo, setIndex, trackRef, isDisabled]);
|
|
508
|
+
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _6 => _6.root]), styleProps, style];
|
|
509
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, PagerProvider, {
|
|
510
|
+
value: context,
|
|
511
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
|
|
512
|
+
ref,
|
|
513
|
+
...rest,
|
|
514
|
+
style: rootStyle,
|
|
515
|
+
children
|
|
516
|
+
})
|
|
517
|
+
});
|
|
518
|
+
});
|
|
519
|
+
PagerRoot.displayName = "XAUI.Pager.Root";
|
|
520
|
+
|
|
521
|
+
// src/components/pager/index.ts
|
|
522
|
+
var Pager2 = Object.assign(PagerRoot, {
|
|
523
|
+
Content: PagerContent,
|
|
524
|
+
Page: PagerPage,
|
|
525
|
+
Indicator: PagerIndicator,
|
|
526
|
+
Dot: PagerDot
|
|
527
|
+
});
|
|
528
|
+
exports.usePager = usePager;
|
|
529
|
+
exports.PagerContent = PagerContent;
|
|
530
|
+
exports.DOT_REST_OPACITY = DOT_REST_OPACITY;
|
|
531
|
+
exports.pagerRecipe = pagerRecipe;
|
|
532
|
+
exports.PagerIndicator = PagerIndicator;
|
|
533
|
+
exports.PagerDot = PagerDot;
|
|
534
|
+
exports.PagerPage = PagerPage;
|
|
535
|
+
exports.PagerRoot = PagerRoot;
|
|
536
|
+
exports.Pager = Pager2;
|
|
@@ -10,7 +10,7 @@ var _chunkAXKDHX5Vcjs = require('./chunk-AXKDHX5V.cjs');
|
|
|
10
10
|
var _chunkWLWZG2PAcjs = require('./chunk-WLWZG2PA.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
@@ -166,7 +166,7 @@ var DummyFieldField = _react.forwardRef.call(void 0,
|
|
|
166
166
|
content = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DummyFieldValue, { placeholder, children: value });
|
|
167
167
|
}
|
|
168
168
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.IconContext.Provider, { value: glyph, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
169
|
-
|
|
169
|
+
_chunkHBYT7B47cjs.PressableFeedback,
|
|
170
170
|
{
|
|
171
171
|
ref,
|
|
172
172
|
isPressed,
|