@xaui/native 0.9.1-alpha.90 → 0.9.1-alpha.92
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-XZ42OWKC.js → chunk-2AFA5HA2.js} +78 -74
- package/dist/{chunk-A2JNZMDJ.cjs → chunk-2B6PUYTP.cjs} +2 -2
- package/dist/chunk-3A5RK2R7.js +40 -0
- package/dist/{chunk-HQLJZ6C2.js → chunk-52XUGOLD.js} +3 -3
- package/dist/{chunk-TCDWDTSW.cjs → chunk-5E6SHYEQ.cjs} +3 -3
- package/dist/{chunk-Y36UGSTS.cjs → chunk-62AYYMZP.cjs} +3 -3
- package/dist/{chunk-BLGAFZRI.cjs → chunk-6GQ7UTJ7.cjs} +2 -2
- package/dist/chunk-6JAGPPZU.cjs +788 -0
- package/dist/{chunk-CVPBNJRG.js → chunk-6RU6GUJP.js} +1 -1
- package/dist/{chunk-XUF7K4WP.js → chunk-7EVW6O2Q.js} +1 -1
- package/dist/chunk-7NQL5DXY.js +302 -0
- package/dist/{chunk-ACWFIZKC.cjs → chunk-AR7667VN.cjs} +6 -6
- package/dist/{chunk-DSCZZZIG.cjs → chunk-B33OU34Z.cjs} +12 -12
- package/dist/{chunk-WGXOYMZM.cjs → chunk-BI5ME4QP.cjs} +5 -5
- package/dist/{chunk-IEEUSJBJ.js → chunk-BJVO7DWJ.js} +1 -1
- package/dist/{chunk-5YEMZL4C.cjs → chunk-CBRW53GN.cjs} +7 -7
- package/dist/{chunk-34UJTR37.cjs → chunk-CBXILKQZ.cjs} +3 -3
- package/dist/{chunk-FB4JF34M.cjs → chunk-CEPX7CKM.cjs} +16 -16
- package/dist/{chunk-377XFATD.cjs → chunk-CYOUOQXT.cjs} +5 -5
- package/dist/{chunk-AUYFPVLA.cjs → chunk-DYQB54JA.cjs} +2 -2
- package/dist/{chunk-3OQPAZTF.js → chunk-EBCAPIBD.js} +44 -44
- package/dist/{chunk-M5LTEKGJ.cjs → chunk-EDNCHCIN.cjs} +2 -2
- package/dist/{chunk-34KILEQD.js → chunk-FOOXBVOQ.js} +15 -15
- package/dist/{chunk-24WXPNIT.js → chunk-FRLWG5LM.js} +24 -24
- package/dist/chunk-FTPPUTWL.cjs +40 -0
- package/dist/{chunk-AAQIBMJI.js → chunk-FVEMTBU4.js} +2 -2
- package/dist/{chunk-54DVPCYB.cjs → chunk-FXN32S75.cjs} +3 -3
- package/dist/chunk-GGP2ERSV.js +487 -0
- package/dist/{chunk-6BB6YWEN.js → chunk-GYEQEF5H.js} +1 -1
- package/dist/{chunk-MTGUUW7F.cjs → chunk-GZAGWNQM.cjs} +3 -3
- package/dist/{chunk-OF3E7WVQ.cjs → chunk-ILXKBDC6.cjs} +10 -10
- package/dist/{chunk-D2UYBAGB.cjs → chunk-IPD3IUE2.cjs} +4 -4
- package/dist/{chunk-XLPOJTA2.cjs → chunk-JBZ7SBRV.cjs} +3 -3
- package/dist/{chunk-UMTVYPYK.js → chunk-JC4YCKKL.js} +15 -15
- package/dist/{chunk-GL46PQPW.js → chunk-JJYHW4PV.js} +1 -1
- package/dist/{chunk-2CTIZGMC.js → chunk-JKDWYNSG.js} +99 -99
- package/dist/chunk-KPKEZWZM.js +517 -0
- package/dist/{chunk-KTI3GCFM.js → chunk-LECYGVIH.js} +43 -43
- package/dist/chunk-LKRQUQZQ.cjs +487 -0
- package/dist/{chunk-SYVFU6O5.cjs → chunk-LPJ3UBSO.cjs} +4 -4
- package/dist/{chunk-RS2UWFEG.js → chunk-MMFIMQMQ.js} +2 -2
- package/dist/chunk-MSORLKO7.cjs +422 -0
- package/dist/{chunk-PKVKFZW7.js → chunk-O6B72H4B.js} +5 -5
- package/dist/{chunk-7KQG4JQ2.js → chunk-OD6H7ANY.js} +1 -1
- package/dist/{chunk-UXPBSREP.js → chunk-ODQHAPQW.js} +17 -17
- package/dist/{chunk-TB7V2DO3.cjs → chunk-ORXVXYKC.cjs} +11 -11
- package/dist/{chunk-PIU3JONR.cjs → chunk-OW4N2C3M.cjs} +64 -60
- package/dist/{chunk-NPY7I7JJ.js → chunk-P2CJNTAP.js} +15 -15
- package/dist/{chunk-AOXNVM55.cjs → chunk-P2V6PIM7.cjs} +2 -2
- package/dist/{chunk-CKADVFCH.js → chunk-P5M5URAB.js} +30 -127
- package/dist/{chunk-BPQWLUQU.js → chunk-P7OHZCU3.js} +2 -2
- package/dist/{chunk-DPW25YCM.cjs → chunk-PAQD6UUF.cjs} +3 -3
- package/dist/{chunk-LDFBDFIW.js → chunk-PAQZOD2L.js} +1 -1
- package/dist/{chunk-4TG2OLEM.cjs → chunk-PDSR42YC.cjs} +3 -3
- package/dist/{chunk-AXSY2KPT.cjs → chunk-PROLOLZ5.cjs} +2 -2
- package/dist/{chunk-4SPCZVR6.cjs → chunk-PYQ2P3M5.cjs} +58 -58
- package/dist/{chunk-ZZTUJELK.cjs → chunk-Q2BWXT55.cjs} +9 -9
- package/dist/{chunk-RD3ZUUBC.cjs → chunk-QCH7X7O2.cjs} +14 -14
- package/dist/{chunk-ZYN7XKF5.cjs → chunk-QELEKXN3.cjs} +5 -5
- package/dist/{chunk-ZN5P3VTI.js → chunk-QHXTO525.js} +1 -1
- package/dist/{chunk-EVSQ4CEI.cjs → chunk-QN2D5ZCS.cjs} +3 -3
- package/dist/{chunk-4XZWVJZL.cjs → chunk-QUSQEYLP.cjs} +25 -25
- package/dist/chunk-RCSEVEIR.js +422 -0
- package/dist/{chunk-GOKUBJIK.js → chunk-RLC3EXMV.js} +2 -2
- package/dist/{chunk-BLYKQD47.cjs → chunk-RREJUSAS.cjs} +3 -3
- package/dist/{chunk-BLDMKFIG.js → chunk-RSIWSVXI.js} +1 -1
- package/dist/{chunk-5VYB7F3H.js → chunk-RXEUKYM5.js} +1 -1
- package/dist/{chunk-WRW4JBB4.js → chunk-SUJLTC2K.js} +4 -4
- package/dist/{chunk-KBQT6MZ4.js → chunk-TCWW7JI2.js} +58 -58
- package/dist/{chunk-B2KUGQS5.js → chunk-TPYOQSKT.js} +1 -1
- package/dist/{chunk-SEYZGC4E.js → chunk-TRWZEOCO.js} +2 -2
- package/dist/{chunk-SDLDRTT7.cjs → chunk-UEW3GAP5.cjs} +5 -5
- package/dist/{chunk-WQZJ26SX.cjs → chunk-UFKSUELU.cjs} +2 -2
- package/dist/chunk-UR37LVPU.cjs +382 -0
- package/dist/{chunk-4BAKKBHJ.js → chunk-USIWPESU.js} +1 -1
- package/dist/{chunk-HM6M6SIP.js → chunk-UYQLW7OD.js} +1 -1
- package/dist/{chunk-NIEIDK5Z.js → chunk-V2CEKPJ6.js} +4 -4
- package/dist/{chunk-GPSVJ75L.js → chunk-VMPCXS4S.js} +15 -15
- package/dist/{chunk-W6TFYAEF.js → chunk-VQGNLX5C.js} +1 -1
- package/dist/{chunk-YSZ4K6L6.cjs → chunk-WIX4SYZI.cjs} +2 -2
- package/dist/{chunk-T3WEEHSB.js → chunk-WRZV6ORJ.js} +1 -1
- package/dist/{chunk-UDVKP3V2.cjs → chunk-X4CZYJZ6.cjs} +12 -12
- package/dist/chunk-XWIPLZTD.cjs +302 -0
- package/dist/{chunk-67WT74DY.cjs → chunk-ZE4IHUUO.cjs} +2 -2
- package/dist/{chunk-4JB7XQCJ.js → chunk-ZKGVOXLQ.js} +1 -1
- package/dist/{chunk-U32IGHJ6.js → chunk-ZWS3FQ3J.js} +57 -57
- 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/button.d.cts +1 -0
- package/dist/components/button/button.d.ts +1 -0
- package/dist/components/button/index.cjs +4 -4
- package/dist/components/button/index.d.cts +1 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/index.js +3 -3
- package/dist/components/calendar/index.cjs +3 -3
- package/dist/components/calendar/index.js +2 -2
- package/dist/components/card/card.d.cts +1 -0
- package/dist/components/card/card.d.ts +1 -0
- package/dist/components/card/index.cjs +3 -3
- package/dist/components/card/index.d.cts +1 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/index.js +2 -2
- package/dist/components/carousel/index.cjs +4 -3
- package/dist/components/carousel/index.js +3 -2
- package/dist/components/checkbox/checkbox.d.cts +1 -0
- package/dist/components/checkbox/checkbox.d.ts +1 -0
- package/dist/components/checkbox/index.cjs +3 -3
- package/dist/components/checkbox/index.d.cts +1 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/chip/chip.d.cts +1 -0
- package/dist/components/chip/chip.d.ts +1 -0
- package/dist/components/chip/index.cjs +4 -4
- package/dist/components/chip/index.d.cts +1 -0
- package/dist/components/chip/index.d.ts +1 -0
- package/dist/components/chip/index.js +3 -3
- package/dist/components/close-button/close-button.d.cts +1 -0
- package/dist/components/close-button/close-button.d.ts +1 -0
- package/dist/components/close-button/index.cjs +4 -4
- package/dist/components/close-button/index.js +3 -3
- package/dist/components/color-picker/color-picker.d.cts +1 -1
- package/dist/components/color-picker/color-picker.d.ts +1 -1
- package/dist/components/color-picker/index.cjs +6 -6
- package/dist/components/color-picker/index.d.cts +1 -1
- package/dist/components/color-picker/index.d.ts +1 -1
- 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/index.cjs +7 -7
- package/dist/components/date-time-picker/index.js +6 -6
- 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 +4 -4
- package/dist/components/fab/index.js +3 -3
- package/dist/components/flip-card/index.cjs +3 -3
- package/dist/components/flip-card/index.js +2 -2
- package/dist/components/index.d.cts +4 -0
- package/dist/components/index.d.ts +4 -0
- 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 +39 -0
- package/dist/components/morph-button/index.d.cts +53 -0
- package/dist/components/morph-button/index.d.ts +53 -0
- package/dist/components/morph-button/index.js +39 -0
- package/dist/components/morph-button/morph-button-face.d.cts +9 -0
- package/dist/components/morph-button/morph-button-face.d.ts +9 -0
- package/dist/components/morph-button/morph-button-icon.d.cts +13 -0
- package/dist/components/morph-button/morph-button-icon.d.ts +13 -0
- package/dist/components/morph-button/morph-button-text.d.cts +16 -0
- package/dist/components/morph-button/morph-button-text.d.ts +16 -0
- package/dist/components/morph-button/morph-button.animation.d.cts +29 -0
- package/dist/components/morph-button/morph-button.animation.d.ts +29 -0
- package/dist/components/morph-button/morph-button.context.d.cts +7 -0
- package/dist/components/morph-button/morph-button.context.d.ts +7 -0
- package/dist/components/morph-button/morph-button.d.cts +61 -0
- package/dist/components/morph-button/morph-button.d.ts +61 -0
- package/dist/components/morph-button/morph-button.recipe.d.cts +11 -0
- package/dist/components/morph-button/morph-button.recipe.d.ts +11 -0
- package/dist/components/morph-button/morph-button.type.d.cts +99 -0
- package/dist/components/morph-button/morph-button.type.d.ts +99 -0
- package/dist/components/number-pad/index.cjs +40 -0
- package/dist/components/number-pad/index.d.cts +60 -0
- package/dist/components/number-pad/index.d.ts +60 -0
- package/dist/components/number-pad/index.js +40 -0
- package/dist/components/number-pad/number-pad-action.d.cts +24 -0
- package/dist/components/number-pad/number-pad-action.d.ts +24 -0
- package/dist/components/number-pad/number-pad-backspace.d.cts +18 -0
- package/dist/components/number-pad/number-pad-backspace.d.ts +18 -0
- package/dist/components/number-pad/number-pad-cell.d.cts +7 -0
- package/dist/components/number-pad/number-pad-cell.d.ts +7 -0
- package/dist/components/number-pad/number-pad-icon.d.cts +13 -0
- package/dist/components/number-pad/number-pad-icon.d.ts +13 -0
- package/dist/components/number-pad/number-pad-key.d.cts +24 -0
- package/dist/components/number-pad/number-pad-key.d.ts +24 -0
- package/dist/components/number-pad/number-pad-label.d.cts +14 -0
- package/dist/components/number-pad/number-pad-label.d.ts +14 -0
- package/dist/components/number-pad/number-pad.context.d.cts +18 -0
- package/dist/components/number-pad/number-pad.context.d.ts +18 -0
- package/dist/components/number-pad/number-pad.d.cts +57 -0
- package/dist/components/number-pad/number-pad.d.ts +57 -0
- package/dist/components/number-pad/number-pad.recipe.d.cts +11 -0
- package/dist/components/number-pad/number-pad.recipe.d.ts +11 -0
- package/dist/components/number-pad/number-pad.style.d.cts +13 -0
- package/dist/components/number-pad/number-pad.style.d.ts +13 -0
- package/dist/components/number-pad/number-pad.type.d.cts +135 -0
- package/dist/components/number-pad/number-pad.type.d.ts +135 -0
- package/dist/components/number-pad/number-pad.utils.d.cts +34 -0
- package/dist/components/number-pad/number-pad.utils.d.ts +34 -0
- package/dist/components/number-stepper/index.cjs +3 -3
- package/dist/components/number-stepper/index.js +2 -2
- package/dist/components/pager/index.cjs +31 -0
- package/dist/components/pager/index.d.cts +60 -0
- package/dist/components/pager/index.d.ts +60 -0
- package/dist/components/pager/index.js +31 -0
- package/dist/components/pager/pager-content.d.cts +24 -0
- package/dist/components/pager/pager-content.d.ts +24 -0
- package/dist/components/pager/pager-indicator.d.cts +47 -0
- package/dist/components/pager/pager-indicator.d.ts +47 -0
- package/dist/components/pager/pager-page.d.cts +16 -0
- package/dist/components/pager/pager-page.d.ts +16 -0
- package/dist/components/pager/pager.context.d.cts +7 -0
- package/dist/components/pager/pager.context.d.ts +7 -0
- package/dist/components/pager/pager.d.cts +71 -0
- package/dist/components/pager/pager.d.ts +71 -0
- package/dist/components/pager/pager.recipe.d.cts +15 -0
- package/dist/components/pager/pager.recipe.d.ts +15 -0
- package/dist/components/pager/pager.type.d.cts +108 -0
- package/dist/components/pager/pager.type.d.ts +108 -0
- package/dist/components/phone-number-field/index.cjs +15 -15
- package/dist/components/phone-number-field/index.js +4 -4
- 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.d.cts +1 -0
- package/dist/components/radio/index.d.ts +1 -0
- package/dist/components/radio/index.js +2 -2
- package/dist/components/radio/radio.d.cts +1 -0
- package/dist/components/radio/radio.d.ts +1 -0
- package/dist/components/range-calendar/index.cjs +4 -4
- package/dist/components/range-calendar/index.js +3 -3
- package/dist/components/rating/index.cjs +30 -0
- package/dist/components/rating/index.d.cts +41 -0
- package/dist/components/rating/index.d.ts +41 -0
- package/dist/components/rating/index.js +30 -0
- package/dist/components/rating/rating-icon.d.cts +16 -0
- package/dist/components/rating/rating-icon.d.ts +16 -0
- package/dist/components/rating/rating-item.d.cts +23 -0
- package/dist/components/rating/rating-item.d.ts +23 -0
- package/dist/components/rating/rating-star.d.cts +19 -0
- package/dist/components/rating/rating-star.d.ts +19 -0
- package/dist/components/rating/rating.context.d.cts +16 -0
- package/dist/components/rating/rating.context.d.ts +16 -0
- package/dist/components/rating/rating.d.cts +59 -0
- package/dist/components/rating/rating.d.ts +59 -0
- package/dist/components/rating/rating.recipe.d.cts +11 -0
- package/dist/components/rating/rating.recipe.d.ts +11 -0
- package/dist/components/rating/rating.style.d.cts +24 -0
- package/dist/components/rating/rating.style.d.ts +24 -0
- package/dist/components/rating/rating.type.d.cts +108 -0
- package/dist/components/rating/rating.type.d.ts +108 -0
- package/dist/components/rating/rating.utils.d.cts +28 -0
- package/dist/components/rating/rating.utils.d.ts +28 -0
- package/dist/components/search-field/index.cjs +4 -4
- package/dist/components/search-field/index.js +3 -3
- package/dist/components/segment/index.cjs +2 -2
- package/dist/components/segment/index.js +1 -1
- package/dist/components/select/index.cjs +3 -3
- package/dist/components/select/index.js +2 -2
- 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.d.cts +1 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/index.js +2 -2
- package/dist/components/switch/switch.d.cts +1 -0
- package/dist/components/switch/switch.d.ts +1 -0
- package/dist/components/table/index.cjs +4 -4
- package/dist/components/table/index.js +3 -3
- package/dist/components/tabs/index.cjs +3 -3
- package/dist/components/tabs/index.js +2 -2
- 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 -4
- package/dist/components/time-picker/index.js +3 -3
- 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.d.cts +1 -0
- package/dist/components/toggle-button/index.d.ts +1 -0
- package/dist/components/toggle-button/index.js +2 -2
- package/dist/components/toggle-button/toggle-button.d.cts +1 -0
- package/dist/components/toggle-button/toggle-button.d.ts +1 -0
- package/dist/index.cjs +145 -60
- package/dist/index.js +243 -158
- package/dist/system/index.cjs +3 -3
- package/dist/system/index.js +2 -2
- package/dist/system/pressable-feedback/index.d.cts +1 -0
- package/dist/system/pressable-feedback/index.d.ts +1 -0
- package/dist/system/pressable-feedback/pressable-feedback.d.cts +1 -0
- package/dist/system/pressable-feedback/pressable-feedback.d.ts +1 -0
- package/dist/system/pressable-feedback/pressable-feedback.type.d.cts +13 -1
- package/dist/system/pressable-feedback/pressable-feedback.type.d.ts +13 -1
- package/package.json +41 -1
- package/dist/chunk-L5GB6G3L.cjs +0 -1007
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
|
+
|
|
3
|
+
var _chunkH2FTAU5Ccjs = require('./chunk-H2FTAU5C.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
var _chunkGSZDN6EZcjs = require('./chunk-GSZDN6EZ.cjs');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var _chunkSL3V7R2Ycjs = require('./chunk-SL3V7R2Y.cjs');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
var _chunkIIAQISBGcjs = require('./chunk-IIAQISBG.cjs');
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
32
|
+
|
|
33
|
+
// src/components/morph-button/morph-button-face.tsx
|
|
34
|
+
var _react = require('react');
|
|
35
|
+
var _reactnativereanimated = require('react-native-reanimated'); var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
|
|
36
|
+
|
|
37
|
+
// src/components/morph-button/morph-button.animation.ts
|
|
38
|
+
|
|
39
|
+
var MORPH_SPRING = { stiffness: 1400, damping: 110, mass: 3 };
|
|
40
|
+
function morphTransition(spring) {
|
|
41
|
+
return _reactnativereanimated.LinearTransition.springify().stiffness(spring.stiffness).damping(spring.damping).mass(spring.mass);
|
|
42
|
+
}
|
|
43
|
+
var FACE_MS = 140;
|
|
44
|
+
var faceEntering = _reactnativereanimated.FadeIn.duration(FACE_MS).easing(_reactnativereanimated.Easing.out(_reactnativereanimated.Easing.ease));
|
|
45
|
+
var faceExiting = _reactnativereanimated.FadeOut.duration(FACE_MS).easing(_reactnativereanimated.Easing.in(_reactnativereanimated.Easing.ease));
|
|
46
|
+
|
|
47
|
+
// src/components/morph-button/morph-button.context.ts
|
|
48
|
+
var [MorphButtonProvider, useMorphButton] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "MorphButton");
|
|
49
|
+
|
|
50
|
+
// src/components/morph-button/morph-button-face.tsx
|
|
51
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
52
|
+
function face(which, name) {
|
|
53
|
+
const Component = _react.forwardRef.call(void 0, function MorphButtonFace({ children, style, ...props }, ref) {
|
|
54
|
+
const { isExpanded, collapsedStyle, expandedStyle, animation } = useMorphButton();
|
|
55
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
56
|
+
if (isExpanded !== (which === "expanded")) return null;
|
|
57
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
58
|
+
_reactnativereanimated2.default.View,
|
|
59
|
+
{
|
|
60
|
+
ref,
|
|
61
|
+
entering: animation ? faceEntering : void 0,
|
|
62
|
+
exiting: animation ? faceExiting : void 0,
|
|
63
|
+
...rest,
|
|
64
|
+
style: [
|
|
65
|
+
which === "expanded" ? expandedStyle : collapsedStyle,
|
|
66
|
+
styleProps,
|
|
67
|
+
style
|
|
68
|
+
],
|
|
69
|
+
children
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
});
|
|
73
|
+
Component.displayName = name;
|
|
74
|
+
return Component;
|
|
75
|
+
}
|
|
76
|
+
var MorphButtonCollapsed = face("collapsed", "XAUI.MorphButton.Collapsed");
|
|
77
|
+
var MorphButtonExpanded = face("expanded", "XAUI.MorphButton.Expanded");
|
|
78
|
+
|
|
79
|
+
// src/components/morph-button/morph-button-icon.tsx
|
|
80
|
+
|
|
81
|
+
function MorphButtonIcon({ size, color, ...rest }) {
|
|
82
|
+
const { icon } = useMorphButton();
|
|
83
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.Icon, { size: _nullishCoalesce(size, () => ( icon.size)), color: _nullishCoalesce(color, () => ( icon.color)), ...rest });
|
|
84
|
+
}
|
|
85
|
+
MorphButtonIcon.displayName = "XAUI.MorphButton.Icon";
|
|
86
|
+
|
|
87
|
+
// src/components/morph-button/morph-button-text.tsx
|
|
88
|
+
|
|
89
|
+
var _reactnative = require('react-native');
|
|
90
|
+
|
|
91
|
+
function text(slot, lines, name) {
|
|
92
|
+
const Component = _react.forwardRef.call(void 0, function MorphButtonText({ children, style, numberOfLines = lines, ...props }, ref) {
|
|
93
|
+
const context = useMorphButton();
|
|
94
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
95
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
96
|
+
_reactnative.Text,
|
|
97
|
+
{
|
|
98
|
+
ref,
|
|
99
|
+
numberOfLines,
|
|
100
|
+
style: [context[slot], styleProps, style],
|
|
101
|
+
...rest,
|
|
102
|
+
children
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
});
|
|
106
|
+
Component.displayName = name;
|
|
107
|
+
return Component;
|
|
108
|
+
}
|
|
109
|
+
var MorphButtonLabel = text("labelStyle", 1, "XAUI.MorphButton.Label");
|
|
110
|
+
var MorphButtonTitle = text(
|
|
111
|
+
"titleStyle",
|
|
112
|
+
void 0,
|
|
113
|
+
"XAUI.MorphButton.Title"
|
|
114
|
+
);
|
|
115
|
+
var MorphButtonDescription = text(
|
|
116
|
+
"descriptionStyle",
|
|
117
|
+
void 0,
|
|
118
|
+
"XAUI.MorphButton.Description"
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
// src/components/morph-button/morph-button.tsx
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
// src/components/morph-button/morph-button.recipe.ts
|
|
126
|
+
var SLOTS = [
|
|
127
|
+
"root",
|
|
128
|
+
"collapsed",
|
|
129
|
+
"expanded",
|
|
130
|
+
"label",
|
|
131
|
+
"title",
|
|
132
|
+
"description",
|
|
133
|
+
"icon"
|
|
134
|
+
];
|
|
135
|
+
var VARIANT_TOKENS = {
|
|
136
|
+
primary: { bg: "accent", bgPressed: "accentPressed", fg: "accentForeground" },
|
|
137
|
+
secondary: {
|
|
138
|
+
bg: "accentSoft",
|
|
139
|
+
bgPressed: "accentSoftPressed",
|
|
140
|
+
fg: "accentSoftForeground"
|
|
141
|
+
},
|
|
142
|
+
default: { bg: "default", bgPressed: "defaultPressed", fg: "defaultForeground" },
|
|
143
|
+
tertiary: { border: "border", bgPressed: "defaultSoftPressed", fg: "foreground" },
|
|
144
|
+
ghost: { bgPressed: "defaultSoftPressed", fg: "foreground" },
|
|
145
|
+
danger: { bg: "danger", bgPressed: "dangerPressed", fg: "dangerForeground" },
|
|
146
|
+
"danger-soft": {
|
|
147
|
+
bg: "dangerSoft",
|
|
148
|
+
bgPressed: "dangerSoftPressed",
|
|
149
|
+
fg: "dangerSoftForeground"
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
var DESCRIPTION_OPACITY = 0.72;
|
|
153
|
+
function sharedCorner(theme, height) {
|
|
154
|
+
return theme.controlHeights[height] / 2;
|
|
155
|
+
}
|
|
156
|
+
function sizeAxis(step) {
|
|
157
|
+
const { height, inset, gap, padding, stack, label, title, description, glyph } = step;
|
|
158
|
+
return (theme) => ({
|
|
159
|
+
root: { borderRadius: sharedCorner(theme, height) },
|
|
160
|
+
collapsed: {
|
|
161
|
+
height: theme.controlHeights[height],
|
|
162
|
+
paddingHorizontal: theme.spacing(inset),
|
|
163
|
+
gap: theme.spacing(gap)
|
|
164
|
+
},
|
|
165
|
+
expanded: { padding: theme.spacing(padding), gap: theme.spacing(stack) },
|
|
166
|
+
label: {
|
|
167
|
+
fontSize: theme.fontSizes[label],
|
|
168
|
+
lineHeight: theme.lineHeights[label]
|
|
169
|
+
},
|
|
170
|
+
title: {
|
|
171
|
+
fontSize: theme.fontSizes[title],
|
|
172
|
+
lineHeight: theme.lineHeights[title]
|
|
173
|
+
},
|
|
174
|
+
description: {
|
|
175
|
+
fontSize: theme.fontSizes[description],
|
|
176
|
+
lineHeight: theme.lineHeights[description]
|
|
177
|
+
},
|
|
178
|
+
icon: { fontSize: theme.fontSizes[glyph] }
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
var SIZES = {
|
|
182
|
+
sm: {
|
|
183
|
+
height: "sm",
|
|
184
|
+
inset: 3.5,
|
|
185
|
+
gap: 1.5,
|
|
186
|
+
padding: 4,
|
|
187
|
+
stack: 1,
|
|
188
|
+
label: "sm",
|
|
189
|
+
title: "md",
|
|
190
|
+
description: "xs",
|
|
191
|
+
glyph: "md"
|
|
192
|
+
},
|
|
193
|
+
md: {
|
|
194
|
+
height: "md",
|
|
195
|
+
inset: 4,
|
|
196
|
+
gap: 2,
|
|
197
|
+
padding: 5,
|
|
198
|
+
stack: 1.5,
|
|
199
|
+
label: "md",
|
|
200
|
+
title: "lg",
|
|
201
|
+
description: "sm",
|
|
202
|
+
glyph: "lg"
|
|
203
|
+
},
|
|
204
|
+
lg: {
|
|
205
|
+
height: "lg",
|
|
206
|
+
inset: 5,
|
|
207
|
+
gap: 2.5,
|
|
208
|
+
padding: 6,
|
|
209
|
+
stack: 2,
|
|
210
|
+
label: "lg",
|
|
211
|
+
title: "xl",
|
|
212
|
+
description: "md",
|
|
213
|
+
glyph: "xl"
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
var morphButtonRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
217
|
+
slots: SLOTS,
|
|
218
|
+
base: (theme) => ({
|
|
219
|
+
root: {
|
|
220
|
+
// No width and no height: the faces carry the measurements, so the box is the size of
|
|
221
|
+
// whichever one is mounted. RN's own `alignItems: 'stretch'` is what lets the card
|
|
222
|
+
// fill the box the pill's label sized.
|
|
223
|
+
borderWidth: 0,
|
|
224
|
+
// The entering face is at its final size while the box is still travelling, so
|
|
225
|
+
// without this the card's content is drawn outside the shape for the length of the
|
|
226
|
+
// spring. Clipped, the same frames read as the shape revealing it.
|
|
227
|
+
overflow: "hidden",
|
|
228
|
+
// iOS's squircle, and what keeps a corner this large reading as a shape rather than
|
|
229
|
+
// as two arcs meeting a straight edge.
|
|
230
|
+
borderCurve: "continuous"
|
|
231
|
+
},
|
|
232
|
+
collapsed: {
|
|
233
|
+
flexDirection: "row",
|
|
234
|
+
alignItems: "center",
|
|
235
|
+
justifyContent: "center"
|
|
236
|
+
},
|
|
237
|
+
label: {
|
|
238
|
+
fontFamily: theme.fontFamilies.body,
|
|
239
|
+
fontWeight: theme.fontWeights.medium
|
|
240
|
+
},
|
|
241
|
+
title: {
|
|
242
|
+
fontFamily: theme.fontFamilies.body,
|
|
243
|
+
fontWeight: theme.fontWeights.semibold
|
|
244
|
+
},
|
|
245
|
+
description: {
|
|
246
|
+
fontFamily: theme.fontFamilies.body,
|
|
247
|
+
opacity: DESCRIPTION_OPACITY
|
|
248
|
+
}
|
|
249
|
+
}),
|
|
250
|
+
variantTokens: VARIANT_TOKENS,
|
|
251
|
+
/**
|
|
252
|
+
* Where the variant's colours land, for every variant at once — the `Button`'s `paint`,
|
|
253
|
+
* with the card's two text slots reading the same foreground as the pill's label. The
|
|
254
|
+
* border width follows the *presence* of the border role rather than a per-variant flag.
|
|
255
|
+
*/
|
|
256
|
+
paint: (theme, colors) => ({
|
|
257
|
+
root: {
|
|
258
|
+
backgroundColor: colors.bg,
|
|
259
|
+
borderColor: colors.border,
|
|
260
|
+
borderWidth: colors.border ? theme.borderWidth.default : 0
|
|
261
|
+
},
|
|
262
|
+
label: { color: colors.fg },
|
|
263
|
+
title: { color: colors.fg },
|
|
264
|
+
description: { color: colors.fg },
|
|
265
|
+
icon: { color: colors.fg }
|
|
266
|
+
}),
|
|
267
|
+
/** Declaration order is application order: `radius` overrides the corner `size` derived. */
|
|
268
|
+
variants: {
|
|
269
|
+
size: {
|
|
270
|
+
sm: sizeAxis(SIZES.sm),
|
|
271
|
+
md: sizeAxis(SIZES.md),
|
|
272
|
+
lg: sizeAxis(SIZES.lg)
|
|
273
|
+
},
|
|
274
|
+
radius: _chunkSL3V7R2Ycjs.radiusAxis.call(void 0, "root")
|
|
275
|
+
},
|
|
276
|
+
/**
|
|
277
|
+
* The pressed colour is the variant's own `…Pressed` token rather than a
|
|
278
|
+
* `PressableFeedback.Highlight`, exactly as on the `Button`: a control picks one
|
|
279
|
+
* treatment or the other, and both would darken it twice.
|
|
280
|
+
*/
|
|
281
|
+
states: {
|
|
282
|
+
pressed: (_theme, colors) => ({ root: { backgroundColor: colors.bgPressed } }),
|
|
283
|
+
disabled: (theme) => ({ root: { opacity: theme.opacity.disabled } })
|
|
284
|
+
},
|
|
285
|
+
defaultVariants: { variant: "primary", size: "md" }
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
// src/components/morph-button/morph-button.tsx
|
|
289
|
+
|
|
290
|
+
var MorphButtonRoot = _react.forwardRef.call(void 0,
|
|
291
|
+
function MorphButton({
|
|
292
|
+
children,
|
|
293
|
+
variant,
|
|
294
|
+
size,
|
|
295
|
+
radius,
|
|
296
|
+
color,
|
|
297
|
+
isExpanded: controlledExpanded,
|
|
298
|
+
defaultExpanded = false,
|
|
299
|
+
onExpandedChange,
|
|
300
|
+
animation = true,
|
|
301
|
+
isDisabled = false,
|
|
302
|
+
asChild = false,
|
|
303
|
+
accessibilityRole = "button",
|
|
304
|
+
accessibilityState,
|
|
305
|
+
style,
|
|
306
|
+
onPress,
|
|
307
|
+
onPressIn,
|
|
308
|
+
onPressOut,
|
|
309
|
+
...props
|
|
310
|
+
}, ref) {
|
|
311
|
+
const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0, );
|
|
312
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
313
|
+
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
314
|
+
const [isExpanded, setExpanded] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
315
|
+
value: controlledExpanded,
|
|
316
|
+
defaultValue: defaultExpanded,
|
|
317
|
+
onChange: onExpandedChange
|
|
318
|
+
});
|
|
319
|
+
const selection = { variant, size, radius };
|
|
320
|
+
const states = { pressed: isPressed, disabled: isDisabled };
|
|
321
|
+
const styles = morphButtonRecipe.resolve({ theme, selection, states });
|
|
322
|
+
const tint = color ? morphButtonRecipe.tint({ theme, color, selection, states }) : void 0;
|
|
323
|
+
const hasMorphed = _react.useRef.call(void 0, false);
|
|
324
|
+
_react.useEffect.call(void 0, () => {
|
|
325
|
+
hasMorphed.current = true;
|
|
326
|
+
}, [isExpanded]);
|
|
327
|
+
const toggle = _react.useCallback.call(void 0, () => {
|
|
328
|
+
if (isDisabled) return;
|
|
329
|
+
setExpanded((current) => !current);
|
|
330
|
+
}, [isDisabled, setExpanded]);
|
|
331
|
+
const handlePress = _react.useCallback.call(void 0,
|
|
332
|
+
(event) => {
|
|
333
|
+
_optionalChain([onPress, 'optionalCall', _ => _(event)]);
|
|
334
|
+
toggle();
|
|
335
|
+
},
|
|
336
|
+
[onPress, toggle]
|
|
337
|
+
);
|
|
338
|
+
const transition = _react.useMemo.call(void 0, () => {
|
|
339
|
+
if (animation === false) return void 0;
|
|
340
|
+
const tuned = animation === true ? MORPH_SPRING : { ...MORPH_SPRING, ...animation };
|
|
341
|
+
return morphTransition(tuned);
|
|
342
|
+
}, [animation]);
|
|
343
|
+
const context = _react.useMemo.call(void 0, () => {
|
|
344
|
+
const icon = _reactnative.StyleSheet.flatten([styles.icon, _optionalChain([tint, 'optionalAccess', _2 => _2.icon])]);
|
|
345
|
+
return {
|
|
346
|
+
collapsedStyle: styles.collapsed,
|
|
347
|
+
expandedStyle: styles.expanded,
|
|
348
|
+
labelStyle: tint ? [styles.label, tint.label] : styles.label,
|
|
349
|
+
titleStyle: tint ? [styles.title, tint.title] : styles.title,
|
|
350
|
+
descriptionStyle: tint ? [styles.description, tint.description] : styles.description,
|
|
351
|
+
icon: {
|
|
352
|
+
size: icon.fontSize,
|
|
353
|
+
// `ColorValue` also covers the platform's opaque colours, which `Icon` cannot
|
|
354
|
+
// hand to a third-party component expecting a string.
|
|
355
|
+
color: typeof icon.color === "string" ? icon.color : void 0
|
|
356
|
+
},
|
|
357
|
+
isExpanded,
|
|
358
|
+
toggle,
|
|
359
|
+
isDisabled,
|
|
360
|
+
animation: animation !== false && hasMorphed.current
|
|
361
|
+
};
|
|
362
|
+
}, [styles, tint, isExpanded, toggle, isDisabled, animation]);
|
|
363
|
+
const rootStyle = [
|
|
364
|
+
styles.root,
|
|
365
|
+
_optionalChain([tint, 'optionalAccess', _3 => _3.root]),
|
|
366
|
+
styleProps,
|
|
367
|
+
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
368
|
+
];
|
|
369
|
+
if (!asChild && !_chunkH2FTAU5Ccjs.containsElementOfType.call(void 0, children, MorphButtonCollapsed) && !_chunkH2FTAU5Ccjs.containsElementOfType.call(void 0, children, MorphButtonExpanded)) {
|
|
370
|
+
_chunkEJQCQPETcjs.warnDev.call(void 0,
|
|
371
|
+
"MorphButton: neither a `MorphButton.Collapsed` nor a `MorphButton.Expanded` is composed, so one of the two shapes is empty. The two faces are the API \u2014 a bare string cannot be auto-wrapped, because it could belong to either."
|
|
372
|
+
);
|
|
373
|
+
}
|
|
374
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MorphButtonProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
375
|
+
_chunkOW4N2C3Mcjs.PressableFeedback,
|
|
376
|
+
{
|
|
377
|
+
ref,
|
|
378
|
+
isPressed,
|
|
379
|
+
isDisabled,
|
|
380
|
+
asChild,
|
|
381
|
+
layout: transition,
|
|
382
|
+
accessibilityRole,
|
|
383
|
+
accessibilityState: {
|
|
384
|
+
expanded: isExpanded,
|
|
385
|
+
disabled: isDisabled,
|
|
386
|
+
...accessibilityState
|
|
387
|
+
},
|
|
388
|
+
...rest,
|
|
389
|
+
style: rootStyle,
|
|
390
|
+
onPress: handlePress,
|
|
391
|
+
onPressIn: press.onPressIn,
|
|
392
|
+
onPressOut: press.onPressOut,
|
|
393
|
+
children
|
|
394
|
+
}
|
|
395
|
+
) });
|
|
396
|
+
}
|
|
397
|
+
);
|
|
398
|
+
MorphButtonRoot.displayName = "XAUI.MorphButton.Root";
|
|
399
|
+
|
|
400
|
+
// src/components/morph-button/index.ts
|
|
401
|
+
var MorphButton2 = Object.assign(MorphButtonRoot, {
|
|
402
|
+
Collapsed: MorphButtonCollapsed,
|
|
403
|
+
Expanded: MorphButtonExpanded,
|
|
404
|
+
Label: MorphButtonLabel,
|
|
405
|
+
Title: MorphButtonTitle,
|
|
406
|
+
Description: MorphButtonDescription,
|
|
407
|
+
Icon: MorphButtonIcon
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
exports.MORPH_SPRING = MORPH_SPRING; exports.useMorphButton = useMorphButton; exports.MorphButtonCollapsed = MorphButtonCollapsed; exports.MorphButtonExpanded = MorphButtonExpanded; exports.MorphButtonIcon = MorphButtonIcon; exports.MorphButtonLabel = MorphButtonLabel; exports.MorphButtonTitle = MorphButtonTitle; exports.MorphButtonDescription = MorphButtonDescription; exports.morphButtonRecipe = morphButtonRecipe; exports.MorphButtonRoot = MorphButtonRoot; exports.MorphButton = MorphButton2;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TimePicker2 as TimePicker,
|
|
3
3
|
TimePickerIndicator
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EBCAPIBD.js";
|
|
5
5
|
import {
|
|
6
6
|
withTime
|
|
7
7
|
} from "./chunk-3MRCSXGT.js";
|
|
8
8
|
import {
|
|
9
9
|
Tabs
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UYQLW7OD.js";
|
|
11
11
|
import {
|
|
12
12
|
BottomSheet2 as BottomSheet
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LECYGVIH.js";
|
|
14
14
|
import {
|
|
15
15
|
Calendar
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RSIWSVXI.js";
|
|
17
17
|
import {
|
|
18
18
|
startOfDay
|
|
19
19
|
} from "./chunk-SHFUQVLX.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-F6W3JQ7K.js";
|
|
26
26
|
import {
|
|
27
27
|
PressableFeedback
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2AFA5HA2.js";
|
|
29
29
|
import {
|
|
30
30
|
usePressState
|
|
31
31
|
} from "./chunk-423RQBOX.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EMPTY_RANGE, RangeCalendar } from "./chunk-
|
|
2
|
-
import { BottomSheet2 as BottomSheet } from "./chunk-
|
|
1
|
+
import { EMPTY_RANGE, RangeCalendar } from "./chunk-P7OHZCU3.js";
|
|
2
|
+
import { BottomSheet2 as BottomSheet } from "./chunk-LECYGVIH.js";
|
|
3
3
|
import { selectRecipe } from "./chunk-E4FWGZH2.js";
|
|
4
4
|
import { INDICATOR_ROTATION, INDICATOR_SPRING } from "./chunk-64MXEVT3.js";
|
|
5
5
|
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
6
|
-
import { PressableFeedback } from "./chunk-
|
|
6
|
+
import { PressableFeedback } from "./chunk-2AFA5HA2.js";
|
|
7
7
|
import { usePressState } from "./chunk-423RQBOX.js";
|
|
8
8
|
import { ChevronDownIcon, Icon, IconContext } from "./chunk-JN6IRT2M.js";
|
|
9
9
|
import { createSlotContext } from "./chunk-TTZOIXKE.js";
|
|
@@ -201,10 +201,10 @@ DateRangePickerCalendar.displayName = "XAUI.DateRangePicker.Calendar";
|
|
|
201
201
|
import { useEffect } from "react";
|
|
202
202
|
import Animated, { interpolate, useAnimatedStyle, useSharedValue, withSpring } from "react-native-reanimated";
|
|
203
203
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
204
|
-
const
|
|
205
|
-
code: "function
|
|
206
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
207
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
204
|
+
const _worklet_16418829714549_init_data = {
|
|
205
|
+
code: "function chunkODQHAPQWJs1(){const{interpolate,progress,INDICATOR_ROTATION}=this.__closure;return{transform:[{rotate:interpolate(progress.get(),[0,1],[INDICATOR_ROTATION[0],INDICATOR_ROTATION[1]])+\"deg\"}]};}",
|
|
206
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ODQHAPQW.js",
|
|
207
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkODQHAPQWJs1\",\"interpolate\",\"progress\",\"INDICATOR_ROTATION\",\"__closure\",\"transform\",\"rotate\",\"get\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ODQHAPQW.js\"],\"mappings\":\"AA6PoC,SAAAA,iBAAA,QAAAC,WAAA,CAAAC,QAAA,CAAAC,kBAAA,OAAAC,SAAA,OAAO,CACvCC,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\",\"ignoreList\":[]}"
|
|
208
208
|
};
|
|
209
209
|
function DateRangePickerIndicator(props) {
|
|
210
210
|
const {
|
|
@@ -218,30 +218,30 @@ function DateRangePickerIndicator(props) {
|
|
|
218
218
|
useEffect(() => {
|
|
219
219
|
progress.set(withSpring(isOpen ? 1 : 0, INDICATOR_SPRING));
|
|
220
220
|
}, [isOpen, progress]);
|
|
221
|
-
const rotation = useAnimatedStyle(function
|
|
222
|
-
|
|
221
|
+
const rotation = useAnimatedStyle(function chunkODQHAPQWJs1Factory({
|
|
222
|
+
_worklet_16418829714549_init_data,
|
|
223
223
|
interpolate,
|
|
224
224
|
progress,
|
|
225
225
|
INDICATOR_ROTATION
|
|
226
226
|
}) {
|
|
227
227
|
const _e = [new global.Error(), -4, -27];
|
|
228
|
-
const
|
|
228
|
+
const chunkODQHAPQWJs1 = () => ({
|
|
229
229
|
transform: [{
|
|
230
230
|
rotate: `${interpolate(progress.get(), [0, 1], [INDICATOR_ROTATION[0], INDICATOR_ROTATION[1]])}deg`
|
|
231
231
|
}]
|
|
232
232
|
});
|
|
233
|
-
|
|
233
|
+
chunkODQHAPQWJs1.__closure = {
|
|
234
234
|
interpolate,
|
|
235
235
|
progress,
|
|
236
236
|
INDICATOR_ROTATION
|
|
237
237
|
};
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
return
|
|
238
|
+
chunkODQHAPQWJs1.__workletHash = 16418829714549;
|
|
239
|
+
chunkODQHAPQWJs1.__pluginVersion = "0.7.4";
|
|
240
|
+
chunkODQHAPQWJs1.__initData = _worklet_16418829714549_init_data;
|
|
241
|
+
chunkODQHAPQWJs1.__stackDetails = _e;
|
|
242
|
+
return chunkODQHAPQWJs1;
|
|
243
243
|
}({
|
|
244
|
-
|
|
244
|
+
_worklet_16418829714549_init_data,
|
|
245
245
|
interpolate,
|
|
246
246
|
progress,
|
|
247
247
|
INDICATOR_ROTATION
|
|
@@ -30,7 +30,7 @@ function _optionalChain(ops) {
|
|
|
30
30
|
return value;
|
|
31
31
|
}
|
|
32
32
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
33
|
-
var
|
|
33
|
+
var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
|
|
34
34
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
35
35
|
var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
|
|
36
36
|
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
@@ -42,13 +42,13 @@ var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
|
|
|
42
42
|
|
|
43
43
|
// src/utils/flip.ts
|
|
44
44
|
var HALF_TURN = 180;
|
|
45
|
-
const
|
|
46
|
-
code: "function
|
|
47
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
48
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
45
|
+
const _worklet_3390119439673_init_data = {
|
|
46
|
+
code: "function faceAngle_chunkORXVXYKCCjs1(progress,face2,rotation=\"normal\"){const{HALF_TURN}=this.__closure;const direction=rotation===\"reverse\"?-1:1;const turns=face2===\"front\"?progress:progress-1;return turns*HALF_TURN*direction;}",
|
|
47
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ORXVXYKC.cjs",
|
|
48
|
+
sourceMap: "{\"version\":3,\"names\":[\"faceAngle_chunkORXVXYKCCjs1\",\"progress\",\"face2\",\"rotation\",\"HALF_TURN\",\"__closure\",\"direction\",\"turns\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ORXVXYKC.cjs\"],\"mappings\":\"AAsBA,SAAAA,2BAAkCA,CAAEC,QAAQ,CAAAC,KAAG,CAAAC,QAAU,iBAAAC,SAAA,OAAAC,SAAA,CAEvD,KAAM,CAAAC,SAAS,CAAGH,QAAQ,GAAK,SAAS,CAAG,CAAC,CAAC,CAAG,CAAC,CACjD,KAAM,CAAAI,KAAK,CAAGL,KAAK,GAAK,OAAO,CAAGD,QAAQ,CAAGA,QAAQ,CAAG,CAAC,CACzD,MAAO,CAAAM,KAAK,CAAGH,SAAS,CAAGE,SAAS,CACtC\",\"ignoreList\":[]}"
|
|
49
49
|
};
|
|
50
|
-
const faceAngle = function
|
|
51
|
-
|
|
50
|
+
const faceAngle = function faceAngle_chunkORXVXYKCCjs1Factory({
|
|
51
|
+
_worklet_3390119439673_init_data,
|
|
52
52
|
HALF_TURN
|
|
53
53
|
}) {
|
|
54
54
|
const _e = [new global.Error(), -2, -27];
|
|
@@ -60,13 +60,13 @@ const faceAngle = function faceAngle_chunkTB7V2DO3Cjs1Factory({
|
|
|
60
60
|
faceAngle.__closure = {
|
|
61
61
|
HALF_TURN
|
|
62
62
|
};
|
|
63
|
-
faceAngle.__workletHash =
|
|
63
|
+
faceAngle.__workletHash = 3390119439673;
|
|
64
64
|
faceAngle.__pluginVersion = "0.7.4";
|
|
65
|
-
faceAngle.__initData =
|
|
65
|
+
faceAngle.__initData = _worklet_3390119439673_init_data;
|
|
66
66
|
faceAngle.__stackDetails = _e;
|
|
67
67
|
return faceAngle;
|
|
68
68
|
}({
|
|
69
|
-
|
|
69
|
+
_worklet_3390119439673_init_data,
|
|
70
70
|
HALF_TURN
|
|
71
71
|
}); // src/components/flip-card/flip-card.style.ts
|
|
72
72
|
var _reactnative = require('react-native');
|
|
@@ -201,7 +201,7 @@ var FlipCardRoot = _react.forwardRef.call(void 0, function FlipCard({
|
|
|
201
201
|
}), [progress, direction, rotation, isFlipped, flip, isDisabled]);
|
|
202
202
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, FlipCardProvider, {
|
|
203
203
|
value: context,
|
|
204
|
-
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0,
|
|
204
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkOW4N2C3Mcjs.PressableFeedback, {
|
|
205
205
|
ref,
|
|
206
206
|
isPressed,
|
|
207
207
|
asChild,
|