@xaui/native 0.9.1-alpha.94 → 0.9.1-beta.100
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-AXKDHX5V.cjs → chunk-2IOL3VDP.cjs} +3 -3
- package/dist/{chunk-LUPU7FJK.js → chunk-356DND54.js} +1 -1
- package/dist/{chunk-B5DBFS6M.js → chunk-3BRVAMXQ.js} +1 -1
- package/dist/{chunk-4LRVB6WR.cjs → chunk-3DQCHPB6.cjs} +12 -12
- package/dist/{chunk-5O7E73QP.cjs → chunk-3MMOZP4Y.cjs} +8 -8
- package/dist/{chunk-X6GT4H4I.cjs → chunk-3TBT6ORW.cjs} +15 -15
- package/dist/{chunk-DN3X5WIB.js → chunk-3VMKOQXH.js} +1 -1
- package/dist/{chunk-WPYJW3WM.cjs → chunk-435MOVG2.cjs} +3 -3
- package/dist/{chunk-V4IFH65I.cjs → chunk-5CXOSDFI.cjs} +2 -2
- package/dist/{chunk-5XTF2JDK.js → chunk-5G36GMFS.js} +1 -1
- package/dist/{chunk-VBS6VWW4.cjs → chunk-5UT5I53X.cjs} +3 -3
- package/dist/{chunk-4AIIAF6U.js → chunk-73EVNWZI.js} +16 -16
- package/dist/{chunk-7OVYYZ7H.js → chunk-7EPH24S2.js} +15 -15
- package/dist/{chunk-G2YHGLN3.cjs → chunk-7JWOAGB3.cjs} +9 -9
- package/dist/{chunk-6SRFQSPR.cjs → chunk-ADGHFLBJ.cjs} +1 -1
- package/dist/{chunk-OZLOYXLW.js → chunk-BBQQIO6L.js} +4 -4
- package/dist/{chunk-X22PLAP6.cjs → chunk-BGBJTBFC.cjs} +1 -1
- package/dist/{chunk-33BA4LVN.js → chunk-BH4IN6H6.js} +1 -1
- package/dist/{chunk-WLWZG2PA.cjs → chunk-BKY5YQ7W.cjs} +1 -1
- package/dist/{chunk-AHJLQJOE.cjs → chunk-C2S6J27O.cjs} +1 -1
- package/dist/chunk-C6JO2RTV.cjs +752 -0
- package/dist/{chunk-2TLPFGGR.cjs → chunk-CS6CYB4I.cjs} +34 -25
- package/dist/{chunk-WYRM77XM.cjs → chunk-ENZBKNFJ.cjs} +15 -15
- package/dist/{chunk-ERIGD4SE.cjs → chunk-ETY5PM3E.cjs} +150 -39
- package/dist/{chunk-YJIVPYMG.cjs → chunk-FLKTJ46K.cjs} +15 -15
- package/dist/{chunk-OX23MW5E.js → chunk-FSVZXWLZ.js} +44 -44
- package/dist/{chunk-E5E2QA4K.js → chunk-GVZJNIHN.js} +176 -62
- package/dist/{chunk-6W45YHTF.js → chunk-HDERVGWZ.js} +1 -1
- package/dist/{chunk-KHPODIQV.cjs → chunk-IHRPAKCZ.cjs} +15 -15
- package/dist/{chunk-2XEQDQAN.js → chunk-IVELCJEN.js} +99 -99
- package/dist/{chunk-5YZUYSV7.js → chunk-JYV53WUN.js} +1 -1
- package/dist/{chunk-DE4RSR7Q.cjs → chunk-KAYZH7ZN.cjs} +1 -1
- package/dist/{chunk-IMIY34F4.cjs → chunk-KIXHSX3L.cjs} +1 -1
- package/dist/{chunk-7M6YKCHX.js → chunk-KZZWNDDO.js} +2 -2
- package/dist/{chunk-J5COSALO.cjs → chunk-L4B6Z45Q.cjs} +5 -5
- package/dist/{chunk-KFB24VYT.js → chunk-LMMHAGOM.js} +26 -17
- package/dist/{chunk-EQUD3NHO.js → chunk-LYWXGEED.js} +43 -43
- package/dist/{chunk-BYDGJU5A.js → chunk-M352N6PQ.js} +5 -5
- package/dist/{chunk-XOZMGNVS.js → chunk-MXSIY6QQ.js} +3 -3
- package/dist/{chunk-3CPLJJWX.js → chunk-MZUYTCCB.js} +1 -1
- package/dist/{chunk-K7VDLVLE.js → chunk-NQDTGYHC.js} +3 -3
- package/dist/{chunk-NADCILBL.cjs → chunk-NRU5APUE.cjs} +4 -4
- package/dist/{chunk-43S673KF.js → chunk-NTVPLDJC.js} +1 -1
- package/dist/{chunk-7AVZ2FST.cjs → chunk-NXVSNESK.cjs} +12 -12
- package/dist/{chunk-E4FWGZH2.js → chunk-OUNTRW6E.js} +5 -5
- package/dist/{chunk-MNBEUNC5.cjs → chunk-QRH45OO3.cjs} +144 -33
- package/dist/chunk-SVS726BW.js +822 -0
- package/dist/{chunk-YOPWQHNO.js → chunk-TNFLBURM.js} +1 -1
- package/dist/{chunk-YCQEX25B.cjs → chunk-U6YD3UBO.cjs} +7 -7
- package/dist/{chunk-GN7BWYXP.cjs → chunk-USQK6SFZ.cjs} +15 -15
- package/dist/{chunk-QT7KLGO3.js → chunk-V5FYHQKQ.js} +102 -87
- package/dist/{chunk-KMK6FUTK.cjs → chunk-V5V2QYFH.cjs} +9 -9
- package/dist/{chunk-YGETADPV.js → chunk-V7YT4SDX.js} +2 -2
- package/dist/{chunk-DBP5CA5R.js → chunk-VL2ZT4BB.js} +3 -3
- package/dist/{chunk-Q6OVVUAT.js → chunk-VTGWFZCA.js} +2 -2
- package/dist/{chunk-YI5D4QZP.js → chunk-WIGDDZHO.js} +190 -76
- package/dist/{chunk-NGXLJ5ZF.cjs → chunk-WSDDUVF6.cjs} +22 -22
- package/dist/{chunk-AIHKBSQ5.cjs → chunk-YUCK5VJO.cjs} +8 -8
- package/dist/{chunk-SIOSYITD.cjs → chunk-ZBFBF7S4.cjs} +60 -45
- package/dist/{chunk-SX5U5UJQ.js → chunk-ZBY7Q7WJ.js} +2 -2
- package/dist/{chunk-53E2E7GS.cjs → chunk-ZNKHL5O6.cjs} +15 -15
- package/dist/{chunk-U5CUBDJA.js → chunk-ZR5YOCOQ.js} +15 -15
- package/dist/components/accordion/accordion.animation.d.cts +1 -1
- package/dist/components/accordion/accordion.animation.d.ts +1 -1
- package/dist/components/accordion/accordion.type.d.cts +1 -1
- package/dist/components/accordion/accordion.type.d.ts +1 -1
- package/dist/components/accordion/index.cjs +2 -2
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-calendar/agenda-calendar-today-button.d.cts +4 -0
- package/dist/components/agenda-calendar/agenda-calendar-today-button.d.ts +4 -0
- package/dist/components/agenda-calendar/agenda-calendar.recipe.d.cts +1 -1
- package/dist/components/agenda-calendar/agenda-calendar.recipe.d.ts +1 -1
- package/dist/components/agenda-calendar/agenda-calendar.type.d.cts +4 -1
- package/dist/components/agenda-calendar/agenda-calendar.type.d.ts +4 -1
- package/dist/components/agenda-calendar/index.cjs +2 -2
- package/dist/components/agenda-calendar/index.js +1 -1
- package/dist/components/alert/alert-icon.d.cts +2 -2
- package/dist/components/alert/alert-icon.d.ts +2 -2
- package/dist/components/alert/alert.type.d.cts +1 -1
- package/dist/components/alert/alert.type.d.ts +1 -1
- package/dist/components/alert/index.cjs +2 -2
- package/dist/components/alert/index.js +1 -1
- package/dist/components/autocomplete/autocomplete-description.d.cts +14 -0
- package/dist/components/autocomplete/autocomplete-description.d.ts +14 -0
- package/dist/components/autocomplete/autocomplete-error.d.cts +12 -0
- package/dist/components/autocomplete/autocomplete-error.d.ts +12 -0
- package/dist/components/autocomplete/autocomplete-label.d.cts +15 -0
- package/dist/components/autocomplete/autocomplete-label.d.ts +15 -0
- package/dist/components/autocomplete/autocomplete.d.cts +50 -7
- package/dist/components/autocomplete/autocomplete.d.ts +50 -7
- package/dist/components/autocomplete/autocomplete.type.d.cts +21 -4
- package/dist/components/autocomplete/autocomplete.type.d.ts +21 -4
- package/dist/components/autocomplete/index.cjs +10 -3
- package/dist/components/autocomplete/index.d.cts +50 -3
- package/dist/components/autocomplete/index.d.ts +50 -3
- package/dist/components/autocomplete/index.js +9 -2
- package/dist/components/avatar/avatar-fallback.d.cts +1 -1
- package/dist/components/avatar/avatar-fallback.d.ts +1 -1
- package/dist/components/avatar/avatar.d.cts +1 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/avatar.type.d.cts +1 -1
- package/dist/components/avatar/avatar.type.d.ts +1 -1
- package/dist/components/avatar/index.cjs +2 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.cts +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +1 -1
- package/dist/components/bottom-sheet/index.cjs +2 -2
- package/dist/components/bottom-sheet/index.js +1 -1
- package/dist/components/card/card-background.d.cts +1 -1
- package/dist/components/card/card-background.d.ts +1 -1
- package/dist/components/card/card.utils.d.cts +1 -1
- package/dist/components/card/card.utils.d.ts +1 -1
- package/dist/components/checkbox/checkbox.recipe.d.cts +1 -1
- package/dist/components/checkbox/checkbox.recipe.d.ts +1 -1
- package/dist/components/checkbox/checkbox.type.d.cts +1 -1
- package/dist/components/checkbox/checkbox.type.d.ts +1 -1
- package/dist/components/checkbox/index.cjs +2 -2
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/chip/chip.type.d.cts +1 -1
- package/dist/components/chip/chip.type.d.ts +1 -1
- package/dist/components/chip/index.cjs +2 -2
- package/dist/components/chip/index.js +1 -1
- package/dist/components/color-picker/index.cjs +7 -7
- package/dist/components/color-picker/index.js +6 -6
- package/dist/components/combobox/combobox.type.d.cts +5 -1
- package/dist/components/combobox/combobox.type.d.ts +5 -1
- package/dist/components/combobox/index.cjs +5 -4
- package/dist/components/combobox/index.d.cts +15 -1
- package/dist/components/combobox/index.d.ts +15 -1
- package/dist/components/combobox/index.js +4 -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 +4 -4
- package/dist/components/date-range-picker/index.js +3 -3
- package/dist/components/date-time-picker/index.cjs +5 -5
- package/dist/components/date-time-picker/index.js +4 -4
- package/dist/components/dialog/index.cjs +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dummy-field/index.cjs +5 -5
- package/dist/components/dummy-field/index.js +4 -4
- package/dist/components/field-group/field-group-icon.d.cts +1 -1
- package/dist/components/field-group/field-group-icon.d.ts +1 -1
- package/dist/components/field-group/index.cjs +4 -4
- package/dist/components/field-group/index.js +3 -3
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/input-otp/input-otp.type.d.cts +1 -1
- package/dist/components/input-otp/input-otp.type.d.ts +1 -1
- package/dist/components/list-box/list-box-item-suffix.d.cts +1 -1
- package/dist/components/list-box/list-box-item-suffix.d.ts +1 -1
- package/dist/components/mask-field/index.cjs +5 -5
- package/dist/components/mask-field/index.js +4 -4
- package/dist/components/menu/index.cjs +2 -2
- package/dist/components/menu/index.js +1 -1
- package/dist/components/number-field/index.cjs +5 -5
- package/dist/components/number-field/index.js +4 -4
- package/dist/components/phone-number-field/index.cjs +37 -30
- package/dist/components/phone-number-field/index.js +13 -6
- package/dist/components/popover/index.cjs +2 -2
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.recipe.d.cts +1 -1
- package/dist/components/popover/popover.recipe.d.ts +1 -1
- package/dist/components/search-field/index.cjs +5 -5
- package/dist/components/search-field/index.js +4 -4
- package/dist/components/select/index.cjs +10 -3
- package/dist/components/select/index.d.cts +45 -4
- package/dist/components/select/index.d.ts +45 -4
- package/dist/components/select/index.js +9 -2
- package/dist/components/select/select-description.d.cts +14 -0
- package/dist/components/select/select-description.d.ts +14 -0
- package/dist/components/select/select-error.d.cts +13 -0
- package/dist/components/select/select-error.d.ts +13 -0
- package/dist/components/select/select-group-label.d.cts +11 -0
- package/dist/components/select/select-group-label.d.ts +11 -0
- package/dist/components/select/select-indicator.d.cts +1 -1
- package/dist/components/select/select-indicator.d.ts +1 -1
- package/dist/components/select/select-label.d.cts +11 -2
- package/dist/components/select/select-label.d.ts +11 -2
- package/dist/components/select/select.d.cts +49 -9
- package/dist/components/select/select.d.ts +49 -9
- package/dist/components/select/select.recipe.d.cts +1 -1
- package/dist/components/select/select.recipe.d.ts +1 -1
- package/dist/components/select/select.type.d.cts +33 -9
- package/dist/components/select/select.type.d.ts +33 -9
- package/dist/components/skeleton/skeleton.type.d.cts +1 -1
- package/dist/components/skeleton/skeleton.type.d.ts +1 -1
- package/dist/components/slide-button/index.cjs +30 -0
- package/dist/components/slide-button/index.d.cts +44 -0
- package/dist/components/slide-button/index.d.ts +44 -0
- package/dist/components/slide-button/index.js +30 -0
- package/dist/components/slide-button/slide-button-fill.d.cts +29 -0
- package/dist/components/slide-button/slide-button-fill.d.ts +29 -0
- package/dist/components/slide-button/slide-button-icon.d.cts +10 -0
- package/dist/components/slide-button/slide-button-icon.d.ts +10 -0
- package/dist/components/slide-button/slide-button-label.d.cts +20 -0
- package/dist/components/slide-button/slide-button-label.d.ts +20 -0
- package/dist/components/slide-button/slide-button-thumb.d.cts +20 -0
- package/dist/components/slide-button/slide-button-thumb.d.ts +20 -0
- package/dist/components/slide-button/slide-button.animation.d.cts +33 -0
- package/dist/components/slide-button/slide-button.animation.d.ts +33 -0
- package/dist/components/slide-button/slide-button.context.d.cts +7 -0
- package/dist/components/slide-button/slide-button.context.d.ts +7 -0
- package/dist/components/slide-button/slide-button.d.cts +56 -0
- package/dist/components/slide-button/slide-button.d.ts +56 -0
- package/dist/components/slide-button/slide-button.recipe.d.cts +31 -0
- package/dist/components/slide-button/slide-button.recipe.d.ts +31 -0
- package/dist/components/slide-button/slide-button.type.d.cts +79 -0
- package/dist/components/slide-button/slide-button.type.d.ts +79 -0
- package/dist/components/slider/slider-thumb.d.cts +1 -1
- package/dist/components/slider/slider-thumb.d.ts +1 -1
- package/dist/components/slider/slider.recipe.d.cts +1 -1
- package/dist/components/slider/slider.recipe.d.ts +1 -1
- package/dist/components/spinner/spinner.d.cts +1 -1
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/switch/switch.style.d.cts +1 -1
- package/dist/components/switch/switch.style.d.ts +1 -1
- package/dist/components/table/index.cjs +3 -3
- package/dist/components/table/index.js +2 -2
- package/dist/components/text-area/index.cjs +4 -4
- package/dist/components/text-area/index.js +3 -3
- package/dist/components/text-area/text-area.d.cts +1 -1
- package/dist/components/text-area/text-area.d.ts +1 -1
- package/dist/components/text-field/index.cjs +3 -3
- package/dist/components/text-field/index.js +2 -2
- package/dist/components/text-field/text-field.type.d.cts +4 -4
- package/dist/components/text-field/text-field.type.d.ts +4 -4
- package/dist/components/time-picker/index.cjs +4 -4
- package/dist/components/time-picker/index.js +3 -3
- package/dist/components/toast/index.cjs +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/toast.animation.d.cts +2 -2
- package/dist/components/toast/toast.animation.d.ts +2 -2
- package/dist/components/toast/toast.utils.d.cts +1 -1
- package/dist/components/toast/toast.utils.d.ts +1 -1
- package/dist/components/typography/typography.type.d.cts +1 -1
- package/dist/components/typography/typography.type.d.ts +1 -1
- package/dist/hooks/use-rotation.d.cts +1 -1
- package/dist/hooks/use-rotation.d.ts +1 -1
- package/dist/index.cjs +66 -42
- package/dist/index.js +74 -50
- package/dist/system/anchored/indicator-spring.d.cts +2 -2
- package/dist/system/anchored/indicator-spring.d.ts +2 -2
- package/dist/theme/derive-colors.d.cts +1 -1
- package/dist/theme/derive-colors.d.ts +1 -1
- package/dist/theme/index.cjs +2 -2
- package/dist/theme/index.js +1 -1
- package/package.json +11 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { collectItemLabels, useLabelRegistry } from "./chunk-4WCBZFAK.js";
|
|
2
2
|
import { useAnchoredPosition } from "./chunk-Z6FRP4EV.js";
|
|
3
|
-
import {
|
|
3
|
+
import { textFieldRecipe } from "./chunk-NTVPLDJC.js";
|
|
4
|
+
import { selectRecipe } from "./chunk-OUNTRW6E.js";
|
|
4
5
|
import { Portal } from "./chunk-2PMXMKS5.js";
|
|
5
6
|
import { INDICATOR_ROTATION, INDICATOR_SPRING, anchoredEntering, anchoredExiting, overlayEntering, overlayExiting } from "./chunk-64MXEVT3.js";
|
|
6
7
|
import { useMergedRef } from "./chunk-NCTOTTVW.js";
|
|
@@ -9,7 +10,7 @@ import { PressableFeedback } from "./chunk-KQW25RCC.js";
|
|
|
9
10
|
import { usePressState } from "./chunk-423RQBOX.js";
|
|
10
11
|
import { ChevronDownIcon, Icon, IconContext } from "./chunk-JN6IRT2M.js";
|
|
11
12
|
import { childrenToString } from "./chunk-WFZDAXDI.js";
|
|
12
|
-
import { createSlotContext } from "./chunk-TTZOIXKE.js";
|
|
13
|
+
import { Slot, createSlotContext } from "./chunk-TTZOIXKE.js";
|
|
13
14
|
import { useXAUITheme } from "./chunk-Z6JBWRPL.js";
|
|
14
15
|
import { useStyleProps } from "./chunk-M63GFNKV.js";
|
|
15
16
|
|
|
@@ -210,14 +211,85 @@ var SelectContent = forwardRef3(function SelectContent2({
|
|
|
210
211
|
});
|
|
211
212
|
SelectContent.displayName = "XAUI.Select.Content";
|
|
212
213
|
|
|
214
|
+
// src/components/select/select-description.tsx
|
|
215
|
+
import { forwardRef as forwardRef4 } from "react";
|
|
216
|
+
import { Text as Text2 } from "react-native";
|
|
217
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
218
|
+
var SelectDescription = forwardRef4(function SelectDescription2({
|
|
219
|
+
children,
|
|
220
|
+
style,
|
|
221
|
+
nativeID,
|
|
222
|
+
...props
|
|
223
|
+
}, ref) {
|
|
224
|
+
const {
|
|
225
|
+
descriptionStyle,
|
|
226
|
+
descriptionId
|
|
227
|
+
} = useSelect();
|
|
228
|
+
const [styleProps, rest] = useStyleProps(props);
|
|
229
|
+
return /* @__PURE__ */jsx4(Text2, {
|
|
230
|
+
ref,
|
|
231
|
+
nativeID: nativeID ?? descriptionId,
|
|
232
|
+
style: [descriptionStyle, styleProps, style],
|
|
233
|
+
...rest,
|
|
234
|
+
children
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
SelectDescription.displayName = "XAUI.Select.Description";
|
|
238
|
+
|
|
239
|
+
// src/components/select/select-error.tsx
|
|
240
|
+
import { forwardRef as forwardRef5 } from "react";
|
|
241
|
+
import { Text as Text3 } from "react-native";
|
|
242
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
243
|
+
var SelectError = forwardRef5(function SelectError2({
|
|
244
|
+
children,
|
|
245
|
+
style,
|
|
246
|
+
...props
|
|
247
|
+
}, ref) {
|
|
248
|
+
const {
|
|
249
|
+
errorStyle
|
|
250
|
+
} = useSelect();
|
|
251
|
+
const [styleProps, rest] = useStyleProps(props);
|
|
252
|
+
return /* @__PURE__ */jsx5(Text3, {
|
|
253
|
+
ref,
|
|
254
|
+
style: [errorStyle, styleProps, style],
|
|
255
|
+
...rest,
|
|
256
|
+
children
|
|
257
|
+
});
|
|
258
|
+
});
|
|
259
|
+
SelectError.displayName = "XAUI.Select.Error";
|
|
260
|
+
|
|
261
|
+
// src/components/select/select-group-label.tsx
|
|
262
|
+
import { forwardRef as forwardRef6 } from "react";
|
|
263
|
+
import { Text as Text4 } from "react-native";
|
|
264
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
265
|
+
var SelectGroupLabel = forwardRef6(function SelectGroupLabel2({
|
|
266
|
+
children,
|
|
267
|
+
accessibilityRole = "header",
|
|
268
|
+
style,
|
|
269
|
+
...props
|
|
270
|
+
}, ref) {
|
|
271
|
+
const {
|
|
272
|
+
groupLabelStyle
|
|
273
|
+
} = useSelect();
|
|
274
|
+
const [styleProps, rest] = useStyleProps(props);
|
|
275
|
+
return /* @__PURE__ */jsx6(Text4, {
|
|
276
|
+
ref,
|
|
277
|
+
accessibilityRole,
|
|
278
|
+
...rest,
|
|
279
|
+
style: [groupLabelStyle, styleProps, style],
|
|
280
|
+
children
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
SelectGroupLabel.displayName = "XAUI.Select.GroupLabel";
|
|
284
|
+
|
|
213
285
|
// src/components/select/select-indicator.tsx
|
|
214
286
|
import { useEffect as useEffect3 } from "react";
|
|
215
287
|
import Animated2, { interpolate, useAnimatedStyle, useSharedValue, withSpring } from "react-native-reanimated";
|
|
216
|
-
import { jsx as
|
|
217
|
-
const
|
|
218
|
-
code: "function
|
|
219
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
220
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
288
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
289
|
+
const _worklet_5045454406356_init_data = {
|
|
290
|
+
code: "function chunkWIGDDZHOJs1(){const{interpolate,progress,INDICATOR_ROTATION}=this.__closure;return{transform:[{rotate:interpolate(progress.get(),[0,1],[INDICATOR_ROTATION[0],INDICATOR_ROTATION[1]])+\"deg\"}]};}",
|
|
291
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-WIGDDZHO.js",
|
|
292
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkWIGDDZHOJs1\",\"interpolate\",\"progress\",\"INDICATOR_ROTATION\",\"__closure\",\"transform\",\"rotate\",\"get\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-WIGDDZHO.js\"],\"mappings\":\"AA8ToC,SAAAA,gBAAMA,CAAA,QAAAC,WAAA,CAAAC,QAAA,CAAAC,kBAAA,OAAAC,SAAA,CAEtC,MAAO,CACLC,SAAS,CAAE,CACT,CACEC,MAAM,CAAKL,WAAW,CAACC,QAAQ,CAACK,GAAG,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACJ,kBAAkB,CAAC,CAAC,CAAC,CAAEA,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,MAChG,CAAC,CAEL,CAAC,CACH\",\"ignoreList\":[]}"
|
|
221
293
|
};
|
|
222
294
|
function SelectIndicator({
|
|
223
295
|
as = ChevronDownIcon,
|
|
@@ -231,39 +303,39 @@ function SelectIndicator({
|
|
|
231
303
|
useEffect3(() => {
|
|
232
304
|
progress.set(withSpring(isOpen ? 1 : 0, INDICATOR_SPRING));
|
|
233
305
|
}, [isOpen, progress]);
|
|
234
|
-
const rotation = useAnimatedStyle(function
|
|
235
|
-
|
|
306
|
+
const rotation = useAnimatedStyle(function chunkWIGDDZHOJs1Factory({
|
|
307
|
+
_worklet_5045454406356_init_data,
|
|
236
308
|
interpolate,
|
|
237
309
|
progress,
|
|
238
310
|
INDICATOR_ROTATION
|
|
239
311
|
}) {
|
|
240
312
|
const _e = [new global.Error(), -4, -27];
|
|
241
|
-
const
|
|
313
|
+
const chunkWIGDDZHOJs1 = function () {
|
|
242
314
|
return {
|
|
243
315
|
transform: [{
|
|
244
316
|
rotate: `${interpolate(progress.get(), [0, 1], [INDICATOR_ROTATION[0], INDICATOR_ROTATION[1]])}deg`
|
|
245
317
|
}]
|
|
246
318
|
};
|
|
247
319
|
};
|
|
248
|
-
|
|
320
|
+
chunkWIGDDZHOJs1.__closure = {
|
|
249
321
|
interpolate,
|
|
250
322
|
progress,
|
|
251
323
|
INDICATOR_ROTATION
|
|
252
324
|
};
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
return
|
|
325
|
+
chunkWIGDDZHOJs1.__workletHash = 5045454406356;
|
|
326
|
+
chunkWIGDDZHOJs1.__pluginVersion = "0.7.4";
|
|
327
|
+
chunkWIGDDZHOJs1.__initData = _worklet_5045454406356_init_data;
|
|
328
|
+
chunkWIGDDZHOJs1.__stackDetails = _e;
|
|
329
|
+
return chunkWIGDDZHOJs1;
|
|
258
330
|
}({
|
|
259
|
-
|
|
331
|
+
_worklet_5045454406356_init_data,
|
|
260
332
|
interpolate,
|
|
261
333
|
progress,
|
|
262
334
|
INDICATOR_ROTATION
|
|
263
335
|
}), [progress]);
|
|
264
|
-
return /* @__PURE__ */
|
|
336
|
+
return /* @__PURE__ */jsx7(Animated2.View, {
|
|
265
337
|
style: [indicatorStyle, rotation],
|
|
266
|
-
children: /* @__PURE__ */
|
|
338
|
+
children: /* @__PURE__ */jsx7(Icon, {
|
|
267
339
|
as,
|
|
268
340
|
...props
|
|
269
341
|
})
|
|
@@ -272,10 +344,10 @@ function SelectIndicator({
|
|
|
272
344
|
SelectIndicator.displayName = "XAUI.Select.Indicator";
|
|
273
345
|
|
|
274
346
|
// src/components/select/select-item-description.tsx
|
|
275
|
-
import { forwardRef as
|
|
276
|
-
import { Text as
|
|
277
|
-
import { jsx as
|
|
278
|
-
var SelectItemDescription =
|
|
347
|
+
import { forwardRef as forwardRef7 } from "react";
|
|
348
|
+
import { Text as Text5 } from "react-native";
|
|
349
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
350
|
+
var SelectItemDescription = forwardRef7(function SelectItemDescription2({
|
|
279
351
|
children,
|
|
280
352
|
style,
|
|
281
353
|
...props
|
|
@@ -284,7 +356,7 @@ var SelectItemDescription = forwardRef4(function SelectItemDescription2({
|
|
|
284
356
|
itemDescriptionStyle
|
|
285
357
|
} = useSelect();
|
|
286
358
|
const [styleProps, rest] = useStyleProps(props);
|
|
287
|
-
return /* @__PURE__ */
|
|
359
|
+
return /* @__PURE__ */jsx8(Text5, {
|
|
288
360
|
ref,
|
|
289
361
|
...rest,
|
|
290
362
|
style: [itemDescriptionStyle, styleProps, style],
|
|
@@ -298,17 +370,17 @@ import { View } from "react-native";
|
|
|
298
370
|
|
|
299
371
|
// src/components/select/check-icon.tsx
|
|
300
372
|
import { Path, Svg } from "react-native-svg";
|
|
301
|
-
import { jsx as
|
|
373
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
302
374
|
function CheckIcon({
|
|
303
375
|
size = 20,
|
|
304
376
|
color = "currentColor"
|
|
305
377
|
}) {
|
|
306
|
-
return /* @__PURE__ */
|
|
378
|
+
return /* @__PURE__ */jsx9(Svg, {
|
|
307
379
|
width: size,
|
|
308
380
|
height: size,
|
|
309
381
|
viewBox: "0 0 24 24",
|
|
310
382
|
fill: "none",
|
|
311
|
-
children: /* @__PURE__ */
|
|
383
|
+
children: /* @__PURE__ */jsx9(Path, {
|
|
312
384
|
d: "m20 6-11 11-5-5",
|
|
313
385
|
stroke: color,
|
|
314
386
|
strokeWidth: 2,
|
|
@@ -320,7 +392,7 @@ function CheckIcon({
|
|
|
320
392
|
CheckIcon.displayName = "XAUI.Select.CheckIcon";
|
|
321
393
|
|
|
322
394
|
// src/components/select/select-item-indicator.tsx
|
|
323
|
-
import { jsx as
|
|
395
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
324
396
|
function SelectItemIndicator({
|
|
325
397
|
as = CheckIcon,
|
|
326
398
|
color,
|
|
@@ -333,9 +405,9 @@ function SelectItemIndicator({
|
|
|
333
405
|
const {
|
|
334
406
|
isSelected
|
|
335
407
|
} = useSelectItem();
|
|
336
|
-
return /* @__PURE__ */
|
|
408
|
+
return /* @__PURE__ */jsx10(View, {
|
|
337
409
|
style: itemIndicatorStyle,
|
|
338
|
-
children: isSelected ? /* @__PURE__ */
|
|
410
|
+
children: isSelected ? /* @__PURE__ */jsx10(Icon, {
|
|
339
411
|
as,
|
|
340
412
|
color: color ?? checkColor,
|
|
341
413
|
...props
|
|
@@ -345,36 +417,37 @@ function SelectItemIndicator({
|
|
|
345
417
|
SelectItemIndicator.displayName = "XAUI.Select.ItemIndicator";
|
|
346
418
|
|
|
347
419
|
// src/components/select/select-label.tsx
|
|
348
|
-
import { forwardRef as
|
|
349
|
-
import { Text as
|
|
350
|
-
import { jsx as
|
|
351
|
-
var SelectLabel =
|
|
420
|
+
import { forwardRef as forwardRef8 } from "react";
|
|
421
|
+
import { Text as Text6 } from "react-native";
|
|
422
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
423
|
+
var SelectLabel = forwardRef8(function SelectLabel2({
|
|
352
424
|
children,
|
|
353
|
-
accessibilityRole = "header",
|
|
354
425
|
style,
|
|
426
|
+
nativeID,
|
|
355
427
|
...props
|
|
356
428
|
}, ref) {
|
|
357
429
|
const {
|
|
358
|
-
labelStyle
|
|
430
|
+
labelStyle,
|
|
431
|
+
labelId
|
|
359
432
|
} = useSelect();
|
|
360
433
|
const [styleProps, rest] = useStyleProps(props);
|
|
361
|
-
return /* @__PURE__ */
|
|
434
|
+
return /* @__PURE__ */jsx11(Text6, {
|
|
362
435
|
ref,
|
|
363
|
-
|
|
364
|
-
...rest,
|
|
436
|
+
nativeID: nativeID ?? labelId,
|
|
365
437
|
style: [labelStyle, styleProps, style],
|
|
438
|
+
...rest,
|
|
366
439
|
children
|
|
367
440
|
});
|
|
368
441
|
});
|
|
369
442
|
SelectLabel.displayName = "XAUI.Select.Label";
|
|
370
443
|
|
|
371
444
|
// src/components/select/select-overlay.tsx
|
|
372
|
-
import { forwardRef as
|
|
445
|
+
import { forwardRef as forwardRef9 } from "react";
|
|
373
446
|
import { Pressable } from "react-native";
|
|
374
447
|
import Animated3 from "react-native-reanimated";
|
|
375
|
-
import { jsx as
|
|
448
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
376
449
|
var AnimatedPressable = Animated3.createAnimatedComponent(Pressable);
|
|
377
|
-
var SelectOverlay =
|
|
450
|
+
var SelectOverlay = forwardRef9(function SelectOverlay2({
|
|
378
451
|
children,
|
|
379
452
|
isDismissable = true,
|
|
380
453
|
style,
|
|
@@ -388,10 +461,10 @@ var SelectOverlay = forwardRef6(function SelectOverlay2({
|
|
|
388
461
|
} = context;
|
|
389
462
|
const [styleProps, rest] = useStyleProps(props);
|
|
390
463
|
if (!isOpen) return null;
|
|
391
|
-
return /* @__PURE__ */
|
|
392
|
-
children: /* @__PURE__ */
|
|
464
|
+
return /* @__PURE__ */jsx12(Portal, {
|
|
465
|
+
children: /* @__PURE__ */jsx12(SelectProvider, {
|
|
393
466
|
value: context,
|
|
394
|
-
children: /* @__PURE__ */
|
|
467
|
+
children: /* @__PURE__ */jsx12(AnimatedPressable, {
|
|
395
468
|
ref,
|
|
396
469
|
entering: overlayEntering,
|
|
397
470
|
exiting: overlayExiting,
|
|
@@ -408,9 +481,9 @@ var SelectOverlay = forwardRef6(function SelectOverlay2({
|
|
|
408
481
|
SelectOverlay.displayName = "XAUI.Select.Overlay";
|
|
409
482
|
|
|
410
483
|
// src/components/select/select-trigger.tsx
|
|
411
|
-
import { forwardRef as
|
|
412
|
-
import { jsx as
|
|
413
|
-
var SelectTrigger =
|
|
484
|
+
import { forwardRef as forwardRef10, useCallback as useCallback2, useEffect as useEffect4, useRef } from "react";
|
|
485
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
486
|
+
var SelectTrigger = forwardRef10(function SelectTrigger2({
|
|
414
487
|
children,
|
|
415
488
|
asChild = false,
|
|
416
489
|
accessibilityRole = "button",
|
|
@@ -430,7 +503,9 @@ var SelectTrigger = forwardRef7(function SelectTrigger2({
|
|
|
430
503
|
isDisabled,
|
|
431
504
|
isInvalid,
|
|
432
505
|
toggle,
|
|
433
|
-
setAnchor
|
|
506
|
+
setAnchor,
|
|
507
|
+
labelId,
|
|
508
|
+
descriptionId
|
|
434
509
|
} = useSelect();
|
|
435
510
|
const [styleProps, rest] = useStyleProps(props);
|
|
436
511
|
const [isPressed, press] = usePressState({
|
|
@@ -461,9 +536,9 @@ var SelectTrigger = forwardRef7(function SelectTrigger2({
|
|
|
461
536
|
measure();
|
|
462
537
|
toggle();
|
|
463
538
|
}, [measure, onPress, toggle]);
|
|
464
|
-
return /* @__PURE__ */
|
|
539
|
+
return /* @__PURE__ */jsx13(IconContext.Provider, {
|
|
465
540
|
value: glyph,
|
|
466
|
-
children: /* @__PURE__ */
|
|
541
|
+
children: /* @__PURE__ */jsx13(PressableFeedback, {
|
|
467
542
|
ref: refs,
|
|
468
543
|
isPressed,
|
|
469
544
|
isDisabled,
|
|
@@ -475,6 +550,8 @@ var SelectTrigger = forwardRef7(function SelectTrigger2({
|
|
|
475
550
|
...accessibilityState
|
|
476
551
|
},
|
|
477
552
|
"aria-invalid": isInvalid || void 0,
|
|
553
|
+
"aria-labelledby": labelId,
|
|
554
|
+
"aria-describedby": descriptionId,
|
|
478
555
|
...rest,
|
|
479
556
|
onLayout: handleLayout,
|
|
480
557
|
style: [triggerStyle, isPressed && triggerPressedStyle, styleProps, typeof style === "function" ? style({
|
|
@@ -490,10 +567,10 @@ var SelectTrigger = forwardRef7(function SelectTrigger2({
|
|
|
490
567
|
SelectTrigger.displayName = "XAUI.Select.Trigger";
|
|
491
568
|
|
|
492
569
|
// src/components/select/select-value.tsx
|
|
493
|
-
import { forwardRef as
|
|
494
|
-
import { Text as
|
|
495
|
-
import { jsx as
|
|
496
|
-
var SelectValue =
|
|
570
|
+
import { forwardRef as forwardRef11 } from "react";
|
|
571
|
+
import { Text as Text7 } from "react-native";
|
|
572
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
573
|
+
var SelectValue = forwardRef11(function SelectValue2({
|
|
497
574
|
placeholder,
|
|
498
575
|
children,
|
|
499
576
|
numberOfLines = 1,
|
|
@@ -509,7 +586,7 @@ var SelectValue = forwardRef8(function SelectValue2({
|
|
|
509
586
|
const [styleProps, rest] = useStyleProps(props);
|
|
510
587
|
const label = children ?? (value !== void 0 ? labelFor(value) : void 0);
|
|
511
588
|
const isEmpty = label === void 0 || label === "";
|
|
512
|
-
return /* @__PURE__ */
|
|
589
|
+
return /* @__PURE__ */jsx14(Text7, {
|
|
513
590
|
ref,
|
|
514
591
|
numberOfLines,
|
|
515
592
|
...rest,
|
|
@@ -520,10 +597,10 @@ var SelectValue = forwardRef8(function SelectValue2({
|
|
|
520
597
|
SelectValue.displayName = "XAUI.Select.Value";
|
|
521
598
|
|
|
522
599
|
// src/components/select/select.tsx
|
|
523
|
-
import { useCallback as useCallback3, useMemo as useMemo2, useState } from "react";
|
|
524
|
-
import { StyleSheet } from "react-native";
|
|
525
|
-
import { jsx as
|
|
526
|
-
|
|
600
|
+
import { forwardRef as forwardRef12, useCallback as useCallback3, useId, useMemo as useMemo2, useState } from "react";
|
|
601
|
+
import { StyleSheet, View as View2 } from "react-native";
|
|
602
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
603
|
+
var Select = forwardRef12(function Select2({
|
|
527
604
|
children,
|
|
528
605
|
variant,
|
|
529
606
|
size,
|
|
@@ -536,14 +613,21 @@ function Select({
|
|
|
536
613
|
defaultOpen = false,
|
|
537
614
|
onOpenChange,
|
|
538
615
|
isDisabled = false,
|
|
539
|
-
isInvalid = false
|
|
540
|
-
|
|
616
|
+
isInvalid = false,
|
|
617
|
+
asChild = false,
|
|
618
|
+
style,
|
|
619
|
+
...props
|
|
620
|
+
}, ref) {
|
|
541
621
|
const theme = useXAUITheme();
|
|
622
|
+
const [styleProps, rest] = useStyleProps(props);
|
|
542
623
|
const {
|
|
543
624
|
labelFor,
|
|
544
625
|
registerLabel
|
|
545
626
|
} = useLabelRegistry();
|
|
546
627
|
const [anchor, setAnchor] = useState(null);
|
|
628
|
+
const id = useId();
|
|
629
|
+
const labelId = `${id}-label`;
|
|
630
|
+
const descriptionId = `${id}-description`;
|
|
547
631
|
const [value, setValue] = useControllableState({
|
|
548
632
|
value: controlledValue,
|
|
549
633
|
defaultValue,
|
|
@@ -563,10 +647,7 @@ function Select({
|
|
|
563
647
|
};
|
|
564
648
|
const styles = selectRecipe.resolve({
|
|
565
649
|
theme,
|
|
566
|
-
selection
|
|
567
|
-
states: {
|
|
568
|
-
disabled: isDisabled
|
|
569
|
-
}
|
|
650
|
+
selection
|
|
570
651
|
});
|
|
571
652
|
const pressed = selectRecipe.resolve({
|
|
572
653
|
theme,
|
|
@@ -580,6 +661,16 @@ function Select({
|
|
|
580
661
|
color,
|
|
581
662
|
selection
|
|
582
663
|
}) : void 0;
|
|
664
|
+
const labelled = textFieldRecipe.resolve({
|
|
665
|
+
theme,
|
|
666
|
+
selection: {
|
|
667
|
+
size,
|
|
668
|
+
isInvalid: isInvalid ? "true" : void 0
|
|
669
|
+
},
|
|
670
|
+
states: {
|
|
671
|
+
disabled: isDisabled
|
|
672
|
+
}
|
|
673
|
+
});
|
|
583
674
|
const open = useCallback3(() => setOpen(true), [setOpen]);
|
|
584
675
|
const close = useCallback3(() => setOpen(false), [setOpen]);
|
|
585
676
|
const toggle = useCallback3(() => setOpen(!isOpen), [isOpen, setOpen]);
|
|
@@ -602,7 +693,10 @@ function Select({
|
|
|
602
693
|
indicatorStyle: styles.indicator,
|
|
603
694
|
overlayStyle: styles.overlay,
|
|
604
695
|
contentStyle: styles.content,
|
|
605
|
-
|
|
696
|
+
groupLabelStyle: styles.groupLabel,
|
|
697
|
+
labelStyle: labelled.label,
|
|
698
|
+
descriptionStyle: labelled.description,
|
|
699
|
+
errorStyle: labelled.error,
|
|
606
700
|
itemStyle: styles.item,
|
|
607
701
|
itemPressedStyle: pressed.item,
|
|
608
702
|
itemLabelStyle: styles.itemLabel,
|
|
@@ -628,27 +722,47 @@ function Select({
|
|
|
628
722
|
anchor,
|
|
629
723
|
setAnchor,
|
|
630
724
|
labelFor,
|
|
631
|
-
registerLabel
|
|
725
|
+
registerLabel,
|
|
726
|
+
labelId,
|
|
727
|
+
descriptionId
|
|
632
728
|
};
|
|
633
|
-
}, [styles, pressed, tint, value, isOpen, isDisabled, isInvalid, open, close, toggle, select, anchor, labelFor, registerLabel]);
|
|
634
|
-
|
|
635
|
-
|
|
729
|
+
}, [styles, pressed, tint, labelled, labelId, descriptionId, value, isOpen, isDisabled, isInvalid, open, close, toggle, select, anchor, labelFor, registerLabel]);
|
|
730
|
+
const columnStyle = [labelled.root, styleProps, style];
|
|
731
|
+
const column = asChild ?
|
|
732
|
+
// R12 — the caller's element is the column.
|
|
733
|
+
/* @__PURE__ */
|
|
734
|
+
jsx15(Slot, {
|
|
735
|
+
ref,
|
|
736
|
+
...rest,
|
|
737
|
+
style: columnStyle,
|
|
738
|
+
children
|
|
739
|
+
}) : /* @__PURE__ */jsx15(View2, {
|
|
740
|
+
ref,
|
|
741
|
+
...rest,
|
|
742
|
+
style: columnStyle,
|
|
636
743
|
children
|
|
637
744
|
});
|
|
638
|
-
|
|
745
|
+
return /* @__PURE__ */jsx15(SelectProvider, {
|
|
746
|
+
value: context,
|
|
747
|
+
children: column
|
|
748
|
+
});
|
|
749
|
+
});
|
|
639
750
|
Select.displayName = "XAUI.Select.Root";
|
|
640
751
|
|
|
641
752
|
// src/components/select/index.ts
|
|
642
|
-
var
|
|
753
|
+
var Select3 = Object.assign(Select, {
|
|
754
|
+
Label: SelectLabel,
|
|
643
755
|
Trigger: SelectTrigger,
|
|
644
756
|
Value: SelectValue,
|
|
645
757
|
Indicator: SelectIndicator,
|
|
646
758
|
Overlay: SelectOverlay,
|
|
647
759
|
Content: SelectContent,
|
|
648
|
-
|
|
760
|
+
GroupLabel: SelectGroupLabel,
|
|
649
761
|
Item: SelectItem,
|
|
650
762
|
ItemLabel: SelectItemLabel,
|
|
651
763
|
ItemDescription: SelectItemDescription,
|
|
652
|
-
ItemIndicator: SelectItemIndicator
|
|
764
|
+
ItemIndicator: SelectItemIndicator,
|
|
765
|
+
Description: SelectDescription,
|
|
766
|
+
Error: SelectError
|
|
653
767
|
});
|
|
654
|
-
export { useSelect, useSelectItem, SelectItemLabel, SelectItem, SelectContent, SelectIndicator, SelectItemDescription, CheckIcon, SelectItemIndicator, SelectLabel, SelectOverlay, SelectTrigger, SelectValue, Select, Select2 };
|
|
768
|
+
export { useSelect, useSelectItem, SelectItemLabel, SelectItem, SelectContent, SelectDescription, SelectError, SelectGroupLabel, SelectIndicator, SelectItemDescription, CheckIcon, SelectItemIndicator, SelectLabel, SelectOverlay, SelectTrigger, SelectValue, Select, Select3 as Select2 };
|
|
@@ -37,8 +37,8 @@ function _optionalChain(ops) {
|
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
39
|
var _chunkLCGJA37Lcjs = require('./chunk-LCGJA37L.cjs');
|
|
40
|
-
var
|
|
41
|
-
var
|
|
40
|
+
var _chunk3TBT6ORWcjs = require('./chunk-3TBT6ORW.cjs');
|
|
41
|
+
var _chunkL4B6Z45Qcjs = require('./chunk-L4B6Z45Q.cjs');
|
|
42
42
|
var _chunkEKS3W46Mcjs = require('./chunk-EKS3W46M.cjs');
|
|
43
43
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
44
44
|
var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
|
|
@@ -102,21 +102,21 @@ function DateRangePicker({
|
|
|
102
102
|
isOpen: isOpen ? "true" : void 0,
|
|
103
103
|
isInvalid: isInvalid ? "true" : void 0
|
|
104
104
|
};
|
|
105
|
-
const field =
|
|
105
|
+
const field = _chunkL4B6Z45Qcjs.selectRecipe.resolve({
|
|
106
106
|
theme,
|
|
107
107
|
selection,
|
|
108
108
|
states: {
|
|
109
109
|
disabled: isDisabled
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
|
-
const fieldPressed =
|
|
112
|
+
const fieldPressed = _chunkL4B6Z45Qcjs.selectRecipe.resolve({
|
|
113
113
|
theme,
|
|
114
114
|
selection,
|
|
115
115
|
states: {
|
|
116
116
|
pressed: true
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
const tint = color ?
|
|
119
|
+
const tint = color ? _chunkL4B6Z45Qcjs.selectRecipe.tint({
|
|
120
120
|
theme,
|
|
121
121
|
color,
|
|
122
122
|
selection
|
|
@@ -185,15 +185,15 @@ function DateRangePickerSheet({
|
|
|
185
185
|
...props
|
|
186
186
|
}) {
|
|
187
187
|
const picker = useDateRangePicker();
|
|
188
|
-
return /* @__PURE__ */_jsxruntime.jsxs.call(void 0,
|
|
188
|
+
return /* @__PURE__ */_jsxruntime.jsxs.call(void 0, _chunk3TBT6ORWcjs.BottomSheet2, {
|
|
189
189
|
isOpen: picker.isOpen,
|
|
190
190
|
onOpenChange: picker.setOpen,
|
|
191
191
|
...props,
|
|
192
|
-
children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0,
|
|
192
|
+
children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunk3TBT6ORWcjs.BottomSheet2.Overlay, {}), /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunk3TBT6ORWcjs.BottomSheet2.Content, {
|
|
193
193
|
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, DateRangePickerProvider, {
|
|
194
194
|
value: picker,
|
|
195
195
|
children: _nullishCoalesce(children, () => (/* @__PURE__ */_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, {
|
|
196
|
-
children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0,
|
|
196
|
+
children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunk3TBT6ORWcjs.BottomSheet2.Handle, {}), /* @__PURE__ */_jsxruntime.jsx.call(void 0, DateRangePickerCalendar, {
|
|
197
197
|
previousLabel,
|
|
198
198
|
nextLabel
|
|
199
199
|
})]
|
|
@@ -239,10 +239,10 @@ DateRangePickerCalendar.displayName = "XAUI.DateRangePicker.Calendar";
|
|
|
239
239
|
|
|
240
240
|
var _reactnativereanimated = require('react-native-reanimated');
|
|
241
241
|
var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
|
|
242
|
-
const
|
|
243
|
-
code: "function
|
|
244
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
245
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
242
|
+
const _worklet_14155000036235_init_data = {
|
|
243
|
+
code: "function chunkWSDDUVF6Cjs1(){const{_reactnativereanimated,progress,_chunkEKS3W46Mcjs}=this.__closure;return{transform:[{rotate:_reactnativereanimated.interpolate.call(void 0,progress.get(),[0,1],[_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0],_chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])+\"deg\"}]};}",
|
|
244
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-WSDDUVF6.cjs",
|
|
245
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkWSDDUVF6Cjs1\",\"_reactnativereanimated\",\"progress\",\"_chunkEKS3W46Mcjs\",\"__closure\",\"transform\",\"rotate\",\"interpolate\",\"call\",\"get\",\"INDICATOR_ROTATION\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-WSDDUVF6.cjs\"],\"mappings\":\"AA6PwE,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,QAAA,CAAAC,iBAAA,OAAAC,SAAA,CAE1E,MAAO,CACLC,SAAS,CAAE,CACT,CACEC,MAAM,CAAKL,sBAAsB,CAACM,WAAW,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEN,QAAQ,CAACO,GAAG,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACN,iBAAiB,CAACO,kBAAkB,CAAC,CAAC,CAAC,CAAEP,iBAAiB,CAACO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,MACxK,CAAC,CAEL,CAAC,CACH\",\"ignoreList\":[]}"
|
|
246
246
|
};
|
|
247
247
|
function DateRangePickerIndicator(props) {
|
|
248
248
|
const {
|
|
@@ -256,32 +256,32 @@ function DateRangePickerIndicator(props) {
|
|
|
256
256
|
_react.useEffect.call(void 0, () => {
|
|
257
257
|
progress.set(_reactnativereanimated.withSpring.call(void 0, isOpen ? 1 : 0, _chunkEKS3W46Mcjs.INDICATOR_SPRING));
|
|
258
258
|
}, [isOpen, progress]);
|
|
259
|
-
const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
260
|
-
|
|
259
|
+
const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkWSDDUVF6Cjs1Factory({
|
|
260
|
+
_worklet_14155000036235_init_data,
|
|
261
261
|
_reactnativereanimated,
|
|
262
262
|
progress,
|
|
263
263
|
_chunkEKS3W46Mcjs
|
|
264
264
|
}) {
|
|
265
265
|
const _e = [new global.Error(), -4, -27];
|
|
266
|
-
const
|
|
266
|
+
const chunkWSDDUVF6Cjs1 = function () {
|
|
267
267
|
return {
|
|
268
268
|
transform: [{
|
|
269
269
|
rotate: `${_reactnativereanimated.interpolate.call(void 0, progress.get(), [0, 1], [_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0], _chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])}deg`
|
|
270
270
|
}]
|
|
271
271
|
};
|
|
272
272
|
};
|
|
273
|
-
|
|
273
|
+
chunkWSDDUVF6Cjs1.__closure = {
|
|
274
274
|
_reactnativereanimated,
|
|
275
275
|
progress,
|
|
276
276
|
_chunkEKS3W46Mcjs
|
|
277
277
|
};
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
return
|
|
278
|
+
chunkWSDDUVF6Cjs1.__workletHash = 14155000036235;
|
|
279
|
+
chunkWSDDUVF6Cjs1.__pluginVersion = "0.7.4";
|
|
280
|
+
chunkWSDDUVF6Cjs1.__initData = _worklet_14155000036235_init_data;
|
|
281
|
+
chunkWSDDUVF6Cjs1.__stackDetails = _e;
|
|
282
|
+
return chunkWSDDUVF6Cjs1;
|
|
283
283
|
}({
|
|
284
|
-
|
|
284
|
+
_worklet_14155000036235_init_data,
|
|
285
285
|
_reactnativereanimated,
|
|
286
286
|
progress,
|
|
287
287
|
_chunkEKS3W46Mcjs
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunkNRU5APUEcjs = require('./chunk-NRU5APUE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2IOL3VDPcjs = require('./chunk-2IOL3VDP.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkBKY5YQ7Wcjs = require('./chunk-BKY5YQ7W.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
|
|
@@ -140,9 +140,9 @@ var DummyFieldField = _react.forwardRef.call(void 0,
|
|
|
140
140
|
descriptionId,
|
|
141
141
|
onPress: rootOnPress
|
|
142
142
|
} = useDummyField();
|
|
143
|
-
const group =
|
|
143
|
+
const group = _chunkNRU5APUEcjs.useOptionalFieldGroup.call(void 0, );
|
|
144
144
|
const padding = _react.useMemo.call(void 0,
|
|
145
|
-
() =>
|
|
145
|
+
() => _chunkNRU5APUEcjs.decoratorPadding.call(void 0, _nullishCoalesce(_optionalChain([group, 'optionalAccess', _ => _.prefixWidth]), () => ( 0)), _nullishCoalesce(_optionalChain([group, 'optionalAccess', _2 => _2.suffixWidth]), () => ( 0))),
|
|
146
146
|
[_optionalChain([group, 'optionalAccess', _3 => _3.prefixWidth]), _optionalChain([group, 'optionalAccess', _4 => _4.suffixWidth])]
|
|
147
147
|
);
|
|
148
148
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
@@ -422,8 +422,8 @@ var dummyFieldRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
422
422
|
fontFamily: theme.fontFamilies.body,
|
|
423
423
|
color: theme.colors.danger
|
|
424
424
|
},
|
|
425
|
-
prefix: { ...
|
|
426
|
-
suffix: { ...
|
|
425
|
+
prefix: { ..._chunkBKY5YQ7Wcjs.decoratorBox.call(void 0, theme), start: 0 },
|
|
426
|
+
suffix: { ..._chunkBKY5YQ7Wcjs.decoratorBox.call(void 0, theme), end: 0 },
|
|
427
427
|
icon: { color: theme.colors.fieldPlaceholder }
|
|
428
428
|
}),
|
|
429
429
|
variantTokens: VARIANT_TOKENS,
|
|
@@ -572,7 +572,7 @@ var DummyFieldRoot = _react.forwardRef.call(void 0, function DummyField({
|
|
|
572
572
|
}, [styles, labelId, descriptionId, isDisabled, isInvalid]);
|
|
573
573
|
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _7 => _7.root]), styleProps, style];
|
|
574
574
|
const surface = asChild ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCDRGTUYFcjs.Slot, { ref, ...rest, style: rootStyle, children }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, ...rest, style: rootStyle, children });
|
|
575
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
575
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IOL3VDPcjs.TextFieldProvider, { value: textFieldContext, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DummyFieldProvider, { value: context, children: surface }) });
|
|
576
576
|
});
|
|
577
577
|
DummyFieldRoot.displayName = "XAUI.DummyField.Root";
|
|
578
578
|
|