@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
|
+
import {
|
|
2
|
+
useControllableState
|
|
3
|
+
} from "./chunk-F6W3JQ7K.js";
|
|
4
|
+
import {
|
|
5
|
+
PressableFeedback
|
|
6
|
+
} from "./chunk-2AFA5HA2.js";
|
|
7
|
+
import {
|
|
8
|
+
usePressState
|
|
9
|
+
} from "./chunk-423RQBOX.js";
|
|
10
|
+
import {
|
|
11
|
+
Icon
|
|
12
|
+
} from "./chunk-JN6IRT2M.js";
|
|
13
|
+
import {
|
|
14
|
+
createRecipe
|
|
15
|
+
} from "./chunk-DKVXTMIJ.js";
|
|
16
|
+
import {
|
|
17
|
+
createSlotContext
|
|
18
|
+
} from "./chunk-TTZOIXKE.js";
|
|
19
|
+
import {
|
|
20
|
+
warnDev
|
|
21
|
+
} from "./chunk-EGLLDKN6.js";
|
|
22
|
+
import {
|
|
23
|
+
useXAUITheme
|
|
24
|
+
} from "./chunk-Z6JBWRPL.js";
|
|
25
|
+
import {
|
|
26
|
+
useStyleProps
|
|
27
|
+
} from "./chunk-M63GFNKV.js";
|
|
28
|
+
|
|
29
|
+
// src/components/rating/rating.context.ts
|
|
30
|
+
var [RatingProvider, useRating] = createSlotContext("Rating");
|
|
31
|
+
var [RatingLayerProvider, useRatingLayer] = createSlotContext("Rating.Layer");
|
|
32
|
+
|
|
33
|
+
// src/components/rating/rating-icon.tsx
|
|
34
|
+
import { jsx } from "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__ */ jsx(Icon, { size: size ?? resolved.size, color: color ?? resolved.color, ...rest });
|
|
40
|
+
}
|
|
41
|
+
RatingIcon.displayName = "XAUI.Rating.Icon";
|
|
42
|
+
|
|
43
|
+
// src/components/rating/rating-item.tsx
|
|
44
|
+
import { forwardRef, useMemo } from "react";
|
|
45
|
+
import { View } from "react-native";
|
|
46
|
+
|
|
47
|
+
// src/components/rating/rating-star.tsx
|
|
48
|
+
import { Text } from "react-native";
|
|
49
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
50
|
+
function RatingStar() {
|
|
51
|
+
const { glyphStyle, glyphFillStyle, markSize } = useRating();
|
|
52
|
+
const { tone } = useRatingLayer();
|
|
53
|
+
return /* @__PURE__ */ jsx2(
|
|
54
|
+
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
|
+
import { StyleSheet } from "react-native";
|
|
65
|
+
var ratingSheet = 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
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
82
|
+
var RatingItem = forwardRef(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] = useStyleProps(props);
|
|
95
|
+
const [isPressed, press] = usePressState({ onPressIn, onPressOut });
|
|
96
|
+
const fill = fillFor(value, index);
|
|
97
|
+
const inert = isReadOnly || isDisabled;
|
|
98
|
+
const empty = useMemo(() => ({ tone: "empty" }), []);
|
|
99
|
+
const filled = useMemo(() => ({ tone: "fill" }), []);
|
|
100
|
+
const handlePress = (event) => {
|
|
101
|
+
onPress?.(event);
|
|
102
|
+
const ratio = markSize > 0 ? event.nativeEvent.locationX / markSize : 1;
|
|
103
|
+
select(index, ratio);
|
|
104
|
+
};
|
|
105
|
+
const glyph = children ?? /* @__PURE__ */ jsx3(RatingStar, {});
|
|
106
|
+
return /* @__PURE__ */ jsxs(
|
|
107
|
+
PressableFeedback,
|
|
108
|
+
{
|
|
109
|
+
ref,
|
|
110
|
+
isPressed,
|
|
111
|
+
isDisabled: inert,
|
|
112
|
+
accessibilityRole: 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__ */ jsx3(RatingLayerProvider, { value: empty, children: glyph }),
|
|
127
|
+
fill > 0 ? /* @__PURE__ */ jsx3(View, { style: [ratingSheet.clip, { width: markSize * fill }], children: /* @__PURE__ */ jsx3(RatingLayerProvider, { value: filled, children: glyph }) }) : null
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
});
|
|
132
|
+
RatingItem.displayName = "XAUI.Rating.Item";
|
|
133
|
+
|
|
134
|
+
// src/components/rating/rating.tsx
|
|
135
|
+
import { forwardRef as forwardRef2, useCallback, useMemo as useMemo2 } from "react";
|
|
136
|
+
import { StyleSheet as StyleSheet2, View as View2 } from "react-native";
|
|
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 = createRecipe({
|
|
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
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
204
|
+
var RatingRoot = forwardRef2(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 = useXAUITheme();
|
|
221
|
+
const [styleProps, rest] = useStyleProps(props);
|
|
222
|
+
const [value, setValue] = useControllableState({
|
|
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 = useCallback(
|
|
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 = useMemo2(() => {
|
|
239
|
+
const glyph = (...layers) => {
|
|
240
|
+
const flat = StyleSheet2.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, tint?.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: 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, tint?.root, styleProps, style];
|
|
268
|
+
if (!Number.isInteger(max) || max < 1) {
|
|
269
|
+
warnDev(
|
|
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__ */ jsx4(RatingProvider, { value: context, children: /* @__PURE__ */ jsx4(
|
|
275
|
+
View2,
|
|
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__ */ jsx4(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
|
+
export {
|
|
295
|
+
useRating,
|
|
296
|
+
useRatingLayer,
|
|
297
|
+
RatingIcon,
|
|
298
|
+
RatingItem,
|
|
299
|
+
ratingRecipe,
|
|
300
|
+
RatingRoot,
|
|
301
|
+
Rating2 as Rating
|
|
302
|
+
};
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var _chunkGTR5X65Mcjs = require('./chunk-GTR5X65M.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXSQPVDFHcjs = require('./chunk-XSQPVDFH.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkH2FTAU5Ccjs = require('./chunk-H2FTAU5C.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkYVYYONTPcjs = require('./chunk-YVYYONTP.cjs');
|
|
@@ -28,7 +28,7 @@ var _chunkWFEMJCXOcjs = require('./chunk-WFEMJCXO.cjs');
|
|
|
28
28
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
@@ -321,7 +321,7 @@ var FabDiscoveryAction = _react.forwardRef.call(void 0,
|
|
|
321
321
|
);
|
|
322
322
|
const text = _chunkFHNIGHN5cjs.childrenToString.call(void 0, children);
|
|
323
323
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
324
|
-
|
|
324
|
+
_chunkOW4N2C3Mcjs.PressableFeedback,
|
|
325
325
|
{
|
|
326
326
|
ref,
|
|
327
327
|
isPressed,
|
|
@@ -737,7 +737,7 @@ var FabRoot = _react.forwardRef.call(void 0, function Fab({
|
|
|
737
737
|
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
738
738
|
];
|
|
739
739
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FabProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
740
|
-
|
|
740
|
+
_chunkOW4N2C3Mcjs.PressableFeedback,
|
|
741
741
|
{
|
|
742
742
|
ref,
|
|
743
743
|
isPressed,
|
|
@@ -1162,7 +1162,7 @@ var FabMenuItem = _react.forwardRef.call(void 0, function FabMenuItem2({
|
|
|
1162
1162
|
);
|
|
1163
1163
|
const text = _chunkFHNIGHN5cjs.childrenToString.call(void 0, children);
|
|
1164
1164
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.IconContext.Provider, { value: glyph, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1165
|
-
|
|
1165
|
+
_chunkOW4N2C3Mcjs.PressableFeedback,
|
|
1166
1166
|
{
|
|
1167
1167
|
ref,
|
|
1168
1168
|
isPressed,
|
|
@@ -4,7 +4,7 @@ var _chunkWLWZG2PAcjs = require('./chunk-WLWZG2PA.cjs');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkUEW3GAP5cjs = require('./chunk-UEW3GAP5.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkISHMSP6Pcjs = require('./chunk-ISHMSP6P.cjs');
|
|
@@ -31,7 +31,7 @@ var _chunkWFEMJCXOcjs = require('./chunk-WFEMJCXO.cjs');
|
|
|
31
31
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
@@ -197,7 +197,7 @@ var DatePicker = _react.forwardRef.call(void 0, function DatePicker2({
|
|
|
197
197
|
// The panel's floor: the grid's seven cells **plus the panel's own inset**, so the
|
|
198
198
|
// week fits inside the padding rather than being clipped by it. The panel matches the
|
|
199
199
|
// field above that and never goes under it.
|
|
200
|
-
panelMinWidth: CALENDAR_COLUMNS *
|
|
200
|
+
panelMinWidth: CALENDAR_COLUMNS * _chunkUEW3GAP5cjs.SIZES[size].cell + 2 * panelPad,
|
|
201
201
|
labelStyle: labelled.label,
|
|
202
202
|
descriptionStyle: labelled.description,
|
|
203
203
|
errorStyle: labelled.error,
|
|
@@ -261,11 +261,11 @@ var DatePickerCalendar = _react.forwardRef.call(void 0,
|
|
|
261
261
|
function DatePickerCalendar2({ children, ...props }, ref) {
|
|
262
262
|
const { calendar, value, isDisabled, select } = useDatePicker();
|
|
263
263
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
264
|
-
|
|
264
|
+
_chunkUEW3GAP5cjs.Calendar,
|
|
265
265
|
{
|
|
266
266
|
ref,
|
|
267
267
|
width: "100%",
|
|
268
|
-
minWidth: COLUMNS *
|
|
268
|
+
minWidth: COLUMNS * _chunkUEW3GAP5cjs.SIZES[calendar.size].cell,
|
|
269
269
|
variant: calendar.variant,
|
|
270
270
|
size: calendar.size,
|
|
271
271
|
color: calendar.color,
|
|
@@ -278,13 +278,13 @@ var DatePickerCalendar = _react.forwardRef.call(void 0,
|
|
|
278
278
|
isDisabled,
|
|
279
279
|
...props,
|
|
280
280
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
281
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
282
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
283
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
284
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
281
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUEW3GAP5cjs.Calendar.Header, { children: [
|
|
282
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEW3GAP5cjs.Calendar.PreviousButton, {}),
|
|
283
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEW3GAP5cjs.Calendar.Title, {}),
|
|
284
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEW3GAP5cjs.Calendar.NextButton, {})
|
|
285
285
|
] }),
|
|
286
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
287
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
286
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEW3GAP5cjs.Calendar.Weekdays, {}),
|
|
287
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEW3GAP5cjs.Calendar.Grid, {})
|
|
288
288
|
] })))
|
|
289
289
|
}
|
|
290
290
|
);
|
|
@@ -491,7 +491,7 @@ var DatePickerTrigger = _react.forwardRef.call(void 0,
|
|
|
491
491
|
[measure, onPress, toggle]
|
|
492
492
|
);
|
|
493
493
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.IconContext.Provider, { value: glyph, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
494
|
-
|
|
494
|
+
_chunkOW4N2C3Mcjs.PressableFeedback,
|
|
495
495
|
{
|
|
496
496
|
ref: refs,
|
|
497
497
|
isPressed,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZE4IHUUOcjs = require('./chunk-ZE4IHUUO.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
@@ -60,7 +60,7 @@ ChipAvatar.displayName = "XAUI.Chip.Avatar";
|
|
|
60
60
|
var ChipClose = _react.forwardRef.call(void 0, function ChipClose2({ isDisabled, ...props }, ref) {
|
|
61
61
|
const { closeStyle, closeGlyphStyle, isDisabled: isChipDisabled } = useChip();
|
|
62
62
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
63
|
-
|
|
63
|
+
_chunkZE4IHUUOcjs.CloseButtonBase,
|
|
64
64
|
{
|
|
65
65
|
ref,
|
|
66
66
|
name: "Chip.Close",
|
|
@@ -244,7 +244,7 @@ var chipRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
244
244
|
// The cross's own geometry — thickness and centring — belongs to the shared
|
|
245
245
|
// `CloseButtonBase`; what stays below is the box and bar size this component's scale sets.
|
|
246
246
|
base: (theme) => ({
|
|
247
|
-
...
|
|
247
|
+
..._chunkZE4IHUUOcjs.closeButtonGeometry.call(void 0, theme),
|
|
248
248
|
root: {
|
|
249
249
|
// A chip hugs its content where a `Button` fills its column. The difference is what
|
|
250
250
|
// the two are: a button is a control the layout sizes, a chip is a token *about*
|
|
@@ -373,7 +373,7 @@ var ChipRoot = _react.forwardRef.call(void 0, function Chip({
|
|
|
373
373
|
);
|
|
374
374
|
}
|
|
375
375
|
const surface = isPressable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
376
|
-
|
|
376
|
+
_chunkOW4N2C3Mcjs.PressableFeedback,
|
|
377
377
|
{
|
|
378
378
|
ref,
|
|
379
379
|
isPressed,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
var _chunkYSTLHVQVcjs = require('./chunk-YSTLHVQV.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkIPD3IUE2cjs = require('./chunk-IPD3IUE2.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkJ5COSALOcjs = require('./chunk-J5COSALO.cjs');
|
|
@@ -14,7 +14,7 @@ var _chunkJ5COSALOcjs = require('./chunk-J5COSALO.cjs');
|
|
|
14
14
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
@@ -846,10 +846,10 @@ TimePicker.displayName = "XAUI.TimePicker.Root";
|
|
|
846
846
|
|
|
847
847
|
function TimePickerSheet({ children, ...props }) {
|
|
848
848
|
const picker = useTimePicker();
|
|
849
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
850
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
851
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
852
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
849
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIPD3IUE2cjs.BottomSheet2, { isOpen: picker.isOpen, onOpenChange: picker.setOpen, ...props, children: [
|
|
850
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIPD3IUE2cjs.BottomSheet2.Overlay, {}),
|
|
851
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIPD3IUE2cjs.BottomSheet2.Content, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimePickerProvider, { value: picker, children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
852
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIPD3IUE2cjs.BottomSheet2.Handle, {}),
|
|
853
853
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimePickerDisplay, { style: { alignSelf: "center" } }),
|
|
854
854
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimePickerClock, { style: { alignSelf: "center" } })
|
|
855
855
|
] }))) }) })
|
|
@@ -884,7 +884,7 @@ var TimePickerTrigger = _react.forwardRef.call(void 0,
|
|
|
884
884
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
885
885
|
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
886
886
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.IconContext.Provider, { value: glyph, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
887
|
-
|
|
887
|
+
_chunkOW4N2C3Mcjs.PressableFeedback,
|
|
888
888
|
{
|
|
889
889
|
ref,
|
|
890
890
|
isPressed,
|
|
@@ -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(); } } 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
|
-
var
|
|
3
|
+
var _chunkPROLOLZ5cjs = require('./chunk-PROLOLZ5.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
@@ -651,7 +651,7 @@ var TableSelectAllCell = _react.forwardRef.call(void 0,
|
|
|
651
651
|
...rest,
|
|
652
652
|
style: [cellStyle, { width: selectionWidth }, styleProps, style],
|
|
653
653
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
654
|
-
|
|
654
|
+
_chunkPROLOLZ5cjs.Checkbox,
|
|
655
655
|
{
|
|
656
656
|
isSelected: isAll,
|
|
657
657
|
isIndeterminate: isSome,
|
|
@@ -678,7 +678,7 @@ var TableSelectionCell = _react.forwardRef.call(void 0,
|
|
|
678
678
|
...rest,
|
|
679
679
|
style: [cellStyle, { width: selectionWidth }, styleProps, style],
|
|
680
680
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
681
|
-
|
|
681
|
+
_chunkPROLOLZ5cjs.Checkbox,
|
|
682
682
|
{
|
|
683
683
|
isSelected,
|
|
684
684
|
isDisabled,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
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
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkX4CZYJZ6cjs = require('./chunk-X4CZYJZ6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIPD3IUE2cjs = require('./chunk-IPD3IUE2.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkJ5COSALOcjs = require('./chunk-J5COSALO.cjs');
|
|
@@ -17,7 +17,7 @@ var _chunkEKS3W46Mcjs = require('./chunk-EKS3W46M.cjs');
|
|
|
17
17
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
@@ -73,7 +73,7 @@ function DateRangePicker({
|
|
|
73
73
|
const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0, );
|
|
74
74
|
const [value, setValue] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
75
75
|
value: controlledValue,
|
|
76
|
-
defaultValue: _nullishCoalesce(defaultValue, () => (
|
|
76
|
+
defaultValue: _nullishCoalesce(defaultValue, () => ( _chunkX4CZYJZ6cjs.EMPTY_RANGE)),
|
|
77
77
|
onChange: onValueChange
|
|
78
78
|
});
|
|
79
79
|
const [isOpen, setOpen] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
@@ -187,10 +187,10 @@ function DateRangePickerSheet({
|
|
|
187
187
|
...props
|
|
188
188
|
}) {
|
|
189
189
|
const picker = useDateRangePicker();
|
|
190
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
191
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
192
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
193
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
190
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIPD3IUE2cjs.BottomSheet2, { isOpen: picker.isOpen, onOpenChange: picker.setOpen, ...props, children: [
|
|
191
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIPD3IUE2cjs.BottomSheet2.Overlay, {}),
|
|
192
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIPD3IUE2cjs.BottomSheet2.Content, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DateRangePickerProvider, { value: picker, children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
193
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIPD3IUE2cjs.BottomSheet2.Handle, {}),
|
|
194
194
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
195
195
|
DateRangePickerCalendar,
|
|
196
196
|
{
|
|
@@ -209,7 +209,7 @@ function DateRangePickerCalendar({
|
|
|
209
209
|
}) {
|
|
210
210
|
const { value, onPickRange, calendar } = useDateRangePicker();
|
|
211
211
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
212
|
-
|
|
212
|
+
_chunkX4CZYJZ6cjs.RangeCalendar,
|
|
213
213
|
{
|
|
214
214
|
variant: calendar.variant,
|
|
215
215
|
size: calendar.size,
|
|
@@ -222,13 +222,13 @@ function DateRangePickerCalendar({
|
|
|
222
222
|
onValueChange: onPickRange,
|
|
223
223
|
...props,
|
|
224
224
|
children: [
|
|
225
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
226
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
227
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
228
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
225
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkX4CZYJZ6cjs.RangeCalendar.Header, { children: [
|
|
226
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4CZYJZ6cjs.RangeCalendar.PreviousButton, { accessibilityLabel: previousLabel }),
|
|
227
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4CZYJZ6cjs.RangeCalendar.Title, {}),
|
|
228
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4CZYJZ6cjs.RangeCalendar.NextButton, { accessibilityLabel: nextLabel })
|
|
229
229
|
] }),
|
|
230
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
231
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
230
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4CZYJZ6cjs.RangeCalendar.Weekdays, {}),
|
|
231
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4CZYJZ6cjs.RangeCalendar.Grid, {})
|
|
232
232
|
]
|
|
233
233
|
}
|
|
234
234
|
);
|
|
@@ -289,7 +289,7 @@ var DateRangePickerTrigger = _react.forwardRef.call(void 0,
|
|
|
289
289
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
290
290
|
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
291
291
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.IconContext.Provider, { value: glyph, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
292
|
-
|
|
292
|
+
_chunkOW4N2C3Mcjs.PressableFeedback,
|
|
293
293
|
{
|
|
294
294
|
ref,
|
|
295
295
|
isPressed,
|