@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,302 @@
|
|
|
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
|
+
|
|
3
|
+
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkGSZDN6EZcjs = require('./chunk-GSZDN6EZ.cjs');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
var _chunkSL3V7R2Ycjs = require('./chunk-SL3V7R2Y.cjs');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
var _chunkIIAQISBGcjs = require('./chunk-IIAQISBG.cjs');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
28
|
+
|
|
29
|
+
// src/components/rating/rating.context.ts
|
|
30
|
+
var [RatingProvider, useRating] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "Rating");
|
|
31
|
+
var [RatingLayerProvider, useRatingLayer] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "Rating.Layer");
|
|
32
|
+
|
|
33
|
+
// src/components/rating/rating-icon.tsx
|
|
34
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
35
|
+
function RatingIcon({ size, color, ...rest }) {
|
|
36
|
+
const { icon, iconFill } = useRating();
|
|
37
|
+
const { tone } = useRatingLayer();
|
|
38
|
+
const resolved = tone === "fill" ? iconFill : icon;
|
|
39
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.Icon, { size: _nullishCoalesce(size, () => ( resolved.size)), color: _nullishCoalesce(color, () => ( resolved.color)), ...rest });
|
|
40
|
+
}
|
|
41
|
+
RatingIcon.displayName = "XAUI.Rating.Icon";
|
|
42
|
+
|
|
43
|
+
// src/components/rating/rating-item.tsx
|
|
44
|
+
var _react = require('react');
|
|
45
|
+
var _reactnative = require('react-native');
|
|
46
|
+
|
|
47
|
+
// src/components/rating/rating-star.tsx
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
function RatingStar() {
|
|
51
|
+
const { glyphStyle, glyphFillStyle, markSize } = useRating();
|
|
52
|
+
const { tone } = useRatingLayer();
|
|
53
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54
|
+
_reactnative.Text,
|
|
55
|
+
{
|
|
56
|
+
style: [tone === "fill" ? glyphFillStyle : glyphStyle, { width: markSize }],
|
|
57
|
+
children: "\u2605"
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
RatingStar.displayName = "XAUI.Rating.Star";
|
|
62
|
+
|
|
63
|
+
// src/components/rating/rating.style.ts
|
|
64
|
+
|
|
65
|
+
var ratingSheet = _reactnative.StyleSheet.create({
|
|
66
|
+
clip: { position: "absolute", top: 0, start: 0, bottom: 0, overflow: "hidden" }
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
// src/components/rating/rating.utils.ts
|
|
70
|
+
function fillFor(value, index) {
|
|
71
|
+
return Math.min(1, Math.max(0, value - index));
|
|
72
|
+
}
|
|
73
|
+
function snapValue({ raw, precision, max }) {
|
|
74
|
+
if (precision <= 0) return Math.min(max, Math.max(0, raw));
|
|
75
|
+
const stepped = Math.ceil(raw / precision) * precision;
|
|
76
|
+
const clamped = Math.min(max, Math.max(precision, stepped));
|
|
77
|
+
return Math.round(clamped * 1e3) / 1e3;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// src/components/rating/rating-item.tsx
|
|
81
|
+
|
|
82
|
+
var RatingItem = _react.forwardRef.call(void 0, function RatingItem2({
|
|
83
|
+
index,
|
|
84
|
+
children,
|
|
85
|
+
accessibilityRole,
|
|
86
|
+
accessibilityState,
|
|
87
|
+
style,
|
|
88
|
+
onPress,
|
|
89
|
+
onPressIn,
|
|
90
|
+
onPressOut,
|
|
91
|
+
...props
|
|
92
|
+
}, ref) {
|
|
93
|
+
const { itemStyle, markSize, value, max, select, isReadOnly, isDisabled } = useRating();
|
|
94
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
95
|
+
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
96
|
+
const fill = fillFor(value, index);
|
|
97
|
+
const inert = isReadOnly || isDisabled;
|
|
98
|
+
const empty = _react.useMemo.call(void 0, () => ({ tone: "empty" }), []);
|
|
99
|
+
const filled = _react.useMemo.call(void 0, () => ({ tone: "fill" }), []);
|
|
100
|
+
const handlePress = (event) => {
|
|
101
|
+
_optionalChain([onPress, 'optionalCall', _2 => _2(event)]);
|
|
102
|
+
const ratio = markSize > 0 ? event.nativeEvent.locationX / markSize : 1;
|
|
103
|
+
select(index, ratio);
|
|
104
|
+
};
|
|
105
|
+
const glyph = _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RatingStar, {})));
|
|
106
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
107
|
+
_chunkOW4N2C3Mcjs.PressableFeedback,
|
|
108
|
+
{
|
|
109
|
+
ref,
|
|
110
|
+
isPressed,
|
|
111
|
+
isDisabled: inert,
|
|
112
|
+
accessibilityRole: _nullishCoalesce(accessibilityRole, () => ( (isReadOnly ? "image" : "button"))),
|
|
113
|
+
accessibilityState: { disabled: isDisabled, ...accessibilityState },
|
|
114
|
+
accessibilityValue: isReadOnly ? void 0 : { now: index + 1, min: 1, max },
|
|
115
|
+
animation: false,
|
|
116
|
+
...rest,
|
|
117
|
+
style: [
|
|
118
|
+
itemStyle,
|
|
119
|
+
styleProps,
|
|
120
|
+
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
121
|
+
],
|
|
122
|
+
onPress: handlePress,
|
|
123
|
+
onPressIn: press.onPressIn,
|
|
124
|
+
onPressOut: press.onPressOut,
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RatingLayerProvider, { value: empty, children: glyph }),
|
|
127
|
+
fill > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [ratingSheet.clip, { width: markSize * fill }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RatingLayerProvider, { value: filled, children: glyph }) }) : null
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
});
|
|
132
|
+
RatingItem.displayName = "XAUI.Rating.Item";
|
|
133
|
+
|
|
134
|
+
// src/components/rating/rating.tsx
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
// src/components/rating/rating.recipe.ts
|
|
139
|
+
var SLOTS = ["root", "item", "glyph", "glyphFill"];
|
|
140
|
+
var VARIANT_TOKENS = {
|
|
141
|
+
primary: { bgSelected: "accent" },
|
|
142
|
+
secondary: { bgSelected: "defaultForeground" },
|
|
143
|
+
tertiary: { bgSelected: "foreground" }
|
|
144
|
+
};
|
|
145
|
+
var SIZES = {
|
|
146
|
+
xs: { glyph: "sm", gap: 0.5 },
|
|
147
|
+
sm: { glyph: "md", gap: 0.5 },
|
|
148
|
+
md: { glyph: "xl", gap: 1 },
|
|
149
|
+
lg: { glyph: "2xl", gap: 1 }
|
|
150
|
+
};
|
|
151
|
+
function sizeAxis(step) {
|
|
152
|
+
const { glyph, gap } = step;
|
|
153
|
+
return (theme) => {
|
|
154
|
+
const type = {
|
|
155
|
+
fontSize: theme.fontSizes[glyph],
|
|
156
|
+
lineHeight: theme.lineHeights[glyph]
|
|
157
|
+
};
|
|
158
|
+
return {
|
|
159
|
+
root: { gap: theme.spacing(gap) },
|
|
160
|
+
glyph: type,
|
|
161
|
+
glyphFill: type
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
var ratingRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
166
|
+
slots: SLOTS,
|
|
167
|
+
base: (theme) => ({
|
|
168
|
+
root: { flexDirection: "row", alignItems: "center" },
|
|
169
|
+
// A mark is as wide as its glyph, and the fill layer is positioned against its start
|
|
170
|
+
// edge — `relative` is what that layer's `position: absolute` is measured from.
|
|
171
|
+
item: { position: "relative" },
|
|
172
|
+
/**
|
|
173
|
+
* The unfilled mark reads the **neutral fill** token rather than a faint version of the
|
|
174
|
+
* filled colour: a pale tint of the accent under a row of stars looks like a control
|
|
175
|
+
* that half failed to load, where a neutral one looks like a mark that is simply not
|
|
176
|
+
* given yet. It is the same choice the `Carousel`'s inactive dots make.
|
|
177
|
+
*/
|
|
178
|
+
glyph: {
|
|
179
|
+
fontFamily: theme.fontFamilies.body,
|
|
180
|
+
color: theme.colors.default
|
|
181
|
+
},
|
|
182
|
+
glyphFill: { fontFamily: theme.fontFamilies.body }
|
|
183
|
+
}),
|
|
184
|
+
variantTokens: VARIANT_TOKENS,
|
|
185
|
+
paint: (_theme, colors) => ({
|
|
186
|
+
glyphFill: { color: colors.bgSelected }
|
|
187
|
+
}),
|
|
188
|
+
variants: {
|
|
189
|
+
size: {
|
|
190
|
+
xs: sizeAxis(SIZES.xs),
|
|
191
|
+
sm: sizeAxis(SIZES.sm),
|
|
192
|
+
md: sizeAxis(SIZES.md),
|
|
193
|
+
lg: sizeAxis(SIZES.lg)
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
states: {
|
|
197
|
+
disabled: (theme) => ({ root: { opacity: theme.opacity.disabled } })
|
|
198
|
+
},
|
|
199
|
+
defaultVariants: { variant: "primary", size: "md" }
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
// src/components/rating/rating.tsx
|
|
203
|
+
|
|
204
|
+
var RatingRoot = _react.forwardRef.call(void 0, function Rating({
|
|
205
|
+
children,
|
|
206
|
+
variant,
|
|
207
|
+
size,
|
|
208
|
+
color,
|
|
209
|
+
max = 5,
|
|
210
|
+
value: controlledValue,
|
|
211
|
+
defaultValue = 0,
|
|
212
|
+
onValueChange,
|
|
213
|
+
precision = 1,
|
|
214
|
+
isReadOnly = false,
|
|
215
|
+
isDisabled = false,
|
|
216
|
+
accessibilityRole = "none",
|
|
217
|
+
style,
|
|
218
|
+
...props
|
|
219
|
+
}, ref) {
|
|
220
|
+
const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0, );
|
|
221
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
222
|
+
const [value, setValue] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
223
|
+
value: controlledValue,
|
|
224
|
+
defaultValue,
|
|
225
|
+
onChange: onValueChange
|
|
226
|
+
});
|
|
227
|
+
const selection = { variant, size };
|
|
228
|
+
const states = { disabled: isDisabled };
|
|
229
|
+
const styles = ratingRecipe.resolve({ theme, selection, states });
|
|
230
|
+
const tint = color ? ratingRecipe.tint({ theme, color, selection, states }) : void 0;
|
|
231
|
+
const select = _react.useCallback.call(void 0,
|
|
232
|
+
(index, ratio) => {
|
|
233
|
+
if (isReadOnly || isDisabled) return;
|
|
234
|
+
setValue(snapValue({ raw: index + ratio, precision, max }));
|
|
235
|
+
},
|
|
236
|
+
[isReadOnly, isDisabled, setValue, precision, max]
|
|
237
|
+
);
|
|
238
|
+
const context = _react.useMemo.call(void 0, () => {
|
|
239
|
+
const glyph = (...layers) => {
|
|
240
|
+
const flat = _reactnative.StyleSheet.flatten(layers);
|
|
241
|
+
return {
|
|
242
|
+
size: flat.fontSize,
|
|
243
|
+
// `ColorValue` also covers the platform's opaque colours, which `Icon` cannot hand
|
|
244
|
+
// to a third-party component expecting a string.
|
|
245
|
+
color: typeof flat.color === "string" ? flat.color : void 0
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
const fill = glyph(styles.glyphFill, _optionalChain([tint, 'optionalAccess', _3 => _3.glyphFill]));
|
|
249
|
+
return {
|
|
250
|
+
itemStyle: styles.item,
|
|
251
|
+
glyphStyle: styles.glyph,
|
|
252
|
+
glyphFillStyle: tint ? [styles.glyphFill, tint.glyphFill] : styles.glyphFill,
|
|
253
|
+
icon: glyph(styles.glyph),
|
|
254
|
+
iconFill: fill,
|
|
255
|
+
// The mark's width *is* its type size: a glyph is text, and the clip over it has to be
|
|
256
|
+
// measured in the same unit the glyph was set in. Read off the resolved slot rather
|
|
257
|
+
// than recomputed, so the recipe stays the only place a size is decided.
|
|
258
|
+
markSize: _nullishCoalesce(fill.size, () => ( 0)),
|
|
259
|
+
value,
|
|
260
|
+
max,
|
|
261
|
+
precision,
|
|
262
|
+
select,
|
|
263
|
+
isReadOnly,
|
|
264
|
+
isDisabled
|
|
265
|
+
};
|
|
266
|
+
}, [styles, tint, value, max, precision, select, isReadOnly, isDisabled]);
|
|
267
|
+
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _4 => _4.root]), styleProps, style];
|
|
268
|
+
if (!Number.isInteger(max) || max < 1) {
|
|
269
|
+
_chunkEJQCQPETcjs.warnDev.call(void 0,
|
|
270
|
+
`Rating: \`max\` is ${max}, and it has to be a whole number of at least one \u2014 a row of marks cannot be a fraction of a mark long.`
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
const count = Math.max(1, Math.floor(max));
|
|
274
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RatingProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
275
|
+
_reactnative.View,
|
|
276
|
+
{
|
|
277
|
+
ref,
|
|
278
|
+
accessibilityRole,
|
|
279
|
+
accessibilityLabel: isReadOnly ? `${value} out of ${count}` : rest.accessibilityLabel,
|
|
280
|
+
...rest,
|
|
281
|
+
style: rootStyle,
|
|
282
|
+
children: Array.from({ length: count }, (_, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RatingItem, { index, children }, index))
|
|
283
|
+
}
|
|
284
|
+
) });
|
|
285
|
+
});
|
|
286
|
+
RatingRoot.displayName = "XAUI.Rating.Root";
|
|
287
|
+
|
|
288
|
+
// src/components/rating/index.ts
|
|
289
|
+
var Rating2 = Object.assign(RatingRoot, {
|
|
290
|
+
Item: RatingItem,
|
|
291
|
+
Icon: RatingIcon
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
exports.useRating = useRating; exports.useRatingLayer = useRatingLayer; exports.RatingIcon = RatingIcon; exports.RatingItem = RatingItem; exports.ratingRecipe = ratingRecipe; exports.RatingRoot = RatingRoot; exports.Rating = Rating2;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
@@ -47,7 +47,7 @@ var CloseButtonBase = _react.forwardRef.call(void 0,
|
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
49
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
50
|
-
|
|
50
|
+
_chunkOW4N2C3Mcjs.PressableFeedback,
|
|
51
51
|
{
|
|
52
52
|
ref,
|
|
53
53
|
isPressed,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
2
|
-
import { PressableFeedback } from "./chunk-
|
|
2
|
+
import { PressableFeedback } from "./chunk-2AFA5HA2.js";
|
|
3
3
|
import { usePressState } from "./chunk-423RQBOX.js";
|
|
4
4
|
import { childrenToString } from "./chunk-WFZDAXDI.js";
|
|
5
5
|
import { createRecipe, radiusAxis } from "./chunk-DKVXTMIJ.js";
|
|
@@ -83,15 +83,15 @@ var SwitchThumb = forwardRef2(function SwitchThumb2({
|
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
SwitchThumb.displayName = "XAUI.Switch.Thumb";
|
|
86
|
-
const
|
|
87
|
-
code: "function
|
|
88
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
89
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
86
|
+
const _worklet_16801422512468_init_data = {
|
|
87
|
+
code: "function chunkZWS3FQ3JJs1(){const{withTiming,isSelected,SWITCH_DURATION}=this.__closure;return withTiming(isSelected?1:0,{duration:SWITCH_DURATION});}",
|
|
88
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZWS3FQ3J.js",
|
|
89
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkZWS3FQ3JJs1\",\"withTiming\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZWS3FQ3J.js\"],\"mappings\":\"AA8FmC,SAAAA,gBAAMA,CAAA,QAAAC,UAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAErC,MAAO,CAAAH,UAAU,CAACC,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEG,QAAQ,CAAEF,eAAgB,CAAC,CAAC,CACtE\",\"ignoreList\":[]}"
|
|
90
90
|
};
|
|
91
|
-
const
|
|
92
|
-
code: "function
|
|
93
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
94
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
91
|
+
const _worklet_2535187691318_init_data = {
|
|
92
|
+
code: "function chunkZWS3FQ3JJs2(){const{progress,distance,interpolateColor,colors}=this.__closure;return{transform:[{translateX:progress.value*distance}],backgroundColor:interpolateColor(progress.value,[0,1],[colors.off,colors.on])};}",
|
|
93
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZWS3FQ3J.js",
|
|
94
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkZWS3FQ3JJs2\",\"progress\",\"distance\",\"interpolateColor\",\"colors\",\"__closure\",\"transform\",\"translateX\",\"value\",\"backgroundColor\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZWS3FQ3J.js\"],\"mappings\":\"AAkGyC,SAAAA,gBAAMA,CAAA,QAAAC,QAAA,CAAAC,QAAA,CAAAC,gBAAA,CAAAC,MAAA,OAAAC,SAAA,CAE3C,MAAO,CACLC,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEN,QAAQ,CAACO,KAAK,CAAGN,QAAS,CAAC,CAAC,CACtDO,eAAe,CAAEN,gBAAgB,CAC/BF,QAAQ,CAACO,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACJ,MAAM,CAACM,GAAG,CAAEN,MAAM,CAACO,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
|
|
95
95
|
};
|
|
96
96
|
var SlidingThumb = forwardRef2(function SlidingThumb2({
|
|
97
97
|
style,
|
|
@@ -101,43 +101,43 @@ var SlidingThumb = forwardRef2(function SlidingThumb2({
|
|
|
101
101
|
children,
|
|
102
102
|
...rest
|
|
103
103
|
}, ref) {
|
|
104
|
-
const progress = useDerivedValue(function
|
|
105
|
-
|
|
104
|
+
const progress = useDerivedValue(function chunkZWS3FQ3JJs1Factory({
|
|
105
|
+
_worklet_16801422512468_init_data,
|
|
106
106
|
withTiming,
|
|
107
107
|
isSelected,
|
|
108
108
|
SWITCH_DURATION
|
|
109
109
|
}) {
|
|
110
110
|
const _e = [new global.Error(), -4, -27];
|
|
111
|
-
const
|
|
111
|
+
const chunkZWS3FQ3JJs1 = function () {
|
|
112
112
|
return withTiming(isSelected ? 1 : 0, {
|
|
113
113
|
duration: SWITCH_DURATION
|
|
114
114
|
});
|
|
115
115
|
};
|
|
116
|
-
|
|
116
|
+
chunkZWS3FQ3JJs1.__closure = {
|
|
117
117
|
withTiming,
|
|
118
118
|
isSelected,
|
|
119
119
|
SWITCH_DURATION
|
|
120
120
|
};
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
return
|
|
121
|
+
chunkZWS3FQ3JJs1.__workletHash = 16801422512468;
|
|
122
|
+
chunkZWS3FQ3JJs1.__pluginVersion = "0.7.4";
|
|
123
|
+
chunkZWS3FQ3JJs1.__initData = _worklet_16801422512468_init_data;
|
|
124
|
+
chunkZWS3FQ3JJs1.__stackDetails = _e;
|
|
125
|
+
return chunkZWS3FQ3JJs1;
|
|
126
126
|
}({
|
|
127
|
-
|
|
127
|
+
_worklet_16801422512468_init_data,
|
|
128
128
|
withTiming,
|
|
129
129
|
isSelected,
|
|
130
130
|
SWITCH_DURATION
|
|
131
131
|
}), [isSelected]);
|
|
132
|
-
const animatedStyle = useAnimatedStyle(function
|
|
133
|
-
|
|
132
|
+
const animatedStyle = useAnimatedStyle(function chunkZWS3FQ3JJs2Factory({
|
|
133
|
+
_worklet_2535187691318_init_data,
|
|
134
134
|
progress,
|
|
135
135
|
distance,
|
|
136
136
|
interpolateColor,
|
|
137
137
|
colors
|
|
138
138
|
}) {
|
|
139
139
|
const _e = [new global.Error(), -5, -27];
|
|
140
|
-
const
|
|
140
|
+
const chunkZWS3FQ3JJs2 = function () {
|
|
141
141
|
return {
|
|
142
142
|
transform: [{
|
|
143
143
|
translateX: progress.value * distance
|
|
@@ -145,19 +145,19 @@ var SlidingThumb = forwardRef2(function SlidingThumb2({
|
|
|
145
145
|
backgroundColor: interpolateColor(progress.value, [0, 1], [colors.off, colors.on])
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
|
-
|
|
148
|
+
chunkZWS3FQ3JJs2.__closure = {
|
|
149
149
|
progress,
|
|
150
150
|
distance,
|
|
151
151
|
interpolateColor,
|
|
152
152
|
colors
|
|
153
153
|
};
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
return
|
|
154
|
+
chunkZWS3FQ3JJs2.__workletHash = 2535187691318;
|
|
155
|
+
chunkZWS3FQ3JJs2.__pluginVersion = "0.7.4";
|
|
156
|
+
chunkZWS3FQ3JJs2.__initData = _worklet_2535187691318_init_data;
|
|
157
|
+
chunkZWS3FQ3JJs2.__stackDetails = _e;
|
|
158
|
+
return chunkZWS3FQ3JJs2;
|
|
159
159
|
}({
|
|
160
|
-
|
|
160
|
+
_worklet_2535187691318_init_data,
|
|
161
161
|
progress,
|
|
162
162
|
distance,
|
|
163
163
|
interpolateColor,
|
|
@@ -209,15 +209,15 @@ var SwitchTrack = forwardRef3(function SwitchTrack2({
|
|
|
209
209
|
});
|
|
210
210
|
});
|
|
211
211
|
SwitchTrack.displayName = "XAUI.Switch.Track";
|
|
212
|
-
const
|
|
213
|
-
code: "function
|
|
214
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
215
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
212
|
+
const _worklet_3482774838230_init_data = {
|
|
213
|
+
code: "function chunkZWS3FQ3JJs3(){const{withTiming2,isSelected,SWITCH_DURATION}=this.__closure;return withTiming2(isSelected?1:0,{duration:SWITCH_DURATION});}",
|
|
214
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZWS3FQ3J.js",
|
|
215
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkZWS3FQ3JJs3\",\"withTiming2\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZWS3FQ3J.js\"],\"mappings\":\"AAuJoC,SAAAA,gBAAMA,CAAA,QAAAC,WAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAEtC,MAAO,CAAAH,WAAW,CAACC,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEG,QAAQ,CAAEF,eAAgB,CAAC,CAAC,CACvE\",\"ignoreList\":[]}"
|
|
216
216
|
};
|
|
217
|
-
const
|
|
218
|
-
code: "function
|
|
219
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
220
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
217
|
+
const _worklet_9744914476656_init_data = {
|
|
218
|
+
code: "function chunkZWS3FQ3JJs4(){const{interpolateColor2,progress,colors}=this.__closure;return{backgroundColor:interpolateColor2(progress.value,[0,1],[colors.off,colors.on])};}",
|
|
219
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZWS3FQ3J.js",
|
|
220
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkZWS3FQ3JJs4\",\"interpolateColor2\",\"progress\",\"colors\",\"__closure\",\"backgroundColor\",\"value\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZWS3FQ3J.js\"],\"mappings\":\"AA2J0C,SAAAA,gBAAMA,CAAA,QAAAC,iBAAA,CAAAC,QAAA,CAAAC,MAAA,OAAAC,SAAA,CAE5C,MAAO,CACLC,eAAe,CAAEJ,iBAAiB,CAChCC,QAAQ,CAACI,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACH,MAAM,CAACI,GAAG,CAAEJ,MAAM,CAACK,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
|
|
221
221
|
};
|
|
222
222
|
var CrossfadingTrack = forwardRef3(function CrossfadingTrack2({
|
|
223
223
|
style,
|
|
@@ -226,58 +226,58 @@ var CrossfadingTrack = forwardRef3(function CrossfadingTrack2({
|
|
|
226
226
|
children,
|
|
227
227
|
...rest
|
|
228
228
|
}, ref) {
|
|
229
|
-
const progress = useDerivedValue2(function
|
|
230
|
-
|
|
229
|
+
const progress = useDerivedValue2(function chunkZWS3FQ3JJs3Factory({
|
|
230
|
+
_worklet_3482774838230_init_data,
|
|
231
231
|
withTiming2,
|
|
232
232
|
isSelected,
|
|
233
233
|
SWITCH_DURATION
|
|
234
234
|
}) {
|
|
235
235
|
const _e = [new global.Error(), -4, -27];
|
|
236
|
-
const
|
|
236
|
+
const chunkZWS3FQ3JJs3 = function () {
|
|
237
237
|
return withTiming2(isSelected ? 1 : 0, {
|
|
238
238
|
duration: SWITCH_DURATION
|
|
239
239
|
});
|
|
240
240
|
};
|
|
241
|
-
|
|
241
|
+
chunkZWS3FQ3JJs3.__closure = {
|
|
242
242
|
withTiming2,
|
|
243
243
|
isSelected,
|
|
244
244
|
SWITCH_DURATION
|
|
245
245
|
};
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
return
|
|
246
|
+
chunkZWS3FQ3JJs3.__workletHash = 3482774838230;
|
|
247
|
+
chunkZWS3FQ3JJs3.__pluginVersion = "0.7.4";
|
|
248
|
+
chunkZWS3FQ3JJs3.__initData = _worklet_3482774838230_init_data;
|
|
249
|
+
chunkZWS3FQ3JJs3.__stackDetails = _e;
|
|
250
|
+
return chunkZWS3FQ3JJs3;
|
|
251
251
|
}({
|
|
252
|
-
|
|
252
|
+
_worklet_3482774838230_init_data,
|
|
253
253
|
withTiming2,
|
|
254
254
|
isSelected,
|
|
255
255
|
SWITCH_DURATION
|
|
256
256
|
}), [isSelected]);
|
|
257
|
-
const animatedStyle = useAnimatedStyle2(function
|
|
258
|
-
|
|
257
|
+
const animatedStyle = useAnimatedStyle2(function chunkZWS3FQ3JJs4Factory({
|
|
258
|
+
_worklet_9744914476656_init_data,
|
|
259
259
|
interpolateColor2,
|
|
260
260
|
progress,
|
|
261
261
|
colors
|
|
262
262
|
}) {
|
|
263
263
|
const _e = [new global.Error(), -4, -27];
|
|
264
|
-
const
|
|
264
|
+
const chunkZWS3FQ3JJs4 = function () {
|
|
265
265
|
return {
|
|
266
266
|
backgroundColor: interpolateColor2(progress.value, [0, 1], [colors.off, colors.on])
|
|
267
267
|
};
|
|
268
268
|
};
|
|
269
|
-
|
|
269
|
+
chunkZWS3FQ3JJs4.__closure = {
|
|
270
270
|
interpolateColor2,
|
|
271
271
|
progress,
|
|
272
272
|
colors
|
|
273
273
|
};
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
return
|
|
274
|
+
chunkZWS3FQ3JJs4.__workletHash = 9744914476656;
|
|
275
|
+
chunkZWS3FQ3JJs4.__pluginVersion = "0.7.4";
|
|
276
|
+
chunkZWS3FQ3JJs4.__initData = _worklet_9744914476656_init_data;
|
|
277
|
+
chunkZWS3FQ3JJs4.__stackDetails = _e;
|
|
278
|
+
return chunkZWS3FQ3JJs4;
|
|
279
279
|
}({
|
|
280
|
-
|
|
280
|
+
_worklet_9744914476656_init_data,
|
|
281
281
|
interpolateColor2,
|
|
282
282
|
progress,
|
|
283
283
|
colors
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkP2V6PIM7cjs = require('../../chunk-P2V6PIM7.cjs');
|
|
13
13
|
require('../../chunk-EKS3W46M.cjs');
|
|
14
14
|
require('../../chunk-7EIHHOHP.cjs');
|
|
15
|
-
require('../../chunk-
|
|
15
|
+
require('../../chunk-OW4N2C3M.cjs');
|
|
16
16
|
require('../../chunk-7DPL3ZDS.cjs');
|
|
17
17
|
require('../../chunk-GSZDN6EZ.cjs');
|
|
18
18
|
require('../../chunk-FHNIGHN5.cjs');
|
|
@@ -34,4 +34,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
exports.Accordion =
|
|
37
|
+
exports.Accordion = _chunkP2V6PIM7cjs.Accordion; exports.AccordionContent = _chunkP2V6PIM7cjs.AccordionContent; exports.AccordionIndicator = _chunkP2V6PIM7cjs.AccordionIndicator; exports.AccordionItem = _chunkP2V6PIM7cjs.AccordionItem; exports.AccordionRoot = _chunkP2V6PIM7cjs.AccordionRoot; exports.AccordionTrigger = _chunkP2V6PIM7cjs.AccordionTrigger; exports.accordionLayoutTransition = _chunkP2V6PIM7cjs.LAYOUT; exports.accordionRecipe = _chunkP2V6PIM7cjs.accordionRecipe; exports.useAccordion = _chunkP2V6PIM7cjs.useAccordion; exports.useAccordionItem = _chunkP2V6PIM7cjs.useAccordionItem;
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
accordionRecipe,
|
|
10
10
|
useAccordion,
|
|
11
11
|
useAccordionItem
|
|
12
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-VMPCXS4S.js";
|
|
13
13
|
import "../../chunk-64MXEVT3.js";
|
|
14
14
|
import "../../chunk-F6W3JQ7K.js";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-2AFA5HA2.js";
|
|
16
16
|
import "../../chunk-423RQBOX.js";
|
|
17
17
|
import "../../chunk-JN6IRT2M.js";
|
|
18
18
|
import "../../chunk-WFZDAXDI.js";
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
18
|
-
require('../../chunk-
|
|
17
|
+
var _chunkQ2BWXT55cjs = require('../../chunk-Q2BWXT55.cjs');
|
|
18
|
+
require('../../chunk-UEW3GAP5.cjs');
|
|
19
19
|
require('../../chunk-ISHMSP6P.cjs');
|
|
20
20
|
require('../../chunk-WFEMJCXO.cjs');
|
|
21
21
|
require('../../chunk-7EIHHOHP.cjs');
|
|
22
|
-
require('../../chunk-
|
|
22
|
+
require('../../chunk-OW4N2C3M.cjs');
|
|
23
23
|
require('../../chunk-7DPL3ZDS.cjs');
|
|
24
24
|
require('../../chunk-GSZDN6EZ.cjs');
|
|
25
25
|
require('../../chunk-FHNIGHN5.cjs');
|
|
@@ -46,4 +46,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
exports.AgendaCalendar =
|
|
49
|
+
exports.AgendaCalendar = _chunkQ2BWXT55cjs.AgendaCalendar; exports.AgendaCalendarDay = _chunkQ2BWXT55cjs.AgendaCalendarDay; exports.AgendaCalendarHeader = _chunkQ2BWXT55cjs.AgendaCalendarHeader; exports.AgendaCalendarMonthPicker = _chunkQ2BWXT55cjs.AgendaCalendarMonthPicker; exports.AgendaCalendarNav = _chunkQ2BWXT55cjs.AgendaCalendarNav; exports.AgendaCalendarNextButton = _chunkQ2BWXT55cjs.AgendaCalendarNextButton; exports.AgendaCalendarPreviousButton = _chunkQ2BWXT55cjs.AgendaCalendarPreviousButton; exports.AgendaCalendarRoot = _chunkQ2BWXT55cjs.AgendaCalendarRoot; exports.AgendaCalendarTitle = _chunkQ2BWXT55cjs.AgendaCalendarTitle; exports.AgendaCalendarTodayButton = _chunkQ2BWXT55cjs.AgendaCalendarTodayButton; exports.AgendaCalendarWeek = _chunkQ2BWXT55cjs.AgendaCalendarWeek; exports.AgendaCalendarWeekdays = _chunkQ2BWXT55cjs.AgendaCalendarWeekdays; exports.AgendaCalendarYearPicker = _chunkQ2BWXT55cjs.AgendaCalendarYearPicker; exports.agendaCalendarRecipe = _chunkQ2BWXT55cjs.agendaCalendarRecipe; exports.useAgendaCalendar = _chunkQ2BWXT55cjs.useAgendaCalendar;
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
AgendaCalendarYearPicker,
|
|
15
15
|
agendaCalendarRecipe,
|
|
16
16
|
useAgendaCalendar
|
|
17
|
-
} from "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
17
|
+
} from "../../chunk-TCWW7JI2.js";
|
|
18
|
+
import "../../chunk-RSIWSVXI.js";
|
|
19
19
|
import "../../chunk-SHFUQVLX.js";
|
|
20
20
|
import "../../chunk-NCTOTTVW.js";
|
|
21
21
|
import "../../chunk-F6W3JQ7K.js";
|
|
22
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-2AFA5HA2.js";
|
|
23
23
|
import "../../chunk-423RQBOX.js";
|
|
24
24
|
import "../../chunk-JN6IRT2M.js";
|
|
25
25
|
import "../../chunk-WFZDAXDI.js";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
5
|
+
var _chunkRREJUSAScjs = require('../../chunk-RREJUSAS.cjs');
|
|
6
|
+
require('../../chunk-ZE4IHUUO.cjs');
|
|
7
|
+
require('../../chunk-OW4N2C3M.cjs');
|
|
8
8
|
require('../../chunk-7DPL3ZDS.cjs');
|
|
9
9
|
require('../../chunk-GSZDN6EZ.cjs');
|
|
10
10
|
require('../../chunk-FHNIGHN5.cjs');
|
|
@@ -19,4 +19,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.Alert =
|
|
22
|
+
exports.Alert = _chunkRREJUSAScjs.Alert; exports.alertRecipe = _chunkRREJUSAScjs.alertRecipe; exports.useAlert = _chunkRREJUSAScjs.useAlert;
|