@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
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
BoxContext
|
|
4
4
|
} from "./chunk-652YVC7W.mjs";
|
|
5
|
+
import {
|
|
6
|
+
StatesContext
|
|
7
|
+
} from "./chunk-CWIO3GEP.mjs";
|
|
5
8
|
import {
|
|
6
9
|
getColorStyle
|
|
7
10
|
} from "./chunk-E4YRRUI3.mjs";
|
|
8
11
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
Skeleton_native_default
|
|
13
|
+
} from "./chunk-7DJ5V2J7.mjs";
|
|
11
14
|
|
|
12
15
|
// components/box/Box.native.tsx
|
|
13
16
|
import React, { useState } from "react";
|
|
14
|
-
import
|
|
15
|
-
import { ImageBackground, Platform, StyleSheet, TouchableOpacity, View } from "react-native";
|
|
17
|
+
import { ImageBackground, StyleSheet, TouchableOpacity, View } from "react-native";
|
|
16
18
|
var Box = React.forwardRef(
|
|
17
19
|
({
|
|
18
20
|
children,
|
|
@@ -81,7 +83,17 @@ var Box = React.forwardRef(
|
|
|
81
83
|
}
|
|
82
84
|
});
|
|
83
85
|
const boxTestId = "NotSpecified";
|
|
84
|
-
const BoxSkeleton = () => /* @__PURE__ */ React.createElement(
|
|
86
|
+
const BoxSkeleton = () => /* @__PURE__ */ React.createElement(
|
|
87
|
+
Skeleton_native_default,
|
|
88
|
+
{
|
|
89
|
+
style: styles.skeleton,
|
|
90
|
+
width: "100%",
|
|
91
|
+
height: 50,
|
|
92
|
+
borderRadius: boxRadius,
|
|
93
|
+
testID: "skeleton"
|
|
94
|
+
},
|
|
95
|
+
children
|
|
96
|
+
);
|
|
85
97
|
if (skeleton) {
|
|
86
98
|
return /* @__PURE__ */ React.createElement(BoxSkeleton, null);
|
|
87
99
|
}
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
} from "./chunk-DNDMAHWG.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Text_native_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OSWW7RO6.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Spacer_native_default
|
|
10
10
|
} from "./chunk-54DJB6AO.mjs";
|
|
11
11
|
import {
|
|
12
12
|
Icon_native_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NEM7FT22.mjs";
|
|
14
14
|
import {
|
|
15
15
|
getColorStyle
|
|
16
16
|
} from "./chunk-E4YRRUI3.mjs";
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Calendar_native_default
|
|
4
|
+
} from "./chunk-GJJJLJXB.mjs";
|
|
5
|
+
import {
|
|
6
|
+
Text_native_default
|
|
7
|
+
} from "./chunk-OSWW7RO6.mjs";
|
|
8
|
+
import {
|
|
9
|
+
Icon_native_default
|
|
10
|
+
} from "./chunk-NEM7FT22.mjs";
|
|
11
|
+
import {
|
|
12
|
+
getColorStyle
|
|
13
|
+
} from "./chunk-E4YRRUI3.mjs";
|
|
14
|
+
|
|
15
|
+
// components/datepicker/DatePicker.native.tsx
|
|
16
|
+
import React, { forwardRef, useCallback, useEffect, useRef, useState } from "react";
|
|
17
|
+
import { Modal, Platform, StyleSheet, TextInput, TouchableOpacity, View } from "react-native";
|
|
18
|
+
var DatePicker = forwardRef(
|
|
19
|
+
({
|
|
20
|
+
onChange,
|
|
21
|
+
value,
|
|
22
|
+
minDate,
|
|
23
|
+
maxDate,
|
|
24
|
+
label,
|
|
25
|
+
sample,
|
|
26
|
+
required,
|
|
27
|
+
help,
|
|
28
|
+
status,
|
|
29
|
+
disabled,
|
|
30
|
+
disabledDates,
|
|
31
|
+
testId,
|
|
32
|
+
name,
|
|
33
|
+
...others
|
|
34
|
+
}, ref) => {
|
|
35
|
+
const [inputText, setInputText] = useState("");
|
|
36
|
+
const [isCalendarVisible, setIsCalendarVisible] = useState(false);
|
|
37
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
38
|
+
const previousTextRef = useRef("");
|
|
39
|
+
const calendarValue = value ? new Date(value) : void 0;
|
|
40
|
+
const formatDateForDisplay = useCallback((dateString) => {
|
|
41
|
+
if (!dateString) return "";
|
|
42
|
+
try {
|
|
43
|
+
const date = new Date(dateString);
|
|
44
|
+
if (isNaN(date.getTime())) return "";
|
|
45
|
+
const day = date.getDate().toString().padStart(2, "0");
|
|
46
|
+
const month = (date.getMonth() + 1).toString().padStart(2, "0");
|
|
47
|
+
const year = date.getFullYear();
|
|
48
|
+
return `${day}/${month}/${year}`;
|
|
49
|
+
} catch {
|
|
50
|
+
return "";
|
|
51
|
+
}
|
|
52
|
+
}, []);
|
|
53
|
+
const parseManualInput = useCallback(
|
|
54
|
+
(input) => {
|
|
55
|
+
const cleaned = input.replace(/[^\d/]/g, "");
|
|
56
|
+
const dateRegex = /^(\d{1,2})\/(\d{1,2})\/(\d{4})$/;
|
|
57
|
+
const match = cleaned.match(dateRegex);
|
|
58
|
+
if (!match) return null;
|
|
59
|
+
const [, day, month, year] = match;
|
|
60
|
+
const dayNum = parseInt(day, 10);
|
|
61
|
+
const monthNum = parseInt(month, 10);
|
|
62
|
+
const yearNum = parseInt(year, 10);
|
|
63
|
+
if (dayNum < 1 || dayNum > 31 || monthNum < 1 || monthNum > 12) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
const date = new Date(yearNum, monthNum - 1, dayNum);
|
|
67
|
+
if (date.getDate() !== dayNum || date.getMonth() !== monthNum - 1 || date.getFullYear() !== yearNum) {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
if (minDate && date < new Date(minDate)) return null;
|
|
71
|
+
if (maxDate && date > new Date(maxDate)) return null;
|
|
72
|
+
const formattedMonth = monthNum.toString().padStart(2, "0");
|
|
73
|
+
const formattedDay = dayNum.toString().padStart(2, "0");
|
|
74
|
+
return `${yearNum}-${formattedMonth}-${formattedDay}`;
|
|
75
|
+
},
|
|
76
|
+
[minDate, maxDate]
|
|
77
|
+
);
|
|
78
|
+
const isDateInRange = useCallback(
|
|
79
|
+
(date) => {
|
|
80
|
+
if (minDate && date < new Date(minDate)) return false;
|
|
81
|
+
if (maxDate && date > new Date(maxDate)) return false;
|
|
82
|
+
return true;
|
|
83
|
+
},
|
|
84
|
+
[minDate, maxDate]
|
|
85
|
+
);
|
|
86
|
+
const handleCalendarChange = useCallback(
|
|
87
|
+
(selectedDate) => {
|
|
88
|
+
const date = selectedDate;
|
|
89
|
+
if (!isDateInRange(date)) return;
|
|
90
|
+
const year = date.getFullYear();
|
|
91
|
+
const month = (date.getMonth() + 1).toString().padStart(2, "0");
|
|
92
|
+
const day = date.getDate().toString().padStart(2, "0");
|
|
93
|
+
const formattedDate = `${year}-${month}-${day}`;
|
|
94
|
+
setIsCalendarVisible(false);
|
|
95
|
+
setIsFocused(false);
|
|
96
|
+
if (onChange) {
|
|
97
|
+
onChange(formattedDate);
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
[onChange, isDateInRange, formatDateForDisplay]
|
|
101
|
+
);
|
|
102
|
+
const handleManualInput = useCallback(
|
|
103
|
+
(text) => {
|
|
104
|
+
const previousText = previousTextRef.current;
|
|
105
|
+
const isDeleting = text.length < previousText.length;
|
|
106
|
+
if (isDeleting) {
|
|
107
|
+
const cleaned2 = text.replace(/[^\d/]/g, "");
|
|
108
|
+
let formatted2 = cleaned2;
|
|
109
|
+
if (formatted2.endsWith("/")) {
|
|
110
|
+
formatted2 = formatted2.slice(0, -1);
|
|
111
|
+
}
|
|
112
|
+
previousTextRef.current = formatted2;
|
|
113
|
+
setInputText(formatted2);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const cleaned = text.replace(/[^\d/]/g, "");
|
|
117
|
+
const limited = cleaned.slice(0, 10);
|
|
118
|
+
const numbersOnly = limited.replace(/\//g, "");
|
|
119
|
+
let formatted = "";
|
|
120
|
+
if (numbersOnly.length === 1) {
|
|
121
|
+
const firstDigit = parseInt(numbersOnly[0]);
|
|
122
|
+
if (firstDigit > 3) {
|
|
123
|
+
formatted = "0" + numbersOnly[0] + "/";
|
|
124
|
+
} else {
|
|
125
|
+
formatted = numbersOnly;
|
|
126
|
+
}
|
|
127
|
+
} else if (numbersOnly.length === 2) {
|
|
128
|
+
const firstTwoDigits = parseInt(numbersOnly.slice(0, 2));
|
|
129
|
+
if (firstTwoDigits > 31) {
|
|
130
|
+
formatted = "0" + numbersOnly[0] + "/0" + numbersOnly[1];
|
|
131
|
+
} else {
|
|
132
|
+
formatted = numbersOnly.slice(0, 2) + "/";
|
|
133
|
+
}
|
|
134
|
+
} else if (numbersOnly.length === 3) {
|
|
135
|
+
const dayPart = numbersOnly.slice(0, 2);
|
|
136
|
+
const monthDigit = parseInt(numbersOnly[2]);
|
|
137
|
+
if (monthDigit > 1) {
|
|
138
|
+
formatted = dayPart + "/0" + numbersOnly[2] + "/";
|
|
139
|
+
} else {
|
|
140
|
+
formatted = dayPart + "/" + numbersOnly[2];
|
|
141
|
+
}
|
|
142
|
+
} else if (numbersOnly.length >= 4) {
|
|
143
|
+
const dayPart = numbersOnly.slice(0, 2);
|
|
144
|
+
const monthPart = numbersOnly.slice(2, 4);
|
|
145
|
+
const monthValue = parseInt(monthPart);
|
|
146
|
+
if (monthValue > 12) {
|
|
147
|
+
formatted = dayPart + "/0" + numbersOnly[2] + "/" + numbersOnly[3];
|
|
148
|
+
} else {
|
|
149
|
+
formatted = dayPart + "/" + monthPart;
|
|
150
|
+
if (numbersOnly.length > 4) {
|
|
151
|
+
formatted += "/" + numbersOnly.slice(4);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
previousTextRef.current = formatted;
|
|
156
|
+
setInputText(formatted);
|
|
157
|
+
if (numbersOnly.length >= 5 && onChange) {
|
|
158
|
+
const dayPart = numbersOnly.slice(0, 2);
|
|
159
|
+
const monthPart = numbersOnly.slice(2, 4);
|
|
160
|
+
const yearPart = numbersOnly.slice(4);
|
|
161
|
+
const currentYear = (/* @__PURE__ */ new Date()).getFullYear().toString();
|
|
162
|
+
let yearToTest = yearPart;
|
|
163
|
+
if (yearPart.length < 4) {
|
|
164
|
+
if (yearPart.length === 1) {
|
|
165
|
+
yearToTest = currentYear.slice(0, 3) + yearPart;
|
|
166
|
+
} else if (yearPart.length === 2) {
|
|
167
|
+
yearToTest = currentYear.slice(0, 2) + yearPart;
|
|
168
|
+
} else if (yearPart.length === 3) {
|
|
169
|
+
yearToTest = yearPart + currentYear.slice(3);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
const dayNum = parseInt(dayPart, 10);
|
|
173
|
+
const monthNum = parseInt(monthPart, 10);
|
|
174
|
+
const yearNum = parseInt(yearToTest, 10);
|
|
175
|
+
if (dayNum >= 1 && dayNum <= 31 && monthNum >= 1 && monthNum <= 12 && yearNum >= 1e3) {
|
|
176
|
+
const formattedDate = `${yearNum}-${monthNum.toString().padStart(2, "0")}-${dayNum.toString().padStart(2, "0")}`;
|
|
177
|
+
onChange(formattedDate);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
[parseManualInput, onChange]
|
|
182
|
+
);
|
|
183
|
+
const handleInputBlur = useCallback(() => {
|
|
184
|
+
setIsFocused(false);
|
|
185
|
+
if (inputText.trim() === "") {
|
|
186
|
+
if (onChange) {
|
|
187
|
+
onChange(null);
|
|
188
|
+
}
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
const parsedDate = parseManualInput(inputText);
|
|
192
|
+
if (parsedDate && onChange) {
|
|
193
|
+
onChange(parsedDate);
|
|
194
|
+
} else {
|
|
195
|
+
const previousFormatted = formatDateForDisplay(value || null);
|
|
196
|
+
setInputText(previousFormatted);
|
|
197
|
+
}
|
|
198
|
+
}, [inputText, parseManualInput, onChange, value, formatDateForDisplay]);
|
|
199
|
+
const handleOpenCalendar = useCallback(() => {
|
|
200
|
+
if (disabled) return;
|
|
201
|
+
setIsCalendarVisible(true);
|
|
202
|
+
}, [disabled]);
|
|
203
|
+
const handleCloseCalendar = useCallback(() => {
|
|
204
|
+
setIsCalendarVisible(false);
|
|
205
|
+
}, []);
|
|
206
|
+
const handleInputFocus = useCallback(() => {
|
|
207
|
+
if (disabled) return;
|
|
208
|
+
setIsFocused(true);
|
|
209
|
+
}, [disabled]);
|
|
210
|
+
useEffect(() => {
|
|
211
|
+
const formatted = formatDateForDisplay(value || null);
|
|
212
|
+
if (!isFocused) {
|
|
213
|
+
setInputText(formatted);
|
|
214
|
+
previousTextRef.current = formatted;
|
|
215
|
+
}
|
|
216
|
+
}, [value, formatDateForDisplay, isFocused]);
|
|
217
|
+
const styles = StyleSheet.create({
|
|
218
|
+
container: {
|
|
219
|
+
width: "100%"
|
|
220
|
+
},
|
|
221
|
+
label: {
|
|
222
|
+
fontSize: 14,
|
|
223
|
+
fontWeight: "500",
|
|
224
|
+
color: getColorStyle("MAIN" /* MAIN */),
|
|
225
|
+
marginBottom: 4
|
|
226
|
+
},
|
|
227
|
+
sample: {
|
|
228
|
+
fontSize: 12,
|
|
229
|
+
color: getColorStyle("NEUTRAL" /* NEUTRAL */),
|
|
230
|
+
marginBottom: 8
|
|
231
|
+
},
|
|
232
|
+
inputContainer: {
|
|
233
|
+
flexDirection: "row",
|
|
234
|
+
alignItems: "center",
|
|
235
|
+
backgroundColor: disabled ? getColorStyle("DISABLED_FADE" /* DISABLED_FADE */) : getColorStyle("WHITE" /* BACKGROUND */),
|
|
236
|
+
borderWidth: isFocused ? 2 : 1,
|
|
237
|
+
borderColor: status === "success" && getColorStyle("SUCCESS" /* SUCCESS */) || status === "warning" && getColorStyle("WARNING" /* WARNING */) || status === "error" && getColorStyle("ERROR" /* ERROR */) || isFocused && getColorStyle("MAIN" /* MAIN */) || getColorStyle("NEUTRAL" /* NEUTRAL */),
|
|
238
|
+
borderRadius: 3,
|
|
239
|
+
height: 46,
|
|
240
|
+
paddingHorizontal: 10
|
|
241
|
+
},
|
|
242
|
+
input: {
|
|
243
|
+
flex: 1,
|
|
244
|
+
fontSize: 16,
|
|
245
|
+
color: disabled ? getColorStyle("DISABLED" /* DISABLED */) : getColorStyle("MAIN" /* MAIN */),
|
|
246
|
+
paddingVertical: Platform.OS === "ios" ? 12 : 8
|
|
247
|
+
},
|
|
248
|
+
iconContainer: {
|
|
249
|
+
width: 32,
|
|
250
|
+
height: 32,
|
|
251
|
+
alignItems: "center",
|
|
252
|
+
justifyContent: "center"
|
|
253
|
+
},
|
|
254
|
+
help: {
|
|
255
|
+
fontSize: 12,
|
|
256
|
+
marginTop: 4,
|
|
257
|
+
paddingLeft: 4,
|
|
258
|
+
color: status === "success" && getColorStyle("SUCCESS" /* SUCCESS */) || status === "warning" && getColorStyle("WARNING" /* WARNING */) || status === "error" && getColorStyle("ERROR" /* ERROR */) || getColorStyle("NEUTRAL" /* NEUTRAL */)
|
|
259
|
+
},
|
|
260
|
+
modalOverlay: {
|
|
261
|
+
flex: 1,
|
|
262
|
+
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
263
|
+
justifyContent: "center",
|
|
264
|
+
alignItems: "center"
|
|
265
|
+
},
|
|
266
|
+
modalContent: {
|
|
267
|
+
paddingBottom: 16,
|
|
268
|
+
width: "90%",
|
|
269
|
+
shadowColor: "#000",
|
|
270
|
+
shadowOffset: {
|
|
271
|
+
width: 0,
|
|
272
|
+
height: 2
|
|
273
|
+
},
|
|
274
|
+
shadowOpacity: 0.25,
|
|
275
|
+
shadowRadius: 8,
|
|
276
|
+
elevation: 5
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
return /* @__PURE__ */ React.createElement(View, { ref, style: styles.container, testID: testId, ...others }, label && /* @__PURE__ */ React.createElement(View, { style: { flexDirection: "row", alignItems: "center" } }, /* @__PURE__ */ React.createElement(Text_native_default, { style: styles.label }, label), required && /* @__PURE__ */ React.createElement(Text_native_default, { style: { color: getColorStyle("ERROR" /* ERROR */), marginLeft: 4 } }, "*")), sample && /* @__PURE__ */ React.createElement(Text_native_default, { level: 3 /* THREE */, style: styles.sample }, sample), /* @__PURE__ */ React.createElement(View, { style: styles.inputContainer }, /* @__PURE__ */ React.createElement(
|
|
280
|
+
TextInput,
|
|
281
|
+
{
|
|
282
|
+
style: styles.input,
|
|
283
|
+
value: inputText,
|
|
284
|
+
placeholder: "jj/mm/aaaa",
|
|
285
|
+
placeholderTextColor: getColorStyle("NEUTRAL" /* NEUTRAL */),
|
|
286
|
+
editable: !disabled,
|
|
287
|
+
keyboardType: "numeric",
|
|
288
|
+
onFocus: handleInputFocus,
|
|
289
|
+
onBlur: handleInputBlur,
|
|
290
|
+
onChangeText: handleManualInput,
|
|
291
|
+
maxLength: 10
|
|
292
|
+
}
|
|
293
|
+
), /* @__PURE__ */ React.createElement(
|
|
294
|
+
TouchableOpacity,
|
|
295
|
+
{
|
|
296
|
+
style: styles.iconContainer,
|
|
297
|
+
onPress: handleOpenCalendar,
|
|
298
|
+
disabled,
|
|
299
|
+
activeOpacity: 0.7
|
|
300
|
+
},
|
|
301
|
+
/* @__PURE__ */ React.createElement(Icon_native_default, { name: "tri-calendar", size: "small" /* SMALL */, color: "MAIN" /* MAIN */ })
|
|
302
|
+
)), help && /* @__PURE__ */ React.createElement(Text_native_default, { style: styles.help }, help), /* @__PURE__ */ React.createElement(Modal, { visible: isCalendarVisible, transparent: true, animationType: "fade", onRequestClose: handleCloseCalendar }, /* @__PURE__ */ React.createElement(View, { style: styles.modalOverlay }, /* @__PURE__ */ React.createElement(TouchableOpacity, { style: StyleSheet.absoluteFillObject, activeOpacity: 1, onPress: handleCloseCalendar }), /* @__PURE__ */ React.createElement(View, { style: styles.modalContent }, /* @__PURE__ */ React.createElement(
|
|
303
|
+
Calendar_native_default,
|
|
304
|
+
{
|
|
305
|
+
value: calendarValue,
|
|
306
|
+
minDate: minDate ? new Date(minDate) : void 0,
|
|
307
|
+
maxDate: maxDate ? new Date(maxDate) : void 0,
|
|
308
|
+
disabledDates,
|
|
309
|
+
onChange: handleCalendarChange,
|
|
310
|
+
disabled
|
|
311
|
+
}
|
|
312
|
+
)))));
|
|
313
|
+
}
|
|
314
|
+
);
|
|
315
|
+
DatePicker.displayName = "DatePicker" /* DatePicker */;
|
|
316
|
+
var DatePicker_native_default = DatePicker;
|
|
317
|
+
|
|
318
|
+
export {
|
|
319
|
+
DatePicker_native_default
|
|
320
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Text_native_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OSWW7RO6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Icon_native_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NEM7FT22.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getColorStyle
|
|
10
10
|
} from "./chunk-E4YRRUI3.mjs";
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
StatesContext
|
|
4
|
+
} from "./chunk-CWIO3GEP.mjs";
|
|
2
5
|
import {
|
|
3
6
|
TrilogyThemeContext,
|
|
4
7
|
getColorStyle
|
|
5
8
|
} from "./chunk-E4YRRUI3.mjs";
|
|
6
9
|
import {
|
|
7
|
-
StatesContext
|
|
8
|
-
} from "./chunk-CWIO3GEP.mjs";
|
|
9
|
-
import {
|
|
10
|
-
isAndroid,
|
|
11
10
|
isIOS
|
|
12
11
|
} from "./chunk-R6PFY5VS.mjs";
|
|
12
|
+
import {
|
|
13
|
+
Skeleton_native_default
|
|
14
|
+
} from "./chunk-7DJ5V2J7.mjs";
|
|
13
15
|
import {
|
|
14
16
|
getAlignStyle
|
|
15
17
|
} from "./chunk-CD6DMMCL.mjs";
|
|
16
18
|
|
|
17
19
|
// components/icon/Icon.native.tsx
|
|
18
20
|
import React, { useContext } from "react";
|
|
19
|
-
import ContentLoader, { Circle } from "react-content-loader/native";
|
|
20
21
|
import { StyleSheet, TouchableOpacity, View } from "react-native";
|
|
21
22
|
import { WithLocalSvg } from "react-native-svg/css";
|
|
22
23
|
var Icon = React.forwardRef(
|
|
@@ -74,7 +75,16 @@ var Icon = React.forwardRef(
|
|
|
74
75
|
justifyContent: "center"
|
|
75
76
|
}
|
|
76
77
|
});
|
|
77
|
-
const IconSkeleton = () => /* @__PURE__ */ React.createElement(
|
|
78
|
+
const IconSkeleton = () => /* @__PURE__ */ React.createElement(
|
|
79
|
+
Skeleton_native_default,
|
|
80
|
+
{
|
|
81
|
+
style: styles.skeleton,
|
|
82
|
+
width: circledWidth,
|
|
83
|
+
height: circledWidth,
|
|
84
|
+
borderRadius: iconSkeletonRadius,
|
|
85
|
+
testID: "skeleton-id"
|
|
86
|
+
}
|
|
87
|
+
);
|
|
78
88
|
if (skeleton) {
|
|
79
89
|
return /* @__PURE__ */ React.createElement(IconSkeleton, null);
|
|
80
90
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
setTypographyColor
|
|
4
|
+
} from "./chunk-WVL5S3CD.mjs";
|
|
5
|
+
import {
|
|
6
|
+
getTypographyBoldStyle
|
|
7
|
+
} from "./chunk-3LXODEBD.mjs";
|
|
8
|
+
import {
|
|
9
|
+
StatesContext
|
|
10
|
+
} from "./chunk-CWIO3GEP.mjs";
|
|
11
|
+
import {
|
|
12
|
+
getColorStyle
|
|
13
|
+
} from "./chunk-E4YRRUI3.mjs";
|
|
14
|
+
import {
|
|
15
|
+
Skeleton_native_default
|
|
16
|
+
} from "./chunk-7DJ5V2J7.mjs";
|
|
17
|
+
import {
|
|
18
|
+
setTypographyAlign
|
|
19
|
+
} from "./chunk-IGMJNGTZ.mjs";
|
|
20
|
+
|
|
21
|
+
// components/text/Text.native.tsx
|
|
22
|
+
import React, { useContext } from "react";
|
|
23
|
+
import { StyleSheet, Text as TextNative } from "react-native";
|
|
24
|
+
var Text = React.forwardRef(
|
|
25
|
+
({ children, level, style, inverted, typo, skeleton, accessibilityLabel, numberOfLines = 0, ...others }, ref) => {
|
|
26
|
+
const statesContext = useContext(StatesContext);
|
|
27
|
+
const textLevels = (level2) => {
|
|
28
|
+
return level2 && level2 == 1 /* ONE */ && 16 || level2 && level2 == 2 /* TWO */ && 14 || level2 && level2 == 3 /* THREE */ && 12 || level2 && level2 == 4 /* FOUR */ && 10 || 14;
|
|
29
|
+
};
|
|
30
|
+
const styles = StyleSheet.create({
|
|
31
|
+
text: {
|
|
32
|
+
fontFamily: getTypographyBoldStyle(typo),
|
|
33
|
+
fontSize: textLevels(level),
|
|
34
|
+
color: setTypographyColor(typo, inverted || statesContext.inverted, skeleton),
|
|
35
|
+
textAlign: setTypographyAlign(typo),
|
|
36
|
+
lineHeight: textLevels(level) * 1.2,
|
|
37
|
+
textDecorationLine: "none",
|
|
38
|
+
alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start"
|
|
39
|
+
},
|
|
40
|
+
skeleton: {
|
|
41
|
+
minWidth: 10,
|
|
42
|
+
alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start",
|
|
43
|
+
borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3,
|
|
44
|
+
borderWidth: 0.1,
|
|
45
|
+
borderColor: getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */),
|
|
46
|
+
overflow: "hidden",
|
|
47
|
+
height: textLevels(level)
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
const textAccessibilityLabel = accessibilityLabel ? accessibilityLabel : typeof children === "string" ? children : void 0;
|
|
51
|
+
let textView = /* @__PURE__ */ React.createElement(
|
|
52
|
+
TextNative,
|
|
53
|
+
{
|
|
54
|
+
ref,
|
|
55
|
+
numberOfLines,
|
|
56
|
+
ellipsizeMode: "tail",
|
|
57
|
+
maxFontSizeMultiplier: 1.3,
|
|
58
|
+
accessible: !!textAccessibilityLabel,
|
|
59
|
+
accessibilityLabel: textAccessibilityLabel,
|
|
60
|
+
style: [styles.text, style],
|
|
61
|
+
...others
|
|
62
|
+
},
|
|
63
|
+
children
|
|
64
|
+
);
|
|
65
|
+
if (skeleton) {
|
|
66
|
+
textView = /* @__PURE__ */ React.createElement(
|
|
67
|
+
Skeleton_native_default,
|
|
68
|
+
{
|
|
69
|
+
style: styles.skeleton,
|
|
70
|
+
height: textLevels(level),
|
|
71
|
+
borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3
|
|
72
|
+
},
|
|
73
|
+
textView
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
return textView;
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
Text.displayName = "Text" /* Text */;
|
|
80
|
+
var Text_native_default = Text;
|
|
81
|
+
|
|
82
|
+
export {
|
|
83
|
+
Text_native_default
|
|
84
|
+
};
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-UBR5KHS6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Text_native_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OSWW7RO6.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_native_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NEM7FT22.mjs";
|
|
11
11
|
import {
|
|
12
12
|
getColorStyle
|
|
13
13
|
} from "./chunk-E4YRRUI3.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Text_native_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OSWW7RO6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Icon_native_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NEM7FT22.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getColorStyle
|
|
10
10
|
} from "./chunk-E4YRRUI3.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Text_native_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OSWW7RO6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Icon_native_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NEM7FT22.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getColorStyle
|
|
10
10
|
} from "./chunk-E4YRRUI3.mjs";
|