@trilogy-ds/react 0.0.20-esm-cjs → 0.0.23-esm-cjs
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/lib/{chunk-7ZANYDV4.mjs → chunk-2BQXWN3R.mjs} +1 -1
- package/lib/{chunk-WV5PBU2C.mjs → chunk-2DMJIJTD.mjs} +17 -5
- package/lib/{chunk-MDZE2AV3.mjs → chunk-2EF72O53.mjs} +15 -8
- package/lib/{chunk-G2QCDZEE.mjs → chunk-33VIHGIE.mjs} +1 -1
- package/lib/{chunk-JB7AXJFO.mjs → chunk-3CUMNA5T.mjs} +16 -4
- package/lib/{chunk-27BK6EVC.mjs → chunk-3QN2JTJH.mjs} +3 -3
- package/lib/{chunk-IT2ZBSQG.mjs → chunk-3TFMB2ZU.mjs} +16 -7
- package/lib/{chunk-POCUFCQC.mjs → chunk-4J6WJU6H.mjs} +1 -1
- package/lib/chunk-4LBDW7MG.mjs +320 -0
- package/lib/{chunk-UPP3GX33.mjs → chunk-5NCBENYK.mjs} +16 -6
- package/lib/{chunk-B6D5UHOQ.mjs → chunk-6WPEEBMC.mjs} +1 -1
- package/lib/{chunk-ZRWNSZC6.mjs → chunk-6YU73H5M.mjs} +1 -1
- package/lib/chunk-7DJ5V2J7.mjs +90 -0
- package/lib/chunk-7HQWD2HW.mjs +635 -0
- package/lib/{chunk-ZSBVX26X.mjs → chunk-7LIZKR65.mjs} +1 -1
- package/lib/{chunk-T4AH7FLU.mjs → chunk-AVYI3IRF.mjs} +1 -1
- package/lib/{chunk-IOXFCPJQ.mjs → chunk-BNFC4BW2.mjs} +1 -1
- package/lib/{chunk-U2STNP4N.mjs → chunk-CKEC5R4P.mjs} +1 -1
- package/lib/{chunk-Q3NP4BBO.mjs → chunk-CU2FQJB3.mjs} +2 -2
- package/lib/{chunk-TCRJL43C.mjs → chunk-DB4LE4EW.mjs} +2 -2
- package/lib/{chunk-5ALKJFH4.mjs → chunk-DJQD6XHB.mjs} +1 -1
- package/lib/{chunk-LQ2EKGFZ.mjs → chunk-DOYDNMGO.mjs} +1 -1
- package/lib/{chunk-UC3N6X6R.mjs → chunk-DTG6ZDOA.mjs} +1 -1
- package/lib/{chunk-XZCE64VV.mjs → chunk-EFI4OPOL.mjs} +1 -1
- package/lib/{chunk-2MP6W4C2.mjs → chunk-EIBKS56D.mjs} +4 -4
- package/lib/{chunk-432FETUO.mjs → chunk-EKMGL7ZZ.mjs} +1 -1
- package/lib/{chunk-3I74MN5M.mjs → chunk-FADGUVGS.mjs} +2 -2
- package/lib/{chunk-M5W5FRMF.mjs → chunk-FKLCZFMR.mjs} +2 -2
- package/lib/{chunk-IHTDJ5DD.mjs → chunk-GQOES35K.mjs} +2 -2
- package/lib/{chunk-ZEEM3OU3.mjs → chunk-HS7PWFF3.mjs} +3 -3
- package/lib/{chunk-X5HHW5EE.mjs → chunk-HZAMMVDY.mjs} +3 -3
- package/lib/{chunk-LJ4LZ3UC.mjs → chunk-ILTCTVY7.mjs} +1 -1
- package/lib/{chunk-HPM5H4HF.mjs → chunk-INMX4E34.mjs} +1 -1
- package/lib/{chunk-ACDIJOLY.mjs → chunk-IZYESQPA.mjs} +12 -5
- package/lib/{chunk-I3LRGLUL.mjs → chunk-J2YGXNIH.mjs} +3 -3
- package/lib/{chunk-67BVHO7H.mjs → chunk-JDIKK2K5.mjs} +2 -2
- package/lib/chunk-JJA6BOVR.mjs +12 -0
- package/lib/{chunk-BIWBGSDJ.mjs → chunk-KPIWEUFQ.mjs} +1 -1
- package/lib/{chunk-NKO25SIM.mjs → chunk-KRZWEBDP.mjs} +2 -2
- package/lib/chunk-LHDHBH5T.mjs +1 -0
- package/lib/{chunk-SFL4T7RS.mjs → chunk-MIEXUCOH.mjs} +1 -1
- package/lib/{chunk-Y4CLZAPU.mjs → chunk-MR7AJAP2.mjs} +2 -2
- package/lib/{chunk-VSYM7BJ4.mjs → chunk-MV3N2D6T.mjs} +1 -1
- package/lib/{chunk-CCIRXOIR.mjs → chunk-NHN7GU32.mjs} +2 -2
- package/lib/{chunk-RVRMMLZJ.mjs → chunk-NPCDCOTL.mjs} +2 -2
- package/lib/{chunk-I4RR2QN7.mjs → chunk-OQ6PNNED.mjs} +2 -2
- package/lib/{chunk-QNDMUIJM.mjs → chunk-PZ2SAVMT.mjs} +2 -2
- package/lib/{chunk-573KW52P.mjs → chunk-PZP5ZUI3.mjs} +1 -1
- package/lib/chunk-RA7237YI.mjs +84 -0
- package/lib/{chunk-YSBY3XJC.mjs → chunk-RAQQH2DI.mjs} +1 -1
- package/lib/{chunk-K5D3QU3U.mjs → chunk-RGEGLOEG.mjs} +2 -2
- package/lib/{chunk-Y6VHQF2J.mjs → chunk-SOW7WGY7.mjs} +1 -1
- package/lib/{chunk-QIEADZWY.mjs → chunk-T27AVHAC.mjs} +1 -1
- package/lib/{chunk-UTXKOHCM.mjs → chunk-T2NWMSDU.mjs} +3 -3
- package/lib/{chunk-KUVBW2U7.mjs → chunk-THX2YDD5.mjs} +1 -1
- package/lib/{chunk-VL2UCFFK.mjs → chunk-TXKGISWW.mjs} +2 -2
- package/lib/{chunk-NE4WGXUM.mjs → chunk-TZFHL54Q.mjs} +1 -1
- package/lib/{chunk-QTEMHSK5.mjs → chunk-UIJLFZYF.mjs} +1 -1
- package/lib/{chunk-5NJMUSWY.mjs → chunk-UMCBNLSL.mjs} +1 -1
- package/lib/{chunk-DWZ232Q2.mjs → chunk-UQSQUPSK.mjs} +2 -2
- package/lib/chunk-UZO5VCH2.mjs +1 -0
- package/lib/{chunk-TPXCSXWT.mjs → chunk-VXYPRBJB.mjs} +3 -3
- package/lib/{chunk-5DY6WPCA.mjs → chunk-WWBPXBJT.mjs} +2 -2
- package/lib/{chunk-7TEPMZRL.mjs → chunk-XRN2HE4L.mjs} +1 -1
- package/lib/{chunk-23RKW2TY.mjs → chunk-Z44CCSOP.mjs} +1 -1
- package/lib/{chunk-JDLZGLZJ.mjs → chunk-Z7AZ74DI.mjs} +2 -2
- package/lib/components/accordion/index.mjs +3 -3
- package/lib/components/accordion/index.native.js +54 -37
- package/lib/components/accordion/index.native.mjs +9 -6
- package/lib/components/accordion/item/AccordionItem.native.js +48 -31
- package/lib/components/accordion/item/AccordionItem.native.mjs +6 -3
- package/lib/components/accordion/item/index.native.js +48 -31
- package/lib/components/accordion/item/index.native.mjs +6 -3
- package/lib/components/alert/Alert.mjs +2 -2
- package/lib/components/alert/Alert.native.js +138 -115
- package/lib/components/alert/Alert.native.mjs +19 -16
- package/lib/components/alert/index.mjs +2 -2
- package/lib/components/alert/index.native.js +138 -115
- package/lib/components/alert/index.native.mjs +19 -16
- package/lib/components/autocomplete/AutoComplete.mjs +15 -15
- package/lib/components/autocomplete/AutoComplete.native.js +158 -142
- package/lib/components/autocomplete/AutoComplete.native.mjs +21 -18
- package/lib/components/autocomplete/index.mjs +17 -17
- package/lib/components/autocomplete/index.native.js +166 -150
- package/lib/components/autocomplete/index.native.mjs +26 -23
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js +67 -87
- package/lib/components/autocomplete/item/AutoCompleteIem.native.mjs +7 -5
- package/lib/components/autocomplete/item/AutoCompleteItem.mjs +1 -1
- package/lib/components/autocomplete/item/index.mjs +2 -2
- package/lib/components/autocomplete/item/index.native.js +67 -87
- package/lib/components/autocomplete/item/index.native.mjs +7 -5
- package/lib/components/autocomplete/menu/AutoCompleteMenu.mjs +1 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js +118 -102
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.mjs +18 -15
- package/lib/components/autocomplete/menu/index.mjs +1 -1
- package/lib/components/autocomplete/menu/index.native.js +118 -102
- package/lib/components/autocomplete/menu/index.native.mjs +18 -15
- package/lib/components/autolayout/AutoLayout/AutoLayout.native.mjs +2 -2
- package/lib/components/autolayout/AutoLayout/index.native.mjs +2 -2
- package/lib/components/autolayout/AutoLayoutWrapper/index.native.mjs +3 -3
- package/lib/components/autolayout/index.mjs +3 -3
- package/lib/components/autolayout/index.native.mjs +3 -3
- package/lib/components/badge/Badge.mjs +1 -1
- package/lib/components/badge/Badge.native.js +37 -20
- package/lib/components/badge/Badge.native.mjs +16 -13
- package/lib/components/badge/index.mjs +1 -1
- package/lib/components/badge/index.native.js +37 -20
- package/lib/components/badge/index.native.mjs +16 -13
- package/lib/components/box/Box.native.js +34 -16
- package/lib/components/box/Box.native.mjs +5 -2
- package/lib/components/box/content/BoxContent.mjs +1 -1
- package/lib/components/box/content/index.mjs +1 -1
- package/lib/components/box/footer/BoxFooter.mjs +1 -1
- package/lib/components/box/footer/BoxFooter.native.js +34 -17
- package/lib/components/box/footer/BoxFooter.native.mjs +15 -12
- package/lib/components/box/footer/index.mjs +1 -1
- package/lib/components/box/footer/index.native.js +34 -17
- package/lib/components/box/footer/index.native.mjs +15 -12
- package/lib/components/box/header/BoxHeader.mjs +1 -1
- package/lib/components/box/header/BoxHeader.native.mjs +2 -2
- package/lib/components/box/header/index.mjs +1 -1
- package/lib/components/box/header/index.native.mjs +2 -2
- package/lib/components/box/index.mjs +9 -9
- package/lib/components/box/index.native.js +75 -49
- package/lib/components/box/index.native.mjs +22 -19
- package/lib/components/breadcrumb/Breadcrumb.native.js +34 -17
- package/lib/components/breadcrumb/Breadcrumb.native.mjs +6 -3
- package/lib/components/breadcrumb/index.mjs +1 -1
- package/lib/components/breadcrumb/index.native.js +94 -78
- package/lib/components/breadcrumb/index.native.mjs +9 -6
- package/lib/components/breadcrumb/item/BreadcrumbItem.mjs +1 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +71 -91
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.mjs +7 -5
- package/lib/components/breadcrumb/item/index.mjs +1 -1
- package/lib/components/breadcrumb/item/index.native.js +71 -91
- package/lib/components/breadcrumb/item/index.native.mjs +7 -5
- package/lib/components/button/Button.mjs +1 -1
- package/lib/components/button/Button.native.js +50 -33
- package/lib/components/button/Button.native.mjs +16 -13
- package/lib/components/button/index.mjs +1 -1
- package/lib/components/button/index.native.js +53 -36
- package/lib/components/button/index.native.mjs +16 -13
- package/lib/components/button/list/ButtonList.mjs +1 -1
- package/lib/components/button/list/index.mjs +1 -1
- package/lib/components/calendar/Calendar.js +15 -3
- package/lib/components/calendar/Calendar.mjs +15 -15
- package/lib/components/calendar/Calendar.native.d.mts +15 -2
- package/lib/components/calendar/Calendar.native.d.ts +15 -2
- package/lib/components/calendar/Calendar.native.js +945 -3
- package/lib/components/calendar/Calendar.native.mjs +23 -1
- package/lib/components/calendar/index.js +15 -3
- package/lib/components/calendar/index.mjs +15 -15
- package/lib/components/calendar/index.native.js +943 -3
- package/lib/components/calendar/index.native.mjs +23 -1
- package/lib/components/card/Card.native.js +33 -43
- package/lib/components/card/Card.native.mjs +5 -3
- package/lib/components/card/content/CardContent.native.js +39 -49
- package/lib/components/card/content/CardContent.native.mjs +6 -4
- package/lib/components/card/content/index.native.js +39 -49
- package/lib/components/card/content/index.native.mjs +6 -4
- package/lib/components/card/image/CardImage.native.js +44 -54
- package/lib/components/card/image/CardImage.native.mjs +6 -4
- package/lib/components/card/image/index.native.js +44 -54
- package/lib/components/card/image/index.native.mjs +6 -4
- package/lib/components/card/index.mjs +1 -1
- package/lib/components/card/index.native.js +50 -60
- package/lib/components/card/index.native.mjs +7 -5
- package/lib/components/checkbox/Checkbox.native.js +92 -76
- package/lib/components/checkbox/Checkbox.native.mjs +8 -5
- package/lib/components/checkbox/index.mjs +15 -15
- package/lib/components/checkbox/index.native.js +139 -123
- package/lib/components/checkbox/index.native.mjs +25 -22
- package/lib/components/checkbox/list/CheckboxList.mjs +12 -12
- package/lib/components/checkbox/list/CheckboxList.native.js +71 -91
- package/lib/components/checkbox/list/CheckboxList.native.mjs +10 -8
- package/lib/components/checkbox/list/index.mjs +12 -12
- package/lib/components/checkbox/list/index.native.js +71 -91
- package/lib/components/checkbox/list/index.native.mjs +10 -8
- package/lib/components/checkbox/tiles/tile/CheckboxTile.mjs +12 -12
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.js +107 -91
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.mjs +18 -15
- package/lib/components/checkbox/tiles/tile/index.mjs +12 -12
- package/lib/components/checkbox/tiles/tile/index.native.js +107 -91
- package/lib/components/checkbox/tiles/tile/index.native.mjs +18 -15
- package/lib/components/chips/Chips.native.js +125 -109
- package/lib/components/chips/Chips.native.mjs +8 -5
- package/lib/components/chips/index.native.js +125 -109
- package/lib/components/chips/index.native.mjs +8 -5
- package/lib/components/columns/column/Column.native.js +40 -23
- package/lib/components/columns/column/Column.native.mjs +15 -12
- package/lib/components/columns/column/index.native.js +40 -23
- package/lib/components/columns/column/index.native.mjs +15 -12
- package/lib/components/columns/index.native.js +40 -23
- package/lib/components/columns/index.native.mjs +15 -12
- package/lib/components/countdown/Countdown.native.js +74 -94
- package/lib/components/countdown/Countdown.native.mjs +7 -5
- package/lib/components/countdown/index.native.js +74 -94
- package/lib/components/countdown/index.native.mjs +7 -5
- package/lib/components/datepicker/DatePicker.js +15 -3
- package/lib/components/datepicker/DatePicker.mjs +17 -17
- package/lib/components/datepicker/DatePicker.native.d.mts +18 -2
- package/lib/components/datepicker/DatePicker.native.d.ts +18 -2
- package/lib/components/datepicker/DatePicker.native.js +1248 -3
- package/lib/components/datepicker/DatePicker.native.mjs +26 -1
- package/lib/components/datepicker/index.js +15 -3
- package/lib/components/datepicker/index.mjs +17 -17
- package/lib/components/datepicker/index.native.js +1247 -4
- package/lib/components/datepicker/index.native.mjs +26 -1
- package/lib/components/divider/Divider.mjs +1 -1
- package/lib/components/divider/Divider.native.js +98 -82
- package/lib/components/divider/Divider.native.mjs +8 -5
- package/lib/components/divider/index.mjs +1 -1
- package/lib/components/divider/index.native.js +98 -82
- package/lib/components/divider/index.native.mjs +8 -5
- package/lib/components/fab/Fab.mjs +1 -1
- package/lib/components/fab/Fab.native.js +92 -76
- package/lib/components/fab/Fab.native.mjs +17 -14
- package/lib/components/fab/index.mjs +1 -1
- package/lib/components/fab/index.native.js +92 -76
- package/lib/components/fab/index.native.mjs +17 -14
- package/lib/components/flex-box/FlexBox.native.js +53 -36
- package/lib/components/flex-box/FlexBox.native.mjs +15 -12
- package/lib/components/flex-box/index.native.js +59 -42
- package/lib/components/flex-box/index.native.mjs +15 -12
- package/lib/components/hero/Hero.native.js +87 -61
- package/lib/components/hero/Hero.native.mjs +20 -17
- package/lib/components/hero/index.native.js +87 -61
- package/lib/components/hero/index.native.mjs +20 -17
- package/lib/components/icon/Icon.mjs +1 -1
- package/lib/components/icon/Icon.native.js +30 -13
- package/lib/components/icon/Icon.native.mjs +5 -2
- package/lib/components/icon/index.mjs +1 -1
- package/lib/components/icon/index.native.js +30 -13
- package/lib/components/icon/index.native.mjs +5 -2
- package/lib/components/image/Image.mjs +12 -12
- package/lib/components/image/index.mjs +12 -12
- package/lib/components/index.d.mts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +144 -123
- package/lib/components/index.mjs +85 -79
- package/lib/components/index.native.js +1926 -968
- package/lib/components/index.native.mjs +120 -117
- package/lib/components/input/Input.mjs +12 -12
- package/lib/components/input/Input.native.js +143 -127
- package/lib/components/input/Input.native.mjs +18 -15
- package/lib/components/input/gauge/InputGauge.mjs +12 -12
- package/lib/components/input/gauge/InputGauge.native.js +108 -92
- package/lib/components/input/gauge/InputGauge.native.mjs +17 -14
- package/lib/components/input/gauge/hook/useGauge.mjs +12 -12
- package/lib/components/input/gauge/hook/useGauge.native.js +44 -27
- package/lib/components/input/gauge/hook/useGauge.native.mjs +15 -12
- package/lib/components/input/index.mjs +12 -12
- package/lib/components/input/index.native.js +143 -127
- package/lib/components/input/index.native.mjs +18 -15
- package/lib/components/link/Link.mjs +1 -1
- package/lib/components/link/Link.native.js +37 -20
- package/lib/components/link/Link.native.mjs +6 -3
- package/lib/components/link/index.mjs +1 -1
- package/lib/components/link/index.native.js +37 -20
- package/lib/components/link/index.native.mjs +6 -3
- package/lib/components/list/index.mjs +12 -12
- package/lib/components/list/index.native.js +95 -79
- package/lib/components/list/index.native.mjs +18 -15
- package/lib/components/list/item/ListItem.mjs +12 -12
- package/lib/components/list/item/ListItem.native.js +97 -81
- package/lib/components/list/item/ListItem.native.mjs +17 -14
- package/lib/components/list/item/description/ListItemDescription.mjs +1 -1
- package/lib/components/list/item/description/ListItemDescription.native.js +125 -109
- package/lib/components/list/item/description/ListItemDescription.native.mjs +17 -14
- package/lib/components/list/item/description/index.mjs +1 -1
- package/lib/components/list/item/description/index.native.js +125 -109
- package/lib/components/list/item/description/index.native.mjs +17 -14
- package/lib/components/list/item/index.mjs +12 -12
- package/lib/components/list/item/index.native.js +97 -81
- package/lib/components/list/item/index.native.mjs +18 -15
- package/lib/components/modal/Modal.mjs +2 -2
- package/lib/components/modal/Modal.native.js +81 -57
- package/lib/components/modal/Modal.native.mjs +18 -15
- package/lib/components/modal/body/ModalBody.mjs +1 -1
- package/lib/components/modal/body/ModalBody.native.js +38 -21
- package/lib/components/modal/body/ModalBody.native.mjs +15 -12
- package/lib/components/modal/body/index.native.js +38 -21
- package/lib/components/modal/body/index.native.mjs +15 -12
- package/lib/components/modal/footer/ModalFooter.mjs +1 -1
- package/lib/components/modal/footer/ModalFooter.native.js +82 -58
- package/lib/components/modal/footer/ModalFooter.native.mjs +18 -15
- package/lib/components/modal/footer/index.native.js +82 -58
- package/lib/components/modal/footer/index.native.mjs +18 -15
- package/lib/components/modal/index.mjs +2 -2
- package/lib/components/modal/index.native.js +91 -67
- package/lib/components/modal/index.native.mjs +22 -19
- package/lib/components/otp/Otp.mjs +1 -1
- package/lib/components/otp/Otp.native.js +112 -89
- package/lib/components/otp/Otp.native.mjs +19 -16
- package/lib/components/otp/index.mjs +1 -1
- package/lib/components/otp/index.native.js +112 -89
- package/lib/components/otp/index.native.mjs +19 -16
- package/lib/components/pagination/Pagination.mjs +1 -1
- package/lib/components/pagination/Pagination.native.js +100 -84
- package/lib/components/pagination/Pagination.native.mjs +8 -5
- package/lib/components/pagination/index.mjs +1 -1
- package/lib/components/pagination/index.native.js +100 -84
- package/lib/components/pagination/index.native.mjs +8 -5
- package/lib/components/popover/Popover.native.js +38 -21
- package/lib/components/popover/Popover.native.mjs +15 -12
- package/lib/components/popover/index.native.js +38 -21
- package/lib/components/popover/index.native.mjs +15 -12
- package/lib/components/price/Price.mjs +12 -12
- package/lib/components/price/Price.native.js +39 -22
- package/lib/components/price/Price.native.mjs +16 -13
- package/lib/components/price/index.mjs +12 -12
- package/lib/components/price/index.native.js +39 -22
- package/lib/components/price/index.native.mjs +16 -13
- package/lib/components/product-tour/ProductTour.mjs +1 -1
- package/lib/components/product-tour/index.mjs +1 -1
- package/lib/components/progress/Progress.mjs +12 -12
- package/lib/components/progress/Progress.native.js +128 -112
- package/lib/components/progress/Progress.native.mjs +17 -14
- package/lib/components/progress/index.mjs +17 -17
- package/lib/components/progress/index.native.js +158 -135
- package/lib/components/progress/index.native.mjs +21 -18
- package/lib/components/progress/item/ProgressItem.mjs +12 -12
- package/lib/components/progress/item/index.mjs +12 -12
- package/lib/components/progress/radial/ProgressRadial.mjs +2 -2
- package/lib/components/progress/radial/ProgressRadial.native.js +137 -114
- package/lib/components/progress/radial/ProgressRadial.native.mjs +17 -14
- package/lib/components/progress/radial/index.mjs +2 -2
- package/lib/components/progress/radial/index.native.js +137 -114
- package/lib/components/progress/radial/index.native.mjs +17 -14
- package/lib/components/progress/radial/item/ProgressRadialtem.mjs +1 -1
- package/lib/components/progress/radial/item/index.mjs +1 -1
- package/lib/components/radio/Radio.native.js +116 -100
- package/lib/components/radio/Radio.native.mjs +17 -14
- package/lib/components/radio/index.mjs +13 -13
- package/lib/components/radio/index.native.js +131 -115
- package/lib/components/radio/index.native.mjs +23 -20
- package/lib/components/radio/list/RadioList.mjs +12 -12
- package/lib/components/radio/list/RadioList.native.mjs +5 -5
- package/lib/components/radio/list/index.mjs +12 -12
- package/lib/components/radio/list/index.native.mjs +5 -5
- package/lib/components/radio/tiles/RadioTiles.mjs +12 -12
- package/lib/components/radio/tiles/index.mjs +12 -12
- package/lib/components/radio/tiles/tile/RadioTile.mjs +12 -12
- package/lib/components/radio/tiles/tile/RadioTile.native.js +101 -85
- package/lib/components/radio/tiles/tile/RadioTile.native.mjs +18 -15
- package/lib/components/radio/tiles/tile/index.mjs +12 -12
- package/lib/components/radio/tiles/tile/index.native.js +101 -85
- package/lib/components/radio/tiles/tile/index.native.mjs +18 -15
- package/lib/components/range/Range.mjs +12 -12
- package/lib/components/range/Range.native.js +95 -79
- package/lib/components/range/Range.native.mjs +17 -14
- package/lib/components/range/index.mjs +12 -12
- package/lib/components/range/index.native.js +95 -79
- package/lib/components/range/index.native.mjs +17 -14
- package/lib/components/rows/Rows.mjs +1 -1
- package/lib/components/rows/index.mjs +1 -1
- package/lib/components/rows/row/Row.mjs +1 -1
- package/lib/components/rows/row/index.mjs +1 -1
- package/lib/components/scroll-view/ScrollView.mjs +12 -12
- package/lib/components/scroll-view/ScrollView.native.js +42 -25
- package/lib/components/scroll-view/ScrollView.native.mjs +15 -12
- package/lib/components/scroll-view/index.mjs +12 -12
- package/lib/components/scroll-view/index.native.js +42 -25
- package/lib/components/scroll-view/index.native.mjs +15 -12
- package/lib/components/section/Section.mjs +12 -12
- package/lib/components/section/Section.native.js +36 -19
- package/lib/components/section/Section.native.mjs +15 -12
- package/lib/components/section/index.mjs +12 -12
- package/lib/components/section/index.native.js +36 -19
- package/lib/components/section/index.native.mjs +15 -12
- package/lib/components/segment-control/SegmentControl.mjs +12 -12
- package/lib/components/segment-control/SegmentControl.native.js +136 -120
- package/lib/components/segment-control/SegmentControl.native.mjs +18 -15
- package/lib/components/segment-control/index.mjs +12 -12
- package/lib/components/segment-control/index.native.js +142 -126
- package/lib/components/segment-control/index.native.mjs +18 -15
- package/lib/components/segment-control/item/SegmentControlItem.mjs +1 -1
- package/lib/components/segment-control/item/index.mjs +1 -1
- package/lib/components/select/Select.mjs +14 -14
- package/lib/components/select/Select.native.js +228 -205
- package/lib/components/select/Select.native.mjs +26 -23
- package/lib/components/select/index.mjs +14 -14
- package/lib/components/select/index.native.js +228 -205
- package/lib/components/select/index.native.mjs +26 -23
- package/lib/components/select/option/SelectOption.mjs +1 -1
- package/lib/components/select/option/SelectOption.native.js +102 -86
- package/lib/components/select/option/SelectOption.native.mjs +17 -14
- package/lib/components/select/option/index.mjs +1 -1
- package/lib/components/select/option/index.native.js +102 -86
- package/lib/components/select/option/index.native.mjs +18 -15
- package/lib/components/select/web/SelectDynamic.mjs +12 -12
- package/lib/components/select/web/SelectNative.mjs +14 -14
- package/lib/components/select/web/index.mjs +15 -15
- package/lib/components/skeleton/Skeleton.d.mts +4 -0
- package/lib/components/skeleton/Skeleton.d.ts +4 -0
- package/lib/components/skeleton/Skeleton.js +41 -0
- package/lib/components/skeleton/Skeleton.mjs +8 -0
- package/lib/components/skeleton/Skeleton.native.d.mts +4 -0
- package/lib/components/skeleton/Skeleton.native.d.ts +4 -0
- package/lib/components/skeleton/Skeleton.native.js +119 -0
- package/lib/components/skeleton/Skeleton.native.mjs +8 -0
- package/lib/components/skeleton/SkeletonProps.d.mts +13 -0
- package/lib/components/skeleton/SkeletonProps.d.ts +13 -0
- package/lib/components/skeleton/SkeletonProps.js +19 -0
- package/lib/components/skeleton/SkeletonProps.mjs +2 -0
- package/lib/components/skeleton/SkeletonPropsDefaults.js +80 -0
- package/lib/components/skeleton/index.d.mts +3 -0
- package/lib/components/skeleton/index.d.ts +3 -0
- package/lib/components/skeleton/index.js +47 -0
- package/lib/components/skeleton/index.mjs +10 -0
- package/lib/components/skeleton/index.native.d.mts +3 -0
- package/lib/components/skeleton/index.native.d.ts +3 -0
- package/lib/components/skeleton/index.native.js +125 -0
- package/lib/components/skeleton/index.native.mjs +9 -0
- package/lib/components/stepper/Stepper.mjs +1 -1
- package/lib/components/stepper/Stepper.native.js +92 -76
- package/lib/components/stepper/Stepper.native.mjs +17 -14
- package/lib/components/stepper/index.mjs +1 -1
- package/lib/components/stepper/index.native.js +97 -81
- package/lib/components/stepper/index.native.mjs +17 -14
- package/lib/components/stepper/step/Step.mjs +1 -1
- package/lib/components/stepper/step/Step.native.js +36 -19
- package/lib/components/stepper/step/Step.native.mjs +15 -12
- package/lib/components/stepper/step/index.mjs +1 -1
- package/lib/components/stepper/step/index.native.js +36 -19
- package/lib/components/stepper/step/index.native.mjs +15 -12
- package/lib/components/sticker/Sticker.mjs +12 -12
- package/lib/components/sticker/Sticker.native.js +89 -73
- package/lib/components/sticker/Sticker.native.mjs +17 -14
- package/lib/components/sticker/index.mjs +12 -12
- package/lib/components/sticker/index.native.js +89 -73
- package/lib/components/sticker/index.native.mjs +17 -14
- package/lib/components/switch/Switch.mjs +12 -12
- package/lib/components/switch/Switch.native.js +37 -20
- package/lib/components/switch/Switch.native.mjs +15 -12
- package/lib/components/switch/index.mjs +12 -12
- package/lib/components/switch/index.native.js +37 -20
- package/lib/components/switch/index.native.mjs +15 -12
- package/lib/components/table/Table.native.js +34 -17
- package/lib/components/table/Table.native.mjs +15 -12
- package/lib/components/table/index.mjs +8 -8
- package/lib/components/table/index.native.js +116 -100
- package/lib/components/table/index.native.mjs +22 -19
- package/lib/components/table/td/TableTd.native.js +34 -17
- package/lib/components/table/td/TableTd.native.mjs +15 -12
- package/lib/components/table/td/index.native.js +34 -17
- package/lib/components/table/td/index.native.mjs +15 -12
- package/lib/components/table/th/TableTh.native.js +124 -108
- package/lib/components/table/th/TableTh.native.mjs +17 -14
- package/lib/components/table/th/index.native.js +124 -108
- package/lib/components/table/th/index.native.mjs +17 -14
- package/lib/components/table/tr/TableTr.native.js +101 -85
- package/lib/components/table/tr/TableTr.native.mjs +17 -14
- package/lib/components/table/tr/index.native.js +101 -85
- package/lib/components/table/tr/index.native.mjs +17 -14
- package/lib/components/tabs/index.mjs +8 -8
- package/lib/components/tabs/index.native.js +128 -112
- package/lib/components/tabs/index.native.mjs +23 -20
- package/lib/components/tabs/tab-list/TabList.mjs +1 -1
- package/lib/components/tabs/tab-list/TabList.native.js +118 -102
- package/lib/components/tabs/tab-list/TabList.native.mjs +18 -15
- package/lib/components/tabs/tab-list/index.mjs +1 -1
- package/lib/components/tabs/tab-list/index.native.js +118 -102
- package/lib/components/tabs/tab-list/index.native.mjs +18 -15
- package/lib/components/tabs/tab-list/tab/Tab.mjs +1 -1
- package/lib/components/tabs/tab-list/tab/Tab.native.js +96 -80
- package/lib/components/tabs/tab-list/tab/Tab.native.mjs +8 -5
- package/lib/components/tabs/tab-list/tab/index.mjs +1 -1
- package/lib/components/tabs/tab-list/tab/index.native.js +96 -80
- package/lib/components/tabs/tab-list/tab/index.native.mjs +8 -5
- package/lib/components/tabs/tab-panels/TabPanels.native.js +37 -20
- package/lib/components/tabs/tab-panels/TabPanels.native.mjs +15 -12
- package/lib/components/tabs/tab-panels/index.native.js +37 -20
- package/lib/components/tabs/tab-panels/index.native.mjs +15 -12
- package/lib/components/tag/Tag.mjs +1 -1
- package/lib/components/tag/Tag.native.js +34 -17
- package/lib/components/tag/Tag.native.mjs +6 -3
- package/lib/components/tag/index.mjs +12 -12
- package/lib/components/tag/index.native.js +37 -20
- package/lib/components/tag/index.native.mjs +6 -3
- package/lib/components/tag/list/TagList.mjs +12 -12
- package/lib/components/tag/list/index.mjs +12 -12
- package/lib/components/text/Text.native.js +63 -83
- package/lib/components/text/Text.native.mjs +6 -4
- package/lib/components/text/index.native.js +61 -83
- package/lib/components/text/index.native.mjs +6 -4
- package/lib/components/textarea/Textarea.mjs +12 -12
- package/lib/components/textarea/Textarea.native.js +98 -82
- package/lib/components/textarea/Textarea.native.mjs +17 -14
- package/lib/components/textarea/index.mjs +12 -12
- package/lib/components/textarea/index.native.js +98 -82
- package/lib/components/textarea/index.native.mjs +17 -14
- package/lib/components/timeline/Timeline.mjs +1 -1
- package/lib/components/timeline/content/TimelineContent.mjs +1 -1
- package/lib/components/timeline/content/TimelineContent.native.js +108 -92
- package/lib/components/timeline/content/TimelineContent.native.mjs +21 -18
- package/lib/components/timeline/content/index.mjs +1 -1
- package/lib/components/timeline/content/index.native.js +108 -92
- package/lib/components/timeline/content/index.native.mjs +21 -18
- package/lib/components/timeline/index.mjs +6 -6
- package/lib/components/timeline/index.native.js +114 -98
- package/lib/components/timeline/index.native.mjs +23 -20
- package/lib/components/timeline/item/TimelineItem.mjs +1 -1
- package/lib/components/timeline/item/index.mjs +1 -1
- package/lib/components/timeline/marker/TimelineMarker.mjs +1 -1
- package/lib/components/timeline/marker/TimelineMarker.native.js +51 -34
- package/lib/components/timeline/marker/TimelineMarker.native.mjs +16 -13
- package/lib/components/timeline/marker/index.mjs +1 -1
- package/lib/components/timeline/marker/index.native.js +51 -34
- package/lib/components/timeline/marker/index.native.mjs +17 -14
- package/lib/components/title/Title.native.js +75 -51
- package/lib/components/title/Title.native.mjs +16 -13
- package/lib/components/title/index.mjs +1 -1
- package/lib/components/title/index.native.js +75 -51
- package/lib/components/title/index.native.mjs +17 -14
- package/lib/components/view/View.mjs +12 -12
- package/lib/components/view/View.native.js +38 -21
- package/lib/components/view/View.native.mjs +15 -12
- package/lib/components/view/index.mjs +12 -12
- package/lib/components/view/index.native.js +38 -21
- package/lib/components/view/index.native.mjs +15 -12
- package/lib/context/provider/index.js +1 -1
- package/lib/context/provider/index.mjs +2 -2
- package/lib/context/test/provider.test.js +1 -1
- package/lib/context/test/provider.test.mjs +2 -2
- package/lib/helpers/index.mjs +3 -3
- package/lib/helpers/index.native.mjs +3 -3
- package/lib/index.js +150 -129
- package/lib/index.mjs +94 -88
- package/lib/index.native.js +1932 -974
- package/lib/index.native.mjs +129 -126
- package/lib/objects/Typography/index.mjs +3 -3
- package/lib/objects/Typography/index.native.mjs +3 -3
- package/lib/objects/facets/Status/index.mjs +1 -1
- package/lib/objects/facets/Status/index.native.js +30 -13
- package/lib/objects/facets/Status/index.native.mjs +5 -2
- package/lib/objects/facets/index.mjs +13 -13
- package/lib/objects/facets/index.native.js +30 -13
- package/lib/objects/facets/index.native.mjs +17 -14
- package/lib/objects/index.mjs +17 -17
- package/lib/objects/index.native.js +32 -15
- package/lib/objects/index.native.mjs +20 -17
- package/lib/version.d.mts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.mjs +1 -1
- package/package.json +1 -2
- package/lib/chunk-C4ZXSLQP.mjs +0 -12
- package/lib/chunk-DSY6DDC3.mjs +0 -12
- package/lib/chunk-MVQ252OA.mjs +0 -85
- package/lib/{chunk-LEXUEUIJ.mjs → chunk-3VDWD5KA.mjs} +3 -3
- package/lib/{chunk-R6JMSH4N.mjs → chunk-HHARJB6A.mjs} +3 -3
- package/lib/{chunk-MZHFYHCF.mjs → chunk-JFTUDUYA.mjs} +3 -3
- package/lib/{chunk-PGXASAXX.mjs → chunk-JP5IH4HL.mjs} +0 -0
- package/lib/{chunk-M2TC4BZG.mjs → chunk-MCQZ43VV.mjs} +3 -3
- package/lib/{chunk-GIEAPQ2H.mjs → chunk-WMZ3FFFO.mjs} +3 -3
|
@@ -166,16 +166,24 @@ var getAlignStyle = (alignType) => {
|
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
// components/icon/Icon.native.tsx
|
|
169
|
-
var
|
|
170
|
-
var import_native = __toESM(require("react-content-loader/native"));
|
|
169
|
+
var import_react5 = __toESM(require("react"));
|
|
171
170
|
var import_react_native2 = require("react-native");
|
|
171
|
+
|
|
172
|
+
// components/skeleton/Skeleton.tsx
|
|
173
|
+
var import_react4 = __toESM(require("react"));
|
|
174
|
+
var Skeleton = () => {
|
|
175
|
+
return /* @__PURE__ */ import_react4.default.createElement("div", null);
|
|
176
|
+
};
|
|
177
|
+
var Skeleton_default = Skeleton;
|
|
178
|
+
|
|
179
|
+
// components/icon/Icon.native.tsx
|
|
172
180
|
var import_css = require("react-native-svg/css");
|
|
173
|
-
var Icon =
|
|
181
|
+
var Icon = import_react5.default.forwardRef(
|
|
174
182
|
({ size, name, circled, stretched, color, backgroundColor, onClick, align, skeleton, testId, ...others }, ref) => {
|
|
175
183
|
const {
|
|
176
184
|
theme: { icons }
|
|
177
|
-
} = (0,
|
|
178
|
-
const statesContext = (0,
|
|
185
|
+
} = (0, import_react5.useContext)(TrilogyThemeContext);
|
|
186
|
+
const statesContext = (0, import_react5.useContext)(StatesContext);
|
|
179
187
|
const style = {};
|
|
180
188
|
const defaultSize = size === "huge" /* HUGE */ && 66 || size === "large" /* LARGE */ && 44 || size === "medium" /* MEDIUM */ && 30 || size === "small" /* SMALL */ && 20 || size === "smaller" /* SMALLER */ && 16 || 20;
|
|
181
189
|
const iconColor = color && getColorStyle(color) || statesContext.inverted && getColorStyle("WHITE" /* BACKGROUND */) || getColorStyle("MAIN" /* MAIN */);
|
|
@@ -225,14 +233,23 @@ var Icon = import_react4.default.forwardRef(
|
|
|
225
233
|
justifyContent: "center"
|
|
226
234
|
}
|
|
227
235
|
});
|
|
228
|
-
const IconSkeleton = () => /* @__PURE__ */
|
|
236
|
+
const IconSkeleton = () => /* @__PURE__ */ import_react5.default.createElement(
|
|
237
|
+
Skeleton_default,
|
|
238
|
+
{
|
|
239
|
+
style: styles4.skeleton,
|
|
240
|
+
width: circledWidth,
|
|
241
|
+
height: circledWidth,
|
|
242
|
+
borderRadius: iconSkeletonRadius,
|
|
243
|
+
testID: "skeleton-id"
|
|
244
|
+
}
|
|
245
|
+
);
|
|
229
246
|
if (skeleton) {
|
|
230
|
-
return /* @__PURE__ */
|
|
247
|
+
return /* @__PURE__ */ import_react5.default.createElement(IconSkeleton, null);
|
|
231
248
|
}
|
|
232
|
-
let iconView = /* @__PURE__ */
|
|
249
|
+
let iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, null);
|
|
233
250
|
if (name && icons) {
|
|
234
251
|
if (stretched && !circled) {
|
|
235
|
-
iconView = /* @__PURE__ */
|
|
252
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles4.stretched, testID: `${testId}-stretched` }, /* @__PURE__ */ import_react5.default.createElement(
|
|
236
253
|
import_css.WithLocalSvg,
|
|
237
254
|
{
|
|
238
255
|
style: [styles4.iconCircled, styles4.icon],
|
|
@@ -243,7 +260,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
243
260
|
}
|
|
244
261
|
));
|
|
245
262
|
} else if (circled) {
|
|
246
|
-
iconView = /* @__PURE__ */
|
|
263
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles4.circled, testID: `${testId}-circled` }, /* @__PURE__ */ import_react5.default.createElement(
|
|
247
264
|
import_css.WithLocalSvg,
|
|
248
265
|
{
|
|
249
266
|
style: [styles4.iconCircled, styles4.icon],
|
|
@@ -254,7 +271,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
254
271
|
}
|
|
255
272
|
));
|
|
256
273
|
} else {
|
|
257
|
-
iconView = /* @__PURE__ */
|
|
274
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles4.iconContainer, ...others }, /* @__PURE__ */ import_react5.default.createElement(
|
|
258
275
|
import_css.WithLocalSvg,
|
|
259
276
|
{
|
|
260
277
|
style: [styles4.icon, style],
|
|
@@ -266,7 +283,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
266
283
|
));
|
|
267
284
|
}
|
|
268
285
|
}
|
|
269
|
-
return onClick ? /* @__PURE__ */
|
|
286
|
+
return onClick ? /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles4.rootView, testID: testId, ref }, /* @__PURE__ */ import_react5.default.createElement(
|
|
270
287
|
import_react_native2.TouchableOpacity,
|
|
271
288
|
{
|
|
272
289
|
style: { width: "100%" },
|
|
@@ -275,7 +292,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
275
292
|
testID: `${testId}-pressable`
|
|
276
293
|
},
|
|
277
294
|
iconView
|
|
278
|
-
)) : /* @__PURE__ */
|
|
295
|
+
)) : /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles4.rootView, testID: testId, ref }, iconView);
|
|
279
296
|
}
|
|
280
297
|
);
|
|
281
298
|
Icon.displayName = "Icon" /* Icon */;
|
|
@@ -287,10 +304,10 @@ var setTypographyAlign = (typo = "left") => {
|
|
|
287
304
|
};
|
|
288
305
|
|
|
289
306
|
// objects/Typography/TypographyBold/index.native.tsx
|
|
290
|
-
var
|
|
307
|
+
var import_react6 = require("react");
|
|
291
308
|
var getTypographyBoldStyle = (typo) => {
|
|
292
309
|
var _a, _b, _c, _d;
|
|
293
|
-
const { theme } = (0,
|
|
310
|
+
const { theme } = (0, import_react6.useContext)(TrilogyThemeContext);
|
|
294
311
|
const currentTypo = Array.isArray(typo) ? typo : [typo];
|
|
295
312
|
switch (true) {
|
|
296
313
|
case (typo && currentTypo.includes("has-text-weight-medium" /* TEXT_WEIGHT_MEDIUM */)):
|
|
@@ -310,64 +327,63 @@ var setTypographyColor = (typo = "", inverted = false, loading = false) => {
|
|
|
310
327
|
};
|
|
311
328
|
|
|
312
329
|
// components/text/Text.native.tsx
|
|
313
|
-
var
|
|
314
|
-
var import_native2 = __toESM(require("react-content-loader/native"));
|
|
330
|
+
var import_react7 = __toESM(require("react"));
|
|
315
331
|
var import_react_native3 = require("react-native");
|
|
316
|
-
var Text =
|
|
317
|
-
children,
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
332
|
+
var Text = import_react7.default.forwardRef(
|
|
333
|
+
({ children, level, style, inverted, typo, skeleton, accessibilityLabel, numberOfLines = 0, ...others }, ref) => {
|
|
334
|
+
const statesContext = (0, import_react7.useContext)(StatesContext);
|
|
335
|
+
const textLevels = (level2) => {
|
|
336
|
+
return level2 && level2 == 1 /* ONE */ && 16 || level2 && level2 == 2 /* TWO */ && 14 || level2 && level2 == 3 /* THREE */ && 12 || level2 && level2 == 4 /* FOUR */ && 10 || 14;
|
|
337
|
+
};
|
|
338
|
+
const styles4 = import_react_native3.StyleSheet.create({
|
|
339
|
+
text: {
|
|
340
|
+
fontFamily: getTypographyBoldStyle(typo),
|
|
341
|
+
fontSize: textLevels(level),
|
|
342
|
+
color: setTypographyColor(typo, inverted || statesContext.inverted, skeleton),
|
|
343
|
+
textAlign: setTypographyAlign(typo),
|
|
344
|
+
lineHeight: textLevels(level) * 1.2,
|
|
345
|
+
textDecorationLine: "none",
|
|
346
|
+
alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start"
|
|
347
|
+
},
|
|
348
|
+
skeleton: {
|
|
349
|
+
minWidth: 10,
|
|
350
|
+
alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start",
|
|
351
|
+
borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3,
|
|
352
|
+
borderWidth: 0.1,
|
|
353
|
+
borderColor: getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */),
|
|
354
|
+
overflow: "hidden",
|
|
355
|
+
height: textLevels(level)
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
const textAccessibilityLabel = accessibilityLabel ? accessibilityLabel : typeof children === "string" ? children : void 0;
|
|
359
|
+
let textView = /* @__PURE__ */ import_react7.default.createElement(
|
|
360
|
+
import_react_native3.Text,
|
|
361
|
+
{
|
|
362
|
+
ref,
|
|
363
|
+
numberOfLines,
|
|
364
|
+
ellipsizeMode: "tail",
|
|
365
|
+
maxFontSizeMultiplier: 1.3,
|
|
366
|
+
accessible: !!textAccessibilityLabel,
|
|
367
|
+
accessibilityLabel: textAccessibilityLabel,
|
|
368
|
+
style: [styles4.text, style],
|
|
369
|
+
...others
|
|
370
|
+
},
|
|
371
|
+
children
|
|
372
|
+
);
|
|
373
|
+
if (skeleton) {
|
|
374
|
+
textView = /* @__PURE__ */ import_react7.default.createElement(
|
|
375
|
+
Skeleton_default,
|
|
376
|
+
{
|
|
377
|
+
style: styles4.skeleton,
|
|
378
|
+
height: textLevels(level),
|
|
379
|
+
borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3
|
|
380
|
+
},
|
|
381
|
+
textView
|
|
382
|
+
);
|
|
349
383
|
}
|
|
350
|
-
|
|
351
|
-
const textAccessibilityLabel = accessibilityLabel ? accessibilityLabel : typeof children === "string" ? children : void 0;
|
|
352
|
-
let textView = /* @__PURE__ */ import_react6.default.createElement(
|
|
353
|
-
import_react_native3.Text,
|
|
354
|
-
{
|
|
355
|
-
ref,
|
|
356
|
-
numberOfLines,
|
|
357
|
-
ellipsizeMode: "tail",
|
|
358
|
-
maxFontSizeMultiplier: 1.3,
|
|
359
|
-
accessible: !!textAccessibilityLabel,
|
|
360
|
-
accessibilityLabel: textAccessibilityLabel,
|
|
361
|
-
style: [styles4.text, style],
|
|
362
|
-
...others
|
|
363
|
-
},
|
|
364
|
-
children
|
|
365
|
-
);
|
|
366
|
-
if (skeleton) {
|
|
367
|
-
textView = /* @__PURE__ */ import_react6.default.createElement(import_native2.default, { style: styles4.skeleton }, textView, isAndroid && /* @__PURE__ */ import_react6.default.createElement(import_react_native3.View, null, /* @__PURE__ */ import_react6.default.createElement(import_native2.Rect, { rx: "7", ry: "7", width: "100%", height: "100%" })));
|
|
384
|
+
return textView;
|
|
368
385
|
}
|
|
369
|
-
|
|
370
|
-
});
|
|
386
|
+
);
|
|
371
387
|
Text.displayName = "Text" /* Text */;
|
|
372
388
|
var Text_native_default = Text;
|
|
373
389
|
|
|
@@ -381,20 +397,20 @@ var STATUS_COLORS = {
|
|
|
381
397
|
};
|
|
382
398
|
|
|
383
399
|
// components/input/Input.native.tsx
|
|
384
|
-
var
|
|
400
|
+
var import_react10 = __toESM(require("react"));
|
|
385
401
|
var import_react_native6 = require("react-native");
|
|
386
402
|
|
|
387
403
|
// components/spacer/Spacer.native.tsx
|
|
388
|
-
var
|
|
404
|
+
var React5 = __toESM(require("react"));
|
|
389
405
|
var import_react_native4 = require("react-native");
|
|
390
|
-
var Spacer =
|
|
406
|
+
var Spacer = React5.forwardRef(({ size, horizontal }, ref) => {
|
|
391
407
|
const styles4 = import_react_native4.StyleSheet.create({
|
|
392
408
|
spacer: {
|
|
393
409
|
marginLeft: horizontal && parseInt(size.toString()) || 0,
|
|
394
410
|
marginTop: !horizontal && parseInt(size.toString()) || 0
|
|
395
411
|
}
|
|
396
412
|
});
|
|
397
|
-
return /* @__PURE__ */
|
|
413
|
+
return /* @__PURE__ */ React5.createElement(import_react_native4.View, { ref, style: styles4.spacer });
|
|
398
414
|
});
|
|
399
415
|
Spacer.displayName = "Spacer" /* Spacer */;
|
|
400
416
|
var Spacer_native_default = Spacer;
|
|
@@ -417,25 +433,25 @@ var SpacerSize = /* @__PURE__ */ ((SpacerSize2) => {
|
|
|
417
433
|
var SpacerSizeValues = `${SpacerSize}`;
|
|
418
434
|
|
|
419
435
|
// components/input/gauge/InputGauge.native.tsx
|
|
420
|
-
var
|
|
436
|
+
var import_react9 = __toESM(require("react"));
|
|
421
437
|
var import_react_native5 = require("react-native");
|
|
422
438
|
|
|
423
439
|
// components/input/gauge/hook/useGauge.native.tsx
|
|
424
|
-
var
|
|
440
|
+
var import_react8 = __toESM(require("react"));
|
|
425
441
|
var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
426
442
|
var _a, _b;
|
|
427
|
-
const [points, setPoints] =
|
|
443
|
+
const [points, setPoints] = import_react8.default.useState(0);
|
|
428
444
|
const initStateVerifies = { isVerify: false, color: "NEUTRAL" /* NEUTRAL */ };
|
|
429
|
-
const [isLengthVerify, setIsLengthVerify] =
|
|
430
|
-
const [isSpecialCharsVerify, setIsSpecialCharsVerify] =
|
|
431
|
-
const [isNumberVerify, setIsNumberVerify] =
|
|
432
|
-
const [isUppercaseVerify, setIsUppercaseVerify] =
|
|
433
|
-
const [isLowerercaseVerify, setisLowerercaseVerify] =
|
|
434
|
-
const nbAllVerifies =
|
|
445
|
+
const [isLengthVerify, setIsLengthVerify] = import_react8.default.useState(initStateVerifies);
|
|
446
|
+
const [isSpecialCharsVerify, setIsSpecialCharsVerify] = import_react8.default.useState(initStateVerifies);
|
|
447
|
+
const [isNumberVerify, setIsNumberVerify] = import_react8.default.useState(initStateVerifies);
|
|
448
|
+
const [isUppercaseVerify, setIsUppercaseVerify] = import_react8.default.useState(initStateVerifies);
|
|
449
|
+
const [isLowerercaseVerify, setisLowerercaseVerify] = import_react8.default.useState(initStateVerifies);
|
|
450
|
+
const nbAllVerifies = import_react8.default.useMemo(
|
|
435
451
|
() => validationRules && Object.values(validationRules).filter((rule) => rule).length || securityRules && securityRules.length || 0,
|
|
436
452
|
[validationRules, securityRules]
|
|
437
453
|
);
|
|
438
|
-
const rules =
|
|
454
|
+
const rules = import_react8.default.useMemo(
|
|
439
455
|
() => securityRules && securityRules.map(({ label, patternValidator, dataAttribute }) => ({
|
|
440
456
|
label,
|
|
441
457
|
validate: !!(patternValidator == null ? void 0 : patternValidator.test(inputValue)),
|
|
@@ -443,7 +459,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
443
459
|
})),
|
|
444
460
|
[inputValue, securityRules]
|
|
445
461
|
);
|
|
446
|
-
const calcPoints =
|
|
462
|
+
const calcPoints = import_react8.default.useMemo(() => {
|
|
447
463
|
if (validationRules) {
|
|
448
464
|
return Number((points / nbAllVerifies * 100).toFixed(0));
|
|
449
465
|
}
|
|
@@ -453,7 +469,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
453
469
|
}
|
|
454
470
|
return 0;
|
|
455
471
|
}, [points, nbAllVerifies, rules, validationRules, securityRules]);
|
|
456
|
-
const widthGauge =
|
|
472
|
+
const widthGauge = import_react8.default.useMemo(() => {
|
|
457
473
|
if (calcPoints <= 50 && calcPoints > 0) return "50%";
|
|
458
474
|
if (calcPoints <= 99 && calcPoints > 50) return "75%";
|
|
459
475
|
if (calcPoints === 100) return "100%";
|
|
@@ -465,7 +481,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
465
481
|
if (calcPoints === 100) return getColorStyle("SUCCESS" /* SUCCESS */);
|
|
466
482
|
return getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */);
|
|
467
483
|
};
|
|
468
|
-
const LengthvalidationRulesText = (0,
|
|
484
|
+
const LengthvalidationRulesText = (0, import_react8.useMemo)(() => {
|
|
469
485
|
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
470
486
|
switch (true) {
|
|
471
487
|
case (((_a2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a2.min) !== void 0 && ((_b2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b2.max) !== void 0):
|
|
@@ -478,7 +494,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
478
494
|
return "";
|
|
479
495
|
}
|
|
480
496
|
}, [(_a = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a.min, (_b = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b.max]);
|
|
481
|
-
(0,
|
|
497
|
+
(0, import_react8.useEffect)(() => {
|
|
482
498
|
var _a2, _b2;
|
|
483
499
|
const min = ((_a2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a2.min) || 0;
|
|
484
500
|
const max = ((_b2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b2.max) || "";
|
|
@@ -510,7 +526,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
510
526
|
|
|
511
527
|
// components/input/gauge/InputGauge.native.tsx
|
|
512
528
|
var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
513
|
-
const id = (0,
|
|
529
|
+
const id = (0, import_react9.useId)();
|
|
514
530
|
const {
|
|
515
531
|
widthGauge,
|
|
516
532
|
colorGauge,
|
|
@@ -522,7 +538,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
522
538
|
isUppercaseVerify,
|
|
523
539
|
rules
|
|
524
540
|
} = useGauge({ validationRules, inputValue, securityRules });
|
|
525
|
-
return /* @__PURE__ */
|
|
541
|
+
return /* @__PURE__ */ import_react9.default.createElement(import_react_native5.View, null, /* @__PURE__ */ import_react9.default.createElement(import_react_native5.View, { style: [styles.containerGauge, { backgroundColor: getColorStyle("MAIN_FADE" /* MAIN_FADE */) }] }, /* @__PURE__ */ import_react9.default.createElement(import_react_native5.View, { style: [styles.gauge, { width: widthGauge, backgroundColor: colorGauge() }] })), /* @__PURE__ */ import_react9.default.createElement(import_react_native5.View, { style: styles.verifies }, validationRules && /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, /* @__PURE__ */ import_react9.default.createElement(
|
|
526
542
|
DataVerify,
|
|
527
543
|
{
|
|
528
544
|
display: !!(validationRules == null ? void 0 : validationRules.length),
|
|
@@ -531,7 +547,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
531
547
|
type: LengthvalidationRulesText,
|
|
532
548
|
index: 1
|
|
533
549
|
}
|
|
534
|
-
), /* @__PURE__ */
|
|
550
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
535
551
|
DataVerify,
|
|
536
552
|
{
|
|
537
553
|
display: !!(validationRules == null ? void 0 : validationRules.uppercase),
|
|
@@ -540,7 +556,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
540
556
|
type: "Majuscule",
|
|
541
557
|
index: 2
|
|
542
558
|
}
|
|
543
|
-
), /* @__PURE__ */
|
|
559
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
544
560
|
DataVerify,
|
|
545
561
|
{
|
|
546
562
|
display: !!(validationRules == null ? void 0 : validationRules.specialChars),
|
|
@@ -549,7 +565,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
549
565
|
type: "Caract\xE8res sp\xE9ciaux",
|
|
550
566
|
index: 3
|
|
551
567
|
}
|
|
552
|
-
), /* @__PURE__ */
|
|
568
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
553
569
|
DataVerify,
|
|
554
570
|
{
|
|
555
571
|
display: !!(validationRules == null ? void 0 : validationRules.lowercase),
|
|
@@ -558,7 +574,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
558
574
|
type: "Minuscule",
|
|
559
575
|
index: 4
|
|
560
576
|
}
|
|
561
|
-
), /* @__PURE__ */
|
|
577
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
562
578
|
DataVerify,
|
|
563
579
|
{
|
|
564
580
|
display: !!(validationRules == null ? void 0 : validationRules.number),
|
|
@@ -567,7 +583,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
567
583
|
type: "Chiffre",
|
|
568
584
|
index: 5
|
|
569
585
|
}
|
|
570
|
-
)), securityRules && rules && rules.map((rule, index) => /* @__PURE__ */
|
|
586
|
+
)), securityRules && rules && rules.map((rule, index) => /* @__PURE__ */ import_react9.default.createElement(
|
|
571
587
|
DataVerify,
|
|
572
588
|
{
|
|
573
589
|
index: index + 1,
|
|
@@ -581,7 +597,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
581
597
|
};
|
|
582
598
|
var DataVerify = ({ color, iconName, display, type, index }) => {
|
|
583
599
|
if (!display) return null;
|
|
584
|
-
return /* @__PURE__ */
|
|
600
|
+
return /* @__PURE__ */ import_react9.default.createElement(import_react_native5.View, { style: [styles.verify, index % 2 === 0 ? styles.even : void 0] }, /* @__PURE__ */ import_react9.default.createElement(Icon_native_default, { color, name: iconName, size: "smaller" /* SMALLER */ }), /* @__PURE__ */ import_react9.default.createElement(Text_native_default, { style: styles.textVerify }, type));
|
|
585
601
|
};
|
|
586
602
|
var InputGauge_native_default = InputGauge;
|
|
587
603
|
var styles = import_react_native5.StyleSheet.create({
|
|
@@ -617,7 +633,7 @@ var styles = import_react_native5.StyleSheet.create({
|
|
|
617
633
|
});
|
|
618
634
|
|
|
619
635
|
// components/input/Input.native.tsx
|
|
620
|
-
var Input =
|
|
636
|
+
var Input = import_react10.default.forwardRef(
|
|
621
637
|
({
|
|
622
638
|
defaultValue,
|
|
623
639
|
name,
|
|
@@ -661,14 +677,14 @@ var Input = import_react9.default.forwardRef(
|
|
|
661
677
|
inputIcon.set("success" /* SUCCESS */, "tri-check-circle" /* CHECK_CIRCLE */);
|
|
662
678
|
inputIcon.set("warning" /* WARNING */, "tri-exclamation-circle" /* EXCLAMATION_CIRCLE */);
|
|
663
679
|
inputIcon.set("error" /* ERROR */, "tri-exclamation-circle" /* EXCLAMATION_CIRCLE */);
|
|
664
|
-
const [value, setValue] = (0,
|
|
665
|
-
const [email, setEmail] = (0,
|
|
666
|
-
const [isFocused, setIsFocused] = (0,
|
|
667
|
-
const [iconPassword, setIconPassword] = (0,
|
|
668
|
-
const [dynamicPlaceholder, setDynamicPlaceholder] = (0,
|
|
669
|
-
const [isKeyboardVisible, setKeyboardVisible] = (0,
|
|
670
|
-
const animation = (0,
|
|
671
|
-
const sizeAnimation = (0,
|
|
680
|
+
const [value, setValue] = (0, import_react10.useState)(defaultValue || "");
|
|
681
|
+
const [email, setEmail] = (0, import_react10.useState)("");
|
|
682
|
+
const [isFocused, setIsFocused] = (0, import_react10.useState)(false);
|
|
683
|
+
const [iconPassword, setIconPassword] = (0, import_react10.useState)("tri-eye" /* EYE */);
|
|
684
|
+
const [dynamicPlaceholder, setDynamicPlaceholder] = (0, import_react10.useState)(false);
|
|
685
|
+
const [isKeyboardVisible, setKeyboardVisible] = (0, import_react10.useState)(null);
|
|
686
|
+
const animation = (0, import_react10.useRef)(new import_react_native6.Animated.Value(25)).current;
|
|
687
|
+
const sizeAnimation = (0, import_react10.useRef)(new import_react_native6.Animated.Value(placeholderDefaultSize)).current;
|
|
672
688
|
const paddingTopByPlatform = (os, dynamicPlaceholder2) => {
|
|
673
689
|
if (dynamicPlaceholder2 && type !== "search" /* SEARCH */ && os === "ios") {
|
|
674
690
|
return 10;
|
|
@@ -678,7 +694,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
678
694
|
}
|
|
679
695
|
return 0;
|
|
680
696
|
};
|
|
681
|
-
const handleChange = (0,
|
|
697
|
+
const handleChange = (0, import_react10.useCallback)((text) => {
|
|
682
698
|
var _a;
|
|
683
699
|
setValue(text);
|
|
684
700
|
setEmail("");
|
|
@@ -700,17 +716,17 @@ var Input = import_react9.default.forwardRef(
|
|
|
700
716
|
onSubmit == null ? void 0 : onSubmit(e);
|
|
701
717
|
type === "email" /* EMAIL */ && handleClick();
|
|
702
718
|
};
|
|
703
|
-
(0,
|
|
719
|
+
(0, import_react10.useEffect)(() => {
|
|
704
720
|
setValue(defaultValue || "");
|
|
705
721
|
}, [defaultValue, placeholder]);
|
|
706
|
-
(0,
|
|
722
|
+
(0, import_react10.useEffect)(() => {
|
|
707
723
|
if (value && value.length > 0 && placeholder && placeholder.length > 0) {
|
|
708
724
|
setDynamicPlaceholder(true);
|
|
709
725
|
} else {
|
|
710
726
|
setDynamicPlaceholder(false);
|
|
711
727
|
}
|
|
712
728
|
}, [placeholder, value]);
|
|
713
|
-
(0,
|
|
729
|
+
(0, import_react10.useEffect)(() => {
|
|
714
730
|
if (dynamicPlaceholder && type !== "search" /* SEARCH */) {
|
|
715
731
|
import_react_native6.Animated.timing(animation, {
|
|
716
732
|
toValue: 3,
|
|
@@ -735,7 +751,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
735
751
|
}).start();
|
|
736
752
|
}
|
|
737
753
|
}, [dynamicPlaceholder, animation, sizeAnimation]);
|
|
738
|
-
(0,
|
|
754
|
+
(0, import_react10.useEffect)(() => {
|
|
739
755
|
const keyboardDidShowListener = import_react_native6.Keyboard.addListener("keyboardDidShow", () => setKeyboardVisible(true));
|
|
740
756
|
const keyboardDidHideListener = import_react_native6.Keyboard.addListener("keyboardDidHide", () => setKeyboardVisible(false));
|
|
741
757
|
return () => {
|
|
@@ -743,7 +759,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
743
759
|
keyboardDidShowListener.remove();
|
|
744
760
|
};
|
|
745
761
|
}, []);
|
|
746
|
-
(0,
|
|
762
|
+
(0, import_react10.useEffect)(() => {
|
|
747
763
|
handleClick();
|
|
748
764
|
}, [isKeyboardVisible]);
|
|
749
765
|
const hasIcon = iconNameLeft || iconNameRight || false;
|
|
@@ -826,7 +842,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
826
842
|
marginBottom: isIOS ? 0 : -3
|
|
827
843
|
}
|
|
828
844
|
});
|
|
829
|
-
return /* @__PURE__ */
|
|
845
|
+
return /* @__PURE__ */ import_react10.default.createElement(
|
|
830
846
|
import_react_native6.View,
|
|
831
847
|
{
|
|
832
848
|
style: { width: "100%" },
|
|
@@ -834,9 +850,9 @@ var Input = import_react9.default.forwardRef(
|
|
|
834
850
|
accessibilityLabel: inputAccessibilityLabel,
|
|
835
851
|
testID: inputTestId
|
|
836
852
|
},
|
|
837
|
-
!dynamicPlaceholder && label && /* @__PURE__ */
|
|
838
|
-
!dynamicPlaceholder && label && sample && /* @__PURE__ */
|
|
839
|
-
/* @__PURE__ */
|
|
853
|
+
!dynamicPlaceholder && label && /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, /* @__PURE__ */ import_react10.default.createElement(Text_native_default, { typo: "has-text-main" /* TEXT_MAIN */ }, label, " ", label && required && /* @__PURE__ */ import_react10.default.createElement(Text_native_default, { typo: "has-text-error" /* TEXT_ERROR */ }, "*")), /* @__PURE__ */ import_react10.default.createElement(Spacer_native_default, { size: 12 /* THREE */ })),
|
|
854
|
+
!dynamicPlaceholder && label && sample && /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, /* @__PURE__ */ import_react10.default.createElement(Text_native_default, { level: 3 /* THREE */, typo: "has-text-main" /* TEXT_MAIN */ }, sample), /* @__PURE__ */ import_react10.default.createElement(Spacer_native_default, { size: 12 /* THREE */ })),
|
|
855
|
+
/* @__PURE__ */ import_react10.default.createElement(import_react_native6.View, { testID: "input-wrapper-id", style: styles4.inputWrapper }, dynamicPlaceholder && type !== "search" /* SEARCH */ && /* @__PURE__ */ import_react10.default.createElement(import_react_native6.Animated.Text, { style: [styles4.dynamicPlaceholder, { top: animation, fontSize: sizeAnimation }] }, placeholder), /* @__PURE__ */ import_react10.default.createElement(
|
|
840
856
|
import_react_native6.TextInput,
|
|
841
857
|
{
|
|
842
858
|
ref,
|
|
@@ -878,7 +894,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
878
894
|
style: styles4.input,
|
|
879
895
|
...others
|
|
880
896
|
}
|
|
881
|
-
), type === "email" && /* @__PURE__ */
|
|
897
|
+
), type === "email" && /* @__PURE__ */ import_react10.default.createElement(Text_native_default, { style: styles4.text }, value, /* @__PURE__ */ import_react10.default.createElement(Text_native_default, { style: styles4.domain }, email)), hasIcon && type !== "password" /* PASSWORD */ && type !== "search" /* SEARCH */ && /* @__PURE__ */ import_react10.default.createElement(import_react_native6.View, { style: styles4.inputIconLeft }, /* @__PURE__ */ import_react10.default.createElement(
|
|
882
898
|
Icon_native_default,
|
|
883
899
|
{
|
|
884
900
|
align: "ALIGNED_START" /* ALIGNED_START */,
|
|
@@ -886,7 +902,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
886
902
|
size: "small" /* SMALL */,
|
|
887
903
|
color: status && status === "success" && "SUCCESS" /* SUCCESS */ || status && status === "warning" && "WARNING" /* WARNING */ || status && status === "error" && "ERROR" /* ERROR */ || disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
888
904
|
}
|
|
889
|
-
)), hasIcon && type !== "search" /* SEARCH */ && status && status !== "default" /* DEFAULT */ && type !== "password" /* PASSWORD */ && /* @__PURE__ */
|
|
905
|
+
)), hasIcon && type !== "search" /* SEARCH */ && status && status !== "default" /* DEFAULT */ && type !== "password" /* PASSWORD */ && /* @__PURE__ */ import_react10.default.createElement(
|
|
890
906
|
import_react_native6.TouchableOpacity,
|
|
891
907
|
{
|
|
892
908
|
style: styles4.inputContainer,
|
|
@@ -899,7 +915,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
899
915
|
});
|
|
900
916
|
}
|
|
901
917
|
},
|
|
902
|
-
/* @__PURE__ */
|
|
918
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
903
919
|
Icon_native_default,
|
|
904
920
|
{
|
|
905
921
|
testId: "icon-status-id",
|
|
@@ -909,7 +925,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
909
925
|
color: status && status === "success" && "SUCCESS" /* SUCCESS */ || status && status === "warning" && "WARNING" /* WARNING */ || status && status === "error" && "ERROR" /* ERROR */ || status && "MAIN" /* MAIN */ || disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
910
926
|
}
|
|
911
927
|
)
|
|
912
|
-
), iconNameRight && !iconNameLeft && type !== "search" /* SEARCH */ && type !== "password" /* PASSWORD */ && (!status || status === "default" /* DEFAULT */) && /* @__PURE__ */
|
|
928
|
+
), iconNameRight && !iconNameLeft && type !== "search" /* SEARCH */ && type !== "password" /* PASSWORD */ && (!status || status === "default" /* DEFAULT */) && /* @__PURE__ */ import_react10.default.createElement(
|
|
913
929
|
import_react_native6.TouchableOpacity,
|
|
914
930
|
{
|
|
915
931
|
style: styles4.inputContainerRight,
|
|
@@ -922,7 +938,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
922
938
|
});
|
|
923
939
|
}
|
|
924
940
|
},
|
|
925
|
-
/* @__PURE__ */
|
|
941
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
926
942
|
Icon_native_default,
|
|
927
943
|
{
|
|
928
944
|
testId: "icon-right-id",
|
|
@@ -932,7 +948,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
932
948
|
color: disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
933
949
|
}
|
|
934
950
|
)
|
|
935
|
-
), type === "password" /* PASSWORD */ && /* @__PURE__ */
|
|
951
|
+
), type === "password" /* PASSWORD */ && /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, iconNameLeft && /* @__PURE__ */ import_react10.default.createElement(import_react_native6.View, { style: [{ paddingLeft: 10 }, styles4.inputContainerLeft] }, /* @__PURE__ */ import_react10.default.createElement(Icon_native_default, { name: iconNameLeft })), /* @__PURE__ */ import_react10.default.createElement(
|
|
936
952
|
import_react_native6.TouchableOpacity,
|
|
937
953
|
{
|
|
938
954
|
style: styles4.inputContainerRight,
|
|
@@ -948,7 +964,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
948
964
|
}
|
|
949
965
|
}
|
|
950
966
|
},
|
|
951
|
-
/* @__PURE__ */
|
|
967
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
952
968
|
Icon_native_default,
|
|
953
969
|
{
|
|
954
970
|
testId: "password-id",
|
|
@@ -958,7 +974,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
958
974
|
color: status && status === "success" && "SUCCESS" /* SUCCESS */ || status && status === "warning" && "WARNING" /* WARNING */ || status && status === "error" && "ERROR" /* ERROR */ || status && status === "default" && "MAIN" /* MAIN */ || disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
959
975
|
}
|
|
960
976
|
)
|
|
961
|
-
)), type === "search" /* SEARCH */ && !status && /* @__PURE__ */
|
|
977
|
+
)), type === "search" /* SEARCH */ && !status && /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, /* @__PURE__ */ import_react10.default.createElement(import_react_native6.View, { style: styles4.inputContainerLeft }, /* @__PURE__ */ import_react10.default.createElement(
|
|
962
978
|
Icon_native_default,
|
|
963
979
|
{
|
|
964
980
|
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
@@ -966,7 +982,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
966
982
|
size: "small" /* SMALL */,
|
|
967
983
|
color: disabled ? "DISABLED" /* DISABLED */ : "NEUTRAL" /* NEUTRAL */
|
|
968
984
|
}
|
|
969
|
-
)), value.length > 0 && /* @__PURE__ */
|
|
985
|
+
)), value.length > 0 && /* @__PURE__ */ import_react10.default.createElement(
|
|
970
986
|
import_react_native6.TouchableOpacity,
|
|
971
987
|
{
|
|
972
988
|
testID: "search-id",
|
|
@@ -984,7 +1000,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
984
1000
|
setValue("");
|
|
985
1001
|
}
|
|
986
1002
|
},
|
|
987
|
-
/* @__PURE__ */
|
|
1003
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
988
1004
|
Icon_native_default,
|
|
989
1005
|
{
|
|
990
1006
|
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
@@ -994,8 +1010,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
994
1010
|
}
|
|
995
1011
|
)
|
|
996
1012
|
))),
|
|
997
|
-
help && /* @__PURE__ */
|
|
998
|
-
type === "password" /* PASSWORD */ && securityGauge && /* @__PURE__ */
|
|
1013
|
+
help && /* @__PURE__ */ import_react10.default.createElement(Text_native_default, { testId: "help-id", style: styles4.help }, help),
|
|
1014
|
+
type === "password" /* PASSWORD */ && securityGauge && /* @__PURE__ */ import_react10.default.createElement(InputGauge_native_default, { securityRules, validationRules, inputValue: value })
|
|
999
1015
|
);
|
|
1000
1016
|
}
|
|
1001
1017
|
);
|
|
@@ -1003,7 +1019,7 @@ Input.displayName = "Input" /* Input */;
|
|
|
1003
1019
|
var Input_native_default = Input;
|
|
1004
1020
|
|
|
1005
1021
|
// components/modal/Modal.native.tsx
|
|
1006
|
-
var
|
|
1022
|
+
var import_react16 = __toESM(require("react"));
|
|
1007
1023
|
var import_react_native10 = require("react-native");
|
|
1008
1024
|
var import_react_native_modal = __toESM(require("react-native-modal"));
|
|
1009
1025
|
|
|
@@ -1011,17 +1027,17 @@ var import_react_native_modal = __toESM(require("react-native-modal"));
|
|
|
1011
1027
|
var ColumnsGapValue = [0, 4, 8, 12, 16, 24, 32, 40, 48, 54, 62];
|
|
1012
1028
|
|
|
1013
1029
|
// components/columns/context/index.tsx
|
|
1014
|
-
var
|
|
1030
|
+
var import_react11 = __toESM(require("react"));
|
|
1015
1031
|
var defaultContextValue2 = {
|
|
1016
1032
|
scrollable: false,
|
|
1017
1033
|
width: 0,
|
|
1018
1034
|
realGap: 16,
|
|
1019
1035
|
childrensLength: 1
|
|
1020
1036
|
};
|
|
1021
|
-
var ColumnsContext =
|
|
1037
|
+
var ColumnsContext = import_react11.default.createContext(defaultContextValue2);
|
|
1022
1038
|
|
|
1023
1039
|
// components/columns/Columns.native.tsx
|
|
1024
|
-
var
|
|
1040
|
+
var import_react12 = __toESM(require("react"));
|
|
1025
1041
|
var import_react_native7 = require("react-native");
|
|
1026
1042
|
var staticStyles = import_react_native7.StyleSheet.create({
|
|
1027
1043
|
centered: {
|
|
@@ -1034,11 +1050,11 @@ var staticStyles = import_react_native7.StyleSheet.create({
|
|
|
1034
1050
|
flexDirection: "column"
|
|
1035
1051
|
}
|
|
1036
1052
|
});
|
|
1037
|
-
var Columns =
|
|
1053
|
+
var Columns = import_react12.default.forwardRef(
|
|
1038
1054
|
({ children, align, gap, verticalAlign, fullBleed, scrollable, multiline, fullheight, ...others }, ref) => {
|
|
1039
|
-
const [width, setWidth] = (0,
|
|
1040
|
-
const [enlarge, setEnlarge] = (0,
|
|
1041
|
-
const onLayoutHandler =
|
|
1055
|
+
const [width, setWidth] = (0, import_react12.useState)(0);
|
|
1056
|
+
const [enlarge, setEnlarge] = (0, import_react12.useState)(0);
|
|
1057
|
+
const onLayoutHandler = import_react12.default.useCallback(
|
|
1042
1058
|
(event) => {
|
|
1043
1059
|
if (!width) {
|
|
1044
1060
|
const { width: width2 } = event.nativeEvent.layout;
|
|
@@ -1050,8 +1066,8 @@ var Columns = import_react11.default.forwardRef(
|
|
|
1050
1066
|
},
|
|
1051
1067
|
[fullBleed, width]
|
|
1052
1068
|
);
|
|
1053
|
-
const realGap =
|
|
1054
|
-
const dynamicStyles =
|
|
1069
|
+
const realGap = import_react12.default.useMemo(() => typeof gap === "undefined" && 16 || ColumnsGapValue[gap], [gap]);
|
|
1070
|
+
const dynamicStyles = import_react12.default.useMemo(
|
|
1055
1071
|
() => ({
|
|
1056
1072
|
columns: {
|
|
1057
1073
|
width: fullBleed && width ? width + enlarge * 2 : "100%",
|
|
@@ -1071,16 +1087,16 @@ var Columns = import_react11.default.forwardRef(
|
|
|
1071
1087
|
}),
|
|
1072
1088
|
[fullBleed, width, enlarge, realGap, fullheight, verticalAlign]
|
|
1073
1089
|
);
|
|
1074
|
-
const contextValue =
|
|
1090
|
+
const contextValue = import_react12.default.useMemo(
|
|
1075
1091
|
() => ({
|
|
1076
1092
|
width,
|
|
1077
1093
|
realGap,
|
|
1078
1094
|
scrollable: scrollable || false,
|
|
1079
|
-
childrensLength:
|
|
1095
|
+
childrensLength: import_react12.default.Children.count(children)
|
|
1080
1096
|
}),
|
|
1081
1097
|
[width, realGap, scrollable, children]
|
|
1082
1098
|
);
|
|
1083
|
-
return /* @__PURE__ */
|
|
1099
|
+
return /* @__PURE__ */ import_react12.default.createElement(ColumnsContext.Provider, { value: contextValue }, !scrollable && /* @__PURE__ */ import_react12.default.createElement(
|
|
1084
1100
|
import_react_native7.View,
|
|
1085
1101
|
{
|
|
1086
1102
|
ref,
|
|
@@ -1094,7 +1110,7 @@ var Columns = import_react11.default.forwardRef(
|
|
|
1094
1110
|
...others
|
|
1095
1111
|
},
|
|
1096
1112
|
children
|
|
1097
|
-
), scrollable && /* @__PURE__ */
|
|
1113
|
+
), scrollable && /* @__PURE__ */ import_react12.default.createElement(
|
|
1098
1114
|
import_react_native7.View,
|
|
1099
1115
|
{
|
|
1100
1116
|
onLayout: onLayoutHandler,
|
|
@@ -1102,7 +1118,7 @@ var Columns = import_react11.default.forwardRef(
|
|
|
1102
1118
|
marginHorizontal: -enlarge
|
|
1103
1119
|
}
|
|
1104
1120
|
},
|
|
1105
|
-
/* @__PURE__ */
|
|
1121
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
|
1106
1122
|
import_react_native7.ScrollView,
|
|
1107
1123
|
{
|
|
1108
1124
|
horizontal: true,
|
|
@@ -1118,23 +1134,23 @@ Columns.displayName = "Columns" /* Columns */;
|
|
|
1118
1134
|
var Columns_native_default = Columns;
|
|
1119
1135
|
|
|
1120
1136
|
// components/columns/column/Column.native.tsx
|
|
1121
|
-
var
|
|
1137
|
+
var import_react13 = __toESM(require("react"));
|
|
1122
1138
|
var import_react_native8 = require("react-native");
|
|
1123
|
-
var Column =
|
|
1124
|
-
|
|
1139
|
+
var Column = import_react13.default.memo(
|
|
1140
|
+
import_react13.default.forwardRef(
|
|
1125
1141
|
({ children, narrow, size, verticalAlign, ...others }, ref) => {
|
|
1126
|
-
const { width, realGap, scrollable, childrensLength } =
|
|
1127
|
-
const calculatedWidth =
|
|
1142
|
+
const { width, realGap, scrollable, childrensLength } = import_react13.default.useContext(ColumnsContext);
|
|
1143
|
+
const calculatedWidth = import_react13.default.useMemo(
|
|
1128
1144
|
() => size ? size / 12 * width - realGap * ((childrensLength - 1) / childrensLength) : null,
|
|
1129
1145
|
[size, width, realGap, childrensLength]
|
|
1130
1146
|
);
|
|
1131
|
-
const scrollableStyle =
|
|
1147
|
+
const scrollableStyle = import_react13.default.useMemo(
|
|
1132
1148
|
() => ({
|
|
1133
1149
|
width: calculatedWidth || (narrow ? "auto" : width - 2 * realGap)
|
|
1134
1150
|
}),
|
|
1135
1151
|
[calculatedWidth, narrow, width, realGap]
|
|
1136
1152
|
);
|
|
1137
|
-
const noScrollableStyle =
|
|
1153
|
+
const noScrollableStyle = import_react13.default.useMemo(
|
|
1138
1154
|
() => ({
|
|
1139
1155
|
flex: narrow ? 0 : 1,
|
|
1140
1156
|
flexGrow: size || narrow ? 0 : 1,
|
|
@@ -1143,13 +1159,13 @@ var Column = import_react12.default.memo(
|
|
|
1143
1159
|
}),
|
|
1144
1160
|
[narrow, size, calculatedWidth]
|
|
1145
1161
|
);
|
|
1146
|
-
const justifyContentStyle =
|
|
1162
|
+
const justifyContentStyle = import_react13.default.useMemo(
|
|
1147
1163
|
() => ({
|
|
1148
1164
|
justifyContent: getAlignStyle(verticalAlign)
|
|
1149
1165
|
}),
|
|
1150
1166
|
[verticalAlign]
|
|
1151
1167
|
);
|
|
1152
|
-
return /* @__PURE__ */
|
|
1168
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
|
1153
1169
|
import_react_native8.View,
|
|
1154
1170
|
{
|
|
1155
1171
|
ref,
|
|
@@ -1165,11 +1181,10 @@ Column.displayName = "Column" /* Column */;
|
|
|
1165
1181
|
var Column_native_default = Column;
|
|
1166
1182
|
|
|
1167
1183
|
// components/title/Title.native.tsx
|
|
1168
|
-
var
|
|
1169
|
-
var
|
|
1170
|
-
var import_native3 = __toESM(require("react-content-loader/native"));
|
|
1184
|
+
var React12 = __toESM(require("react"));
|
|
1185
|
+
var import_react14 = require("react");
|
|
1171
1186
|
var import_react_native9 = require("react-native");
|
|
1172
|
-
var Title =
|
|
1187
|
+
var Title = React12.forwardRef(({
|
|
1173
1188
|
children,
|
|
1174
1189
|
level,
|
|
1175
1190
|
style,
|
|
@@ -1182,7 +1197,7 @@ var Title = React11.forwardRef(({
|
|
|
1182
1197
|
overline,
|
|
1183
1198
|
...others
|
|
1184
1199
|
}, ref) => {
|
|
1185
|
-
const statesContext = (0,
|
|
1200
|
+
const statesContext = (0, import_react14.useContext)(StatesContext);
|
|
1186
1201
|
const color = setTypographyColor(typo, inverted || statesContext.inverted, skeleton);
|
|
1187
1202
|
const colorOverline = getColorStyle("MAIN" /* MAIN */);
|
|
1188
1203
|
const fontFamily = level && [1 /* ONE */, 2 /* TWO */].includes(level) ? "has-text-weight-bold" /* TEXT_WEIGHT_BOLD */ : "has-text-weight-semibold" /* TEXT_WEIGHT_SEMIBOLD */;
|
|
@@ -1236,7 +1251,7 @@ var Title = React11.forwardRef(({
|
|
|
1236
1251
|
}
|
|
1237
1252
|
});
|
|
1238
1253
|
const titleAccessibilityLabel = accessibilityLabel ? accessibilityLabel : typeof children === "string" ? children : void 0;
|
|
1239
|
-
let titleView = /* @__PURE__ */
|
|
1254
|
+
let titleView = /* @__PURE__ */ React12.createElement(
|
|
1240
1255
|
import_react_native9.Text,
|
|
1241
1256
|
{
|
|
1242
1257
|
ref,
|
|
@@ -1249,16 +1264,24 @@ var Title = React11.forwardRef(({
|
|
|
1249
1264
|
children
|
|
1250
1265
|
);
|
|
1251
1266
|
if (skeleton) {
|
|
1252
|
-
titleView = /* @__PURE__ */
|
|
1267
|
+
titleView = /* @__PURE__ */ React12.createElement(
|
|
1268
|
+
Skeleton_default,
|
|
1269
|
+
{
|
|
1270
|
+
style: styles4.skeleton,
|
|
1271
|
+
height: titlesLevels(),
|
|
1272
|
+
borderRadius: 5
|
|
1273
|
+
},
|
|
1274
|
+
titleView
|
|
1275
|
+
);
|
|
1253
1276
|
}
|
|
1254
|
-
return onClick ? /* @__PURE__ */
|
|
1277
|
+
return onClick ? /* @__PURE__ */ React12.createElement(import_react_native9.TouchableOpacity, { onPress: onClick, activeOpacity: 0.85 }, titleView) : titleView;
|
|
1255
1278
|
});
|
|
1256
1279
|
Title.displayName = "Title" /* Title */;
|
|
1257
1280
|
var Title_native_default = Title;
|
|
1258
1281
|
|
|
1259
1282
|
// components/modal/context/ModalContext.tsx
|
|
1260
|
-
var
|
|
1261
|
-
var ModalContext =
|
|
1283
|
+
var import_react15 = __toESM(require("react"));
|
|
1284
|
+
var ModalContext = import_react15.default.createContext({
|
|
1262
1285
|
scrollViewRef: null,
|
|
1263
1286
|
handleOnScroll: () => null,
|
|
1264
1287
|
isFooter: false,
|
|
@@ -1266,7 +1289,7 @@ var ModalContext = import_react14.default.createContext({
|
|
|
1266
1289
|
});
|
|
1267
1290
|
|
|
1268
1291
|
// components/modal/Modal.native.tsx
|
|
1269
|
-
var Modal =
|
|
1292
|
+
var Modal = import_react16.default.forwardRef(
|
|
1270
1293
|
({
|
|
1271
1294
|
children,
|
|
1272
1295
|
active = false,
|
|
@@ -1278,10 +1301,10 @@ var Modal = import_react15.default.forwardRef(
|
|
|
1278
1301
|
title,
|
|
1279
1302
|
...others
|
|
1280
1303
|
}, ref) => {
|
|
1281
|
-
const scrollViewRef = (0,
|
|
1282
|
-
const [scrollOffset, setScrollOffset] = (0,
|
|
1283
|
-
const [visible, setVisible] = (0,
|
|
1284
|
-
const [isFooter, setIsFooter] = (0,
|
|
1304
|
+
const scrollViewRef = (0, import_react16.useRef)(null);
|
|
1305
|
+
const [scrollOffset, setScrollOffset] = (0, import_react16.useState)(0);
|
|
1306
|
+
const [visible, setVisible] = (0, import_react16.useState)(active || false);
|
|
1307
|
+
const [isFooter, setIsFooter] = (0, import_react16.useState)(active || false);
|
|
1285
1308
|
const handleOnScroll = (event) => {
|
|
1286
1309
|
setScrollOffset(event.nativeEvent.contentOffset.y);
|
|
1287
1310
|
};
|
|
@@ -1292,10 +1315,10 @@ var Modal = import_react15.default.forwardRef(
|
|
|
1292
1315
|
if (onClose) onClose(e);
|
|
1293
1316
|
setVisible(false);
|
|
1294
1317
|
};
|
|
1295
|
-
(0,
|
|
1318
|
+
(0, import_react16.useEffect)(() => {
|
|
1296
1319
|
setVisible(active);
|
|
1297
1320
|
}, [active]);
|
|
1298
|
-
return /* @__PURE__ */
|
|
1321
|
+
return /* @__PURE__ */ import_react16.default.createElement(ModalContext.Provider, { value: { scrollViewRef, handleOnScroll, isFooter, setIsFooter } }, trigger, /* @__PURE__ */ import_react16.default.createElement(
|
|
1299
1322
|
import_react_native_modal.default,
|
|
1300
1323
|
{
|
|
1301
1324
|
isVisible: visible,
|
|
@@ -1310,7 +1333,7 @@ var Modal = import_react15.default.forwardRef(
|
|
|
1310
1333
|
onModalHide,
|
|
1311
1334
|
...others
|
|
1312
1335
|
},
|
|
1313
|
-
/* @__PURE__ */
|
|
1336
|
+
/* @__PURE__ */ import_react16.default.createElement(import_react_native10.View, { ref, style: [styles2.body, { backgroundColor: getColorStyle("WHITE" /* BACKGROUND */) }] }, /* @__PURE__ */ import_react16.default.createElement(import_react_native10.View, { style: { paddingVertical: !title && (hideCloseButton || unClosable) ? 8 : 16 } }, /* @__PURE__ */ import_react16.default.createElement(Columns_native_default, { verticalAlign: "ALIGNED_CENTER" /* ALIGNED_CENTER */ }, /* @__PURE__ */ import_react16.default.createElement(Column_native_default, null, /* @__PURE__ */ import_react16.default.createElement(Title_native_default, { level: 4 }, title)), !hideCloseButton && !unClosable && /* @__PURE__ */ import_react16.default.createElement(Column_native_default, { narrow: true }, /* @__PURE__ */ import_react16.default.createElement(import_react_native10.TouchableOpacity, { onPress: handleClose }, /* @__PURE__ */ import_react16.default.createElement(Icon_native_default, { name: "tri-times" /* TIMES */, size: "medium" /* MEDIUM */, color: "MAIN" /* MAIN */ }))))), children)
|
|
1314
1337
|
));
|
|
1315
1338
|
}
|
|
1316
1339
|
);
|
|
@@ -1338,11 +1361,11 @@ var styles2 = import_react_native10.StyleSheet.create({
|
|
|
1338
1361
|
});
|
|
1339
1362
|
|
|
1340
1363
|
// components/modal/body/ModalBody.native.tsx
|
|
1341
|
-
var
|
|
1364
|
+
var React15 = __toESM(require("react"));
|
|
1342
1365
|
var import_react_native11 = require("react-native");
|
|
1343
|
-
var ModalBody =
|
|
1344
|
-
const { handleOnScroll, scrollViewRef, isFooter } =
|
|
1345
|
-
return /* @__PURE__ */
|
|
1366
|
+
var ModalBody = React15.forwardRef(({ children, ...others }, ref) => {
|
|
1367
|
+
const { handleOnScroll, scrollViewRef, isFooter } = React15.useContext(ModalContext);
|
|
1368
|
+
return /* @__PURE__ */ React15.createElement(
|
|
1346
1369
|
import_react_native11.ScrollView,
|
|
1347
1370
|
{
|
|
1348
1371
|
ref: scrollViewRef,
|
|
@@ -1350,7 +1373,7 @@ var ModalBody = React14.forwardRef(({ children, ...others }, ref) => {
|
|
|
1350
1373
|
onScroll: handleOnScroll,
|
|
1351
1374
|
showsVerticalScrollIndicator: false
|
|
1352
1375
|
},
|
|
1353
|
-
/* @__PURE__ */
|
|
1376
|
+
/* @__PURE__ */ React15.createElement(
|
|
1354
1377
|
import_react_native11.View,
|
|
1355
1378
|
{
|
|
1356
1379
|
ref,
|
|
@@ -1371,17 +1394,17 @@ ModalBody.displayName = "ModalBody" /* ModalBody */;
|
|
|
1371
1394
|
var ModalBody_native_default = ModalBody;
|
|
1372
1395
|
|
|
1373
1396
|
// components/modal/footer/ModalFooter.native.tsx
|
|
1374
|
-
var
|
|
1397
|
+
var React16 = __toESM(require("react"));
|
|
1375
1398
|
var import_react_native12 = require("react-native");
|
|
1376
|
-
var ModalFooter =
|
|
1377
|
-
const { setIsFooter } =
|
|
1378
|
-
|
|
1399
|
+
var ModalFooter = React16.forwardRef(({ children, ...others }, ref) => {
|
|
1400
|
+
const { setIsFooter } = React16.useContext(ModalContext);
|
|
1401
|
+
React16.useEffect(() => {
|
|
1379
1402
|
setIsFooter(true);
|
|
1380
1403
|
return () => {
|
|
1381
1404
|
setIsFooter(false);
|
|
1382
1405
|
};
|
|
1383
1406
|
}, []);
|
|
1384
|
-
return /* @__PURE__ */
|
|
1407
|
+
return /* @__PURE__ */ React16.createElement(import_react_native12.View, { ref, style: [styles3.container], ...others }, /* @__PURE__ */ React16.createElement(import_react_native12.View, { style: [{ backgroundColor: getColorStyle("WHITE" /* BACKGROUND */) }] }, typeof children === "string" && /* @__PURE__ */ React16.createElement(Title_native_default, { level: 3 /* THREE */, style: styles3.title }, children) || children));
|
|
1385
1408
|
});
|
|
1386
1409
|
ModalFooter.displayName = "ModalFooter" /* ModalFooter */;
|
|
1387
1410
|
var styles3 = import_react_native12.StyleSheet.create({
|
|
@@ -1393,13 +1416,13 @@ var styles3 = import_react_native12.StyleSheet.create({
|
|
|
1393
1416
|
});
|
|
1394
1417
|
|
|
1395
1418
|
// components/select/Select.native.tsx
|
|
1396
|
-
var
|
|
1419
|
+
var import_react17 = __toESM(require("react"));
|
|
1397
1420
|
var import_react_native14 = require("react-native");
|
|
1398
1421
|
|
|
1399
1422
|
// components/select/option/SelectOption.native.tsx
|
|
1400
|
-
var
|
|
1423
|
+
var React17 = __toESM(require("react"));
|
|
1401
1424
|
var import_react_native13 = require("react-native");
|
|
1402
|
-
var SelectOption =
|
|
1425
|
+
var SelectOption = React17.forwardRef(({ disabled, children, onClick, label, iconName, ...others }, ref) => {
|
|
1403
1426
|
const { checked } = others;
|
|
1404
1427
|
const styles4 = import_react_native13.StyleSheet.create({
|
|
1405
1428
|
container: {
|
|
@@ -1408,7 +1431,7 @@ var SelectOption = React16.forwardRef(({ disabled, children, onClick, label, ico
|
|
|
1408
1431
|
paddingVertical: checked && !iconName ? 8.5 : 10
|
|
1409
1432
|
}
|
|
1410
1433
|
});
|
|
1411
|
-
const textColor =
|
|
1434
|
+
const textColor = React17.useMemo(() => {
|
|
1412
1435
|
switch (true) {
|
|
1413
1436
|
case disabled === true:
|
|
1414
1437
|
return "DISABLED" /* DISABLED */;
|
|
@@ -1416,7 +1439,7 @@ var SelectOption = React16.forwardRef(({ disabled, children, onClick, label, ico
|
|
|
1416
1439
|
return "MAIN" /* MAIN */;
|
|
1417
1440
|
}
|
|
1418
1441
|
}, [disabled]);
|
|
1419
|
-
const iconColor =
|
|
1442
|
+
const iconColor = React17.useMemo(() => {
|
|
1420
1443
|
switch (true) {
|
|
1421
1444
|
case disabled === true:
|
|
1422
1445
|
return "DISABLED" /* DISABLED */;
|
|
@@ -1424,17 +1447,17 @@ var SelectOption = React16.forwardRef(({ disabled, children, onClick, label, ico
|
|
|
1424
1447
|
return "MAIN" /* MAIN */;
|
|
1425
1448
|
}
|
|
1426
1449
|
}, [disabled]);
|
|
1427
|
-
const columnLabelSize =
|
|
1450
|
+
const columnLabelSize = React17.useMemo(() => {
|
|
1428
1451
|
return iconName ? checked && 10 || 11 : checked && 11 || 12;
|
|
1429
1452
|
}, [iconName, checked]);
|
|
1430
|
-
return /* @__PURE__ */
|
|
1453
|
+
return /* @__PURE__ */ React17.createElement(import_react_native13.TouchableOpacity, { ref, style: [styles4.container], ...others, onPress: onClick }, /* @__PURE__ */ React17.createElement(Columns_native_default, { verticalAlign: "ALIGNED_CENTER" /* ALIGNED_CENTER */ }, iconName && /* @__PURE__ */ React17.createElement(Column_native_default, { size: 1 }, /* @__PURE__ */ React17.createElement(Icon_native_default, { size: "small" /* SMALL */, name: iconName, color: iconColor })), /* @__PURE__ */ React17.createElement(Column_native_default, { size: columnLabelSize }, /* @__PURE__ */ React17.createElement(
|
|
1431
1454
|
Text_native_default,
|
|
1432
1455
|
{
|
|
1433
1456
|
typo: [checked && "has-text-weight-semibold" /* TEXT_WEIGHT_SEMIBOLD */],
|
|
1434
1457
|
...{ style: { paddingLeft: 8, color: getColorStyle(textColor) } }
|
|
1435
1458
|
},
|
|
1436
1459
|
children || label
|
|
1437
|
-
)), checked && /* @__PURE__ */
|
|
1460
|
+
)), checked && /* @__PURE__ */ React17.createElement(Column_native_default, { size: 1 }, /* @__PURE__ */ React17.createElement(Icon_native_default, { size: "small" /* SMALL */, name: "tri-check", color: iconColor }))));
|
|
1438
1461
|
});
|
|
1439
1462
|
SelectOption.displayName = "SelectOption" /* SelectOption */;
|
|
1440
1463
|
var SelectOption_native_default = SelectOption;
|
|
@@ -1443,16 +1466,16 @@ var SelectOption_native_default = SelectOption;
|
|
|
1443
1466
|
var index_native_default = SelectOption_native_default;
|
|
1444
1467
|
|
|
1445
1468
|
// components/select/Select.native.tsx
|
|
1446
|
-
var Select =
|
|
1469
|
+
var Select = import_react17.default.forwardRef(
|
|
1447
1470
|
({ children, id, selected, label, iconName, onChange, disabled, multiple, onBlur, status, ...others }, ref) => {
|
|
1448
|
-
const [selectedValues, setSelectedValues] = (0,
|
|
1449
|
-
const [selectedNames, setSelectedNames] =
|
|
1450
|
-
const [display, setDisplay] = (0,
|
|
1451
|
-
const reactId =
|
|
1452
|
-
(0,
|
|
1471
|
+
const [selectedValues, setSelectedValues] = (0, import_react17.useState)(selected);
|
|
1472
|
+
const [selectedNames, setSelectedNames] = import_react17.default.useState([]);
|
|
1473
|
+
const [display, setDisplay] = (0, import_react17.useState)(false);
|
|
1474
|
+
const reactId = import_react17.default.useId();
|
|
1475
|
+
(0, import_react17.useEffect)(() => {
|
|
1453
1476
|
var _a;
|
|
1454
|
-
const labelSelected = (_a =
|
|
1455
|
-
if (!
|
|
1477
|
+
const labelSelected = (_a = import_react17.default.Children.map(children, (child) => {
|
|
1478
|
+
if (!import_react17.default.isValidElement(child)) return false;
|
|
1456
1479
|
const label2 = child.props.children || child.props.label;
|
|
1457
1480
|
switch (true) {
|
|
1458
1481
|
case (Array.isArray(selected) && selected.includes(child.props.value) || !Array.isArray(selected) && child.props.value === selected):
|
|
@@ -1464,14 +1487,14 @@ var Select = import_react16.default.forwardRef(
|
|
|
1464
1487
|
labelSelected && setSelectedNames(labelSelected);
|
|
1465
1488
|
setSelectedValues(selected);
|
|
1466
1489
|
}, [selected]);
|
|
1467
|
-
const handleOpenCloseModal = (0,
|
|
1490
|
+
const handleOpenCloseModal = (0, import_react17.useCallback)(() => {
|
|
1468
1491
|
!disabled && setDisplay((prev) => !prev);
|
|
1469
1492
|
}, [disabled]);
|
|
1470
|
-
const isChecked = (0,
|
|
1493
|
+
const isChecked = (0, import_react17.useCallback)(
|
|
1471
1494
|
(value) => multiple && selectedValues && typeof selectedValues !== "string" && typeof selectedValues !== "number" ? selectedValues == null ? void 0 : selectedValues.includes(value) : selectedValues === value,
|
|
1472
1495
|
[multiple, selectedValues]
|
|
1473
1496
|
);
|
|
1474
|
-
const setNewSelectedValues = (0,
|
|
1497
|
+
const setNewSelectedValues = (0, import_react17.useCallback)(
|
|
1475
1498
|
({
|
|
1476
1499
|
isChecked: isChecked2,
|
|
1477
1500
|
children: children2,
|
|
@@ -1516,9 +1539,9 @@ var Select = import_react16.default.forwardRef(
|
|
|
1516
1539
|
},
|
|
1517
1540
|
[multiple]
|
|
1518
1541
|
);
|
|
1519
|
-
const options =
|
|
1520
|
-
return
|
|
1521
|
-
if (!
|
|
1542
|
+
const options = import_react17.default.useMemo(() => {
|
|
1543
|
+
return import_react17.default.Children.map(children, (child, index) => {
|
|
1544
|
+
if (!import_react17.default.isValidElement(child)) return null;
|
|
1522
1545
|
const clickEventValue = (v) => {
|
|
1523
1546
|
switch (true) {
|
|
1524
1547
|
case (multiple && (selectedValues == null ? void 0 : selectedValues.includes(child.props.value)) || !multiple && selectedValues === child.props.value):
|
|
@@ -1548,16 +1571,16 @@ var Select = import_react16.default.forwardRef(
|
|
|
1548
1571
|
if (child.props.onClick) child.props.onClick();
|
|
1549
1572
|
}
|
|
1550
1573
|
};
|
|
1551
|
-
return /* @__PURE__ */
|
|
1574
|
+
return /* @__PURE__ */ import_react17.default.createElement(index_native_default, { ...props, key: `${reactId}_${index}` });
|
|
1552
1575
|
});
|
|
1553
1576
|
}, [multiple, selectedValues, children]);
|
|
1554
|
-
return /* @__PURE__ */
|
|
1577
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
|
1555
1578
|
Modal_native_default,
|
|
1556
1579
|
{
|
|
1557
1580
|
active: display,
|
|
1558
1581
|
onClose: handleOpenCloseModal,
|
|
1559
1582
|
unClosable: true,
|
|
1560
|
-
trigger: /* @__PURE__ */
|
|
1583
|
+
trigger: /* @__PURE__ */ import_react17.default.createElement(import_react_native14.TouchableOpacity, { onPress: handleOpenCloseModal }, /* @__PURE__ */ import_react17.default.createElement(
|
|
1561
1584
|
Input_native_default,
|
|
1562
1585
|
{
|
|
1563
1586
|
status,
|
|
@@ -1575,7 +1598,7 @@ var Select = import_react16.default.forwardRef(
|
|
|
1575
1598
|
}
|
|
1576
1599
|
))
|
|
1577
1600
|
},
|
|
1578
|
-
/* @__PURE__ */
|
|
1601
|
+
/* @__PURE__ */ import_react17.default.createElement(ModalBody_native_default, null, /* @__PURE__ */ import_react17.default.createElement(import_react_native14.View, { style: { paddingBottom: 20 } }, options))
|
|
1579
1602
|
);
|
|
1580
1603
|
}
|
|
1581
1604
|
);
|