@trilogy-ds/react 0.0.19-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-NDT4BW3R.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-NHPZIDNU.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.d.mts +2 -1
- package/lib/components/input/index.native.d.ts +2 -1
- 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
|
@@ -166,23 +166,109 @@ var getAlignStyle = (alignType) => {
|
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
// components/icon/Icon.native.tsx
|
|
169
|
+
var import_react5 = __toESM(require("react"));
|
|
170
|
+
var import_react_native3 = require("react-native");
|
|
171
|
+
|
|
172
|
+
// components/skeleton/Skeleton.native.tsx
|
|
169
173
|
var import_react4 = __toESM(require("react"));
|
|
170
|
-
var import_native = __toESM(require("react-content-loader/native"));
|
|
171
174
|
var import_react_native2 = require("react-native");
|
|
175
|
+
var Skeleton = ({
|
|
176
|
+
style,
|
|
177
|
+
width = "100%",
|
|
178
|
+
height = 20,
|
|
179
|
+
backgroundColor = "#E1E9EE",
|
|
180
|
+
shimmerColor = "#F7F8F8",
|
|
181
|
+
duration = 1200,
|
|
182
|
+
borderRadius = 4,
|
|
183
|
+
children,
|
|
184
|
+
testID
|
|
185
|
+
}) => {
|
|
186
|
+
const shimmerValue = (0, import_react4.useRef)(new import_react_native2.Animated.Value(0)).current;
|
|
187
|
+
const [containerWidth, setContainerWidth] = import_react4.default.useState(200);
|
|
188
|
+
(0, import_react4.useEffect)(() => {
|
|
189
|
+
const shimmerAnimation = import_react_native2.Animated.loop(
|
|
190
|
+
import_react_native2.Animated.timing(shimmerValue, {
|
|
191
|
+
toValue: 1,
|
|
192
|
+
duration,
|
|
193
|
+
useNativeDriver: true
|
|
194
|
+
}),
|
|
195
|
+
{ iterations: -1 }
|
|
196
|
+
);
|
|
197
|
+
shimmerAnimation.start();
|
|
198
|
+
return () => shimmerAnimation.stop();
|
|
199
|
+
}, [shimmerValue, duration]);
|
|
200
|
+
const translateX = shimmerValue.interpolate({
|
|
201
|
+
inputRange: [0, 1],
|
|
202
|
+
outputRange: [-containerWidth, containerWidth]
|
|
203
|
+
});
|
|
204
|
+
const opacity = shimmerValue.interpolate({
|
|
205
|
+
inputRange: [0, 0.5, 1],
|
|
206
|
+
outputRange: [0.3, 0.8, 0.3]
|
|
207
|
+
});
|
|
208
|
+
const containerStyle = {
|
|
209
|
+
width: children ? void 0 : width,
|
|
210
|
+
height: children ? void 0 : height,
|
|
211
|
+
backgroundColor,
|
|
212
|
+
borderRadius,
|
|
213
|
+
overflow: "hidden",
|
|
214
|
+
alignSelf: children ? "flex-start" : void 0,
|
|
215
|
+
...style
|
|
216
|
+
};
|
|
217
|
+
const handleLayout = (event) => {
|
|
218
|
+
const { width: layoutWidth } = event.nativeEvent.layout;
|
|
219
|
+
setContainerWidth(layoutWidth);
|
|
220
|
+
};
|
|
221
|
+
if (children) {
|
|
222
|
+
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(
|
|
223
|
+
import_react_native2.Animated.View,
|
|
224
|
+
{
|
|
225
|
+
style: [
|
|
226
|
+
{
|
|
227
|
+
position: "absolute",
|
|
228
|
+
top: 0,
|
|
229
|
+
left: 0,
|
|
230
|
+
width: containerWidth * 0.7,
|
|
231
|
+
height: "100%",
|
|
232
|
+
backgroundColor: shimmerColor,
|
|
233
|
+
opacity,
|
|
234
|
+
transform: [{ translateX }]
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
));
|
|
239
|
+
}
|
|
240
|
+
return /* @__PURE__ */ import_react4.default.createElement(import_react_native2.View, { style: containerStyle, testID, onLayout: handleLayout }, /* @__PURE__ */ import_react4.default.createElement(
|
|
241
|
+
import_react_native2.Animated.View,
|
|
242
|
+
{
|
|
243
|
+
style: [
|
|
244
|
+
{
|
|
245
|
+
width: containerWidth * 0.7,
|
|
246
|
+
height: "100%",
|
|
247
|
+
backgroundColor: shimmerColor,
|
|
248
|
+
opacity,
|
|
249
|
+
transform: [{ translateX }]
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
));
|
|
254
|
+
};
|
|
255
|
+
var Skeleton_native_default = Skeleton;
|
|
256
|
+
|
|
257
|
+
// components/icon/Icon.native.tsx
|
|
172
258
|
var import_css = require("react-native-svg/css");
|
|
173
|
-
var Icon =
|
|
259
|
+
var Icon = import_react5.default.forwardRef(
|
|
174
260
|
({ size, name, circled, stretched, color, backgroundColor, onClick, align, skeleton, testId, ...others }, ref) => {
|
|
175
261
|
const {
|
|
176
262
|
theme: { icons }
|
|
177
|
-
} = (0,
|
|
178
|
-
const statesContext = (0,
|
|
263
|
+
} = (0, import_react5.useContext)(TrilogyThemeContext);
|
|
264
|
+
const statesContext = (0, import_react5.useContext)(StatesContext);
|
|
179
265
|
const style = {};
|
|
180
266
|
const defaultSize = size === "huge" /* HUGE */ && 66 || size === "large" /* LARGE */ && 44 || size === "medium" /* MEDIUM */ && 30 || size === "small" /* SMALL */ && 20 || size === "smaller" /* SMALLER */ && 16 || 20;
|
|
181
267
|
const iconColor = color && getColorStyle(color) || statesContext.inverted && getColorStyle("WHITE" /* BACKGROUND */) || getColorStyle("MAIN" /* MAIN */);
|
|
182
268
|
const background = backgroundColor && getColorStyle(backgroundColor) || circled && getColorStyle("MAIN" /* MAIN */) || "";
|
|
183
269
|
const iconSkeletonRadius = size === "huge" /* HUGE */ && 50 || size === "large" /* LARGE */ && 35 || size === "medium" /* MEDIUM */ && 25 || size === "small" /* SMALL */ && 15 || size === "smaller" /* SMALLER */ && 10 || 15;
|
|
184
270
|
const circledWidth = size === "huge" /* HUGE */ && 99 || size === "large" /* LARGE */ && 66 || size === "medium" /* MEDIUM */ && 48 || size === "small" /* SMALL */ && 32 || size === "smaller" /* SMALLER */ && 38 || 32;
|
|
185
|
-
const styles4 =
|
|
271
|
+
const styles4 = import_react_native3.StyleSheet.create({
|
|
186
272
|
rootView: {
|
|
187
273
|
alignSelf: getAlignStyle(align)
|
|
188
274
|
},
|
|
@@ -225,14 +311,23 @@ var Icon = import_react4.default.forwardRef(
|
|
|
225
311
|
justifyContent: "center"
|
|
226
312
|
}
|
|
227
313
|
});
|
|
228
|
-
const IconSkeleton = () => /* @__PURE__ */
|
|
314
|
+
const IconSkeleton = () => /* @__PURE__ */ import_react5.default.createElement(
|
|
315
|
+
Skeleton_native_default,
|
|
316
|
+
{
|
|
317
|
+
style: styles4.skeleton,
|
|
318
|
+
width: circledWidth,
|
|
319
|
+
height: circledWidth,
|
|
320
|
+
borderRadius: iconSkeletonRadius,
|
|
321
|
+
testID: "skeleton-id"
|
|
322
|
+
}
|
|
323
|
+
);
|
|
229
324
|
if (skeleton) {
|
|
230
|
-
return /* @__PURE__ */
|
|
325
|
+
return /* @__PURE__ */ import_react5.default.createElement(IconSkeleton, null);
|
|
231
326
|
}
|
|
232
|
-
let iconView = /* @__PURE__ */
|
|
327
|
+
let iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, null);
|
|
233
328
|
if (name && icons) {
|
|
234
329
|
if (stretched && !circled) {
|
|
235
|
-
iconView = /* @__PURE__ */
|
|
330
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles4.stretched, testID: `${testId}-stretched` }, /* @__PURE__ */ import_react5.default.createElement(
|
|
236
331
|
import_css.WithLocalSvg,
|
|
237
332
|
{
|
|
238
333
|
style: [styles4.iconCircled, styles4.icon],
|
|
@@ -243,7 +338,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
243
338
|
}
|
|
244
339
|
));
|
|
245
340
|
} else if (circled) {
|
|
246
|
-
iconView = /* @__PURE__ */
|
|
341
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles4.circled, testID: `${testId}-circled` }, /* @__PURE__ */ import_react5.default.createElement(
|
|
247
342
|
import_css.WithLocalSvg,
|
|
248
343
|
{
|
|
249
344
|
style: [styles4.iconCircled, styles4.icon],
|
|
@@ -254,7 +349,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
254
349
|
}
|
|
255
350
|
));
|
|
256
351
|
} else {
|
|
257
|
-
iconView = /* @__PURE__ */
|
|
352
|
+
iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles4.iconContainer, ...others }, /* @__PURE__ */ import_react5.default.createElement(
|
|
258
353
|
import_css.WithLocalSvg,
|
|
259
354
|
{
|
|
260
355
|
style: [styles4.icon, style],
|
|
@@ -266,8 +361,8 @@ var Icon = import_react4.default.forwardRef(
|
|
|
266
361
|
));
|
|
267
362
|
}
|
|
268
363
|
}
|
|
269
|
-
return onClick ? /* @__PURE__ */
|
|
270
|
-
|
|
364
|
+
return onClick ? /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles4.rootView, testID: testId, ref }, /* @__PURE__ */ import_react5.default.createElement(
|
|
365
|
+
import_react_native3.TouchableOpacity,
|
|
271
366
|
{
|
|
272
367
|
style: { width: "100%" },
|
|
273
368
|
onPress: onClick,
|
|
@@ -275,7 +370,7 @@ var Icon = import_react4.default.forwardRef(
|
|
|
275
370
|
testID: `${testId}-pressable`
|
|
276
371
|
},
|
|
277
372
|
iconView
|
|
278
|
-
)) : /* @__PURE__ */
|
|
373
|
+
)) : /* @__PURE__ */ import_react5.default.createElement(import_react_native3.View, { style: styles4.rootView, testID: testId, ref }, iconView);
|
|
279
374
|
}
|
|
280
375
|
);
|
|
281
376
|
Icon.displayName = "Icon" /* Icon */;
|
|
@@ -287,10 +382,10 @@ var setTypographyAlign = (typo = "left") => {
|
|
|
287
382
|
};
|
|
288
383
|
|
|
289
384
|
// objects/Typography/TypographyBold/index.native.tsx
|
|
290
|
-
var
|
|
385
|
+
var import_react6 = require("react");
|
|
291
386
|
var getTypographyBoldStyle = (typo) => {
|
|
292
387
|
var _a, _b, _c, _d;
|
|
293
|
-
const { theme } = (0,
|
|
388
|
+
const { theme } = (0, import_react6.useContext)(TrilogyThemeContext);
|
|
294
389
|
const currentTypo = Array.isArray(typo) ? typo : [typo];
|
|
295
390
|
switch (true) {
|
|
296
391
|
case (typo && currentTypo.includes("has-text-weight-medium" /* TEXT_WEIGHT_MEDIUM */)):
|
|
@@ -310,64 +405,63 @@ var setTypographyColor = (typo = "", inverted = false, loading = false) => {
|
|
|
310
405
|
};
|
|
311
406
|
|
|
312
407
|
// components/text/Text.native.tsx
|
|
313
|
-
var
|
|
314
|
-
var
|
|
315
|
-
var
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
408
|
+
var import_react7 = __toESM(require("react"));
|
|
409
|
+
var import_react_native4 = require("react-native");
|
|
410
|
+
var Text = import_react7.default.forwardRef(
|
|
411
|
+
({ children, level, style, inverted, typo, skeleton, accessibilityLabel, numberOfLines = 0, ...others }, ref) => {
|
|
412
|
+
const statesContext = (0, import_react7.useContext)(StatesContext);
|
|
413
|
+
const textLevels = (level2) => {
|
|
414
|
+
return level2 && level2 == 1 /* ONE */ && 16 || level2 && level2 == 2 /* TWO */ && 14 || level2 && level2 == 3 /* THREE */ && 12 || level2 && level2 == 4 /* FOUR */ && 10 || 14;
|
|
415
|
+
};
|
|
416
|
+
const styles4 = import_react_native4.StyleSheet.create({
|
|
417
|
+
text: {
|
|
418
|
+
fontFamily: getTypographyBoldStyle(typo),
|
|
419
|
+
fontSize: textLevels(level),
|
|
420
|
+
color: setTypographyColor(typo, inverted || statesContext.inverted, skeleton),
|
|
421
|
+
textAlign: setTypographyAlign(typo),
|
|
422
|
+
lineHeight: textLevels(level) * 1.2,
|
|
423
|
+
textDecorationLine: "none",
|
|
424
|
+
alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start"
|
|
425
|
+
},
|
|
426
|
+
skeleton: {
|
|
427
|
+
minWidth: 10,
|
|
428
|
+
alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start",
|
|
429
|
+
borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3,
|
|
430
|
+
borderWidth: 0.1,
|
|
431
|
+
borderColor: getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */),
|
|
432
|
+
overflow: "hidden",
|
|
433
|
+
height: textLevels(level)
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
const textAccessibilityLabel = accessibilityLabel ? accessibilityLabel : typeof children === "string" ? children : void 0;
|
|
437
|
+
let textView = /* @__PURE__ */ import_react7.default.createElement(
|
|
438
|
+
import_react_native4.Text,
|
|
439
|
+
{
|
|
440
|
+
ref,
|
|
441
|
+
numberOfLines,
|
|
442
|
+
ellipsizeMode: "tail",
|
|
443
|
+
maxFontSizeMultiplier: 1.3,
|
|
444
|
+
accessible: !!textAccessibilityLabel,
|
|
445
|
+
accessibilityLabel: textAccessibilityLabel,
|
|
446
|
+
style: [styles4.text, style],
|
|
447
|
+
...others
|
|
448
|
+
},
|
|
449
|
+
children
|
|
450
|
+
);
|
|
451
|
+
if (skeleton) {
|
|
452
|
+
textView = /* @__PURE__ */ import_react7.default.createElement(
|
|
453
|
+
Skeleton_native_default,
|
|
454
|
+
{
|
|
455
|
+
style: styles4.skeleton,
|
|
456
|
+
height: textLevels(level),
|
|
457
|
+
borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3
|
|
458
|
+
},
|
|
459
|
+
textView
|
|
460
|
+
);
|
|
349
461
|
}
|
|
350
|
-
|
|
351
|
-
const textAccessibilityLabel = accessibilityLabel ? accessibilityLabel : typeof children === "string" ? children : void 0;
|
|
352
|
-
let textView = /* @__PURE__ */ import_react6.default.createElement(
|
|
353
|
-
import_react_native3.Text,
|
|
354
|
-
{
|
|
355
|
-
ref,
|
|
356
|
-
numberOfLines,
|
|
357
|
-
ellipsizeMode: "tail",
|
|
358
|
-
maxFontSizeMultiplier: 1.3,
|
|
359
|
-
accessible: !!textAccessibilityLabel,
|
|
360
|
-
accessibilityLabel: textAccessibilityLabel,
|
|
361
|
-
style: [styles4.text, style],
|
|
362
|
-
...others
|
|
363
|
-
},
|
|
364
|
-
children
|
|
365
|
-
);
|
|
366
|
-
if (skeleton) {
|
|
367
|
-
textView = /* @__PURE__ */ import_react6.default.createElement(import_native2.default, { style: styles4.skeleton }, textView, isAndroid && /* @__PURE__ */ import_react6.default.createElement(import_react_native3.View, null, /* @__PURE__ */ import_react6.default.createElement(import_native2.Rect, { rx: "7", ry: "7", width: "100%", height: "100%" })));
|
|
462
|
+
return textView;
|
|
368
463
|
}
|
|
369
|
-
|
|
370
|
-
});
|
|
464
|
+
);
|
|
371
465
|
Text.displayName = "Text" /* Text */;
|
|
372
466
|
var Text_native_default = Text;
|
|
373
467
|
|
|
@@ -381,20 +475,20 @@ var STATUS_COLORS = {
|
|
|
381
475
|
};
|
|
382
476
|
|
|
383
477
|
// components/input/Input.native.tsx
|
|
384
|
-
var
|
|
385
|
-
var
|
|
478
|
+
var import_react10 = __toESM(require("react"));
|
|
479
|
+
var import_react_native7 = require("react-native");
|
|
386
480
|
|
|
387
481
|
// components/spacer/Spacer.native.tsx
|
|
388
|
-
var
|
|
389
|
-
var
|
|
390
|
-
var Spacer =
|
|
391
|
-
const styles4 =
|
|
482
|
+
var React5 = __toESM(require("react"));
|
|
483
|
+
var import_react_native5 = require("react-native");
|
|
484
|
+
var Spacer = React5.forwardRef(({ size, horizontal }, ref) => {
|
|
485
|
+
const styles4 = import_react_native5.StyleSheet.create({
|
|
392
486
|
spacer: {
|
|
393
487
|
marginLeft: horizontal && parseInt(size.toString()) || 0,
|
|
394
488
|
marginTop: !horizontal && parseInt(size.toString()) || 0
|
|
395
489
|
}
|
|
396
490
|
});
|
|
397
|
-
return /* @__PURE__ */
|
|
491
|
+
return /* @__PURE__ */ React5.createElement(import_react_native5.View, { ref, style: styles4.spacer });
|
|
398
492
|
});
|
|
399
493
|
Spacer.displayName = "Spacer" /* Spacer */;
|
|
400
494
|
var Spacer_native_default = Spacer;
|
|
@@ -417,25 +511,25 @@ var SpacerSize = /* @__PURE__ */ ((SpacerSize2) => {
|
|
|
417
511
|
var SpacerSizeValues = `${SpacerSize}`;
|
|
418
512
|
|
|
419
513
|
// components/input/gauge/InputGauge.native.tsx
|
|
420
|
-
var
|
|
421
|
-
var
|
|
514
|
+
var import_react9 = __toESM(require("react"));
|
|
515
|
+
var import_react_native6 = require("react-native");
|
|
422
516
|
|
|
423
517
|
// components/input/gauge/hook/useGauge.native.tsx
|
|
424
|
-
var
|
|
518
|
+
var import_react8 = __toESM(require("react"));
|
|
425
519
|
var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
426
520
|
var _a, _b;
|
|
427
|
-
const [points, setPoints] =
|
|
521
|
+
const [points, setPoints] = import_react8.default.useState(0);
|
|
428
522
|
const initStateVerifies = { isVerify: false, color: "NEUTRAL" /* NEUTRAL */ };
|
|
429
|
-
const [isLengthVerify, setIsLengthVerify] =
|
|
430
|
-
const [isSpecialCharsVerify, setIsSpecialCharsVerify] =
|
|
431
|
-
const [isNumberVerify, setIsNumberVerify] =
|
|
432
|
-
const [isUppercaseVerify, setIsUppercaseVerify] =
|
|
433
|
-
const [isLowerercaseVerify, setisLowerercaseVerify] =
|
|
434
|
-
const nbAllVerifies =
|
|
523
|
+
const [isLengthVerify, setIsLengthVerify] = import_react8.default.useState(initStateVerifies);
|
|
524
|
+
const [isSpecialCharsVerify, setIsSpecialCharsVerify] = import_react8.default.useState(initStateVerifies);
|
|
525
|
+
const [isNumberVerify, setIsNumberVerify] = import_react8.default.useState(initStateVerifies);
|
|
526
|
+
const [isUppercaseVerify, setIsUppercaseVerify] = import_react8.default.useState(initStateVerifies);
|
|
527
|
+
const [isLowerercaseVerify, setisLowerercaseVerify] = import_react8.default.useState(initStateVerifies);
|
|
528
|
+
const nbAllVerifies = import_react8.default.useMemo(
|
|
435
529
|
() => validationRules && Object.values(validationRules).filter((rule) => rule).length || securityRules && securityRules.length || 0,
|
|
436
530
|
[validationRules, securityRules]
|
|
437
531
|
);
|
|
438
|
-
const rules =
|
|
532
|
+
const rules = import_react8.default.useMemo(
|
|
439
533
|
() => securityRules && securityRules.map(({ label, patternValidator, dataAttribute }) => ({
|
|
440
534
|
label,
|
|
441
535
|
validate: !!(patternValidator == null ? void 0 : patternValidator.test(inputValue)),
|
|
@@ -443,7 +537,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
443
537
|
})),
|
|
444
538
|
[inputValue, securityRules]
|
|
445
539
|
);
|
|
446
|
-
const calcPoints =
|
|
540
|
+
const calcPoints = import_react8.default.useMemo(() => {
|
|
447
541
|
if (validationRules) {
|
|
448
542
|
return Number((points / nbAllVerifies * 100).toFixed(0));
|
|
449
543
|
}
|
|
@@ -453,7 +547,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
453
547
|
}
|
|
454
548
|
return 0;
|
|
455
549
|
}, [points, nbAllVerifies, rules, validationRules, securityRules]);
|
|
456
|
-
const widthGauge =
|
|
550
|
+
const widthGauge = import_react8.default.useMemo(() => {
|
|
457
551
|
if (calcPoints <= 50 && calcPoints > 0) return "50%";
|
|
458
552
|
if (calcPoints <= 99 && calcPoints > 50) return "75%";
|
|
459
553
|
if (calcPoints === 100) return "100%";
|
|
@@ -465,7 +559,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
465
559
|
if (calcPoints === 100) return getColorStyle("SUCCESS" /* SUCCESS */);
|
|
466
560
|
return getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */);
|
|
467
561
|
};
|
|
468
|
-
const LengthvalidationRulesText = (0,
|
|
562
|
+
const LengthvalidationRulesText = (0, import_react8.useMemo)(() => {
|
|
469
563
|
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
470
564
|
switch (true) {
|
|
471
565
|
case (((_a2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a2.min) !== void 0 && ((_b2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b2.max) !== void 0):
|
|
@@ -478,7 +572,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
478
572
|
return "";
|
|
479
573
|
}
|
|
480
574
|
}, [(_a = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a.min, (_b = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b.max]);
|
|
481
|
-
(0,
|
|
575
|
+
(0, import_react8.useEffect)(() => {
|
|
482
576
|
var _a2, _b2;
|
|
483
577
|
const min = ((_a2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a2.min) || 0;
|
|
484
578
|
const max = ((_b2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b2.max) || "";
|
|
@@ -510,7 +604,7 @@ var useGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
510
604
|
|
|
511
605
|
// components/input/gauge/InputGauge.native.tsx
|
|
512
606
|
var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
513
|
-
const id = (0,
|
|
607
|
+
const id = (0, import_react9.useId)();
|
|
514
608
|
const {
|
|
515
609
|
widthGauge,
|
|
516
610
|
colorGauge,
|
|
@@ -522,7 +616,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
522
616
|
isUppercaseVerify,
|
|
523
617
|
rules
|
|
524
618
|
} = useGauge({ validationRules, inputValue, securityRules });
|
|
525
|
-
return /* @__PURE__ */
|
|
619
|
+
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(
|
|
526
620
|
DataVerify,
|
|
527
621
|
{
|
|
528
622
|
display: !!(validationRules == null ? void 0 : validationRules.length),
|
|
@@ -531,7 +625,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
531
625
|
type: LengthvalidationRulesText,
|
|
532
626
|
index: 1
|
|
533
627
|
}
|
|
534
|
-
), /* @__PURE__ */
|
|
628
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
535
629
|
DataVerify,
|
|
536
630
|
{
|
|
537
631
|
display: !!(validationRules == null ? void 0 : validationRules.uppercase),
|
|
@@ -540,7 +634,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
540
634
|
type: "Majuscule",
|
|
541
635
|
index: 2
|
|
542
636
|
}
|
|
543
|
-
), /* @__PURE__ */
|
|
637
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
544
638
|
DataVerify,
|
|
545
639
|
{
|
|
546
640
|
display: !!(validationRules == null ? void 0 : validationRules.specialChars),
|
|
@@ -549,7 +643,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
549
643
|
type: "Caract\xE8res sp\xE9ciaux",
|
|
550
644
|
index: 3
|
|
551
645
|
}
|
|
552
|
-
), /* @__PURE__ */
|
|
646
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
553
647
|
DataVerify,
|
|
554
648
|
{
|
|
555
649
|
display: !!(validationRules == null ? void 0 : validationRules.lowercase),
|
|
@@ -558,7 +652,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
558
652
|
type: "Minuscule",
|
|
559
653
|
index: 4
|
|
560
654
|
}
|
|
561
|
-
), /* @__PURE__ */
|
|
655
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
562
656
|
DataVerify,
|
|
563
657
|
{
|
|
564
658
|
display: !!(validationRules == null ? void 0 : validationRules.number),
|
|
@@ -567,7 +661,7 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
567
661
|
type: "Chiffre",
|
|
568
662
|
index: 5
|
|
569
663
|
}
|
|
570
|
-
)), securityRules && rules && rules.map((rule, index) => /* @__PURE__ */
|
|
664
|
+
)), securityRules && rules && rules.map((rule, index) => /* @__PURE__ */ import_react9.default.createElement(
|
|
571
665
|
DataVerify,
|
|
572
666
|
{
|
|
573
667
|
index: index + 1,
|
|
@@ -581,10 +675,10 @@ var InputGauge = ({ validationRules, inputValue, securityRules }) => {
|
|
|
581
675
|
};
|
|
582
676
|
var DataVerify = ({ color, iconName, display, type, index }) => {
|
|
583
677
|
if (!display) return null;
|
|
584
|
-
return /* @__PURE__ */
|
|
678
|
+
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));
|
|
585
679
|
};
|
|
586
680
|
var InputGauge_native_default = InputGauge;
|
|
587
|
-
var styles =
|
|
681
|
+
var styles = import_react_native6.StyleSheet.create({
|
|
588
682
|
even: {
|
|
589
683
|
justifyContent: "flex-end"
|
|
590
684
|
},
|
|
@@ -617,7 +711,7 @@ var styles = import_react_native5.StyleSheet.create({
|
|
|
617
711
|
});
|
|
618
712
|
|
|
619
713
|
// components/input/Input.native.tsx
|
|
620
|
-
var Input =
|
|
714
|
+
var Input = import_react10.default.forwardRef(
|
|
621
715
|
({
|
|
622
716
|
defaultValue,
|
|
623
717
|
name,
|
|
@@ -661,14 +755,14 @@ var Input = import_react9.default.forwardRef(
|
|
|
661
755
|
inputIcon.set("success" /* SUCCESS */, "tri-check-circle" /* CHECK_CIRCLE */);
|
|
662
756
|
inputIcon.set("warning" /* WARNING */, "tri-exclamation-circle" /* EXCLAMATION_CIRCLE */);
|
|
663
757
|
inputIcon.set("error" /* ERROR */, "tri-exclamation-circle" /* EXCLAMATION_CIRCLE */);
|
|
664
|
-
const [value, setValue] = (0,
|
|
665
|
-
const [email, setEmail] = (0,
|
|
666
|
-
const [isFocused, setIsFocused] = (0,
|
|
667
|
-
const [iconPassword, setIconPassword] = (0,
|
|
668
|
-
const [dynamicPlaceholder, setDynamicPlaceholder] = (0,
|
|
669
|
-
const [isKeyboardVisible, setKeyboardVisible] = (0,
|
|
670
|
-
const animation = (0,
|
|
671
|
-
const sizeAnimation = (0,
|
|
758
|
+
const [value, setValue] = (0, import_react10.useState)(defaultValue || "");
|
|
759
|
+
const [email, setEmail] = (0, import_react10.useState)("");
|
|
760
|
+
const [isFocused, setIsFocused] = (0, import_react10.useState)(false);
|
|
761
|
+
const [iconPassword, setIconPassword] = (0, import_react10.useState)("tri-eye" /* EYE */);
|
|
762
|
+
const [dynamicPlaceholder, setDynamicPlaceholder] = (0, import_react10.useState)(false);
|
|
763
|
+
const [isKeyboardVisible, setKeyboardVisible] = (0, import_react10.useState)(null);
|
|
764
|
+
const animation = (0, import_react10.useRef)(new import_react_native7.Animated.Value(25)).current;
|
|
765
|
+
const sizeAnimation = (0, import_react10.useRef)(new import_react_native7.Animated.Value(placeholderDefaultSize)).current;
|
|
672
766
|
const paddingTopByPlatform = (os, dynamicPlaceholder2) => {
|
|
673
767
|
if (dynamicPlaceholder2 && type !== "search" /* SEARCH */ && os === "ios") {
|
|
674
768
|
return 10;
|
|
@@ -678,7 +772,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
678
772
|
}
|
|
679
773
|
return 0;
|
|
680
774
|
};
|
|
681
|
-
const handleChange = (0,
|
|
775
|
+
const handleChange = (0, import_react10.useCallback)((text) => {
|
|
682
776
|
var _a;
|
|
683
777
|
setValue(text);
|
|
684
778
|
setEmail("");
|
|
@@ -700,58 +794,58 @@ var Input = import_react9.default.forwardRef(
|
|
|
700
794
|
onSubmit == null ? void 0 : onSubmit(e);
|
|
701
795
|
type === "email" /* EMAIL */ && handleClick();
|
|
702
796
|
};
|
|
703
|
-
(0,
|
|
797
|
+
(0, import_react10.useEffect)(() => {
|
|
704
798
|
setValue(defaultValue || "");
|
|
705
799
|
}, [defaultValue, placeholder]);
|
|
706
|
-
(0,
|
|
800
|
+
(0, import_react10.useEffect)(() => {
|
|
707
801
|
if (value && value.length > 0 && placeholder && placeholder.length > 0) {
|
|
708
802
|
setDynamicPlaceholder(true);
|
|
709
803
|
} else {
|
|
710
804
|
setDynamicPlaceholder(false);
|
|
711
805
|
}
|
|
712
806
|
}, [placeholder, value]);
|
|
713
|
-
(0,
|
|
807
|
+
(0, import_react10.useEffect)(() => {
|
|
714
808
|
if (dynamicPlaceholder && type !== "search" /* SEARCH */) {
|
|
715
|
-
|
|
809
|
+
import_react_native7.Animated.timing(animation, {
|
|
716
810
|
toValue: 3,
|
|
717
811
|
duration: animationDuration,
|
|
718
812
|
useNativeDriver: false
|
|
719
813
|
}).start();
|
|
720
|
-
|
|
814
|
+
import_react_native7.Animated.timing(sizeAnimation, {
|
|
721
815
|
toValue: 12,
|
|
722
816
|
duration: animationDuration,
|
|
723
817
|
useNativeDriver: false
|
|
724
818
|
}).start();
|
|
725
819
|
} else {
|
|
726
|
-
|
|
820
|
+
import_react_native7.Animated.timing(animation, {
|
|
727
821
|
toValue: 25,
|
|
728
822
|
duration: animationDuration,
|
|
729
823
|
useNativeDriver: false
|
|
730
824
|
}).start();
|
|
731
|
-
|
|
825
|
+
import_react_native7.Animated.timing(sizeAnimation, {
|
|
732
826
|
toValue: placeholderDefaultSize,
|
|
733
827
|
duration: animationDuration,
|
|
734
828
|
useNativeDriver: false
|
|
735
829
|
}).start();
|
|
736
830
|
}
|
|
737
831
|
}, [dynamicPlaceholder, animation, sizeAnimation]);
|
|
738
|
-
(0,
|
|
739
|
-
const keyboardDidShowListener =
|
|
740
|
-
const keyboardDidHideListener =
|
|
832
|
+
(0, import_react10.useEffect)(() => {
|
|
833
|
+
const keyboardDidShowListener = import_react_native7.Keyboard.addListener("keyboardDidShow", () => setKeyboardVisible(true));
|
|
834
|
+
const keyboardDidHideListener = import_react_native7.Keyboard.addListener("keyboardDidHide", () => setKeyboardVisible(false));
|
|
741
835
|
return () => {
|
|
742
836
|
keyboardDidHideListener.remove();
|
|
743
837
|
keyboardDidShowListener.remove();
|
|
744
838
|
};
|
|
745
839
|
}, []);
|
|
746
|
-
(0,
|
|
840
|
+
(0, import_react10.useEffect)(() => {
|
|
747
841
|
handleClick();
|
|
748
842
|
}, [isKeyboardVisible]);
|
|
749
843
|
const hasIcon = iconNameLeft || iconNameRight || false;
|
|
750
|
-
const styles4 =
|
|
844
|
+
const styles4 = import_react_native7.StyleSheet.create({
|
|
751
845
|
input: {
|
|
752
846
|
paddingLeft: (iconNameLeft && isFocused || type === "search" /* SEARCH */ && isFocused) && 39 || (iconNameLeft || type === "search" /* SEARCH */) && 40 || !iconNameLeft && type !== "search" /* SEARCH */ && isFocused && 9 || 10,
|
|
753
847
|
paddingRight: (iconNameRight || type === "search" /* SEARCH */) && 32 || 0,
|
|
754
|
-
marginTop: paddingTopByPlatform(
|
|
848
|
+
marginTop: paddingTopByPlatform(import_react_native7.Platform.OS, dynamicPlaceholder),
|
|
755
849
|
width: hasIcon && status ? "85%" : "95%",
|
|
756
850
|
height: 46,
|
|
757
851
|
color: disabled ? getColorStyle("DISABLED" /* DISABLED */) : inputColor
|
|
@@ -826,18 +920,18 @@ var Input = import_react9.default.forwardRef(
|
|
|
826
920
|
marginBottom: isIOS ? 0 : -3
|
|
827
921
|
}
|
|
828
922
|
});
|
|
829
|
-
return /* @__PURE__ */
|
|
830
|
-
|
|
923
|
+
return /* @__PURE__ */ import_react10.default.createElement(
|
|
924
|
+
import_react_native7.View,
|
|
831
925
|
{
|
|
832
926
|
style: { width: "100%" },
|
|
833
927
|
accessible: !!inputAccessibilityLabel,
|
|
834
928
|
accessibilityLabel: inputAccessibilityLabel,
|
|
835
929
|
testID: inputTestId
|
|
836
930
|
},
|
|
837
|
-
!dynamicPlaceholder && label && /* @__PURE__ */
|
|
838
|
-
!dynamicPlaceholder && label && sample && /* @__PURE__ */
|
|
839
|
-
/* @__PURE__ */
|
|
840
|
-
|
|
931
|
+
!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 */ })),
|
|
932
|
+
!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 */ })),
|
|
933
|
+
/* @__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(
|
|
934
|
+
import_react_native7.TextInput,
|
|
841
935
|
{
|
|
842
936
|
ref,
|
|
843
937
|
testID: "input-id",
|
|
@@ -878,7 +972,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
878
972
|
style: styles4.input,
|
|
879
973
|
...others
|
|
880
974
|
}
|
|
881
|
-
), type === "email" && /* @__PURE__ */
|
|
975
|
+
), 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(
|
|
882
976
|
Icon_native_default,
|
|
883
977
|
{
|
|
884
978
|
align: "ALIGNED_START" /* ALIGNED_START */,
|
|
@@ -886,8 +980,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
886
980
|
size: "small" /* SMALL */,
|
|
887
981
|
color: status && status === "success" && "SUCCESS" /* SUCCESS */ || status && status === "warning" && "WARNING" /* WARNING */ || status && status === "error" && "ERROR" /* ERROR */ || disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
888
982
|
}
|
|
889
|
-
)), hasIcon && type !== "search" /* SEARCH */ && status && status !== "default" /* DEFAULT */ && type !== "password" /* PASSWORD */ && /* @__PURE__ */
|
|
890
|
-
|
|
983
|
+
)), hasIcon && type !== "search" /* SEARCH */ && status && status !== "default" /* DEFAULT */ && type !== "password" /* PASSWORD */ && /* @__PURE__ */ import_react10.default.createElement(
|
|
984
|
+
import_react_native7.TouchableOpacity,
|
|
891
985
|
{
|
|
892
986
|
style: styles4.inputContainer,
|
|
893
987
|
activeOpacity: onIconClick ? 0.2 : 1,
|
|
@@ -899,7 +993,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
899
993
|
});
|
|
900
994
|
}
|
|
901
995
|
},
|
|
902
|
-
/* @__PURE__ */
|
|
996
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
903
997
|
Icon_native_default,
|
|
904
998
|
{
|
|
905
999
|
testId: "icon-status-id",
|
|
@@ -909,8 +1003,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
909
1003
|
color: status && status === "success" && "SUCCESS" /* SUCCESS */ || status && status === "warning" && "WARNING" /* WARNING */ || status && status === "error" && "ERROR" /* ERROR */ || status && "MAIN" /* MAIN */ || disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
910
1004
|
}
|
|
911
1005
|
)
|
|
912
|
-
), iconNameRight && !iconNameLeft && type !== "search" /* SEARCH */ && type !== "password" /* PASSWORD */ && (!status || status === "default" /* DEFAULT */) && /* @__PURE__ */
|
|
913
|
-
|
|
1006
|
+
), iconNameRight && !iconNameLeft && type !== "search" /* SEARCH */ && type !== "password" /* PASSWORD */ && (!status || status === "default" /* DEFAULT */) && /* @__PURE__ */ import_react10.default.createElement(
|
|
1007
|
+
import_react_native7.TouchableOpacity,
|
|
914
1008
|
{
|
|
915
1009
|
style: styles4.inputContainerRight,
|
|
916
1010
|
activeOpacity: onIconClick ? 0.2 : 1,
|
|
@@ -922,7 +1016,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
922
1016
|
});
|
|
923
1017
|
}
|
|
924
1018
|
},
|
|
925
|
-
/* @__PURE__ */
|
|
1019
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
926
1020
|
Icon_native_default,
|
|
927
1021
|
{
|
|
928
1022
|
testId: "icon-right-id",
|
|
@@ -932,8 +1026,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
932
1026
|
color: disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
933
1027
|
}
|
|
934
1028
|
)
|
|
935
|
-
), type === "password" /* PASSWORD */ && /* @__PURE__ */
|
|
936
|
-
|
|
1029
|
+
), 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(
|
|
1030
|
+
import_react_native7.TouchableOpacity,
|
|
937
1031
|
{
|
|
938
1032
|
style: styles4.inputContainerRight,
|
|
939
1033
|
onPress: () => {
|
|
@@ -948,7 +1042,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
948
1042
|
}
|
|
949
1043
|
}
|
|
950
1044
|
},
|
|
951
|
-
/* @__PURE__ */
|
|
1045
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
952
1046
|
Icon_native_default,
|
|
953
1047
|
{
|
|
954
1048
|
testId: "password-id",
|
|
@@ -958,7 +1052,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
958
1052
|
color: status && status === "success" && "SUCCESS" /* SUCCESS */ || status && status === "warning" && "WARNING" /* WARNING */ || status && status === "error" && "ERROR" /* ERROR */ || status && status === "default" && "MAIN" /* MAIN */ || disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
959
1053
|
}
|
|
960
1054
|
)
|
|
961
|
-
)), type === "search" /* SEARCH */ && !status && /* @__PURE__ */
|
|
1055
|
+
)), 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(
|
|
962
1056
|
Icon_native_default,
|
|
963
1057
|
{
|
|
964
1058
|
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
@@ -966,8 +1060,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
966
1060
|
size: "small" /* SMALL */,
|
|
967
1061
|
color: disabled ? "DISABLED" /* DISABLED */ : "NEUTRAL" /* NEUTRAL */
|
|
968
1062
|
}
|
|
969
|
-
)), value.length > 0 && /* @__PURE__ */
|
|
970
|
-
|
|
1063
|
+
)), value.length > 0 && /* @__PURE__ */ import_react10.default.createElement(
|
|
1064
|
+
import_react_native7.TouchableOpacity,
|
|
971
1065
|
{
|
|
972
1066
|
testID: "search-id",
|
|
973
1067
|
style: styles4.inputContainerRight,
|
|
@@ -984,7 +1078,7 @@ var Input = import_react9.default.forwardRef(
|
|
|
984
1078
|
setValue("");
|
|
985
1079
|
}
|
|
986
1080
|
},
|
|
987
|
-
/* @__PURE__ */
|
|
1081
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
988
1082
|
Icon_native_default,
|
|
989
1083
|
{
|
|
990
1084
|
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
@@ -994,8 +1088,8 @@ var Input = import_react9.default.forwardRef(
|
|
|
994
1088
|
}
|
|
995
1089
|
)
|
|
996
1090
|
))),
|
|
997
|
-
help && /* @__PURE__ */
|
|
998
|
-
type === "password" /* PASSWORD */ && securityGauge && /* @__PURE__ */
|
|
1091
|
+
help && /* @__PURE__ */ import_react10.default.createElement(Text_native_default, { testId: "help-id", style: styles4.help }, help),
|
|
1092
|
+
type === "password" /* PASSWORD */ && securityGauge && /* @__PURE__ */ import_react10.default.createElement(InputGauge_native_default, { securityRules, validationRules, inputValue: value })
|
|
999
1093
|
);
|
|
1000
1094
|
}
|
|
1001
1095
|
);
|
|
@@ -1003,27 +1097,27 @@ Input.displayName = "Input" /* Input */;
|
|
|
1003
1097
|
var Input_native_default = Input;
|
|
1004
1098
|
|
|
1005
1099
|
// components/modal/Modal.native.tsx
|
|
1006
|
-
var
|
|
1007
|
-
var
|
|
1100
|
+
var import_react16 = __toESM(require("react"));
|
|
1101
|
+
var import_react_native11 = require("react-native");
|
|
1008
1102
|
var import_react_native_modal = __toESM(require("react-native-modal"));
|
|
1009
1103
|
|
|
1010
1104
|
// components/columns/ColumnsTypes.ts
|
|
1011
1105
|
var ColumnsGapValue = [0, 4, 8, 12, 16, 24, 32, 40, 48, 54, 62];
|
|
1012
1106
|
|
|
1013
1107
|
// components/columns/context/index.tsx
|
|
1014
|
-
var
|
|
1108
|
+
var import_react11 = __toESM(require("react"));
|
|
1015
1109
|
var defaultContextValue2 = {
|
|
1016
1110
|
scrollable: false,
|
|
1017
1111
|
width: 0,
|
|
1018
1112
|
realGap: 16,
|
|
1019
1113
|
childrensLength: 1
|
|
1020
1114
|
};
|
|
1021
|
-
var ColumnsContext =
|
|
1115
|
+
var ColumnsContext = import_react11.default.createContext(defaultContextValue2);
|
|
1022
1116
|
|
|
1023
1117
|
// components/columns/Columns.native.tsx
|
|
1024
|
-
var
|
|
1025
|
-
var
|
|
1026
|
-
var staticStyles =
|
|
1118
|
+
var import_react12 = __toESM(require("react"));
|
|
1119
|
+
var import_react_native8 = require("react-native");
|
|
1120
|
+
var staticStyles = import_react_native8.StyleSheet.create({
|
|
1027
1121
|
centered: {
|
|
1028
1122
|
justifyContent: "center"
|
|
1029
1123
|
},
|
|
@@ -1034,24 +1128,24 @@ var staticStyles = import_react_native7.StyleSheet.create({
|
|
|
1034
1128
|
flexDirection: "column"
|
|
1035
1129
|
}
|
|
1036
1130
|
});
|
|
1037
|
-
var Columns =
|
|
1131
|
+
var Columns = import_react12.default.forwardRef(
|
|
1038
1132
|
({ children, align, gap, verticalAlign, fullBleed, scrollable, multiline, fullheight, ...others }, ref) => {
|
|
1039
|
-
const [width, setWidth] = (0,
|
|
1040
|
-
const [enlarge, setEnlarge] = (0,
|
|
1041
|
-
const onLayoutHandler =
|
|
1133
|
+
const [width, setWidth] = (0, import_react12.useState)(0);
|
|
1134
|
+
const [enlarge, setEnlarge] = (0, import_react12.useState)(0);
|
|
1135
|
+
const onLayoutHandler = import_react12.default.useCallback(
|
|
1042
1136
|
(event) => {
|
|
1043
1137
|
if (!width) {
|
|
1044
1138
|
const { width: width2 } = event.nativeEvent.layout;
|
|
1045
1139
|
if (fullBleed) {
|
|
1046
|
-
setEnlarge((
|
|
1140
|
+
setEnlarge((import_react_native8.Dimensions.get("screen").width - width2) / 2);
|
|
1047
1141
|
}
|
|
1048
1142
|
setWidth(width2);
|
|
1049
1143
|
}
|
|
1050
1144
|
},
|
|
1051
1145
|
[fullBleed, width]
|
|
1052
1146
|
);
|
|
1053
|
-
const realGap =
|
|
1054
|
-
const dynamicStyles =
|
|
1147
|
+
const realGap = import_react12.default.useMemo(() => typeof gap === "undefined" && 16 || ColumnsGapValue[gap], [gap]);
|
|
1148
|
+
const dynamicStyles = import_react12.default.useMemo(
|
|
1055
1149
|
() => ({
|
|
1056
1150
|
columns: {
|
|
1057
1151
|
width: fullBleed && width ? width + enlarge * 2 : "100%",
|
|
@@ -1071,17 +1165,17 @@ var Columns = import_react11.default.forwardRef(
|
|
|
1071
1165
|
}),
|
|
1072
1166
|
[fullBleed, width, enlarge, realGap, fullheight, verticalAlign]
|
|
1073
1167
|
);
|
|
1074
|
-
const contextValue =
|
|
1168
|
+
const contextValue = import_react12.default.useMemo(
|
|
1075
1169
|
() => ({
|
|
1076
1170
|
width,
|
|
1077
1171
|
realGap,
|
|
1078
1172
|
scrollable: scrollable || false,
|
|
1079
|
-
childrensLength:
|
|
1173
|
+
childrensLength: import_react12.default.Children.count(children)
|
|
1080
1174
|
}),
|
|
1081
1175
|
[width, realGap, scrollable, children]
|
|
1082
1176
|
);
|
|
1083
|
-
return /* @__PURE__ */
|
|
1084
|
-
|
|
1177
|
+
return /* @__PURE__ */ import_react12.default.createElement(ColumnsContext.Provider, { value: contextValue }, !scrollable && /* @__PURE__ */ import_react12.default.createElement(
|
|
1178
|
+
import_react_native8.View,
|
|
1085
1179
|
{
|
|
1086
1180
|
ref,
|
|
1087
1181
|
onLayout: onLayoutHandler,
|
|
@@ -1094,16 +1188,16 @@ var Columns = import_react11.default.forwardRef(
|
|
|
1094
1188
|
...others
|
|
1095
1189
|
},
|
|
1096
1190
|
children
|
|
1097
|
-
), scrollable && /* @__PURE__ */
|
|
1098
|
-
|
|
1191
|
+
), scrollable && /* @__PURE__ */ import_react12.default.createElement(
|
|
1192
|
+
import_react_native8.View,
|
|
1099
1193
|
{
|
|
1100
1194
|
onLayout: onLayoutHandler,
|
|
1101
1195
|
style: {
|
|
1102
1196
|
marginHorizontal: -enlarge
|
|
1103
1197
|
}
|
|
1104
1198
|
},
|
|
1105
|
-
/* @__PURE__ */
|
|
1106
|
-
|
|
1199
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
|
1200
|
+
import_react_native8.ScrollView,
|
|
1107
1201
|
{
|
|
1108
1202
|
horizontal: true,
|
|
1109
1203
|
contentContainerStyle: dynamicStyles.scrollContainer,
|
|
@@ -1118,23 +1212,23 @@ Columns.displayName = "Columns" /* Columns */;
|
|
|
1118
1212
|
var Columns_native_default = Columns;
|
|
1119
1213
|
|
|
1120
1214
|
// components/columns/column/Column.native.tsx
|
|
1121
|
-
var
|
|
1122
|
-
var
|
|
1123
|
-
var Column =
|
|
1124
|
-
|
|
1215
|
+
var import_react13 = __toESM(require("react"));
|
|
1216
|
+
var import_react_native9 = require("react-native");
|
|
1217
|
+
var Column = import_react13.default.memo(
|
|
1218
|
+
import_react13.default.forwardRef(
|
|
1125
1219
|
({ children, narrow, size, verticalAlign, ...others }, ref) => {
|
|
1126
|
-
const { width, realGap, scrollable, childrensLength } =
|
|
1127
|
-
const calculatedWidth =
|
|
1220
|
+
const { width, realGap, scrollable, childrensLength } = import_react13.default.useContext(ColumnsContext);
|
|
1221
|
+
const calculatedWidth = import_react13.default.useMemo(
|
|
1128
1222
|
() => size ? size / 12 * width - realGap * ((childrensLength - 1) / childrensLength) : null,
|
|
1129
1223
|
[size, width, realGap, childrensLength]
|
|
1130
1224
|
);
|
|
1131
|
-
const scrollableStyle =
|
|
1225
|
+
const scrollableStyle = import_react13.default.useMemo(
|
|
1132
1226
|
() => ({
|
|
1133
1227
|
width: calculatedWidth || (narrow ? "auto" : width - 2 * realGap)
|
|
1134
1228
|
}),
|
|
1135
1229
|
[calculatedWidth, narrow, width, realGap]
|
|
1136
1230
|
);
|
|
1137
|
-
const noScrollableStyle =
|
|
1231
|
+
const noScrollableStyle = import_react13.default.useMemo(
|
|
1138
1232
|
() => ({
|
|
1139
1233
|
flex: narrow ? 0 : 1,
|
|
1140
1234
|
flexGrow: size || narrow ? 0 : 1,
|
|
@@ -1143,14 +1237,14 @@ var Column = import_react12.default.memo(
|
|
|
1143
1237
|
}),
|
|
1144
1238
|
[narrow, size, calculatedWidth]
|
|
1145
1239
|
);
|
|
1146
|
-
const justifyContentStyle =
|
|
1240
|
+
const justifyContentStyle = import_react13.default.useMemo(
|
|
1147
1241
|
() => ({
|
|
1148
1242
|
justifyContent: getAlignStyle(verticalAlign)
|
|
1149
1243
|
}),
|
|
1150
1244
|
[verticalAlign]
|
|
1151
1245
|
);
|
|
1152
|
-
return /* @__PURE__ */
|
|
1153
|
-
|
|
1246
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
|
1247
|
+
import_react_native9.View,
|
|
1154
1248
|
{
|
|
1155
1249
|
ref,
|
|
1156
1250
|
style: [scrollable && scrollableStyle, !scrollable && noScrollableStyle, justifyContentStyle],
|
|
@@ -1165,11 +1259,10 @@ Column.displayName = "Column" /* Column */;
|
|
|
1165
1259
|
var Column_native_default = Column;
|
|
1166
1260
|
|
|
1167
1261
|
// components/title/Title.native.tsx
|
|
1168
|
-
var
|
|
1169
|
-
var
|
|
1170
|
-
var
|
|
1171
|
-
var
|
|
1172
|
-
var Title = React11.forwardRef(({
|
|
1262
|
+
var React12 = __toESM(require("react"));
|
|
1263
|
+
var import_react14 = require("react");
|
|
1264
|
+
var import_react_native10 = require("react-native");
|
|
1265
|
+
var Title = React12.forwardRef(({
|
|
1173
1266
|
children,
|
|
1174
1267
|
level,
|
|
1175
1268
|
style,
|
|
@@ -1182,7 +1275,7 @@ var Title = React11.forwardRef(({
|
|
|
1182
1275
|
overline,
|
|
1183
1276
|
...others
|
|
1184
1277
|
}, ref) => {
|
|
1185
|
-
const statesContext = (0,
|
|
1278
|
+
const statesContext = (0, import_react14.useContext)(StatesContext);
|
|
1186
1279
|
const color = setTypographyColor(typo, inverted || statesContext.inverted, skeleton);
|
|
1187
1280
|
const colorOverline = getColorStyle("MAIN" /* MAIN */);
|
|
1188
1281
|
const fontFamily = level && [1 /* ONE */, 2 /* TWO */].includes(level) ? "has-text-weight-bold" /* TEXT_WEIGHT_BOLD */ : "has-text-weight-semibold" /* TEXT_WEIGHT_SEMIBOLD */;
|
|
@@ -1216,7 +1309,7 @@ var Title = React11.forwardRef(({
|
|
|
1216
1309
|
return "flex-start";
|
|
1217
1310
|
}
|
|
1218
1311
|
};
|
|
1219
|
-
const styles4 =
|
|
1312
|
+
const styles4 = import_react_native10.StyleSheet.create({
|
|
1220
1313
|
text: {
|
|
1221
1314
|
fontFamily: getTypographyBoldStyle(fontFamily),
|
|
1222
1315
|
fontSize: titlesLevels(),
|
|
@@ -1236,8 +1329,8 @@ var Title = React11.forwardRef(({
|
|
|
1236
1329
|
}
|
|
1237
1330
|
});
|
|
1238
1331
|
const titleAccessibilityLabel = accessibilityLabel ? accessibilityLabel : typeof children === "string" ? children : void 0;
|
|
1239
|
-
let titleView = /* @__PURE__ */
|
|
1240
|
-
|
|
1332
|
+
let titleView = /* @__PURE__ */ React12.createElement(
|
|
1333
|
+
import_react_native10.Text,
|
|
1241
1334
|
{
|
|
1242
1335
|
ref,
|
|
1243
1336
|
maxFontSizeMultiplier: 1.3,
|
|
@@ -1249,16 +1342,24 @@ var Title = React11.forwardRef(({
|
|
|
1249
1342
|
children
|
|
1250
1343
|
);
|
|
1251
1344
|
if (skeleton) {
|
|
1252
|
-
titleView = /* @__PURE__ */
|
|
1345
|
+
titleView = /* @__PURE__ */ React12.createElement(
|
|
1346
|
+
Skeleton_native_default,
|
|
1347
|
+
{
|
|
1348
|
+
style: styles4.skeleton,
|
|
1349
|
+
height: titlesLevels(),
|
|
1350
|
+
borderRadius: 5
|
|
1351
|
+
},
|
|
1352
|
+
titleView
|
|
1353
|
+
);
|
|
1253
1354
|
}
|
|
1254
|
-
return onClick ? /* @__PURE__ */
|
|
1355
|
+
return onClick ? /* @__PURE__ */ React12.createElement(import_react_native10.TouchableOpacity, { onPress: onClick, activeOpacity: 0.85 }, titleView) : titleView;
|
|
1255
1356
|
});
|
|
1256
1357
|
Title.displayName = "Title" /* Title */;
|
|
1257
1358
|
var Title_native_default = Title;
|
|
1258
1359
|
|
|
1259
1360
|
// components/modal/context/ModalContext.tsx
|
|
1260
|
-
var
|
|
1261
|
-
var ModalContext =
|
|
1361
|
+
var import_react15 = __toESM(require("react"));
|
|
1362
|
+
var ModalContext = import_react15.default.createContext({
|
|
1262
1363
|
scrollViewRef: null,
|
|
1263
1364
|
handleOnScroll: () => null,
|
|
1264
1365
|
isFooter: false,
|
|
@@ -1266,7 +1367,7 @@ var ModalContext = import_react14.default.createContext({
|
|
|
1266
1367
|
});
|
|
1267
1368
|
|
|
1268
1369
|
// components/modal/Modal.native.tsx
|
|
1269
|
-
var Modal =
|
|
1370
|
+
var Modal = import_react16.default.forwardRef(
|
|
1270
1371
|
({
|
|
1271
1372
|
children,
|
|
1272
1373
|
active = false,
|
|
@@ -1278,10 +1379,10 @@ var Modal = import_react15.default.forwardRef(
|
|
|
1278
1379
|
title,
|
|
1279
1380
|
...others
|
|
1280
1381
|
}, ref) => {
|
|
1281
|
-
const scrollViewRef = (0,
|
|
1282
|
-
const [scrollOffset, setScrollOffset] = (0,
|
|
1283
|
-
const [visible, setVisible] = (0,
|
|
1284
|
-
const [isFooter, setIsFooter] = (0,
|
|
1382
|
+
const scrollViewRef = (0, import_react16.useRef)(null);
|
|
1383
|
+
const [scrollOffset, setScrollOffset] = (0, import_react16.useState)(0);
|
|
1384
|
+
const [visible, setVisible] = (0, import_react16.useState)(active || false);
|
|
1385
|
+
const [isFooter, setIsFooter] = (0, import_react16.useState)(active || false);
|
|
1285
1386
|
const handleOnScroll = (event) => {
|
|
1286
1387
|
setScrollOffset(event.nativeEvent.contentOffset.y);
|
|
1287
1388
|
};
|
|
@@ -1292,10 +1393,10 @@ var Modal = import_react15.default.forwardRef(
|
|
|
1292
1393
|
if (onClose) onClose(e);
|
|
1293
1394
|
setVisible(false);
|
|
1294
1395
|
};
|
|
1295
|
-
(0,
|
|
1396
|
+
(0, import_react16.useEffect)(() => {
|
|
1296
1397
|
setVisible(active);
|
|
1297
1398
|
}, [active]);
|
|
1298
|
-
return /* @__PURE__ */
|
|
1399
|
+
return /* @__PURE__ */ import_react16.default.createElement(ModalContext.Provider, { value: { scrollViewRef, handleOnScroll, isFooter, setIsFooter } }, trigger, /* @__PURE__ */ import_react16.default.createElement(
|
|
1299
1400
|
import_react_native_modal.default,
|
|
1300
1401
|
{
|
|
1301
1402
|
isVisible: visible,
|
|
@@ -1310,20 +1411,20 @@ var Modal = import_react15.default.forwardRef(
|
|
|
1310
1411
|
onModalHide,
|
|
1311
1412
|
...others
|
|
1312
1413
|
},
|
|
1313
|
-
/* @__PURE__ */
|
|
1414
|
+
/* @__PURE__ */ import_react16.default.createElement(import_react_native11.View, { ref, style: [styles2.body, { backgroundColor: getColorStyle("WHITE" /* BACKGROUND */) }] }, /* @__PURE__ */ import_react16.default.createElement(import_react_native11.View, { style: { paddingVertical: !title && (hideCloseButton || unClosable) ? 8 : 16 } }, /* @__PURE__ */ import_react16.default.createElement(Columns_native_default, { verticalAlign: "ALIGNED_CENTER" /* ALIGNED_CENTER */ }, /* @__PURE__ */ import_react16.default.createElement(Column_native_default, null, /* @__PURE__ */ import_react16.default.createElement(Title_native_default, { level: 4 }, title)), !hideCloseButton && !unClosable && /* @__PURE__ */ import_react16.default.createElement(Column_native_default, { narrow: true }, /* @__PURE__ */ import_react16.default.createElement(import_react_native11.TouchableOpacity, { onPress: handleClose }, /* @__PURE__ */ import_react16.default.createElement(Icon_native_default, { name: "tri-times" /* TIMES */, size: "medium" /* MEDIUM */, color: "MAIN" /* MAIN */ }))))), children)
|
|
1314
1415
|
));
|
|
1315
1416
|
}
|
|
1316
1417
|
);
|
|
1317
1418
|
Modal.displayName = "Modal" /* Modal */;
|
|
1318
1419
|
var Modal_native_default = Modal;
|
|
1319
|
-
var styles2 =
|
|
1420
|
+
var styles2 = import_react_native11.StyleSheet.create({
|
|
1320
1421
|
modal: {
|
|
1321
1422
|
justifyContent: "flex-end",
|
|
1322
1423
|
margin: 0
|
|
1323
1424
|
},
|
|
1324
1425
|
body: {
|
|
1325
1426
|
paddingHorizontal: 16,
|
|
1326
|
-
maxHeight: isAndroid ?
|
|
1427
|
+
maxHeight: isAndroid ? import_react_native11.Dimensions.get("screen").height / 1.15 : import_react_native11.Dimensions.get("screen").height / 1.1,
|
|
1327
1428
|
shadowColor: "#000",
|
|
1328
1429
|
shadowOffset: {
|
|
1329
1430
|
width: 0,
|
|
@@ -1338,20 +1439,20 @@ var styles2 = import_react_native10.StyleSheet.create({
|
|
|
1338
1439
|
});
|
|
1339
1440
|
|
|
1340
1441
|
// components/modal/body/ModalBody.native.tsx
|
|
1341
|
-
var
|
|
1342
|
-
var
|
|
1343
|
-
var ModalBody =
|
|
1344
|
-
const { handleOnScroll, scrollViewRef, isFooter } =
|
|
1345
|
-
return /* @__PURE__ */
|
|
1346
|
-
|
|
1442
|
+
var React15 = __toESM(require("react"));
|
|
1443
|
+
var import_react_native12 = require("react-native");
|
|
1444
|
+
var ModalBody = React15.forwardRef(({ children, ...others }, ref) => {
|
|
1445
|
+
const { handleOnScroll, scrollViewRef, isFooter } = React15.useContext(ModalContext);
|
|
1446
|
+
return /* @__PURE__ */ React15.createElement(
|
|
1447
|
+
import_react_native12.ScrollView,
|
|
1347
1448
|
{
|
|
1348
1449
|
ref: scrollViewRef,
|
|
1349
1450
|
scrollEventThrottle: 16,
|
|
1350
1451
|
onScroll: handleOnScroll,
|
|
1351
1452
|
showsVerticalScrollIndicator: false
|
|
1352
1453
|
},
|
|
1353
|
-
/* @__PURE__ */
|
|
1354
|
-
|
|
1454
|
+
/* @__PURE__ */ React15.createElement(
|
|
1455
|
+
import_react_native12.View,
|
|
1355
1456
|
{
|
|
1356
1457
|
ref,
|
|
1357
1458
|
style: [
|
|
@@ -1371,20 +1472,20 @@ ModalBody.displayName = "ModalBody" /* ModalBody */;
|
|
|
1371
1472
|
var ModalBody_native_default = ModalBody;
|
|
1372
1473
|
|
|
1373
1474
|
// components/modal/footer/ModalFooter.native.tsx
|
|
1374
|
-
var
|
|
1375
|
-
var
|
|
1376
|
-
var ModalFooter =
|
|
1377
|
-
const { setIsFooter } =
|
|
1378
|
-
|
|
1475
|
+
var React16 = __toESM(require("react"));
|
|
1476
|
+
var import_react_native13 = require("react-native");
|
|
1477
|
+
var ModalFooter = React16.forwardRef(({ children, ...others }, ref) => {
|
|
1478
|
+
const { setIsFooter } = React16.useContext(ModalContext);
|
|
1479
|
+
React16.useEffect(() => {
|
|
1379
1480
|
setIsFooter(true);
|
|
1380
1481
|
return () => {
|
|
1381
1482
|
setIsFooter(false);
|
|
1382
1483
|
};
|
|
1383
1484
|
}, []);
|
|
1384
|
-
return /* @__PURE__ */
|
|
1485
|
+
return /* @__PURE__ */ React16.createElement(import_react_native13.View, { ref, style: [styles3.container], ...others }, /* @__PURE__ */ React16.createElement(import_react_native13.View, { style: [{ backgroundColor: getColorStyle("WHITE" /* BACKGROUND */) }] }, typeof children === "string" && /* @__PURE__ */ React16.createElement(Title_native_default, { level: 3 /* THREE */, style: styles3.title }, children) || children));
|
|
1385
1486
|
});
|
|
1386
1487
|
ModalFooter.displayName = "ModalFooter" /* ModalFooter */;
|
|
1387
|
-
var styles3 =
|
|
1488
|
+
var styles3 = import_react_native13.StyleSheet.create({
|
|
1388
1489
|
container: {
|
|
1389
1490
|
paddingBottom: isIOS ? 40 : 18,
|
|
1390
1491
|
paddingTop: 16
|
|
@@ -1393,22 +1494,22 @@ var styles3 = import_react_native12.StyleSheet.create({
|
|
|
1393
1494
|
});
|
|
1394
1495
|
|
|
1395
1496
|
// components/select/Select.native.tsx
|
|
1396
|
-
var
|
|
1397
|
-
var
|
|
1497
|
+
var import_react17 = __toESM(require("react"));
|
|
1498
|
+
var import_react_native15 = require("react-native");
|
|
1398
1499
|
|
|
1399
1500
|
// components/select/option/SelectOption.native.tsx
|
|
1400
|
-
var
|
|
1401
|
-
var
|
|
1402
|
-
var SelectOption =
|
|
1501
|
+
var React17 = __toESM(require("react"));
|
|
1502
|
+
var import_react_native14 = require("react-native");
|
|
1503
|
+
var SelectOption = React17.forwardRef(({ disabled, children, onClick, label, iconName, ...others }, ref) => {
|
|
1403
1504
|
const { checked } = others;
|
|
1404
|
-
const styles4 =
|
|
1505
|
+
const styles4 = import_react_native14.StyleSheet.create({
|
|
1405
1506
|
container: {
|
|
1406
1507
|
backgroundColor: getColorStyle(disabled ? "DISABLED_FADE" /* DISABLED_FADE */ : "transparent"),
|
|
1407
1508
|
width: "100%",
|
|
1408
1509
|
paddingVertical: checked && !iconName ? 8.5 : 10
|
|
1409
1510
|
}
|
|
1410
1511
|
});
|
|
1411
|
-
const textColor =
|
|
1512
|
+
const textColor = React17.useMemo(() => {
|
|
1412
1513
|
switch (true) {
|
|
1413
1514
|
case disabled === true:
|
|
1414
1515
|
return "DISABLED" /* DISABLED */;
|
|
@@ -1416,7 +1517,7 @@ var SelectOption = React16.forwardRef(({ disabled, children, onClick, label, ico
|
|
|
1416
1517
|
return "MAIN" /* MAIN */;
|
|
1417
1518
|
}
|
|
1418
1519
|
}, [disabled]);
|
|
1419
|
-
const iconColor =
|
|
1520
|
+
const iconColor = React17.useMemo(() => {
|
|
1420
1521
|
switch (true) {
|
|
1421
1522
|
case disabled === true:
|
|
1422
1523
|
return "DISABLED" /* DISABLED */;
|
|
@@ -1424,17 +1525,17 @@ var SelectOption = React16.forwardRef(({ disabled, children, onClick, label, ico
|
|
|
1424
1525
|
return "MAIN" /* MAIN */;
|
|
1425
1526
|
}
|
|
1426
1527
|
}, [disabled]);
|
|
1427
|
-
const columnLabelSize =
|
|
1528
|
+
const columnLabelSize = React17.useMemo(() => {
|
|
1428
1529
|
return iconName ? checked && 10 || 11 : checked && 11 || 12;
|
|
1429
1530
|
}, [iconName, checked]);
|
|
1430
|
-
return /* @__PURE__ */
|
|
1531
|
+
return /* @__PURE__ */ React17.createElement(import_react_native14.TouchableOpacity, { ref, style: [styles4.container], ...others, onPress: onClick }, /* @__PURE__ */ React17.createElement(Columns_native_default, { verticalAlign: "ALIGNED_CENTER" /* ALIGNED_CENTER */ }, iconName && /* @__PURE__ */ React17.createElement(Column_native_default, { size: 1 }, /* @__PURE__ */ React17.createElement(Icon_native_default, { size: "small" /* SMALL */, name: iconName, color: iconColor })), /* @__PURE__ */ React17.createElement(Column_native_default, { size: columnLabelSize }, /* @__PURE__ */ React17.createElement(
|
|
1431
1532
|
Text_native_default,
|
|
1432
1533
|
{
|
|
1433
1534
|
typo: [checked && "has-text-weight-semibold" /* TEXT_WEIGHT_SEMIBOLD */],
|
|
1434
1535
|
...{ style: { paddingLeft: 8, color: getColorStyle(textColor) } }
|
|
1435
1536
|
},
|
|
1436
1537
|
children || label
|
|
1437
|
-
)), checked && /* @__PURE__ */
|
|
1538
|
+
)), checked && /* @__PURE__ */ React17.createElement(Column_native_default, { size: 1 }, /* @__PURE__ */ React17.createElement(Icon_native_default, { size: "small" /* SMALL */, name: "tri-check", color: iconColor }))));
|
|
1438
1539
|
});
|
|
1439
1540
|
SelectOption.displayName = "SelectOption" /* SelectOption */;
|
|
1440
1541
|
var SelectOption_native_default = SelectOption;
|
|
@@ -1443,16 +1544,16 @@ var SelectOption_native_default = SelectOption;
|
|
|
1443
1544
|
var index_native_default = SelectOption_native_default;
|
|
1444
1545
|
|
|
1445
1546
|
// components/select/Select.native.tsx
|
|
1446
|
-
var Select =
|
|
1547
|
+
var Select = import_react17.default.forwardRef(
|
|
1447
1548
|
({ children, id, selected, label, iconName, onChange, disabled, multiple, onBlur, status, ...others }, ref) => {
|
|
1448
|
-
const [selectedValues, setSelectedValues] = (0,
|
|
1449
|
-
const [selectedNames, setSelectedNames] =
|
|
1450
|
-
const [display, setDisplay] = (0,
|
|
1451
|
-
const reactId =
|
|
1452
|
-
(0,
|
|
1549
|
+
const [selectedValues, setSelectedValues] = (0, import_react17.useState)(selected);
|
|
1550
|
+
const [selectedNames, setSelectedNames] = import_react17.default.useState([]);
|
|
1551
|
+
const [display, setDisplay] = (0, import_react17.useState)(false);
|
|
1552
|
+
const reactId = import_react17.default.useId();
|
|
1553
|
+
(0, import_react17.useEffect)(() => {
|
|
1453
1554
|
var _a;
|
|
1454
|
-
const labelSelected = (_a =
|
|
1455
|
-
if (!
|
|
1555
|
+
const labelSelected = (_a = import_react17.default.Children.map(children, (child) => {
|
|
1556
|
+
if (!import_react17.default.isValidElement(child)) return false;
|
|
1456
1557
|
const label2 = child.props.children || child.props.label;
|
|
1457
1558
|
switch (true) {
|
|
1458
1559
|
case (Array.isArray(selected) && selected.includes(child.props.value) || !Array.isArray(selected) && child.props.value === selected):
|
|
@@ -1464,14 +1565,14 @@ var Select = import_react16.default.forwardRef(
|
|
|
1464
1565
|
labelSelected && setSelectedNames(labelSelected);
|
|
1465
1566
|
setSelectedValues(selected);
|
|
1466
1567
|
}, [selected]);
|
|
1467
|
-
const handleOpenCloseModal = (0,
|
|
1568
|
+
const handleOpenCloseModal = (0, import_react17.useCallback)(() => {
|
|
1468
1569
|
!disabled && setDisplay((prev) => !prev);
|
|
1469
1570
|
}, [disabled]);
|
|
1470
|
-
const isChecked = (0,
|
|
1571
|
+
const isChecked = (0, import_react17.useCallback)(
|
|
1471
1572
|
(value) => multiple && selectedValues && typeof selectedValues !== "string" && typeof selectedValues !== "number" ? selectedValues == null ? void 0 : selectedValues.includes(value) : selectedValues === value,
|
|
1472
1573
|
[multiple, selectedValues]
|
|
1473
1574
|
);
|
|
1474
|
-
const setNewSelectedValues = (0,
|
|
1575
|
+
const setNewSelectedValues = (0, import_react17.useCallback)(
|
|
1475
1576
|
({
|
|
1476
1577
|
isChecked: isChecked2,
|
|
1477
1578
|
children: children2,
|
|
@@ -1516,9 +1617,9 @@ var Select = import_react16.default.forwardRef(
|
|
|
1516
1617
|
},
|
|
1517
1618
|
[multiple]
|
|
1518
1619
|
);
|
|
1519
|
-
const options =
|
|
1520
|
-
return
|
|
1521
|
-
if (!
|
|
1620
|
+
const options = import_react17.default.useMemo(() => {
|
|
1621
|
+
return import_react17.default.Children.map(children, (child, index) => {
|
|
1622
|
+
if (!import_react17.default.isValidElement(child)) return null;
|
|
1522
1623
|
const clickEventValue = (v) => {
|
|
1523
1624
|
switch (true) {
|
|
1524
1625
|
case (multiple && (selectedValues == null ? void 0 : selectedValues.includes(child.props.value)) || !multiple && selectedValues === child.props.value):
|
|
@@ -1548,16 +1649,16 @@ var Select = import_react16.default.forwardRef(
|
|
|
1548
1649
|
if (child.props.onClick) child.props.onClick();
|
|
1549
1650
|
}
|
|
1550
1651
|
};
|
|
1551
|
-
return /* @__PURE__ */
|
|
1652
|
+
return /* @__PURE__ */ import_react17.default.createElement(index_native_default, { ...props, key: `${reactId}_${index}` });
|
|
1552
1653
|
});
|
|
1553
1654
|
}, [multiple, selectedValues, children]);
|
|
1554
|
-
return /* @__PURE__ */
|
|
1655
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
|
1555
1656
|
Modal_native_default,
|
|
1556
1657
|
{
|
|
1557
1658
|
active: display,
|
|
1558
1659
|
onClose: handleOpenCloseModal,
|
|
1559
1660
|
unClosable: true,
|
|
1560
|
-
trigger: /* @__PURE__ */
|
|
1661
|
+
trigger: /* @__PURE__ */ import_react17.default.createElement(import_react_native15.TouchableOpacity, { onPress: handleOpenCloseModal }, /* @__PURE__ */ import_react17.default.createElement(
|
|
1561
1662
|
Input_native_default,
|
|
1562
1663
|
{
|
|
1563
1664
|
status,
|
|
@@ -1575,7 +1676,7 @@ var Select = import_react16.default.forwardRef(
|
|
|
1575
1676
|
}
|
|
1576
1677
|
))
|
|
1577
1678
|
},
|
|
1578
|
-
/* @__PURE__ */
|
|
1679
|
+
/* @__PURE__ */ import_react17.default.createElement(ModalBody_native_default, null, /* @__PURE__ */ import_react17.default.createElement(import_react_native15.View, { style: { paddingBottom: 20 } }, options))
|
|
1579
1680
|
);
|
|
1580
1681
|
}
|
|
1581
1682
|
);
|