@xaui/native 0.9.1-alpha.93 → 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-OPLPLFGK.cjs → chunk-AHKKEM3K.cjs} +66 -23
- 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-2SHWOFQV.js → chunk-VQ4OTVET.js} +29 -29
- 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 +2 -2
- package/dist/components/pager/index.js +1 -1
- 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 +47 -60
- package/dist/index.js +50 -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-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
package/dist/chunk-5E6SHYEQ.cjs
DELETED
|
@@ -1,631 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkFJGPDWMScjs = require('./chunk-FJGPDWMS.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunkYVYYONTPcjs = require('./chunk-YVYYONTP.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _chunkJ5COSALOcjs = require('./chunk-J5COSALO.cjs');
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var _chunkWDDXU3OHcjs = require('./chunk-WDDXU3OH.cjs');
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var _chunkEKS3W46Mcjs = require('./chunk-EKS3W46M.cjs');
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var _chunkWFEMJCXOcjs = require('./chunk-WFEMJCXO.cjs');
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var _chunkGSZDN6EZcjs = require('./chunk-GSZDN6EZ.cjs');
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
var _chunkFHNIGHN5cjs = require('./chunk-FHNIGHN5.cjs');
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var _chunkIIAQISBGcjs = require('./chunk-IIAQISBG.cjs');
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
51
|
-
|
|
52
|
-
// src/components/select/select-content.tsx
|
|
53
|
-
var _react = require('react');
|
|
54
|
-
var _reactnative = require('react-native');
|
|
55
|
-
var _reactnativereanimated = require('react-native-reanimated'); var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
|
|
56
|
-
|
|
57
|
-
// src/components/select/select-item.tsx
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
// src/components/select/select-item-label.tsx
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
// src/components/select/select.context.ts
|
|
65
|
-
var [SelectProvider, useSelect] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "Select");
|
|
66
|
-
var [SelectItemProvider, useSelectItem] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "Select.Item");
|
|
67
|
-
|
|
68
|
-
// src/components/select/select-item-label.tsx
|
|
69
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
70
|
-
var SelectItemLabel = _react.forwardRef.call(void 0,
|
|
71
|
-
function SelectItemLabel2({ children, numberOfLines = 1, style, ...props }, ref) {
|
|
72
|
-
const { itemLabelStyle } = useSelect();
|
|
73
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
74
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
75
|
-
_reactnative.Text,
|
|
76
|
-
{
|
|
77
|
-
ref,
|
|
78
|
-
numberOfLines,
|
|
79
|
-
...rest,
|
|
80
|
-
style: [itemLabelStyle, styleProps, style],
|
|
81
|
-
children
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
SelectItemLabel.displayName = "XAUI.Select.ItemLabel";
|
|
87
|
-
|
|
88
|
-
// src/components/select/select-item.tsx
|
|
89
|
-
|
|
90
|
-
var SelectItem = _react.forwardRef.call(void 0, function SelectItem2({
|
|
91
|
-
value,
|
|
92
|
-
label,
|
|
93
|
-
children,
|
|
94
|
-
isDisabled = false,
|
|
95
|
-
asChild = false,
|
|
96
|
-
accessibilityRole = "menuitem",
|
|
97
|
-
accessibilityState,
|
|
98
|
-
style,
|
|
99
|
-
onPress,
|
|
100
|
-
onPressIn,
|
|
101
|
-
onPressOut,
|
|
102
|
-
...props
|
|
103
|
-
}, ref) {
|
|
104
|
-
const {
|
|
105
|
-
itemStyle,
|
|
106
|
-
itemPressedStyle,
|
|
107
|
-
value: selected,
|
|
108
|
-
select,
|
|
109
|
-
registerLabel
|
|
110
|
-
} = useSelect();
|
|
111
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
112
|
-
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
113
|
-
const isSelected = selected === value;
|
|
114
|
-
const text = typeof children === "function" ? null : _chunkFHNIGHN5cjs.childrenToString.call(void 0, children);
|
|
115
|
-
const registered = _nullishCoalesce(_nullishCoalesce(label, () => ( text)), () => ( void 0));
|
|
116
|
-
_react.useEffect.call(void 0, () => {
|
|
117
|
-
if (registered !== void 0) registerLabel(value, registered);
|
|
118
|
-
}, [registerLabel, value, registered]);
|
|
119
|
-
const handlePress = _react.useCallback.call(void 0,
|
|
120
|
-
(event) => {
|
|
121
|
-
_optionalChain([onPress, 'optionalCall', _ => _(event)]);
|
|
122
|
-
select(value, registered);
|
|
123
|
-
},
|
|
124
|
-
[onPress, select, value, registered]
|
|
125
|
-
);
|
|
126
|
-
const context = _react.useMemo.call(void 0,
|
|
127
|
-
() => ({ isSelected, isPressed, isDisabled }),
|
|
128
|
-
[isSelected, isPressed, isDisabled]
|
|
129
|
-
);
|
|
130
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItemProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
131
|
-
_chunkOW4N2C3Mcjs.PressableFeedback,
|
|
132
|
-
{
|
|
133
|
-
ref,
|
|
134
|
-
isPressed,
|
|
135
|
-
isDisabled,
|
|
136
|
-
asChild,
|
|
137
|
-
accessibilityRole,
|
|
138
|
-
accessibilityState: {
|
|
139
|
-
disabled: isDisabled,
|
|
140
|
-
selected: isSelected,
|
|
141
|
-
...accessibilityState
|
|
142
|
-
},
|
|
143
|
-
...rest,
|
|
144
|
-
style: [
|
|
145
|
-
itemStyle,
|
|
146
|
-
isPressed && itemPressedStyle,
|
|
147
|
-
styleProps,
|
|
148
|
-
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
149
|
-
],
|
|
150
|
-
onPress: handlePress,
|
|
151
|
-
onPressIn: press.onPressIn,
|
|
152
|
-
onPressOut: press.onPressOut,
|
|
153
|
-
children: typeof children === "function" ? children(context) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: text !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItemLabel, { children: text }) : children })
|
|
154
|
-
}
|
|
155
|
-
) });
|
|
156
|
-
});
|
|
157
|
-
SelectItem.displayName = "XAUI.Select.Item";
|
|
158
|
-
|
|
159
|
-
// src/components/select/select-content.tsx
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
var DEFAULT_OFFSET = 8;
|
|
163
|
-
var DEFAULT_INSETS = {
|
|
164
|
-
top: 12,
|
|
165
|
-
bottom: 12,
|
|
166
|
-
start: 12,
|
|
167
|
-
end: 12
|
|
168
|
-
};
|
|
169
|
-
var isSelectItem = (type) => type === SelectItem;
|
|
170
|
-
var SelectContent = _react.forwardRef.call(void 0,
|
|
171
|
-
function SelectContent2({
|
|
172
|
-
children,
|
|
173
|
-
placement = "bottom",
|
|
174
|
-
align = "center",
|
|
175
|
-
width = "trigger",
|
|
176
|
-
minWidth,
|
|
177
|
-
offset = DEFAULT_OFFSET,
|
|
178
|
-
alignOffset = 0,
|
|
179
|
-
avoidCollisions = true,
|
|
180
|
-
insets,
|
|
181
|
-
style,
|
|
182
|
-
onLayout,
|
|
183
|
-
...props
|
|
184
|
-
}, ref) {
|
|
185
|
-
const context = useSelect();
|
|
186
|
-
const { contentStyle, isOpen, anchor, registerLabel } = context;
|
|
187
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
188
|
-
const { position, onContentLayout, measuringStyle } = _chunkYVYYONTPcjs.useAnchoredPosition.call(void 0, {
|
|
189
|
-
anchor,
|
|
190
|
-
isOpen,
|
|
191
|
-
placement,
|
|
192
|
-
align,
|
|
193
|
-
width,
|
|
194
|
-
minWidth,
|
|
195
|
-
offset,
|
|
196
|
-
alignOffset,
|
|
197
|
-
avoidCollisions,
|
|
198
|
-
insets: { ...DEFAULT_INSETS, ...insets },
|
|
199
|
-
onLayout
|
|
200
|
-
});
|
|
201
|
-
_react.useEffect.call(void 0, () => {
|
|
202
|
-
for (const [value, label] of _chunkFJGPDWMScjs.collectItemLabels.call(void 0, children, isSelectItem)) {
|
|
203
|
-
registerLabel(value, label);
|
|
204
|
-
}
|
|
205
|
-
}, [children, registerLabel]);
|
|
206
|
-
if (!isOpen || anchor === null) return null;
|
|
207
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWDDXU3OHcjs.Portal, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
208
|
-
_reactnativereanimated2.default.View,
|
|
209
|
-
{
|
|
210
|
-
ref,
|
|
211
|
-
entering: position ? _chunkEKS3W46Mcjs.anchoredEntering.call(void 0, position.placement) : void 0,
|
|
212
|
-
exiting: position ? _chunkEKS3W46Mcjs.anchoredExiting.call(void 0, position.placement) : void 0,
|
|
213
|
-
onLayout: onContentLayout,
|
|
214
|
-
...rest,
|
|
215
|
-
style: [
|
|
216
|
-
contentStyle,
|
|
217
|
-
position === null ? measuringStyle : {
|
|
218
|
-
top: position.top,
|
|
219
|
-
start: position.start,
|
|
220
|
-
width: position.width,
|
|
221
|
-
maxHeight: position.maxHeight
|
|
222
|
-
},
|
|
223
|
-
styleProps,
|
|
224
|
-
style
|
|
225
|
-
],
|
|
226
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
227
|
-
_reactnative.ScrollView,
|
|
228
|
-
{
|
|
229
|
-
bounces: false,
|
|
230
|
-
keyboardShouldPersistTaps: "handled",
|
|
231
|
-
showsVerticalScrollIndicator: false,
|
|
232
|
-
children
|
|
233
|
-
}
|
|
234
|
-
)
|
|
235
|
-
},
|
|
236
|
-
_nullishCoalesce(_optionalChain([position, 'optionalAccess', _2 => _2.placement]), () => ( "measuring"))
|
|
237
|
-
) }) });
|
|
238
|
-
}
|
|
239
|
-
);
|
|
240
|
-
SelectContent.displayName = "XAUI.Select.Content";
|
|
241
|
-
|
|
242
|
-
// src/components/select/select-indicator.tsx
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
function SelectIndicator({
|
|
252
|
-
as = _chunkGSZDN6EZcjs.ChevronDownIcon,
|
|
253
|
-
...props
|
|
254
|
-
}) {
|
|
255
|
-
const { indicatorStyle, isOpen } = useSelect();
|
|
256
|
-
const progress = _reactnativereanimated.useSharedValue.call(void 0, isOpen ? 1 : 0);
|
|
257
|
-
_react.useEffect.call(void 0, () => {
|
|
258
|
-
progress.set(_reactnativereanimated.withSpring.call(void 0, isOpen ? 1 : 0, _chunkEKS3W46Mcjs.INDICATOR_SPRING));
|
|
259
|
-
}, [isOpen, progress]);
|
|
260
|
-
const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, () => ({
|
|
261
|
-
transform: [
|
|
262
|
-
{
|
|
263
|
-
rotate: `${_reactnativereanimated.interpolate.call(void 0, progress.get(), [0, 1], [_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0], _chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])}deg`
|
|
264
|
-
}
|
|
265
|
-
]
|
|
266
|
-
}));
|
|
267
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, { style: [indicatorStyle, rotation], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.Icon, { as, ...props }) });
|
|
268
|
-
}
|
|
269
|
-
SelectIndicator.displayName = "XAUI.Select.Indicator";
|
|
270
|
-
|
|
271
|
-
// src/components/select/select-item-description.tsx
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
var SelectItemDescription = _react.forwardRef.call(void 0,
|
|
276
|
-
function SelectItemDescription2({ children, style, ...props }, ref) {
|
|
277
|
-
const { itemDescriptionStyle } = useSelect();
|
|
278
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
279
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, ...rest, style: [itemDescriptionStyle, styleProps, style], children });
|
|
280
|
-
}
|
|
281
|
-
);
|
|
282
|
-
SelectItemDescription.displayName = "XAUI.Select.ItemDescription";
|
|
283
|
-
|
|
284
|
-
// src/components/select/select-item-indicator.tsx
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
// src/components/select/check-icon.tsx
|
|
288
|
-
var _reactnativesvg = require('react-native-svg');
|
|
289
|
-
|
|
290
|
-
function CheckIcon({
|
|
291
|
-
size = 20,
|
|
292
|
-
color = "currentColor"
|
|
293
|
-
}) {
|
|
294
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
295
|
-
_reactnativesvg.Path,
|
|
296
|
-
{
|
|
297
|
-
d: "m20 6-11 11-5-5",
|
|
298
|
-
stroke: color,
|
|
299
|
-
strokeWidth: 2,
|
|
300
|
-
strokeLinecap: "round",
|
|
301
|
-
strokeLinejoin: "round"
|
|
302
|
-
}
|
|
303
|
-
) });
|
|
304
|
-
}
|
|
305
|
-
CheckIcon.displayName = "XAUI.Select.CheckIcon";
|
|
306
|
-
|
|
307
|
-
// src/components/select/select-item-indicator.tsx
|
|
308
|
-
|
|
309
|
-
function SelectItemIndicator({
|
|
310
|
-
as = CheckIcon,
|
|
311
|
-
color,
|
|
312
|
-
...props
|
|
313
|
-
}) {
|
|
314
|
-
const { itemIndicatorStyle, checkColor } = useSelect();
|
|
315
|
-
const { isSelected } = useSelectItem();
|
|
316
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: itemIndicatorStyle, children: isSelected ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.Icon, { as, color: _nullishCoalesce(color, () => ( checkColor)), ...props }) : null });
|
|
317
|
-
}
|
|
318
|
-
SelectItemIndicator.displayName = "XAUI.Select.ItemIndicator";
|
|
319
|
-
|
|
320
|
-
// src/components/select/select-label.tsx
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
var SelectLabel = _react.forwardRef.call(void 0, function SelectLabel2({ children, accessibilityRole = "header", style, ...props }, ref) {
|
|
325
|
-
const { labelStyle } = useSelect();
|
|
326
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
327
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
328
|
-
_reactnative.Text,
|
|
329
|
-
{
|
|
330
|
-
ref,
|
|
331
|
-
accessibilityRole,
|
|
332
|
-
...rest,
|
|
333
|
-
style: [labelStyle, styleProps, style],
|
|
334
|
-
children
|
|
335
|
-
}
|
|
336
|
-
);
|
|
337
|
-
});
|
|
338
|
-
SelectLabel.displayName = "XAUI.Select.Label";
|
|
339
|
-
|
|
340
|
-
// src/components/select/select-overlay.tsx
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
var AnimatedPressable = _reactnativereanimated2.default.createAnimatedComponent(_reactnative.Pressable);
|
|
346
|
-
var SelectOverlay = _react.forwardRef.call(void 0,
|
|
347
|
-
function SelectOverlay2({ children, isDismissable = true, style, ...props }, ref) {
|
|
348
|
-
const context = useSelect();
|
|
349
|
-
const { overlayStyle, isOpen, close } = context;
|
|
350
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
351
|
-
if (!isOpen) return null;
|
|
352
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWDDXU3OHcjs.Portal, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
353
|
-
AnimatedPressable,
|
|
354
|
-
{
|
|
355
|
-
ref,
|
|
356
|
-
entering: _chunkEKS3W46Mcjs.overlayEntering,
|
|
357
|
-
exiting: _chunkEKS3W46Mcjs.overlayExiting,
|
|
358
|
-
accessibilityRole: "none",
|
|
359
|
-
importantForAccessibility: "no",
|
|
360
|
-
onPress: isDismissable ? close : void 0,
|
|
361
|
-
...rest,
|
|
362
|
-
style: [overlayStyle, styleProps, style],
|
|
363
|
-
children
|
|
364
|
-
}
|
|
365
|
-
) }) });
|
|
366
|
-
}
|
|
367
|
-
);
|
|
368
|
-
SelectOverlay.displayName = "XAUI.Select.Overlay";
|
|
369
|
-
|
|
370
|
-
// src/components/select/select-trigger.tsx
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
var SelectTrigger = _react.forwardRef.call(void 0,
|
|
374
|
-
function SelectTrigger2({
|
|
375
|
-
children,
|
|
376
|
-
asChild = false,
|
|
377
|
-
accessibilityRole = "button",
|
|
378
|
-
accessibilityState,
|
|
379
|
-
style,
|
|
380
|
-
onLayout,
|
|
381
|
-
onPressIn,
|
|
382
|
-
onPressOut,
|
|
383
|
-
onPress,
|
|
384
|
-
...props
|
|
385
|
-
}, ref) {
|
|
386
|
-
const {
|
|
387
|
-
triggerStyle,
|
|
388
|
-
triggerPressedStyle,
|
|
389
|
-
glyph,
|
|
390
|
-
isOpen,
|
|
391
|
-
isDisabled,
|
|
392
|
-
isInvalid,
|
|
393
|
-
toggle,
|
|
394
|
-
setAnchor
|
|
395
|
-
} = useSelect();
|
|
396
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
397
|
-
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
398
|
-
const node = _react.useRef.call(void 0, null);
|
|
399
|
-
const refs = _chunkWFEMJCXOcjs.useMergedRef.call(void 0, node, ref);
|
|
400
|
-
const measure = _react.useCallback.call(void 0, () => {
|
|
401
|
-
_optionalChain([node, 'access', _3 => _3.current, 'optionalAccess', _4 => _4.measureInWindow, 'call', _5 => _5((x, y, width, height) => {
|
|
402
|
-
setAnchor({ x, y, width, height });
|
|
403
|
-
})]);
|
|
404
|
-
}, [setAnchor]);
|
|
405
|
-
const handleLayout = _react.useCallback.call(void 0,
|
|
406
|
-
(event) => {
|
|
407
|
-
_optionalChain([onLayout, 'optionalCall', _6 => _6(event)]);
|
|
408
|
-
measure();
|
|
409
|
-
},
|
|
410
|
-
[measure, onLayout]
|
|
411
|
-
);
|
|
412
|
-
_react.useEffect.call(void 0, () => {
|
|
413
|
-
if (isOpen) measure();
|
|
414
|
-
}, [isOpen, measure]);
|
|
415
|
-
const handlePress = _react.useCallback.call(void 0,
|
|
416
|
-
(event) => {
|
|
417
|
-
_optionalChain([onPress, 'optionalCall', _7 => _7(event)]);
|
|
418
|
-
measure();
|
|
419
|
-
toggle();
|
|
420
|
-
},
|
|
421
|
-
[measure, onPress, toggle]
|
|
422
|
-
);
|
|
423
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.IconContext.Provider, { value: glyph, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
424
|
-
_chunkOW4N2C3Mcjs.PressableFeedback,
|
|
425
|
-
{
|
|
426
|
-
ref: refs,
|
|
427
|
-
isPressed,
|
|
428
|
-
isDisabled,
|
|
429
|
-
asChild,
|
|
430
|
-
accessibilityRole,
|
|
431
|
-
accessibilityState: {
|
|
432
|
-
disabled: isDisabled,
|
|
433
|
-
expanded: isOpen,
|
|
434
|
-
...accessibilityState
|
|
435
|
-
},
|
|
436
|
-
"aria-invalid": isInvalid || void 0,
|
|
437
|
-
...rest,
|
|
438
|
-
onLayout: handleLayout,
|
|
439
|
-
style: [
|
|
440
|
-
triggerStyle,
|
|
441
|
-
isPressed && triggerPressedStyle,
|
|
442
|
-
styleProps,
|
|
443
|
-
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
444
|
-
],
|
|
445
|
-
onPress: handlePress,
|
|
446
|
-
onPressIn: press.onPressIn,
|
|
447
|
-
onPressOut: press.onPressOut,
|
|
448
|
-
children
|
|
449
|
-
}
|
|
450
|
-
) });
|
|
451
|
-
}
|
|
452
|
-
);
|
|
453
|
-
SelectTrigger.displayName = "XAUI.Select.Trigger";
|
|
454
|
-
|
|
455
|
-
// src/components/select/select-value.tsx
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
var SelectValue = _react.forwardRef.call(void 0, function SelectValue2({ placeholder, children, numberOfLines = 1, style, ...props }, ref) {
|
|
460
|
-
const { valueStyle, placeholderStyle, value, labelFor } = useSelect();
|
|
461
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
462
|
-
const label = _nullishCoalesce(children, () => ( (value !== void 0 ? labelFor(value) : void 0)));
|
|
463
|
-
const isEmpty = label === void 0 || label === "";
|
|
464
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
465
|
-
_reactnative.Text,
|
|
466
|
-
{
|
|
467
|
-
ref,
|
|
468
|
-
numberOfLines,
|
|
469
|
-
...rest,
|
|
470
|
-
style: [valueStyle, isEmpty && placeholderStyle, styleProps, style],
|
|
471
|
-
children: isEmpty ? placeholder : label
|
|
472
|
-
}
|
|
473
|
-
);
|
|
474
|
-
});
|
|
475
|
-
SelectValue.displayName = "XAUI.Select.Value";
|
|
476
|
-
|
|
477
|
-
// src/components/select/select.tsx
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
function Select({
|
|
482
|
-
children,
|
|
483
|
-
variant,
|
|
484
|
-
size,
|
|
485
|
-
radius,
|
|
486
|
-
color,
|
|
487
|
-
value: controlledValue,
|
|
488
|
-
defaultValue,
|
|
489
|
-
onValueChange,
|
|
490
|
-
isOpen: controlledOpen,
|
|
491
|
-
defaultOpen = false,
|
|
492
|
-
onOpenChange,
|
|
493
|
-
isDisabled = false,
|
|
494
|
-
isInvalid = false
|
|
495
|
-
}) {
|
|
496
|
-
const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0, );
|
|
497
|
-
const { labelFor, registerLabel } = _chunkFJGPDWMScjs.useLabelRegistry.call(void 0, );
|
|
498
|
-
const [anchor, setAnchor] = _react.useState.call(void 0, null);
|
|
499
|
-
const [value, setValue] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
500
|
-
value: controlledValue,
|
|
501
|
-
defaultValue,
|
|
502
|
-
onChange: onValueChange
|
|
503
|
-
});
|
|
504
|
-
const [isOpen, setOpen] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
505
|
-
value: controlledOpen,
|
|
506
|
-
defaultValue: defaultOpen,
|
|
507
|
-
onChange: onOpenChange
|
|
508
|
-
});
|
|
509
|
-
const selection = {
|
|
510
|
-
variant,
|
|
511
|
-
size,
|
|
512
|
-
radius,
|
|
513
|
-
isOpen: isOpen ? "true" : void 0,
|
|
514
|
-
isInvalid: isInvalid ? "true" : void 0
|
|
515
|
-
};
|
|
516
|
-
const styles = _chunkJ5COSALOcjs.selectRecipe.resolve({
|
|
517
|
-
theme,
|
|
518
|
-
selection,
|
|
519
|
-
states: { disabled: isDisabled }
|
|
520
|
-
});
|
|
521
|
-
const pressed = _chunkJ5COSALOcjs.selectRecipe.resolve({
|
|
522
|
-
theme,
|
|
523
|
-
selection,
|
|
524
|
-
states: { pressed: true }
|
|
525
|
-
});
|
|
526
|
-
const tint = color ? _chunkJ5COSALOcjs.selectRecipe.tint({ theme, color, selection }) : void 0;
|
|
527
|
-
const open = _react.useCallback.call(void 0, () => setOpen(true), [setOpen]);
|
|
528
|
-
const close = _react.useCallback.call(void 0, () => setOpen(false), [setOpen]);
|
|
529
|
-
const toggle = _react.useCallback.call(void 0, () => setOpen(!isOpen), [isOpen, setOpen]);
|
|
530
|
-
const select = _react.useCallback.call(void 0,
|
|
531
|
-
(next, label) => {
|
|
532
|
-
if (label !== void 0) registerLabel(next, label);
|
|
533
|
-
setValue(next);
|
|
534
|
-
setOpen(false);
|
|
535
|
-
},
|
|
536
|
-
[registerLabel, setValue, setOpen]
|
|
537
|
-
);
|
|
538
|
-
const context = _react.useMemo.call(void 0, () => {
|
|
539
|
-
const indicator = _reactnative.StyleSheet.flatten([
|
|
540
|
-
styles.indicator,
|
|
541
|
-
_optionalChain([tint, 'optionalAccess', _8 => _8.indicator])
|
|
542
|
-
]);
|
|
543
|
-
const itemLabel = _reactnative.StyleSheet.flatten([styles.itemLabel]);
|
|
544
|
-
const tintedPlaceholder = tint ? _reactnative.StyleSheet.flatten([tint.value]).color : void 0;
|
|
545
|
-
return {
|
|
546
|
-
triggerStyle: tint ? [styles.trigger, tint.trigger] : styles.trigger,
|
|
547
|
-
triggerPressedStyle: pressed.trigger,
|
|
548
|
-
valueStyle: tint ? [styles.value, tint.value] : styles.value,
|
|
549
|
-
placeholderStyle: tintedPlaceholder ? [styles.placeholder, { color: tintedPlaceholder }] : styles.placeholder,
|
|
550
|
-
indicatorStyle: styles.indicator,
|
|
551
|
-
overlayStyle: styles.overlay,
|
|
552
|
-
contentStyle: styles.content,
|
|
553
|
-
labelStyle: styles.label,
|
|
554
|
-
itemStyle: styles.item,
|
|
555
|
-
itemPressedStyle: pressed.item,
|
|
556
|
-
itemLabelStyle: styles.itemLabel,
|
|
557
|
-
itemDescriptionStyle: styles.itemDescription,
|
|
558
|
-
itemIndicatorStyle: styles.itemIndicator,
|
|
559
|
-
glyph: {
|
|
560
|
-
size: indicator.fontSize,
|
|
561
|
-
// `ColorValue` also covers the platform's opaque colours, which `Icon` cannot
|
|
562
|
-
// hand to a third-party component expecting a string.
|
|
563
|
-
color: typeof indicator.color === "string" ? indicator.color : void 0
|
|
564
|
-
},
|
|
565
|
-
// The check reads the row's own colour rather than the chevron's: it belongs to the
|
|
566
|
-
// list, and the chevron belongs to the field.
|
|
567
|
-
checkColor: typeof itemLabel.color === "string" ? itemLabel.color : void 0,
|
|
568
|
-
value,
|
|
569
|
-
isOpen,
|
|
570
|
-
isDisabled,
|
|
571
|
-
isInvalid,
|
|
572
|
-
open,
|
|
573
|
-
close,
|
|
574
|
-
toggle,
|
|
575
|
-
select,
|
|
576
|
-
anchor,
|
|
577
|
-
setAnchor,
|
|
578
|
-
labelFor,
|
|
579
|
-
registerLabel
|
|
580
|
-
};
|
|
581
|
-
}, [
|
|
582
|
-
styles,
|
|
583
|
-
pressed,
|
|
584
|
-
tint,
|
|
585
|
-
value,
|
|
586
|
-
isOpen,
|
|
587
|
-
isDisabled,
|
|
588
|
-
isInvalid,
|
|
589
|
-
open,
|
|
590
|
-
close,
|
|
591
|
-
toggle,
|
|
592
|
-
select,
|
|
593
|
-
anchor,
|
|
594
|
-
labelFor,
|
|
595
|
-
registerLabel
|
|
596
|
-
]);
|
|
597
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectProvider, { value: context, children });
|
|
598
|
-
}
|
|
599
|
-
Select.displayName = "XAUI.Select.Root";
|
|
600
|
-
|
|
601
|
-
// src/components/select/index.ts
|
|
602
|
-
var Select2 = Object.assign(Select, {
|
|
603
|
-
Trigger: SelectTrigger,
|
|
604
|
-
Value: SelectValue,
|
|
605
|
-
Indicator: SelectIndicator,
|
|
606
|
-
Overlay: SelectOverlay,
|
|
607
|
-
Content: SelectContent,
|
|
608
|
-
Label: SelectLabel,
|
|
609
|
-
Item: SelectItem,
|
|
610
|
-
ItemLabel: SelectItemLabel,
|
|
611
|
-
ItemDescription: SelectItemDescription,
|
|
612
|
-
ItemIndicator: SelectItemIndicator
|
|
613
|
-
});
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
exports.useSelect = useSelect; exports.useSelectItem = useSelectItem; exports.SelectItemLabel = SelectItemLabel; exports.SelectItem = SelectItem; exports.SelectContent = SelectContent; exports.SelectIndicator = SelectIndicator; exports.SelectItemDescription = SelectItemDescription; exports.CheckIcon = CheckIcon; exports.SelectItemIndicator = SelectItemIndicator; exports.SelectLabel = SelectLabel; exports.SelectOverlay = SelectOverlay; exports.SelectTrigger = SelectTrigger; exports.SelectValue = SelectValue; exports.Select = Select; exports.Select2 = Select2;
|