@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
|
@@ -998,34 +998,6 @@ var StatesContext = (0, import_react.createContext)({
|
|
|
998
998
|
flat: false
|
|
999
999
|
});
|
|
1000
1000
|
|
|
1001
|
-
// helpers/device/index.native.ts
|
|
1002
|
-
var import_react_native = require("react-native");
|
|
1003
|
-
var Device = /* @__PURE__ */ ((Device2) => {
|
|
1004
|
-
Device2["Browser"] = "browser";
|
|
1005
|
-
Device2["Server"] = "server";
|
|
1006
|
-
Device2["Native"] = "native";
|
|
1007
|
-
return Device2;
|
|
1008
|
-
})(Device || {});
|
|
1009
|
-
var { Browser, Server, Native } = Device;
|
|
1010
|
-
var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
1011
|
-
var canUseNative = typeof navigator != "undefined" && navigator.product == "ReactNative";
|
|
1012
|
-
var device = canUseNative ? Native : canUseDOM ? Browser : Server;
|
|
1013
|
-
var SSRObjectDefined = {
|
|
1014
|
-
isBrowser: device === Browser,
|
|
1015
|
-
isServer: device === Server,
|
|
1016
|
-
isNative: device === Native,
|
|
1017
|
-
device,
|
|
1018
|
-
canUseWorkers: typeof Worker !== "undefined",
|
|
1019
|
-
canUseEventListeners: device === Browser && !!window.addEventListener,
|
|
1020
|
-
canUseViewport: device === Browser && !!window.screen
|
|
1021
|
-
};
|
|
1022
|
-
var assign = (...args) => Object.assign({}, ...args);
|
|
1023
|
-
var values = (obj) => Object.values(obj);
|
|
1024
|
-
var toArrayObject = () => assign((values(SSRObjectDefined), SSRObjectDefined));
|
|
1025
|
-
var SSRObject = toArrayObject();
|
|
1026
|
-
var isAndroid = import_react_native.Platform.OS === "android";
|
|
1027
|
-
var isIOS = import_react_native.Platform.OS === "ios";
|
|
1028
|
-
|
|
1029
1001
|
// objects/Typography/TypographyAlign/index.ts
|
|
1030
1002
|
var setTypographyAlign = (typo = "left") => {
|
|
1031
1003
|
return typo && !Array.isArray(typo) && typo === "has-text-centered" /* TEXT_CENTERED */ && "center" || typo && Array.isArray(typo) && typo.includes("has-text-centered" /* TEXT_CENTERED */) && "center" || typo && !Array.isArray(typo) && typo === "has-text-left" /* TEXT_LEFT */ && "left" || typo && Array.isArray(typo) && typo.includes("has-text-left" /* TEXT_LEFT */) && "left" || typo && !Array.isArray(typo) && typo === "has-text-right" /* TEXT_RIGHT */ && "right" || typo && Array.isArray(typo) && typo.includes("has-text-right" /* TEXT_RIGHT */) && "right" || typo && !Array.isArray(typo) && typo === "has-text-justified" /* TEXT_JUSTIFIED */ && "justify" || typo && Array.isArray(typo) && typo.includes("has-text-justified" /* TEXT_JUSTIFIED */) && "justify" || "left";
|
|
@@ -1109,64 +1081,150 @@ var setTypographyColor = (typo = "", inverted = false, loading = false) => {
|
|
|
1109
1081
|
};
|
|
1110
1082
|
|
|
1111
1083
|
// components/text/Text.native.tsx
|
|
1112
|
-
var
|
|
1113
|
-
var import_native = __toESM(require("react-content-loader/native"));
|
|
1084
|
+
var import_react6 = __toESM(require("react"));
|
|
1114
1085
|
var import_react_native2 = require("react-native");
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1086
|
+
|
|
1087
|
+
// components/skeleton/Skeleton.native.tsx
|
|
1088
|
+
var import_react5 = __toESM(require("react"));
|
|
1089
|
+
var import_react_native = require("react-native");
|
|
1090
|
+
var Skeleton = ({
|
|
1118
1091
|
style,
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
borderColor: getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */),
|
|
1146
|
-
overflow: "hidden",
|
|
1147
|
-
height: textLevels(level)
|
|
1148
|
-
}
|
|
1092
|
+
width = "100%",
|
|
1093
|
+
height = 20,
|
|
1094
|
+
backgroundColor = "#E1E9EE",
|
|
1095
|
+
shimmerColor = "#F7F8F8",
|
|
1096
|
+
duration = 1200,
|
|
1097
|
+
borderRadius = 4,
|
|
1098
|
+
children,
|
|
1099
|
+
testID
|
|
1100
|
+
}) => {
|
|
1101
|
+
const shimmerValue = (0, import_react5.useRef)(new import_react_native.Animated.Value(0)).current;
|
|
1102
|
+
const [containerWidth, setContainerWidth] = import_react5.default.useState(200);
|
|
1103
|
+
(0, import_react5.useEffect)(() => {
|
|
1104
|
+
const shimmerAnimation = import_react_native.Animated.loop(
|
|
1105
|
+
import_react_native.Animated.timing(shimmerValue, {
|
|
1106
|
+
toValue: 1,
|
|
1107
|
+
duration,
|
|
1108
|
+
useNativeDriver: true
|
|
1109
|
+
}),
|
|
1110
|
+
{ iterations: -1 }
|
|
1111
|
+
);
|
|
1112
|
+
shimmerAnimation.start();
|
|
1113
|
+
return () => shimmerAnimation.stop();
|
|
1114
|
+
}, [shimmerValue, duration]);
|
|
1115
|
+
const translateX = shimmerValue.interpolate({
|
|
1116
|
+
inputRange: [0, 1],
|
|
1117
|
+
outputRange: [-containerWidth, containerWidth]
|
|
1149
1118
|
});
|
|
1150
|
-
const
|
|
1151
|
-
|
|
1152
|
-
|
|
1119
|
+
const opacity = shimmerValue.interpolate({
|
|
1120
|
+
inputRange: [0, 0.5, 1],
|
|
1121
|
+
outputRange: [0.3, 0.8, 0.3]
|
|
1122
|
+
});
|
|
1123
|
+
const containerStyle = {
|
|
1124
|
+
width: children ? void 0 : width,
|
|
1125
|
+
height: children ? void 0 : height,
|
|
1126
|
+
backgroundColor,
|
|
1127
|
+
borderRadius,
|
|
1128
|
+
overflow: "hidden",
|
|
1129
|
+
alignSelf: children ? "flex-start" : void 0,
|
|
1130
|
+
...style
|
|
1131
|
+
};
|
|
1132
|
+
const handleLayout = (event) => {
|
|
1133
|
+
const { width: layoutWidth } = event.nativeEvent.layout;
|
|
1134
|
+
setContainerWidth(layoutWidth);
|
|
1135
|
+
};
|
|
1136
|
+
if (children) {
|
|
1137
|
+
return /* @__PURE__ */ import_react5.default.createElement(import_react_native.View, { style: containerStyle, testID, onLayout: handleLayout }, /* @__PURE__ */ import_react5.default.createElement(import_react_native.View, { style: { opacity: 0 } }, children), /* @__PURE__ */ import_react5.default.createElement(
|
|
1138
|
+
import_react_native.Animated.View,
|
|
1139
|
+
{
|
|
1140
|
+
style: [
|
|
1141
|
+
{
|
|
1142
|
+
position: "absolute",
|
|
1143
|
+
top: 0,
|
|
1144
|
+
left: 0,
|
|
1145
|
+
width: containerWidth * 0.7,
|
|
1146
|
+
height: "100%",
|
|
1147
|
+
backgroundColor: shimmerColor,
|
|
1148
|
+
opacity,
|
|
1149
|
+
transform: [{ translateX }]
|
|
1150
|
+
}
|
|
1151
|
+
]
|
|
1152
|
+
}
|
|
1153
|
+
));
|
|
1154
|
+
}
|
|
1155
|
+
return /* @__PURE__ */ import_react5.default.createElement(import_react_native.View, { style: containerStyle, testID, onLayout: handleLayout }, /* @__PURE__ */ import_react5.default.createElement(
|
|
1156
|
+
import_react_native.Animated.View,
|
|
1153
1157
|
{
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
);
|
|
1165
|
-
|
|
1166
|
-
|
|
1158
|
+
style: [
|
|
1159
|
+
{
|
|
1160
|
+
width: containerWidth * 0.7,
|
|
1161
|
+
height: "100%",
|
|
1162
|
+
backgroundColor: shimmerColor,
|
|
1163
|
+
opacity,
|
|
1164
|
+
transform: [{ translateX }]
|
|
1165
|
+
}
|
|
1166
|
+
]
|
|
1167
|
+
}
|
|
1168
|
+
));
|
|
1169
|
+
};
|
|
1170
|
+
var Skeleton_native_default = Skeleton;
|
|
1171
|
+
|
|
1172
|
+
// components/text/Text.native.tsx
|
|
1173
|
+
var Text = import_react6.default.forwardRef(
|
|
1174
|
+
({ children, level, style, inverted, typo, skeleton, accessibilityLabel, numberOfLines = 0, ...others }, ref) => {
|
|
1175
|
+
const statesContext = (0, import_react6.useContext)(StatesContext);
|
|
1176
|
+
const textLevels = (level2) => {
|
|
1177
|
+
return level2 && level2 == 1 /* ONE */ && 16 || level2 && level2 == 2 /* TWO */ && 14 || level2 && level2 == 3 /* THREE */ && 12 || level2 && level2 == 4 /* FOUR */ && 10 || 14;
|
|
1178
|
+
};
|
|
1179
|
+
const styles = import_react_native2.StyleSheet.create({
|
|
1180
|
+
text: {
|
|
1181
|
+
fontFamily: getTypographyBoldStyle(typo),
|
|
1182
|
+
fontSize: textLevels(level),
|
|
1183
|
+
color: setTypographyColor(typo, inverted || statesContext.inverted, skeleton),
|
|
1184
|
+
textAlign: setTypographyAlign(typo),
|
|
1185
|
+
lineHeight: textLevels(level) * 1.2,
|
|
1186
|
+
textDecorationLine: "none",
|
|
1187
|
+
alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start"
|
|
1188
|
+
},
|
|
1189
|
+
skeleton: {
|
|
1190
|
+
minWidth: 10,
|
|
1191
|
+
alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start",
|
|
1192
|
+
borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3,
|
|
1193
|
+
borderWidth: 0.1,
|
|
1194
|
+
borderColor: getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */),
|
|
1195
|
+
overflow: "hidden",
|
|
1196
|
+
height: textLevels(level)
|
|
1197
|
+
}
|
|
1198
|
+
});
|
|
1199
|
+
const textAccessibilityLabel = accessibilityLabel ? accessibilityLabel : typeof children === "string" ? children : void 0;
|
|
1200
|
+
let textView = /* @__PURE__ */ import_react6.default.createElement(
|
|
1201
|
+
import_react_native2.Text,
|
|
1202
|
+
{
|
|
1203
|
+
ref,
|
|
1204
|
+
numberOfLines,
|
|
1205
|
+
ellipsizeMode: "tail",
|
|
1206
|
+
maxFontSizeMultiplier: 1.3,
|
|
1207
|
+
accessible: !!textAccessibilityLabel,
|
|
1208
|
+
accessibilityLabel: textAccessibilityLabel,
|
|
1209
|
+
style: [styles.text, style],
|
|
1210
|
+
...others
|
|
1211
|
+
},
|
|
1212
|
+
children
|
|
1213
|
+
);
|
|
1214
|
+
if (skeleton) {
|
|
1215
|
+
textView = /* @__PURE__ */ import_react6.default.createElement(
|
|
1216
|
+
Skeleton_native_default,
|
|
1217
|
+
{
|
|
1218
|
+
style: styles.skeleton,
|
|
1219
|
+
height: textLevels(level),
|
|
1220
|
+
borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3
|
|
1221
|
+
},
|
|
1222
|
+
textView
|
|
1223
|
+
);
|
|
1224
|
+
}
|
|
1225
|
+
return textView;
|
|
1167
1226
|
}
|
|
1168
|
-
|
|
1169
|
-
});
|
|
1227
|
+
);
|
|
1170
1228
|
Text.displayName = "Text" /* Text */;
|
|
1171
1229
|
var Text_native_default = Text;
|
|
1172
1230
|
|
|
@@ -1200,24 +1258,51 @@ var getJustifyStyle = (justifyContent) => {
|
|
|
1200
1258
|
}
|
|
1201
1259
|
};
|
|
1202
1260
|
|
|
1203
|
-
//
|
|
1204
|
-
var import_react6 = __toESM(require("react"));
|
|
1205
|
-
var import_native2 = __toESM(require("react-content-loader/native"));
|
|
1261
|
+
// helpers/device/index.native.ts
|
|
1206
1262
|
var import_react_native3 = require("react-native");
|
|
1263
|
+
var Device = /* @__PURE__ */ ((Device2) => {
|
|
1264
|
+
Device2["Browser"] = "browser";
|
|
1265
|
+
Device2["Server"] = "server";
|
|
1266
|
+
Device2["Native"] = "native";
|
|
1267
|
+
return Device2;
|
|
1268
|
+
})(Device || {});
|
|
1269
|
+
var { Browser, Server, Native } = Device;
|
|
1270
|
+
var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
1271
|
+
var canUseNative = typeof navigator != "undefined" && navigator.product == "ReactNative";
|
|
1272
|
+
var device = canUseNative ? Native : canUseDOM ? Browser : Server;
|
|
1273
|
+
var SSRObjectDefined = {
|
|
1274
|
+
isBrowser: device === Browser,
|
|
1275
|
+
isServer: device === Server,
|
|
1276
|
+
isNative: device === Native,
|
|
1277
|
+
device,
|
|
1278
|
+
canUseWorkers: typeof Worker !== "undefined",
|
|
1279
|
+
canUseEventListeners: device === Browser && !!window.addEventListener,
|
|
1280
|
+
canUseViewport: device === Browser && !!window.screen
|
|
1281
|
+
};
|
|
1282
|
+
var assign = (...args) => Object.assign({}, ...args);
|
|
1283
|
+
var values = (obj) => Object.values(obj);
|
|
1284
|
+
var toArrayObject = () => assign((values(SSRObjectDefined), SSRObjectDefined));
|
|
1285
|
+
var SSRObject = toArrayObject();
|
|
1286
|
+
var isAndroid = import_react_native3.Platform.OS === "android";
|
|
1287
|
+
var isIOS = import_react_native3.Platform.OS === "ios";
|
|
1288
|
+
|
|
1289
|
+
// components/icon/Icon.native.tsx
|
|
1290
|
+
var import_react7 = __toESM(require("react"));
|
|
1291
|
+
var import_react_native4 = require("react-native");
|
|
1207
1292
|
var import_css = require("react-native-svg/css");
|
|
1208
|
-
var Icon =
|
|
1293
|
+
var Icon = import_react7.default.forwardRef(
|
|
1209
1294
|
({ size, name, circled, stretched, color, backgroundColor, onClick, align, skeleton, testId, ...others }, ref) => {
|
|
1210
1295
|
const {
|
|
1211
1296
|
theme: { icons }
|
|
1212
|
-
} = (0,
|
|
1213
|
-
const statesContext = (0,
|
|
1297
|
+
} = (0, import_react7.useContext)(TrilogyThemeContext);
|
|
1298
|
+
const statesContext = (0, import_react7.useContext)(StatesContext);
|
|
1214
1299
|
const style = {};
|
|
1215
1300
|
const defaultSize = size === "huge" /* HUGE */ && 66 || size === "large" /* LARGE */ && 44 || size === "medium" /* MEDIUM */ && 30 || size === "small" /* SMALL */ && 20 || size === "smaller" /* SMALLER */ && 16 || 20;
|
|
1216
1301
|
const iconColor = color && getColorStyle(color) || statesContext.inverted && getColorStyle("WHITE" /* BACKGROUND */) || getColorStyle("MAIN" /* MAIN */);
|
|
1217
1302
|
const background = backgroundColor && getColorStyle(backgroundColor) || circled && getColorStyle("MAIN" /* MAIN */) || "";
|
|
1218
1303
|
const iconSkeletonRadius = size === "huge" /* HUGE */ && 50 || size === "large" /* LARGE */ && 35 || size === "medium" /* MEDIUM */ && 25 || size === "small" /* SMALL */ && 15 || size === "smaller" /* SMALLER */ && 10 || 15;
|
|
1219
1304
|
const circledWidth = size === "huge" /* HUGE */ && 99 || size === "large" /* LARGE */ && 66 || size === "medium" /* MEDIUM */ && 48 || size === "small" /* SMALL */ && 32 || size === "smaller" /* SMALLER */ && 38 || 32;
|
|
1220
|
-
const styles =
|
|
1305
|
+
const styles = import_react_native4.StyleSheet.create({
|
|
1221
1306
|
rootView: {
|
|
1222
1307
|
alignSelf: getAlignStyle(align)
|
|
1223
1308
|
},
|
|
@@ -1260,14 +1345,23 @@ var Icon = import_react6.default.forwardRef(
|
|
|
1260
1345
|
justifyContent: "center"
|
|
1261
1346
|
}
|
|
1262
1347
|
});
|
|
1263
|
-
const IconSkeleton = () => /* @__PURE__ */
|
|
1348
|
+
const IconSkeleton = () => /* @__PURE__ */ import_react7.default.createElement(
|
|
1349
|
+
Skeleton_native_default,
|
|
1350
|
+
{
|
|
1351
|
+
style: styles.skeleton,
|
|
1352
|
+
width: circledWidth,
|
|
1353
|
+
height: circledWidth,
|
|
1354
|
+
borderRadius: iconSkeletonRadius,
|
|
1355
|
+
testID: "skeleton-id"
|
|
1356
|
+
}
|
|
1357
|
+
);
|
|
1264
1358
|
if (skeleton) {
|
|
1265
|
-
return /* @__PURE__ */
|
|
1359
|
+
return /* @__PURE__ */ import_react7.default.createElement(IconSkeleton, null);
|
|
1266
1360
|
}
|
|
1267
|
-
let iconView = /* @__PURE__ */
|
|
1361
|
+
let iconView = /* @__PURE__ */ import_react7.default.createElement(import_react_native4.View, null);
|
|
1268
1362
|
if (name && icons) {
|
|
1269
1363
|
if (stretched && !circled) {
|
|
1270
|
-
iconView = /* @__PURE__ */
|
|
1364
|
+
iconView = /* @__PURE__ */ import_react7.default.createElement(import_react_native4.View, { style: styles.stretched, testID: `${testId}-stretched` }, /* @__PURE__ */ import_react7.default.createElement(
|
|
1271
1365
|
import_css.WithLocalSvg,
|
|
1272
1366
|
{
|
|
1273
1367
|
style: [styles.iconCircled, styles.icon],
|
|
@@ -1278,7 +1372,7 @@ var Icon = import_react6.default.forwardRef(
|
|
|
1278
1372
|
}
|
|
1279
1373
|
));
|
|
1280
1374
|
} else if (circled) {
|
|
1281
|
-
iconView = /* @__PURE__ */
|
|
1375
|
+
iconView = /* @__PURE__ */ import_react7.default.createElement(import_react_native4.View, { style: styles.circled, testID: `${testId}-circled` }, /* @__PURE__ */ import_react7.default.createElement(
|
|
1282
1376
|
import_css.WithLocalSvg,
|
|
1283
1377
|
{
|
|
1284
1378
|
style: [styles.iconCircled, styles.icon],
|
|
@@ -1289,7 +1383,7 @@ var Icon = import_react6.default.forwardRef(
|
|
|
1289
1383
|
}
|
|
1290
1384
|
));
|
|
1291
1385
|
} else {
|
|
1292
|
-
iconView = /* @__PURE__ */
|
|
1386
|
+
iconView = /* @__PURE__ */ import_react7.default.createElement(import_react_native4.View, { style: styles.iconContainer, ...others }, /* @__PURE__ */ import_react7.default.createElement(
|
|
1293
1387
|
import_css.WithLocalSvg,
|
|
1294
1388
|
{
|
|
1295
1389
|
style: [styles.icon, style],
|
|
@@ -1301,8 +1395,8 @@ var Icon = import_react6.default.forwardRef(
|
|
|
1301
1395
|
));
|
|
1302
1396
|
}
|
|
1303
1397
|
}
|
|
1304
|
-
return onClick ? /* @__PURE__ */
|
|
1305
|
-
|
|
1398
|
+
return onClick ? /* @__PURE__ */ import_react7.default.createElement(import_react_native4.View, { style: styles.rootView, testID: testId, ref }, /* @__PURE__ */ import_react7.default.createElement(
|
|
1399
|
+
import_react_native4.TouchableOpacity,
|
|
1306
1400
|
{
|
|
1307
1401
|
style: { width: "100%" },
|
|
1308
1402
|
onPress: onClick,
|
|
@@ -1310,7 +1404,7 @@ var Icon = import_react6.default.forwardRef(
|
|
|
1310
1404
|
testID: `${testId}-pressable`
|
|
1311
1405
|
},
|
|
1312
1406
|
iconView
|
|
1313
|
-
)) : /* @__PURE__ */
|
|
1407
|
+
)) : /* @__PURE__ */ import_react7.default.createElement(import_react_native4.View, { style: styles.rootView, testID: testId, ref }, iconView);
|
|
1314
1408
|
}
|
|
1315
1409
|
);
|
|
1316
1410
|
Icon.displayName = "Icon" /* Icon */;
|
|
@@ -1332,9 +1426,9 @@ var getStatusStyle = (statusType) => {
|
|
|
1332
1426
|
};
|
|
1333
1427
|
|
|
1334
1428
|
// components/view/View.native.tsx
|
|
1335
|
-
var
|
|
1336
|
-
var
|
|
1337
|
-
var View3 =
|
|
1429
|
+
var React5 = __toESM(require("react"));
|
|
1430
|
+
var import_react_native5 = require("react-native");
|
|
1431
|
+
var View3 = React5.forwardRef(({
|
|
1338
1432
|
children,
|
|
1339
1433
|
style,
|
|
1340
1434
|
onClick,
|
|
@@ -1349,7 +1443,7 @@ var View3 = React4.forwardRef(({
|
|
|
1349
1443
|
...others
|
|
1350
1444
|
}, ref) => {
|
|
1351
1445
|
const viewColor = backgroundColor && getColorStyle(backgroundColor) || "transparent";
|
|
1352
|
-
const styles =
|
|
1446
|
+
const styles = import_react_native5.StyleSheet.create({
|
|
1353
1447
|
view: {
|
|
1354
1448
|
flex: flexable ? 1 : 0,
|
|
1355
1449
|
backgroundColor: viewColor,
|
|
@@ -1368,8 +1462,8 @@ var View3 = React4.forwardRef(({
|
|
|
1368
1462
|
height: "auto"
|
|
1369
1463
|
}
|
|
1370
1464
|
});
|
|
1371
|
-
let returnView = /* @__PURE__ */
|
|
1372
|
-
|
|
1465
|
+
let returnView = /* @__PURE__ */ React5.createElement(
|
|
1466
|
+
import_react_native5.View,
|
|
1373
1467
|
{
|
|
1374
1468
|
ref,
|
|
1375
1469
|
testID: id,
|
|
@@ -1380,8 +1474,8 @@ var View3 = React4.forwardRef(({
|
|
|
1380
1474
|
children
|
|
1381
1475
|
);
|
|
1382
1476
|
if (!children) {
|
|
1383
|
-
returnView = /* @__PURE__ */
|
|
1384
|
-
|
|
1477
|
+
returnView = /* @__PURE__ */ React5.createElement(
|
|
1478
|
+
import_react_native5.View,
|
|
1385
1479
|
{
|
|
1386
1480
|
ref,
|
|
1387
1481
|
testID: id,
|
|
@@ -1392,8 +1486,8 @@ var View3 = React4.forwardRef(({
|
|
|
1392
1486
|
);
|
|
1393
1487
|
}
|
|
1394
1488
|
if (onClick) {
|
|
1395
|
-
returnView = /* @__PURE__ */
|
|
1396
|
-
|
|
1489
|
+
returnView = /* @__PURE__ */ React5.createElement(
|
|
1490
|
+
import_react_native5.View,
|
|
1397
1491
|
{
|
|
1398
1492
|
ref,
|
|
1399
1493
|
testID: id,
|
|
@@ -1401,11 +1495,11 @@ var View3 = React4.forwardRef(({
|
|
|
1401
1495
|
style: [styles.view, bottom && styles.bottom, style],
|
|
1402
1496
|
...others
|
|
1403
1497
|
},
|
|
1404
|
-
/* @__PURE__ */
|
|
1498
|
+
/* @__PURE__ */ React5.createElement(import_react_native5.TouchableOpacity, { activeOpacity: 1, onPress: onClick }, children)
|
|
1405
1499
|
);
|
|
1406
1500
|
}
|
|
1407
|
-
return backgroundSrc ? /* @__PURE__ */
|
|
1408
|
-
|
|
1501
|
+
return backgroundSrc ? /* @__PURE__ */ React5.createElement(
|
|
1502
|
+
import_react_native5.ImageBackground,
|
|
1409
1503
|
{
|
|
1410
1504
|
style: styles.sectionImage,
|
|
1411
1505
|
source: typeof backgroundSrc === "number" ? backgroundSrc : { uri: backgroundSrc }
|
|
@@ -1417,14 +1511,14 @@ View3.displayName = "View" /* View */;
|
|
|
1417
1511
|
var View_native_default = View3;
|
|
1418
1512
|
|
|
1419
1513
|
// components/progress/Progress.native.tsx
|
|
1420
|
-
var
|
|
1421
|
-
var
|
|
1422
|
-
var Progress =
|
|
1514
|
+
var import_react8 = __toESM(require("react"));
|
|
1515
|
+
var import_react_native6 = require("react-native");
|
|
1516
|
+
var Progress = import_react8.default.forwardRef(
|
|
1423
1517
|
({ children, value, max = 100, status, legendCenter, legendStart, legendEnd, stacked, ...others }, ref) => {
|
|
1424
|
-
const animation = (0,
|
|
1425
|
-
(0,
|
|
1518
|
+
const animation = (0, import_react8.useRef)(new import_react_native6.Animated.Value(0)).current;
|
|
1519
|
+
(0, import_react8.useEffect)(() => {
|
|
1426
1520
|
if (typeof value === "number") {
|
|
1427
|
-
|
|
1521
|
+
import_react_native6.Animated.timing(animation, {
|
|
1428
1522
|
toValue: value,
|
|
1429
1523
|
duration: 1e3,
|
|
1430
1524
|
useNativeDriver: false
|
|
@@ -1437,7 +1531,7 @@ var Progress = import_react7.default.forwardRef(
|
|
|
1437
1531
|
outputRange: ["0%", `${max}%`],
|
|
1438
1532
|
extrapolate: "clamp"
|
|
1439
1533
|
});
|
|
1440
|
-
const styles =
|
|
1534
|
+
const styles = import_react_native6.StyleSheet.create({
|
|
1441
1535
|
progress: {
|
|
1442
1536
|
flexDirection: "row",
|
|
1443
1537
|
width: "100%",
|
|
@@ -1474,9 +1568,9 @@ var Progress = import_react7.default.forwardRef(
|
|
|
1474
1568
|
}
|
|
1475
1569
|
});
|
|
1476
1570
|
if (stacked) {
|
|
1477
|
-
return /* @__PURE__ */
|
|
1571
|
+
return /* @__PURE__ */ import_react8.default.createElement(View_native_default, { style: styles.progress, ...others }, Array.isArray(children) && children.map(
|
|
1478
1572
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1479
|
-
(child, index) => child && child.type.render.displayName === "ProgressItem" &&
|
|
1573
|
+
(child, index) => child && child.type.render.displayName === "ProgressItem" && import_react8.default.cloneElement(child, {
|
|
1480
1574
|
key: index,
|
|
1481
1575
|
style: [
|
|
1482
1576
|
index === 0 ? styles.progressItemFirst : void 0,
|
|
@@ -1486,21 +1580,21 @@ var Progress = import_react7.default.forwardRef(
|
|
|
1486
1580
|
}) || child
|
|
1487
1581
|
));
|
|
1488
1582
|
}
|
|
1489
|
-
return /* @__PURE__ */
|
|
1583
|
+
return /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, /* @__PURE__ */ import_react8.default.createElement(View_native_default, { ref, style: styles.progress, ...others }, /* @__PURE__ */ import_react8.default.createElement(import_react_native6.Animated.View, { style: [styles.percent, { width }] })), legendCenter && /* @__PURE__ */ import_react8.default.createElement(Text_native_default, { style: styles.legendCenter, level: 3 /* THREE */ }, legendCenter), legendStart && legendEnd && !legendCenter && /* @__PURE__ */ import_react8.default.createElement(View_native_default, { style: styles.extremLegend }, /* @__PURE__ */ import_react8.default.createElement(Text_native_default, { level: 3 /* THREE */ }, legendStart), /* @__PURE__ */ import_react8.default.createElement(Text_native_default, { level: 3 /* THREE */ }, legendEnd)));
|
|
1490
1584
|
}
|
|
1491
1585
|
);
|
|
1492
1586
|
Progress.displayName = "Progress" /* Progress */;
|
|
1493
1587
|
var Progress_native_default = Progress;
|
|
1494
1588
|
|
|
1495
1589
|
// components/progress/item/ProgressItem.native.tsx
|
|
1496
|
-
var
|
|
1497
|
-
var
|
|
1498
|
-
var ProgressItem =
|
|
1590
|
+
var import_react9 = __toESM(require("react"));
|
|
1591
|
+
var import_react_native7 = require("react-native");
|
|
1592
|
+
var ProgressItem = import_react9.default.forwardRef(
|
|
1499
1593
|
({ children, percent, style, ...others }, ref) => {
|
|
1500
|
-
const animation = (0,
|
|
1594
|
+
const animation = (0, import_react9.useRef)(new import_react_native7.Animated.Value(0)).current;
|
|
1501
1595
|
const styles = style;
|
|
1502
|
-
(0,
|
|
1503
|
-
percent &&
|
|
1596
|
+
(0, import_react9.useEffect)(() => {
|
|
1597
|
+
percent && import_react_native7.Animated.timing(animation, {
|
|
1504
1598
|
toValue: percent,
|
|
1505
1599
|
duration: 1e3,
|
|
1506
1600
|
useNativeDriver: false
|
|
@@ -1511,23 +1605,22 @@ var ProgressItem = import_react8.default.forwardRef(
|
|
|
1511
1605
|
outputRange: ["0%", "100%"],
|
|
1512
1606
|
extrapolate: "clamp"
|
|
1513
1607
|
});
|
|
1514
|
-
return /* @__PURE__ */
|
|
1608
|
+
return /* @__PURE__ */ import_react9.default.createElement(import_react_native7.Animated.View, { ...others, style: [{ width }, ...styles], ref }, children);
|
|
1515
1609
|
}
|
|
1516
1610
|
);
|
|
1517
1611
|
ProgressItem.displayName = "ProgressItem" /* ProgressItem */;
|
|
1518
1612
|
var ProgressItem_native_default = ProgressItem;
|
|
1519
1613
|
|
|
1520
1614
|
// components/progress/radial/ProgressRadial.native.tsx
|
|
1521
|
-
var
|
|
1522
|
-
var
|
|
1523
|
-
var import_react_native9 = require("react-native");
|
|
1615
|
+
var React10 = __toESM(require("react"));
|
|
1616
|
+
var import_react_native10 = require("react-native");
|
|
1524
1617
|
|
|
1525
1618
|
// components/progress/radial/react-native-circular-progress/CircularProgress.tsx
|
|
1526
|
-
var
|
|
1619
|
+
var React8 = __toESM(require("react"));
|
|
1527
1620
|
var import_prop_types = __toESM(require_prop_types());
|
|
1528
|
-
var
|
|
1621
|
+
var import_react_native8 = require("react-native");
|
|
1529
1622
|
var import_react_native_svg = require("react-native-svg");
|
|
1530
|
-
var CircularProgress = class extends
|
|
1623
|
+
var CircularProgress = class extends React8.PureComponent {
|
|
1531
1624
|
constructor() {
|
|
1532
1625
|
super(...arguments);
|
|
1533
1626
|
__publicField(this, "clampFill", (fill) => Math.min(100, Math.max(0, fill)));
|
|
@@ -1631,14 +1724,14 @@ var CircularProgress = class extends React7.PureComponent {
|
|
|
1631
1724
|
};
|
|
1632
1725
|
const strokeDasharrayTint = dashedTint.gap > 0 ? Object.values(dashedTint).map((value) => parseInt(value)) : null;
|
|
1633
1726
|
const strokeDasharrayBackground = dashedBackground.gap > 0 ? Object.values(dashedBackground).map((value) => parseInt(value)) : null;
|
|
1634
|
-
return /* @__PURE__ */
|
|
1727
|
+
return /* @__PURE__ */ React8.createElement(import_react_native8.View, { style }, /* @__PURE__ */ React8.createElement(import_react_native_svg.Svg, { width: size + padding, height: size + padding }, /* @__PURE__ */ React8.createElement(
|
|
1635
1728
|
import_react_native_svg.G,
|
|
1636
1729
|
{
|
|
1637
1730
|
rotation,
|
|
1638
1731
|
originX: (size + padding) / 2,
|
|
1639
1732
|
originY: (size + padding) / 2
|
|
1640
1733
|
},
|
|
1641
|
-
backgroundColor && /* @__PURE__ */
|
|
1734
|
+
backgroundColor && /* @__PURE__ */ React8.createElement(
|
|
1642
1735
|
import_react_native_svg.Path,
|
|
1643
1736
|
{
|
|
1644
1737
|
d: backgroundPath,
|
|
@@ -1649,7 +1742,7 @@ var CircularProgress = class extends React7.PureComponent {
|
|
|
1649
1742
|
fill: "transparent"
|
|
1650
1743
|
}
|
|
1651
1744
|
),
|
|
1652
|
-
fill > 0 && /* @__PURE__ */
|
|
1745
|
+
fill > 0 && /* @__PURE__ */ React8.createElement(
|
|
1653
1746
|
import_react_native_svg.Path,
|
|
1654
1747
|
{
|
|
1655
1748
|
d: circlePath,
|
|
@@ -1660,7 +1753,7 @@ var CircularProgress = class extends React7.PureComponent {
|
|
|
1660
1753
|
fill: "transparent"
|
|
1661
1754
|
}
|
|
1662
1755
|
),
|
|
1663
|
-
secondFill && /* @__PURE__ */
|
|
1756
|
+
secondFill && /* @__PURE__ */ React8.createElement(
|
|
1664
1757
|
import_react_native_svg.Path,
|
|
1665
1758
|
{
|
|
1666
1759
|
d: secondCirclePath,
|
|
@@ -1672,14 +1765,14 @@ var CircularProgress = class extends React7.PureComponent {
|
|
|
1672
1765
|
}
|
|
1673
1766
|
),
|
|
1674
1767
|
cap
|
|
1675
|
-
)), children && /* @__PURE__ */
|
|
1768
|
+
)), children && /* @__PURE__ */ React8.createElement(import_react_native8.View, { style: localChildrenContainerStyle }, children(fill)));
|
|
1676
1769
|
}
|
|
1677
1770
|
};
|
|
1678
1771
|
CircularProgress.propTypes = {
|
|
1679
1772
|
style: import_prop_types.default.object,
|
|
1680
1773
|
size: import_prop_types.default.oneOfType([
|
|
1681
1774
|
import_prop_types.default.number,
|
|
1682
|
-
import_prop_types.default.instanceOf(
|
|
1775
|
+
import_prop_types.default.instanceOf(import_react_native8.Animated.Value)
|
|
1683
1776
|
]).isRequired,
|
|
1684
1777
|
fill: import_prop_types.default.number.isRequired,
|
|
1685
1778
|
secondFill: import_prop_types.default.number,
|
|
@@ -1712,14 +1805,14 @@ CircularProgress.defaultProps = {
|
|
|
1712
1805
|
|
|
1713
1806
|
// components/progress/radial/react-native-circular-progress/AnimatedCircularProgress.tsx
|
|
1714
1807
|
var import_prop_types2 = __toESM(require_prop_types());
|
|
1715
|
-
var
|
|
1716
|
-
var
|
|
1717
|
-
var AnimatedProgress =
|
|
1718
|
-
var AnimatedCircularProgress = class extends
|
|
1808
|
+
var React9 = __toESM(require("react"));
|
|
1809
|
+
var import_react_native9 = require("react-native");
|
|
1810
|
+
var AnimatedProgress = import_react_native9.Animated.createAnimatedComponent(CircularProgress);
|
|
1811
|
+
var AnimatedCircularProgress = class extends React9.PureComponent {
|
|
1719
1812
|
constructor(props) {
|
|
1720
1813
|
super(props);
|
|
1721
1814
|
this.state = {
|
|
1722
|
-
fillAnimation: new
|
|
1815
|
+
fillAnimation: new import_react_native9.Animated.Value(props.prefill)
|
|
1723
1816
|
};
|
|
1724
1817
|
if (props.onFillChange) {
|
|
1725
1818
|
this.state.fillAnimation.addListener(({ value }) => props.onFillChange(value));
|
|
@@ -1736,7 +1829,7 @@ var AnimatedCircularProgress = class extends React8.PureComponent {
|
|
|
1736
1829
|
reAnimate(prefill, toVal, dur, ease) {
|
|
1737
1830
|
this.setState(
|
|
1738
1831
|
{
|
|
1739
|
-
fillAnimation: new
|
|
1832
|
+
fillAnimation: new import_react_native9.Animated.Value(prefill)
|
|
1740
1833
|
},
|
|
1741
1834
|
() => this.animate(toVal, dur, ease)
|
|
1742
1835
|
);
|
|
@@ -1746,7 +1839,7 @@ var AnimatedCircularProgress = class extends React8.PureComponent {
|
|
|
1746
1839
|
const duration = dur || this.props.duration;
|
|
1747
1840
|
const easing = ease || this.props.easing;
|
|
1748
1841
|
const { useNativeDriver } = this.props;
|
|
1749
|
-
const anim =
|
|
1842
|
+
const anim = import_react_native9.Animated.timing(this.state.fillAnimation, {
|
|
1750
1843
|
useNativeDriver,
|
|
1751
1844
|
toValue,
|
|
1752
1845
|
easing,
|
|
@@ -1767,7 +1860,7 @@ var AnimatedCircularProgress = class extends React8.PureComponent {
|
|
|
1767
1860
|
}
|
|
1768
1861
|
render() {
|
|
1769
1862
|
const { fill, prefill, ...other } = this.props;
|
|
1770
|
-
return /* @__PURE__ */
|
|
1863
|
+
return /* @__PURE__ */ React9.createElement(AnimatedProgress, { ...other, fill: this.state.fillAnimation, tintColor: this.animateColor() });
|
|
1771
1864
|
}
|
|
1772
1865
|
};
|
|
1773
1866
|
AnimatedCircularProgress.propTypes = {
|
|
@@ -1780,13 +1873,13 @@ AnimatedCircularProgress.propTypes = {
|
|
|
1780
1873
|
};
|
|
1781
1874
|
AnimatedCircularProgress.defaultProps = {
|
|
1782
1875
|
duration: 500,
|
|
1783
|
-
easing:
|
|
1876
|
+
easing: import_react_native9.Easing.out(import_react_native9.Easing.ease),
|
|
1784
1877
|
prefill: 0,
|
|
1785
1878
|
useNativeDriver: false
|
|
1786
1879
|
};
|
|
1787
1880
|
|
|
1788
1881
|
// components/progress/radial/ProgressRadial.native.tsx
|
|
1789
|
-
var ProgressRadial =
|
|
1882
|
+
var ProgressRadial = React10.forwardRef(({
|
|
1790
1883
|
children,
|
|
1791
1884
|
value,
|
|
1792
1885
|
label,
|
|
@@ -1807,7 +1900,7 @@ var ProgressRadial = React9.forwardRef(({
|
|
|
1807
1900
|
const secondFillColor = { secondFillTintColor: getColorStyle(secondValueColor || "MAIN" /* MAIN */) };
|
|
1808
1901
|
const progressRadialWidth = 100;
|
|
1809
1902
|
const progressRadialSkeletonRadius = 50;
|
|
1810
|
-
const styles =
|
|
1903
|
+
const styles = import_react_native10.StyleSheet.create({
|
|
1811
1904
|
container: {
|
|
1812
1905
|
alignSelf: getAlignStyle(align)
|
|
1813
1906
|
},
|
|
@@ -1850,14 +1943,22 @@ var ProgressRadial = React9.forwardRef(({
|
|
|
1850
1943
|
overflow: "hidden"
|
|
1851
1944
|
}
|
|
1852
1945
|
});
|
|
1853
|
-
const ProgressRadialSkeleton = () => /* @__PURE__ */
|
|
1946
|
+
const ProgressRadialSkeleton = () => /* @__PURE__ */ React10.createElement(
|
|
1947
|
+
Skeleton_native_default,
|
|
1948
|
+
{
|
|
1949
|
+
style: styles.skeleton,
|
|
1950
|
+
width: progressRadialWidth,
|
|
1951
|
+
height: progressRadialWidth,
|
|
1952
|
+
borderRadius: progressRadialSkeletonRadius
|
|
1953
|
+
}
|
|
1954
|
+
);
|
|
1854
1955
|
if (skeleton) {
|
|
1855
|
-
return /* @__PURE__ */
|
|
1956
|
+
return /* @__PURE__ */ React10.createElement(ProgressRadialSkeleton, null);
|
|
1856
1957
|
}
|
|
1857
1958
|
if (disk) {
|
|
1858
|
-
return /* @__PURE__ */
|
|
1959
|
+
return /* @__PURE__ */ React10.createElement(import_react_native10.View, { ref, style: styles.container }, /* @__PURE__ */ React10.createElement(import_react_native10.View, { style: [styles.disk, styles.alignCenter], ...others }, label && typeof label.valueOf() === "string" ? /* @__PURE__ */ React10.createElement(Text_native_default, { style: styles.labelDisk, level: 2 /* TWO */ }, label || "") : label, description && typeof description.valueOf() === "string" ? /* @__PURE__ */ React10.createElement(Text_native_default, { style: styles.descriptionDisk, level: 3 /* THREE */, typo: "has-text-centered" /* TEXT_CENTERED */ }, description || "") : description));
|
|
1859
1960
|
}
|
|
1860
|
-
return /* @__PURE__ */
|
|
1961
|
+
return /* @__PURE__ */ React10.createElement(import_react_native10.View, { ref, style: styles.container, ...others }, /* @__PURE__ */ React10.createElement(
|
|
1861
1962
|
AnimatedCircularProgress,
|
|
1862
1963
|
{
|
|
1863
1964
|
size: 90,
|
|
@@ -1869,7 +1970,7 @@ var ProgressRadial = React9.forwardRef(({
|
|
|
1869
1970
|
...secondFill,
|
|
1870
1971
|
...secondFillColor
|
|
1871
1972
|
},
|
|
1872
|
-
() => /* @__PURE__ */
|
|
1973
|
+
() => /* @__PURE__ */ React10.createElement(import_react_native10.View, { style: styles.alignCenter }, label && typeof label.valueOf() === "string" ? /* @__PURE__ */ React10.createElement(Text_native_default, { style: styles.label, level: 2 /* TWO */ }, label || "") : /* @__PURE__ */ React10.createElement(import_react_native10.View, null, label), description && typeof description.valueOf() === "string" ? /* @__PURE__ */ React10.createElement(Text_native_default, { style: styles.description, level: 4 /* FOUR */ }, description || "") : /* @__PURE__ */ React10.createElement(import_react_native10.View, null, description || children))
|
|
1873
1974
|
));
|
|
1874
1975
|
});
|
|
1875
1976
|
ProgressRadial.displayName = "ProgressRadial" /* ProgressRadial */;
|