@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
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
DateTimePickerTrigger,
|
|
10
10
|
DateTimePickerValue,
|
|
11
11
|
useDateTimePicker
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
12
|
+
} from "../../chunk-NQDTGYHC.js";
|
|
13
|
+
import "../../chunk-FSVZXWLZ.js";
|
|
14
14
|
import "../../chunk-RAYO2TJL.js";
|
|
15
15
|
import "../../chunk-ZDJQ643D.js";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-LYWXGEED.js";
|
|
17
17
|
import "../../chunk-6NAZ2IHL.js";
|
|
18
18
|
import "../../chunk-SHFUQVLX.js";
|
|
19
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-OUNTRW6E.js";
|
|
20
20
|
import "../../chunk-2PMXMKS5.js";
|
|
21
21
|
import "../../chunk-64MXEVT3.js";
|
|
22
22
|
import "../../chunk-NCTOTTVW.js";
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkC2S6J27Ocjs = require('../../chunk-C2S6J27O.cjs');
|
|
13
13
|
require('../../chunk-WNEDQTH6.cjs');
|
|
14
14
|
require('../../chunk-WDDXU3OH.cjs');
|
|
15
15
|
require('../../chunk-EKS3W46M.cjs');
|
|
@@ -35,4 +35,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
exports.Dialog =
|
|
38
|
+
exports.Dialog = _chunkC2S6J27Ocjs.Dialog2; exports.DialogClose = _chunkC2S6J27Ocjs.DialogClose; exports.DialogContent = _chunkC2S6J27Ocjs.DialogContent; exports.DialogDescription = _chunkC2S6J27Ocjs.DialogDescription; exports.DialogOverlay = _chunkC2S6J27Ocjs.DialogOverlay; exports.DialogRoot = _chunkC2S6J27Ocjs.Dialog; exports.DialogTitle = _chunkC2S6J27Ocjs.DialogTitle; exports.DialogTrigger = _chunkC2S6J27Ocjs.DialogTrigger; exports.dialogRecipe = _chunkC2S6J27Ocjs.dialogRecipe; exports.useDialog = _chunkC2S6J27Ocjs.useDialog;
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
14
|
-
require('../../chunk-
|
|
11
|
+
var _chunkYUCK5VJOcjs = require('../../chunk-YUCK5VJO.cjs');
|
|
12
|
+
require('../../chunk-NRU5APUE.cjs');
|
|
13
|
+
require('../../chunk-2IOL3VDP.cjs');
|
|
14
|
+
require('../../chunk-BKY5YQ7W.cjs');
|
|
15
15
|
require('../../chunk-HBYT7B47.cjs');
|
|
16
16
|
require('../../chunk-7DPL3ZDS.cjs');
|
|
17
17
|
require('../../chunk-GSZDN6EZ.cjs');
|
|
@@ -33,4 +33,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
exports.DummyField =
|
|
36
|
+
exports.DummyField = _chunkYUCK5VJOcjs.DummyField; exports.DummyFieldDescription = _chunkYUCK5VJOcjs.DummyFieldDescription; exports.DummyFieldError = _chunkYUCK5VJOcjs.DummyFieldError; exports.DummyFieldField = _chunkYUCK5VJOcjs.DummyFieldField; exports.DummyFieldIndicator = _chunkYUCK5VJOcjs.DummyFieldIndicator; exports.DummyFieldLabel = _chunkYUCK5VJOcjs.DummyFieldLabel; exports.DummyFieldRoot = _chunkYUCK5VJOcjs.DummyFieldRoot; exports.DummyFieldValue = _chunkYUCK5VJOcjs.DummyFieldValue; exports.useDummyField = _chunkYUCK5VJOcjs.useDummyField;
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
DummyFieldRoot,
|
|
9
9
|
DummyFieldValue,
|
|
10
10
|
useDummyField
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-MXSIY6QQ.js";
|
|
12
|
+
import "../../chunk-MZUYTCCB.js";
|
|
13
|
+
import "../../chunk-JYV53WUN.js";
|
|
14
|
+
import "../../chunk-NTVPLDJC.js";
|
|
15
15
|
import "../../chunk-KQW25RCC.js";
|
|
16
16
|
import "../../chunk-423RQBOX.js";
|
|
17
17
|
import "../../chunk-JN6IRT2M.js";
|
|
@@ -17,7 +17,7 @@ import type { FieldGroupIconProps } from './field-group.type';
|
|
|
17
17
|
* `primary` field, where the fill is the caller's colour and the placeholder grey is no
|
|
18
18
|
* longer readable over it.
|
|
19
19
|
*
|
|
20
|
-
* It is not one of
|
|
20
|
+
* It is not one of the reference implementation's three parts: theirs colour the glyph at the call site. This is
|
|
21
21
|
* the same slot `Button`, `Chip` and `Alert` all have, and it exists so that a form does
|
|
22
22
|
* not carry a hard-coded `#888` on every field.
|
|
23
23
|
*/
|
|
@@ -17,7 +17,7 @@ import type { FieldGroupIconProps } from './field-group.type';
|
|
|
17
17
|
* `primary` field, where the fill is the caller's colour and the placeholder grey is no
|
|
18
18
|
* longer readable over it.
|
|
19
19
|
*
|
|
20
|
-
* It is not one of
|
|
20
|
+
* It is not one of the reference implementation's three parts: theirs colour the glyph at the call site. This is
|
|
21
21
|
* the same slot `Button`, `Chip` and `Alert` all have, and it exists so that a form does
|
|
22
22
|
* not carry a hard-coded `#888` on every field.
|
|
23
23
|
*/
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
11
|
+
var _chunkNRU5APUEcjs = require('../../chunk-NRU5APUE.cjs');
|
|
12
|
+
require('../../chunk-2IOL3VDP.cjs');
|
|
13
|
+
require('../../chunk-BKY5YQ7W.cjs');
|
|
14
14
|
require('../../chunk-GSZDN6EZ.cjs');
|
|
15
15
|
require('../../chunk-FHNIGHN5.cjs');
|
|
16
16
|
require('../../chunk-SL3V7R2Y.cjs');
|
|
@@ -30,4 +30,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.FieldGroup =
|
|
33
|
+
exports.FieldGroup = _chunkNRU5APUEcjs.FieldGroup; exports.FieldGroupField = _chunkNRU5APUEcjs.FieldGroupField; exports.FieldGroupIcon = _chunkNRU5APUEcjs.FieldGroupIcon; exports.FieldGroupPrefix = _chunkNRU5APUEcjs.FieldGroupPrefix; exports.FieldGroupRoot = _chunkNRU5APUEcjs.FieldGroupRoot; exports.FieldGroupSuffix = _chunkNRU5APUEcjs.FieldGroupSuffix; exports.decoratorPadding = _chunkNRU5APUEcjs.decoratorPadding; exports.useFieldGroup = _chunkNRU5APUEcjs.useFieldGroup; exports.useOptionalFieldGroup = _chunkNRU5APUEcjs.useOptionalFieldGroup;
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
decoratorPadding,
|
|
9
9
|
useFieldGroup,
|
|
10
10
|
useOptionalFieldGroup
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-MZUYTCCB.js";
|
|
12
|
+
import "../../chunk-JYV53WUN.js";
|
|
13
|
+
import "../../chunk-NTVPLDJC.js";
|
|
14
14
|
import "../../chunk-JN6IRT2M.js";
|
|
15
15
|
import "../../chunk-WFZDAXDI.js";
|
|
16
16
|
import "../../chunk-DKVXTMIJ.js";
|
|
@@ -17,7 +17,7 @@ export type InputOTPSlot = 'root' | 'group' | 'box' | 'value' | 'placeholder' |
|
|
|
17
17
|
* they go**. With no fill and no border there is nothing to count. It is the reason the
|
|
18
18
|
* `Checkbox` has no `ghost` either — a box that is not a box is not a box.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* The reference implementation splits their OTP slot the same two ways their input is split, and they reach for
|
|
21
21
|
* the `field` shadow on `primary` here explicitly — which is the same reading our `Input`
|
|
22
22
|
* takes.
|
|
23
23
|
*/
|
|
@@ -17,7 +17,7 @@ export type InputOTPSlot = 'root' | 'group' | 'box' | 'value' | 'placeholder' |
|
|
|
17
17
|
* they go**. With no fill and no border there is nothing to count. It is the reason the
|
|
18
18
|
* `Checkbox` has no `ghost` either — a box that is not a box is not a box.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* The reference implementation splits their OTP slot the same two ways their input is split, and they reach for
|
|
21
21
|
* the `field` shadow on `primary` here explicitly — which is the same reading our `Input`
|
|
22
22
|
* takes.
|
|
23
23
|
*/
|
|
@@ -2,7 +2,7 @@ import { View } from 'react-native';
|
|
|
2
2
|
/**
|
|
3
3
|
* What trails the row: a value, a switch, a chevron, a badge.
|
|
4
4
|
*
|
|
5
|
-
* **It draws nothing of its own.**
|
|
5
|
+
* **It draws nothing of its own.** The reference implementation's puts a chevron here by default; the trailing
|
|
6
6
|
* end of a settings row is a `Switch` at least as often, and a slot that guesses makes you
|
|
7
7
|
* pass a child in order to render nothing. What goes there is the row's business, and the
|
|
8
8
|
* row is one line away from saying so.
|
|
@@ -2,7 +2,7 @@ import { View } from 'react-native';
|
|
|
2
2
|
/**
|
|
3
3
|
* What trails the row: a value, a switch, a chevron, a badge.
|
|
4
4
|
*
|
|
5
|
-
* **It draws nothing of its own.**
|
|
5
|
+
* **It draws nothing of its own.** The reference implementation's puts a chevron here by default; the trailing
|
|
6
6
|
* end of a settings row is a `Switch` at least as often, and a slot that guesses makes you
|
|
7
7
|
* pass a child in order to render nothing. What goes there is the row's business, and the
|
|
8
8
|
* row is one line away from saying so.
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
require('../../chunk-
|
|
17
|
-
require('../../chunk-
|
|
18
|
-
require('../../chunk-WLWZG2PA.cjs');
|
|
15
|
+
var _chunk7JWOAGB3cjs = require('../../chunk-7JWOAGB3.cjs');
|
|
16
|
+
require('../../chunk-NRU5APUE.cjs');
|
|
17
|
+
require('../../chunk-2IOL3VDP.cjs');
|
|
19
18
|
require('../../chunk-ISHMSP6P.cjs');
|
|
19
|
+
require('../../chunk-BKY5YQ7W.cjs');
|
|
20
20
|
require('../../chunk-GSZDN6EZ.cjs');
|
|
21
21
|
require('../../chunk-FHNIGHN5.cjs');
|
|
22
22
|
require('../../chunk-SL3V7R2Y.cjs');
|
|
@@ -40,4 +40,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
exports.MASK_FIELD_MASKS =
|
|
43
|
+
exports.MASK_FIELD_MASKS = _chunk7JWOAGB3cjs.MASK_FIELD_MASKS; exports.MaskField = _chunk7JWOAGB3cjs.MaskField; exports.MaskFieldField = _chunk7JWOAGB3cjs.MaskFieldField; exports.MaskFieldRoot = _chunk7JWOAGB3cjs.MaskFieldRoot; exports.dateOrderFor = _chunk7JWOAGB3cjs.dateOrderFor; exports.dateSeparatorFor = _chunk7JWOAGB3cjs.dateSeparatorFor; exports.formatMaskedDate = _chunk7JWOAGB3cjs.formatMaskedDate; exports.formatMaskedTime = _chunk7JWOAGB3cjs.formatMaskedTime; exports.maskInput = _chunk7JWOAGB3cjs.maskInput; exports.parseMaskedDate = _chunk7JWOAGB3cjs.parseMaskedDate; exports.parseMaskedTime = _chunk7JWOAGB3cjs.parseMaskedTime; exports.resolveMask = _chunk7JWOAGB3cjs.resolveMask; exports.useMaskField = _chunk7JWOAGB3cjs.useMaskField;
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
parseMaskedTime,
|
|
13
13
|
resolveMask,
|
|
14
14
|
useMaskField
|
|
15
|
-
} from "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-43S673KF.js";
|
|
15
|
+
} from "../../chunk-KZZWNDDO.js";
|
|
16
|
+
import "../../chunk-MZUYTCCB.js";
|
|
17
|
+
import "../../chunk-JYV53WUN.js";
|
|
19
18
|
import "../../chunk-SHFUQVLX.js";
|
|
19
|
+
import "../../chunk-NTVPLDJC.js";
|
|
20
20
|
import "../../chunk-JN6IRT2M.js";
|
|
21
21
|
import "../../chunk-WFZDAXDI.js";
|
|
22
22
|
import "../../chunk-DKVXTMIJ.js";
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkADGHFLBJcjs = require('../../chunk-ADGHFLBJ.cjs');
|
|
18
18
|
require('../../chunk-GTR5X65M.cjs');
|
|
19
19
|
require('../../chunk-YVYYONTP.cjs');
|
|
20
20
|
require('../../chunk-WDDXU3OH.cjs');
|
|
@@ -48,4 +48,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
exports.Menu =
|
|
51
|
+
exports.Menu = _chunkADGHFLBJcjs.Menu2; exports.MenuContent = _chunkADGHFLBJcjs.MenuContent; exports.MenuGroup = _chunkADGHFLBJcjs.MenuGroup; exports.MenuItem = _chunkADGHFLBJcjs.MenuItem; exports.MenuItemDescription = _chunkADGHFLBJcjs.MenuItemDescription; exports.MenuItemIndicator = _chunkADGHFLBJcjs.MenuItemIndicator; exports.MenuItemTitle = _chunkADGHFLBJcjs.MenuItemTitle; exports.MenuLabel = _chunkADGHFLBJcjs.MenuLabel; exports.MenuOverlay = _chunkADGHFLBJcjs.MenuOverlay; exports.MenuRoot = _chunkADGHFLBJcjs.Menu; exports.MenuSeparator = _chunkADGHFLBJcjs.MenuSeparator; exports.MenuTrigger = _chunkADGHFLBJcjs.MenuTrigger; exports.menuRecipe = _chunkADGHFLBJcjs.menuRecipe; exports.useMenu = _chunkADGHFLBJcjs.useMenu; exports.useMenuItem = _chunkADGHFLBJcjs.useMenuItem;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkNXVSNESKcjs = require('../../chunk-NXVSNESK.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -15,9 +15,9 @@ var _chunk7AVZ2FSTcjs = require('../../chunk-7AVZ2FST.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkMPYBJSS7cjs = require('../../chunk-MPYBJSS7.cjs');
|
|
18
|
-
require('../../chunk-
|
|
19
|
-
require('../../chunk-
|
|
20
|
-
require('../../chunk-
|
|
18
|
+
require('../../chunk-NRU5APUE.cjs');
|
|
19
|
+
require('../../chunk-2IOL3VDP.cjs');
|
|
20
|
+
require('../../chunk-BKY5YQ7W.cjs');
|
|
21
21
|
require('../../chunk-GSZDN6EZ.cjs');
|
|
22
22
|
require('../../chunk-FHNIGHN5.cjs');
|
|
23
23
|
require('../../chunk-SL3V7R2Y.cjs');
|
|
@@ -41,4 +41,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
exports.NumberField =
|
|
44
|
+
exports.NumberField = _chunkNXVSNESKcjs.NumberField; exports.NumberFieldDecrement = _chunkNXVSNESKcjs.NumberFieldDecrement; exports.NumberFieldField = _chunkNXVSNESKcjs.NumberFieldField; exports.NumberFieldIncrement = _chunkNXVSNESKcjs.NumberFieldIncrement; exports.NumberFieldRoot = _chunkNXVSNESKcjs.NumberFieldRoot; exports.canStep = _chunkMPYBJSS7cjs.canStep; exports.clampNumber = _chunkMPYBJSS7cjs.clampNumber; exports.formatNumber = _chunkMPYBJSS7cjs.formatNumber; exports.numberFieldRecipe = _chunkNXVSNESKcjs.numberFieldRecipe; exports.numberMarks = _chunkMPYBJSS7cjs.numberMarks; exports.parseNumber = _chunkMPYBJSS7cjs.parseNumber; exports.stepNumber = _chunkMPYBJSS7cjs.stepNumber; exports.useNumberField = _chunkNXVSNESKcjs.useNumberField;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
NumberFieldRoot,
|
|
7
7
|
numberFieldRecipe,
|
|
8
8
|
useNumberField
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-VTGWFZCA.js";
|
|
10
10
|
import {
|
|
11
11
|
canStep,
|
|
12
12
|
clampNumber,
|
|
@@ -15,9 +15,9 @@ import {
|
|
|
15
15
|
parseNumber,
|
|
16
16
|
stepNumber
|
|
17
17
|
} from "../../chunk-CG4NONIL.js";
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-MZUYTCCB.js";
|
|
19
|
+
import "../../chunk-JYV53WUN.js";
|
|
20
|
+
import "../../chunk-NTVPLDJC.js";
|
|
21
21
|
import "../../chunk-JN6IRT2M.js";
|
|
22
22
|
import "../../chunk-WFZDAXDI.js";
|
|
23
23
|
import "../../chunk-DKVXTMIJ.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
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
7
|
|
|
@@ -11,8 +11,7 @@ var _chunkNADCILBLcjs = require('../../chunk-NADCILBL.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('../../chunk-WLWZG2PA.cjs');
|
|
14
|
+
var _chunk2IOL3VDPcjs = require('../../chunk-2IOL3VDP.cjs');
|
|
16
15
|
|
|
17
16
|
|
|
18
17
|
|
|
@@ -21,12 +20,13 @@ require('../../chunk-WLWZG2PA.cjs');
|
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
|
|
24
|
-
var
|
|
23
|
+
var _chunk3TBT6ORWcjs = require('../../chunk-3TBT6ORW.cjs');
|
|
25
24
|
|
|
26
25
|
|
|
27
26
|
var _chunk6NRWZR7Tcjs = require('../../chunk-6NRWZR7T.cjs');
|
|
28
27
|
require('../../chunk-XSQPVDFH.cjs');
|
|
29
28
|
require('../../chunk-H2FTAU5C.cjs');
|
|
29
|
+
require('../../chunk-BKY5YQ7W.cjs');
|
|
30
30
|
require('../../chunk-WDDXU3OH.cjs');
|
|
31
31
|
require('../../chunk-EKS3W46M.cjs');
|
|
32
32
|
require('../../chunk-WFEMJCXO.cjs');
|
|
@@ -59,11 +59,18 @@ var _react = require('react');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
var _min = require('libphonenumber-js/min');
|
|
62
|
+
function regionNames(locale) {
|
|
63
|
+
try {
|
|
64
|
+
return new Intl.DisplayNames([locale], { type: "region" });
|
|
65
|
+
} catch (e) {
|
|
66
|
+
return void 0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
62
69
|
function phoneCountries(locale, codes = _min.getCountries.call(void 0, )) {
|
|
63
|
-
const names =
|
|
70
|
+
const names = regionNames(locale);
|
|
64
71
|
return [...new Set(codes)].map((code) => ({
|
|
65
72
|
code,
|
|
66
|
-
name: _nullishCoalesce(names.of(code), () => ( code)),
|
|
73
|
+
name: _nullishCoalesce(_optionalChain([names, 'optionalAccess', _ => _.of, 'call', _2 => _2(code)]), () => ( code)),
|
|
67
74
|
callingCode: _min.getCountryCallingCode.call(void 0, code),
|
|
68
75
|
flag: String.fromCodePoint(
|
|
69
76
|
...[...code].map((letter) => letter.charCodeAt(0) + 127397)
|
|
@@ -83,7 +90,7 @@ function filterPhoneCountries(countries, query) {
|
|
|
83
90
|
}
|
|
84
91
|
function readPhoneNumber(value) {
|
|
85
92
|
const parsed = _min.parsePhoneNumberFromString.call(void 0, value.nationalNumber, value.country);
|
|
86
|
-
return _optionalChain([parsed, 'optionalAccess',
|
|
93
|
+
return _optionalChain([parsed, 'optionalAccess', _3 => _3.isPossible, 'call', _4 => _4()]) ? parsed : null;
|
|
87
94
|
}
|
|
88
95
|
function editPhoneNumber(text, current, allowed) {
|
|
89
96
|
const normalized = _min.parseIncompletePhoneNumber.call(void 0, text);
|
|
@@ -91,7 +98,7 @@ function editPhoneNumber(text, current, allowed) {
|
|
|
91
98
|
return { country: current.country, nationalNumber: normalized.slice(0, 17) };
|
|
92
99
|
}
|
|
93
100
|
const parsed = _min.parsePhoneNumberFromString.call(void 0, normalized);
|
|
94
|
-
if (!_optionalChain([parsed, 'optionalAccess',
|
|
101
|
+
if (!_optionalChain([parsed, 'optionalAccess', _5 => _5.country])) {
|
|
95
102
|
return { country: current.country, nationalNumber: normalized.slice(0, 16) };
|
|
96
103
|
}
|
|
97
104
|
if (allowed && !allowed.includes(parsed.country)) return current;
|
|
@@ -117,7 +124,7 @@ var PhoneNumberFieldRoot = _react.forwardRef.call(void 0,
|
|
|
117
124
|
const [value, setValue] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
118
125
|
value: controlled,
|
|
119
126
|
defaultValue: _nullishCoalesce(defaultValue, () => ( {
|
|
120
|
-
country: _nullishCoalesce(_optionalChain([countryCodes, 'optionalAccess',
|
|
127
|
+
country: _nullishCoalesce(_optionalChain([countryCodes, 'optionalAccess', _6 => _6[0]]), () => ( "US")),
|
|
121
128
|
nationalNumber: ""
|
|
122
129
|
})),
|
|
123
130
|
onChange: onValueChange
|
|
@@ -165,7 +172,7 @@ var PhoneNumberFieldRoot = _react.forwardRef.call(void 0,
|
|
|
165
172
|
value,
|
|
166
173
|
country,
|
|
167
174
|
countries,
|
|
168
|
-
phoneNumber: _nullishCoalesce(_optionalChain([phoneNumber, 'optionalAccess',
|
|
175
|
+
phoneNumber: _nullishCoalesce(_optionalChain([phoneNumber, 'optionalAccess', _7 => _7.number]), () => ( null)),
|
|
169
176
|
setNumber,
|
|
170
177
|
selectCountry,
|
|
171
178
|
formatNumber,
|
|
@@ -189,13 +196,13 @@ var PhoneNumberFieldRoot = _react.forwardRef.call(void 0,
|
|
|
189
196
|
]
|
|
190
197
|
);
|
|
191
198
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PhoneNumberFieldProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
192
|
-
|
|
199
|
+
_chunk3TBT6ORWcjs.BottomSheet,
|
|
193
200
|
{
|
|
194
201
|
isOpen: context.isOpen,
|
|
195
202
|
onOpenChange: setOpen,
|
|
196
203
|
isDisabled,
|
|
197
204
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
198
|
-
|
|
205
|
+
_chunk2IOL3VDPcjs.TextFieldRoot,
|
|
199
206
|
{
|
|
200
207
|
ref,
|
|
201
208
|
variant: "primary",
|
|
@@ -215,13 +222,13 @@ PhoneNumberFieldRoot.displayName = "XAUI.PhoneNumberField.Root";
|
|
|
215
222
|
|
|
216
223
|
var PhoneNumberFieldField = _react.forwardRef.call(void 0, function PhoneNumberFieldField2({ style, onBlur, ...props }, ref) {
|
|
217
224
|
const { value, setNumber, formatNumber } = usePhoneNumberField();
|
|
218
|
-
const group =
|
|
225
|
+
const group = _chunkNRU5APUEcjs.useOptionalFieldGroup.call(void 0, );
|
|
219
226
|
const padding = _react.useMemo.call(void 0,
|
|
220
|
-
() =>
|
|
221
|
-
[_optionalChain([group, 'optionalAccess',
|
|
227
|
+
() => _chunkNRU5APUEcjs.decoratorPadding.call(void 0, _nullishCoalesce(_optionalChain([group, 'optionalAccess', _8 => _8.prefixWidth]), () => ( 0)), _nullishCoalesce(_optionalChain([group, 'optionalAccess', _9 => _9.suffixWidth]), () => ( 0))),
|
|
228
|
+
[_optionalChain([group, 'optionalAccess', _10 => _10.prefixWidth]), _optionalChain([group, 'optionalAccess', _11 => _11.suffixWidth])]
|
|
222
229
|
);
|
|
223
230
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
224
|
-
|
|
231
|
+
_chunk2IOL3VDPcjs.TextFieldField,
|
|
225
232
|
{
|
|
226
233
|
ref,
|
|
227
234
|
keyboardType: "phone-pad",
|
|
@@ -231,7 +238,7 @@ var PhoneNumberFieldField = _react.forwardRef.call(void 0, function PhoneNumberF
|
|
|
231
238
|
onChangeText: setNumber,
|
|
232
239
|
onBlur: (event) => {
|
|
233
240
|
formatNumber();
|
|
234
|
-
_optionalChain([onBlur, 'optionalCall',
|
|
241
|
+
_optionalChain([onBlur, 'optionalCall', _12 => _12(event)]);
|
|
235
242
|
},
|
|
236
243
|
style: [padding, style]
|
|
237
244
|
}
|
|
@@ -245,9 +252,9 @@ var _reactnative = require('react-native');
|
|
|
245
252
|
|
|
246
253
|
var PhoneNumberFieldCountry = _react.forwardRef.call(void 0, function PhoneNumberFieldCountry2({ children, asChild, ...props }, ref) {
|
|
247
254
|
const { country } = usePhoneNumberField();
|
|
248
|
-
const { labelStyle } =
|
|
255
|
+
const { labelStyle } = _chunk2IOL3VDPcjs.useTextField.call(void 0, );
|
|
249
256
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
250
|
-
|
|
257
|
+
_chunk3TBT6ORWcjs.BottomSheetTrigger,
|
|
251
258
|
{
|
|
252
259
|
ref,
|
|
253
260
|
asChild,
|
|
@@ -271,8 +278,8 @@ function PhoneNumberFieldContent({
|
|
|
271
278
|
...props
|
|
272
279
|
}) {
|
|
273
280
|
const context = usePhoneNumberField();
|
|
274
|
-
const field =
|
|
275
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
281
|
+
const field = _chunk2IOL3VDPcjs.useTextField.call(void 0, );
|
|
282
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TBT6ORWcjs.BottomSheetContent, { ...props, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PhoneNumberFieldProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IOL3VDPcjs.TextFieldProvider, { value: field, children }) }) });
|
|
276
283
|
}
|
|
277
284
|
PhoneNumberFieldContent.displayName = "XAUI.PhoneNumberField.Content";
|
|
278
285
|
|
|
@@ -281,8 +288,8 @@ PhoneNumberFieldContent.displayName = "XAUI.PhoneNumberField.Content";
|
|
|
281
288
|
|
|
282
289
|
var PhoneNumberFieldSearch = _react.forwardRef.call(void 0, function PhoneNumberFieldSearch2(props, ref) {
|
|
283
290
|
const { query, setQuery } = usePhoneNumberField();
|
|
284
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
285
|
-
|
|
291
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IOL3VDPcjs.TextField, { variant: "secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
292
|
+
_chunk2IOL3VDPcjs.TextField.Field,
|
|
286
293
|
{
|
|
287
294
|
ref,
|
|
288
295
|
accessibilityRole: "search",
|
|
@@ -346,16 +353,16 @@ PhoneNumberFieldCountryList.displayName = "XAUI.PhoneNumberField.CountryList";
|
|
|
346
353
|
|
|
347
354
|
// src/components/phone-number-field/index.ts
|
|
348
355
|
var PhoneNumberField2 = Object.assign(PhoneNumberFieldRoot, {
|
|
349
|
-
Label:
|
|
356
|
+
Label: _chunk2IOL3VDPcjs.TextFieldLabel,
|
|
350
357
|
Field: PhoneNumberFieldField,
|
|
351
358
|
Country: PhoneNumberFieldCountry,
|
|
352
|
-
Description:
|
|
353
|
-
Error:
|
|
354
|
-
Overlay:
|
|
359
|
+
Description: _chunk2IOL3VDPcjs.TextFieldDescription,
|
|
360
|
+
Error: _chunk2IOL3VDPcjs.TextFieldError,
|
|
361
|
+
Overlay: _chunk3TBT6ORWcjs.BottomSheetOverlay,
|
|
355
362
|
Content: PhoneNumberFieldContent,
|
|
356
|
-
Handle:
|
|
357
|
-
Title:
|
|
358
|
-
Close:
|
|
363
|
+
Handle: _chunk3TBT6ORWcjs.BottomSheetHandle,
|
|
364
|
+
Title: _chunk3TBT6ORWcjs.BottomSheetTitle,
|
|
365
|
+
Close: _chunk3TBT6ORWcjs.BottomSheetClose,
|
|
359
366
|
Search: PhoneNumberFieldSearch,
|
|
360
367
|
CountryList: PhoneNumberFieldCountryList
|
|
361
368
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decoratorPadding,
|
|
3
3
|
useOptionalFieldGroup
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-MZUYTCCB.js";
|
|
5
5
|
import {
|
|
6
6
|
TextField,
|
|
7
7
|
TextFieldDescription,
|
|
@@ -11,8 +11,7 @@ import {
|
|
|
11
11
|
TextFieldProvider,
|
|
12
12
|
TextFieldRoot,
|
|
13
13
|
useTextField
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import "../../chunk-43S673KF.js";
|
|
14
|
+
} from "../../chunk-JYV53WUN.js";
|
|
16
15
|
import {
|
|
17
16
|
BottomSheet,
|
|
18
17
|
BottomSheetClose,
|
|
@@ -21,12 +20,13 @@ import {
|
|
|
21
20
|
BottomSheetOverlay,
|
|
22
21
|
BottomSheetTitle,
|
|
23
22
|
BottomSheetTrigger
|
|
24
|
-
} from "../../chunk-
|
|
23
|
+
} from "../../chunk-LYWXGEED.js";
|
|
25
24
|
import {
|
|
26
25
|
Button
|
|
27
26
|
} from "../../chunk-6MVKLRLZ.js";
|
|
28
27
|
import "../../chunk-3GFRSZYR.js";
|
|
29
28
|
import "../../chunk-7J3M62W5.js";
|
|
29
|
+
import "../../chunk-NTVPLDJC.js";
|
|
30
30
|
import "../../chunk-2PMXMKS5.js";
|
|
31
31
|
import "../../chunk-64MXEVT3.js";
|
|
32
32
|
import "../../chunk-NCTOTTVW.js";
|
|
@@ -59,11 +59,18 @@ import {
|
|
|
59
59
|
parsePhoneNumberFromString,
|
|
60
60
|
parseIncompletePhoneNumber
|
|
61
61
|
} from "libphonenumber-js/min";
|
|
62
|
+
function regionNames(locale) {
|
|
63
|
+
try {
|
|
64
|
+
return new Intl.DisplayNames([locale], { type: "region" });
|
|
65
|
+
} catch {
|
|
66
|
+
return void 0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
62
69
|
function phoneCountries(locale, codes = getCountries()) {
|
|
63
|
-
const names =
|
|
70
|
+
const names = regionNames(locale);
|
|
64
71
|
return [...new Set(codes)].map((code) => ({
|
|
65
72
|
code,
|
|
66
|
-
name: names
|
|
73
|
+
name: names?.of(code) ?? code,
|
|
67
74
|
callingCode: getCountryCallingCode(code),
|
|
68
75
|
flag: String.fromCodePoint(
|
|
69
76
|
...[...code].map((letter) => letter.charCodeAt(0) + 127397)
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkKAYZH7ZNcjs = require('../../chunk-KAYZH7ZN.cjs');
|
|
13
13
|
require('../../chunk-GTR5X65M.cjs');
|
|
14
14
|
require('../../chunk-YVYYONTP.cjs');
|
|
15
15
|
require('../../chunk-WDDXU3OH.cjs');
|
|
@@ -37,4 +37,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
exports.Popover =
|
|
40
|
+
exports.Popover = _chunkKAYZH7ZNcjs.Popover2; exports.PopoverClose = _chunkKAYZH7ZNcjs.PopoverClose; exports.PopoverContent = _chunkKAYZH7ZNcjs.PopoverContent; exports.PopoverDescription = _chunkKAYZH7ZNcjs.PopoverDescription; exports.PopoverOverlay = _chunkKAYZH7ZNcjs.PopoverOverlay; exports.PopoverRoot = _chunkKAYZH7ZNcjs.Popover; exports.PopoverTitle = _chunkKAYZH7ZNcjs.PopoverTitle; exports.PopoverTrigger = _chunkKAYZH7ZNcjs.PopoverTrigger; exports.popoverRecipe = _chunkKAYZH7ZNcjs.popoverRecipe; exports.usePopover = _chunkKAYZH7ZNcjs.usePopover;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Thirteen ems, which is about twenty-six characters a line — narrow, and deliberately so.
|
|
5
5
|
* A popover is read at a glance, and a glance is two or three short lines rather than a
|
|
6
6
|
* paragraph; past this it stops being an aside and starts being a sheet with a tail. It is
|
|
7
|
-
* also where
|
|
7
|
+
* also where the reference implementation's own panels land, measured off their placement demos: a little over
|
|
8
8
|
* two hundred points on a three-hundred-and-ninety point screen.
|
|
9
9
|
*
|
|
10
10
|
* A measure rather than a number of points, so a theme that scales its type scales the
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Thirteen ems, which is about twenty-six characters a line — narrow, and deliberately so.
|
|
5
5
|
* A popover is read at a glance, and a glance is two or three short lines rather than a
|
|
6
6
|
* paragraph; past this it stops being an aside and starts being a sheet with a tail. It is
|
|
7
|
-
* also where
|
|
7
|
+
* also where the reference implementation's own panels land, measured off their placement demos: a little over
|
|
8
8
|
* two hundred points on a three-hundred-and-ninety point screen.
|
|
9
9
|
*
|
|
10
10
|
* A measure rather than a number of points, so a theme that scales its type scales the
|