@trilogy-ds/react 0.0.20-esm-cjs → 0.0.21-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-LJ4LZ3UC.mjs → chunk-2JM27LG6.mjs} +1 -1
- package/lib/{chunk-5NJMUSWY.mjs → chunk-2LL5O6MQ.mjs} +1 -1
- package/lib/{chunk-ZRWNSZC6.mjs → chunk-3AUAH6SB.mjs} +1 -1
- package/lib/{chunk-JB7AXJFO.mjs → chunk-3CUMNA5T.mjs} +16 -4
- package/lib/{chunk-SFL4T7RS.mjs → chunk-4SO7GWOJ.mjs} +1 -1
- package/lib/{chunk-I4RR2QN7.mjs → chunk-6ENX3IQD.mjs} +2 -2
- package/lib/chunk-7DJ5V2J7.mjs +90 -0
- package/lib/{chunk-Q3NP4BBO.mjs → chunk-7GBIPPPJ.mjs} +2 -2
- package/lib/{chunk-IHTDJ5DD.mjs → chunk-ASDIW46N.mjs} +2 -2
- package/lib/{chunk-ZEEM3OU3.mjs → chunk-BRU34C4E.mjs} +3 -3
- package/lib/{chunk-T4AH7FLU.mjs → chunk-BT63AA2K.mjs} +1 -1
- package/lib/{chunk-HPM5H4HF.mjs → chunk-C6AECCOD.mjs} +1 -1
- package/lib/{chunk-5DY6WPCA.mjs → chunk-CILK7BCY.mjs} +2 -2
- package/lib/{chunk-U2STNP4N.mjs → chunk-CKEC5R4P.mjs} +1 -1
- package/lib/{chunk-RVRMMLZJ.mjs → chunk-CUP62RON.mjs} +2 -2
- package/lib/{chunk-KUVBW2U7.mjs → chunk-DJJVBJ43.mjs} +1 -1
- package/lib/{chunk-ZSBVX26X.mjs → chunk-DO5SSRTA.mjs} +1 -1
- package/lib/{chunk-MDZE2AV3.mjs → chunk-EJ56Z27S.mjs} +17 -10
- package/lib/{chunk-G2QCDZEE.mjs → chunk-EN6H737C.mjs} +1 -1
- package/lib/{chunk-ACDIJOLY.mjs → chunk-EP73KCU2.mjs} +12 -5
- package/lib/{chunk-TCRJL43C.mjs → chunk-FE4FFIG4.mjs} +2 -2
- package/lib/{chunk-XZCE64VV.mjs → chunk-FJ6D2YGE.mjs} +1 -1
- package/lib/{chunk-NKO25SIM.mjs → chunk-FJ7CLVIP.mjs} +2 -2
- package/lib/{chunk-K5D3QU3U.mjs → chunk-FT2IRACC.mjs} +2 -2
- package/lib/{chunk-QNDMUIJM.mjs → chunk-FUOU7EFL.mjs} +2 -2
- package/lib/{chunk-TPXCSXWT.mjs → chunk-G6ILMW5U.mjs} +3 -3
- package/lib/chunk-GJJJLJXB.mjs +635 -0
- package/lib/{chunk-573KW52P.mjs → chunk-GQID4AGA.mjs} +1 -1
- package/lib/{chunk-LQ2EKGFZ.mjs → chunk-HS3TUYYV.mjs} +1 -1
- package/lib/{chunk-M5W5FRMF.mjs → chunk-IOGFZUIN.mjs} +2 -2
- package/lib/{chunk-QTEMHSK5.mjs → chunk-IZHMZGGK.mjs} +1 -1
- package/lib/{chunk-WV5PBU2C.mjs → chunk-J4ZFH6JK.mjs} +17 -5
- package/lib/{chunk-67BVHO7H.mjs → chunk-JT4GOHCW.mjs} +2 -2
- package/lib/chunk-JV5B7QPH.mjs +320 -0
- package/lib/{chunk-B6D5UHOQ.mjs → chunk-JWWWYOOC.mjs} +1 -1
- package/lib/chunk-LHDHBH5T.mjs +1 -0
- package/lib/{chunk-QIEADZWY.mjs → chunk-LNFOP27Y.mjs} +1 -1
- package/lib/{chunk-7TEPMZRL.mjs → chunk-MKSHOXCA.mjs} +1 -1
- package/lib/{chunk-JDLZGLZJ.mjs → chunk-ML52WYPZ.mjs} +2 -2
- package/lib/{chunk-VSYM7BJ4.mjs → chunk-MV3N2D6T.mjs} +1 -1
- package/lib/{chunk-UPP3GX33.mjs → chunk-NEM7FT22.mjs} +16 -6
- package/lib/{chunk-7ZANYDV4.mjs → chunk-NYA63FUK.mjs} +1 -1
- package/lib/{chunk-NE4WGXUM.mjs → chunk-OPQY47KX.mjs} +1 -1
- package/lib/chunk-OSWW7RO6.mjs +84 -0
- package/lib/{chunk-23RKW2TY.mjs → chunk-P4BQZHBF.mjs} +1 -1
- package/lib/{chunk-IOXFCPJQ.mjs → chunk-PQMMGS3V.mjs} +1 -1
- package/lib/{chunk-3I74MN5M.mjs → chunk-PUBY4YSN.mjs} +2 -2
- package/lib/{chunk-VL2UCFFK.mjs → chunk-QAXBH7UN.mjs} +2 -2
- package/lib/{chunk-DWZ232Q2.mjs → chunk-QJCK6KDK.mjs} +2 -2
- package/lib/{chunk-UC3N6X6R.mjs → chunk-RDNWD3P4.mjs} +1 -1
- package/lib/{chunk-Y6VHQF2J.mjs → chunk-SOW7WGY7.mjs} +1 -1
- package/lib/{chunk-UTXKOHCM.mjs → chunk-TRCSKNBB.mjs} +3 -3
- package/lib/chunk-UZO5VCH2.mjs +1 -0
- package/lib/{chunk-2MP6W4C2.mjs → chunk-VLXOCQDY.mjs} +4 -4
- package/lib/{chunk-BIWBGSDJ.mjs → chunk-WUCECDGY.mjs} +1 -1
- package/lib/{chunk-I3LRGLUL.mjs → chunk-X737YRF5.mjs} +3 -3
- package/lib/{chunk-IT2ZBSQG.mjs → chunk-XJMDYFHO.mjs} +16 -7
- package/lib/{chunk-5ALKJFH4.mjs → chunk-XPBBHWYH.mjs} +1 -1
- package/lib/{chunk-432FETUO.mjs → chunk-YRWFLE4T.mjs} +1 -1
- package/lib/{chunk-POCUFCQC.mjs → chunk-ZG3V7XRP.mjs} +1 -1
- package/lib/{chunk-YSBY3XJC.mjs → chunk-ZK7CNJ4A.mjs} +1 -1
- package/lib/{chunk-CCIRXOIR.mjs → chunk-ZNFQWQ2T.mjs} +2 -2
- package/lib/{chunk-Y4CLZAPU.mjs → chunk-ZPYNGMOG.mjs} +2 -2
- package/lib/{chunk-27BK6EVC.mjs → chunk-ZSAEN5X7.mjs} +3 -3
- package/lib/{chunk-X5HHW5EE.mjs → chunk-ZWVIIWK3.mjs} +3 -3
- package/lib/components/accordion/index.mjs +3 -3
- package/lib/components/accordion/index.native.js +147 -52
- package/lib/components/accordion/index.native.mjs +9 -6
- package/lib/components/accordion/item/AccordionItem.native.js +137 -42
- package/lib/components/accordion/item/AccordionItem.native.mjs +6 -3
- package/lib/components/accordion/item/index.native.js +137 -42
- package/lib/components/accordion/item/index.native.mjs +6 -3
- package/lib/components/alert/Alert.mjs +1 -1
- package/lib/components/alert/Alert.native.js +239 -138
- package/lib/components/alert/Alert.native.mjs +19 -16
- package/lib/components/alert/index.mjs +1 -1
- package/lib/components/alert/index.native.js +239 -138
- package/lib/components/alert/index.native.mjs +19 -16
- package/lib/components/autocomplete/AutoComplete.mjs +13 -13
- package/lib/components/autocomplete/AutoComplete.native.js +267 -173
- package/lib/components/autocomplete/AutoComplete.native.mjs +21 -18
- package/lib/components/autocomplete/index.mjs +15 -15
- package/lib/components/autocomplete/index.native.js +275 -181
- package/lib/components/autocomplete/index.native.mjs +26 -23
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js +141 -83
- package/lib/components/autocomplete/item/AutoCompleteIem.native.mjs +7 -5
- package/lib/components/autocomplete/item/index.mjs +1 -1
- package/lib/components/autocomplete/item/index.native.js +141 -83
- package/lib/components/autocomplete/item/index.native.mjs +7 -5
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js +198 -104
- 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 +198 -104
- 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.native.mjs +3 -3
- package/lib/components/badge/Badge.native.js +119 -24
- package/lib/components/badge/Badge.native.mjs +16 -13
- package/lib/components/badge/index.native.js +119 -24
- package/lib/components/badge/index.native.mjs +16 -13
- package/lib/components/box/Box.native.js +116 -20
- package/lib/components/box/Box.native.mjs +5 -2
- package/lib/components/box/footer/BoxFooter.native.js +115 -20
- package/lib/components/box/footer/BoxFooter.native.mjs +15 -12
- package/lib/components/box/footer/index.native.js +115 -20
- package/lib/components/box/footer/index.native.mjs +15 -12
- package/lib/components/box/header/BoxHeader.native.mjs +2 -2
- package/lib/components/box/header/index.native.mjs +2 -2
- package/lib/components/box/index.mjs +7 -7
- package/lib/components/box/index.native.js +173 -69
- package/lib/components/box/index.native.mjs +22 -19
- package/lib/components/breadcrumb/Breadcrumb.native.js +115 -20
- package/lib/components/breadcrumb/Breadcrumb.native.mjs +6 -3
- package/lib/components/breadcrumb/index.native.js +180 -86
- package/lib/components/breadcrumb/index.native.mjs +9 -6
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +143 -85
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.mjs +7 -5
- package/lib/components/breadcrumb/item/index.native.js +143 -85
- package/lib/components/breadcrumb/item/index.native.mjs +7 -5
- package/lib/components/button/Button.native.js +140 -45
- package/lib/components/button/Button.native.mjs +16 -13
- package/lib/components/button/index.native.js +144 -49
- package/lib/components/button/index.native.mjs +16 -13
- package/lib/components/calendar/Calendar.js +15 -3
- package/lib/components/calendar/Calendar.mjs +12 -12
- 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 +1023 -3
- package/lib/components/calendar/Calendar.native.mjs +23 -1
- package/lib/components/calendar/index.js +15 -3
- package/lib/components/calendar/index.mjs +12 -12
- package/lib/components/calendar/index.native.js +1021 -3
- package/lib/components/calendar/index.native.mjs +23 -1
- package/lib/components/card/Card.native.js +110 -42
- package/lib/components/card/Card.native.mjs +5 -3
- package/lib/components/card/content/CardContent.native.js +114 -46
- package/lib/components/card/content/CardContent.native.mjs +6 -4
- package/lib/components/card/content/index.native.js +114 -46
- package/lib/components/card/content/index.native.mjs +6 -4
- package/lib/components/card/image/CardImage.native.js +117 -49
- package/lib/components/card/image/CardImage.native.mjs +6 -4
- package/lib/components/card/image/index.native.js +117 -49
- 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 +121 -53
- package/lib/components/card/index.native.mjs +9 -7
- package/lib/components/checkbox/Checkbox.native.js +174 -80
- package/lib/components/checkbox/Checkbox.native.mjs +8 -5
- package/lib/components/checkbox/index.mjs +12 -12
- package/lib/components/checkbox/index.native.js +236 -142
- package/lib/components/checkbox/index.native.mjs +25 -22
- package/lib/components/checkbox/list/CheckboxList.mjs +9 -9
- package/lib/components/checkbox/list/CheckboxList.native.js +145 -87
- package/lib/components/checkbox/list/CheckboxList.native.mjs +10 -8
- package/lib/components/checkbox/list/index.mjs +9 -9
- package/lib/components/checkbox/list/index.native.js +145 -87
- package/lib/components/checkbox/list/index.native.mjs +10 -8
- package/lib/components/checkbox/tiles/tile/CheckboxTile.mjs +9 -9
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.js +196 -102
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.mjs +18 -15
- package/lib/components/checkbox/tiles/tile/index.mjs +9 -9
- package/lib/components/checkbox/tiles/tile/index.native.js +196 -102
- package/lib/components/checkbox/tiles/tile/index.native.mjs +18 -15
- package/lib/components/chips/Chips.native.js +210 -116
- package/lib/components/chips/Chips.native.mjs +8 -5
- package/lib/components/chips/index.native.js +210 -116
- package/lib/components/chips/index.native.mjs +8 -5
- package/lib/components/columns/column/Column.native.js +121 -26
- package/lib/components/columns/column/Column.native.mjs +15 -12
- package/lib/components/columns/column/index.native.js +121 -26
- package/lib/components/columns/column/index.native.mjs +15 -12
- package/lib/components/columns/index.native.js +121 -26
- package/lib/components/columns/index.native.mjs +15 -12
- package/lib/components/countdown/Countdown.native.js +148 -90
- package/lib/components/countdown/Countdown.native.mjs +7 -5
- package/lib/components/countdown/index.native.js +148 -90
- package/lib/components/countdown/index.native.mjs +7 -5
- package/lib/components/datepicker/DatePicker.js +15 -3
- package/lib/components/datepicker/DatePicker.mjs +14 -14
- 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 +1326 -3
- package/lib/components/datepicker/DatePicker.native.mjs +26 -1
- package/lib/components/datepicker/index.js +15 -3
- package/lib/components/datepicker/index.mjs +14 -14
- package/lib/components/datepicker/index.native.js +1325 -4
- package/lib/components/datepicker/index.native.mjs +26 -1
- package/lib/components/divider/Divider.native.js +182 -88
- package/lib/components/divider/Divider.native.mjs +8 -5
- package/lib/components/divider/index.native.js +182 -88
- package/lib/components/divider/index.native.mjs +8 -5
- package/lib/components/fab/Fab.native.js +175 -81
- package/lib/components/fab/Fab.native.mjs +17 -14
- package/lib/components/fab/index.native.js +175 -81
- package/lib/components/fab/index.native.mjs +17 -14
- package/lib/components/flex-box/FlexBox.native.js +139 -44
- package/lib/components/flex-box/FlexBox.native.mjs +15 -12
- package/lib/components/flex-box/index.native.js +147 -52
- package/lib/components/flex-box/index.native.mjs +15 -12
- package/lib/components/hero/Hero.native.js +191 -87
- package/lib/components/hero/Hero.native.mjs +20 -17
- package/lib/components/hero/index.native.js +191 -87
- package/lib/components/hero/index.native.mjs +20 -17
- package/lib/components/icon/Icon.native.js +109 -14
- package/lib/components/icon/Icon.native.mjs +5 -2
- package/lib/components/icon/index.native.js +109 -14
- package/lib/components/icon/index.native.mjs +5 -2
- package/lib/components/image/Image.mjs +9 -9
- package/lib/components/image/index.mjs +9 -9
- package/lib/components/index.d.mts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +223 -124
- package/lib/components/index.mjs +88 -82
- package/lib/components/index.native.js +2118 -1082
- package/lib/components/index.native.mjs +125 -122
- package/lib/components/input/Input.mjs +9 -9
- package/lib/components/input/Input.native.js +242 -148
- package/lib/components/input/Input.native.mjs +18 -15
- package/lib/components/input/gauge/InputGauge.mjs +9 -9
- package/lib/components/input/gauge/InputGauge.native.js +190 -96
- package/lib/components/input/gauge/InputGauge.native.mjs +17 -14
- package/lib/components/input/gauge/hook/useGauge.mjs +9 -9
- package/lib/components/input/gauge/hook/useGauge.native.js +123 -28
- package/lib/components/input/gauge/hook/useGauge.native.mjs +15 -12
- package/lib/components/input/index.mjs +9 -9
- package/lib/components/input/index.native.js +242 -148
- package/lib/components/input/index.native.mjs +18 -15
- package/lib/components/link/Link.native.js +122 -27
- package/lib/components/link/Link.native.mjs +6 -3
- package/lib/components/link/index.native.js +122 -27
- package/lib/components/link/index.native.mjs +6 -3
- package/lib/components/list/index.mjs +9 -9
- package/lib/components/list/index.native.js +177 -83
- package/lib/components/list/index.native.mjs +18 -15
- package/lib/components/list/item/ListItem.mjs +9 -9
- package/lib/components/list/item/ListItem.native.js +179 -85
- package/lib/components/list/item/ListItem.native.mjs +17 -14
- package/lib/components/list/item/description/ListItemDescription.native.js +208 -114
- package/lib/components/list/item/description/ListItemDescription.native.mjs +17 -14
- package/lib/components/list/item/description/index.native.js +208 -114
- package/lib/components/list/item/description/index.native.mjs +17 -14
- package/lib/components/list/item/index.mjs +9 -9
- package/lib/components/list/item/index.native.js +179 -85
- package/lib/components/list/item/index.native.mjs +18 -15
- package/lib/components/modal/Modal.mjs +1 -1
- package/lib/components/modal/Modal.native.js +174 -72
- package/lib/components/modal/Modal.native.mjs +18 -15
- package/lib/components/modal/body/ModalBody.native.js +120 -25
- package/lib/components/modal/body/ModalBody.native.mjs +15 -12
- package/lib/components/modal/body/index.native.js +120 -25
- package/lib/components/modal/body/index.native.mjs +15 -12
- package/lib/components/modal/footer/ModalFooter.native.js +166 -64
- package/lib/components/modal/footer/ModalFooter.native.mjs +18 -15
- package/lib/components/modal/footer/index.native.js +166 -64
- package/lib/components/modal/footer/index.native.mjs +18 -15
- package/lib/components/modal/index.mjs +1 -1
- package/lib/components/modal/index.native.js +189 -87
- package/lib/components/modal/index.native.mjs +22 -19
- package/lib/components/otp/Otp.native.js +198 -97
- package/lib/components/otp/Otp.native.mjs +19 -16
- package/lib/components/otp/index.native.js +198 -97
- package/lib/components/otp/index.native.mjs +19 -16
- package/lib/components/pagination/Pagination.native.js +185 -91
- package/lib/components/pagination/Pagination.native.mjs +8 -5
- package/lib/components/pagination/index.native.js +185 -91
- package/lib/components/pagination/index.native.mjs +8 -5
- package/lib/components/popover/Popover.native.js +120 -25
- package/lib/components/popover/Popover.native.mjs +15 -12
- package/lib/components/popover/index.native.js +120 -25
- package/lib/components/popover/index.native.mjs +15 -12
- package/lib/components/price/Price.mjs +9 -9
- package/lib/components/price/Price.native.js +122 -27
- package/lib/components/price/Price.native.mjs +16 -13
- package/lib/components/price/index.mjs +9 -9
- package/lib/components/price/index.native.js +122 -27
- package/lib/components/price/index.native.mjs +16 -13
- package/lib/components/progress/Progress.mjs +9 -9
- package/lib/components/progress/Progress.native.js +214 -120
- package/lib/components/progress/Progress.native.mjs +17 -14
- package/lib/components/progress/index.mjs +14 -14
- package/lib/components/progress/index.native.js +256 -155
- package/lib/components/progress/index.native.mjs +21 -18
- package/lib/components/progress/item/ProgressItem.mjs +9 -9
- package/lib/components/progress/item/index.mjs +9 -9
- package/lib/components/progress/radial/ProgressRadial.mjs +1 -1
- package/lib/components/progress/radial/ProgressRadial.native.js +226 -125
- package/lib/components/progress/radial/ProgressRadial.native.mjs +17 -14
- package/lib/components/progress/radial/index.mjs +1 -1
- package/lib/components/progress/radial/index.native.js +226 -125
- package/lib/components/progress/radial/index.native.mjs +17 -14
- package/lib/components/radio/Radio.native.js +197 -103
- package/lib/components/radio/Radio.native.mjs +17 -14
- package/lib/components/radio/index.mjs +12 -12
- package/lib/components/radio/index.native.js +219 -125
- package/lib/components/radio/index.native.mjs +25 -22
- package/lib/components/radio/list/RadioList.mjs +9 -9
- package/lib/components/radio/list/RadioList.native.mjs +4 -4
- package/lib/components/radio/list/index.mjs +9 -9
- package/lib/components/radio/list/index.native.mjs +4 -4
- package/lib/components/radio/tiles/RadioTiles.mjs +9 -9
- package/lib/components/radio/tiles/index.mjs +9 -9
- package/lib/components/radio/tiles/tile/RadioTile.mjs +9 -9
- package/lib/components/radio/tiles/tile/RadioTile.native.js +188 -94
- package/lib/components/radio/tiles/tile/RadioTile.native.mjs +18 -15
- package/lib/components/radio/tiles/tile/index.mjs +9 -9
- package/lib/components/radio/tiles/tile/index.native.js +188 -94
- package/lib/components/radio/tiles/tile/index.native.mjs +18 -15
- package/lib/components/range/Range.mjs +9 -9
- package/lib/components/range/Range.native.js +178 -84
- package/lib/components/range/Range.native.mjs +17 -14
- package/lib/components/range/index.mjs +9 -9
- package/lib/components/range/index.native.js +178 -84
- package/lib/components/range/index.native.mjs +17 -14
- package/lib/components/scroll-view/ScrollView.mjs +9 -9
- package/lib/components/scroll-view/ScrollView.native.js +128 -33
- package/lib/components/scroll-view/ScrollView.native.mjs +15 -12
- package/lib/components/scroll-view/index.mjs +9 -9
- package/lib/components/scroll-view/index.native.js +128 -33
- package/lib/components/scroll-view/index.native.mjs +15 -12
- package/lib/components/section/Section.mjs +9 -9
- package/lib/components/section/Section.native.js +118 -23
- package/lib/components/section/Section.native.mjs +15 -12
- package/lib/components/section/index.mjs +9 -9
- package/lib/components/section/index.native.js +118 -23
- package/lib/components/section/index.native.mjs +15 -12
- package/lib/components/segment-control/SegmentControl.mjs +9 -9
- package/lib/components/segment-control/SegmentControl.native.js +221 -127
- package/lib/components/segment-control/SegmentControl.native.mjs +17 -14
- package/lib/components/segment-control/index.mjs +9 -9
- package/lib/components/segment-control/index.native.js +230 -136
- package/lib/components/segment-control/index.native.mjs +17 -14
- package/lib/components/select/Select.mjs +11 -11
- package/lib/components/select/Select.native.js +349 -248
- package/lib/components/select/Select.native.mjs +26 -23
- package/lib/components/select/index.mjs +11 -11
- package/lib/components/select/index.native.js +349 -248
- package/lib/components/select/index.native.mjs +26 -23
- package/lib/components/select/option/SelectOption.native.js +186 -92
- package/lib/components/select/option/SelectOption.native.mjs +17 -14
- package/lib/components/select/option/index.native.js +186 -92
- package/lib/components/select/option/index.native.mjs +18 -15
- package/lib/components/select/web/SelectDynamic.mjs +9 -9
- package/lib/components/select/web/SelectNative.mjs +11 -11
- package/lib/components/select/web/index.mjs +11 -11
- 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 +125 -0
- package/lib/components/skeleton/index.mjs +10 -0
- package/lib/components/stepper/Stepper.native.js +174 -80
- package/lib/components/stepper/Stepper.native.mjs +17 -14
- package/lib/components/stepper/index.mjs +1 -1
- package/lib/components/stepper/index.native.js +183 -89
- package/lib/components/stepper/index.native.mjs +17 -14
- package/lib/components/stepper/step/Step.native.js +119 -24
- 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 +119 -24
- package/lib/components/stepper/step/index.native.mjs +15 -12
- package/lib/components/sticker/Sticker.mjs +9 -9
- package/lib/components/sticker/Sticker.native.js +171 -77
- package/lib/components/sticker/Sticker.native.mjs +17 -14
- package/lib/components/sticker/index.mjs +9 -9
- package/lib/components/sticker/index.native.js +171 -77
- package/lib/components/sticker/index.native.mjs +17 -14
- package/lib/components/styleComponent/index.mjs +4 -4
- package/lib/components/switch/Switch.mjs +9 -9
- package/lib/components/switch/Switch.native.js +119 -24
- package/lib/components/switch/Switch.native.mjs +15 -12
- package/lib/components/switch/index.mjs +9 -9
- package/lib/components/switch/index.native.js +119 -24
- package/lib/components/switch/index.native.mjs +15 -12
- package/lib/components/table/Table.native.js +116 -21
- package/lib/components/table/Table.native.mjs +15 -12
- package/lib/components/table/index.mjs +8 -8
- package/lib/components/table/index.native.js +214 -120
- package/lib/components/table/index.native.mjs +22 -19
- package/lib/components/table/td/TableTd.native.js +115 -20
- package/lib/components/table/td/TableTd.native.mjs +15 -12
- package/lib/components/table/td/index.native.js +115 -20
- package/lib/components/table/td/index.native.mjs +15 -12
- package/lib/components/table/th/TableTh.native.js +209 -115
- package/lib/components/table/th/TableTh.native.mjs +17 -14
- package/lib/components/table/th/index.native.js +209 -115
- package/lib/components/table/th/index.native.mjs +17 -14
- package/lib/components/table/tr/TableTr.native.js +188 -94
- package/lib/components/table/tr/TableTr.native.mjs +17 -14
- package/lib/components/table/tr/index.native.js +188 -94
- package/lib/components/table/tr/index.native.mjs +17 -14
- package/lib/components/tabs/index.mjs +1 -1
- package/lib/components/tabs/index.native.js +220 -126
- package/lib/components/tabs/index.native.mjs +19 -16
- package/lib/components/tabs/tab-list/TabList.native.js +204 -110
- package/lib/components/tabs/tab-list/TabList.native.mjs +18 -15
- package/lib/components/tabs/tab-list/index.native.js +204 -110
- package/lib/components/tabs/tab-list/index.native.mjs +18 -15
- package/lib/components/tabs/tab-list/tab/Tab.native.js +179 -85
- package/lib/components/tabs/tab-list/tab/Tab.native.mjs +8 -5
- package/lib/components/tabs/tab-list/tab/index.native.js +179 -85
- package/lib/components/tabs/tab-list/tab/index.native.mjs +8 -5
- package/lib/components/tabs/tab-panels/TabPanels.native.js +118 -23
- package/lib/components/tabs/tab-panels/TabPanels.native.mjs +15 -12
- package/lib/components/tabs/tab-panels/index.native.js +118 -23
- package/lib/components/tabs/tab-panels/index.native.mjs +15 -12
- package/lib/components/tag/Tag.native.js +115 -20
- package/lib/components/tag/Tag.native.mjs +6 -3
- package/lib/components/tag/index.mjs +9 -9
- package/lib/components/tag/index.native.js +120 -25
- package/lib/components/tag/index.native.mjs +6 -3
- package/lib/components/tag/list/TagList.mjs +9 -9
- package/lib/components/tag/list/index.mjs +9 -9
- package/lib/components/text/Text.native.js +139 -81
- package/lib/components/text/Text.native.mjs +6 -4
- package/lib/components/text/index.native.js +139 -83
- package/lib/components/text/index.native.mjs +6 -4
- package/lib/components/textarea/Textarea.mjs +9 -9
- package/lib/components/textarea/Textarea.native.js +184 -90
- package/lib/components/textarea/Textarea.native.mjs +17 -14
- package/lib/components/textarea/index.mjs +9 -9
- package/lib/components/textarea/index.native.js +184 -90
- package/lib/components/textarea/index.native.mjs +17 -14
- package/lib/components/timeline/content/TimelineContent.native.js +201 -107
- package/lib/components/timeline/content/TimelineContent.native.mjs +21 -18
- package/lib/components/timeline/content/index.native.js +201 -107
- package/lib/components/timeline/content/index.native.mjs +21 -18
- package/lib/components/timeline/index.mjs +4 -4
- package/lib/components/timeline/index.native.js +209 -115
- package/lib/components/timeline/index.native.mjs +23 -20
- package/lib/components/timeline/marker/TimelineMarker.native.js +139 -44
- package/lib/components/timeline/marker/TimelineMarker.native.mjs +16 -13
- package/lib/components/timeline/marker/index.native.js +139 -44
- package/lib/components/timeline/marker/index.native.mjs +17 -14
- package/lib/components/title/Title.native.js +157 -55
- package/lib/components/title/Title.native.mjs +16 -13
- package/lib/components/title/index.mjs +1 -1
- package/lib/components/title/index.native.js +157 -55
- package/lib/components/title/index.native.mjs +17 -14
- package/lib/components/view/View.mjs +9 -9
- package/lib/components/view/View.native.js +125 -30
- package/lib/components/view/View.native.mjs +15 -12
- package/lib/components/view/index.mjs +9 -9
- package/lib/components/view/index.native.js +125 -30
- 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/index.js +229 -130
- package/lib/index.mjs +93 -87
- package/lib/index.native.js +2124 -1088
- package/lib/index.native.mjs +133 -130
- package/lib/objects/Typography/index.native.mjs +4 -4
- package/lib/objects/facets/Status/index.native.js +109 -14
- package/lib/objects/facets/Status/index.native.mjs +5 -2
- package/lib/objects/facets/index.mjs +12 -12
- package/lib/objects/facets/index.native.js +109 -14
- package/lib/objects/facets/index.native.mjs +17 -14
- package/lib/objects/index.mjs +12 -12
- package/lib/objects/index.native.js +111 -16
- package/lib/objects/index.native.mjs +21 -18
- 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,23 +171,109 @@ var getAlignStyle = (alignType) => {
|
|
|
171
171
|
};
|
|
172
172
|
|
|
173
173
|
// components/icon/Icon.native.tsx
|
|
174
|
+
var import_react5 = __toESM(require("react"));
|
|
175
|
+
var import_react_native3 = require("react-native");
|
|
176
|
+
|
|
177
|
+
// components/skeleton/Skeleton.native.tsx
|
|
174
178
|
var import_react4 = __toESM(require("react"));
|
|
175
|
-
var import_native = __toESM(require("react-content-loader/native"));
|
|
176
179
|
var import_react_native2 = require("react-native");
|
|
180
|
+
var Skeleton = ({
|
|
181
|
+
style,
|
|
182
|
+
width = "100%",
|
|
183
|
+
height = 20,
|
|
184
|
+
backgroundColor = "#E1E9EE",
|
|
185
|
+
shimmerColor = "#F7F8F8",
|
|
186
|
+
duration = 1200,
|
|
187
|
+
borderRadius = 4,
|
|
188
|
+
children,
|
|
189
|
+
testID
|
|
190
|
+
}) => {
|
|
191
|
+
const shimmerValue = (0, import_react4.useRef)(new import_react_native2.Animated.Value(0)).current;
|
|
192
|
+
const [containerWidth, setContainerWidth] = import_react4.default.useState(200);
|
|
193
|
+
(0, import_react4.useEffect)(() => {
|
|
194
|
+
const shimmerAnimation = import_react_native2.Animated.loop(
|
|
195
|
+
import_react_native2.Animated.timing(shimmerValue, {
|
|
196
|
+
toValue: 1,
|
|
197
|
+
duration,
|
|
198
|
+
useNativeDriver: true
|
|
199
|
+
}),
|
|
200
|
+
{ iterations: -1 }
|
|
201
|
+
);
|
|
202
|
+
shimmerAnimation.start();
|
|
203
|
+
return () => shimmerAnimation.stop();
|
|
204
|
+
}, [shimmerValue, duration]);
|
|
205
|
+
const translateX = shimmerValue.interpolate({
|
|
206
|
+
inputRange: [0, 1],
|
|
207
|
+
outputRange: [-containerWidth, containerWidth]
|
|
208
|
+
});
|
|
209
|
+
const opacity = shimmerValue.interpolate({
|
|
210
|
+
inputRange: [0, 0.5, 1],
|
|
211
|
+
outputRange: [0.3, 0.8, 0.3]
|
|
212
|
+
});
|
|
213
|
+
const containerStyle = {
|
|
214
|
+
width: children ? void 0 : width,
|
|
215
|
+
height: children ? void 0 : height,
|
|
216
|
+
backgroundColor,
|
|
217
|
+
borderRadius,
|
|
218
|
+
overflow: "hidden",
|
|
219
|
+
alignSelf: children ? "flex-start" : void 0,
|
|
220
|
+
...style
|
|
221
|
+
};
|
|
222
|
+
const handleLayout = (event) => {
|
|
223
|
+
const { width: layoutWidth } = event.nativeEvent.layout;
|
|
224
|
+
setContainerWidth(layoutWidth);
|
|
225
|
+
};
|
|
226
|
+
if (children) {
|
|
227
|
+
return /* @__PURE__ */ import_react4.default.createElement(import_react_native2.View, { style: containerStyle, testID, onLayout: handleLayout }, /* @__PURE__ */ import_react4.default.createElement(import_react_native2.View, { style: { opacity: 0 } }, children), /* @__PURE__ */ import_react4.default.createElement(
|
|
228
|
+
import_react_native2.Animated.View,
|
|
229
|
+
{
|
|
230
|
+
style: [
|
|
231
|
+
{
|
|
232
|
+
position: "absolute",
|
|
233
|
+
top: 0,
|
|
234
|
+
left: 0,
|
|
235
|
+
width: containerWidth * 0.7,
|
|
236
|
+
height: "100%",
|
|
237
|
+
backgroundColor: shimmerColor,
|
|
238
|
+
opacity,
|
|
239
|
+
transform: [{ translateX }]
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
));
|
|
244
|
+
}
|
|
245
|
+
return /* @__PURE__ */ import_react4.default.createElement(import_react_native2.View, { style: containerStyle, testID, onLayout: handleLayout }, /* @__PURE__ */ import_react4.default.createElement(
|
|
246
|
+
import_react_native2.Animated.View,
|
|
247
|
+
{
|
|
248
|
+
style: [
|
|
249
|
+
{
|
|
250
|
+
width: containerWidth * 0.7,
|
|
251
|
+
height: "100%",
|
|
252
|
+
backgroundColor: shimmerColor,
|
|
253
|
+
opacity,
|
|
254
|
+
transform: [{ translateX }]
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
));
|
|
259
|
+
};
|
|
260
|
+
var Skeleton_native_default = Skeleton;
|
|
261
|
+
|
|
262
|
+
// components/icon/Icon.native.tsx
|
|
177
263
|
var import_css = require("react-native-svg/css");
|
|
178
|
-
var Icon =
|
|
264
|
+
var Icon = import_react5.default.forwardRef(
|
|
179
265
|
({ size, name, circled, stretched, color, backgroundColor, onClick, align, skeleton, testId, ...others }, ref) => {
|
|
180
266
|
const {
|
|
181
267
|
theme: { icons }
|
|
182
|
-
} = (0,
|
|
183
|
-
const statesContext = (0,
|
|
268
|
+
} = (0, import_react5.useContext)(TrilogyThemeContext);
|
|
269
|
+
const statesContext = (0, import_react5.useContext)(StatesContext);
|
|
184
270
|
const style = {};
|
|
185
271
|
const defaultSize = size === "huge" /* HUGE */ && 66 || size === "large" /* LARGE */ && 44 || size === "medium" /* MEDIUM */ && 30 || size === "small" /* SMALL */ && 20 || size === "smaller" /* SMALLER */ && 16 || 20;
|
|
186
272
|
const iconColor = color && getColorStyle(color) || statesContext.inverted && getColorStyle("WHITE" /* BACKGROUND */) || getColorStyle("MAIN" /* MAIN */);
|
|
187
273
|
const background = backgroundColor && getColorStyle(backgroundColor) || circled && getColorStyle("MAIN" /* MAIN */) || "";
|
|
188
274
|
const iconSkeletonRadius = size === "huge" /* HUGE */ && 50 || size === "large" /* LARGE */ && 35 || size === "medium" /* MEDIUM */ && 25 || size === "small" /* SMALL */ && 15 || size === "smaller" /* SMALLER */ && 10 || 15;
|
|
189
275
|
const circledWidth = size === "huge" /* HUGE */ && 99 || size === "large" /* LARGE */ && 66 || size === "medium" /* MEDIUM */ && 48 || size === "small" /* SMALL */ && 32 || size === "smaller" /* SMALLER */ && 38 || 32;
|
|
190
|
-
const styles2 =
|
|
276
|
+
const styles2 = import_react_native3.StyleSheet.create({
|
|
191
277
|
rootView: {
|
|
192
278
|
alignSelf: getAlignStyle(align)
|
|
193
279
|
},
|
|
@@ -230,14 +316,23 @@ var Icon = import_react4.default.forwardRef(
|
|
|
230
316
|
justifyContent: "center"
|
|
231
317
|
}
|
|
232
318
|
});
|
|
233
|
-
const IconSkeleton = () => /* @__PURE__ */
|
|
319
|
+
const IconSkeleton = () => /* @__PURE__ */ import_react5.default.createElement(
|
|
320
|
+
Skeleton_native_default,
|
|
321
|
+
{
|
|
322
|
+
style: styles2.skeleton,
|
|
323
|
+
width: circledWidth,
|
|
324
|
+
height: circledWidth,
|
|
325
|
+
borderRadius: iconSkeletonRadius,
|
|
326
|
+
testID: "skeleton-id"
|
|
327
|
+
}
|
|
328
|
+
);
|
|
234
329
|
if (skeleton) {
|
|
235
|
-
return /* @__PURE__ */
|
|
330
|
+
return /* @__PURE__ */ import_react5.default.createElement(IconSkeleton, null);
|
|
236
331
|
}
|
|
237
|
-
let iconView = /* @__PURE__ */
|
|
332
|
+
let iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, null);
|
|
238
333
|
if (name && icons) {
|
|
239
334
|
if (stretched && !circled) {
|
|
240
|
-
iconView = /* @__PURE__ */
|
|
335
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles2.stretched, testID: `${testId}-stretched` }, /* @__PURE__ */ import_react5.default.createElement(
|
|
241
336
|
import_css.WithLocalSvg,
|
|
242
337
|
{
|
|
243
338
|
style: [styles2.iconCircled, styles2.icon],
|
|
@@ -248,7 +343,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
248
343
|
}
|
|
249
344
|
));
|
|
250
345
|
} else if (circled) {
|
|
251
|
-
iconView = /* @__PURE__ */
|
|
346
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles2.circled, testID: `${testId}-circled` }, /* @__PURE__ */ import_react5.default.createElement(
|
|
252
347
|
import_css.WithLocalSvg,
|
|
253
348
|
{
|
|
254
349
|
style: [styles2.iconCircled, styles2.icon],
|
|
@@ -259,7 +354,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
259
354
|
}
|
|
260
355
|
));
|
|
261
356
|
} else {
|
|
262
|
-
iconView = /* @__PURE__ */
|
|
357
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles2.iconContainer, ...others }, /* @__PURE__ */ import_react5.default.createElement(
|
|
263
358
|
import_css.WithLocalSvg,
|
|
264
359
|
{
|
|
265
360
|
style: [styles2.icon, style],
|
|
@@ -271,8 +366,8 @@ var Icon = import_react4.default.forwardRef(
|
|
|
271
366
|
));
|
|
272
367
|
}
|
|
273
368
|
}
|
|
274
|
-
return onClick ? /* @__PURE__ */
|
|
275
|
-
|
|
369
|
+
return onClick ? /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles2.rootView, testID: testId, ref }, /* @__PURE__ */ import_react5.default.createElement(
|
|
370
|
+
import_react_native3.TouchableOpacity,
|
|
276
371
|
{
|
|
277
372
|
style: { width: "100%" },
|
|
278
373
|
onPress: onClick,
|
|
@@ -280,7 +375,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
280
375
|
testID: `${testId}-pressable`
|
|
281
376
|
},
|
|
282
377
|
iconView
|
|
283
|
-
)) : /* @__PURE__ */
|
|
378
|
+
)) : /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles2.rootView, testID: testId, ref }, iconView);
|
|
284
379
|
}
|
|
285
380
|
);
|
|
286
381
|
Icon.displayName = "Icon" /* Icon */;
|
|
@@ -292,10 +387,10 @@ var setTypographyAlign = (typo = "left") => {
|
|
|
292
387
|
};
|
|
293
388
|
|
|
294
389
|
// objects/Typography/TypographyBold/index.native.tsx
|
|
295
|
-
var
|
|
390
|
+
var import_react6 = require("react");
|
|
296
391
|
var getTypographyBoldStyle = (typo) => {
|
|
297
392
|
var _a, _b, _c, _d;
|
|
298
|
-
const { theme } = (0,
|
|
393
|
+
const { theme } = (0, import_react6.useContext)(TrilogyThemeContext);
|
|
299
394
|
const currentTypo = Array.isArray(typo) ? typo : [typo];
|
|
300
395
|
switch (true) {
|
|
301
396
|
case (typo && currentTypo.includes("has-text-weight-medium" /* TEXT_WEIGHT_MEDIUM */)):
|
|
@@ -315,64 +410,63 @@ var setTypographyColor = (typo = "", inverted = false, loading = false) => {
|
|
|
315
410
|
};
|
|
316
411
|
|
|
317
412
|
// components/text/Text.native.tsx
|
|
318
|
-
var
|
|
319
|
-
var
|
|
320
|
-
var
|
|
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
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
413
|
+
var import_react7 = __toESM(require("react"));
|
|
414
|
+
var import_react_native4 = require("react-native");
|
|
415
|
+
var Text = import_react7.default.forwardRef(
|
|
416
|
+
({ children, level, style, inverted, typo, skeleton, accessibilityLabel, numberOfLines = 0, ...others }, ref) => {
|
|
417
|
+
const statesContext = (0, import_react7.useContext)(StatesContext);
|
|
418
|
+
const textLevels = (level2) => {
|
|
419
|
+
return level2 && level2 == 1 /* ONE */ && 16 || level2 && level2 == 2 /* TWO */ && 14 || level2 && level2 == 3 /* THREE */ && 12 || level2 && level2 == 4 /* FOUR */ && 10 || 14;
|
|
420
|
+
};
|
|
421
|
+
const styles2 = import_react_native4.StyleSheet.create({
|
|
422
|
+
text: {
|
|
423
|
+
fontFamily: getTypographyBoldStyle(typo),
|
|
424
|
+
fontSize: textLevels(level),
|
|
425
|
+
color: setTypographyColor(typo, inverted || statesContext.inverted, skeleton),
|
|
426
|
+
textAlign: setTypographyAlign(typo),
|
|
427
|
+
lineHeight: textLevels(level) * 1.2,
|
|
428
|
+
textDecorationLine: "none",
|
|
429
|
+
alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start"
|
|
430
|
+
},
|
|
431
|
+
skeleton: {
|
|
432
|
+
minWidth: 10,
|
|
433
|
+
alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start",
|
|
434
|
+
borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3,
|
|
435
|
+
borderWidth: 0.1,
|
|
436
|
+
borderColor: getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */),
|
|
437
|
+
overflow: "hidden",
|
|
438
|
+
height: textLevels(level)
|
|
439
|
+
}
|
|
440
|
+
});
|
|
441
|
+
const textAccessibilityLabel = accessibilityLabel ? accessibilityLabel : typeof children === "string" ? children : void 0;
|
|
442
|
+
let textView = /* @__PURE__ */ import_react7.default.createElement(
|
|
443
|
+
import_react_native4.Text,
|
|
444
|
+
{
|
|
445
|
+
ref,
|
|
446
|
+
numberOfLines,
|
|
447
|
+
ellipsizeMode: "tail",
|
|
448
|
+
maxFontSizeMultiplier: 1.3,
|
|
449
|
+
accessible: !!textAccessibilityLabel,
|
|
450
|
+
accessibilityLabel: textAccessibilityLabel,
|
|
451
|
+
style: [styles2.text, style],
|
|
452
|
+
...others
|
|
453
|
+
},
|
|
454
|
+
children
|
|
455
|
+
);
|
|
456
|
+
if (skeleton) {
|
|
457
|
+
textView = /* @__PURE__ */ import_react7.default.createElement(
|
|
458
|
+
Skeleton_native_default,
|
|
459
|
+
{
|
|
460
|
+
style: styles2.skeleton,
|
|
461
|
+
height: textLevels(level),
|
|
462
|
+
borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3
|
|
463
|
+
},
|
|
464
|
+
textView
|
|
465
|
+
);
|
|
354
466
|
}
|
|
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%" })));
|
|
467
|
+
return textView;
|
|
373
468
|
}
|
|
374
|
-
|
|
375
|
-
});
|
|
469
|
+
);
|
|
376
470
|
Text.displayName = "Text" /* Text */;
|
|
377
471
|
var Text_native_default = Text;
|
|
378
472
|
|
|
@@ -386,20 +480,20 @@ var STATUS_COLORS = {
|
|
|
386
480
|
};
|
|
387
481
|
|
|
388
482
|
// components/input/Input.native.tsx
|
|
389
|
-
var
|
|
390
|
-
var
|
|
483
|
+
var import_react10 = __toESM(require("react"));
|
|
484
|
+
var import_react_native7 = require("react-native");
|
|
391
485
|
|
|
392
486
|
// components/spacer/Spacer.native.tsx
|
|
393
|
-
var
|
|
394
|
-
var
|
|
395
|
-
var Spacer =
|
|
396
|
-
const styles2 =
|
|
487
|
+
var React5 = __toESM(require("react"));
|
|
488
|
+
var import_react_native5 = require("react-native");
|
|
489
|
+
var Spacer = React5.forwardRef(({ size, horizontal }, ref) => {
|
|
490
|
+
const styles2 = import_react_native5.StyleSheet.create({
|
|
397
491
|
spacer: {
|
|
398
492
|
marginLeft: horizontal && parseInt(size.toString()) || 0,
|
|
399
493
|
marginTop: !horizontal && parseInt(size.toString()) || 0
|
|
400
494
|
}
|
|
401
495
|
});
|
|
402
|
-
return /* @__PURE__ */
|
|
496
|
+
return /* @__PURE__ */ React5.createElement(import_react_native5.View, { ref, style: styles2.spacer });
|
|
403
497
|
});
|
|
404
498
|
Spacer.displayName = "Spacer" /* Spacer */;
|
|
405
499
|
var Spacer_native_default = Spacer;
|
|
@@ -558,25 +652,25 @@ var InputKeyboardType = /* @__PURE__ */ ((InputKeyboardType2) => {
|
|
|
558
652
|
})(InputKeyboardType || {});
|
|
559
653
|
|
|
560
654
|
// components/input/gauge/InputGauge.native.tsx
|
|
561
|
-
var
|
|
562
|
-
var
|
|
655
|
+
var import_react9 = __toESM(require("react"));
|
|
656
|
+
var import_react_native6 = require("react-native");
|
|
563
657
|
|
|
564
658
|
// components/input/gauge/hook/useGauge.native.tsx
|
|
565
|
-
var
|
|
659
|
+
var import_react8 = __toESM(require("react"));
|
|
566
660
|
var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
567
661
|
var _a, _b;
|
|
568
|
-
const [points, setPoints] =
|
|
662
|
+
const [points, setPoints] = import_react8.default.useState(0);
|
|
569
663
|
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 =
|
|
664
|
+
const [isLengthVerify, setIsLengthVerify] = import_react8.default.useState(initStateVerifies);
|
|
665
|
+
const [isSpecialCharsVerify, setIsSpecialCharsVerify] = import_react8.default.useState(initStateVerifies);
|
|
666
|
+
const [isNumberVerify, setIsNumberVerify] = import_react8.default.useState(initStateVerifies);
|
|
667
|
+
const [isUppercaseVerify, setIsUppercaseVerify] = import_react8.default.useState(initStateVerifies);
|
|
668
|
+
const [isLowerercaseVerify, setisLowerercaseVerify] = import_react8.default.useState(initStateVerifies);
|
|
669
|
+
const nbAllVerifies = import_react8.default.useMemo(
|
|
576
670
|
() => validationRules && Object.values(validationRules).filter((rule) => rule).length || securityRules && securityRules.length || 0,
|
|
577
671
|
[validationRules, securityRules]
|
|
578
672
|
);
|
|
579
|
-
const rules =
|
|
673
|
+
const rules = import_react8.default.useMemo(
|
|
580
674
|
() => securityRules && securityRules.map(({ label, patternValidator, dataAttribute }) => ({
|
|
581
675
|
label,
|
|
582
676
|
validate: !!(patternValidator == null ? void 0 : patternValidator.test(inputValue)),
|
|
@@ -584,7 +678,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
584
678
|
})),
|
|
585
679
|
[inputValue, securityRules]
|
|
586
680
|
);
|
|
587
|
-
const calcPoints =
|
|
681
|
+
const calcPoints = import_react8.default.useMemo(() => {
|
|
588
682
|
if (validationRules) {
|
|
589
683
|
return Number((points / nbAllVerifies * 100).toFixed(0));
|
|
590
684
|
}
|
|
@@ -594,7 +688,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
594
688
|
}
|
|
595
689
|
return 0;
|
|
596
690
|
}, [points, nbAllVerifies, rules, validationRules, securityRules]);
|
|
597
|
-
const widthGauge =
|
|
691
|
+
const widthGauge = import_react8.default.useMemo(() => {
|
|
598
692
|
if (calcPoints <= 50 && calcPoints > 0) return "50%";
|
|
599
693
|
if (calcPoints <= 99 && calcPoints > 50) return "75%";
|
|
600
694
|
if (calcPoints === 100) return "100%";
|
|
@@ -606,7 +700,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
606
700
|
if (calcPoints === 100) return getColorStyle("SUCCESS" /* SUCCESS */);
|
|
607
701
|
return getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */);
|
|
608
702
|
};
|
|
609
|
-
const LengthvalidationRulesText = (0,
|
|
703
|
+
const LengthvalidationRulesText = (0, import_react8.useMemo)(() => {
|
|
610
704
|
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
611
705
|
switch (true) {
|
|
612
706
|
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 +713,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
619
713
|
return "";
|
|
620
714
|
}
|
|
621
715
|
}, [(_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,
|
|
716
|
+
(0, import_react8.useEffect)(() => {
|
|
623
717
|
var _a2, _b2;
|
|
624
718
|
const min = ((_a2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a2.min) || 0;
|
|
625
719
|
const max = ((_b2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b2.max) || "";
|
|
@@ -651,7 +745,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
651
745
|
|
|
652
746
|
// components/input/gauge/InputGauge.native.tsx
|
|
653
747
|
var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
654
|
-
const id = (0,
|
|
748
|
+
const id = (0, import_react9.useId)();
|
|
655
749
|
const {
|
|
656
750
|
widthGauge,
|
|
657
751
|
colorGauge,
|
|
@@ -663,7 +757,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
663
757
|
isUppercaseVerify,
|
|
664
758
|
rules
|
|
665
759
|
} = useGauge({ validationRules, inputValue, securityRules });
|
|
666
|
-
return /* @__PURE__ */
|
|
760
|
+
return /* @__PURE__ */ import_react9.default.createElement(import_react_native6.View, null, /* @__PURE__ */ import_react9.default.createElement(import_react_native6.View, { style: [styles.containerGauge, { backgroundColor: getColorStyle("MAIN_FADE" /* MAIN_FADE */) }] }, /* @__PURE__ */ import_react9.default.createElement(import_react_native6.View, { style: [styles.gauge, { width: widthGauge, backgroundColor: colorGauge() }] })), /* @__PURE__ */ import_react9.default.createElement(import_react_native6.View, { style: styles.verifies }, validationRules && /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, /* @__PURE__ */ import_react9.default.createElement(
|
|
667
761
|
DataVerify,
|
|
668
762
|
{
|
|
669
763
|
display: !!(validationRules == null ? void 0 : validationRules.length),
|
|
@@ -672,7 +766,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
672
766
|
type: LengthvalidationRulesText,
|
|
673
767
|
index: 1
|
|
674
768
|
}
|
|
675
|
-
), /* @__PURE__ */
|
|
769
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
676
770
|
DataVerify,
|
|
677
771
|
{
|
|
678
772
|
display: !!(validationRules == null ? void 0 : validationRules.uppercase),
|
|
@@ -681,7 +775,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
681
775
|
type: "Majuscule",
|
|
682
776
|
index: 2
|
|
683
777
|
}
|
|
684
|
-
), /* @__PURE__ */
|
|
778
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
685
779
|
DataVerify,
|
|
686
780
|
{
|
|
687
781
|
display: !!(validationRules == null ? void 0 : validationRules.specialChars),
|
|
@@ -690,7 +784,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
690
784
|
type: "Caract\xE8res sp\xE9ciaux",
|
|
691
785
|
index: 3
|
|
692
786
|
}
|
|
693
|
-
), /* @__PURE__ */
|
|
787
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
694
788
|
DataVerify,
|
|
695
789
|
{
|
|
696
790
|
display: !!(validationRules == null ? void 0 : validationRules.lowercase),
|
|
@@ -699,7 +793,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
699
793
|
type: "Minuscule",
|
|
700
794
|
index: 4
|
|
701
795
|
}
|
|
702
|
-
), /* @__PURE__ */
|
|
796
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
703
797
|
DataVerify,
|
|
704
798
|
{
|
|
705
799
|
display: !!(validationRules == null ? void 0 : validationRules.number),
|
|
@@ -708,7 +802,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
708
802
|
type: "Chiffre",
|
|
709
803
|
index: 5
|
|
710
804
|
}
|
|
711
|
-
)), securityRules && rules && rules.map((rule, index) => /* @__PURE__ */
|
|
805
|
+
)), securityRules && rules && rules.map((rule, index) => /* @__PURE__ */ import_react9.default.createElement(
|
|
712
806
|
DataVerify,
|
|
713
807
|
{
|
|
714
808
|
index: index + 1,
|
|
@@ -722,10 +816,10 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
722
816
|
};
|
|
723
817
|
var DataVerify = ({ color, iconName, display, type, index }) => {
|
|
724
818
|
if (!display) return null;
|
|
725
|
-
return /* @__PURE__ */
|
|
819
|
+
return /* @__PURE__ */ import_react9.default.createElement(import_react_native6.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
820
|
};
|
|
727
821
|
var InputGauge_native_default = InputGauge;
|
|
728
|
-
var styles =
|
|
822
|
+
var styles = import_react_native6.StyleSheet.create({
|
|
729
823
|
even: {
|
|
730
824
|
justifyContent: "flex-end"
|
|
731
825
|
},
|
|
@@ -758,7 +852,7 @@ var styles = import_react_native5.StyleSheet.create({
|
|
|
758
852
|
});
|
|
759
853
|
|
|
760
854
|
// components/input/Input.native.tsx
|
|
761
|
-
var Input =
|
|
855
|
+
var Input = import_react10.default.forwardRef(
|
|
762
856
|
({
|
|
763
857
|
defaultValue,
|
|
764
858
|
name,
|
|
@@ -802,14 +896,14 @@ var Input = import_react9.default.forwardRef(
|
|
|
802
896
|
inputIcon.set("success" /* SUCCESS */, "tri-check-circle" /* CHECK_CIRCLE */);
|
|
803
897
|
inputIcon.set("warning" /* WARNING */, "tri-exclamation-circle" /* EXCLAMATION_CIRCLE */);
|
|
804
898
|
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,
|
|
899
|
+
const [value, setValue] = (0, import_react10.useState)(defaultValue || "");
|
|
900
|
+
const [email, setEmail] = (0, import_react10.useState)("");
|
|
901
|
+
const [isFocused, setIsFocused] = (0, import_react10.useState)(false);
|
|
902
|
+
const [iconPassword, setIconPassword] = (0, import_react10.useState)("tri-eye" /* EYE */);
|
|
903
|
+
const [dynamicPlaceholder, setDynamicPlaceholder] = (0, import_react10.useState)(false);
|
|
904
|
+
const [isKeyboardVisible, setKeyboardVisible] = (0, import_react10.useState)(null);
|
|
905
|
+
const animation = (0, import_react10.useRef)(new import_react_native7.Animated.Value(25)).current;
|
|
906
|
+
const sizeAnimation = (0, import_react10.useRef)(new import_react_native7.Animated.Value(placeholderDefaultSize)).current;
|
|
813
907
|
const paddingTopByPlatform = (os, dynamicPlaceholder2) => {
|
|
814
908
|
if (dynamicPlaceholder2 && type !== "search" /* SEARCH */ && os === "ios") {
|
|
815
909
|
return 10;
|
|
@@ -819,7 +913,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
819
913
|
}
|
|
820
914
|
return 0;
|
|
821
915
|
};
|
|
822
|
-
const handleChange = (0,
|
|
916
|
+
const handleChange = (0, import_react10.useCallback)((text) => {
|
|
823
917
|
var _a;
|
|
824
918
|
setValue(text);
|
|
825
919
|
setEmail("");
|
|
@@ -841,58 +935,58 @@ var Input = import_react9.default.forwardRef(
|
|
|
841
935
|
onSubmit == null ? void 0 : onSubmit(e);
|
|
842
936
|
type === "email" /* EMAIL */ && handleClick();
|
|
843
937
|
};
|
|
844
|
-
(0,
|
|
938
|
+
(0, import_react10.useEffect)(() => {
|
|
845
939
|
setValue(defaultValue || "");
|
|
846
940
|
}, [defaultValue, placeholder]);
|
|
847
|
-
(0,
|
|
941
|
+
(0, import_react10.useEffect)(() => {
|
|
848
942
|
if (value && value.length > 0 && placeholder && placeholder.length > 0) {
|
|
849
943
|
setDynamicPlaceholder(true);
|
|
850
944
|
} else {
|
|
851
945
|
setDynamicPlaceholder(false);
|
|
852
946
|
}
|
|
853
947
|
}, [placeholder, value]);
|
|
854
|
-
(0,
|
|
948
|
+
(0, import_react10.useEffect)(() => {
|
|
855
949
|
if (dynamicPlaceholder && type !== "search" /* SEARCH */) {
|
|
856
|
-
|
|
950
|
+
import_react_native7.Animated.timing(animation, {
|
|
857
951
|
toValue: 3,
|
|
858
952
|
duration: animationDuration,
|
|
859
953
|
useNativeDriver: false
|
|
860
954
|
}).start();
|
|
861
|
-
|
|
955
|
+
import_react_native7.Animated.timing(sizeAnimation, {
|
|
862
956
|
toValue: 12,
|
|
863
957
|
duration: animationDuration,
|
|
864
958
|
useNativeDriver: false
|
|
865
959
|
}).start();
|
|
866
960
|
} else {
|
|
867
|
-
|
|
961
|
+
import_react_native7.Animated.timing(animation, {
|
|
868
962
|
toValue: 25,
|
|
869
963
|
duration: animationDuration,
|
|
870
964
|
useNativeDriver: false
|
|
871
965
|
}).start();
|
|
872
|
-
|
|
966
|
+
import_react_native7.Animated.timing(sizeAnimation, {
|
|
873
967
|
toValue: placeholderDefaultSize,
|
|
874
968
|
duration: animationDuration,
|
|
875
969
|
useNativeDriver: false
|
|
876
970
|
}).start();
|
|
877
971
|
}
|
|
878
972
|
}, [dynamicPlaceholder, animation, sizeAnimation]);
|
|
879
|
-
(0,
|
|
880
|
-
const keyboardDidShowListener =
|
|
881
|
-
const keyboardDidHideListener =
|
|
973
|
+
(0, import_react10.useEffect)(() => {
|
|
974
|
+
const keyboardDidShowListener = import_react_native7.Keyboard.addListener("keyboardDidShow", () => setKeyboardVisible(true));
|
|
975
|
+
const keyboardDidHideListener = import_react_native7.Keyboard.addListener("keyboardDidHide", () => setKeyboardVisible(false));
|
|
882
976
|
return () => {
|
|
883
977
|
keyboardDidHideListener.remove();
|
|
884
978
|
keyboardDidShowListener.remove();
|
|
885
979
|
};
|
|
886
980
|
}, []);
|
|
887
|
-
(0,
|
|
981
|
+
(0, import_react10.useEffect)(() => {
|
|
888
982
|
handleClick();
|
|
889
983
|
}, [isKeyboardVisible]);
|
|
890
984
|
const hasIcon = iconNameLeft || iconNameRight || false;
|
|
891
|
-
const styles2 =
|
|
985
|
+
const styles2 = import_react_native7.StyleSheet.create({
|
|
892
986
|
input: {
|
|
893
987
|
paddingLeft: (iconNameLeft && isFocused || type === "search" /* SEARCH */ && isFocused) && 39 || (iconNameLeft || type === "search" /* SEARCH */) && 40 || !iconNameLeft && type !== "search" /* SEARCH */ && isFocused && 9 || 10,
|
|
894
988
|
paddingRight: (iconNameRight || type === "search" /* SEARCH */) && 32 || 0,
|
|
895
|
-
marginTop: paddingTopByPlatform(
|
|
989
|
+
marginTop: paddingTopByPlatform(import_react_native7.Platform.OS, dynamicPlaceholder),
|
|
896
990
|
width: hasIcon && status ? "85%" : "95%",
|
|
897
991
|
height: 46,
|
|
898
992
|
color: disabled ? getColorStyle("DISABLED" /* DISABLED */) : inputColor
|
|
@@ -967,18 +1061,18 @@ var Input = import_react9.default.forwardRef(
|
|
|
967
1061
|
marginBottom: isIOS ? 0 : -3
|
|
968
1062
|
}
|
|
969
1063
|
});
|
|
970
|
-
return /* @__PURE__ */
|
|
971
|
-
|
|
1064
|
+
return /* @__PURE__ */ import_react10.default.createElement(
|
|
1065
|
+
import_react_native7.View,
|
|
972
1066
|
{
|
|
973
1067
|
style: { width: "100%" },
|
|
974
1068
|
accessible: !!inputAccessibilityLabel,
|
|
975
1069
|
accessibilityLabel: inputAccessibilityLabel,
|
|
976
1070
|
testID: inputTestId
|
|
977
1071
|
},
|
|
978
|
-
!dynamicPlaceholder && label && /* @__PURE__ */
|
|
979
|
-
!dynamicPlaceholder && label && sample && /* @__PURE__ */
|
|
980
|
-
/* @__PURE__ */
|
|
981
|
-
|
|
1072
|
+
!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 */ })),
|
|
1073
|
+
!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 */ })),
|
|
1074
|
+
/* @__PURE__ */ import_react10.default.createElement(import_react_native7.View, { testID: "input-wrapper-id", style: styles2.inputWrapper }, dynamicPlaceholder && type !== "search" /* SEARCH */ && /* @__PURE__ */ import_react10.default.createElement(import_react_native7.Animated.Text, { style: [styles2.dynamicPlaceholder, { top: animation, fontSize: sizeAnimation }] }, placeholder), /* @__PURE__ */ import_react10.default.createElement(
|
|
1075
|
+
import_react_native7.TextInput,
|
|
982
1076
|
{
|
|
983
1077
|
ref,
|
|
984
1078
|
testID: "input-id",
|
|
@@ -1019,7 +1113,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1019
1113
|
style: styles2.input,
|
|
1020
1114
|
...others
|
|
1021
1115
|
}
|
|
1022
|
-
), type === "email" && /* @__PURE__ */
|
|
1116
|
+
), 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_native7.View, { style: styles2.inputIconLeft }, /* @__PURE__ */ import_react10.default.createElement(
|
|
1023
1117
|
Icon_native_default,
|
|
1024
1118
|
{
|
|
1025
1119
|
align: "ALIGNED_START" /* ALIGNED_START */,
|
|
@@ -1027,8 +1121,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
1027
1121
|
size: "small" /* SMALL */,
|
|
1028
1122
|
color: status && status === "success" && "SUCCESS" /* SUCCESS */ || status && status === "warning" && "WARNING" /* WARNING */ || status && status === "error" && "ERROR" /* ERROR */ || disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
1029
1123
|
}
|
|
1030
|
-
)), hasIcon && type !== "search" /* SEARCH */ && status && status !== "default" /* DEFAULT */ && type !== "password" /* PASSWORD */ && /* @__PURE__ */
|
|
1031
|
-
|
|
1124
|
+
)), hasIcon && type !== "search" /* SEARCH */ && status && status !== "default" /* DEFAULT */ && type !== "password" /* PASSWORD */ && /* @__PURE__ */ import_react10.default.createElement(
|
|
1125
|
+
import_react_native7.TouchableOpacity,
|
|
1032
1126
|
{
|
|
1033
1127
|
style: styles2.inputContainer,
|
|
1034
1128
|
activeOpacity: onIconClick ? 0.2 : 1,
|
|
@@ -1040,7 +1134,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1040
1134
|
});
|
|
1041
1135
|
}
|
|
1042
1136
|
},
|
|
1043
|
-
/* @__PURE__ */
|
|
1137
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
1044
1138
|
Icon_native_default,
|
|
1045
1139
|
{
|
|
1046
1140
|
testId: "icon-status-id",
|
|
@@ -1050,8 +1144,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
1050
1144
|
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
1145
|
}
|
|
1052
1146
|
)
|
|
1053
|
-
), iconNameRight && !iconNameLeft && type !== "search" /* SEARCH */ && type !== "password" /* PASSWORD */ && (!status || status === "default" /* DEFAULT */) && /* @__PURE__ */
|
|
1054
|
-
|
|
1147
|
+
), iconNameRight && !iconNameLeft && type !== "search" /* SEARCH */ && type !== "password" /* PASSWORD */ && (!status || status === "default" /* DEFAULT */) && /* @__PURE__ */ import_react10.default.createElement(
|
|
1148
|
+
import_react_native7.TouchableOpacity,
|
|
1055
1149
|
{
|
|
1056
1150
|
style: styles2.inputContainerRight,
|
|
1057
1151
|
activeOpacity: onIconClick ? 0.2 : 1,
|
|
@@ -1063,7 +1157,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1063
1157
|
});
|
|
1064
1158
|
}
|
|
1065
1159
|
},
|
|
1066
|
-
/* @__PURE__ */
|
|
1160
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
1067
1161
|
Icon_native_default,
|
|
1068
1162
|
{
|
|
1069
1163
|
testId: "icon-right-id",
|
|
@@ -1073,8 +1167,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
1073
1167
|
color: disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
1074
1168
|
}
|
|
1075
1169
|
)
|
|
1076
|
-
), type === "password" /* PASSWORD */ && /* @__PURE__ */
|
|
1077
|
-
|
|
1170
|
+
), type === "password" /* PASSWORD */ && /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, iconNameLeft && /* @__PURE__ */ import_react10.default.createElement(import_react_native7.View, { style: [{ paddingLeft: 10 }, styles2.inputContainerLeft] }, /* @__PURE__ */ import_react10.default.createElement(Icon_native_default, { name: iconNameLeft })), /* @__PURE__ */ import_react10.default.createElement(
|
|
1171
|
+
import_react_native7.TouchableOpacity,
|
|
1078
1172
|
{
|
|
1079
1173
|
style: styles2.inputContainerRight,
|
|
1080
1174
|
onPress: () => {
|
|
@@ -1089,7 +1183,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1089
1183
|
}
|
|
1090
1184
|
}
|
|
1091
1185
|
},
|
|
1092
|
-
/* @__PURE__ */
|
|
1186
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
1093
1187
|
Icon_native_default,
|
|
1094
1188
|
{
|
|
1095
1189
|
testId: "password-id",
|
|
@@ -1099,7 +1193,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1099
1193
|
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
1194
|
}
|
|
1101
1195
|
)
|
|
1102
|
-
)), type === "search" /* SEARCH */ && !status && /* @__PURE__ */
|
|
1196
|
+
)), type === "search" /* SEARCH */ && !status && /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, /* @__PURE__ */ import_react10.default.createElement(import_react_native7.View, { style: styles2.inputContainerLeft }, /* @__PURE__ */ import_react10.default.createElement(
|
|
1103
1197
|
Icon_native_default,
|
|
1104
1198
|
{
|
|
1105
1199
|
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
@@ -1107,8 +1201,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
1107
1201
|
size: "small" /* SMALL */,
|
|
1108
1202
|
color: disabled ? "DISABLED" /* DISABLED */ : "NEUTRAL" /* NEUTRAL */
|
|
1109
1203
|
}
|
|
1110
|
-
)), value.length > 0 && /* @__PURE__ */
|
|
1111
|
-
|
|
1204
|
+
)), value.length > 0 && /* @__PURE__ */ import_react10.default.createElement(
|
|
1205
|
+
import_react_native7.TouchableOpacity,
|
|
1112
1206
|
{
|
|
1113
1207
|
testID: "search-id",
|
|
1114
1208
|
style: styles2.inputContainerRight,
|
|
@@ -1125,7 +1219,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
1125
1219
|
setValue("");
|
|
1126
1220
|
}
|
|
1127
1221
|
},
|
|
1128
|
-
/* @__PURE__ */
|
|
1222
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
1129
1223
|
Icon_native_default,
|
|
1130
1224
|
{
|
|
1131
1225
|
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
@@ -1135,8 +1229,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
1135
1229
|
}
|
|
1136
1230
|
)
|
|
1137
1231
|
))),
|
|
1138
|
-
help && /* @__PURE__ */
|
|
1139
|
-
type === "password" /* PASSWORD */ && securityGauge && /* @__PURE__ */
|
|
1232
|
+
help && /* @__PURE__ */ import_react10.default.createElement(Text_native_default, { testId: "help-id", style: styles2.help }, help),
|
|
1233
|
+
type === "password" /* PASSWORD */ && securityGauge && /* @__PURE__ */ import_react10.default.createElement(InputGauge_native_default, { securityRules, validationRules, inputValue: value })
|
|
1140
1234
|
);
|
|
1141
1235
|
}
|
|
1142
1236
|
);
|