@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
|
@@ -0,0 +1,635 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Text_native_default
|
|
4
|
+
} from "./chunk-OSWW7RO6.mjs";
|
|
5
|
+
import {
|
|
6
|
+
Icon_native_default
|
|
7
|
+
} from "./chunk-NEM7FT22.mjs";
|
|
8
|
+
import {
|
|
9
|
+
getColorStyle
|
|
10
|
+
} from "./chunk-E4YRRUI3.mjs";
|
|
11
|
+
|
|
12
|
+
// components/calendar/Calendar.native.tsx
|
|
13
|
+
import translation from "@trilogy-ds/locales/lib/calendar";
|
|
14
|
+
import React from "react";
|
|
15
|
+
import { Modal, Platform, ScrollView, StyleSheet, TouchableOpacity, View } from "react-native";
|
|
16
|
+
var days = [
|
|
17
|
+
translation.days[1],
|
|
18
|
+
translation.days[2],
|
|
19
|
+
translation.days[3],
|
|
20
|
+
translation.days[4],
|
|
21
|
+
translation.days[5],
|
|
22
|
+
translation.days[6],
|
|
23
|
+
translation.days[0]
|
|
24
|
+
];
|
|
25
|
+
var months = [...translation.months];
|
|
26
|
+
var currentDate = /* @__PURE__ */ new Date();
|
|
27
|
+
var checkIsRange = (date) => {
|
|
28
|
+
return !(date instanceof Date);
|
|
29
|
+
};
|
|
30
|
+
var Calendar = React.forwardRef(
|
|
31
|
+
({
|
|
32
|
+
value = currentDate,
|
|
33
|
+
minDate = new Date(currentDate.getFullYear() - 10, 0, 1),
|
|
34
|
+
maxDate = new Date(currentDate.getFullYear() + 10, 12, 0),
|
|
35
|
+
disabled,
|
|
36
|
+
readOnly,
|
|
37
|
+
disabledDates,
|
|
38
|
+
onChange,
|
|
39
|
+
onMonthChange
|
|
40
|
+
}, ref) => {
|
|
41
|
+
const [visibleMonth, setVisibleMonth] = React.useState(
|
|
42
|
+
value instanceof Date ? value : value[0] || currentDate
|
|
43
|
+
);
|
|
44
|
+
const [activeDate, setActiveDate] = React.useState(value);
|
|
45
|
+
const [dateEndHovered, setDateEndHovered] = React.useState();
|
|
46
|
+
const [showMonthPicker, setShowMonthPicker] = React.useState(false);
|
|
47
|
+
const [showYearPicker, setShowYearPicker] = React.useState(false);
|
|
48
|
+
const backgroundColor = getColorStyle("WHITE" /* BACKGROUND */);
|
|
49
|
+
const shadowColor = getColorStyle("DISABLED" /* DISABLED */);
|
|
50
|
+
const disabledFadeColor = getColorStyle("DISABLED_FADE" /* DISABLED_FADE */);
|
|
51
|
+
const mainColor = getColorStyle("MAIN" /* MAIN */);
|
|
52
|
+
const mainFadeColor = getColorStyle("MAIN_FADE" /* MAIN_FADE */);
|
|
53
|
+
const disabledColor = getColorStyle("DISABLED" /* DISABLED */);
|
|
54
|
+
const styles = React.useMemo(
|
|
55
|
+
() => StyleSheet.create({
|
|
56
|
+
calendar: {
|
|
57
|
+
backgroundColor,
|
|
58
|
+
borderRadius: 8,
|
|
59
|
+
padding: 24,
|
|
60
|
+
shadowColor,
|
|
61
|
+
shadowOffset: {
|
|
62
|
+
width: 0,
|
|
63
|
+
height: 2
|
|
64
|
+
},
|
|
65
|
+
shadowOpacity: 0.2,
|
|
66
|
+
shadowRadius: 8,
|
|
67
|
+
elevation: 4,
|
|
68
|
+
width: "85%",
|
|
69
|
+
alignSelf: "center"
|
|
70
|
+
},
|
|
71
|
+
header: {
|
|
72
|
+
alignContent: "center",
|
|
73
|
+
marginBottom: 16
|
|
74
|
+
},
|
|
75
|
+
headerRow: {
|
|
76
|
+
flexDirection: "row",
|
|
77
|
+
alignItems: "center",
|
|
78
|
+
justifyContent: "space-between",
|
|
79
|
+
marginBottom: 16,
|
|
80
|
+
paddingBottom: 16
|
|
81
|
+
},
|
|
82
|
+
navButton: {
|
|
83
|
+
width: 36,
|
|
84
|
+
height: 36,
|
|
85
|
+
alignItems: "center",
|
|
86
|
+
justifyContent: "center",
|
|
87
|
+
borderRadius: 4,
|
|
88
|
+
backgroundColor: "transparent"
|
|
89
|
+
},
|
|
90
|
+
iconWrapper: {
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
justifyContent: "center"
|
|
93
|
+
},
|
|
94
|
+
disabledButton: {
|
|
95
|
+
opacity: 0.5
|
|
96
|
+
},
|
|
97
|
+
monthYearContainer: {
|
|
98
|
+
flex: 1,
|
|
99
|
+
alignItems: "center",
|
|
100
|
+
justifyContent: "center"
|
|
101
|
+
},
|
|
102
|
+
dropdownContainer: {
|
|
103
|
+
flexDirection: "row",
|
|
104
|
+
gap: 12,
|
|
105
|
+
justifyContent: "center"
|
|
106
|
+
},
|
|
107
|
+
monthSelector: {
|
|
108
|
+
paddingHorizontal: 8,
|
|
109
|
+
paddingVertical: 4,
|
|
110
|
+
backgroundColor,
|
|
111
|
+
borderRadius: 4,
|
|
112
|
+
borderWidth: 1,
|
|
113
|
+
borderColor: disabledFadeColor,
|
|
114
|
+
width: 80,
|
|
115
|
+
alignItems: "center",
|
|
116
|
+
height: 30,
|
|
117
|
+
justifyContent: "center"
|
|
118
|
+
},
|
|
119
|
+
yearSelector: {
|
|
120
|
+
paddingHorizontal: 8,
|
|
121
|
+
paddingVertical: 4,
|
|
122
|
+
backgroundColor,
|
|
123
|
+
borderRadius: 4,
|
|
124
|
+
borderWidth: 1,
|
|
125
|
+
borderColor: disabledFadeColor,
|
|
126
|
+
width: 80,
|
|
127
|
+
alignItems: "center",
|
|
128
|
+
height: 30,
|
|
129
|
+
justifyContent: "center"
|
|
130
|
+
},
|
|
131
|
+
selectorContent: {
|
|
132
|
+
flexDirection: "row",
|
|
133
|
+
alignItems: "center",
|
|
134
|
+
justifyContent: "space-between",
|
|
135
|
+
width: "100%"
|
|
136
|
+
},
|
|
137
|
+
selectorText: {
|
|
138
|
+
fontSize: 14,
|
|
139
|
+
fontWeight: "500",
|
|
140
|
+
color: "#495057",
|
|
141
|
+
flex: 1,
|
|
142
|
+
width: "100%"
|
|
143
|
+
},
|
|
144
|
+
dropdownIcon: {
|
|
145
|
+
marginLeft: 4,
|
|
146
|
+
width: 12,
|
|
147
|
+
height: 12,
|
|
148
|
+
alignItems: "center",
|
|
149
|
+
justifyContent: "center"
|
|
150
|
+
},
|
|
151
|
+
daysLabelRow: {
|
|
152
|
+
flexDirection: "row",
|
|
153
|
+
marginBottom: 8,
|
|
154
|
+
justifyContent: "space-between"
|
|
155
|
+
},
|
|
156
|
+
dayLabel: {
|
|
157
|
+
flex: 1,
|
|
158
|
+
alignItems: "center",
|
|
159
|
+
paddingVertical: Platform.OS === "android" ? 6 : 4,
|
|
160
|
+
height: Platform.OS === "android" ? 42 : 36,
|
|
161
|
+
justifyContent: "center",
|
|
162
|
+
maxWidth: Platform.OS === "android" ? 42 : 36,
|
|
163
|
+
minWidth: Platform.OS === "android" ? 42 : 36
|
|
164
|
+
},
|
|
165
|
+
dayLabelText: {
|
|
166
|
+
fontSize: 12,
|
|
167
|
+
fontWeight: "600",
|
|
168
|
+
color: "#6c757d",
|
|
169
|
+
textTransform: "uppercase",
|
|
170
|
+
width: "100%"
|
|
171
|
+
},
|
|
172
|
+
body: {
|
|
173
|
+
gap: 8
|
|
174
|
+
},
|
|
175
|
+
weekRow: {
|
|
176
|
+
flexDirection: "row",
|
|
177
|
+
justifyContent: "space-between",
|
|
178
|
+
marginBottom: 0
|
|
179
|
+
},
|
|
180
|
+
emptyDay: {
|
|
181
|
+
flex: 1,
|
|
182
|
+
height: Platform.OS === "android" ? 42 : 36,
|
|
183
|
+
alignItems: "center",
|
|
184
|
+
justifyContent: "center",
|
|
185
|
+
maxWidth: Platform.OS === "android" ? 42 : 36,
|
|
186
|
+
minWidth: Platform.OS === "android" ? 42 : 36
|
|
187
|
+
},
|
|
188
|
+
dayButton: {
|
|
189
|
+
flex: 1,
|
|
190
|
+
height: Platform.OS === "android" ? 42 : 36,
|
|
191
|
+
alignItems: "center",
|
|
192
|
+
justifyContent: "center",
|
|
193
|
+
borderRadius: 4,
|
|
194
|
+
backgroundColor: "transparent",
|
|
195
|
+
maxWidth: Platform.OS === "android" ? 42 : 36,
|
|
196
|
+
minWidth: Platform.OS === "android" ? 42 : 36
|
|
197
|
+
},
|
|
198
|
+
dayText: {
|
|
199
|
+
fontSize: 14,
|
|
200
|
+
fontWeight: "400",
|
|
201
|
+
color: "#212529",
|
|
202
|
+
width: "100%"
|
|
203
|
+
},
|
|
204
|
+
activeDay: {
|
|
205
|
+
backgroundColor: mainColor
|
|
206
|
+
},
|
|
207
|
+
activeDayText: {
|
|
208
|
+
color: backgroundColor,
|
|
209
|
+
fontWeight: "600",
|
|
210
|
+
width: "100%"
|
|
211
|
+
},
|
|
212
|
+
disabledDay: {
|
|
213
|
+
backgroundColor: disabledFadeColor,
|
|
214
|
+
opacity: 0.6
|
|
215
|
+
},
|
|
216
|
+
disabledDayText: {
|
|
217
|
+
color: disabledColor,
|
|
218
|
+
width: "100%"
|
|
219
|
+
},
|
|
220
|
+
dateStart: {
|
|
221
|
+
backgroundColor: mainColor,
|
|
222
|
+
borderTopLeftRadius: 8,
|
|
223
|
+
borderBottomLeftRadius: 8,
|
|
224
|
+
borderTopRightRadius: 4,
|
|
225
|
+
borderBottomRightRadius: 4
|
|
226
|
+
},
|
|
227
|
+
dateEnd: {
|
|
228
|
+
backgroundColor: mainColor,
|
|
229
|
+
borderTopRightRadius: 8,
|
|
230
|
+
borderBottomRightRadius: 8,
|
|
231
|
+
borderTopLeftRadius: 4,
|
|
232
|
+
borderBottomLeftRadius: 4
|
|
233
|
+
},
|
|
234
|
+
dateInRange: {
|
|
235
|
+
backgroundColor: mainFadeColor,
|
|
236
|
+
borderRadius: 0
|
|
237
|
+
},
|
|
238
|
+
roundedLeft: {
|
|
239
|
+
borderTopLeftRadius: 8,
|
|
240
|
+
borderBottomLeftRadius: 8
|
|
241
|
+
},
|
|
242
|
+
roundedRight: {
|
|
243
|
+
borderTopRightRadius: 8,
|
|
244
|
+
borderBottomRightRadius: 8
|
|
245
|
+
},
|
|
246
|
+
todayButton: {
|
|
247
|
+
borderWidth: 0,
|
|
248
|
+
backgroundColor: "transparent"
|
|
249
|
+
},
|
|
250
|
+
todayText: {
|
|
251
|
+
fontWeight: "600",
|
|
252
|
+
color: mainColor
|
|
253
|
+
},
|
|
254
|
+
modalOverlay: {
|
|
255
|
+
flex: 1,
|
|
256
|
+
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
257
|
+
justifyContent: "center",
|
|
258
|
+
alignItems: "center"
|
|
259
|
+
},
|
|
260
|
+
pickerContainer: {
|
|
261
|
+
backgroundColor,
|
|
262
|
+
borderRadius: 8,
|
|
263
|
+
maxHeight: 300,
|
|
264
|
+
width: 200,
|
|
265
|
+
shadowColor: "#000",
|
|
266
|
+
shadowOffset: {
|
|
267
|
+
width: 0,
|
|
268
|
+
height: 2
|
|
269
|
+
},
|
|
270
|
+
shadowOpacity: 0.25,
|
|
271
|
+
shadowRadius: 8,
|
|
272
|
+
elevation: 5
|
|
273
|
+
},
|
|
274
|
+
pickerScrollView: {
|
|
275
|
+
maxHeight: 300
|
|
276
|
+
},
|
|
277
|
+
pickerItem: {
|
|
278
|
+
flexDirection: "row",
|
|
279
|
+
alignItems: "center",
|
|
280
|
+
justifyContent: "space-between",
|
|
281
|
+
paddingHorizontal: 16,
|
|
282
|
+
paddingVertical: 12,
|
|
283
|
+
borderBottomWidth: 1,
|
|
284
|
+
borderBottomColor: backgroundColor
|
|
285
|
+
},
|
|
286
|
+
pickerItemSelected: {
|
|
287
|
+
backgroundColor: mainColor
|
|
288
|
+
},
|
|
289
|
+
pickerItemDisabled: {
|
|
290
|
+
opacity: 0.5
|
|
291
|
+
},
|
|
292
|
+
pickerItemText: {
|
|
293
|
+
fontSize: 16,
|
|
294
|
+
color: "#212529",
|
|
295
|
+
flex: 1,
|
|
296
|
+
lineHeight: 20
|
|
297
|
+
},
|
|
298
|
+
pickerItemTextSelected: {
|
|
299
|
+
color: "#ffffff",
|
|
300
|
+
fontWeight: "600"
|
|
301
|
+
},
|
|
302
|
+
pickerItemTextDisabled: {
|
|
303
|
+
color: "#6c757d"
|
|
304
|
+
}
|
|
305
|
+
}),
|
|
306
|
+
[backgroundColor, shadowColor, disabledFadeColor, mainColor, mainFadeColor, disabledColor]
|
|
307
|
+
);
|
|
308
|
+
const isRange = checkIsRange(activeDate);
|
|
309
|
+
const isNextDisabled = React.useMemo(
|
|
310
|
+
() => disabled || (maxDate == null ? void 0 : maxDate.getMonth()) === (visibleMonth == null ? void 0 : visibleMonth.getMonth()) && (maxDate == null ? void 0 : maxDate.getFullYear()) === (visibleMonth == null ? void 0 : visibleMonth.getFullYear()),
|
|
311
|
+
[maxDate, visibleMonth, disabled]
|
|
312
|
+
);
|
|
313
|
+
const isPrevDisabled = React.useMemo(
|
|
314
|
+
() => disabled || (minDate == null ? void 0 : minDate.getMonth()) === (visibleMonth == null ? void 0 : visibleMonth.getMonth()) && (minDate == null ? void 0 : minDate.getFullYear()) === (visibleMonth == null ? void 0 : visibleMonth.getFullYear()),
|
|
315
|
+
[minDate, visibleMonth, disabled]
|
|
316
|
+
);
|
|
317
|
+
const getAllDaysInMonth = React.useCallback((year, month) => {
|
|
318
|
+
const date = new Date(year, month, 1);
|
|
319
|
+
const days2 = [];
|
|
320
|
+
const firstDayOfMonth = (date.getDay() + 6) % 7;
|
|
321
|
+
const lastDayOfMonth = new Date(year, month + 1, 0).getDate();
|
|
322
|
+
const allDays = [];
|
|
323
|
+
for (let i = 0; i < firstDayOfMonth; i++) days2.push(null);
|
|
324
|
+
for (let day = 1; day <= lastDayOfMonth; day++) days2.push(new Date(year, month, day));
|
|
325
|
+
while (days2.length % 7 !== 0) {
|
|
326
|
+
days2.push(null);
|
|
327
|
+
}
|
|
328
|
+
for (let i = 0; i < days2.length; i += 7) allDays.push(days2.slice(i, i + 7));
|
|
329
|
+
return allDays;
|
|
330
|
+
}, []);
|
|
331
|
+
const yearsBetween = React.useMemo(() => {
|
|
332
|
+
const minYear = minDate.getFullYear();
|
|
333
|
+
const maxYear = maxDate.getFullYear();
|
|
334
|
+
const currentYear = value instanceof Date && (value == null ? void 0 : value.getFullYear());
|
|
335
|
+
const isCurrentYearInclude = currentYear && currentYear >= minYear && currentYear <= maxYear;
|
|
336
|
+
let years = Array.from({ length: maxYear - minYear + 1 }, (_, i) => {
|
|
337
|
+
const year = minYear + i;
|
|
338
|
+
return {
|
|
339
|
+
value: year,
|
|
340
|
+
disabled: false
|
|
341
|
+
};
|
|
342
|
+
});
|
|
343
|
+
if (currentYear && !isCurrentYearInclude) {
|
|
344
|
+
years = [{ value: currentYear, disabled: true }, ...years];
|
|
345
|
+
}
|
|
346
|
+
return years;
|
|
347
|
+
}, [minDate, maxDate, value]);
|
|
348
|
+
const availableMonths = React.useMemo(() => {
|
|
349
|
+
const currentYear = visibleMonth.getFullYear();
|
|
350
|
+
const minYear = minDate.getFullYear();
|
|
351
|
+
const maxYear = maxDate.getFullYear();
|
|
352
|
+
const minMonth = minDate.getMonth();
|
|
353
|
+
const maxMonth = maxDate.getMonth();
|
|
354
|
+
return Array.from({ length: 12 }, (_, monthIndex) => {
|
|
355
|
+
if (currentYear < minYear || currentYear > maxYear) return false;
|
|
356
|
+
if (currentYear === minYear && monthIndex < minMonth) return false;
|
|
357
|
+
if (currentYear === maxYear && monthIndex > maxMonth) return false;
|
|
358
|
+
return true;
|
|
359
|
+
});
|
|
360
|
+
}, [minDate, maxDate, visibleMonth]);
|
|
361
|
+
const availableYear = React.useMemo(() => {
|
|
362
|
+
const minYear = minDate.getFullYear();
|
|
363
|
+
const maxYear = maxDate.getFullYear();
|
|
364
|
+
return Array.from({ length: maxYear - minYear + 1 }, (_, i) => minYear + i);
|
|
365
|
+
}, [minDate, maxDate, visibleMonth]);
|
|
366
|
+
const allDaysInMonth = React.useMemo(() => {
|
|
367
|
+
const activeYear = visibleMonth.getFullYear();
|
|
368
|
+
const activeMonth = visibleMonth.getMonth();
|
|
369
|
+
return getAllDaysInMonth(activeYear, activeMonth);
|
|
370
|
+
}, [visibleMonth]);
|
|
371
|
+
const handleClickNextPrevMonth = React.useCallback(
|
|
372
|
+
(month) => {
|
|
373
|
+
const nextMonth = new Date(visibleMonth.getFullYear(), visibleMonth.getMonth() + month, visibleMonth.getDate());
|
|
374
|
+
setVisibleMonth(nextMonth);
|
|
375
|
+
onMonthChange && onMonthChange(nextMonth);
|
|
376
|
+
},
|
|
377
|
+
[visibleMonth, onMonthChange]
|
|
378
|
+
);
|
|
379
|
+
const handleMonthSelect = React.useCallback(
|
|
380
|
+
(selectedMonth) => {
|
|
381
|
+
const newDate = new Date(visibleMonth.getFullYear(), selectedMonth, visibleMonth.getDate());
|
|
382
|
+
setVisibleMonth(newDate);
|
|
383
|
+
onMonthChange && onMonthChange(newDate);
|
|
384
|
+
},
|
|
385
|
+
[visibleMonth, onMonthChange, minDate, maxDate]
|
|
386
|
+
);
|
|
387
|
+
const handleYearSelect = React.useCallback(
|
|
388
|
+
(selectedYear) => {
|
|
389
|
+
const newDate = new Date(selectedYear, visibleMonth.getMonth(), visibleMonth.getDate());
|
|
390
|
+
if (newDate.getTime() < minDate.getTime() || newDate.getTime() > maxDate.getTime()) {
|
|
391
|
+
if (newDate.getTime() < minDate.getTime()) {
|
|
392
|
+
setVisibleMonth(new Date(selectedYear, minDate.getMonth(), visibleMonth.getDate()));
|
|
393
|
+
onMonthChange && onMonthChange(new Date(selectedYear, minDate.getMonth(), visibleMonth.getDate()));
|
|
394
|
+
} else {
|
|
395
|
+
setVisibleMonth(new Date(selectedYear, maxDate.getMonth(), visibleMonth.getDate()));
|
|
396
|
+
onMonthChange && onMonthChange(new Date(selectedYear, maxDate.getMonth(), visibleMonth.getDate()));
|
|
397
|
+
}
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
400
|
+
setVisibleMonth(newDate);
|
|
401
|
+
onMonthChange && onMonthChange(newDate);
|
|
402
|
+
},
|
|
403
|
+
[visibleMonth, onMonthChange, minDate, maxDate]
|
|
404
|
+
);
|
|
405
|
+
const handlePressDay = React.useCallback(
|
|
406
|
+
(day) => {
|
|
407
|
+
if (readOnly) return;
|
|
408
|
+
const newDate = day;
|
|
409
|
+
let newActiveDate = [newDate];
|
|
410
|
+
if (!isRange) newActiveDate = newDate;
|
|
411
|
+
if (isRange && activeDate.length === 1 && newDate.getTime() > activeDate[0].getTime()) {
|
|
412
|
+
newActiveDate = [...activeDate, newDate];
|
|
413
|
+
}
|
|
414
|
+
setActiveDate(newActiveDate);
|
|
415
|
+
setDateEndHovered(void 0);
|
|
416
|
+
onChange && onChange(newActiveDate);
|
|
417
|
+
},
|
|
418
|
+
[onChange, readOnly, activeDate, isRange]
|
|
419
|
+
);
|
|
420
|
+
React.useEffect(() => {
|
|
421
|
+
setActiveDate(value);
|
|
422
|
+
if (value instanceof Date) return setVisibleMonth(value);
|
|
423
|
+
if (!(value instanceof Date) && value[0]) {
|
|
424
|
+
if (value[1]) {
|
|
425
|
+
return setVisibleMonth(value[1]);
|
|
426
|
+
}
|
|
427
|
+
return setVisibleMonth(value[0]);
|
|
428
|
+
}
|
|
429
|
+
}, [value]);
|
|
430
|
+
const renderDayButton = (day, dayIndex) => {
|
|
431
|
+
if (!day) {
|
|
432
|
+
return /* @__PURE__ */ React.createElement(View, { key: dayIndex, style: styles.emptyDay });
|
|
433
|
+
}
|
|
434
|
+
const isDateStart = isRange && activeDate[0] && (day == null ? void 0 : day.getTime()) === activeDate[0].getTime();
|
|
435
|
+
const isDateEnd = isRange && activeDate[1] && (day == null ? void 0 : day.getTime()) === activeDate[1].getTime();
|
|
436
|
+
const today = /* @__PURE__ */ new Date();
|
|
437
|
+
const isToday = (day == null ? void 0 : day.getFullYear()) === today.getFullYear() && (day == null ? void 0 : day.getMonth()) === today.getMonth() && (day == null ? void 0 : day.getDate()) === today.getDate();
|
|
438
|
+
const isActive = !isRange ? (day == null ? void 0 : day.getFullYear()) === activeDate.getFullYear() && (day == null ? void 0 : day.getMonth()) === activeDate.getMonth() && (day == null ? void 0 : day.getDate()) === activeDate.getDate() : activeDate == null ? void 0 : activeDate.some(
|
|
439
|
+
(date) => (date == null ? void 0 : date.getFullYear()) === (day == null ? void 0 : day.getFullYear()) && (date == null ? void 0 : date.getMonth()) === (day == null ? void 0 : day.getMonth()) && (date == null ? void 0 : date.getDate()) === (day == null ? void 0 : day.getDate())
|
|
440
|
+
);
|
|
441
|
+
const isDisabled = disabled || day && day.getTime() > (maxDate == null ? void 0 : maxDate.getTime()) || day && day.getTime() < (minDate == null ? void 0 : minDate.getTime()) || day && (disabledDates == null ? void 0 : disabledDates.some(
|
|
442
|
+
(date) => (date == null ? void 0 : date.getFullYear()) === (day == null ? void 0 : day.getFullYear()) && (date == null ? void 0 : date.getMonth()) === (day == null ? void 0 : day.getMonth()) && (date == null ? void 0 : date.getDate()) === (day == null ? void 0 : day.getDate())
|
|
443
|
+
)) || false;
|
|
444
|
+
const isInRange = isRange && activeDate[0] && dateEndHovered && day && day.getTime() >= activeDate[0].getTime() && day.getTime() < dateEndHovered.getTime() || isRange && activeDate[0] && activeDate[1] && day && day.getTime() >= activeDate[0].getTime() && day.getTime() < activeDate[1].getTime();
|
|
445
|
+
return /* @__PURE__ */ React.createElement(
|
|
446
|
+
TouchableOpacity,
|
|
447
|
+
{
|
|
448
|
+
key: dayIndex,
|
|
449
|
+
disabled: isDisabled,
|
|
450
|
+
onPress: () => !isDisabled && handlePressDay(day),
|
|
451
|
+
onPressIn: () => {
|
|
452
|
+
if (!isRange) return;
|
|
453
|
+
if (activeDate[0] !== void 0 && activeDate.length === 1) {
|
|
454
|
+
setDateEndHovered(day);
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
onPressOut: () => {
|
|
458
|
+
if (isRange && activeDate.length === 1) {
|
|
459
|
+
setDateEndHovered(void 0);
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
accessible: true,
|
|
463
|
+
accessibilityRole: "button",
|
|
464
|
+
accessibilityState: {
|
|
465
|
+
selected: isActive,
|
|
466
|
+
disabled: isDisabled
|
|
467
|
+
},
|
|
468
|
+
style: [
|
|
469
|
+
styles.dayButton,
|
|
470
|
+
isToday && styles.todayButton,
|
|
471
|
+
isActive && styles.activeDay,
|
|
472
|
+
isDisabled && styles.disabledDay,
|
|
473
|
+
isInRange && styles.dateInRange,
|
|
474
|
+
isDateStart && styles.dateStart,
|
|
475
|
+
isDateEnd && styles.dateEnd,
|
|
476
|
+
dayIndex === 0 && styles.roundedLeft,
|
|
477
|
+
dayIndex === 6 && styles.roundedRight
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
|
+
/* @__PURE__ */ React.createElement(
|
|
481
|
+
Text_native_default,
|
|
482
|
+
{
|
|
483
|
+
typo: "has-text-centered" /* TEXT_CENTERED */,
|
|
484
|
+
style: [
|
|
485
|
+
styles.dayText,
|
|
486
|
+
isToday && styles.todayText,
|
|
487
|
+
isActive && styles.activeDayText,
|
|
488
|
+
isDisabled && styles.disabledDayText
|
|
489
|
+
]
|
|
490
|
+
},
|
|
491
|
+
day.getDate()
|
|
492
|
+
)
|
|
493
|
+
);
|
|
494
|
+
};
|
|
495
|
+
return /* @__PURE__ */ React.createElement(View, { ref, style: styles.calendar }, /* @__PURE__ */ React.createElement(View, { style: styles.header }, /* @__PURE__ */ React.createElement(View, { style: styles.headerRow }, /* @__PURE__ */ React.createElement(
|
|
496
|
+
TouchableOpacity,
|
|
497
|
+
{
|
|
498
|
+
onPress: () => handleClickNextPrevMonth(-1),
|
|
499
|
+
disabled: isPrevDisabled,
|
|
500
|
+
accessible: true,
|
|
501
|
+
accessibilityRole: "button",
|
|
502
|
+
accessibilityState: { disabled: isPrevDisabled },
|
|
503
|
+
style: [styles.navButton, isPrevDisabled && styles.disabledButton]
|
|
504
|
+
},
|
|
505
|
+
/* @__PURE__ */ React.createElement(View, { style: styles.iconWrapper }, /* @__PURE__ */ React.createElement(Icon_native_default, { name: "tri-arrow-left" }))
|
|
506
|
+
), /* @__PURE__ */ React.createElement(View, { style: styles.monthYearContainer }, /* @__PURE__ */ React.createElement(View, { style: styles.dropdownContainer }, /* @__PURE__ */ React.createElement(
|
|
507
|
+
TouchableOpacity,
|
|
508
|
+
{
|
|
509
|
+
style: styles.monthSelector,
|
|
510
|
+
accessible: true,
|
|
511
|
+
accessibilityRole: "button",
|
|
512
|
+
onPress: () => setShowMonthPicker(true)
|
|
513
|
+
},
|
|
514
|
+
/* @__PURE__ */ React.createElement(View, { style: styles.selectorContent }, /* @__PURE__ */ React.createElement(Text_native_default, { typo: "has-text-centered" /* TEXT_CENTERED */, style: styles.selectorText }, months[visibleMonth.getMonth()]), /* @__PURE__ */ React.createElement(View, { style: styles.dropdownIcon }, /* @__PURE__ */ React.createElement(Icon_native_default, { name: "tri-arrow-down" })))
|
|
515
|
+
), /* @__PURE__ */ React.createElement(
|
|
516
|
+
TouchableOpacity,
|
|
517
|
+
{
|
|
518
|
+
style: styles.yearSelector,
|
|
519
|
+
accessible: true,
|
|
520
|
+
accessibilityRole: "button",
|
|
521
|
+
onPress: () => setShowYearPicker(true)
|
|
522
|
+
},
|
|
523
|
+
/* @__PURE__ */ React.createElement(View, { style: styles.selectorContent }, /* @__PURE__ */ React.createElement(Text_native_default, { typo: "has-text-centered" /* TEXT_CENTERED */, style: styles.selectorText }, visibleMonth.getFullYear()), /* @__PURE__ */ React.createElement(View, { style: styles.dropdownIcon }, /* @__PURE__ */ React.createElement(Icon_native_default, { name: "tri-arrow-down" })))
|
|
524
|
+
))), /* @__PURE__ */ React.createElement(
|
|
525
|
+
TouchableOpacity,
|
|
526
|
+
{
|
|
527
|
+
onPress: () => handleClickNextPrevMonth(1),
|
|
528
|
+
disabled: isNextDisabled,
|
|
529
|
+
accessible: true,
|
|
530
|
+
accessibilityRole: "button",
|
|
531
|
+
accessibilityState: { disabled: isNextDisabled },
|
|
532
|
+
style: [styles.navButton, isNextDisabled && styles.disabledButton]
|
|
533
|
+
},
|
|
534
|
+
/* @__PURE__ */ React.createElement(View, { style: styles.iconWrapper }, /* @__PURE__ */ React.createElement(Icon_native_default, { name: "tri-arrow-right" }))
|
|
535
|
+
)), /* @__PURE__ */ React.createElement(View, { style: styles.daysLabelRow }, days.map((day, index) => /* @__PURE__ */ React.createElement(View, { key: index, style: styles.dayLabel }, /* @__PURE__ */ React.createElement(Text_native_default, { typo: "has-text-centered" /* TEXT_CENTERED */, style: styles.dayLabelText }, day.slice(0, 1)))))), /* @__PURE__ */ React.createElement(View, { style: styles.body }, allDaysInMonth.map((week, weekIndex) => /* @__PURE__ */ React.createElement(View, { key: weekIndex, style: styles.weekRow }, week.map((day, dayIndex) => renderDayButton(day, dayIndex))))), /* @__PURE__ */ React.createElement(
|
|
536
|
+
Modal,
|
|
537
|
+
{
|
|
538
|
+
visible: showMonthPicker,
|
|
539
|
+
transparent: true,
|
|
540
|
+
animationType: "fade",
|
|
541
|
+
onRequestClose: () => setShowMonthPicker(false)
|
|
542
|
+
},
|
|
543
|
+
/* @__PURE__ */ React.createElement(View, { style: styles.modalOverlay }, /* @__PURE__ */ React.createElement(
|
|
544
|
+
TouchableOpacity,
|
|
545
|
+
{
|
|
546
|
+
style: StyleSheet.absoluteFillObject,
|
|
547
|
+
activeOpacity: 1,
|
|
548
|
+
onPress: () => setShowMonthPicker(false)
|
|
549
|
+
}
|
|
550
|
+
), /* @__PURE__ */ React.createElement(View, { style: styles.pickerContainer }, /* @__PURE__ */ React.createElement(ScrollView, { style: styles.pickerScrollView }, months.map((monthName, monthIndex) => /* @__PURE__ */ React.createElement(
|
|
551
|
+
TouchableOpacity,
|
|
552
|
+
{
|
|
553
|
+
key: monthIndex,
|
|
554
|
+
style: [
|
|
555
|
+
styles.pickerItem,
|
|
556
|
+
visibleMonth.getMonth() === monthIndex && styles.pickerItemSelected,
|
|
557
|
+
!availableMonths[monthIndex] && styles.pickerItemDisabled
|
|
558
|
+
],
|
|
559
|
+
disabled: !availableMonths[monthIndex],
|
|
560
|
+
onPress: () => {
|
|
561
|
+
if (availableMonths[monthIndex]) {
|
|
562
|
+
handleMonthSelect(monthIndex);
|
|
563
|
+
setShowMonthPicker(false);
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
/* @__PURE__ */ React.createElement(
|
|
568
|
+
Text_native_default,
|
|
569
|
+
{
|
|
570
|
+
typo: "has-text-left" /* TEXT_LEFT */,
|
|
571
|
+
style: [
|
|
572
|
+
styles.pickerItemText,
|
|
573
|
+
visibleMonth.getMonth() === monthIndex && styles.pickerItemTextSelected,
|
|
574
|
+
!availableMonths[monthIndex] && styles.pickerItemTextDisabled
|
|
575
|
+
]
|
|
576
|
+
},
|
|
577
|
+
monthName
|
|
578
|
+
),
|
|
579
|
+
visibleMonth.getMonth() === monthIndex && /* @__PURE__ */ React.createElement(Icon_native_default, { name: "tri-check" })
|
|
580
|
+
)))))
|
|
581
|
+
), /* @__PURE__ */ React.createElement(
|
|
582
|
+
Modal,
|
|
583
|
+
{
|
|
584
|
+
visible: showYearPicker,
|
|
585
|
+
transparent: true,
|
|
586
|
+
animationType: "fade",
|
|
587
|
+
onRequestClose: () => setShowYearPicker(false)
|
|
588
|
+
},
|
|
589
|
+
/* @__PURE__ */ React.createElement(View, { style: styles.modalOverlay }, /* @__PURE__ */ React.createElement(
|
|
590
|
+
TouchableOpacity,
|
|
591
|
+
{
|
|
592
|
+
style: StyleSheet.absoluteFillObject,
|
|
593
|
+
activeOpacity: 1,
|
|
594
|
+
onPress: () => setShowYearPicker(false)
|
|
595
|
+
}
|
|
596
|
+
), /* @__PURE__ */ React.createElement(View, { style: styles.pickerContainer }, /* @__PURE__ */ React.createElement(ScrollView, { style: styles.pickerScrollView }, yearsBetween.map((year) => /* @__PURE__ */ React.createElement(
|
|
597
|
+
TouchableOpacity,
|
|
598
|
+
{
|
|
599
|
+
key: year.value,
|
|
600
|
+
style: [
|
|
601
|
+
styles.pickerItem,
|
|
602
|
+
visibleMonth.getFullYear() === year.value && styles.pickerItemSelected,
|
|
603
|
+
!availableYear.includes(year.value) && styles.pickerItemDisabled
|
|
604
|
+
],
|
|
605
|
+
disabled: !availableYear.includes(year.value),
|
|
606
|
+
onPress: () => {
|
|
607
|
+
if (availableYear.includes(year.value)) {
|
|
608
|
+
handleYearSelect(year.value);
|
|
609
|
+
setShowYearPicker(false);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
/* @__PURE__ */ React.createElement(
|
|
614
|
+
Text_native_default,
|
|
615
|
+
{
|
|
616
|
+
typo: "has-text-left" /* TEXT_LEFT */,
|
|
617
|
+
style: [
|
|
618
|
+
styles.pickerItemText,
|
|
619
|
+
visibleMonth.getFullYear() === year.value && styles.pickerItemTextSelected,
|
|
620
|
+
!availableYear.includes(year.value) && styles.pickerItemTextDisabled
|
|
621
|
+
]
|
|
622
|
+
},
|
|
623
|
+
String(year.value)
|
|
624
|
+
),
|
|
625
|
+
visibleMonth.getFullYear() === year.value && /* @__PURE__ */ React.createElement(Icon_native_default, { name: "tri-check" })
|
|
626
|
+
)))))
|
|
627
|
+
));
|
|
628
|
+
}
|
|
629
|
+
);
|
|
630
|
+
Calendar.displayName = "Calendar" /* Calendar */;
|
|
631
|
+
var Calendar_native_default = Calendar;
|
|
632
|
+
|
|
633
|
+
export {
|
|
634
|
+
Calendar_native_default
|
|
635
|
+
};
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk-NRTMJLXK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Text_native_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OSWW7RO6.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";
|