@xaui/native 0.9.1-alpha.90 → 0.9.1-alpha.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-XZ42OWKC.js → chunk-2AFA5HA2.js} +78 -74
- package/dist/{chunk-A2JNZMDJ.cjs → chunk-2B6PUYTP.cjs} +2 -2
- package/dist/{chunk-HQLJZ6C2.js → chunk-52XUGOLD.js} +3 -3
- package/dist/{chunk-TCDWDTSW.cjs → chunk-5E6SHYEQ.cjs} +3 -3
- package/dist/{chunk-Y36UGSTS.cjs → chunk-62AYYMZP.cjs} +3 -3
- package/dist/{chunk-BLGAFZRI.cjs → chunk-6GQ7UTJ7.cjs} +2 -2
- package/dist/{chunk-CVPBNJRG.js → chunk-6RU6GUJP.js} +1 -1
- package/dist/{chunk-XUF7K4WP.js → chunk-7EVW6O2Q.js} +1 -1
- package/dist/{chunk-ACWFIZKC.cjs → chunk-AR7667VN.cjs} +6 -6
- package/dist/{chunk-DSCZZZIG.cjs → chunk-B33OU34Z.cjs} +12 -12
- package/dist/{chunk-WGXOYMZM.cjs → chunk-BI5ME4QP.cjs} +5 -5
- package/dist/{chunk-IEEUSJBJ.js → chunk-BJVO7DWJ.js} +1 -1
- package/dist/{chunk-5YEMZL4C.cjs → chunk-CBRW53GN.cjs} +7 -7
- package/dist/{chunk-34UJTR37.cjs → chunk-CBXILKQZ.cjs} +3 -3
- package/dist/{chunk-FB4JF34M.cjs → chunk-CEPX7CKM.cjs} +16 -16
- package/dist/{chunk-377XFATD.cjs → chunk-CYOUOQXT.cjs} +5 -5
- package/dist/{chunk-AUYFPVLA.cjs → chunk-DYQB54JA.cjs} +2 -2
- package/dist/{chunk-3OQPAZTF.js → chunk-EBCAPIBD.js} +44 -44
- package/dist/{chunk-M5LTEKGJ.cjs → chunk-EDNCHCIN.cjs} +2 -2
- package/dist/{chunk-34KILEQD.js → chunk-FOOXBVOQ.js} +15 -15
- package/dist/{chunk-24WXPNIT.js → chunk-FRLWG5LM.js} +24 -24
- package/dist/{chunk-AAQIBMJI.js → chunk-FVEMTBU4.js} +2 -2
- package/dist/{chunk-54DVPCYB.cjs → chunk-FXN32S75.cjs} +3 -3
- package/dist/{chunk-6BB6YWEN.js → chunk-GYEQEF5H.js} +1 -1
- package/dist/{chunk-MTGUUW7F.cjs → chunk-GZAGWNQM.cjs} +3 -3
- package/dist/{chunk-OF3E7WVQ.cjs → chunk-ILXKBDC6.cjs} +10 -10
- package/dist/{chunk-D2UYBAGB.cjs → chunk-IPD3IUE2.cjs} +4 -4
- package/dist/{chunk-XLPOJTA2.cjs → chunk-JBZ7SBRV.cjs} +3 -3
- package/dist/{chunk-UMTVYPYK.js → chunk-JC4YCKKL.js} +15 -15
- package/dist/{chunk-GL46PQPW.js → chunk-JJYHW4PV.js} +1 -1
- package/dist/{chunk-2CTIZGMC.js → chunk-JKDWYNSG.js} +99 -99
- package/dist/{chunk-L5GB6G3L.cjs → chunk-K5UO3HBW.cjs} +29 -29
- package/dist/{chunk-KTI3GCFM.js → chunk-LECYGVIH.js} +43 -43
- package/dist/{chunk-CKADVFCH.js → chunk-LIEXFWTN.js} +56 -56
- package/dist/{chunk-SYVFU6O5.cjs → chunk-LPJ3UBSO.cjs} +4 -4
- package/dist/{chunk-RS2UWFEG.js → chunk-MMFIMQMQ.js} +2 -2
- package/dist/chunk-MSORLKO7.cjs +422 -0
- package/dist/{chunk-PKVKFZW7.js → chunk-O6B72H4B.js} +5 -5
- package/dist/{chunk-7KQG4JQ2.js → chunk-OD6H7ANY.js} +1 -1
- package/dist/{chunk-UXPBSREP.js → chunk-ODQHAPQW.js} +17 -17
- package/dist/{chunk-TB7V2DO3.cjs → chunk-ORXVXYKC.cjs} +11 -11
- package/dist/{chunk-PIU3JONR.cjs → chunk-OW4N2C3M.cjs} +64 -60
- package/dist/{chunk-NPY7I7JJ.js → chunk-P2CJNTAP.js} +15 -15
- package/dist/{chunk-AOXNVM55.cjs → chunk-P2V6PIM7.cjs} +2 -2
- package/dist/{chunk-BPQWLUQU.js → chunk-P7OHZCU3.js} +2 -2
- package/dist/{chunk-DPW25YCM.cjs → chunk-PAQD6UUF.cjs} +3 -3
- package/dist/{chunk-LDFBDFIW.js → chunk-PAQZOD2L.js} +1 -1
- package/dist/{chunk-4TG2OLEM.cjs → chunk-PDSR42YC.cjs} +3 -3
- package/dist/{chunk-AXSY2KPT.cjs → chunk-PROLOLZ5.cjs} +2 -2
- package/dist/{chunk-4SPCZVR6.cjs → chunk-PYQ2P3M5.cjs} +58 -58
- package/dist/{chunk-ZZTUJELK.cjs → chunk-Q2BWXT55.cjs} +9 -9
- package/dist/{chunk-RD3ZUUBC.cjs → chunk-QCH7X7O2.cjs} +14 -14
- package/dist/{chunk-ZYN7XKF5.cjs → chunk-QELEKXN3.cjs} +5 -5
- package/dist/{chunk-ZN5P3VTI.js → chunk-QHXTO525.js} +1 -1
- package/dist/{chunk-EVSQ4CEI.cjs → chunk-QN2D5ZCS.cjs} +3 -3
- package/dist/{chunk-4XZWVJZL.cjs → chunk-QUSQEYLP.cjs} +25 -25
- package/dist/chunk-RCSEVEIR.js +422 -0
- package/dist/{chunk-GOKUBJIK.js → chunk-RLC3EXMV.js} +2 -2
- package/dist/{chunk-BLYKQD47.cjs → chunk-RREJUSAS.cjs} +3 -3
- package/dist/{chunk-BLDMKFIG.js → chunk-RSIWSVXI.js} +1 -1
- package/dist/{chunk-5VYB7F3H.js → chunk-RXEUKYM5.js} +1 -1
- package/dist/{chunk-WRW4JBB4.js → chunk-SUJLTC2K.js} +4 -4
- package/dist/{chunk-KBQT6MZ4.js → chunk-TCWW7JI2.js} +58 -58
- package/dist/{chunk-B2KUGQS5.js → chunk-TPYOQSKT.js} +1 -1
- package/dist/{chunk-SEYZGC4E.js → chunk-TRWZEOCO.js} +2 -2
- package/dist/{chunk-SDLDRTT7.cjs → chunk-UEW3GAP5.cjs} +5 -5
- package/dist/{chunk-WQZJ26SX.cjs → chunk-UFKSUELU.cjs} +2 -2
- package/dist/{chunk-4BAKKBHJ.js → chunk-USIWPESU.js} +1 -1
- package/dist/{chunk-HM6M6SIP.js → chunk-UYQLW7OD.js} +1 -1
- package/dist/{chunk-NIEIDK5Z.js → chunk-V2CEKPJ6.js} +4 -4
- package/dist/{chunk-GPSVJ75L.js → chunk-VMPCXS4S.js} +15 -15
- package/dist/{chunk-W6TFYAEF.js → chunk-VQGNLX5C.js} +1 -1
- package/dist/{chunk-YSZ4K6L6.cjs → chunk-WIX4SYZI.cjs} +2 -2
- package/dist/{chunk-T3WEEHSB.js → chunk-WRZV6ORJ.js} +1 -1
- package/dist/{chunk-UDVKP3V2.cjs → chunk-X4CZYJZ6.cjs} +12 -12
- package/dist/{chunk-67WT74DY.cjs → chunk-ZE4IHUUO.cjs} +2 -2
- package/dist/{chunk-4JB7XQCJ.js → chunk-ZKGVOXLQ.js} +1 -1
- package/dist/{chunk-U32IGHJ6.js → chunk-ZWS3FQ3J.js} +57 -57
- package/dist/components/accordion/index.cjs +3 -3
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/agenda-calendar/index.cjs +4 -4
- package/dist/components/agenda-calendar/index.js +3 -3
- package/dist/components/alert/index.cjs +4 -4
- package/dist/components/alert/index.js +3 -3
- package/dist/components/autocomplete/index.cjs +3 -3
- package/dist/components/autocomplete/index.js +2 -2
- package/dist/components/bottom-sheet/index.cjs +3 -3
- package/dist/components/bottom-sheet/index.js +2 -2
- package/dist/components/button/button.d.cts +1 -0
- package/dist/components/button/button.d.ts +1 -0
- package/dist/components/button/index.cjs +4 -4
- package/dist/components/button/index.d.cts +1 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/index.js +3 -3
- package/dist/components/calendar/index.cjs +3 -3
- package/dist/components/calendar/index.js +2 -2
- package/dist/components/card/card.d.cts +1 -0
- package/dist/components/card/card.d.ts +1 -0
- package/dist/components/card/index.cjs +3 -3
- package/dist/components/card/index.d.cts +1 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/index.js +2 -2
- package/dist/components/carousel/index.cjs +3 -3
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/checkbox/checkbox.d.cts +1 -0
- package/dist/components/checkbox/checkbox.d.ts +1 -0
- package/dist/components/checkbox/index.cjs +3 -3
- package/dist/components/checkbox/index.d.cts +1 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/chip/chip.d.cts +1 -0
- package/dist/components/chip/chip.d.ts +1 -0
- package/dist/components/chip/index.cjs +4 -4
- package/dist/components/chip/index.d.cts +1 -0
- package/dist/components/chip/index.d.ts +1 -0
- package/dist/components/chip/index.js +3 -3
- package/dist/components/close-button/close-button.d.cts +1 -0
- package/dist/components/close-button/close-button.d.ts +1 -0
- package/dist/components/close-button/index.cjs +4 -4
- package/dist/components/close-button/index.js +3 -3
- package/dist/components/color-picker/color-picker.d.cts +1 -1
- package/dist/components/color-picker/color-picker.d.ts +1 -1
- package/dist/components/color-picker/index.cjs +6 -6
- package/dist/components/color-picker/index.d.cts +1 -1
- package/dist/components/color-picker/index.d.ts +1 -1
- package/dist/components/color-picker/index.js +5 -5
- package/dist/components/combobox/index.cjs +4 -4
- package/dist/components/combobox/index.js +3 -3
- package/dist/components/date-picker/index.cjs +4 -4
- package/dist/components/date-picker/index.js +3 -3
- package/dist/components/date-range-picker/index.cjs +6 -6
- package/dist/components/date-range-picker/index.js +5 -5
- package/dist/components/date-time-picker/index.cjs +7 -7
- package/dist/components/date-time-picker/index.js +6 -6
- package/dist/components/dialog/index.cjs +4 -4
- package/dist/components/dialog/index.js +3 -3
- package/dist/components/dummy-field/index.cjs +3 -3
- package/dist/components/dummy-field/index.js +2 -2
- package/dist/components/fab/index.cjs +4 -4
- package/dist/components/fab/index.js +3 -3
- package/dist/components/flip-card/index.cjs +3 -3
- package/dist/components/flip-card/index.js +2 -2
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/list-box/index.cjs +2 -2
- package/dist/components/list-box/index.js +1 -1
- package/dist/components/menu/index.cjs +3 -3
- package/dist/components/menu/index.js +2 -2
- package/dist/components/morph-button/index.cjs +39 -0
- package/dist/components/morph-button/index.d.cts +53 -0
- package/dist/components/morph-button/index.d.ts +53 -0
- package/dist/components/morph-button/index.js +39 -0
- package/dist/components/morph-button/morph-button-face.d.cts +9 -0
- package/dist/components/morph-button/morph-button-face.d.ts +9 -0
- package/dist/components/morph-button/morph-button-icon.d.cts +13 -0
- package/dist/components/morph-button/morph-button-icon.d.ts +13 -0
- package/dist/components/morph-button/morph-button-text.d.cts +16 -0
- package/dist/components/morph-button/morph-button-text.d.ts +16 -0
- package/dist/components/morph-button/morph-button.animation.d.cts +29 -0
- package/dist/components/morph-button/morph-button.animation.d.ts +29 -0
- package/dist/components/morph-button/morph-button.context.d.cts +7 -0
- package/dist/components/morph-button/morph-button.context.d.ts +7 -0
- package/dist/components/morph-button/morph-button.d.cts +61 -0
- package/dist/components/morph-button/morph-button.d.ts +61 -0
- package/dist/components/morph-button/morph-button.recipe.d.cts +11 -0
- package/dist/components/morph-button/morph-button.recipe.d.ts +11 -0
- package/dist/components/morph-button/morph-button.type.d.cts +99 -0
- package/dist/components/morph-button/morph-button.type.d.ts +99 -0
- package/dist/components/number-stepper/index.cjs +3 -3
- package/dist/components/number-stepper/index.js +2 -2
- package/dist/components/phone-number-field/index.cjs +15 -15
- package/dist/components/phone-number-field/index.js +4 -4
- package/dist/components/popover/index.cjs +3 -3
- package/dist/components/popover/index.js +2 -2
- package/dist/components/radio/index.cjs +3 -3
- package/dist/components/radio/index.d.cts +1 -0
- package/dist/components/radio/index.d.ts +1 -0
- package/dist/components/radio/index.js +2 -2
- package/dist/components/radio/radio.d.cts +1 -0
- package/dist/components/radio/radio.d.ts +1 -0
- package/dist/components/range-calendar/index.cjs +4 -4
- package/dist/components/range-calendar/index.js +3 -3
- package/dist/components/search-field/index.cjs +4 -4
- package/dist/components/search-field/index.js +3 -3
- package/dist/components/segment/index.cjs +2 -2
- package/dist/components/segment/index.js +1 -1
- package/dist/components/select/index.cjs +3 -3
- package/dist/components/select/index.js +2 -2
- package/dist/components/snackbar/index.cjs +3 -3
- package/dist/components/snackbar/index.js +2 -2
- package/dist/components/switch/index.cjs +3 -3
- package/dist/components/switch/index.d.cts +1 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/index.js +2 -2
- package/dist/components/switch/switch.d.cts +1 -0
- package/dist/components/switch/switch.d.ts +1 -0
- package/dist/components/table/index.cjs +4 -4
- package/dist/components/table/index.js +3 -3
- package/dist/components/tabs/index.cjs +3 -3
- package/dist/components/tabs/index.js +2 -2
- package/dist/components/tag-group/index.cjs +4 -4
- package/dist/components/tag-group/index.js +3 -3
- package/dist/components/time-picker/index.cjs +4 -4
- package/dist/components/time-picker/index.js +3 -3
- package/dist/components/toast/index.cjs +3 -3
- package/dist/components/toast/index.js +2 -2
- package/dist/components/toggle-button/index.cjs +3 -3
- package/dist/components/toggle-button/index.d.cts +1 -0
- package/dist/components/toggle-button/index.d.ts +1 -0
- package/dist/components/toggle-button/index.js +2 -2
- package/dist/components/toggle-button/toggle-button.d.cts +1 -0
- package/dist/components/toggle-button/toggle-button.d.ts +1 -0
- package/dist/index.cjs +82 -58
- package/dist/index.js +101 -77
- package/dist/system/index.cjs +3 -3
- package/dist/system/index.js +2 -2
- package/dist/system/pressable-feedback/index.d.cts +1 -0
- package/dist/system/pressable-feedback/index.d.ts +1 -0
- package/dist/system/pressable-feedback/pressable-feedback.d.cts +1 -0
- package/dist/system/pressable-feedback/pressable-feedback.d.ts +1 -0
- package/dist/system/pressable-feedback/pressable-feedback.type.d.cts +13 -1
- package/dist/system/pressable-feedback/pressable-feedback.type.d.ts +13 -1
- package/package.json +11 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { View } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* A button that changes shape: a pill at rest, a card once it is open.
|
|
4
|
+
*
|
|
5
|
+
* ```tsx
|
|
6
|
+
* <MorphButton alignSelf="flex-start">
|
|
7
|
+
* <MorphButton.Collapsed>
|
|
8
|
+
* <MorphButton.Label>Primary</MorphButton.Label>
|
|
9
|
+
* </MorphButton.Collapsed>
|
|
10
|
+
*
|
|
11
|
+
* <MorphButton.Expanded>
|
|
12
|
+
* <MorphButton.Title>Primary</MorphButton.Title>
|
|
13
|
+
* <MorphButton.Description>
|
|
14
|
+
* High-contrast inverted surface for floating buttons over app content.
|
|
15
|
+
* </MorphButton.Description>
|
|
16
|
+
* </MorphButton.Expanded>
|
|
17
|
+
* </MorphButton>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* **One box, two contents.** The pressable is the shape that travels, and exactly one face
|
|
21
|
+
* is mounted at a time — so the box takes its size from whichever that is, and Reanimated's
|
|
22
|
+
* layout transition animates it between the two. Nothing is measured, which is what lets a
|
|
23
|
+
* card whose sentence arrives from the network grow with it.
|
|
24
|
+
*
|
|
25
|
+
* **One corner for both shapes**, half the collapsed height: at that height it is exactly a
|
|
26
|
+
* pill, and on the taller card it is a corner in proportion to the control's scale.
|
|
27
|
+
*
|
|
28
|
+
* **No `childrenToString`** (R3), and it is the one component that legitimately skips it: a
|
|
29
|
+
* bare string could belong to either face, and auto-wrapping it into the collapsed one
|
|
30
|
+
* would build a button that morphs into an empty card. The two faces are the API.
|
|
31
|
+
*
|
|
32
|
+
* `useMorphButton().toggle` is what a control *inside* a face is written against — a close
|
|
33
|
+
* button on the card that costs no state of its own.
|
|
34
|
+
*/
|
|
35
|
+
export declare const MorphButtonRoot: import("react").ForwardRefExoticComponent<{
|
|
36
|
+
variant?: import("./morph-button.type").MorphButtonVariant;
|
|
37
|
+
size?: import("./morph-button.type").MorphButtonSize;
|
|
38
|
+
radius?: import("../..").RadiusKey;
|
|
39
|
+
color?: string;
|
|
40
|
+
isExpanded?: boolean;
|
|
41
|
+
defaultExpanded?: boolean;
|
|
42
|
+
onExpandedChange?: (isExpanded: boolean) => void;
|
|
43
|
+
animation?: boolean | import("./morph-button.type").MorphSpring;
|
|
44
|
+
isDisabled?: boolean;
|
|
45
|
+
asChild?: boolean;
|
|
46
|
+
style?: import("react-native").StyleProp<import("react-native").ViewStyle> | ((state: import("react-native").PressableStateCallbackType) => import("react-native").StyleProp<import("react-native").ViewStyle>);
|
|
47
|
+
children?: import("react").ReactNode;
|
|
48
|
+
} & Omit<import("../..").PressableFeedbackProps, "isPressed" | "layout" | keyof {
|
|
49
|
+
variant?: import("./morph-button.type").MorphButtonVariant;
|
|
50
|
+
size?: import("./morph-button.type").MorphButtonSize;
|
|
51
|
+
radius?: import("../..").RadiusKey;
|
|
52
|
+
color?: string;
|
|
53
|
+
isExpanded?: boolean;
|
|
54
|
+
defaultExpanded?: boolean;
|
|
55
|
+
onExpandedChange?: (isExpanded: boolean) => void;
|
|
56
|
+
animation?: boolean | import("./morph-button.type").MorphSpring;
|
|
57
|
+
isDisabled?: boolean;
|
|
58
|
+
asChild?: boolean;
|
|
59
|
+
style?: import("react-native").StyleProp<import("react-native").ViewStyle> | ((state: import("react-native").PressableStateCallbackType) => import("react-native").StyleProp<import("react-native").ViewStyle>);
|
|
60
|
+
children?: import("react").ReactNode;
|
|
61
|
+
}> & import("react").RefAttributes<View>>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { View } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* A button that changes shape: a pill at rest, a card once it is open.
|
|
4
|
+
*
|
|
5
|
+
* ```tsx
|
|
6
|
+
* <MorphButton alignSelf="flex-start">
|
|
7
|
+
* <MorphButton.Collapsed>
|
|
8
|
+
* <MorphButton.Label>Primary</MorphButton.Label>
|
|
9
|
+
* </MorphButton.Collapsed>
|
|
10
|
+
*
|
|
11
|
+
* <MorphButton.Expanded>
|
|
12
|
+
* <MorphButton.Title>Primary</MorphButton.Title>
|
|
13
|
+
* <MorphButton.Description>
|
|
14
|
+
* High-contrast inverted surface for floating buttons over app content.
|
|
15
|
+
* </MorphButton.Description>
|
|
16
|
+
* </MorphButton.Expanded>
|
|
17
|
+
* </MorphButton>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* **One box, two contents.** The pressable is the shape that travels, and exactly one face
|
|
21
|
+
* is mounted at a time — so the box takes its size from whichever that is, and Reanimated's
|
|
22
|
+
* layout transition animates it between the two. Nothing is measured, which is what lets a
|
|
23
|
+
* card whose sentence arrives from the network grow with it.
|
|
24
|
+
*
|
|
25
|
+
* **One corner for both shapes**, half the collapsed height: at that height it is exactly a
|
|
26
|
+
* pill, and on the taller card it is a corner in proportion to the control's scale.
|
|
27
|
+
*
|
|
28
|
+
* **No `childrenToString`** (R3), and it is the one component that legitimately skips it: a
|
|
29
|
+
* bare string could belong to either face, and auto-wrapping it into the collapsed one
|
|
30
|
+
* would build a button that morphs into an empty card. The two faces are the API.
|
|
31
|
+
*
|
|
32
|
+
* `useMorphButton().toggle` is what a control *inside* a face is written against — a close
|
|
33
|
+
* button on the card that costs no state of its own.
|
|
34
|
+
*/
|
|
35
|
+
export declare const MorphButtonRoot: import("react").ForwardRefExoticComponent<{
|
|
36
|
+
variant?: import("./morph-button.type").MorphButtonVariant;
|
|
37
|
+
size?: import("./morph-button.type").MorphButtonSize;
|
|
38
|
+
radius?: import("../..").RadiusKey;
|
|
39
|
+
color?: string;
|
|
40
|
+
isExpanded?: boolean;
|
|
41
|
+
defaultExpanded?: boolean;
|
|
42
|
+
onExpandedChange?: (isExpanded: boolean) => void;
|
|
43
|
+
animation?: boolean | import("./morph-button.type").MorphSpring;
|
|
44
|
+
isDisabled?: boolean;
|
|
45
|
+
asChild?: boolean;
|
|
46
|
+
style?: import("react-native").StyleProp<import("react-native").ViewStyle> | ((state: import("react-native").PressableStateCallbackType) => import("react-native").StyleProp<import("react-native").ViewStyle>);
|
|
47
|
+
children?: import("react").ReactNode;
|
|
48
|
+
} & Omit<import("../..").PressableFeedbackProps, "isPressed" | "layout" | keyof {
|
|
49
|
+
variant?: import("./morph-button.type").MorphButtonVariant;
|
|
50
|
+
size?: import("./morph-button.type").MorphButtonSize;
|
|
51
|
+
radius?: import("../..").RadiusKey;
|
|
52
|
+
color?: string;
|
|
53
|
+
isExpanded?: boolean;
|
|
54
|
+
defaultExpanded?: boolean;
|
|
55
|
+
onExpandedChange?: (isExpanded: boolean) => void;
|
|
56
|
+
animation?: boolean | import("./morph-button.type").MorphSpring;
|
|
57
|
+
isDisabled?: boolean;
|
|
58
|
+
asChild?: boolean;
|
|
59
|
+
style?: import("react-native").StyleProp<import("react-native").ViewStyle> | ((state: import("react-native").PressableStateCallbackType) => import("react-native").StyleProp<import("react-native").ViewStyle>);
|
|
60
|
+
children?: import("react").ReactNode;
|
|
61
|
+
}> & import("react").RefAttributes<View>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SlotStyles } from '../../system/recipe';
|
|
2
|
+
import type { XAUITheme } from '../../theme/theme.type';
|
|
3
|
+
import type { MorphButtonSlot, MorphButtonVariant } from './morph-button.type';
|
|
4
|
+
export declare const morphButtonRecipe: import("../..").Recipe<"label" | "title" | "description" | "root" | "expanded" | "icon" | "collapsed", MorphButtonVariant, {
|
|
5
|
+
readonly size: {
|
|
6
|
+
readonly sm: (theme: XAUITheme) => SlotStyles<MorphButtonSlot>;
|
|
7
|
+
readonly md: (theme: XAUITheme) => SlotStyles<MorphButtonSlot>;
|
|
8
|
+
readonly lg: (theme: XAUITheme) => SlotStyles<MorphButtonSlot>;
|
|
9
|
+
};
|
|
10
|
+
readonly radius: Record<import("../..").RadiusKey, import("../..").StyleFn<"root">>;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SlotStyles } from '../../system/recipe';
|
|
2
|
+
import type { XAUITheme } from '../../theme/theme.type';
|
|
3
|
+
import type { MorphButtonSlot, MorphButtonVariant } from './morph-button.type';
|
|
4
|
+
export declare const morphButtonRecipe: import("../..").Recipe<"label" | "title" | "description" | "root" | "expanded" | "icon" | "collapsed", MorphButtonVariant, {
|
|
5
|
+
readonly size: {
|
|
6
|
+
readonly sm: (theme: XAUITheme) => SlotStyles<MorphButtonSlot>;
|
|
7
|
+
readonly md: (theme: XAUITheme) => SlotStyles<MorphButtonSlot>;
|
|
8
|
+
readonly lg: (theme: XAUITheme) => SlotStyles<MorphButtonSlot>;
|
|
9
|
+
};
|
|
10
|
+
readonly radius: Record<import("../..").RadiusKey, import("../..").StyleFn<"root">>;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { PressableStateCallbackType, StyleProp, TextProps, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
+
import type { IconContextValue, IconProps } from '../../system/icon';
|
|
4
|
+
import type { PressableFeedbackProps } from '../../system/pressable-feedback';
|
|
5
|
+
import type { TextStyleProps, ViewStyleProps } from '../../system/style-props';
|
|
6
|
+
import type { RadiusKey } from '../../theme/theme.type';
|
|
7
|
+
export type MorphButtonSlot = 'root' | 'collapsed' | 'expanded' | 'label' | 'title' | 'description' | 'icon';
|
|
8
|
+
/**
|
|
9
|
+
* The `Button`'s union, unchanged: a `MorphButton` is a button, and the emphasis ladder it
|
|
10
|
+
* sits on is the same one. `success` and `warning` are absent here for the reason they are
|
|
11
|
+
* absent there — neither is an action, and a button is something you press.
|
|
12
|
+
*/
|
|
13
|
+
export type MorphButtonVariant = 'primary' | 'secondary' | 'default' | 'tertiary' | 'ghost' | 'danger' | 'danger-soft';
|
|
14
|
+
/**
|
|
15
|
+
* Three steps, not four. `xs` is a 32-point control, and a card that opens out of one has
|
|
16
|
+
* less room for its own padding than the padding it would need — the shape it morphs into
|
|
17
|
+
* would be a pill with two lines crammed in it.
|
|
18
|
+
*/
|
|
19
|
+
export type MorphButtonSize = 'sm' | 'md' | 'lg';
|
|
20
|
+
/**
|
|
21
|
+
* How the box travels between the two shapes. Three knobs, because that is what a spring
|
|
22
|
+
* is; anything past them is a different animation and therefore a different component.
|
|
23
|
+
*/
|
|
24
|
+
export type MorphSpring = {
|
|
25
|
+
stiffness?: number;
|
|
26
|
+
damping?: number;
|
|
27
|
+
mass?: number;
|
|
28
|
+
};
|
|
29
|
+
type MorphButtonOwnProps = {
|
|
30
|
+
variant?: MorphButtonVariant;
|
|
31
|
+
/** The collapsed height, the paddings, the gaps, the corner and the type. Never width. */
|
|
32
|
+
size?: MorphButtonSize;
|
|
33
|
+
/**
|
|
34
|
+
* Overrides the corner both shapes share. Unset, it is half the collapsed height — which
|
|
35
|
+
* is what makes the collapsed shape a pill and the expanded one a card, from one value.
|
|
36
|
+
*/
|
|
37
|
+
radius?: RadiusKey;
|
|
38
|
+
/** A raw tint (R7), landing where the variant put its tokens. */
|
|
39
|
+
color?: string;
|
|
40
|
+
/** Which shape it is in. Present means controlled. */
|
|
41
|
+
isExpanded?: boolean;
|
|
42
|
+
/** Which shape it is in at first mount. @default false */
|
|
43
|
+
defaultExpanded?: boolean;
|
|
44
|
+
onExpandedChange?: (isExpanded: boolean) => void;
|
|
45
|
+
/**
|
|
46
|
+
* `false` puts it in the other shape with no travel at all — the box jumps and the faces
|
|
47
|
+
* swap without a fade.
|
|
48
|
+
*/
|
|
49
|
+
animation?: boolean | MorphSpring;
|
|
50
|
+
isDisabled?: boolean;
|
|
51
|
+
/** R12 — merge into the single child instead of rendering a pressable. */
|
|
52
|
+
asChild?: boolean;
|
|
53
|
+
/** R9 — `Pressable`'s function form as much as an object or an array. */
|
|
54
|
+
style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
};
|
|
57
|
+
/** R14 — it renders a `PressableFeedback`, so it carries that node's style keys through it. */
|
|
58
|
+
export type MorphButtonProps = MorphButtonOwnProps & Omit<PressableFeedbackProps, 'isPressed' | 'layout' | 'style' | 'children' | keyof MorphButtonOwnProps>;
|
|
59
|
+
/** `View`'s own props win over the `ViewStyle` keys of the same name (R14). */
|
|
60
|
+
export type MorphButtonFaceProps = ViewProps & Omit<ViewStyleProps, keyof ViewProps> & {
|
|
61
|
+
children?: ReactNode;
|
|
62
|
+
};
|
|
63
|
+
/** `Text`'s own props win over the `TextStyle` keys of the same name (R14). */
|
|
64
|
+
export type MorphButtonTextProps = TextProps & Omit<TextStyleProps, keyof TextProps> & {
|
|
65
|
+
children?: ReactNode;
|
|
66
|
+
};
|
|
67
|
+
export type MorphButtonIconProps = IconProps;
|
|
68
|
+
/**
|
|
69
|
+
* R5 — resolved styles, not props for a slot to resolve a second time. The two faces are
|
|
70
|
+
* in here for the same reason the label is: each one is a cached `StyleSheet` reference
|
|
71
|
+
* the root already computed, and a face merges its own `style` on top of it.
|
|
72
|
+
*/
|
|
73
|
+
export type MorphButtonContextValue = {
|
|
74
|
+
collapsedStyle: StyleProp<ViewStyle>;
|
|
75
|
+
expandedStyle: StyleProp<ViewStyle>;
|
|
76
|
+
labelStyle: StyleProp<TextStyle>;
|
|
77
|
+
titleStyle: StyleProp<TextStyle>;
|
|
78
|
+
descriptionStyle: StyleProp<TextStyle>;
|
|
79
|
+
/**
|
|
80
|
+
* Values, not a style: `Icon` hands `size` and `color` to a third-party component, so
|
|
81
|
+
* the root flattens its icon slot once here rather than in every icon it contains.
|
|
82
|
+
*/
|
|
83
|
+
icon: IconContextValue;
|
|
84
|
+
/** Which face is mounted — the faces read it rather than being told by a prop. */
|
|
85
|
+
isExpanded: boolean;
|
|
86
|
+
/** Morphs it. A control inside a face is written against this, and it costs no state. */
|
|
87
|
+
toggle: () => void;
|
|
88
|
+
isDisabled: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Whether the faces fade as they swap. `animation={false}` has to reach them too, or the
|
|
91
|
+
* box would jump while the content still took a hundred and forty milliseconds to arrive.
|
|
92
|
+
*
|
|
93
|
+
* It is also `false` until the button has changed shape once, because Reanimated runs an
|
|
94
|
+
* `entering` animation on the first mount as well: without that, every button on a screen
|
|
95
|
+
* would fade its collapsed face in as the screen arrived.
|
|
96
|
+
*/
|
|
97
|
+
animation: boolean;
|
|
98
|
+
};
|
|
99
|
+
export {};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { PressableStateCallbackType, StyleProp, TextProps, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
+
import type { IconContextValue, IconProps } from '../../system/icon';
|
|
4
|
+
import type { PressableFeedbackProps } from '../../system/pressable-feedback';
|
|
5
|
+
import type { TextStyleProps, ViewStyleProps } from '../../system/style-props';
|
|
6
|
+
import type { RadiusKey } from '../../theme/theme.type';
|
|
7
|
+
export type MorphButtonSlot = 'root' | 'collapsed' | 'expanded' | 'label' | 'title' | 'description' | 'icon';
|
|
8
|
+
/**
|
|
9
|
+
* The `Button`'s union, unchanged: a `MorphButton` is a button, and the emphasis ladder it
|
|
10
|
+
* sits on is the same one. `success` and `warning` are absent here for the reason they are
|
|
11
|
+
* absent there — neither is an action, and a button is something you press.
|
|
12
|
+
*/
|
|
13
|
+
export type MorphButtonVariant = 'primary' | 'secondary' | 'default' | 'tertiary' | 'ghost' | 'danger' | 'danger-soft';
|
|
14
|
+
/**
|
|
15
|
+
* Three steps, not four. `xs` is a 32-point control, and a card that opens out of one has
|
|
16
|
+
* less room for its own padding than the padding it would need — the shape it morphs into
|
|
17
|
+
* would be a pill with two lines crammed in it.
|
|
18
|
+
*/
|
|
19
|
+
export type MorphButtonSize = 'sm' | 'md' | 'lg';
|
|
20
|
+
/**
|
|
21
|
+
* How the box travels between the two shapes. Three knobs, because that is what a spring
|
|
22
|
+
* is; anything past them is a different animation and therefore a different component.
|
|
23
|
+
*/
|
|
24
|
+
export type MorphSpring = {
|
|
25
|
+
stiffness?: number;
|
|
26
|
+
damping?: number;
|
|
27
|
+
mass?: number;
|
|
28
|
+
};
|
|
29
|
+
type MorphButtonOwnProps = {
|
|
30
|
+
variant?: MorphButtonVariant;
|
|
31
|
+
/** The collapsed height, the paddings, the gaps, the corner and the type. Never width. */
|
|
32
|
+
size?: MorphButtonSize;
|
|
33
|
+
/**
|
|
34
|
+
* Overrides the corner both shapes share. Unset, it is half the collapsed height — which
|
|
35
|
+
* is what makes the collapsed shape a pill and the expanded one a card, from one value.
|
|
36
|
+
*/
|
|
37
|
+
radius?: RadiusKey;
|
|
38
|
+
/** A raw tint (R7), landing where the variant put its tokens. */
|
|
39
|
+
color?: string;
|
|
40
|
+
/** Which shape it is in. Present means controlled. */
|
|
41
|
+
isExpanded?: boolean;
|
|
42
|
+
/** Which shape it is in at first mount. @default false */
|
|
43
|
+
defaultExpanded?: boolean;
|
|
44
|
+
onExpandedChange?: (isExpanded: boolean) => void;
|
|
45
|
+
/**
|
|
46
|
+
* `false` puts it in the other shape with no travel at all — the box jumps and the faces
|
|
47
|
+
* swap without a fade.
|
|
48
|
+
*/
|
|
49
|
+
animation?: boolean | MorphSpring;
|
|
50
|
+
isDisabled?: boolean;
|
|
51
|
+
/** R12 — merge into the single child instead of rendering a pressable. */
|
|
52
|
+
asChild?: boolean;
|
|
53
|
+
/** R9 — `Pressable`'s function form as much as an object or an array. */
|
|
54
|
+
style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
};
|
|
57
|
+
/** R14 — it renders a `PressableFeedback`, so it carries that node's style keys through it. */
|
|
58
|
+
export type MorphButtonProps = MorphButtonOwnProps & Omit<PressableFeedbackProps, 'isPressed' | 'layout' | 'style' | 'children' | keyof MorphButtonOwnProps>;
|
|
59
|
+
/** `View`'s own props win over the `ViewStyle` keys of the same name (R14). */
|
|
60
|
+
export type MorphButtonFaceProps = ViewProps & Omit<ViewStyleProps, keyof ViewProps> & {
|
|
61
|
+
children?: ReactNode;
|
|
62
|
+
};
|
|
63
|
+
/** `Text`'s own props win over the `TextStyle` keys of the same name (R14). */
|
|
64
|
+
export type MorphButtonTextProps = TextProps & Omit<TextStyleProps, keyof TextProps> & {
|
|
65
|
+
children?: ReactNode;
|
|
66
|
+
};
|
|
67
|
+
export type MorphButtonIconProps = IconProps;
|
|
68
|
+
/**
|
|
69
|
+
* R5 — resolved styles, not props for a slot to resolve a second time. The two faces are
|
|
70
|
+
* in here for the same reason the label is: each one is a cached `StyleSheet` reference
|
|
71
|
+
* the root already computed, and a face merges its own `style` on top of it.
|
|
72
|
+
*/
|
|
73
|
+
export type MorphButtonContextValue = {
|
|
74
|
+
collapsedStyle: StyleProp<ViewStyle>;
|
|
75
|
+
expandedStyle: StyleProp<ViewStyle>;
|
|
76
|
+
labelStyle: StyleProp<TextStyle>;
|
|
77
|
+
titleStyle: StyleProp<TextStyle>;
|
|
78
|
+
descriptionStyle: StyleProp<TextStyle>;
|
|
79
|
+
/**
|
|
80
|
+
* Values, not a style: `Icon` hands `size` and `color` to a third-party component, so
|
|
81
|
+
* the root flattens its icon slot once here rather than in every icon it contains.
|
|
82
|
+
*/
|
|
83
|
+
icon: IconContextValue;
|
|
84
|
+
/** Which face is mounted — the faces read it rather than being told by a prop. */
|
|
85
|
+
isExpanded: boolean;
|
|
86
|
+
/** Morphs it. A control inside a face is written against this, and it costs no state. */
|
|
87
|
+
toggle: () => void;
|
|
88
|
+
isDisabled: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Whether the faces fade as they swap. `animation={false}` has to reach them too, or the
|
|
91
|
+
* box would jump while the content still took a hundred and forty milliseconds to arrive.
|
|
92
|
+
*
|
|
93
|
+
* It is also `false` until the button has changed shape once, because Reanimated runs an
|
|
94
|
+
* `entering` animation on the first mount as well: without that, every button on a screen
|
|
95
|
+
* would fade its collapsed face in as the screen arrived.
|
|
96
|
+
*/
|
|
97
|
+
animation: boolean;
|
|
98
|
+
};
|
|
99
|
+
export {};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkPDSR42YCcjs = require('../../chunk-PDSR42YC.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ var _chunk4TG2OLEMcjs = require('../../chunk-4TG2OLEM.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkMPYBJSS7cjs = require('../../chunk-MPYBJSS7.cjs');
|
|
19
|
-
require('../../chunk-
|
|
19
|
+
require('../../chunk-OW4N2C3M.cjs');
|
|
20
20
|
require('../../chunk-7DPL3ZDS.cjs');
|
|
21
21
|
require('../../chunk-FHNIGHN5.cjs');
|
|
22
22
|
require('../../chunk-SL3V7R2Y.cjs');
|
|
@@ -41,4 +41,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
exports.NumberStepper =
|
|
44
|
+
exports.NumberStepper = _chunkPDSR42YCcjs.NumberStepper; exports.NumberStepperDecrement = _chunkPDSR42YCcjs.NumberStepperDecrement; exports.NumberStepperIncrement = _chunkPDSR42YCcjs.NumberStepperIncrement; exports.NumberStepperRoot = _chunkPDSR42YCcjs.NumberStepperRoot; exports.NumberStepperTrack = _chunkPDSR42YCcjs.NumberStepperTrack; exports.NumberStepperValue = _chunkPDSR42YCcjs.NumberStepperValue; exports.canStep = _chunkMPYBJSS7cjs.canStep; exports.clampNumber = _chunkMPYBJSS7cjs.clampNumber; exports.formatNumber = _chunkMPYBJSS7cjs.formatNumber; exports.numberMarks = _chunkMPYBJSS7cjs.numberMarks; exports.numberStepperRecipe = _chunkPDSR42YCcjs.numberStepperRecipe; exports.parseNumber = _chunkMPYBJSS7cjs.parseNumber; exports.stepNumber = _chunkMPYBJSS7cjs.stepNumber; exports.useNumberStepper = _chunkPDSR42YCcjs.useNumberStepper;
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
NumberStepperValue,
|
|
8
8
|
numberStepperRecipe,
|
|
9
9
|
useNumberStepper
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-WRZV6ORJ.js";
|
|
11
11
|
import {
|
|
12
12
|
canStep,
|
|
13
13
|
clampNumber,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
parseNumber,
|
|
17
17
|
stepNumber
|
|
18
18
|
} from "../../chunk-CG4NONIL.js";
|
|
19
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-2AFA5HA2.js";
|
|
20
20
|
import "../../chunk-423RQBOX.js";
|
|
21
21
|
import "../../chunk-WFZDAXDI.js";
|
|
22
22
|
import "../../chunk-DKVXTMIJ.js";
|
|
@@ -21,19 +21,19 @@ require('../../chunk-WLWZG2PA.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkIPD3IUE2cjs = require('../../chunk-IPD3IUE2.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
28
|
-
require('../../chunk-H2FTAU5C.cjs');
|
|
27
|
+
var _chunkLPJ3UBSOcjs = require('../../chunk-LPJ3UBSO.cjs');
|
|
29
28
|
require('../../chunk-XSQPVDFH.cjs');
|
|
29
|
+
require('../../chunk-H2FTAU5C.cjs');
|
|
30
30
|
require('../../chunk-WDDXU3OH.cjs');
|
|
31
31
|
require('../../chunk-EKS3W46M.cjs');
|
|
32
32
|
require('../../chunk-WFEMJCXO.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunk7EIHHOHPcjs = require('../../chunk-7EIHHOHP.cjs');
|
|
36
|
-
require('../../chunk-
|
|
36
|
+
require('../../chunk-OW4N2C3M.cjs');
|
|
37
37
|
require('../../chunk-7DPL3ZDS.cjs');
|
|
38
38
|
require('../../chunk-GSZDN6EZ.cjs');
|
|
39
39
|
require('../../chunk-FHNIGHN5.cjs');
|
|
@@ -189,7 +189,7 @@ var PhoneNumberFieldRoot = _react.forwardRef.call(void 0,
|
|
|
189
189
|
]
|
|
190
190
|
);
|
|
191
191
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PhoneNumberFieldProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
192
|
-
|
|
192
|
+
_chunkIPD3IUE2cjs.BottomSheet,
|
|
193
193
|
{
|
|
194
194
|
isOpen: context.isOpen,
|
|
195
195
|
onOpenChange: setOpen,
|
|
@@ -247,7 +247,7 @@ var PhoneNumberFieldCountry = _react.forwardRef.call(void 0, function PhoneNumbe
|
|
|
247
247
|
const { country } = usePhoneNumberField();
|
|
248
248
|
const { labelStyle } = _chunkAXKDHX5Vcjs.useTextField.call(void 0, );
|
|
249
249
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
250
|
-
|
|
250
|
+
_chunkIPD3IUE2cjs.BottomSheetTrigger,
|
|
251
251
|
{
|
|
252
252
|
ref,
|
|
253
253
|
asChild,
|
|
@@ -272,7 +272,7 @@ function PhoneNumberFieldContent({
|
|
|
272
272
|
}) {
|
|
273
273
|
const context = usePhoneNumberField();
|
|
274
274
|
const field = _chunkAXKDHX5Vcjs.useTextField.call(void 0, );
|
|
275
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
275
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIPD3IUE2cjs.BottomSheetContent, { ...props, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PhoneNumberFieldProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXKDHX5Vcjs.TextFieldProvider, { value: field, children }) }) });
|
|
276
276
|
}
|
|
277
277
|
PhoneNumberFieldContent.displayName = "XAUI.PhoneNumberField.Content";
|
|
278
278
|
|
|
@@ -318,7 +318,7 @@ var PhoneNumberFieldCountryList = _react.forwardRef.call(void 0, function PhoneN
|
|
|
318
318
|
data: filtered,
|
|
319
319
|
extraData: value.country,
|
|
320
320
|
renderItem: ({ item }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
321
|
-
|
|
321
|
+
_chunkLPJ3UBSOcjs.Button,
|
|
322
322
|
{
|
|
323
323
|
variant: "ghost",
|
|
324
324
|
justifyContent: "flex-start",
|
|
@@ -329,13 +329,13 @@ var PhoneNumberFieldCountryList = _react.forwardRef.call(void 0, function PhoneN
|
|
|
329
329
|
_reactnative.Keyboard.dismiss();
|
|
330
330
|
},
|
|
331
331
|
children: renderCountry ? renderCountry(item) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
332
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
332
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLPJ3UBSOcjs.Button.Label, { children: [
|
|
333
333
|
item.flag,
|
|
334
334
|
" +",
|
|
335
335
|
item.callingCode
|
|
336
336
|
] }),
|
|
337
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
338
|
-
item.code === value.country ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLPJ3UBSOcjs.Button.Label, { flex: 1, children: item.name }),
|
|
338
|
+
item.code === value.country ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLPJ3UBSOcjs.Button.Label, { children: "\u2713" }) : null
|
|
339
339
|
] })
|
|
340
340
|
}
|
|
341
341
|
)
|
|
@@ -351,11 +351,11 @@ var PhoneNumberField2 = Object.assign(PhoneNumberFieldRoot, {
|
|
|
351
351
|
Country: PhoneNumberFieldCountry,
|
|
352
352
|
Description: _chunkAXKDHX5Vcjs.TextFieldDescription,
|
|
353
353
|
Error: _chunkAXKDHX5Vcjs.TextFieldError,
|
|
354
|
-
Overlay:
|
|
354
|
+
Overlay: _chunkIPD3IUE2cjs.BottomSheetOverlay,
|
|
355
355
|
Content: PhoneNumberFieldContent,
|
|
356
|
-
Handle:
|
|
357
|
-
Title:
|
|
358
|
-
Close:
|
|
356
|
+
Handle: _chunkIPD3IUE2cjs.BottomSheetHandle,
|
|
357
|
+
Title: _chunkIPD3IUE2cjs.BottomSheetTitle,
|
|
358
|
+
Close: _chunkIPD3IUE2cjs.BottomSheetClose,
|
|
359
359
|
Search: PhoneNumberFieldSearch,
|
|
360
360
|
CountryList: PhoneNumberFieldCountryList
|
|
361
361
|
});
|
|
@@ -21,19 +21,19 @@ import {
|
|
|
21
21
|
BottomSheetOverlay,
|
|
22
22
|
BottomSheetTitle,
|
|
23
23
|
BottomSheetTrigger
|
|
24
|
-
} from "../../chunk-
|
|
24
|
+
} from "../../chunk-LECYGVIH.js";
|
|
25
25
|
import {
|
|
26
26
|
Button
|
|
27
|
-
} from "../../chunk-
|
|
28
|
-
import "../../chunk-7J3M62W5.js";
|
|
27
|
+
} from "../../chunk-V2CEKPJ6.js";
|
|
29
28
|
import "../../chunk-3GFRSZYR.js";
|
|
29
|
+
import "../../chunk-7J3M62W5.js";
|
|
30
30
|
import "../../chunk-2PMXMKS5.js";
|
|
31
31
|
import "../../chunk-64MXEVT3.js";
|
|
32
32
|
import "../../chunk-NCTOTTVW.js";
|
|
33
33
|
import {
|
|
34
34
|
useControllableState
|
|
35
35
|
} from "../../chunk-F6W3JQ7K.js";
|
|
36
|
-
import "../../chunk-
|
|
36
|
+
import "../../chunk-2AFA5HA2.js";
|
|
37
37
|
import "../../chunk-423RQBOX.js";
|
|
38
38
|
import "../../chunk-JN6IRT2M.js";
|
|
39
39
|
import "../../chunk-WFZDAXDI.js";
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkQN2D5ZCScjs = require('../../chunk-QN2D5ZCS.cjs');
|
|
13
13
|
require('../../chunk-GTR5X65M.cjs');
|
|
14
14
|
require('../../chunk-YVYYONTP.cjs');
|
|
15
15
|
require('../../chunk-WDDXU3OH.cjs');
|
|
16
16
|
require('../../chunk-EKS3W46M.cjs');
|
|
17
17
|
require('../../chunk-WFEMJCXO.cjs');
|
|
18
18
|
require('../../chunk-7EIHHOHP.cjs');
|
|
19
|
-
require('../../chunk-
|
|
19
|
+
require('../../chunk-OW4N2C3M.cjs');
|
|
20
20
|
require('../../chunk-7DPL3ZDS.cjs');
|
|
21
21
|
require('../../chunk-FHNIGHN5.cjs');
|
|
22
22
|
require('../../chunk-SL3V7R2Y.cjs');
|
|
@@ -37,4 +37,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
exports.Popover =
|
|
40
|
+
exports.Popover = _chunkQN2D5ZCScjs.Popover2; exports.PopoverClose = _chunkQN2D5ZCScjs.PopoverClose; exports.PopoverContent = _chunkQN2D5ZCScjs.PopoverContent; exports.PopoverDescription = _chunkQN2D5ZCScjs.PopoverDescription; exports.PopoverOverlay = _chunkQN2D5ZCScjs.PopoverOverlay; exports.PopoverRoot = _chunkQN2D5ZCScjs.Popover; exports.PopoverTitle = _chunkQN2D5ZCScjs.PopoverTitle; exports.PopoverTrigger = _chunkQN2D5ZCScjs.PopoverTrigger; exports.popoverRecipe = _chunkQN2D5ZCScjs.popoverRecipe; exports.usePopover = _chunkQN2D5ZCScjs.usePopover;
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
PopoverTrigger,
|
|
10
10
|
popoverRecipe,
|
|
11
11
|
usePopover
|
|
12
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-RXEUKYM5.js";
|
|
13
13
|
import "../../chunk-734MFAX4.js";
|
|
14
14
|
import "../../chunk-Z6FRP4EV.js";
|
|
15
15
|
import "../../chunk-2PMXMKS5.js";
|
|
16
16
|
import "../../chunk-64MXEVT3.js";
|
|
17
17
|
import "../../chunk-NCTOTTVW.js";
|
|
18
18
|
import "../../chunk-F6W3JQ7K.js";
|
|
19
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-2AFA5HA2.js";
|
|
20
20
|
import "../../chunk-423RQBOX.js";
|
|
21
21
|
import "../../chunk-WFZDAXDI.js";
|
|
22
22
|
import "../../chunk-DKVXTMIJ.js";
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkDYQB54JAcjs = require('../../chunk-DYQB54JA.cjs');
|
|
13
13
|
require('../../chunk-F6CQ6CBI.cjs');
|
|
14
14
|
require('../../chunk-7EIHHOHP.cjs');
|
|
15
|
-
require('../../chunk-
|
|
15
|
+
require('../../chunk-OW4N2C3M.cjs');
|
|
16
16
|
require('../../chunk-7DPL3ZDS.cjs');
|
|
17
17
|
require('../../chunk-FHNIGHN5.cjs');
|
|
18
18
|
require('../../chunk-SL3V7R2Y.cjs');
|
|
@@ -33,4 +33,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
exports.Radio =
|
|
36
|
+
exports.Radio = _chunkDYQB54JAcjs.Radio; exports.RadioGroup = _chunkDYQB54JAcjs.RadioGroup; exports.RadioGroupRoot = _chunkDYQB54JAcjs.RadioGroupRoot; exports.RadioIndicator = _chunkDYQB54JAcjs.RadioIndicator; exports.RadioLabel = _chunkDYQB54JAcjs.RadioLabel; exports.RadioRoot = _chunkDYQB54JAcjs.RadioRoot; exports.radioGroupRecipe = _chunkDYQB54JAcjs.radioGroupRecipe; exports.radioRecipe = _chunkDYQB54JAcjs.radioRecipe; exports.useRadio = _chunkDYQB54JAcjs.useRadio; exports.useRadioGroup = _chunkDYQB54JAcjs.useRadioGroup;
|
|
@@ -435,6 +435,7 @@ export declare const Radio: import("react").ForwardRefExoticComponent<{
|
|
|
435
435
|
android_ripple?: import("react-native").PressableAndroidRippleConfig | null | undefined;
|
|
436
436
|
testOnly_pressed?: null | boolean | undefined | undefined;
|
|
437
437
|
unstable_pressDelay?: number | undefined | undefined;
|
|
438
|
+
layout?: import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").LayoutAnimationFunction | typeof import("react-native-reanimated").BaseAnimationBuilder | undefined;
|
|
438
439
|
asChild?: boolean | undefined;
|
|
439
440
|
} & Omit<import("../..").ViewStyleProps, keyof {
|
|
440
441
|
variant?: import("./radio.type").RadioVariant;
|
|
@@ -435,6 +435,7 @@ export declare const Radio: import("react").ForwardRefExoticComponent<{
|
|
|
435
435
|
android_ripple?: import("react-native").PressableAndroidRippleConfig | null | undefined;
|
|
436
436
|
testOnly_pressed?: null | boolean | undefined | undefined;
|
|
437
437
|
unstable_pressDelay?: number | undefined | undefined;
|
|
438
|
+
layout?: import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").LayoutAnimationFunction | typeof import("react-native-reanimated").BaseAnimationBuilder | undefined;
|
|
438
439
|
asChild?: boolean | undefined;
|
|
439
440
|
} & Omit<import("../..").ViewStyleProps, keyof {
|
|
440
441
|
variant?: import("./radio.type").RadioVariant;
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
radioRecipe,
|
|
10
10
|
useRadio,
|
|
11
11
|
useRadioGroup
|
|
12
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-TPYOQSKT.js";
|
|
13
13
|
import "../../chunk-BA2DBSAN.js";
|
|
14
14
|
import "../../chunk-F6W3JQ7K.js";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-2AFA5HA2.js";
|
|
16
16
|
import "../../chunk-423RQBOX.js";
|
|
17
17
|
import "../../chunk-WFZDAXDI.js";
|
|
18
18
|
import "../../chunk-DKVXTMIJ.js";
|
|
@@ -468,6 +468,7 @@ export declare const RadioRoot: import("react").ForwardRefExoticComponent<{
|
|
|
468
468
|
android_ripple?: import("react-native").PressableAndroidRippleConfig | null | undefined;
|
|
469
469
|
testOnly_pressed?: null | boolean | undefined | undefined;
|
|
470
470
|
unstable_pressDelay?: number | undefined | undefined;
|
|
471
|
+
layout?: import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").LayoutAnimationFunction | typeof import("react-native-reanimated").BaseAnimationBuilder | undefined;
|
|
471
472
|
asChild?: boolean | undefined;
|
|
472
473
|
} & Omit<import("../..").ViewStyleProps, keyof {
|
|
473
474
|
variant?: import("./radio.type").RadioVariant;
|
|
@@ -468,6 +468,7 @@ export declare const RadioRoot: import("react").ForwardRefExoticComponent<{
|
|
|
468
468
|
android_ripple?: import("react-native").PressableAndroidRippleConfig | null | undefined;
|
|
469
469
|
testOnly_pressed?: null | boolean | undefined | undefined;
|
|
470
470
|
unstable_pressDelay?: number | undefined | undefined;
|
|
471
|
+
layout?: import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").LayoutAnimationFunction | typeof import("react-native-reanimated").BaseAnimationBuilder | undefined;
|
|
471
472
|
asChild?: boolean | undefined;
|
|
472
473
|
} & Omit<import("../..").ViewStyleProps, keyof {
|
|
473
474
|
variant?: import("./radio.type").RadioVariant;
|