@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
|
@@ -38,8 +38,8 @@ __export(index_native_exports, {
|
|
|
38
38
|
module.exports = __toCommonJS(index_native_exports);
|
|
39
39
|
|
|
40
40
|
// components/autocomplete/AutoComplete.native.tsx
|
|
41
|
-
var
|
|
42
|
-
var
|
|
41
|
+
var import_react11 = __toESM(require("react"));
|
|
42
|
+
var import_react_native10 = require("react-native");
|
|
43
43
|
|
|
44
44
|
// context/providerStates/index.tsx
|
|
45
45
|
var import_react = require("react");
|
|
@@ -170,23 +170,109 @@ var getAlignStyle = (alignType) => {
|
|
|
170
170
|
};
|
|
171
171
|
|
|
172
172
|
// components/icon/Icon.native.tsx
|
|
173
|
+
var import_react5 = __toESM(require("react"));
|
|
174
|
+
var import_react_native3 = require("react-native");
|
|
175
|
+
|
|
176
|
+
// components/skeleton/Skeleton.native.tsx
|
|
173
177
|
var import_react4 = __toESM(require("react"));
|
|
174
|
-
var import_native = __toESM(require("react-content-loader/native"));
|
|
175
178
|
var import_react_native2 = require("react-native");
|
|
179
|
+
var Skeleton = ({
|
|
180
|
+
style,
|
|
181
|
+
width = "100%",
|
|
182
|
+
height = 20,
|
|
183
|
+
backgroundColor = "#E1E9EE",
|
|
184
|
+
shimmerColor = "#F7F8F8",
|
|
185
|
+
duration = 1200,
|
|
186
|
+
borderRadius = 4,
|
|
187
|
+
children,
|
|
188
|
+
testID
|
|
189
|
+
}) => {
|
|
190
|
+
const shimmerValue = (0, import_react4.useRef)(new import_react_native2.Animated.Value(0)).current;
|
|
191
|
+
const [containerWidth, setContainerWidth] = import_react4.default.useState(200);
|
|
192
|
+
(0, import_react4.useEffect)(() => {
|
|
193
|
+
const shimmerAnimation = import_react_native2.Animated.loop(
|
|
194
|
+
import_react_native2.Animated.timing(shimmerValue, {
|
|
195
|
+
toValue: 1,
|
|
196
|
+
duration,
|
|
197
|
+
useNativeDriver: true
|
|
198
|
+
}),
|
|
199
|
+
{ iterations: -1 }
|
|
200
|
+
);
|
|
201
|
+
shimmerAnimation.start();
|
|
202
|
+
return () => shimmerAnimation.stop();
|
|
203
|
+
}, [shimmerValue, duration]);
|
|
204
|
+
const translateX = shimmerValue.interpolate({
|
|
205
|
+
inputRange: [0, 1],
|
|
206
|
+
outputRange: [-containerWidth, containerWidth]
|
|
207
|
+
});
|
|
208
|
+
const opacity = shimmerValue.interpolate({
|
|
209
|
+
inputRange: [0, 0.5, 1],
|
|
210
|
+
outputRange: [0.3, 0.8, 0.3]
|
|
211
|
+
});
|
|
212
|
+
const containerStyle = {
|
|
213
|
+
width: children ? void 0 : width,
|
|
214
|
+
height: children ? void 0 : height,
|
|
215
|
+
backgroundColor,
|
|
216
|
+
borderRadius,
|
|
217
|
+
overflow: "hidden",
|
|
218
|
+
alignSelf: children ? "flex-start" : void 0,
|
|
219
|
+
...style
|
|
220
|
+
};
|
|
221
|
+
const handleLayout = (event) => {
|
|
222
|
+
const { width: layoutWidth } = event.nativeEvent.layout;
|
|
223
|
+
setContainerWidth(layoutWidth);
|
|
224
|
+
};
|
|
225
|
+
if (children) {
|
|
226
|
+
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(
|
|
227
|
+
import_react_native2.Animated.View,
|
|
228
|
+
{
|
|
229
|
+
style: [
|
|
230
|
+
{
|
|
231
|
+
position: "absolute",
|
|
232
|
+
top: 0,
|
|
233
|
+
left: 0,
|
|
234
|
+
width: containerWidth * 0.7,
|
|
235
|
+
height: "100%",
|
|
236
|
+
backgroundColor: shimmerColor,
|
|
237
|
+
opacity,
|
|
238
|
+
transform: [{ translateX }]
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
));
|
|
243
|
+
}
|
|
244
|
+
return /* @__PURE__ */ import_react4.default.createElement(import_react_native2.View, { style: containerStyle, testID, onLayout: handleLayout }, /* @__PURE__ */ import_react4.default.createElement(
|
|
245
|
+
import_react_native2.Animated.View,
|
|
246
|
+
{
|
|
247
|
+
style: [
|
|
248
|
+
{
|
|
249
|
+
width: containerWidth * 0.7,
|
|
250
|
+
height: "100%",
|
|
251
|
+
backgroundColor: shimmerColor,
|
|
252
|
+
opacity,
|
|
253
|
+
transform: [{ translateX }]
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
));
|
|
258
|
+
};
|
|
259
|
+
var Skeleton_native_default = Skeleton;
|
|
260
|
+
|
|
261
|
+
// components/icon/Icon.native.tsx
|
|
176
262
|
var import_css = require("react-native-svg/css");
|
|
177
|
-
var Icon =
|
|
263
|
+
var Icon = import_react5.default.forwardRef(
|
|
178
264
|
({ size, name, circled, stretched, color, backgroundColor, onClick, align, skeleton, testId, ...others }, ref) => {
|
|
179
265
|
const {
|
|
180
266
|
theme: { icons }
|
|
181
|
-
} = (0,
|
|
182
|
-
const statesContext = (0,
|
|
267
|
+
} = (0, import_react5.useContext)(TrilogyThemeContext);
|
|
268
|
+
const statesContext = (0, import_react5.useContext)(StatesContext);
|
|
183
269
|
const style = {};
|
|
184
270
|
const defaultSize = size === "huge" /* HUGE */ && 66 || size === "large" /* LARGE */ && 44 || size === "medium" /* MEDIUM */ && 30 || size === "small" /* SMALL */ && 20 || size === "smaller" /* SMALLER */ && 16 || 20;
|
|
185
271
|
const iconColor = color && getColorStyle(color) || statesContext.inverted && getColorStyle("WHITE" /* BACKGROUND */) || getColorStyle("MAIN" /* MAIN */);
|
|
186
272
|
const background = backgroundColor && getColorStyle(backgroundColor) || circled && getColorStyle("MAIN" /* MAIN */) || "";
|
|
187
273
|
const iconSkeletonRadius = size === "huge" /* HUGE */ && 50 || size === "large" /* LARGE */ && 35 || size === "medium" /* MEDIUM */ && 25 || size === "small" /* SMALL */ && 15 || size === "smaller" /* SMALLER */ && 10 || 15;
|
|
188
274
|
const circledWidth = size === "huge" /* HUGE */ && 99 || size === "large" /* LARGE */ && 66 || size === "medium" /* MEDIUM */ && 48 || size === "small" /* SMALL */ && 32 || size === "smaller" /* SMALLER */ && 38 || 32;
|
|
189
|
-
const styles4 =
|
|
275
|
+
const styles4 = import_react_native3.StyleSheet.create({
|
|
190
276
|
rootView: {
|
|
191
277
|
alignSelf: getAlignStyle(align)
|
|
192
278
|
},
|
|
@@ -229,14 +315,23 @@ var Icon = import_react4.default.forwardRef(
|
|
|
229
315
|
justifyContent: "center"
|
|
230
316
|
}
|
|
231
317
|
});
|
|
232
|
-
const IconSkeleton = () => /* @__PURE__ */
|
|
318
|
+
const IconSkeleton = () => /* @__PURE__ */ import_react5.default.createElement(
|
|
319
|
+
Skeleton_native_default,
|
|
320
|
+
{
|
|
321
|
+
style: styles4.skeleton,
|
|
322
|
+
width: circledWidth,
|
|
323
|
+
height: circledWidth,
|
|
324
|
+
borderRadius: iconSkeletonRadius,
|
|
325
|
+
testID: "skeleton-id"
|
|
326
|
+
}
|
|
327
|
+
);
|
|
233
328
|
if (skeleton) {
|
|
234
|
-
return /* @__PURE__ */
|
|
329
|
+
return /* @__PURE__ */ import_react5.default.createElement(IconSkeleton, null);
|
|
235
330
|
}
|
|
236
|
-
let iconView = /* @__PURE__ */
|
|
331
|
+
let iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, null);
|
|
237
332
|
if (name && icons) {
|
|
238
333
|
if (stretched && !circled) {
|
|
239
|
-
iconView = /* @__PURE__ */
|
|
334
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles4.stretched, testID: `${testId}-stretched` }, /* @__PURE__ */ import_react5.default.createElement(
|
|
240
335
|
import_css.WithLocalSvg,
|
|
241
336
|
{
|
|
242
337
|
style: [styles4.iconCircled, styles4.icon],
|
|
@@ -247,7 +342,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
247
342
|
}
|
|
248
343
|
));
|
|
249
344
|
} else if (circled) {
|
|
250
|
-
iconView = /* @__PURE__ */
|
|
345
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles4.circled, testID: `${testId}-circled` }, /* @__PURE__ */ import_react5.default.createElement(
|
|
251
346
|
import_css.WithLocalSvg,
|
|
252
347
|
{
|
|
253
348
|
style: [styles4.iconCircled, styles4.icon],
|
|
@@ -258,7 +353,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
258
353
|
}
|
|
259
354
|
));
|
|
260
355
|
} else {
|
|
261
|
-
iconView = /* @__PURE__ */
|
|
356
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles4.iconContainer, ...others }, /* @__PURE__ */ import_react5.default.createElement(
|
|
262
357
|
import_css.WithLocalSvg,
|
|
263
358
|
{
|
|
264
359
|
style: [styles4.icon, style],
|
|
@@ -270,8 +365,8 @@ var Icon = import_react4.default.forwardRef(
|
|
|
270
365
|
));
|
|
271
366
|
}
|
|
272
367
|
}
|
|
273
|
-
return onClick ? /* @__PURE__ */
|
|
274
|
-
|
|
368
|
+
return onClick ? /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles4.rootView, testID: testId, ref }, /* @__PURE__ */ import_react5.default.createElement(
|
|
369
|
+
import_react_native3.TouchableOpacity,
|
|
275
370
|
{
|
|
276
371
|
style: { width: "100%" },
|
|
277
372
|
onPress: onClick,
|
|
@@ -279,7 +374,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
279
374
|
testID: `${testId}-pressable`
|
|
280
375
|
},
|
|
281
376
|
iconView
|
|
282
|
-
)) : /* @__PURE__ */
|
|
377
|
+
)) : /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles4.rootView, testID: testId, ref }, iconView);
|
|
283
378
|
}
|
|
284
379
|
);
|
|
285
380
|
Icon.displayName = "Icon" /* Icon */;
|
|
@@ -291,10 +386,10 @@ var setTypographyAlign = (typo = "left") => {
|
|
|
291
386
|
};
|
|
292
387
|
|
|
293
388
|
// objects/Typography/TypographyBold/index.native.tsx
|
|
294
|
-
var
|
|
389
|
+
var import_react6 = require("react");
|
|
295
390
|
var getTypographyBoldStyle = (typo) => {
|
|
296
391
|
var _a, _b, _c, _d;
|
|
297
|
-
const { theme } = (0,
|
|
392
|
+
const { theme } = (0, import_react6.useContext)(TrilogyThemeContext);
|
|
298
393
|
const currentTypo = Array.isArray(typo) ? typo : [typo];
|
|
299
394
|
switch (true) {
|
|
300
395
|
case (typo && currentTypo.includes("has-text-weight-medium" /* TEXT_WEIGHT_MEDIUM */)):
|
|
@@ -314,64 +409,63 @@ var setTypographyColor = (typo = "", inverted = false, loading = false) => {
|
|
|
314
409
|
};
|
|
315
410
|
|
|
316
411
|
// components/text/Text.native.tsx
|
|
317
|
-
var
|
|
318
|
-
var
|
|
319
|
-
var
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
412
|
+
var import_react7 = __toESM(require("react"));
|
|
413
|
+
var import_react_native4 = require("react-native");
|
|
414
|
+
var Text = import_react7.default.forwardRef(
|
|
415
|
+
({ children, level, style, inverted, typo, skeleton, accessibilityLabel, numberOfLines = 0, ...others }, ref) => {
|
|
416
|
+
const statesContext = (0, import_react7.useContext)(StatesContext);
|
|
417
|
+
const textLevels = (level2) => {
|
|
418
|
+
return level2 && level2 == 1 /* ONE */ && 16 || level2 && level2 == 2 /* TWO */ && 14 || level2 && level2 == 3 /* THREE */ && 12 || level2 && level2 == 4 /* FOUR */ && 10 || 14;
|
|
419
|
+
};
|
|
420
|
+
const styles4 = import_react_native4.StyleSheet.create({
|
|
421
|
+
text: {
|
|
422
|
+
fontFamily: getTypographyBoldStyle(typo),
|
|
423
|
+
fontSize: textLevels(level),
|
|
424
|
+
color: setTypographyColor(typo, inverted || statesContext.inverted, skeleton),
|
|
425
|
+
textAlign: setTypographyAlign(typo),
|
|
426
|
+
lineHeight: textLevels(level) * 1.2,
|
|
427
|
+
textDecorationLine: "none",
|
|
428
|
+
alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start"
|
|
429
|
+
},
|
|
430
|
+
skeleton: {
|
|
431
|
+
minWidth: 10,
|
|
432
|
+
alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start",
|
|
433
|
+
borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3,
|
|
434
|
+
borderWidth: 0.1,
|
|
435
|
+
borderColor: getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */),
|
|
436
|
+
overflow: "hidden",
|
|
437
|
+
height: textLevels(level)
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
const textAccessibilityLabel = accessibilityLabel ? accessibilityLabel : typeof children === "string" ? children : void 0;
|
|
441
|
+
let textView = /* @__PURE__ */ import_react7.default.createElement(
|
|
442
|
+
import_react_native4.Text,
|
|
443
|
+
{
|
|
444
|
+
ref,
|
|
445
|
+
numberOfLines,
|
|
446
|
+
ellipsizeMode: "tail",
|
|
447
|
+
maxFontSizeMultiplier: 1.3,
|
|
448
|
+
accessible: !!textAccessibilityLabel,
|
|
449
|
+
accessibilityLabel: textAccessibilityLabel,
|
|
450
|
+
style: [styles4.text, style],
|
|
451
|
+
...others
|
|
452
|
+
},
|
|
453
|
+
children
|
|
454
|
+
);
|
|
455
|
+
if (skeleton) {
|
|
456
|
+
textView = /* @__PURE__ */ import_react7.default.createElement(
|
|
457
|
+
Skeleton_native_default,
|
|
458
|
+
{
|
|
459
|
+
style: styles4.skeleton,
|
|
460
|
+
height: textLevels(level),
|
|
461
|
+
borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3
|
|
462
|
+
},
|
|
463
|
+
textView
|
|
464
|
+
);
|
|
353
465
|
}
|
|
354
|
-
|
|
355
|
-
const textAccessibilityLabel = accessibilityLabel ? accessibilityLabel : typeof children === "string" ? children : void 0;
|
|
356
|
-
let textView = /* @__PURE__ */ import_react6.default.createElement(
|
|
357
|
-
import_react_native3.Text,
|
|
358
|
-
{
|
|
359
|
-
ref,
|
|
360
|
-
numberOfLines,
|
|
361
|
-
ellipsizeMode: "tail",
|
|
362
|
-
maxFontSizeMultiplier: 1.3,
|
|
363
|
-
accessible: !!textAccessibilityLabel,
|
|
364
|
-
accessibilityLabel: textAccessibilityLabel,
|
|
365
|
-
style: [styles4.text, style],
|
|
366
|
-
...others
|
|
367
|
-
},
|
|
368
|
-
children
|
|
369
|
-
);
|
|
370
|
-
if (skeleton) {
|
|
371
|
-
textView = /* @__PURE__ */ import_react6.default.createElement(import_native2.default, { style: styles4.skeleton }, textView, isAndroid && /* @__PURE__ */ import_react6.default.createElement(import_react_native3.View, null, /* @__PURE__ */ import_react6.default.createElement(import_native2.Rect, { rx: "7", ry: "7", width: "100%", height: "100%" })));
|
|
466
|
+
return textView;
|
|
372
467
|
}
|
|
373
|
-
|
|
374
|
-
});
|
|
468
|
+
);
|
|
375
469
|
Text.displayName = "Text" /* Text */;
|
|
376
470
|
var Text_native_default = Text;
|
|
377
471
|
|
|
@@ -385,20 +479,20 @@ var STATUS_COLORS = {
|
|
|
385
479
|
};
|
|
386
480
|
|
|
387
481
|
// components/input/Input.native.tsx
|
|
388
|
-
var
|
|
389
|
-
var
|
|
482
|
+
var import_react10 = __toESM(require("react"));
|
|
483
|
+
var import_react_native7 = require("react-native");
|
|
390
484
|
|
|
391
485
|
// components/spacer/Spacer.native.tsx
|
|
392
|
-
var
|
|
393
|
-
var
|
|
394
|
-
var Spacer =
|
|
395
|
-
const styles4 =
|
|
486
|
+
var React5 = __toESM(require("react"));
|
|
487
|
+
var import_react_native5 = require("react-native");
|
|
488
|
+
var Spacer = React5.forwardRef(({ size, horizontal }, ref) => {
|
|
489
|
+
const styles4 = import_react_native5.StyleSheet.create({
|
|
396
490
|
spacer: {
|
|
397
491
|
marginLeft: horizontal && parseInt(size.toString()) || 0,
|
|
398
492
|
marginTop: !horizontal && parseInt(size.toString()) || 0
|
|
399
493
|
}
|
|
400
494
|
});
|
|
401
|
-
return /* @__PURE__ */
|
|
495
|
+
return /* @__PURE__ */ React5.createElement(import_react_native5.View, { ref, style: styles4.spacer });
|
|
402
496
|
});
|
|
403
497
|
Spacer.displayName = "Spacer" /* Spacer */;
|
|
404
498
|
var Spacer_native_default = Spacer;
|
|
@@ -421,25 +515,25 @@ var SpacerSize = /* @__PURE__ */ ((SpacerSize2) => {
|
|
|
421
515
|
var SpacerSizeValues = `${SpacerSize}`;
|
|
422
516
|
|
|
423
517
|
// components/input/gauge/InputGauge.native.tsx
|
|
424
|
-
var
|
|
425
|
-
var
|
|
518
|
+
var import_react9 = __toESM(require("react"));
|
|
519
|
+
var import_react_native6 = require("react-native");
|
|
426
520
|
|
|
427
521
|
// components/input/gauge/hook/useGauge.native.tsx
|
|
428
|
-
var
|
|
522
|
+
var import_react8 = __toESM(require("react"));
|
|
429
523
|
var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
430
524
|
var _a, _b;
|
|
431
|
-
const [points, setPoints] =
|
|
525
|
+
const [points, setPoints] = import_react8.default.useState(0);
|
|
432
526
|
const initStateVerifies = { isVerify: false, color: "NEUTRAL" /* NEUTRAL */ };
|
|
433
|
-
const [isLengthVerify, setIsLengthVerify] =
|
|
434
|
-
const [isSpecialCharsVerify, setIsSpecialCharsVerify] =
|
|
435
|
-
const [isNumberVerify, setIsNumberVerify] =
|
|
436
|
-
const [isUppercaseVerify, setIsUppercaseVerify] =
|
|
437
|
-
const [isLowerercaseVerify, setisLowerercaseVerify] =
|
|
438
|
-
const nbAllVerifies =
|
|
527
|
+
const [isLengthVerify, setIsLengthVerify] = import_react8.default.useState(initStateVerifies);
|
|
528
|
+
const [isSpecialCharsVerify, setIsSpecialCharsVerify] = import_react8.default.useState(initStateVerifies);
|
|
529
|
+
const [isNumberVerify, setIsNumberVerify] = import_react8.default.useState(initStateVerifies);
|
|
530
|
+
const [isUppercaseVerify, setIsUppercaseVerify] = import_react8.default.useState(initStateVerifies);
|
|
531
|
+
const [isLowerercaseVerify, setisLowerercaseVerify] = import_react8.default.useState(initStateVerifies);
|
|
532
|
+
const nbAllVerifies = import_react8.default.useMemo(
|
|
439
533
|
() => validationRules && Object.values(validationRules).filter((rule) => rule).length || securityRules && securityRules.length || 0,
|
|
440
534
|
[validationRules, securityRules]
|
|
441
535
|
);
|
|
442
|
-
const rules =
|
|
536
|
+
const rules = import_react8.default.useMemo(
|
|
443
537
|
() => securityRules && securityRules.map(({ label, patternValidator, dataAttribute }) => ({
|
|
444
538
|
label,
|
|
445
539
|
validate: !!(patternValidator == null ? void 0 : patternValidator.test(inputValue)),
|
|
@@ -447,7 +541,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
447
541
|
})),
|
|
448
542
|
[inputValue, securityRules]
|
|
449
543
|
);
|
|
450
|
-
const calcPoints =
|
|
544
|
+
const calcPoints = import_react8.default.useMemo(() => {
|
|
451
545
|
if (validationRules) {
|
|
452
546
|
return Number((points / nbAllVerifies * 100).toFixed(0));
|
|
453
547
|
}
|
|
@@ -457,7 +551,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
457
551
|
}
|
|
458
552
|
return 0;
|
|
459
553
|
}, [points, nbAllVerifies, rules, validationRules, securityRules]);
|
|
460
|
-
const widthGauge =
|
|
554
|
+
const widthGauge = import_react8.default.useMemo(() => {
|
|
461
555
|
if (calcPoints <= 50 && calcPoints > 0) return "50%";
|
|
462
556
|
if (calcPoints <= 99 && calcPoints > 50) return "75%";
|
|
463
557
|
if (calcPoints === 100) return "100%";
|
|
@@ -469,7 +563,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
469
563
|
if (calcPoints === 100) return getColorStyle("SUCCESS" /* SUCCESS */);
|
|
470
564
|
return getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */);
|
|
471
565
|
};
|
|
472
|
-
const LengthvalidationRulesText = (0,
|
|
566
|
+
const LengthvalidationRulesText = (0, import_react8.useMemo)(() => {
|
|
473
567
|
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
474
568
|
switch (true) {
|
|
475
569
|
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):
|
|
@@ -482,7 +576,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
482
576
|
return "";
|
|
483
577
|
}
|
|
484
578
|
}, [(_a = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a.min, (_b = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b.max]);
|
|
485
|
-
(0,
|
|
579
|
+
(0, import_react8.useEffect)(() => {
|
|
486
580
|
var _a2, _b2;
|
|
487
581
|
const min = ((_a2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a2.min) || 0;
|
|
488
582
|
const max = ((_b2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b2.max) || "";
|
|
@@ -514,7 +608,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
514
608
|
|
|
515
609
|
// components/input/gauge/InputGauge.native.tsx
|
|
516
610
|
var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
517
|
-
const id = (0,
|
|
611
|
+
const id = (0, import_react9.useId)();
|
|
518
612
|
const {
|
|
519
613
|
widthGauge,
|
|
520
614
|
colorGauge,
|
|
@@ -526,7 +620,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
526
620
|
isUppercaseVerify,
|
|
527
621
|
rules
|
|
528
622
|
} = useGauge({ validationRules, inputValue, securityRules });
|
|
529
|
-
return /* @__PURE__ */
|
|
623
|
+
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(
|
|
530
624
|
DataVerify,
|
|
531
625
|
{
|
|
532
626
|
display: !!(validationRules == null ? void 0 : validationRules.length),
|
|
@@ -535,7 +629,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
535
629
|
type: LengthvalidationRulesText,
|
|
536
630
|
index: 1
|
|
537
631
|
}
|
|
538
|
-
), /* @__PURE__ */
|
|
632
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
539
633
|
DataVerify,
|
|
540
634
|
{
|
|
541
635
|
display: !!(validationRules == null ? void 0 : validationRules.uppercase),
|
|
@@ -544,7 +638,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
544
638
|
type: "Majuscule",
|
|
545
639
|
index: 2
|
|
546
640
|
}
|
|
547
|
-
), /* @__PURE__ */
|
|
641
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
548
642
|
DataVerify,
|
|
549
643
|
{
|
|
550
644
|
display: !!(validationRules == null ? void 0 : validationRules.specialChars),
|
|
@@ -553,7 +647,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
553
647
|
type: "Caract\xE8res sp\xE9ciaux",
|
|
554
648
|
index: 3
|
|
555
649
|
}
|
|
556
|
-
), /* @__PURE__ */
|
|
650
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
557
651
|
DataVerify,
|
|
558
652
|
{
|
|
559
653
|
display: !!(validationRules == null ? void 0 : validationRules.lowercase),
|
|
@@ -562,7 +656,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
562
656
|
type: "Minuscule",
|
|
563
657
|
index: 4
|
|
564
658
|
}
|
|
565
|
-
), /* @__PURE__ */
|
|
659
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
566
660
|
DataVerify,
|
|
567
661
|
{
|
|
568
662
|
display: !!(validationRules == null ? void 0 : validationRules.number),
|
|
@@ -571,7 +665,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
571
665
|
type: "Chiffre",
|
|
572
666
|
index: 5
|
|
573
667
|
}
|
|
574
|
-
)), securityRules && rules && rules.map((rule, index) => /* @__PURE__ */
|
|
668
|
+
)), securityRules && rules && rules.map((rule, index) => /* @__PURE__ */ import_react9.default.createElement(
|
|
575
669
|
DataVerify,
|
|
576
670
|
{
|
|
577
671
|
index: index + 1,
|
|
@@ -585,10 +679,10 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
585
679
|
};
|
|
586
680
|
var DataVerify = ({ color, iconName, display, type, index }) => {
|
|
587
681
|
if (!display) return null;
|
|
588
|
-
return /* @__PURE__ */
|
|
682
|
+
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));
|
|
589
683
|
};
|
|
590
684
|
var InputGauge_native_default = InputGauge;
|
|
591
|
-
var styles =
|
|
685
|
+
var styles = import_react_native6.StyleSheet.create({
|
|
592
686
|
even: {
|
|
593
687
|
justifyContent: "flex-end"
|
|
594
688
|
},
|
|
@@ -621,7 +715,7 @@ var styles = import_react_native5.StyleSheet.create({
|
|
|
621
715
|
});
|
|
622
716
|
|
|
623
717
|
// components/input/Input.native.tsx
|
|
624
|
-
var Input =
|
|
718
|
+
var Input = import_react10.default.forwardRef(
|
|
625
719
|
({
|
|
626
720
|
defaultValue,
|
|
627
721
|
name,
|
|
@@ -665,14 +759,14 @@ var Input = import_react9.default.forwardRef(
|
|
|
665
759
|
inputIcon.set("success" /* SUCCESS */, "tri-check-circle" /* CHECK_CIRCLE */);
|
|
666
760
|
inputIcon.set("warning" /* WARNING */, "tri-exclamation-circle" /* EXCLAMATION_CIRCLE */);
|
|
667
761
|
inputIcon.set("error" /* ERROR */, "tri-exclamation-circle" /* EXCLAMATION_CIRCLE */);
|
|
668
|
-
const [value, setValue] = (0,
|
|
669
|
-
const [email, setEmail] = (0,
|
|
670
|
-
const [isFocused, setIsFocused] = (0,
|
|
671
|
-
const [iconPassword, setIconPassword] = (0,
|
|
672
|
-
const [dynamicPlaceholder, setDynamicPlaceholder] = (0,
|
|
673
|
-
const [isKeyboardVisible, setKeyboardVisible] = (0,
|
|
674
|
-
const animation = (0,
|
|
675
|
-
const sizeAnimation = (0,
|
|
762
|
+
const [value, setValue] = (0, import_react10.useState)(defaultValue || "");
|
|
763
|
+
const [email, setEmail] = (0, import_react10.useState)("");
|
|
764
|
+
const [isFocused, setIsFocused] = (0, import_react10.useState)(false);
|
|
765
|
+
const [iconPassword, setIconPassword] = (0, import_react10.useState)("tri-eye" /* EYE */);
|
|
766
|
+
const [dynamicPlaceholder, setDynamicPlaceholder] = (0, import_react10.useState)(false);
|
|
767
|
+
const [isKeyboardVisible, setKeyboardVisible] = (0, import_react10.useState)(null);
|
|
768
|
+
const animation = (0, import_react10.useRef)(new import_react_native7.Animated.Value(25)).current;
|
|
769
|
+
const sizeAnimation = (0, import_react10.useRef)(new import_react_native7.Animated.Value(placeholderDefaultSize)).current;
|
|
676
770
|
const paddingTopByPlatform = (os, dynamicPlaceholder2) => {
|
|
677
771
|
if (dynamicPlaceholder2 && type !== "search" /* SEARCH */ && os === "ios") {
|
|
678
772
|
return 10;
|
|
@@ -682,7 +776,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
682
776
|
}
|
|
683
777
|
return 0;
|
|
684
778
|
};
|
|
685
|
-
const handleChange = (0,
|
|
779
|
+
const handleChange = (0, import_react10.useCallback)((text) => {
|
|
686
780
|
var _a;
|
|
687
781
|
setValue(text);
|
|
688
782
|
setEmail("");
|
|
@@ -704,58 +798,58 @@ var Input = import_react9.default.forwardRef(
|
|
|
704
798
|
onSubmit == null ? void 0 : onSubmit(e);
|
|
705
799
|
type === "email" /* EMAIL */ && handleClick();
|
|
706
800
|
};
|
|
707
|
-
(0,
|
|
801
|
+
(0, import_react10.useEffect)(() => {
|
|
708
802
|
setValue(defaultValue || "");
|
|
709
803
|
}, [defaultValue, placeholder]);
|
|
710
|
-
(0,
|
|
804
|
+
(0, import_react10.useEffect)(() => {
|
|
711
805
|
if (value && value.length > 0 && placeholder && placeholder.length > 0) {
|
|
712
806
|
setDynamicPlaceholder(true);
|
|
713
807
|
} else {
|
|
714
808
|
setDynamicPlaceholder(false);
|
|
715
809
|
}
|
|
716
810
|
}, [placeholder, value]);
|
|
717
|
-
(0,
|
|
811
|
+
(0, import_react10.useEffect)(() => {
|
|
718
812
|
if (dynamicPlaceholder && type !== "search" /* SEARCH */) {
|
|
719
|
-
|
|
813
|
+
import_react_native7.Animated.timing(animation, {
|
|
720
814
|
toValue: 3,
|
|
721
815
|
duration: animationDuration,
|
|
722
816
|
useNativeDriver: false
|
|
723
817
|
}).start();
|
|
724
|
-
|
|
818
|
+
import_react_native7.Animated.timing(sizeAnimation, {
|
|
725
819
|
toValue: 12,
|
|
726
820
|
duration: animationDuration,
|
|
727
821
|
useNativeDriver: false
|
|
728
822
|
}).start();
|
|
729
823
|
} else {
|
|
730
|
-
|
|
824
|
+
import_react_native7.Animated.timing(animation, {
|
|
731
825
|
toValue: 25,
|
|
732
826
|
duration: animationDuration,
|
|
733
827
|
useNativeDriver: false
|
|
734
828
|
}).start();
|
|
735
|
-
|
|
829
|
+
import_react_native7.Animated.timing(sizeAnimation, {
|
|
736
830
|
toValue: placeholderDefaultSize,
|
|
737
831
|
duration: animationDuration,
|
|
738
832
|
useNativeDriver: false
|
|
739
833
|
}).start();
|
|
740
834
|
}
|
|
741
835
|
}, [dynamicPlaceholder, animation, sizeAnimation]);
|
|
742
|
-
(0,
|
|
743
|
-
const keyboardDidShowListener =
|
|
744
|
-
const keyboardDidHideListener =
|
|
836
|
+
(0, import_react10.useEffect)(() => {
|
|
837
|
+
const keyboardDidShowListener = import_react_native7.Keyboard.addListener("keyboardDidShow", () => setKeyboardVisible(true));
|
|
838
|
+
const keyboardDidHideListener = import_react_native7.Keyboard.addListener("keyboardDidHide", () => setKeyboardVisible(false));
|
|
745
839
|
return () => {
|
|
746
840
|
keyboardDidHideListener.remove();
|
|
747
841
|
keyboardDidShowListener.remove();
|
|
748
842
|
};
|
|
749
843
|
}, []);
|
|
750
|
-
(0,
|
|
844
|
+
(0, import_react10.useEffect)(() => {
|
|
751
845
|
handleClick();
|
|
752
846
|
}, [isKeyboardVisible]);
|
|
753
847
|
const hasIcon = iconNameLeft || iconNameRight || false;
|
|
754
|
-
const styles4 =
|
|
848
|
+
const styles4 = import_react_native7.StyleSheet.create({
|
|
755
849
|
input: {
|
|
756
850
|
paddingLeft: (iconNameLeft && isFocused || type === "search" /* SEARCH */ && isFocused) && 39 || (iconNameLeft || type === "search" /* SEARCH */) && 40 || !iconNameLeft && type !== "search" /* SEARCH */ && isFocused && 9 || 10,
|
|
757
851
|
paddingRight: (iconNameRight || type === "search" /* SEARCH */) && 32 || 0,
|
|
758
|
-
marginTop: paddingTopByPlatform(
|
|
852
|
+
marginTop: paddingTopByPlatform(import_react_native7.Platform.OS, dynamicPlaceholder),
|
|
759
853
|
width: hasIcon && status ? "85%" : "95%",
|
|
760
854
|
height: 46,
|
|
761
855
|
color: disabled ? getColorStyle("DISABLED" /* DISABLED */) : inputColor
|
|
@@ -830,18 +924,18 @@ var Input = import_react9.default.forwardRef(
|
|
|
830
924
|
marginBottom: isIOS ? 0 : -3
|
|
831
925
|
}
|
|
832
926
|
});
|
|
833
|
-
return /* @__PURE__ */
|
|
834
|
-
|
|
927
|
+
return /* @__PURE__ */ import_react10.default.createElement(
|
|
928
|
+
import_react_native7.View,
|
|
835
929
|
{
|
|
836
930
|
style: { width: "100%" },
|
|
837
931
|
accessible: !!inputAccessibilityLabel,
|
|
838
932
|
accessibilityLabel: inputAccessibilityLabel,
|
|
839
933
|
testID: inputTestId
|
|
840
934
|
},
|
|
841
|
-
!dynamicPlaceholder && label && /* @__PURE__ */
|
|
842
|
-
!dynamicPlaceholder && label && sample && /* @__PURE__ */
|
|
843
|
-
/* @__PURE__ */
|
|
844
|
-
|
|
935
|
+
!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 */ })),
|
|
936
|
+
!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 */ })),
|
|
937
|
+
/* @__PURE__ */ import_react10.default.createElement(import_react_native7.View, { testID: "input-wrapper-id", style: styles4.inputWrapper }, dynamicPlaceholder && type !== "search" /* SEARCH */ && /* @__PURE__ */ import_react10.default.createElement(import_react_native7.Animated.Text, { style: [styles4.dynamicPlaceholder, { top: animation, fontSize: sizeAnimation }] }, placeholder), /* @__PURE__ */ import_react10.default.createElement(
|
|
938
|
+
import_react_native7.TextInput,
|
|
845
939
|
{
|
|
846
940
|
ref,
|
|
847
941
|
testID: "input-id",
|
|
@@ -882,7 +976,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
882
976
|
style: styles4.input,
|
|
883
977
|
...others
|
|
884
978
|
}
|
|
885
|
-
), type === "email" && /* @__PURE__ */
|
|
979
|
+
), type === "email" && /* @__PURE__ */ import_react10.default.createElement(Text_native_default, { style: styles4.text }, value, /* @__PURE__ */ import_react10.default.createElement(Text_native_default, { style: styles4.domain }, email)), hasIcon && type !== "password" /* PASSWORD */ && type !== "search" /* SEARCH */ && /* @__PURE__ */ import_react10.default.createElement(import_react_native7.View, { style: styles4.inputIconLeft }, /* @__PURE__ */ import_react10.default.createElement(
|
|
886
980
|
Icon_native_default,
|
|
887
981
|
{
|
|
888
982
|
align: "ALIGNED_START" /* ALIGNED_START */,
|
|
@@ -890,8 +984,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
890
984
|
size: "small" /* SMALL */,
|
|
891
985
|
color: status && status === "success" && "SUCCESS" /* SUCCESS */ || status && status === "warning" && "WARNING" /* WARNING */ || status && status === "error" && "ERROR" /* ERROR */ || disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
892
986
|
}
|
|
893
|
-
)), hasIcon && type !== "search" /* SEARCH */ && status && status !== "default" /* DEFAULT */ && type !== "password" /* PASSWORD */ && /* @__PURE__ */
|
|
894
|
-
|
|
987
|
+
)), hasIcon && type !== "search" /* SEARCH */ && status && status !== "default" /* DEFAULT */ && type !== "password" /* PASSWORD */ && /* @__PURE__ */ import_react10.default.createElement(
|
|
988
|
+
import_react_native7.TouchableOpacity,
|
|
895
989
|
{
|
|
896
990
|
style: styles4.inputContainer,
|
|
897
991
|
activeOpacity: onIconClick ? 0.2 : 1,
|
|
@@ -903,7 +997,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
903
997
|
});
|
|
904
998
|
}
|
|
905
999
|
},
|
|
906
|
-
/* @__PURE__ */
|
|
1000
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
907
1001
|
Icon_native_default,
|
|
908
1002
|
{
|
|
909
1003
|
testId: "icon-status-id",
|
|
@@ -913,8 +1007,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
913
1007
|
color: status && status === "success" && "SUCCESS" /* SUCCESS */ || status && status === "warning" && "WARNING" /* WARNING */ || status && status === "error" && "ERROR" /* ERROR */ || status && "MAIN" /* MAIN */ || disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
914
1008
|
}
|
|
915
1009
|
)
|
|
916
|
-
), iconNameRight && !iconNameLeft && type !== "search" /* SEARCH */ && type !== "password" /* PASSWORD */ && (!status || status === "default" /* DEFAULT */) && /* @__PURE__ */
|
|
917
|
-
|
|
1010
|
+
), iconNameRight && !iconNameLeft && type !== "search" /* SEARCH */ && type !== "password" /* PASSWORD */ && (!status || status === "default" /* DEFAULT */) && /* @__PURE__ */ import_react10.default.createElement(
|
|
1011
|
+
import_react_native7.TouchableOpacity,
|
|
918
1012
|
{
|
|
919
1013
|
style: styles4.inputContainerRight,
|
|
920
1014
|
activeOpacity: onIconClick ? 0.2 : 1,
|
|
@@ -926,7 +1020,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
926
1020
|
});
|
|
927
1021
|
}
|
|
928
1022
|
},
|
|
929
|
-
/* @__PURE__ */
|
|
1023
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
930
1024
|
Icon_native_default,
|
|
931
1025
|
{
|
|
932
1026
|
testId: "icon-right-id",
|
|
@@ -936,8 +1030,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
936
1030
|
color: disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
937
1031
|
}
|
|
938
1032
|
)
|
|
939
|
-
), type === "password" /* PASSWORD */ && /* @__PURE__ */
|
|
940
|
-
|
|
1033
|
+
), 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 }, styles4.inputContainerLeft] }, /* @__PURE__ */ import_react10.default.createElement(Icon_native_default, { name: iconNameLeft })), /* @__PURE__ */ import_react10.default.createElement(
|
|
1034
|
+
import_react_native7.TouchableOpacity,
|
|
941
1035
|
{
|
|
942
1036
|
style: styles4.inputContainerRight,
|
|
943
1037
|
onPress: () => {
|
|
@@ -952,7 +1046,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
952
1046
|
}
|
|
953
1047
|
}
|
|
954
1048
|
},
|
|
955
|
-
/* @__PURE__ */
|
|
1049
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
956
1050
|
Icon_native_default,
|
|
957
1051
|
{
|
|
958
1052
|
testId: "password-id",
|
|
@@ -962,7 +1056,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
962
1056
|
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 */
|
|
963
1057
|
}
|
|
964
1058
|
)
|
|
965
|
-
)), type === "search" /* SEARCH */ && !status && /* @__PURE__ */
|
|
1059
|
+
)), type === "search" /* SEARCH */ && !status && /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, /* @__PURE__ */ import_react10.default.createElement(import_react_native7.View, { style: styles4.inputContainerLeft }, /* @__PURE__ */ import_react10.default.createElement(
|
|
966
1060
|
Icon_native_default,
|
|
967
1061
|
{
|
|
968
1062
|
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
@@ -970,8 +1064,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
970
1064
|
size: "small" /* SMALL */,
|
|
971
1065
|
color: disabled ? "DISABLED" /* DISABLED */ : "NEUTRAL" /* NEUTRAL */
|
|
972
1066
|
}
|
|
973
|
-
)), value.length > 0 && /* @__PURE__ */
|
|
974
|
-
|
|
1067
|
+
)), value.length > 0 && /* @__PURE__ */ import_react10.default.createElement(
|
|
1068
|
+
import_react_native7.TouchableOpacity,
|
|
975
1069
|
{
|
|
976
1070
|
testID: "search-id",
|
|
977
1071
|
style: styles4.inputContainerRight,
|
|
@@ -988,7 +1082,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
988
1082
|
setValue("");
|
|
989
1083
|
}
|
|
990
1084
|
},
|
|
991
|
-
/* @__PURE__ */
|
|
1085
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
992
1086
|
Icon_native_default,
|
|
993
1087
|
{
|
|
994
1088
|
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
@@ -998,8 +1092,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
998
1092
|
}
|
|
999
1093
|
)
|
|
1000
1094
|
))),
|
|
1001
|
-
help && /* @__PURE__ */
|
|
1002
|
-
type === "password" /* PASSWORD */ && securityGauge && /* @__PURE__ */
|
|
1095
|
+
help && /* @__PURE__ */ import_react10.default.createElement(Text_native_default, { testId: "help-id", style: styles4.help }, help),
|
|
1096
|
+
type === "password" /* PASSWORD */ && securityGauge && /* @__PURE__ */ import_react10.default.createElement(InputGauge_native_default, { securityRules, validationRules, inputValue: value })
|
|
1003
1097
|
);
|
|
1004
1098
|
}
|
|
1005
1099
|
);
|
|
@@ -1021,12 +1115,12 @@ var defaultMatching = (data, value) => {
|
|
|
1021
1115
|
};
|
|
1022
1116
|
|
|
1023
1117
|
// components/autocomplete/item/AutoCompleteIem.native.tsx
|
|
1024
|
-
var
|
|
1025
|
-
var
|
|
1118
|
+
var React9 = __toESM(require("react"));
|
|
1119
|
+
var import_react_native8 = require("react-native");
|
|
1026
1120
|
var AutoCompleteItemNative = ({ item, onSelect }) => {
|
|
1027
|
-
return /* @__PURE__ */
|
|
1121
|
+
return /* @__PURE__ */ React9.createElement(import_react_native8.TouchableOpacity, { style: styles2.itemList, onPress: onSelect }, /* @__PURE__ */ React9.createElement(Text_native_default, null, getLabel(item)));
|
|
1028
1122
|
};
|
|
1029
|
-
var styles2 =
|
|
1123
|
+
var styles2 = import_react_native8.StyleSheet.create({
|
|
1030
1124
|
itemList: {
|
|
1031
1125
|
padding: 10
|
|
1032
1126
|
}
|
|
@@ -1034,10 +1128,10 @@ var styles2 = import_react_native7.StyleSheet.create({
|
|
|
1034
1128
|
var AutoCompleteIem_native_default = AutoCompleteItemNative;
|
|
1035
1129
|
|
|
1036
1130
|
// components/autocomplete/menu/AutoCompleteMenu.native.tsx
|
|
1037
|
-
var
|
|
1038
|
-
var
|
|
1131
|
+
var React10 = __toESM(require("react"));
|
|
1132
|
+
var import_react_native9 = require("react-native");
|
|
1039
1133
|
var AutoCompleteMenuNative = ({ suggestions, handleSelectItem }) => {
|
|
1040
|
-
const styles4 =
|
|
1134
|
+
const styles4 = import_react_native9.StyleSheet.create({
|
|
1041
1135
|
list: {
|
|
1042
1136
|
marginTop: 6,
|
|
1043
1137
|
marginBottom: 6,
|
|
@@ -1050,8 +1144,8 @@ var AutoCompleteMenuNative = ({ suggestions, handleSelectItem }) => {
|
|
|
1050
1144
|
flexGrow: 1
|
|
1051
1145
|
}
|
|
1052
1146
|
});
|
|
1053
|
-
return /* @__PURE__ */
|
|
1054
|
-
|
|
1147
|
+
return /* @__PURE__ */ React10.createElement(
|
|
1148
|
+
import_react_native9.FlatList,
|
|
1055
1149
|
{
|
|
1056
1150
|
keyboardShouldPersistTaps: "handled",
|
|
1057
1151
|
nestedScrollEnabled: true,
|
|
@@ -1087,7 +1181,7 @@ var debounce = (func, wait) => {
|
|
|
1087
1181
|
};
|
|
1088
1182
|
|
|
1089
1183
|
// components/autocomplete/AutoComplete.native.tsx
|
|
1090
|
-
var AutoComplete =
|
|
1184
|
+
var AutoComplete = import_react11.default.forwardRef(
|
|
1091
1185
|
({
|
|
1092
1186
|
value,
|
|
1093
1187
|
data,
|
|
@@ -1108,9 +1202,9 @@ var AutoComplete = import_react10.default.forwardRef(
|
|
|
1108
1202
|
onIconClick,
|
|
1109
1203
|
...others
|
|
1110
1204
|
}, ref) => {
|
|
1111
|
-
const [valueInput, setValueInput] = (0,
|
|
1112
|
-
const [suggestions, setSuggestions] = (0,
|
|
1113
|
-
const [isOpenMenu, setIsOpenMenu] = (0,
|
|
1205
|
+
const [valueInput, setValueInput] = (0, import_react11.useState)(value != null ? value : "");
|
|
1206
|
+
const [suggestions, setSuggestions] = (0, import_react11.useState)(data != null ? data : []);
|
|
1207
|
+
const [isOpenMenu, setIsOpenMenu] = (0, import_react11.useState)(displayMenu != null ? displayMenu : false);
|
|
1114
1208
|
const updateSuggestions = async (valueInput2) => {
|
|
1115
1209
|
if (getSuggestions) {
|
|
1116
1210
|
const suggestions2 = await getSuggestions(valueInput2);
|
|
@@ -1122,13 +1216,13 @@ var AutoComplete = import_react10.default.forwardRef(
|
|
|
1122
1216
|
setIsOpenMenu(Boolean(suggestions2.length));
|
|
1123
1217
|
}
|
|
1124
1218
|
};
|
|
1125
|
-
const updateSuggestionsFn = (0,
|
|
1219
|
+
const updateSuggestionsFn = (0, import_react11.useMemo)(() => {
|
|
1126
1220
|
return debounceSuggestionsTimeout ? debounce(updateSuggestions, debounceSuggestionsTimeout) : updateSuggestions;
|
|
1127
1221
|
}, [debounceSuggestionsTimeout]);
|
|
1128
|
-
(0,
|
|
1222
|
+
(0, import_react11.useEffect)(() => {
|
|
1129
1223
|
updateSuggestionsFn(valueInput);
|
|
1130
1224
|
}, [valueInput]);
|
|
1131
|
-
(0,
|
|
1225
|
+
(0, import_react11.useEffect)(() => {
|
|
1132
1226
|
setValueInput(value || "");
|
|
1133
1227
|
}, [value]);
|
|
1134
1228
|
const onTextChanged = async (e) => {
|
|
@@ -1145,7 +1239,7 @@ var AutoComplete = import_react10.default.forwardRef(
|
|
|
1145
1239
|
const handleSelectItem = (item) => {
|
|
1146
1240
|
setValueInput(getLabel(item));
|
|
1147
1241
|
setIsOpenMenu(false);
|
|
1148
|
-
|
|
1242
|
+
import_react_native10.Keyboard.dismiss();
|
|
1149
1243
|
if (onItemSelected && (data || suggestions)) {
|
|
1150
1244
|
onItemSelected({
|
|
1151
1245
|
value: item,
|
|
@@ -1157,15 +1251,15 @@ var AutoComplete = import_react10.default.forwardRef(
|
|
|
1157
1251
|
setIsOpenMenu(true);
|
|
1158
1252
|
if (onFocus) onFocus(event);
|
|
1159
1253
|
};
|
|
1160
|
-
(0,
|
|
1161
|
-
const keyboardDidShowListener =
|
|
1162
|
-
const keyboardDidHideListener =
|
|
1254
|
+
(0, import_react11.useEffect)(() => {
|
|
1255
|
+
const keyboardDidShowListener = import_react_native10.Keyboard.addListener("keyboardDidShow", () => setIsOpenMenu(true));
|
|
1256
|
+
const keyboardDidHideListener = import_react_native10.Keyboard.addListener("keyboardDidHide", () => setIsOpenMenu(false));
|
|
1163
1257
|
return () => {
|
|
1164
1258
|
keyboardDidHideListener.remove();
|
|
1165
1259
|
keyboardDidShowListener.remove();
|
|
1166
1260
|
};
|
|
1167
1261
|
}, []);
|
|
1168
|
-
return /* @__PURE__ */
|
|
1262
|
+
return /* @__PURE__ */ import_react11.default.createElement(import_react_native10.View, { style: styles3.autoComplete, ref }, /* @__PURE__ */ import_react11.default.createElement(import_react_native10.View, null, /* @__PURE__ */ import_react11.default.createElement(
|
|
1169
1263
|
Input_native_default,
|
|
1170
1264
|
{
|
|
1171
1265
|
status,
|
|
@@ -1182,10 +1276,10 @@ var AutoComplete = import_react10.default.forwardRef(
|
|
|
1182
1276
|
onClick: onIconClick,
|
|
1183
1277
|
...others
|
|
1184
1278
|
}
|
|
1185
|
-
)), isOpenMenu && /* @__PURE__ */
|
|
1279
|
+
)), isOpenMenu && /* @__PURE__ */ import_react11.default.createElement(AutoCompleteMenu_native_default, { suggestions, handleSelectItem }));
|
|
1186
1280
|
}
|
|
1187
1281
|
);
|
|
1188
|
-
var styles3 =
|
|
1282
|
+
var styles3 = import_react_native10.StyleSheet.create({
|
|
1189
1283
|
autoComplete: {
|
|
1190
1284
|
position: "relative"
|
|
1191
1285
|
}
|
|
@@ -1194,13 +1288,13 @@ AutoComplete.displayName = "AutoComplete" /* AutoComplete */;
|
|
|
1194
1288
|
var AutoComplete_native_default = AutoComplete;
|
|
1195
1289
|
|
|
1196
1290
|
// context/index.tsx
|
|
1197
|
-
var
|
|
1198
|
-
var TrilogyContext =
|
|
1291
|
+
var React12 = __toESM(require("react"));
|
|
1292
|
+
var TrilogyContext = React12.createContext({
|
|
1199
1293
|
styled: false,
|
|
1200
1294
|
setStyled: () => void 0
|
|
1201
1295
|
});
|
|
1202
1296
|
var useTrilogyContext = () => {
|
|
1203
|
-
const context =
|
|
1297
|
+
const context = React12.useContext(TrilogyContext);
|
|
1204
1298
|
if (context === void 0) {
|
|
1205
1299
|
throw new Error("useTrilogyContext must be used within a TrilogyProvider");
|
|
1206
1300
|
}
|
|
@@ -1251,7 +1345,7 @@ var has = classify("has");
|
|
|
1251
1345
|
|
|
1252
1346
|
// components/autocomplete/item/AutoCompleteItem.tsx
|
|
1253
1347
|
var import_clsx = __toESM(require("clsx"));
|
|
1254
|
-
var
|
|
1348
|
+
var React13 = __toESM(require("react"));
|
|
1255
1349
|
var AutoCompleteItem = ({
|
|
1256
1350
|
children,
|
|
1257
1351
|
suggestionSelected,
|
|
@@ -1261,8 +1355,8 @@ var AutoCompleteItem = ({
|
|
|
1261
1355
|
id
|
|
1262
1356
|
}) => {
|
|
1263
1357
|
const { styled } = useTrilogyContext();
|
|
1264
|
-
const [isActive, setIsActive] =
|
|
1265
|
-
return /* @__PURE__ */
|
|
1358
|
+
const [isActive, setIsActive] = React13.useState(false);
|
|
1359
|
+
return /* @__PURE__ */ React13.createElement(
|
|
1266
1360
|
"div",
|
|
1267
1361
|
{
|
|
1268
1362
|
id,
|
|
@@ -1283,10 +1377,10 @@ var item_default = AutoCompleteItem_default;
|
|
|
1283
1377
|
|
|
1284
1378
|
// components/autocomplete/menu/AutoCompleteMenu.tsx
|
|
1285
1379
|
var import_clsx2 = __toESM(require("clsx"));
|
|
1286
|
-
var
|
|
1380
|
+
var React14 = __toESM(require("react"));
|
|
1287
1381
|
var AutoCompleteMenu = ({ children, className, id, absolute, fullwidth, testId }) => {
|
|
1288
1382
|
const { styled } = useTrilogyContext();
|
|
1289
|
-
return /* @__PURE__ */
|
|
1383
|
+
return /* @__PURE__ */ React14.createElement(
|
|
1290
1384
|
"div",
|
|
1291
1385
|
{
|
|
1292
1386
|
id,
|