@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
|
@@ -171,16 +171,24 @@ var getAlignStyle = (alignType) => {
|
|
|
171
171
|
};
|
|
172
172
|
|
|
173
173
|
// components/icon/Icon.native.tsx
|
|
174
|
-
var
|
|
175
|
-
var import_native = __toESM(require("react-content-loader/native"));
|
|
174
|
+
var import_react5 = __toESM(require("react"));
|
|
176
175
|
var import_react_native2 = require("react-native");
|
|
176
|
+
|
|
177
|
+
// components/skeleton/Skeleton.tsx
|
|
178
|
+
var import_react4 = __toESM(require("react"));
|
|
179
|
+
var Skeleton = () => {
|
|
180
|
+
return /* @__PURE__ */ import_react4.default.createElement("div", null);
|
|
181
|
+
};
|
|
182
|
+
var Skeleton_default = Skeleton;
|
|
183
|
+
|
|
184
|
+
// components/icon/Icon.native.tsx
|
|
177
185
|
var import_css = require("react-native-svg/css");
|
|
178
|
-
var Icon =
|
|
186
|
+
var Icon = import_react5.default.forwardRef(
|
|
179
187
|
({ size, name, circled, stretched, color, backgroundColor, onClick, align, skeleton, testId, ...others }, ref) => {
|
|
180
188
|
const {
|
|
181
189
|
theme: { icons }
|
|
182
|
-
} = (0,
|
|
183
|
-
const statesContext = (0,
|
|
190
|
+
} = (0, import_react5.useContext)(TrilogyThemeContext);
|
|
191
|
+
const statesContext = (0, import_react5.useContext)(StatesContext);
|
|
184
192
|
const style = {};
|
|
185
193
|
const defaultSize = size === "huge" /* HUGE */ && 66 || size === "large" /* LARGE */ && 44 || size === "medium" /* MEDIUM */ && 30 || size === "small" /* SMALL */ && 20 || size === "smaller" /* SMALLER */ && 16 || 20;
|
|
186
194
|
const iconColor = color && getColorStyle(color) || statesContext.inverted && getColorStyle("WHITE" /* BACKGROUND */) || getColorStyle("MAIN" /* MAIN */);
|
|
@@ -230,14 +238,23 @@ var Icon = import_react4.default.forwardRef(
|
|
|
230
238
|
justifyContent: "center"
|
|
231
239
|
}
|
|
232
240
|
});
|
|
233
|
-
const IconSkeleton = () => /* @__PURE__ */
|
|
241
|
+
const IconSkeleton = () => /* @__PURE__ */ import_react5.default.createElement(
|
|
242
|
+
Skeleton_default,
|
|
243
|
+
{
|
|
244
|
+
style: styles2.skeleton,
|
|
245
|
+
width: circledWidth,
|
|
246
|
+
height: circledWidth,
|
|
247
|
+
borderRadius: iconSkeletonRadius,
|
|
248
|
+
testID: "skeleton-id"
|
|
249
|
+
}
|
|
250
|
+
);
|
|
234
251
|
if (skeleton) {
|
|
235
|
-
return /* @__PURE__ */
|
|
252
|
+
return /* @__PURE__ */ import_react5.default.createElement(IconSkeleton, null);
|
|
236
253
|
}
|
|
237
|
-
let iconView = /* @__PURE__ */
|
|
254
|
+
let iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, null);
|
|
238
255
|
if (name && icons) {
|
|
239
256
|
if (stretched && !circled) {
|
|
240
|
-
iconView = /* @__PURE__ */
|
|
257
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles2.stretched, testID: `${testId}-stretched` }, /* @__PURE__ */ import_react5.default.createElement(
|
|
241
258
|
import_css.WithLocalSvg,
|
|
242
259
|
{
|
|
243
260
|
style: [styles2.iconCircled, styles2.icon],
|
|
@@ -248,7 +265,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
248
265
|
}
|
|
249
266
|
));
|
|
250
267
|
} else if (circled) {
|
|
251
|
-
iconView = /* @__PURE__ */
|
|
268
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles2.circled, testID: `${testId}-circled` }, /* @__PURE__ */ import_react5.default.createElement(
|
|
252
269
|
import_css.WithLocalSvg,
|
|
253
270
|
{
|
|
254
271
|
style: [styles2.iconCircled, styles2.icon],
|
|
@@ -259,7 +276,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
259
276
|
}
|
|
260
277
|
));
|
|
261
278
|
} else {
|
|
262
|
-
iconView = /* @__PURE__ */
|
|
279
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles2.iconContainer, ...others }, /* @__PURE__ */ import_react5.default.createElement(
|
|
263
280
|
import_css.WithLocalSvg,
|
|
264
281
|
{
|
|
265
282
|
style: [styles2.icon, style],
|
|
@@ -271,7 +288,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
271
288
|
));
|
|
272
289
|
}
|
|
273
290
|
}
|
|
274
|
-
return onClick ? /* @__PURE__ */
|
|
291
|
+
return onClick ? /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles2.rootView, testID: testId, ref }, /* @__PURE__ */ import_react5.default.createElement(
|
|
275
292
|
import_react_native2.TouchableOpacity,
|
|
276
293
|
{
|
|
277
294
|
style: { width: "100%" },
|
|
@@ -280,7 +297,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
280
297
|
testID: `${testId}-pressable`
|
|
281
298
|
},
|
|
282
299
|
iconView
|
|
283
|
-
)) : /* @__PURE__ */
|
|
300
|
+
)) : /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles2.rootView, testID: testId, ref }, iconView);
|
|
284
301
|
}
|
|
285
302
|
);
|
|
286
303
|
Icon.displayName = "Icon" /* Icon */;
|
|
@@ -292,10 +309,10 @@ var setTypographyAlign = (typo = "left") => {
|
|
|
292
309
|
};
|
|
293
310
|
|
|
294
311
|
// objects/Typography/TypographyBold/index.native.tsx
|
|
295
|
-
var
|
|
312
|
+
var import_react6 = require("react");
|
|
296
313
|
var getTypographyBoldStyle = (typo) => {
|
|
297
314
|
var _a, _b, _c, _d;
|
|
298
|
-
const { theme } = (0,
|
|
315
|
+
const { theme } = (0, import_react6.useContext)(TrilogyThemeContext);
|
|
299
316
|
const currentTypo = Array.isArray(typo) ? typo : [typo];
|
|
300
317
|
switch (true) {
|
|
301
318
|
case (typo && currentTypo.includes("has-text-weight-medium" /* TEXT_WEIGHT_MEDIUM */)):
|
|
@@ -315,64 +332,63 @@ var setTypographyColor = (typo = "", inverted = false, loading = false) => {
|
|
|
315
332
|
};
|
|
316
333
|
|
|
317
334
|
// components/text/Text.native.tsx
|
|
318
|
-
var
|
|
319
|
-
var import_native2 = __toESM(require("react-content-loader/native"));
|
|
335
|
+
var import_react7 = __toESM(require("react"));
|
|
320
336
|
var import_react_native3 = require("react-native");
|
|
321
|
-
var Text =
|
|
322
|
-
children,
|
|
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
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
337
|
+
var Text = import_react7.default.forwardRef(
|
|
338
|
+
({ children, level, style, inverted, typo, skeleton, accessibilityLabel, numberOfLines = 0, ...others }, ref) => {
|
|
339
|
+
const statesContext = (0, import_react7.useContext)(StatesContext);
|
|
340
|
+
const textLevels = (level2) => {
|
|
341
|
+
return level2 && level2 == 1 /* ONE */ && 16 || level2 && level2 == 2 /* TWO */ && 14 || level2 && level2 == 3 /* THREE */ && 12 || level2 && level2 == 4 /* FOUR */ && 10 || 14;
|
|
342
|
+
};
|
|
343
|
+
const styles2 = import_react_native3.StyleSheet.create({
|
|
344
|
+
text: {
|
|
345
|
+
fontFamily: getTypographyBoldStyle(typo),
|
|
346
|
+
fontSize: textLevels(level),
|
|
347
|
+
color: setTypographyColor(typo, inverted || statesContext.inverted, skeleton),
|
|
348
|
+
textAlign: setTypographyAlign(typo),
|
|
349
|
+
lineHeight: textLevels(level) * 1.2,
|
|
350
|
+
textDecorationLine: "none",
|
|
351
|
+
alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start"
|
|
352
|
+
},
|
|
353
|
+
skeleton: {
|
|
354
|
+
minWidth: 10,
|
|
355
|
+
alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start",
|
|
356
|
+
borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3,
|
|
357
|
+
borderWidth: 0.1,
|
|
358
|
+
borderColor: getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */),
|
|
359
|
+
overflow: "hidden",
|
|
360
|
+
height: textLevels(level)
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
const textAccessibilityLabel = accessibilityLabel ? accessibilityLabel : typeof children === "string" ? children : void 0;
|
|
364
|
+
let textView = /* @__PURE__ */ import_react7.default.createElement(
|
|
365
|
+
import_react_native3.Text,
|
|
366
|
+
{
|
|
367
|
+
ref,
|
|
368
|
+
numberOfLines,
|
|
369
|
+
ellipsizeMode: "tail",
|
|
370
|
+
maxFontSizeMultiplier: 1.3,
|
|
371
|
+
accessible: !!textAccessibilityLabel,
|
|
372
|
+
accessibilityLabel: textAccessibilityLabel,
|
|
373
|
+
style: [styles2.text, style],
|
|
374
|
+
...others
|
|
375
|
+
},
|
|
376
|
+
children
|
|
377
|
+
);
|
|
378
|
+
if (skeleton) {
|
|
379
|
+
textView = /* @__PURE__ */ import_react7.default.createElement(
|
|
380
|
+
Skeleton_default,
|
|
381
|
+
{
|
|
382
|
+
style: styles2.skeleton,
|
|
383
|
+
height: textLevels(level),
|
|
384
|
+
borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3
|
|
385
|
+
},
|
|
386
|
+
textView
|
|
387
|
+
);
|
|
354
388
|
}
|
|
355
|
-
|
|
356
|
-
const textAccessibilityLabel = accessibilityLabel ? accessibilityLabel : typeof children === "string" ? children : void 0;
|
|
357
|
-
let textView = /* @__PURE__ */ import_react6.default.createElement(
|
|
358
|
-
import_react_native3.Text,
|
|
359
|
-
{
|
|
360
|
-
ref,
|
|
361
|
-
numberOfLines,
|
|
362
|
-
ellipsizeMode: "tail",
|
|
363
|
-
maxFontSizeMultiplier: 1.3,
|
|
364
|
-
accessible: !!textAccessibilityLabel,
|
|
365
|
-
accessibilityLabel: textAccessibilityLabel,
|
|
366
|
-
style: [styles2.text, style],
|
|
367
|
-
...others
|
|
368
|
-
},
|
|
369
|
-
children
|
|
370
|
-
);
|
|
371
|
-
if (skeleton) {
|
|
372
|
-
textView = /* @__PURE__ */ import_react6.default.createElement(import_native2.default, { style: styles2.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%" })));
|
|
389
|
+
return textView;
|
|
373
390
|
}
|
|
374
|
-
|
|
375
|
-
});
|
|
391
|
+
);
|
|
376
392
|
Text.displayName = "Text" /* Text */;
|
|
377
393
|
var Text_native_default = Text;
|
|
378
394
|
|
|
@@ -386,20 +402,20 @@ var STATUS_COLORS = {
|
|
|
386
402
|
};
|
|
387
403
|
|
|
388
404
|
// components/input/Input.native.tsx
|
|
389
|
-
var
|
|
405
|
+
var import_react10 = __toESM(require("react"));
|
|
390
406
|
var import_react_native6 = require("react-native");
|
|
391
407
|
|
|
392
408
|
// components/spacer/Spacer.native.tsx
|
|
393
|
-
var
|
|
409
|
+
var React5 = __toESM(require("react"));
|
|
394
410
|
var import_react_native4 = require("react-native");
|
|
395
|
-
var Spacer =
|
|
411
|
+
var Spacer = React5.forwardRef(({ size, horizontal }, ref) => {
|
|
396
412
|
const styles2 = import_react_native4.StyleSheet.create({
|
|
397
413
|
spacer: {
|
|
398
414
|
marginLeft: horizontal && parseInt(size.toString()) || 0,
|
|
399
415
|
marginTop: !horizontal && parseInt(size.toString()) || 0
|
|
400
416
|
}
|
|
401
417
|
});
|
|
402
|
-
return /* @__PURE__ */
|
|
418
|
+
return /* @__PURE__ */ React5.createElement(import_react_native4.View, { ref, style: styles2.spacer });
|
|
403
419
|
});
|
|
404
420
|
Spacer.displayName = "Spacer" /* Spacer */;
|
|
405
421
|
var Spacer_native_default = Spacer;
|
|
@@ -558,25 +574,25 @@ var InputKeyboardType = /* @__PURE__ */ ((InputKeyboardType2) => {
|
|
|
558
574
|
})(InputKeyboardType || {});
|
|
559
575
|
|
|
560
576
|
// components/input/gauge/InputGauge.native.tsx
|
|
561
|
-
var
|
|
577
|
+
var import_react9 = __toESM(require("react"));
|
|
562
578
|
var import_react_native5 = require("react-native");
|
|
563
579
|
|
|
564
580
|
// components/input/gauge/hook/useGauge.native.tsx
|
|
565
|
-
var
|
|
581
|
+
var import_react8 = __toESM(require("react"));
|
|
566
582
|
var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
567
583
|
var _a, _b;
|
|
568
|
-
const [points, setPoints] =
|
|
584
|
+
const [points, setPoints] = import_react8.default.useState(0);
|
|
569
585
|
const initStateVerifies = { isVerify: false, color: "NEUTRAL" /* NEUTRAL */ };
|
|
570
|
-
const [isLengthVerify, setIsLengthVerify] =
|
|
571
|
-
const [isSpecialCharsVerify, setIsSpecialCharsVerify] =
|
|
572
|
-
const [isNumberVerify, setIsNumberVerify] =
|
|
573
|
-
const [isUppercaseVerify, setIsUppercaseVerify] =
|
|
574
|
-
const [isLowerercaseVerify, setisLowerercaseVerify] =
|
|
575
|
-
const nbAllVerifies =
|
|
586
|
+
const [isLengthVerify, setIsLengthVerify] = import_react8.default.useState(initStateVerifies);
|
|
587
|
+
const [isSpecialCharsVerify, setIsSpecialCharsVerify] = import_react8.default.useState(initStateVerifies);
|
|
588
|
+
const [isNumberVerify, setIsNumberVerify] = import_react8.default.useState(initStateVerifies);
|
|
589
|
+
const [isUppercaseVerify, setIsUppercaseVerify] = import_react8.default.useState(initStateVerifies);
|
|
590
|
+
const [isLowerercaseVerify, setisLowerercaseVerify] = import_react8.default.useState(initStateVerifies);
|
|
591
|
+
const nbAllVerifies = import_react8.default.useMemo(
|
|
576
592
|
() => validationRules && Object.values(validationRules).filter((rule) => rule).length || securityRules && securityRules.length || 0,
|
|
577
593
|
[validationRules, securityRules]
|
|
578
594
|
);
|
|
579
|
-
const rules =
|
|
595
|
+
const rules = import_react8.default.useMemo(
|
|
580
596
|
() => securityRules && securityRules.map(({ label, patternValidator, dataAttribute }) => ({
|
|
581
597
|
label,
|
|
582
598
|
validate: !!(patternValidator == null ? void 0 : patternValidator.test(inputValue)),
|
|
@@ -584,7 +600,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
584
600
|
})),
|
|
585
601
|
[inputValue, securityRules]
|
|
586
602
|
);
|
|
587
|
-
const calcPoints =
|
|
603
|
+
const calcPoints = import_react8.default.useMemo(() => {
|
|
588
604
|
if (validationRules) {
|
|
589
605
|
return Number((points / nbAllVerifies * 100).toFixed(0));
|
|
590
606
|
}
|
|
@@ -594,7 +610,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
594
610
|
}
|
|
595
611
|
return 0;
|
|
596
612
|
}, [points, nbAllVerifies, rules, validationRules, securityRules]);
|
|
597
|
-
const widthGauge =
|
|
613
|
+
const widthGauge = import_react8.default.useMemo(() => {
|
|
598
614
|
if (calcPoints <= 50 && calcPoints > 0) return "50%";
|
|
599
615
|
if (calcPoints <= 99 && calcPoints > 50) return "75%";
|
|
600
616
|
if (calcPoints === 100) return "100%";
|
|
@@ -606,7 +622,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
606
622
|
if (calcPoints === 100) return getColorStyle("SUCCESS" /* SUCCESS */);
|
|
607
623
|
return getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */);
|
|
608
624
|
};
|
|
609
|
-
const LengthvalidationRulesText = (0,
|
|
625
|
+
const LengthvalidationRulesText = (0, import_react8.useMemo)(() => {
|
|
610
626
|
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
611
627
|
switch (true) {
|
|
612
628
|
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):
|
|
@@ -619,7 +635,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
619
635
|
return "";
|
|
620
636
|
}
|
|
621
637
|
}, [(_a = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a.min, (_b = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b.max]);
|
|
622
|
-
(0,
|
|
638
|
+
(0, import_react8.useEffect)(() => {
|
|
623
639
|
var _a2, _b2;
|
|
624
640
|
const min = ((_a2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a2.min) || 0;
|
|
625
641
|
const max = ((_b2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b2.max) || "";
|
|
@@ -651,7 +667,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
651
667
|
|
|
652
668
|
// components/input/gauge/InputGauge.native.tsx
|
|
653
669
|
var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
654
|
-
const id = (0,
|
|
670
|
+
const id = (0, import_react9.useId)();
|
|
655
671
|
const {
|
|
656
672
|
widthGauge,
|
|
657
673
|
colorGauge,
|
|
@@ -663,7 +679,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
663
679
|
isUppercaseVerify,
|
|
664
680
|
rules
|
|
665
681
|
} = useGauge({ validationRules, inputValue, securityRules });
|
|
666
|
-
return /* @__PURE__ */
|
|
682
|
+
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(
|
|
667
683
|
DataVerify,
|
|
668
684
|
{
|
|
669
685
|
display: !!(validationRules == null ? void 0 : validationRules.length),
|
|
@@ -672,7 +688,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
672
688
|
type: LengthvalidationRulesText,
|
|
673
689
|
index: 1
|
|
674
690
|
}
|
|
675
|
-
), /* @__PURE__ */
|
|
691
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
676
692
|
DataVerify,
|
|
677
693
|
{
|
|
678
694
|
display: !!(validationRules == null ? void 0 : validationRules.uppercase),
|
|
@@ -681,7 +697,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
681
697
|
type: "Majuscule",
|
|
682
698
|
index: 2
|
|
683
699
|
}
|
|
684
|
-
), /* @__PURE__ */
|
|
700
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
685
701
|
DataVerify,
|
|
686
702
|
{
|
|
687
703
|
display: !!(validationRules == null ? void 0 : validationRules.specialChars),
|
|
@@ -690,7 +706,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
690
706
|
type: "Caract\xE8res sp\xE9ciaux",
|
|
691
707
|
index: 3
|
|
692
708
|
}
|
|
693
|
-
), /* @__PURE__ */
|
|
709
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
694
710
|
DataVerify,
|
|
695
711
|
{
|
|
696
712
|
display: !!(validationRules == null ? void 0 : validationRules.lowercase),
|
|
@@ -699,7 +715,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
699
715
|
type: "Minuscule",
|
|
700
716
|
index: 4
|
|
701
717
|
}
|
|
702
|
-
), /* @__PURE__ */
|
|
718
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
703
719
|
DataVerify,
|
|
704
720
|
{
|
|
705
721
|
display: !!(validationRules == null ? void 0 : validationRules.number),
|
|
@@ -708,7 +724,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
708
724
|
type: "Chiffre",
|
|
709
725
|
index: 5
|
|
710
726
|
}
|
|
711
|
-
)), securityRules && rules && rules.map((rule, index) => /* @__PURE__ */
|
|
727
|
+
)), securityRules && rules && rules.map((rule, index) => /* @__PURE__ */ import_react9.default.createElement(
|
|
712
728
|
DataVerify,
|
|
713
729
|
{
|
|
714
730
|
index: index + 1,
|
|
@@ -722,7 +738,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
722
738
|
};
|
|
723
739
|
var DataVerify = ({ color, iconName, display, type, index }) => {
|
|
724
740
|
if (!display) return null;
|
|
725
|
-
return /* @__PURE__ */
|
|
741
|
+
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));
|
|
726
742
|
};
|
|
727
743
|
var InputGauge_native_default = InputGauge;
|
|
728
744
|
var styles = import_react_native5.StyleSheet.create({
|
|
@@ -758,7 +774,7 @@ var styles = import_react_native5.StyleSheet.create({
|
|
|
758
774
|
});
|
|
759
775
|
|
|
760
776
|
// components/input/Input.native.tsx
|
|
761
|
-
var Input =
|
|
777
|
+
var Input = import_react10.default.forwardRef(
|
|
762
778
|
({
|
|
763
779
|
defaultValue,
|
|
764
780
|
name,
|
|
@@ -802,14 +818,14 @@ var Input = import_react9.default.forwardRef(
|
|
|
802
818
|
inputIcon.set("success" /* SUCCESS */, "tri-check-circle" /* CHECK_CIRCLE */);
|
|
803
819
|
inputIcon.set("warning" /* WARNING */, "tri-exclamation-circle" /* EXCLAMATION_CIRCLE */);
|
|
804
820
|
inputIcon.set("error" /* ERROR */, "tri-exclamation-circle" /* EXCLAMATION_CIRCLE */);
|
|
805
|
-
const [value, setValue] = (0,
|
|
806
|
-
const [email, setEmail] = (0,
|
|
807
|
-
const [isFocused, setIsFocused] = (0,
|
|
808
|
-
const [iconPassword, setIconPassword] = (0,
|
|
809
|
-
const [dynamicPlaceholder, setDynamicPlaceholder] = (0,
|
|
810
|
-
const [isKeyboardVisible, setKeyboardVisible] = (0,
|
|
811
|
-
const animation = (0,
|
|
812
|
-
const sizeAnimation = (0,
|
|
821
|
+
const [value, setValue] = (0, import_react10.useState)(defaultValue || "");
|
|
822
|
+
const [email, setEmail] = (0, import_react10.useState)("");
|
|
823
|
+
const [isFocused, setIsFocused] = (0, import_react10.useState)(false);
|
|
824
|
+
const [iconPassword, setIconPassword] = (0, import_react10.useState)("tri-eye" /* EYE */);
|
|
825
|
+
const [dynamicPlaceholder, setDynamicPlaceholder] = (0, import_react10.useState)(false);
|
|
826
|
+
const [isKeyboardVisible, setKeyboardVisible] = (0, import_react10.useState)(null);
|
|
827
|
+
const animation = (0, import_react10.useRef)(new import_react_native6.Animated.Value(25)).current;
|
|
828
|
+
const sizeAnimation = (0, import_react10.useRef)(new import_react_native6.Animated.Value(placeholderDefaultSize)).current;
|
|
813
829
|
const paddingTopByPlatform = (os, dynamicPlaceholder2) => {
|
|
814
830
|
if (dynamicPlaceholder2 && type !== "search" /* SEARCH */ && os === "ios") {
|
|
815
831
|
return 10;
|
|
@@ -819,7 +835,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
819
835
|
}
|
|
820
836
|
return 0;
|
|
821
837
|
};
|
|
822
|
-
const handleChange = (0,
|
|
838
|
+
const handleChange = (0, import_react10.useCallback)((text) => {
|
|
823
839
|
var _a;
|
|
824
840
|
setValue(text);
|
|
825
841
|
setEmail("");
|
|
@@ -841,17 +857,17 @@ var Input = import_react9.default.forwardRef(
|
|
|
841
857
|
onSubmit == null ? void 0 : onSubmit(e);
|
|
842
858
|
type === "email" /* EMAIL */ && handleClick();
|
|
843
859
|
};
|
|
844
|
-
(0,
|
|
860
|
+
(0, import_react10.useEffect)(() => {
|
|
845
861
|
setValue(defaultValue || "");
|
|
846
862
|
}, [defaultValue, placeholder]);
|
|
847
|
-
(0,
|
|
863
|
+
(0, import_react10.useEffect)(() => {
|
|
848
864
|
if (value && value.length > 0 && placeholder && placeholder.length > 0) {
|
|
849
865
|
setDynamicPlaceholder(true);
|
|
850
866
|
} else {
|
|
851
867
|
setDynamicPlaceholder(false);
|
|
852
868
|
}
|
|
853
869
|
}, [placeholder, value]);
|
|
854
|
-
(0,
|
|
870
|
+
(0, import_react10.useEffect)(() => {
|
|
855
871
|
if (dynamicPlaceholder && type !== "search" /* SEARCH */) {
|
|
856
872
|
import_react_native6.Animated.timing(animation, {
|
|
857
873
|
toValue: 3,
|
|
@@ -876,7 +892,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
876
892
|
}).start();
|
|
877
893
|
}
|
|
878
894
|
}, [dynamicPlaceholder, animation, sizeAnimation]);
|
|
879
|
-
(0,
|
|
895
|
+
(0, import_react10.useEffect)(() => {
|
|
880
896
|
const keyboardDidShowListener = import_react_native6.Keyboard.addListener("keyboardDidShow", () => setKeyboardVisible(true));
|
|
881
897
|
const keyboardDidHideListener = import_react_native6.Keyboard.addListener("keyboardDidHide", () => setKeyboardVisible(false));
|
|
882
898
|
return () => {
|
|
@@ -884,7 +900,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
884
900
|
keyboardDidShowListener.remove();
|
|
885
901
|
};
|
|
886
902
|
}, []);
|
|
887
|
-
(0,
|
|
903
|
+
(0, import_react10.useEffect)(() => {
|
|
888
904
|
handleClick();
|
|
889
905
|
}, [isKeyboardVisible]);
|
|
890
906
|
const hasIcon = iconNameLeft || iconNameRight || false;
|
|
@@ -967,7 +983,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
967
983
|
marginBottom: isIOS ? 0 : -3
|
|
968
984
|
}
|
|
969
985
|
});
|
|
970
|
-
return /* @__PURE__ */
|
|
986
|
+
return /* @__PURE__ */ import_react10.default.createElement(
|
|
971
987
|
import_react_native6.View,
|
|
972
988
|
{
|
|
973
989
|
style: { width: "100%" },
|
|
@@ -975,9 +991,9 @@ var Input = import_react9.default.forwardRef(
|
|
|
975
991
|
accessibilityLabel: inputAccessibilityLabel,
|
|
976
992
|
testID: inputTestId
|
|
977
993
|
},
|
|
978
|
-
!dynamicPlaceholder && label && /* @__PURE__ */
|
|
979
|
-
!dynamicPlaceholder && label && sample && /* @__PURE__ */
|
|
980
|
-
/* @__PURE__ */
|
|
994
|
+
!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 */ })),
|
|
995
|
+
!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 */ })),
|
|
996
|
+
/* @__PURE__ */ import_react10.default.createElement(import_react_native6.View, { testID: "input-wrapper-id", style: styles2.inputWrapper }, dynamicPlaceholder && type !== "search" /* SEARCH */ && /* @__PURE__ */ import_react10.default.createElement(import_react_native6.Animated.Text, { style: [styles2.dynamicPlaceholder, { top: animation, fontSize: sizeAnimation }] }, placeholder), /* @__PURE__ */ import_react10.default.createElement(
|
|
981
997
|
import_react_native6.TextInput,
|
|
982
998
|
{
|
|
983
999
|
ref,
|
|
@@ -1019,7 +1035,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1019
1035
|
style: styles2.input,
|
|
1020
1036
|
...others
|
|
1021
1037
|
}
|
|
1022
|
-
), type === "email" && /* @__PURE__ */
|
|
1038
|
+
), type === "email" && /* @__PURE__ */ import_react10.default.createElement(Text_native_default, { style: styles2.text }, value, /* @__PURE__ */ import_react10.default.createElement(Text_native_default, { style: styles2.domain }, email)), hasIcon && type !== "password" /* PASSWORD */ && type !== "search" /* SEARCH */ && /* @__PURE__ */ import_react10.default.createElement(import_react_native6.View, { style: styles2.inputIconLeft }, /* @__PURE__ */ import_react10.default.createElement(
|
|
1023
1039
|
Icon_native_default,
|
|
1024
1040
|
{
|
|
1025
1041
|
align: "ALIGNED_START" /* ALIGNED_START */,
|
|
@@ -1027,7 +1043,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1027
1043
|
size: "small" /* SMALL */,
|
|
1028
1044
|
color: status && status === "success" && "SUCCESS" /* SUCCESS */ || status && status === "warning" && "WARNING" /* WARNING */ || status && status === "error" && "ERROR" /* ERROR */ || disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
1029
1045
|
}
|
|
1030
|
-
)), hasIcon && type !== "search" /* SEARCH */ && status && status !== "default" /* DEFAULT */ && type !== "password" /* PASSWORD */ && /* @__PURE__ */
|
|
1046
|
+
)), hasIcon && type !== "search" /* SEARCH */ && status && status !== "default" /* DEFAULT */ && type !== "password" /* PASSWORD */ && /* @__PURE__ */ import_react10.default.createElement(
|
|
1031
1047
|
import_react_native6.TouchableOpacity,
|
|
1032
1048
|
{
|
|
1033
1049
|
style: styles2.inputContainer,
|
|
@@ -1040,7 +1056,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1040
1056
|
});
|
|
1041
1057
|
}
|
|
1042
1058
|
},
|
|
1043
|
-
/* @__PURE__ */
|
|
1059
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
1044
1060
|
Icon_native_default,
|
|
1045
1061
|
{
|
|
1046
1062
|
testId: "icon-status-id",
|
|
@@ -1050,7 +1066,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1050
1066
|
color: status && status === "success" && "SUCCESS" /* SUCCESS */ || status && status === "warning" && "WARNING" /* WARNING */ || status && status === "error" && "ERROR" /* ERROR */ || status && "MAIN" /* MAIN */ || disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
1051
1067
|
}
|
|
1052
1068
|
)
|
|
1053
|
-
), iconNameRight && !iconNameLeft && type !== "search" /* SEARCH */ && type !== "password" /* PASSWORD */ && (!status || status === "default" /* DEFAULT */) && /* @__PURE__ */
|
|
1069
|
+
), iconNameRight && !iconNameLeft && type !== "search" /* SEARCH */ && type !== "password" /* PASSWORD */ && (!status || status === "default" /* DEFAULT */) && /* @__PURE__ */ import_react10.default.createElement(
|
|
1054
1070
|
import_react_native6.TouchableOpacity,
|
|
1055
1071
|
{
|
|
1056
1072
|
style: styles2.inputContainerRight,
|
|
@@ -1063,7 +1079,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1063
1079
|
});
|
|
1064
1080
|
}
|
|
1065
1081
|
},
|
|
1066
|
-
/* @__PURE__ */
|
|
1082
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
1067
1083
|
Icon_native_default,
|
|
1068
1084
|
{
|
|
1069
1085
|
testId: "icon-right-id",
|
|
@@ -1073,7 +1089,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1073
1089
|
color: disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
1074
1090
|
}
|
|
1075
1091
|
)
|
|
1076
|
-
), type === "password" /* PASSWORD */ && /* @__PURE__ */
|
|
1092
|
+
), 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 }, styles2.inputContainerLeft] }, /* @__PURE__ */ import_react10.default.createElement(Icon_native_default, { name: iconNameLeft })), /* @__PURE__ */ import_react10.default.createElement(
|
|
1077
1093
|
import_react_native6.TouchableOpacity,
|
|
1078
1094
|
{
|
|
1079
1095
|
style: styles2.inputContainerRight,
|
|
@@ -1089,7 +1105,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1089
1105
|
}
|
|
1090
1106
|
}
|
|
1091
1107
|
},
|
|
1092
|
-
/* @__PURE__ */
|
|
1108
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
1093
1109
|
Icon_native_default,
|
|
1094
1110
|
{
|
|
1095
1111
|
testId: "password-id",
|
|
@@ -1099,7 +1115,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1099
1115
|
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 */
|
|
1100
1116
|
}
|
|
1101
1117
|
)
|
|
1102
|
-
)), type === "search" /* SEARCH */ && !status && /* @__PURE__ */
|
|
1118
|
+
)), type === "search" /* SEARCH */ && !status && /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, /* @__PURE__ */ import_react10.default.createElement(import_react_native6.View, { style: styles2.inputContainerLeft }, /* @__PURE__ */ import_react10.default.createElement(
|
|
1103
1119
|
Icon_native_default,
|
|
1104
1120
|
{
|
|
1105
1121
|
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
@@ -1107,7 +1123,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1107
1123
|
size: "small" /* SMALL */,
|
|
1108
1124
|
color: disabled ? "DISABLED" /* DISABLED */ : "NEUTRAL" /* NEUTRAL */
|
|
1109
1125
|
}
|
|
1110
|
-
)), value.length > 0 && /* @__PURE__ */
|
|
1126
|
+
)), value.length > 0 && /* @__PURE__ */ import_react10.default.createElement(
|
|
1111
1127
|
import_react_native6.TouchableOpacity,
|
|
1112
1128
|
{
|
|
1113
1129
|
testID: "search-id",
|
|
@@ -1125,7 +1141,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1125
1141
|
setValue("");
|
|
1126
1142
|
}
|
|
1127
1143
|
},
|
|
1128
|
-
/* @__PURE__ */
|
|
1144
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
1129
1145
|
Icon_native_default,
|
|
1130
1146
|
{
|
|
1131
1147
|
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
@@ -1135,8 +1151,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
1135
1151
|
}
|
|
1136
1152
|
)
|
|
1137
1153
|
))),
|
|
1138
|
-
help && /* @__PURE__ */
|
|
1139
|
-
type === "password" /* PASSWORD */ && securityGauge && /* @__PURE__ */
|
|
1154
|
+
help && /* @__PURE__ */ import_react10.default.createElement(Text_native_default, { testId: "help-id", style: styles2.help }, help),
|
|
1155
|
+
type === "password" /* PASSWORD */ && securityGauge && /* @__PURE__ */ import_react10.default.createElement(InputGauge_native_default, { securityRules, validationRules, inputValue: value })
|
|
1140
1156
|
);
|
|
1141
1157
|
}
|
|
1142
1158
|
);
|