@xaui/native 0.9.1-alpha.92 → 0.9.1-alpha.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-PAQZOD2L.js → chunk-2JFMCW5E.js} +1 -1
- package/dist/chunk-2TLPFGGR.cjs +251 -0
- package/dist/{chunk-TPYOQSKT.js → chunk-2UNLQRXY.js} +1 -1
- package/dist/{chunk-JKDWYNSG.js → chunk-2XEQDQAN.js} +109 -107
- package/dist/{chunk-RXEUKYM5.js → chunk-33BA4LVN.js} +1 -1
- package/dist/{chunk-ODQHAPQW.js → chunk-4AIIAF6U.js} +24 -22
- package/dist/{chunk-QCH7X7O2.cjs → chunk-4LRVB6WR.cjs} +14 -14
- package/dist/{chunk-QUSQEYLP.cjs → chunk-53E2E7GS.cjs} +26 -28
- package/dist/{chunk-2B6PUYTP.cjs → chunk-55KGHYYU.cjs} +4 -4
- package/dist/{chunk-B33OU34Z.cjs → chunk-5O7E73QP.cjs} +12 -12
- package/dist/{chunk-FVEMTBU4.js → chunk-5XTF2JDK.js} +2 -2
- package/dist/{chunk-V2CEKPJ6.js → chunk-6MVKLRLZ.js} +1 -1
- package/dist/{chunk-RSIWSVXI.js → chunk-6NAZ2IHL.js} +1 -1
- package/dist/{chunk-LPJ3UBSO.cjs → chunk-6NRWZR7T.cjs} +2 -2
- package/dist/{chunk-FXN32S75.cjs → chunk-6SRFQSPR.cjs} +3 -3
- package/dist/{chunk-7EVW6O2Q.js → chunk-6W45YHTF.js} +1 -1
- package/dist/{chunk-7NQL5DXY.js → chunk-6XY3XAEQ.js} +1 -1
- package/dist/{chunk-UEW3GAP5.cjs → chunk-6ZWQDTGQ.cjs} +5 -5
- package/dist/{chunk-VMPCXS4S.js → chunk-7OVYYZ7H.js} +22 -20
- package/dist/{chunk-CYOUOQXT.cjs → chunk-AHJLQJOE.cjs} +5 -5
- package/dist/chunk-AHKKEM3K.cjs +536 -0
- package/dist/{chunk-WIX4SYZI.cjs → chunk-AIHKBSQ5.cjs} +2 -2
- package/dist/{chunk-WRZV6ORJ.js → chunk-AYOJXFHR.js} +1 -1
- package/dist/{chunk-OD6H7ANY.js → chunk-B5DBFS6M.js} +1 -1
- package/dist/{chunk-VQGNLX5C.js → chunk-BYDGJU5A.js} +1 -1
- package/dist/{chunk-NVODH2PR.js → chunk-CCTAJXZ3.js} +63 -61
- package/dist/{chunk-ORXVXYKC.cjs → chunk-CHGBWFDI.cjs} +63 -26
- package/dist/{chunk-WLJPO3AS.cjs → chunk-CZ2NUGUI.cjs} +357 -201
- package/dist/{chunk-PYQ2P3M5.cjs → chunk-CZEWWCWG.cjs} +58 -58
- package/dist/{chunk-PDSR42YC.cjs → chunk-D22K3NZU.cjs} +3 -3
- package/dist/{chunk-TRWZEOCO.js → chunk-DBP5CA5R.js} +2 -2
- package/dist/{chunk-QN2D5ZCS.cjs → chunk-DE4RSR7Q.cjs} +3 -3
- package/dist/{chunk-FOOXBVOQ.js → chunk-E5E2QA4K.js} +22 -20
- package/dist/{chunk-LECYGVIH.js → chunk-EQUD3NHO.js} +50 -48
- package/dist/chunk-ERIGD4SE.cjs +686 -0
- package/dist/{chunk-62AYYMZP.cjs → chunk-FDYPWVNP.cjs} +3 -3
- package/dist/chunk-GN7BWYXP.cjs +627 -0
- package/dist/chunk-GWTURY4S.cjs +999 -0
- package/dist/{chunk-OW4N2C3M.cjs → chunk-HBYT7B47.cjs} +88 -61
- package/dist/{chunk-XWIPLZTD.cjs → chunk-HOV25N3M.cjs} +2 -2
- package/dist/{chunk-5MMBEDZG.cjs → chunk-I3XIZWCV.cjs} +29 -29
- package/dist/{chunk-EDNCHCIN.cjs → chunk-IAJG7GYE.cjs} +2 -2
- package/dist/{chunk-P7OHZCU3.js → chunk-IAWLQN2W.js} +2 -2
- package/dist/{chunk-RCSEVEIR.js → chunk-ICVIWXK4.js} +1 -1
- package/dist/{chunk-RREJUSAS.cjs → chunk-IMIY34F4.cjs} +3 -3
- package/dist/{chunk-ZWS3FQ3J.js → chunk-IUDQG3JI.js} +57 -57
- package/dist/{chunk-O6B72H4B.js → chunk-K7VDLVLE.js} +6 -8
- package/dist/{chunk-P2CJNTAP.js → chunk-KFB24VYT.js} +22 -20
- package/dist/chunk-KHPODIQV.cjs +540 -0
- package/dist/{chunk-CBRW53GN.cjs → chunk-KMK6FUTK.cjs} +39 -23
- package/dist/{chunk-2AFA5HA2.js → chunk-KQW25RCC.js} +77 -75
- package/dist/{chunk-X4CZYJZ6.cjs → chunk-LCGJA37L.cjs} +12 -12
- package/dist/{chunk-SUJLTC2K.js → chunk-LPGY2IDX.js} +1 -1
- package/dist/{chunk-P5M5URAB.js → chunk-LSZW4G7B.js} +31 -31
- package/dist/{chunk-GYEQEF5H.js → chunk-LUPU7FJK.js} +1 -1
- package/dist/chunk-MNBEUNC5.cjs +792 -0
- package/dist/{chunk-AIND5F7P.js → chunk-MTQGFUW5.js} +29 -29
- package/dist/chunk-NGXLJ5ZF.cjs +395 -0
- package/dist/{chunk-DYQB54JA.cjs → chunk-NPAGA6SH.cjs} +2 -2
- package/dist/{chunk-QELEKXN3.cjs → chunk-OMI2FRCU.cjs} +5 -5
- package/dist/{chunk-EBCAPIBD.js → chunk-OX23MW5E.js} +70 -50
- package/dist/{chunk-MMFIMQMQ.js → chunk-OZLOYXLW.js} +2 -2
- package/dist/{chunk-JBZ7SBRV.cjs → chunk-Q3ZKZ2Y6.cjs} +3 -3
- package/dist/{chunk-TCWW7JI2.js → chunk-QT7KLGO3.js} +65 -63
- package/dist/{chunk-6RU6GUJP.js → chunk-QZF7RSVV.js} +1 -1
- package/dist/{chunk-UYQLW7OD.js → chunk-RAYO2TJL.js} +2 -2
- package/dist/{chunk-FRLWG5LM.js → chunk-RFT5MGJC.js} +25 -25
- package/dist/chunk-SIOSYITD.cjs +1039 -0
- package/dist/{chunk-USIWPESU.js → chunk-SIX5AVXG.js} +1 -1
- package/dist/{chunk-52XUGOLD.js → chunk-SX5U5UJQ.js} +3 -3
- package/dist/{chunk-GGP2ERSV.js → chunk-T5ES7FOL.js} +1 -1
- package/dist/{chunk-MSORLKO7.cjs → chunk-V3C3ATRO.cjs} +2 -2
- package/dist/{chunk-BI5ME4QP.cjs → chunk-VBS6VWW4.cjs} +5 -5
- package/dist/{chunk-KPKEZWZM.js → chunk-VQ4OTVET.js} +189 -211
- package/dist/{chunk-6GQ7UTJ7.cjs → chunk-VXAIFOXL.cjs} +2 -2
- package/dist/{chunk-BJVO7DWJ.js → chunk-W4F4NQXM.js} +1 -1
- package/dist/{chunk-ZE4IHUUO.cjs → chunk-WNEDQTH6.cjs} +2 -2
- package/dist/{chunk-CBXILKQZ.cjs → chunk-WPYJW3WM.cjs} +3 -3
- package/dist/{chunk-QHXTO525.js → chunk-WYJHDTU7.js} +1 -1
- package/dist/{chunk-PROLOLZ5.cjs → chunk-X22PLAP6.cjs} +2 -2
- package/dist/chunk-X6GT4H4I.cjs +662 -0
- package/dist/{chunk-RLC3EXMV.js → chunk-XM4IN4Q6.js} +2 -2
- package/dist/{chunk-ZKGVOXLQ.js → chunk-XOZMGNVS.js} +1 -1
- package/dist/chunk-XXXR2AD3.cjs +94 -0
- package/dist/{chunk-JC4YCKKL.js → chunk-YI5D4QZP.js} +22 -20
- package/dist/{chunk-AR7667VN.cjs → chunk-YJA7OQQZ.cjs} +4 -4
- package/dist/{chunk-PAQD6UUF.cjs → chunk-YJIVPYMG.cjs} +3 -3
- package/dist/{chunk-JJYHW4PV.js → chunk-YOPWQHNO.js} +1 -1
- package/dist/{chunk-LKRQUQZQ.cjs → chunk-YRANVNJG.cjs} +2 -2
- package/dist/chunk-ZDJQ643D.js +62 -0
- package/dist/components/accordion/index.cjs +3 -3
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/agenda-calendar/index.cjs +4 -4
- package/dist/components/agenda-calendar/index.js +3 -3
- package/dist/components/alert/index.cjs +4 -4
- package/dist/components/alert/index.js +3 -3
- package/dist/components/autocomplete/index.cjs +3 -3
- package/dist/components/autocomplete/index.js +2 -2
- package/dist/components/bottom-sheet/index.cjs +3 -3
- package/dist/components/bottom-sheet/index.js +2 -2
- package/dist/components/button/index.cjs +3 -3
- package/dist/components/button/index.js +2 -2
- package/dist/components/calendar/index.cjs +3 -3
- package/dist/components/calendar/index.js +2 -2
- package/dist/components/card/index.cjs +3 -3
- package/dist/components/card/index.js +2 -2
- package/dist/components/carousel/index.cjs +3 -3
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/checkbox/index.cjs +3 -3
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/chip/index.cjs +4 -4
- package/dist/components/chip/index.js +3 -3
- package/dist/components/close-button/index.cjs +4 -4
- package/dist/components/close-button/index.js +3 -3
- package/dist/components/color-picker/index.cjs +6 -6
- package/dist/components/color-picker/index.js +5 -5
- package/dist/components/combobox/index.cjs +4 -4
- package/dist/components/combobox/index.js +3 -3
- package/dist/components/date-picker/index.cjs +4 -4
- package/dist/components/date-picker/index.js +3 -3
- package/dist/components/date-range-picker/index.cjs +6 -6
- package/dist/components/date-range-picker/index.js +5 -5
- package/dist/components/date-time-picker/date-time-picker-indicator.d.cts +2 -2
- package/dist/components/date-time-picker/date-time-picker-indicator.d.ts +2 -2
- package/dist/components/date-time-picker/date-time-picker.type.d.cts +3 -2
- package/dist/components/date-time-picker/date-time-picker.type.d.ts +3 -2
- package/dist/components/date-time-picker/index.cjs +8 -9
- package/dist/components/date-time-picker/index.d.cts +1 -1
- package/dist/components/date-time-picker/index.d.ts +1 -1
- package/dist/components/date-time-picker/index.js +7 -8
- package/dist/components/dialog/index.cjs +4 -4
- package/dist/components/dialog/index.js +3 -3
- package/dist/components/dummy-field/index.cjs +3 -3
- package/dist/components/dummy-field/index.js +2 -2
- package/dist/components/fab/index.cjs +3 -3
- package/dist/components/fab/index.js +2 -2
- package/dist/components/flip-card/index.cjs +3 -3
- package/dist/components/flip-card/index.js +2 -2
- package/dist/components/index.d.cts +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/list-box/index.cjs +2 -2
- package/dist/components/list-box/index.js +1 -1
- package/dist/components/menu/index.cjs +3 -3
- package/dist/components/menu/index.js +2 -2
- package/dist/components/morph-button/index.cjs +3 -3
- package/dist/components/morph-button/index.js +2 -2
- package/dist/components/number-field/number-field-increment.d.cts +2 -2
- package/dist/components/number-field/number-field-increment.d.ts +2 -2
- package/dist/components/number-pad/index.cjs +3 -3
- package/dist/components/number-pad/index.js +2 -2
- package/dist/components/number-stepper/index.cjs +3 -3
- package/dist/components/number-stepper/index.js +2 -2
- package/dist/components/pager/index.cjs +4 -2
- package/dist/components/pager/index.d.cts +2 -2
- package/dist/components/pager/index.d.ts +2 -2
- package/dist/components/pager/index.js +3 -1
- package/dist/components/pager/pager.d.cts +3 -4
- package/dist/components/pager/pager.d.ts +3 -4
- package/dist/components/pager/pager.recipe.d.cts +19 -1
- package/dist/components/pager/pager.recipe.d.ts +19 -1
- package/dist/components/pager/pager.type.d.cts +5 -6
- package/dist/components/pager/pager.type.d.ts +5 -6
- package/dist/components/phone-number-field/index.cjs +14 -14
- package/dist/components/phone-number-field/index.js +3 -3
- package/dist/components/popover/index.cjs +3 -3
- package/dist/components/popover/index.js +2 -2
- package/dist/components/radio/index.cjs +3 -3
- package/dist/components/radio/index.js +2 -2
- package/dist/components/range-calendar/index.cjs +4 -4
- package/dist/components/range-calendar/index.js +3 -3
- package/dist/components/rating/index.cjs +3 -3
- package/dist/components/rating/index.js +2 -2
- package/dist/components/search-field/index.cjs +4 -4
- package/dist/components/search-field/index.js +3 -3
- package/dist/components/segment/index.cjs +4 -4
- package/dist/components/segment/index.js +2 -2
- package/dist/components/select/index.cjs +3 -3
- package/dist/components/select/index.js +2 -2
- package/dist/components/slider/index.cjs +2 -2
- package/dist/components/slider/index.js +1 -1
- package/dist/components/snackbar/index.cjs +3 -3
- package/dist/components/snackbar/index.js +2 -2
- package/dist/components/switch/index.cjs +3 -3
- package/dist/components/switch/index.js +2 -2
- package/dist/components/table/index.cjs +4 -4
- package/dist/components/table/index.js +3 -3
- package/dist/components/tabs/index.cjs +4 -4
- package/dist/components/tabs/index.js +3 -3
- package/dist/components/tag-group/index.cjs +4 -4
- package/dist/components/tag-group/index.js +3 -3
- package/dist/components/time-picker/index.cjs +4 -5
- package/dist/components/time-picker/index.d.cts +1 -1
- package/dist/components/time-picker/index.d.ts +1 -1
- package/dist/components/time-picker/index.js +3 -4
- package/dist/components/time-picker/time-picker-display.d.cts +3 -3
- package/dist/components/time-picker/time-picker-display.d.ts +3 -3
- package/dist/components/time-picker/time-picker-indicator.d.cts +2 -2
- package/dist/components/time-picker/time-picker-indicator.d.ts +2 -2
- package/dist/components/time-picker/time-picker.d.cts +1 -1
- package/dist/components/time-picker/time-picker.d.ts +1 -1
- package/dist/components/time-picker/time-picker.type.d.cts +11 -1
- package/dist/components/time-picker/time-picker.type.d.ts +11 -1
- package/dist/components/toast/index.cjs +3 -3
- package/dist/components/toast/index.js +2 -2
- package/dist/components/toggle-button/index.cjs +3 -3
- package/dist/components/toggle-button/index.js +2 -2
- package/dist/components/wheel-picker/index.cjs +2 -2
- package/dist/components/wheel-picker/index.js +1 -1
- package/dist/index.cjs +48 -59
- package/dist/index.js +52 -63
- package/dist/system/index.cjs +3 -3
- package/dist/system/index.js +2 -2
- package/dist/utils/time.d.cts +29 -0
- package/dist/utils/time.d.ts +29 -0
- package/package.json +1 -11
- package/dist/chunk-3MRCSXGT.js +0 -73
- package/dist/chunk-5E6SHYEQ.cjs +0 -631
- package/dist/chunk-6JAGPPZU.cjs +0 -788
- package/dist/chunk-CEPX7CKM.cjs +0 -365
- package/dist/chunk-CHFPFYNV.js +0 -60
- package/dist/chunk-ECR6GPJ6.js +0 -198
- package/dist/chunk-GBTNFQXN.cjs +0 -33
- package/dist/chunk-GZAGWNQM.cjs +0 -719
- package/dist/chunk-ILXKBDC6.cjs +0 -209
- package/dist/chunk-IPD3IUE2.cjs +0 -640
- package/dist/chunk-P2V6PIM7.cjs +0 -478
- package/dist/chunk-Q2BWXT55.cjs +0 -1011
- package/dist/chunk-UFKSUELU.cjs +0 -453
- package/dist/chunk-UR37LVPU.cjs +0 -382
- package/dist/chunk-W4IPOWLY.cjs +0 -198
- package/dist/chunk-YSTLHVQV.cjs +0 -73
- package/dist/components/time-field/index.cjs +0 -27
- package/dist/components/time-field/index.d.cts +0 -52
- package/dist/components/time-field/index.d.ts +0 -52
- package/dist/components/time-field/index.js +0 -27
- package/dist/components/time-field/time-field-field.d.cts +0 -11
- package/dist/components/time-field/time-field-field.d.ts +0 -11
- package/dist/components/time-field/time-field-period.d.cts +0 -34
- package/dist/components/time-field/time-field-period.d.ts +0 -34
- package/dist/components/time-field/time-field.context.d.cts +0 -9
- package/dist/components/time-field/time-field.context.d.ts +0 -9
- package/dist/components/time-field/time-field.d.cts +0 -56
- package/dist/components/time-field/time-field.d.ts +0 -56
- package/dist/components/time-field/time-field.type.d.cts +0 -72
- package/dist/components/time-field/time-field.type.d.ts +0 -72
- package/dist/utils/time-mask.d.cts +0 -68
- package/dist/utils/time-mask.d.ts +0 -68
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
DummyFieldField,
|
|
5
5
|
DummyFieldLabel,
|
|
6
6
|
DummyFieldRoot
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XOZMGNVS.js";
|
|
8
8
|
import {
|
|
9
9
|
Dialog,
|
|
10
10
|
DialogClose,
|
|
11
11
|
DialogContent,
|
|
12
12
|
DialogOverlay,
|
|
13
13
|
DialogTitle
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5XTF2JDK.js";
|
|
15
15
|
import {
|
|
16
16
|
useControllableState
|
|
17
17
|
} from "./chunk-F6W3JQ7K.js";
|
|
18
18
|
import {
|
|
19
19
|
PressableFeedback
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KQW25RCC.js";
|
|
21
21
|
import {
|
|
22
22
|
usePressState
|
|
23
23
|
} from "./chunk-423RQBOX.js";
|
|
@@ -6,7 +6,7 @@ var _chunkH2FTAU5Ccjs = require('./chunk-H2FTAU5C.cjs');
|
|
|
6
6
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
@@ -372,7 +372,7 @@ var MorphButtonRoot = _react.forwardRef.call(void 0,
|
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
374
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MorphButtonProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
375
|
-
|
|
375
|
+
_chunkHBYT7B47cjs.PressableFeedback,
|
|
376
376
|
{
|
|
377
377
|
ref,
|
|
378
378
|
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 _chunkWNEDQTH6cjs = require('./chunk-WNEDQTH6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.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
|
+
_chunkWNEDQTH6cjs.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
|
+
..._chunkWNEDQTH6cjs.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
|
+
_chunkHBYT7B47cjs.PressableFeedback,
|
|
377
377
|
{
|
|
378
378
|
ref,
|
|
379
379
|
isPressed,
|
|
@@ -15,10 +15,10 @@ var [PagerProvider, usePager] = createSlotContext("Pager");
|
|
|
15
15
|
|
|
16
16
|
// src/components/pager/pager-content.tsx
|
|
17
17
|
import { jsx } from "react/jsx-runtime";
|
|
18
|
-
const
|
|
19
|
-
code: "function
|
|
20
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
21
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
18
|
+
const _worklet_17495950956898_init_data = {
|
|
19
|
+
code: "function chunkVQ4OTVETJs1(event){const{isHorizontal,offset,indexFromOffset,step,count,settled,runOnJS,onSettle}=this.__closure;const travelled=isHorizontal?event.contentOffset.x:event.contentOffset.y;offset.set(travelled);const next=indexFromOffset(travelled,step,count);if(next!==settled.get()){settled.set(next);runOnJS(onSettle)(next);}}",
|
|
20
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-VQ4OTVET.js",
|
|
21
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkVQ4OTVETJs1\",\"event\",\"isHorizontal\",\"offset\",\"indexFromOffset\",\"step\",\"count\",\"settled\",\"runOnJS\",\"onSettle\",\"__closure\",\"travelled\",\"contentOffset\",\"x\",\"y\",\"set\",\"next\",\"get\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-VQ4OTVET.js\"],\"mappings\":\"AAkEO,SAAAA,gBAAUA,CAAAC,KAAA,QAAAC,YAAA,CAAAC,MAAA,CAAAC,eAAA,CAAAC,IAAA,CAAAC,KAAA,CAAAC,OAAA,CAAAC,OAAA,CAAAC,QAAA,OAAAC,SAAA,CAET,KAAM,CAAAC,SAAS,CAAGT,YAAY,CAAGD,KAAK,CAACW,aAAa,CAACC,CAAC,CAAGZ,KAAK,CAACW,aAAa,CAACE,CAAC,CAC9EX,MAAM,CAACY,GAAG,CAACJ,SAAS,CAAC,CACrB,KAAM,CAAAK,IAAI,CAAGZ,eAAe,CAACO,SAAS,CAAEN,IAAI,CAAEC,KAAK,CAAC,CACpD,GAAIU,IAAI,GAAKT,OAAO,CAACU,GAAG,CAAC,CAAC,CAAE,CAC1BV,OAAO,CAACQ,GAAG,CAACC,IAAI,CAAC,CACjBR,OAAO,CAACC,QAAQ,CAAC,CAACO,IAAI,CAAC,CACzB,CACF\",\"ignoreList\":[]}"
|
|
22
22
|
};
|
|
23
23
|
var PagerContent = forwardRef(function PagerContent2({
|
|
24
24
|
children,
|
|
@@ -58,8 +58,8 @@ var PagerContent = forwardRef(function PagerContent2({
|
|
|
58
58
|
};
|
|
59
59
|
const settled = useSharedValue(0);
|
|
60
60
|
const isHorizontal = orientation === "horizontal";
|
|
61
|
-
const scroll = useAnimatedScrollHandler(function
|
|
62
|
-
|
|
61
|
+
const scroll = useAnimatedScrollHandler(function chunkVQ4OTVETJs1Factory({
|
|
62
|
+
_worklet_17495950956898_init_data,
|
|
63
63
|
isHorizontal,
|
|
64
64
|
offset,
|
|
65
65
|
indexFromOffset,
|
|
@@ -70,7 +70,7 @@ var PagerContent = forwardRef(function PagerContent2({
|
|
|
70
70
|
onSettle
|
|
71
71
|
}) {
|
|
72
72
|
const _e = [new global.Error(), -9, -27];
|
|
73
|
-
const
|
|
73
|
+
const chunkVQ4OTVETJs1 = function (event) {
|
|
74
74
|
const travelled = isHorizontal ? event.contentOffset.x : event.contentOffset.y;
|
|
75
75
|
offset.set(travelled);
|
|
76
76
|
const next = indexFromOffset(travelled, step, count);
|
|
@@ -79,7 +79,7 @@ var PagerContent = forwardRef(function PagerContent2({
|
|
|
79
79
|
runOnJS(onSettle)(next);
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
chunkVQ4OTVETJs1.__closure = {
|
|
83
83
|
isHorizontal,
|
|
84
84
|
offset,
|
|
85
85
|
indexFromOffset,
|
|
@@ -89,13 +89,13 @@ var PagerContent = forwardRef(function PagerContent2({
|
|
|
89
89
|
runOnJS,
|
|
90
90
|
onSettle
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
return
|
|
92
|
+
chunkVQ4OTVETJs1.__workletHash = 17495950956898;
|
|
93
|
+
chunkVQ4OTVETJs1.__pluginVersion = "0.7.4";
|
|
94
|
+
chunkVQ4OTVETJs1.__initData = _worklet_17495950956898_init_data;
|
|
95
|
+
chunkVQ4OTVETJs1.__stackDetails = _e;
|
|
96
|
+
return chunkVQ4OTVETJs1;
|
|
97
97
|
}({
|
|
98
|
-
|
|
98
|
+
_worklet_17495950956898_init_data,
|
|
99
99
|
isHorizontal,
|
|
100
100
|
offset,
|
|
101
101
|
indexFromOffset,
|
|
@@ -104,7 +104,7 @@ var PagerContent = forwardRef(function PagerContent2({
|
|
|
104
104
|
settled,
|
|
105
105
|
runOnJS,
|
|
106
106
|
onSettle
|
|
107
|
-
}));
|
|
107
|
+
}), [offset, settled, step, count, onSettle, isHorizontal]);
|
|
108
108
|
return /* @__PURE__ */jsx(Animated.ScrollView, {
|
|
109
109
|
ref: scroller,
|
|
110
110
|
horizontal: isHorizontal,
|
|
@@ -126,171 +126,26 @@ PagerContent.displayName = "XAUI.Pager.Content";
|
|
|
126
126
|
// src/components/pager/pager-indicator.tsx
|
|
127
127
|
import { forwardRef as forwardRef2 } from "react";
|
|
128
128
|
import { Pressable, View } from "react-native";
|
|
129
|
-
import Animated2, {
|
|
130
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
131
|
-
var HIT_SLOP = 8;
|
|
132
|
-
var AnimatedPressable = Animated2.createAnimatedComponent(Pressable);
|
|
133
|
-
var PagerIndicator = forwardRef2(function PagerIndicator2({
|
|
134
|
-
children,
|
|
135
|
-
style,
|
|
136
|
-
...props
|
|
137
|
-
}, ref) {
|
|
138
|
-
const {
|
|
139
|
-
indicatorStyle,
|
|
140
|
-
count
|
|
141
|
-
} = usePager();
|
|
142
|
-
const [styleProps, rest] = useStyleProps(props);
|
|
143
|
-
return /* @__PURE__ */jsx2(View, {
|
|
144
|
-
ref,
|
|
145
|
-
...rest,
|
|
146
|
-
style: [indicatorStyle, styleProps, style],
|
|
147
|
-
children: children ?? Array.from({
|
|
148
|
-
length: count
|
|
149
|
-
}, (_, index) => /* @__PURE__ */jsx2(PagerDot, {
|
|
150
|
-
index
|
|
151
|
-
}, index))
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
PagerIndicator.displayName = "XAUI.Pager.Indicator";
|
|
155
|
-
const _worklet_3999860474786_init_data = {
|
|
156
|
-
code: "function chunkKPKEZWZMJs2(){const{progressFromOffset,offset,step,count,index,interpolateColor,restColor,active}=this.__closure;const distance=Math.abs(progressFromOffset(offset.get(),step,count)-index);const nearness=Math.max(0,1-distance);return{backgroundColor:interpolateColor(nearness,[0,1],[restColor,active])};}",
|
|
157
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-KPKEZWZM.js",
|
|
158
|
-
sourceMap: "{\"version\":3,\"names\":[\"chunkKPKEZWZMJs2\",\"progressFromOffset\",\"offset\",\"step\",\"count\",\"index\",\"interpolateColor\",\"restColor\",\"active\",\"__closure\",\"distance\",\"Math\",\"abs\",\"get\",\"nearness\",\"max\",\"backgroundColor\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-KPKEZWZM.js\"],\"mappings\":\"AA+HkC,SAAAA,gBAAMA,CAAA,QAAAC,kBAAA,CAAAC,MAAA,CAAAC,IAAA,CAAAC,KAAA,CAAAC,KAAA,CAAAC,gBAAA,CAAAC,SAAA,CAAAC,MAAA,OAAAC,SAAA,CACpC,KAAM,CAAAC,QAAQ,CAAGC,IAAI,CAACC,GAAG,CAACX,kBAAkB,CAACC,MAAM,CAACW,GAAG,CAAC,CAAC,CAAEV,IAAI,CAAEC,KAAK,CAAC,CAAGC,KAAK,CAAC,CAChF,KAAM,CAAAS,QAAQ,CAAGH,IAAI,CAACI,GAAG,CAAC,CAAC,CAAE,CAAC,CAAGL,QAAQ,CAAC,CAC1C,MAAO,CACLM,eAAe,CAAEV,gBAAgB,CAACQ,QAAQ,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACP,SAAS,CAAEC,MAAM,CAAC,CACzE,CAAC,CACH\",\"ignoreList\":[]}"
|
|
159
|
-
};
|
|
160
|
-
var PagerDot = forwardRef2(function PagerDot2({
|
|
161
|
-
index,
|
|
162
|
-
children,
|
|
163
|
-
style,
|
|
164
|
-
...props
|
|
165
|
-
}, ref) {
|
|
166
|
-
const {
|
|
167
|
-
dotStyle,
|
|
168
|
-
dotInk,
|
|
169
|
-
offset,
|
|
170
|
-
step,
|
|
171
|
-
count,
|
|
172
|
-
index: current,
|
|
173
|
-
isDisabled,
|
|
174
|
-
goTo
|
|
175
|
-
} = usePager();
|
|
176
|
-
const [styleProps, rest] = useStyleProps(props);
|
|
177
|
-
const {
|
|
178
|
-
rest: restColor,
|
|
179
|
-
active
|
|
180
|
-
} = dotInk;
|
|
181
|
-
const travel = useAnimatedStyle(function chunkKPKEZWZMJs2Factory({
|
|
182
|
-
_worklet_3999860474786_init_data,
|
|
183
|
-
progressFromOffset,
|
|
184
|
-
offset,
|
|
185
|
-
step,
|
|
186
|
-
count,
|
|
187
|
-
index,
|
|
188
|
-
interpolateColor,
|
|
189
|
-
restColor,
|
|
190
|
-
active
|
|
191
|
-
}) {
|
|
192
|
-
const _e = [new global.Error(), -9, -27];
|
|
193
|
-
const chunkKPKEZWZMJs2 = function () {
|
|
194
|
-
const distance = Math.abs(progressFromOffset(offset.get(), step, count) - index);
|
|
195
|
-
const nearness = Math.max(0, 1 - distance);
|
|
196
|
-
return {
|
|
197
|
-
backgroundColor: interpolateColor(nearness, [0, 1], [restColor, active])
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
chunkKPKEZWZMJs2.__closure = {
|
|
201
|
-
progressFromOffset,
|
|
202
|
-
offset,
|
|
203
|
-
step,
|
|
204
|
-
count,
|
|
205
|
-
index,
|
|
206
|
-
interpolateColor,
|
|
207
|
-
restColor,
|
|
208
|
-
active
|
|
209
|
-
};
|
|
210
|
-
chunkKPKEZWZMJs2.__workletHash = 3999860474786;
|
|
211
|
-
chunkKPKEZWZMJs2.__pluginVersion = "0.7.4";
|
|
212
|
-
chunkKPKEZWZMJs2.__initData = _worklet_3999860474786_init_data;
|
|
213
|
-
chunkKPKEZWZMJs2.__stackDetails = _e;
|
|
214
|
-
return chunkKPKEZWZMJs2;
|
|
215
|
-
}({
|
|
216
|
-
_worklet_3999860474786_init_data,
|
|
217
|
-
progressFromOffset,
|
|
218
|
-
offset,
|
|
219
|
-
step,
|
|
220
|
-
count,
|
|
221
|
-
index,
|
|
222
|
-
interpolateColor,
|
|
223
|
-
restColor,
|
|
224
|
-
active
|
|
225
|
-
}));
|
|
226
|
-
return /* @__PURE__ */jsx2(AnimatedPressable, {
|
|
227
|
-
ref,
|
|
228
|
-
accessibilityRole: "button",
|
|
229
|
-
accessibilityState: {
|
|
230
|
-
selected: index === current,
|
|
231
|
-
disabled: isDisabled
|
|
232
|
-
},
|
|
233
|
-
accessibilityValue: {
|
|
234
|
-
now: index + 1,
|
|
235
|
-
min: 1,
|
|
236
|
-
max: count
|
|
237
|
-
},
|
|
238
|
-
disabled: isDisabled,
|
|
239
|
-
hitSlop: HIT_SLOP,
|
|
240
|
-
...rest,
|
|
241
|
-
style: [dotStyle, travel, styleProps, style],
|
|
242
|
-
onPress: () => goTo(index),
|
|
243
|
-
children
|
|
244
|
-
});
|
|
245
|
-
});
|
|
246
|
-
PagerDot.displayName = "XAUI.Pager.Dot";
|
|
247
|
-
|
|
248
|
-
// src/components/pager/pager-page.tsx
|
|
249
|
-
import { forwardRef as forwardRef3 } from "react";
|
|
250
|
-
import { View as View2 } from "react-native";
|
|
251
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
252
|
-
var PagerPage = forwardRef3(function PagerPage2({
|
|
253
|
-
children,
|
|
254
|
-
style,
|
|
255
|
-
...props
|
|
256
|
-
}, ref) {
|
|
257
|
-
const {
|
|
258
|
-
pageStyle,
|
|
259
|
-
track
|
|
260
|
-
} = usePager();
|
|
261
|
-
const [styleProps, rest] = useStyleProps(props);
|
|
262
|
-
return /* @__PURE__ */jsx3(View2, {
|
|
263
|
-
ref,
|
|
264
|
-
...rest,
|
|
265
|
-
style: [pageStyle, {
|
|
266
|
-
width: track.width,
|
|
267
|
-
height: track.height
|
|
268
|
-
}, styleProps, style],
|
|
269
|
-
children
|
|
270
|
-
});
|
|
271
|
-
});
|
|
272
|
-
PagerPage.displayName = "XAUI.Pager.Page";
|
|
273
|
-
|
|
274
|
-
// src/components/pager/pager.tsx
|
|
275
|
-
import { forwardRef as forwardRef4, useCallback, useMemo, useState } from "react";
|
|
276
|
-
import { StyleSheet, View as View3 } from "react-native";
|
|
277
|
-
import { useAnimatedRef, useSharedValue as useSharedValue2 } from "react-native-reanimated";
|
|
129
|
+
import Animated2, { interpolate, useAnimatedStyle } from "react-native-reanimated";
|
|
278
130
|
|
|
279
131
|
// src/components/pager/pager.recipe.ts
|
|
280
|
-
var SLOTS = ["root", "content", "page", "indicator", "dot"
|
|
132
|
+
var SLOTS = ["root", "content", "page", "indicator", "dot"];
|
|
281
133
|
var VARIANT_TOKENS = {
|
|
282
134
|
primary: {
|
|
283
135
|
bgSelected: "accent"
|
|
284
136
|
},
|
|
137
|
+
// The page's own ink, for an indicator that has to read as chrome rather than as accent.
|
|
285
138
|
secondary: {
|
|
286
|
-
bgSelected: "
|
|
139
|
+
bgSelected: "foreground"
|
|
287
140
|
},
|
|
288
|
-
// The raised ground
|
|
289
|
-
//
|
|
141
|
+
// The raised ground — white on a light theme. A pager over a *photograph* wants
|
|
142
|
+
// `color="#ffffff"` instead: a photograph is a photograph in both colour modes, and this
|
|
143
|
+
// token flips with the theme.
|
|
290
144
|
tertiary: {
|
|
291
145
|
bgSelected: "surface"
|
|
292
146
|
}
|
|
293
147
|
};
|
|
148
|
+
var DOT_REST_OPACITY = 0.3;
|
|
294
149
|
var SIZES = {
|
|
295
150
|
xs: {
|
|
296
151
|
dot: 5,
|
|
@@ -334,7 +189,7 @@ function orientationAxis(direction) {
|
|
|
334
189
|
}
|
|
335
190
|
var pagerRecipe = createRecipe({
|
|
336
191
|
slots: SLOTS,
|
|
337
|
-
base:
|
|
192
|
+
base: () => ({
|
|
338
193
|
/**
|
|
339
194
|
* **The root has no size of its own**, and that is deliberate rather than missing.
|
|
340
195
|
*
|
|
@@ -360,24 +215,16 @@ var pagerRecipe = createRecipe({
|
|
|
360
215
|
indicator: {
|
|
361
216
|
alignItems: "center",
|
|
362
217
|
justifyContent: "center"
|
|
363
|
-
},
|
|
364
|
-
/**
|
|
365
|
-
* A neutral fill rather than a faint version of the current one: a pale tint of the
|
|
366
|
-
* accent under the pages reads as a control that has half failed to load. A raw `color`
|
|
367
|
-
* reaches the current dot, which is the one it should move.
|
|
368
|
-
*/
|
|
369
|
-
dot: {
|
|
370
|
-
backgroundColor: theme.colors.default
|
|
371
218
|
}
|
|
372
219
|
}),
|
|
373
220
|
variantTokens: VARIANT_TOKENS,
|
|
374
221
|
/**
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
*
|
|
222
|
+
* Every dot takes the same colour. What separates the current one from the rest is its
|
|
223
|
+
* opacity, animated on the UI thread — so this is a plain style rather than a value the
|
|
224
|
+
* root has to flatten and hand to a worklet.
|
|
378
225
|
*/
|
|
379
226
|
paint: (_theme, colors) => ({
|
|
380
|
-
|
|
227
|
+
dot: {
|
|
381
228
|
backgroundColor: colors.bgSelected
|
|
382
229
|
}
|
|
383
230
|
}),
|
|
@@ -407,7 +254,147 @@ var pagerRecipe = createRecipe({
|
|
|
407
254
|
}
|
|
408
255
|
});
|
|
409
256
|
|
|
257
|
+
// src/components/pager/pager-indicator.tsx
|
|
258
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
259
|
+
var HIT_SLOP = 8;
|
|
260
|
+
var AnimatedPressable = Animated2.createAnimatedComponent(Pressable);
|
|
261
|
+
var PagerIndicator = forwardRef2(function PagerIndicator2({
|
|
262
|
+
children,
|
|
263
|
+
style,
|
|
264
|
+
...props
|
|
265
|
+
}, ref) {
|
|
266
|
+
const {
|
|
267
|
+
indicatorStyle,
|
|
268
|
+
count
|
|
269
|
+
} = usePager();
|
|
270
|
+
const [styleProps, rest] = useStyleProps(props);
|
|
271
|
+
return /* @__PURE__ */jsx2(View, {
|
|
272
|
+
ref,
|
|
273
|
+
...rest,
|
|
274
|
+
style: [indicatorStyle, styleProps, style],
|
|
275
|
+
children: children ?? Array.from({
|
|
276
|
+
length: count
|
|
277
|
+
}, (_, index) => /* @__PURE__ */jsx2(PagerDot, {
|
|
278
|
+
index
|
|
279
|
+
}, index))
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
PagerIndicator.displayName = "XAUI.Pager.Indicator";
|
|
283
|
+
const _worklet_5019807398933_init_data = {
|
|
284
|
+
code: "function chunkVQ4OTVETJs2(){const{progressFromOffset,offset,step,count,index,interpolate,DOT_REST_OPACITY}=this.__closure;const distance=Math.abs(progressFromOffset(offset.get(),step,count)-index);const nearness=Math.max(0,1-distance);return{opacity:interpolate(nearness,[0,1],[DOT_REST_OPACITY,1])};}",
|
|
285
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-VQ4OTVET.js",
|
|
286
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkVQ4OTVETJs2\",\"progressFromOffset\",\"offset\",\"step\",\"count\",\"index\",\"interpolate\",\"DOT_REST_OPACITY\",\"__closure\",\"distance\",\"Math\",\"abs\",\"get\",\"nearness\",\"max\",\"opacity\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-VQ4OTVET.js\"],\"mappings\":\"AAgNkC,SAAAA,gBAAMA,CAAA,QAAAC,kBAAA,CAAAC,MAAA,CAAAC,IAAA,CAAAC,KAAA,CAAAC,KAAA,CAAAC,WAAA,CAAAC,gBAAA,OAAAC,SAAA,CAEpC,KAAM,CAAAC,QAAQ,CAAGC,IAAI,CAACC,GAAG,CAACV,kBAAkB,CAACC,MAAM,CAACU,GAAG,CAAC,CAAC,CAAET,IAAI,CAAEC,KAAK,CAAC,CAAGC,KAAK,CAAC,CAChF,KAAM,CAAAQ,QAAQ,CAAGH,IAAI,CAACI,GAAG,CAAC,CAAC,CAAE,CAAC,CAAGL,QAAQ,CAAC,CAC1C,MAAO,CAAEM,OAAO,CAAET,WAAW,CAACO,QAAQ,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACN,gBAAgB,CAAE,CAAC,CAAC,CAAE,CAAC,CAC1E\",\"ignoreList\":[]}"
|
|
287
|
+
};
|
|
288
|
+
var PagerDot = forwardRef2(function PagerDot2({
|
|
289
|
+
index,
|
|
290
|
+
children,
|
|
291
|
+
style,
|
|
292
|
+
...props
|
|
293
|
+
}, ref) {
|
|
294
|
+
const {
|
|
295
|
+
dotStyle,
|
|
296
|
+
offset,
|
|
297
|
+
step,
|
|
298
|
+
count,
|
|
299
|
+
index: current,
|
|
300
|
+
isDisabled,
|
|
301
|
+
goTo
|
|
302
|
+
} = usePager();
|
|
303
|
+
const [styleProps, rest] = useStyleProps(props);
|
|
304
|
+
const travel = useAnimatedStyle(function chunkVQ4OTVETJs2Factory({
|
|
305
|
+
_worklet_5019807398933_init_data,
|
|
306
|
+
progressFromOffset,
|
|
307
|
+
offset,
|
|
308
|
+
step,
|
|
309
|
+
count,
|
|
310
|
+
index,
|
|
311
|
+
interpolate,
|
|
312
|
+
DOT_REST_OPACITY
|
|
313
|
+
}) {
|
|
314
|
+
const _e = [new global.Error(), -8, -27];
|
|
315
|
+
const chunkVQ4OTVETJs2 = function () {
|
|
316
|
+
const distance = Math.abs(progressFromOffset(offset.get(), step, count) - index);
|
|
317
|
+
const nearness = Math.max(0, 1 - distance);
|
|
318
|
+
return {
|
|
319
|
+
opacity: interpolate(nearness, [0, 1], [DOT_REST_OPACITY, 1])
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
chunkVQ4OTVETJs2.__closure = {
|
|
323
|
+
progressFromOffset,
|
|
324
|
+
offset,
|
|
325
|
+
step,
|
|
326
|
+
count,
|
|
327
|
+
index,
|
|
328
|
+
interpolate,
|
|
329
|
+
DOT_REST_OPACITY
|
|
330
|
+
};
|
|
331
|
+
chunkVQ4OTVETJs2.__workletHash = 5019807398933;
|
|
332
|
+
chunkVQ4OTVETJs2.__pluginVersion = "0.7.4";
|
|
333
|
+
chunkVQ4OTVETJs2.__initData = _worklet_5019807398933_init_data;
|
|
334
|
+
chunkVQ4OTVETJs2.__stackDetails = _e;
|
|
335
|
+
return chunkVQ4OTVETJs2;
|
|
336
|
+
}({
|
|
337
|
+
_worklet_5019807398933_init_data,
|
|
338
|
+
progressFromOffset,
|
|
339
|
+
offset,
|
|
340
|
+
step,
|
|
341
|
+
count,
|
|
342
|
+
index,
|
|
343
|
+
interpolate,
|
|
344
|
+
DOT_REST_OPACITY
|
|
345
|
+
}), [offset, step, count, index]);
|
|
346
|
+
return /* @__PURE__ */jsx2(AnimatedPressable, {
|
|
347
|
+
ref,
|
|
348
|
+
accessibilityRole: "button",
|
|
349
|
+
accessibilityState: {
|
|
350
|
+
selected: index === current,
|
|
351
|
+
disabled: isDisabled
|
|
352
|
+
},
|
|
353
|
+
accessibilityValue: {
|
|
354
|
+
now: index + 1,
|
|
355
|
+
min: 1,
|
|
356
|
+
max: count
|
|
357
|
+
},
|
|
358
|
+
disabled: isDisabled,
|
|
359
|
+
hitSlop: HIT_SLOP,
|
|
360
|
+
...rest,
|
|
361
|
+
style: [dotStyle, travel, styleProps, style],
|
|
362
|
+
onPress: () => goTo(index),
|
|
363
|
+
children
|
|
364
|
+
});
|
|
365
|
+
});
|
|
366
|
+
PagerDot.displayName = "XAUI.Pager.Dot";
|
|
367
|
+
|
|
368
|
+
// src/components/pager/pager-page.tsx
|
|
369
|
+
import { forwardRef as forwardRef3 } from "react";
|
|
370
|
+
import { View as View2 } from "react-native";
|
|
371
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
372
|
+
var PagerPage = forwardRef3(function PagerPage2({
|
|
373
|
+
children,
|
|
374
|
+
style,
|
|
375
|
+
...props
|
|
376
|
+
}, ref) {
|
|
377
|
+
const {
|
|
378
|
+
pageStyle,
|
|
379
|
+
track
|
|
380
|
+
} = usePager();
|
|
381
|
+
const [styleProps, rest] = useStyleProps(props);
|
|
382
|
+
return /* @__PURE__ */jsx3(View2, {
|
|
383
|
+
ref,
|
|
384
|
+
...rest,
|
|
385
|
+
style: [pageStyle, {
|
|
386
|
+
width: track.width,
|
|
387
|
+
height: track.height
|
|
388
|
+
}, styleProps, style],
|
|
389
|
+
children
|
|
390
|
+
});
|
|
391
|
+
});
|
|
392
|
+
PagerPage.displayName = "XAUI.Pager.Page";
|
|
393
|
+
|
|
410
394
|
// src/components/pager/pager.tsx
|
|
395
|
+
import { forwardRef as forwardRef4, useCallback, useMemo, useState } from "react";
|
|
396
|
+
import { View as View3 } from "react-native";
|
|
397
|
+
import { useAnimatedRef, useSharedValue as useSharedValue2 } from "react-native-reanimated";
|
|
411
398
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
412
399
|
var PagerRoot = forwardRef4(function Pager({
|
|
413
400
|
children,
|
|
@@ -465,35 +452,26 @@ var PagerRoot = forwardRef4(function Pager({
|
|
|
465
452
|
});
|
|
466
453
|
setIndex(next);
|
|
467
454
|
}, [orientation, setIndex, step, trackRef]);
|
|
468
|
-
const context = useMemo(() => {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
setTrack,
|
|
489
|
-
step,
|
|
490
|
-
offset,
|
|
491
|
-
goTo,
|
|
492
|
-
onSettle: setIndex,
|
|
493
|
-
trackRef,
|
|
494
|
-
isDisabled
|
|
495
|
-
};
|
|
496
|
-
}, [styles, tint, theme, orientation, index, count, track, setTrack, step, offset, goTo, setIndex, trackRef, isDisabled]);
|
|
455
|
+
const context = useMemo(() => ({
|
|
456
|
+
contentStyle: styles.content,
|
|
457
|
+
pageStyle: styles.page,
|
|
458
|
+
indicatorStyle: styles.indicator,
|
|
459
|
+
// One colour for every dot; the current one is told apart by its opacity, which the dot
|
|
460
|
+
// animates itself. Nothing here has to be flattened into a value for a worklet.
|
|
461
|
+
dotStyle: tint ? [styles.dot, tint.dot] : styles.dot,
|
|
462
|
+
orientation,
|
|
463
|
+
index,
|
|
464
|
+
count,
|
|
465
|
+
setCount,
|
|
466
|
+
track,
|
|
467
|
+
setTrack,
|
|
468
|
+
step,
|
|
469
|
+
offset,
|
|
470
|
+
goTo,
|
|
471
|
+
onSettle: setIndex,
|
|
472
|
+
trackRef,
|
|
473
|
+
isDisabled
|
|
474
|
+
}), [styles, tint, orientation, index, count, track, setTrack, step, offset, goTo, setIndex, trackRef, isDisabled]);
|
|
497
475
|
const rootStyle = [styles.root, tint?.root, styleProps, style];
|
|
498
476
|
return /* @__PURE__ */jsx4(PagerProvider, {
|
|
499
477
|
value: context,
|
|
@@ -514,4 +492,4 @@ var Pager2 = Object.assign(PagerRoot, {
|
|
|
514
492
|
Indicator: PagerIndicator,
|
|
515
493
|
Dot: PagerDot
|
|
516
494
|
});
|
|
517
|
-
export { usePager, PagerContent, PagerIndicator, PagerDot, PagerPage,
|
|
495
|
+
export { usePager, PagerContent, DOT_REST_OPACITY, pagerRecipe, PagerIndicator, PagerDot, PagerPage, PagerRoot, Pager2 as Pager };
|
|
@@ -6,7 +6,7 @@ var _chunkWDDXU3OHcjs = require('./chunk-WDDXU3OH.cjs');
|
|
|
6
6
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
@@ -75,7 +75,7 @@ var SnackbarAction = _react.forwardRef.call(void 0,
|
|
|
75
75
|
);
|
|
76
76
|
const text = _chunkFHNIGHN5cjs.childrenToString.call(void 0, children);
|
|
77
77
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
78
|
-
|
|
78
|
+
_chunkHBYT7B47cjs.PressableFeedback,
|
|
79
79
|
{
|
|
80
80
|
ref,
|
|
81
81
|
asChild,
|
|
@@ -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 _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.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
|
+
_chunkHBYT7B47cjs.PressableFeedback,
|
|
51
51
|
{
|
|
52
52
|
ref,
|
|
53
53
|
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 _chunkX22PLAP6cjs = require('./chunk-X22PLAP6.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
|
+
_chunkX22PLAP6cjs.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
|
+
_chunkX22PLAP6cjs.Checkbox,
|
|
682
682
|
{
|
|
683
683
|
isSelected,
|
|
684
684
|
isDisabled,
|