@trilogy-ds/react 0.0.21-esm-cjs → 0.0.23-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-NYA63FUK.mjs → chunk-2BQXWN3R.mjs} +1 -1
- package/lib/{chunk-J4ZFH6JK.mjs → chunk-2DMJIJTD.mjs} +3 -3
- package/lib/{chunk-EJ56Z27S.mjs → chunk-2EF72O53.mjs} +6 -6
- package/lib/{chunk-EN6H737C.mjs → chunk-33VIHGIE.mjs} +1 -1
- package/lib/{chunk-ZSAEN5X7.mjs → chunk-3QN2JTJH.mjs} +3 -3
- package/lib/{chunk-XJMDYFHO.mjs → chunk-3TFMB2ZU.mjs} +3 -3
- package/lib/{chunk-ZG3V7XRP.mjs → chunk-4J6WJU6H.mjs} +1 -1
- package/lib/{chunk-JV5B7QPH.mjs → chunk-4LBDW7MG.mjs} +3 -3
- package/lib/{chunk-NEM7FT22.mjs → chunk-5NCBENYK.mjs} +3 -3
- package/lib/{chunk-JWWWYOOC.mjs → chunk-6WPEEBMC.mjs} +1 -1
- package/lib/{chunk-3AUAH6SB.mjs → chunk-6YU73H5M.mjs} +1 -1
- package/lib/{chunk-GJJJLJXB.mjs → chunk-7HQWD2HW.mjs} +2 -2
- package/lib/{chunk-DO5SSRTA.mjs → chunk-7LIZKR65.mjs} +1 -1
- package/lib/{chunk-BT63AA2K.mjs → chunk-AVYI3IRF.mjs} +1 -1
- package/lib/{chunk-PQMMGS3V.mjs → chunk-BNFC4BW2.mjs} +1 -1
- package/lib/{chunk-7GBIPPPJ.mjs → chunk-CU2FQJB3.mjs} +2 -2
- package/lib/{chunk-FE4FFIG4.mjs → chunk-DB4LE4EW.mjs} +2 -2
- package/lib/{chunk-XPBBHWYH.mjs → chunk-DJQD6XHB.mjs} +1 -1
- package/lib/{chunk-HS3TUYYV.mjs → chunk-DOYDNMGO.mjs} +1 -1
- package/lib/{chunk-RDNWD3P4.mjs → chunk-DTG6ZDOA.mjs} +1 -1
- package/lib/{chunk-FJ6D2YGE.mjs → chunk-EFI4OPOL.mjs} +1 -1
- package/lib/{chunk-VLXOCQDY.mjs → chunk-EIBKS56D.mjs} +1 -1
- package/lib/{chunk-YRWFLE4T.mjs → chunk-EKMGL7ZZ.mjs} +1 -1
- package/lib/{chunk-PUBY4YSN.mjs → chunk-FADGUVGS.mjs} +2 -2
- package/lib/{chunk-IOGFZUIN.mjs → chunk-FKLCZFMR.mjs} +2 -2
- package/lib/{chunk-ASDIW46N.mjs → chunk-GQOES35K.mjs} +2 -2
- package/lib/{chunk-BRU34C4E.mjs → chunk-HS7PWFF3.mjs} +3 -3
- package/lib/{chunk-ZWVIIWK3.mjs → chunk-HZAMMVDY.mjs} +3 -3
- package/lib/{chunk-2JM27LG6.mjs → chunk-ILTCTVY7.mjs} +1 -1
- package/lib/{chunk-C6AECCOD.mjs → chunk-INMX4E34.mjs} +1 -1
- package/lib/{chunk-EP73KCU2.mjs → chunk-IZYESQPA.mjs} +4 -4
- package/lib/{chunk-X737YRF5.mjs → chunk-J2YGXNIH.mjs} +2 -2
- package/lib/{chunk-JT4GOHCW.mjs → chunk-JDIKK2K5.mjs} +2 -2
- package/lib/chunk-JJA6BOVR.mjs +12 -0
- package/lib/{chunk-WUCECDGY.mjs → chunk-KPIWEUFQ.mjs} +1 -1
- package/lib/{chunk-FJ7CLVIP.mjs → chunk-KRZWEBDP.mjs} +2 -2
- package/lib/{chunk-4SO7GWOJ.mjs → chunk-MIEXUCOH.mjs} +1 -1
- package/lib/{chunk-ZPYNGMOG.mjs → chunk-MR7AJAP2.mjs} +2 -2
- package/lib/{chunk-ZNFQWQ2T.mjs → chunk-NHN7GU32.mjs} +2 -2
- package/lib/{chunk-CUP62RON.mjs → chunk-NPCDCOTL.mjs} +1 -1
- package/lib/{chunk-6ENX3IQD.mjs → chunk-OQ6PNNED.mjs} +2 -2
- package/lib/{chunk-FUOU7EFL.mjs → chunk-PZ2SAVMT.mjs} +2 -2
- package/lib/{chunk-GQID4AGA.mjs → chunk-PZP5ZUI3.mjs} +1 -1
- package/lib/{chunk-OSWW7RO6.mjs → chunk-RA7237YI.mjs} +6 -6
- package/lib/{chunk-ZK7CNJ4A.mjs → chunk-RAQQH2DI.mjs} +1 -1
- package/lib/{chunk-FT2IRACC.mjs → chunk-RGEGLOEG.mjs} +2 -2
- package/lib/{chunk-LNFOP27Y.mjs → chunk-T27AVHAC.mjs} +1 -1
- package/lib/{chunk-TRCSKNBB.mjs → chunk-T2NWMSDU.mjs} +3 -3
- package/lib/{chunk-DJJVBJ43.mjs → chunk-THX2YDD5.mjs} +1 -1
- package/lib/{chunk-QAXBH7UN.mjs → chunk-TXKGISWW.mjs} +2 -2
- package/lib/{chunk-OPQY47KX.mjs → chunk-TZFHL54Q.mjs} +1 -1
- package/lib/{chunk-IZHMZGGK.mjs → chunk-UIJLFZYF.mjs} +1 -1
- package/lib/{chunk-2LL5O6MQ.mjs → chunk-UMCBNLSL.mjs} +1 -1
- package/lib/{chunk-QJCK6KDK.mjs → chunk-UQSQUPSK.mjs} +2 -2
- package/lib/{chunk-G6ILMW5U.mjs → chunk-VXYPRBJB.mjs} +3 -3
- package/lib/{chunk-CILK7BCY.mjs → chunk-WWBPXBJT.mjs} +2 -2
- package/lib/{chunk-MKSHOXCA.mjs → chunk-XRN2HE4L.mjs} +1 -1
- package/lib/{chunk-P4BQZHBF.mjs → chunk-Z44CCSOP.mjs} +1 -1
- package/lib/{chunk-ML52WYPZ.mjs → chunk-Z7AZ74DI.mjs} +2 -2
- package/lib/components/accordion/index.native.js +36 -114
- package/lib/components/accordion/index.native.mjs +3 -3
- package/lib/components/accordion/item/AccordionItem.native.js +30 -108
- package/lib/components/accordion/item/AccordionItem.native.mjs +3 -3
- package/lib/components/accordion/item/index.native.js +30 -108
- package/lib/components/accordion/item/index.native.mjs +3 -3
- package/lib/components/alert/Alert.mjs +1 -1
- package/lib/components/alert/Alert.native.js +50 -128
- package/lib/components/alert/Alert.native.mjs +13 -13
- package/lib/components/alert/index.mjs +1 -1
- package/lib/components/alert/index.native.js +50 -128
- package/lib/components/alert/index.native.mjs +13 -13
- package/lib/components/autocomplete/AutoComplete.mjs +10 -10
- package/lib/components/autocomplete/AutoComplete.native.js +58 -136
- package/lib/components/autocomplete/AutoComplete.native.mjs +16 -16
- package/lib/components/autocomplete/index.mjs +10 -10
- package/lib/components/autocomplete/index.native.js +58 -136
- package/lib/components/autocomplete/index.native.mjs +18 -18
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js +11 -89
- package/lib/components/autocomplete/item/AutoCompleteIem.native.mjs +5 -5
- package/lib/components/autocomplete/item/AutoCompleteItem.mjs +1 -1
- package/lib/components/autocomplete/item/index.mjs +1 -1
- package/lib/components/autocomplete/item/index.native.js +11 -89
- package/lib/components/autocomplete/item/index.native.mjs +5 -5
- package/lib/components/autocomplete/menu/AutoCompleteMenu.mjs +1 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js +27 -105
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.mjs +13 -13
- package/lib/components/autocomplete/menu/index.mjs +2 -2
- package/lib/components/autocomplete/menu/index.native.js +27 -105
- package/lib/components/autocomplete/menu/index.native.mjs +13 -13
- package/lib/components/autolayout/index.mjs +3 -3
- package/lib/components/badge/Badge.mjs +1 -1
- package/lib/components/badge/Badge.native.js +20 -98
- package/lib/components/badge/Badge.native.mjs +11 -11
- package/lib/components/badge/index.mjs +1 -1
- package/lib/components/badge/index.native.js +20 -98
- package/lib/components/badge/index.native.mjs +11 -11
- package/lib/components/box/Box.native.js +15 -93
- package/lib/components/box/Box.native.mjs +2 -2
- package/lib/components/box/content/BoxContent.mjs +1 -1
- package/lib/components/box/content/index.mjs +1 -1
- package/lib/components/box/footer/BoxFooter.mjs +1 -1
- package/lib/components/box/footer/BoxFooter.native.js +17 -95
- package/lib/components/box/footer/BoxFooter.native.mjs +10 -10
- package/lib/components/box/footer/index.mjs +1 -1
- package/lib/components/box/footer/index.native.js +17 -95
- package/lib/components/box/footer/index.native.mjs +10 -10
- package/lib/components/box/header/BoxHeader.mjs +1 -1
- package/lib/components/box/header/index.mjs +1 -1
- package/lib/components/box/index.mjs +5 -5
- package/lib/components/box/index.native.js +44 -122
- package/lib/components/box/index.native.mjs +14 -14
- package/lib/components/breadcrumb/Breadcrumb.native.js +17 -95
- package/lib/components/breadcrumb/Breadcrumb.native.mjs +3 -3
- package/lib/components/breadcrumb/index.mjs +1 -1
- package/lib/components/breadcrumb/index.native.js +25 -103
- package/lib/components/breadcrumb/index.native.mjs +7 -7
- package/lib/components/breadcrumb/item/BreadcrumbItem.mjs +1 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +12 -90
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.mjs +5 -5
- package/lib/components/breadcrumb/item/index.mjs +1 -1
- package/lib/components/breadcrumb/item/index.native.js +12 -90
- package/lib/components/breadcrumb/item/index.native.mjs +5 -5
- package/lib/components/button/Button.mjs +1 -1
- package/lib/components/button/Button.native.js +32 -110
- package/lib/components/button/Button.native.mjs +11 -11
- package/lib/components/button/index.mjs +1 -1
- package/lib/components/button/index.native.js +34 -112
- package/lib/components/button/index.native.mjs +11 -11
- package/lib/components/button/list/ButtonList.mjs +1 -1
- package/lib/components/button/list/index.mjs +1 -1
- package/lib/components/calendar/Calendar.mjs +10 -10
- package/lib/components/calendar/Calendar.native.js +55 -133
- package/lib/components/calendar/Calendar.native.mjs +6 -6
- package/lib/components/calendar/index.mjs +10 -10
- package/lib/components/calendar/index.native.js +55 -133
- package/lib/components/calendar/index.native.mjs +6 -6
- package/lib/components/card/Card.native.js +12 -90
- package/lib/components/card/Card.native.mjs +2 -2
- package/lib/components/card/content/CardContent.native.js +15 -93
- package/lib/components/card/content/CardContent.native.mjs +3 -3
- package/lib/components/card/content/index.native.js +15 -93
- package/lib/components/card/content/index.native.mjs +3 -3
- package/lib/components/card/image/CardImage.native.js +17 -95
- package/lib/components/card/image/CardImage.native.mjs +3 -3
- package/lib/components/card/image/index.native.js +17 -95
- package/lib/components/card/image/index.native.mjs +3 -3
- package/lib/components/card/index.mjs +1 -1
- package/lib/components/card/index.native.js +20 -98
- package/lib/components/card/index.native.mjs +6 -6
- package/lib/components/checkbox/Checkbox.native.js +21 -99
- package/lib/components/checkbox/Checkbox.native.mjs +6 -6
- package/lib/components/checkbox/index.mjs +9 -9
- package/lib/components/checkbox/index.native.js +46 -124
- package/lib/components/checkbox/index.native.mjs +15 -15
- package/lib/components/checkbox/list/CheckboxList.mjs +9 -9
- package/lib/components/checkbox/list/CheckboxList.native.js +10 -88
- package/lib/components/checkbox/list/CheckboxList.native.mjs +5 -5
- package/lib/components/checkbox/list/index.mjs +9 -9
- package/lib/components/checkbox/list/index.native.js +10 -88
- package/lib/components/checkbox/list/index.native.mjs +5 -5
- package/lib/components/checkbox/tiles/tile/CheckboxTile.mjs +9 -9
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.js +35 -113
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.mjs +13 -13
- package/lib/components/checkbox/tiles/tile/index.mjs +9 -9
- package/lib/components/checkbox/tiles/tile/index.native.js +35 -113
- package/lib/components/checkbox/tiles/tile/index.native.mjs +13 -13
- package/lib/components/chips/Chips.native.js +28 -106
- package/lib/components/chips/Chips.native.mjs +6 -6
- package/lib/components/chips/index.native.js +28 -106
- package/lib/components/chips/index.native.mjs +6 -6
- package/lib/components/columns/column/Column.native.js +16 -94
- package/lib/components/columns/column/Column.native.mjs +10 -10
- package/lib/components/columns/column/index.native.js +16 -94
- package/lib/components/columns/column/index.native.mjs +10 -10
- package/lib/components/columns/index.native.js +16 -94
- package/lib/components/columns/index.native.mjs +10 -10
- package/lib/components/countdown/Countdown.native.js +11 -89
- package/lib/components/countdown/Countdown.native.mjs +5 -5
- package/lib/components/countdown/index.native.js +11 -89
- package/lib/components/countdown/index.native.mjs +5 -5
- package/lib/components/datepicker/DatePicker.mjs +10 -10
- package/lib/components/datepicker/DatePicker.native.js +62 -140
- package/lib/components/datepicker/DatePicker.native.mjs +7 -7
- package/lib/components/datepicker/index.mjs +10 -10
- package/lib/components/datepicker/index.native.js +62 -140
- package/lib/components/datepicker/index.native.mjs +7 -7
- package/lib/components/divider/Divider.mjs +1 -1
- package/lib/components/divider/Divider.native.js +25 -103
- package/lib/components/divider/Divider.native.mjs +6 -6
- package/lib/components/divider/index.mjs +1 -1
- package/lib/components/divider/index.native.js +25 -103
- package/lib/components/divider/index.native.mjs +6 -6
- package/lib/components/fab/Fab.mjs +1 -1
- package/lib/components/fab/Fab.native.js +21 -99
- package/lib/components/fab/Fab.native.mjs +12 -12
- package/lib/components/fab/index.mjs +1 -1
- package/lib/components/fab/index.native.js +21 -99
- package/lib/components/fab/index.native.mjs +12 -12
- package/lib/components/flex-box/FlexBox.native.js +22 -100
- package/lib/components/flex-box/FlexBox.native.mjs +10 -10
- package/lib/components/flex-box/index.native.js +24 -102
- package/lib/components/flex-box/index.native.mjs +10 -10
- package/lib/components/hero/Hero.native.js +56 -134
- package/lib/components/hero/Hero.native.mjs +13 -13
- package/lib/components/hero/index.native.js +56 -134
- package/lib/components/hero/index.native.mjs +13 -13
- package/lib/components/icon/Icon.mjs +1 -1
- package/lib/components/icon/Icon.native.js +14 -92
- package/lib/components/icon/Icon.native.mjs +2 -2
- package/lib/components/icon/index.mjs +1 -1
- package/lib/components/icon/index.native.js +14 -92
- package/lib/components/icon/index.native.mjs +2 -2
- package/lib/components/image/Image.mjs +9 -9
- package/lib/components/image/index.mjs +9 -9
- package/lib/components/index.js +7 -85
- package/lib/components/index.mjs +55 -55
- package/lib/components/index.native.js +483 -561
- package/lib/components/index.native.mjs +84 -84
- package/lib/components/input/Input.mjs +9 -9
- package/lib/components/input/Input.native.js +46 -124
- package/lib/components/input/Input.native.mjs +13 -13
- package/lib/components/input/gauge/InputGauge.mjs +9 -9
- package/lib/components/input/gauge/InputGauge.native.js +22 -100
- package/lib/components/input/gauge/InputGauge.native.mjs +12 -12
- package/lib/components/input/gauge/hook/useGauge.mjs +9 -9
- package/lib/components/input/gauge/hook/useGauge.native.js +14 -92
- package/lib/components/input/gauge/hook/useGauge.native.mjs +10 -10
- package/lib/components/input/index.mjs +9 -9
- package/lib/components/input/index.native.js +46 -124
- package/lib/components/input/index.native.mjs +13 -13
- package/lib/components/link/Link.mjs +1 -1
- package/lib/components/link/Link.native.js +21 -99
- package/lib/components/link/Link.native.mjs +3 -3
- package/lib/components/link/index.mjs +1 -1
- package/lib/components/link/index.native.js +21 -99
- package/lib/components/link/index.native.mjs +3 -3
- package/lib/components/list/index.mjs +9 -9
- package/lib/components/list/index.native.js +22 -100
- package/lib/components/list/index.native.mjs +13 -13
- package/lib/components/list/item/ListItem.mjs +9 -9
- package/lib/components/list/item/ListItem.native.js +22 -100
- package/lib/components/list/item/ListItem.native.mjs +12 -12
- package/lib/components/list/item/description/ListItemDescription.mjs +1 -1
- package/lib/components/list/item/description/ListItemDescription.native.js +31 -109
- package/lib/components/list/item/description/ListItemDescription.native.mjs +12 -12
- package/lib/components/list/item/description/index.mjs +1 -1
- package/lib/components/list/item/description/index.native.js +31 -109
- package/lib/components/list/item/description/index.native.mjs +12 -12
- package/lib/components/list/item/index.mjs +9 -9
- package/lib/components/list/item/index.native.js +22 -100
- package/lib/components/list/item/index.native.mjs +13 -13
- package/lib/components/modal/Modal.mjs +1 -1
- package/lib/components/modal/Modal.native.js +31 -109
- package/lib/components/modal/Modal.native.mjs +12 -12
- package/lib/components/modal/body/ModalBody.mjs +1 -1
- package/lib/components/modal/body/ModalBody.native.js +17 -95
- package/lib/components/modal/body/ModalBody.native.mjs +10 -10
- package/lib/components/modal/body/index.native.js +17 -95
- package/lib/components/modal/body/index.native.mjs +10 -10
- package/lib/components/modal/footer/ModalFooter.mjs +1 -1
- package/lib/components/modal/footer/ModalFooter.native.js +22 -100
- package/lib/components/modal/footer/ModalFooter.native.mjs +12 -12
- package/lib/components/modal/footer/index.native.js +22 -100
- package/lib/components/modal/footer/index.native.mjs +12 -12
- package/lib/components/modal/index.mjs +1 -1
- package/lib/components/modal/index.native.js +37 -115
- package/lib/components/modal/index.native.mjs +13 -13
- package/lib/components/otp/Otp.mjs +1 -1
- package/lib/components/otp/Otp.native.js +29 -107
- package/lib/components/otp/Otp.native.mjs +13 -13
- package/lib/components/otp/index.mjs +1 -1
- package/lib/components/otp/index.native.js +29 -107
- package/lib/components/otp/index.native.mjs +13 -13
- package/lib/components/pagination/Pagination.mjs +1 -1
- package/lib/components/pagination/Pagination.native.js +26 -104
- package/lib/components/pagination/Pagination.native.mjs +6 -6
- package/lib/components/pagination/index.mjs +1 -1
- package/lib/components/pagination/index.native.js +26 -104
- package/lib/components/pagination/index.native.mjs +6 -6
- package/lib/components/popover/Popover.native.js +21 -99
- package/lib/components/popover/Popover.native.mjs +10 -10
- package/lib/components/popover/index.native.js +21 -99
- package/lib/components/popover/index.native.mjs +10 -10
- package/lib/components/price/Price.mjs +9 -9
- package/lib/components/price/Price.native.js +21 -99
- package/lib/components/price/Price.native.mjs +10 -10
- package/lib/components/price/index.mjs +9 -9
- package/lib/components/price/index.native.js +21 -99
- package/lib/components/price/index.native.mjs +10 -10
- package/lib/components/product-tour/ProductTour.mjs +1 -1
- package/lib/components/product-tour/index.mjs +1 -1
- package/lib/components/progress/Progress.mjs +9 -9
- package/lib/components/progress/Progress.native.js +36 -114
- package/lib/components/progress/Progress.native.mjs +12 -12
- package/lib/components/progress/index.mjs +9 -9
- package/lib/components/progress/index.native.js +56 -134
- package/lib/components/progress/index.native.mjs +13 -13
- 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 +37 -115
- package/lib/components/progress/radial/ProgressRadial.native.mjs +12 -12
- package/lib/components/progress/radial/index.mjs +1 -1
- package/lib/components/progress/radial/index.native.js +37 -115
- package/lib/components/progress/radial/index.native.mjs +12 -12
- package/lib/components/progress/radial/item/ProgressRadialtem.mjs +1 -1
- package/lib/components/progress/radial/item/index.mjs +1 -1
- package/lib/components/radio/Radio.native.js +24 -102
- package/lib/components/radio/Radio.native.mjs +12 -12
- package/lib/components/radio/index.mjs +12 -12
- package/lib/components/radio/index.native.js +35 -113
- package/lib/components/radio/index.native.mjs +17 -17
- package/lib/components/radio/list/RadioList.mjs +9 -9
- package/lib/components/radio/list/RadioList.native.mjs +1 -1
- package/lib/components/radio/list/index.mjs +9 -9
- package/lib/components/radio/list/index.native.mjs +1 -1
- 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 +29 -107
- package/lib/components/radio/tiles/tile/RadioTile.native.mjs +13 -13
- package/lib/components/radio/tiles/tile/index.mjs +9 -9
- package/lib/components/radio/tiles/tile/index.native.js +29 -107
- package/lib/components/radio/tiles/tile/index.native.mjs +13 -13
- package/lib/components/range/Range.mjs +9 -9
- package/lib/components/range/Range.native.js +24 -102
- package/lib/components/range/Range.native.mjs +12 -12
- package/lib/components/range/index.mjs +9 -9
- package/lib/components/range/index.native.js +24 -102
- package/lib/components/range/index.native.mjs +12 -12
- package/lib/components/rows/Rows.mjs +1 -1
- package/lib/components/rows/index.mjs +1 -1
- package/lib/components/rows/row/Row.mjs +1 -1
- package/lib/components/rows/row/index.mjs +1 -1
- package/lib/components/scroll-view/ScrollView.mjs +9 -9
- package/lib/components/scroll-view/ScrollView.native.js +23 -101
- package/lib/components/scroll-view/ScrollView.native.mjs +10 -10
- package/lib/components/scroll-view/index.mjs +9 -9
- package/lib/components/scroll-view/index.native.js +23 -101
- package/lib/components/scroll-view/index.native.mjs +10 -10
- package/lib/components/section/Section.mjs +9 -9
- package/lib/components/section/Section.native.js +19 -97
- package/lib/components/section/Section.native.mjs +10 -10
- package/lib/components/section/index.mjs +9 -9
- package/lib/components/section/index.native.js +19 -97
- package/lib/components/section/index.native.mjs +10 -10
- package/lib/components/segment-control/SegmentControl.mjs +9 -9
- package/lib/components/segment-control/SegmentControl.native.js +33 -111
- package/lib/components/segment-control/SegmentControl.native.mjs +13 -13
- package/lib/components/segment-control/index.mjs +9 -9
- package/lib/components/segment-control/index.native.js +37 -115
- package/lib/components/segment-control/index.native.mjs +13 -13
- package/lib/components/segment-control/item/SegmentControlItem.mjs +1 -1
- package/lib/components/segment-control/item/index.mjs +1 -1
- package/lib/components/select/Select.mjs +10 -10
- package/lib/components/select/Select.native.js +75 -153
- package/lib/components/select/Select.native.mjs +19 -19
- package/lib/components/select/index.mjs +10 -10
- package/lib/components/select/index.native.js +75 -153
- package/lib/components/select/index.native.mjs +19 -19
- package/lib/components/select/option/SelectOption.mjs +1 -1
- package/lib/components/select/option/SelectOption.native.js +23 -101
- package/lib/components/select/option/SelectOption.native.mjs +12 -12
- package/lib/components/select/option/index.mjs +1 -1
- package/lib/components/select/option/index.native.js +23 -101
- package/lib/components/select/option/index.native.mjs +13 -13
- package/lib/components/select/web/SelectDynamic.mjs +9 -9
- package/lib/components/select/web/SelectNative.mjs +10 -10
- package/lib/components/select/web/index.mjs +10 -10
- package/lib/components/skeleton/Skeleton.d.mts +4 -0
- package/lib/components/skeleton/Skeleton.d.ts +4 -0
- package/lib/components/skeleton/Skeleton.js +41 -0
- package/lib/components/skeleton/Skeleton.mjs +8 -0
- package/lib/components/skeleton/index.d.mts +1 -1
- package/lib/components/skeleton/index.d.ts +1 -1
- package/lib/components/skeleton/index.js +5 -83
- package/lib/components/skeleton/index.mjs +3 -3
- package/lib/components/skeleton/index.native.d.mts +3 -0
- package/lib/components/skeleton/index.native.d.ts +3 -0
- package/lib/components/skeleton/index.native.js +125 -0
- package/lib/components/skeleton/index.native.mjs +9 -0
- package/lib/components/stepper/Stepper.mjs +1 -1
- package/lib/components/stepper/Stepper.native.js +21 -99
- package/lib/components/stepper/Stepper.native.mjs +12 -12
- package/lib/components/stepper/index.mjs +2 -2
- package/lib/components/stepper/index.native.js +27 -105
- package/lib/components/stepper/index.native.mjs +12 -12
- package/lib/components/stepper/step/Step.mjs +1 -1
- package/lib/components/stepper/step/Step.native.js +20 -98
- package/lib/components/stepper/step/Step.native.mjs +10 -10
- package/lib/components/stepper/step/index.mjs +2 -2
- package/lib/components/stepper/step/index.native.js +20 -98
- package/lib/components/stepper/step/index.native.mjs +10 -10
- package/lib/components/sticker/Sticker.mjs +9 -9
- package/lib/components/sticker/Sticker.native.js +21 -99
- package/lib/components/sticker/Sticker.native.mjs +12 -12
- package/lib/components/sticker/index.mjs +9 -9
- package/lib/components/sticker/index.native.js +21 -99
- package/lib/components/sticker/index.native.mjs +12 -12
- package/lib/components/styleComponent/index.mjs +4 -4
- package/lib/components/switch/Switch.mjs +9 -9
- package/lib/components/switch/Switch.native.js +17 -95
- package/lib/components/switch/Switch.native.mjs +10 -10
- package/lib/components/switch/index.mjs +9 -9
- package/lib/components/switch/index.native.js +17 -95
- package/lib/components/switch/index.native.mjs +10 -10
- package/lib/components/table/Table.native.js +17 -95
- package/lib/components/table/Table.native.mjs +10 -10
- package/lib/components/table/index.mjs +4 -4
- package/lib/components/table/index.native.js +45 -123
- package/lib/components/table/index.native.mjs +16 -16
- package/lib/components/table/td/TableTd.native.js +17 -95
- package/lib/components/table/td/TableTd.native.mjs +10 -10
- package/lib/components/table/td/index.native.js +17 -95
- package/lib/components/table/td/index.native.mjs +10 -10
- package/lib/components/table/th/TableTh.native.js +33 -111
- package/lib/components/table/th/TableTh.native.mjs +12 -12
- package/lib/components/table/th/index.native.js +33 -111
- package/lib/components/table/th/index.native.mjs +12 -12
- package/lib/components/table/tr/TableTr.native.js +31 -109
- package/lib/components/table/tr/TableTr.native.mjs +12 -12
- package/lib/components/table/tr/index.native.js +31 -109
- package/lib/components/table/tr/index.native.mjs +12 -12
- package/lib/components/tabs/index.mjs +7 -7
- package/lib/components/tabs/index.native.js +36 -114
- package/lib/components/tabs/index.native.mjs +17 -17
- package/lib/components/tabs/tab-list/TabList.mjs +1 -1
- package/lib/components/tabs/tab-list/TabList.native.js +27 -105
- package/lib/components/tabs/tab-list/TabList.native.mjs +13 -13
- package/lib/components/tabs/tab-list/index.mjs +1 -1
- package/lib/components/tabs/tab-list/index.native.js +27 -105
- package/lib/components/tabs/tab-list/index.native.mjs +13 -13
- package/lib/components/tabs/tab-list/tab/Tab.mjs +1 -1
- package/lib/components/tabs/tab-list/tab/Tab.native.js +22 -100
- package/lib/components/tabs/tab-list/tab/Tab.native.mjs +6 -6
- package/lib/components/tabs/tab-list/tab/index.mjs +1 -1
- package/lib/components/tabs/tab-list/tab/index.native.js +22 -100
- package/lib/components/tabs/tab-list/tab/index.native.mjs +6 -6
- package/lib/components/tabs/tab-panels/TabPanels.native.js +17 -95
- package/lib/components/tabs/tab-panels/TabPanels.native.mjs +10 -10
- package/lib/components/tabs/tab-panels/index.native.js +17 -95
- package/lib/components/tabs/tab-panels/index.native.mjs +10 -10
- package/lib/components/tag/Tag.mjs +1 -1
- package/lib/components/tag/Tag.native.js +18 -96
- package/lib/components/tag/Tag.native.mjs +3 -3
- package/lib/components/tag/index.mjs +9 -9
- package/lib/components/tag/index.native.js +21 -99
- package/lib/components/tag/index.native.mjs +3 -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 +8 -86
- package/lib/components/text/Text.native.mjs +4 -4
- package/lib/components/text/index.native.js +8 -86
- package/lib/components/text/index.native.mjs +4 -4
- package/lib/components/textarea/Textarea.mjs +9 -9
- package/lib/components/textarea/Textarea.native.js +28 -106
- package/lib/components/textarea/Textarea.native.mjs +12 -12
- package/lib/components/textarea/index.mjs +9 -9
- package/lib/components/textarea/index.native.js +28 -106
- package/lib/components/textarea/index.native.mjs +12 -12
- package/lib/components/timeline/Timeline.mjs +1 -1
- package/lib/components/timeline/content/TimelineContent.mjs +1 -1
- package/lib/components/timeline/content/TimelineContent.native.js +34 -112
- package/lib/components/timeline/content/TimelineContent.native.mjs +13 -13
- package/lib/components/timeline/content/index.mjs +1 -1
- package/lib/components/timeline/content/index.native.js +34 -112
- package/lib/components/timeline/content/index.native.mjs +13 -13
- package/lib/components/timeline/index.mjs +6 -6
- package/lib/components/timeline/index.native.js +38 -116
- package/lib/components/timeline/index.native.mjs +15 -15
- package/lib/components/timeline/item/TimelineItem.mjs +1 -1
- package/lib/components/timeline/item/index.mjs +1 -1
- package/lib/components/timeline/marker/TimelineMarker.mjs +1 -1
- package/lib/components/timeline/marker/TimelineMarker.native.js +27 -105
- package/lib/components/timeline/marker/TimelineMarker.native.mjs +11 -11
- package/lib/components/timeline/marker/index.mjs +1 -1
- package/lib/components/timeline/marker/index.native.js +27 -105
- package/lib/components/timeline/marker/index.native.mjs +12 -12
- package/lib/components/title/Title.native.js +19 -97
- package/lib/components/title/Title.native.mjs +11 -11
- package/lib/components/title/index.native.js +19 -97
- package/lib/components/title/index.native.mjs +11 -11
- package/lib/components/view/View.mjs +9 -9
- package/lib/components/view/View.native.js +24 -102
- package/lib/components/view/View.native.mjs +10 -10
- package/lib/components/view/index.mjs +9 -9
- package/lib/components/view/index.native.js +24 -102
- package/lib/components/view/index.native.mjs +10 -10
- 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/helpers/index.mjs +3 -3
- package/lib/helpers/index.native.mjs +3 -3
- package/lib/index.js +8 -86
- package/lib/index.mjs +63 -63
- package/lib/index.native.js +484 -562
- package/lib/index.native.mjs +95 -95
- package/lib/objects/Typography/index.mjs +3 -3
- package/lib/objects/Typography/index.native.mjs +7 -7
- package/lib/objects/facets/Status/index.mjs +1 -1
- package/lib/objects/facets/Status/index.native.js +14 -92
- package/lib/objects/facets/Status/index.native.mjs +2 -2
- package/lib/objects/facets/index.mjs +9 -9
- package/lib/objects/facets/index.native.js +14 -92
- package/lib/objects/facets/index.native.mjs +10 -10
- package/lib/objects/index.mjs +13 -13
- package/lib/objects/index.native.js +14 -92
- package/lib/objects/index.native.mjs +17 -17
- 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 -1
|
@@ -99,92 +99,14 @@ var getColorStyle = (trilogyColor) => {
|
|
|
99
99
|
|
|
100
100
|
// components/card/Card.native.tsx
|
|
101
101
|
var import_react5 = __toESM(require("react"));
|
|
102
|
-
var
|
|
102
|
+
var import_react_native = require("react-native");
|
|
103
103
|
|
|
104
|
-
// components/skeleton/Skeleton.
|
|
104
|
+
// components/skeleton/Skeleton.tsx
|
|
105
105
|
var import_react4 = __toESM(require("react"));
|
|
106
|
-
var
|
|
107
|
-
|
|
108
|
-
style,
|
|
109
|
-
width = "100%",
|
|
110
|
-
height = 20,
|
|
111
|
-
backgroundColor = "#E1E9EE",
|
|
112
|
-
shimmerColor = "#F7F8F8",
|
|
113
|
-
duration = 1200,
|
|
114
|
-
borderRadius = 4,
|
|
115
|
-
children,
|
|
116
|
-
testID
|
|
117
|
-
}) => {
|
|
118
|
-
const shimmerValue = (0, import_react4.useRef)(new import_react_native.Animated.Value(0)).current;
|
|
119
|
-
const [containerWidth, setContainerWidth] = import_react4.default.useState(200);
|
|
120
|
-
(0, import_react4.useEffect)(() => {
|
|
121
|
-
const shimmerAnimation = import_react_native.Animated.loop(
|
|
122
|
-
import_react_native.Animated.timing(shimmerValue, {
|
|
123
|
-
toValue: 1,
|
|
124
|
-
duration,
|
|
125
|
-
useNativeDriver: true
|
|
126
|
-
}),
|
|
127
|
-
{ iterations: -1 }
|
|
128
|
-
);
|
|
129
|
-
shimmerAnimation.start();
|
|
130
|
-
return () => shimmerAnimation.stop();
|
|
131
|
-
}, [shimmerValue, duration]);
|
|
132
|
-
const translateX = shimmerValue.interpolate({
|
|
133
|
-
inputRange: [0, 1],
|
|
134
|
-
outputRange: [-containerWidth, containerWidth]
|
|
135
|
-
});
|
|
136
|
-
const opacity = shimmerValue.interpolate({
|
|
137
|
-
inputRange: [0, 0.5, 1],
|
|
138
|
-
outputRange: [0.3, 0.8, 0.3]
|
|
139
|
-
});
|
|
140
|
-
const containerStyle = {
|
|
141
|
-
width: children ? void 0 : width,
|
|
142
|
-
height: children ? void 0 : height,
|
|
143
|
-
backgroundColor,
|
|
144
|
-
borderRadius,
|
|
145
|
-
overflow: "hidden",
|
|
146
|
-
alignSelf: children ? "flex-start" : void 0,
|
|
147
|
-
...style
|
|
148
|
-
};
|
|
149
|
-
const handleLayout = (event) => {
|
|
150
|
-
const { width: layoutWidth } = event.nativeEvent.layout;
|
|
151
|
-
setContainerWidth(layoutWidth);
|
|
152
|
-
};
|
|
153
|
-
if (children) {
|
|
154
|
-
return /* @__PURE__ */ import_react4.default.createElement(import_react_native.View, { style: containerStyle, testID, onLayout: handleLayout }, /* @__PURE__ */ import_react4.default.createElement(import_react_native.View, { style: { opacity: 0 } }, children), /* @__PURE__ */ import_react4.default.createElement(
|
|
155
|
-
import_react_native.Animated.View,
|
|
156
|
-
{
|
|
157
|
-
style: [
|
|
158
|
-
{
|
|
159
|
-
position: "absolute",
|
|
160
|
-
top: 0,
|
|
161
|
-
left: 0,
|
|
162
|
-
width: containerWidth * 0.7,
|
|
163
|
-
height: "100%",
|
|
164
|
-
backgroundColor: shimmerColor,
|
|
165
|
-
opacity,
|
|
166
|
-
transform: [{ translateX }]
|
|
167
|
-
}
|
|
168
|
-
]
|
|
169
|
-
}
|
|
170
|
-
));
|
|
171
|
-
}
|
|
172
|
-
return /* @__PURE__ */ import_react4.default.createElement(import_react_native.View, { style: containerStyle, testID, onLayout: handleLayout }, /* @__PURE__ */ import_react4.default.createElement(
|
|
173
|
-
import_react_native.Animated.View,
|
|
174
|
-
{
|
|
175
|
-
style: [
|
|
176
|
-
{
|
|
177
|
-
width: containerWidth * 0.7,
|
|
178
|
-
height: "100%",
|
|
179
|
-
backgroundColor: shimmerColor,
|
|
180
|
-
opacity,
|
|
181
|
-
transform: [{ translateX }]
|
|
182
|
-
}
|
|
183
|
-
]
|
|
184
|
-
}
|
|
185
|
-
));
|
|
106
|
+
var Skeleton = () => {
|
|
107
|
+
return /* @__PURE__ */ import_react4.default.createElement("div", null);
|
|
186
108
|
};
|
|
187
|
-
var
|
|
109
|
+
var Skeleton_default = Skeleton;
|
|
188
110
|
|
|
189
111
|
// components/card/Card.native.tsx
|
|
190
112
|
var CardContext = (0, import_react5.createContext)({
|
|
@@ -198,7 +120,7 @@ var Card = import_react5.default.forwardRef(
|
|
|
198
120
|
({ children, flat, horizontal, floating, onClick, skeleton, reversed, fullheight, active, ...others }, ref) => {
|
|
199
121
|
const borderColor = "#ccc";
|
|
200
122
|
const cardRadius = 6;
|
|
201
|
-
const styles =
|
|
123
|
+
const styles = import_react_native.StyleSheet.create({
|
|
202
124
|
card: {
|
|
203
125
|
width: "100%",
|
|
204
126
|
minHeight: 100,
|
|
@@ -232,7 +154,7 @@ var Card = import_react5.default.forwardRef(
|
|
|
232
154
|
}
|
|
233
155
|
});
|
|
234
156
|
const CardSkeleton = () => /* @__PURE__ */ import_react5.default.createElement(
|
|
235
|
-
|
|
157
|
+
Skeleton_default,
|
|
236
158
|
{
|
|
237
159
|
style: styles.skeleton,
|
|
238
160
|
width: "100%",
|
|
@@ -242,17 +164,17 @@ var Card = import_react5.default.forwardRef(
|
|
|
242
164
|
},
|
|
243
165
|
children
|
|
244
166
|
);
|
|
245
|
-
const ShadowWrapper = ({ children: children2 }) => /* @__PURE__ */ import_react5.default.createElement(
|
|
167
|
+
const ShadowWrapper = ({ children: children2 }) => /* @__PURE__ */ import_react5.default.createElement(import_react_native.View, { style: [!flat && !floating ? styles.shadow : void 0] }, children2);
|
|
246
168
|
let cardView;
|
|
247
169
|
if (skeleton) {
|
|
248
170
|
return /* @__PURE__ */ import_react5.default.createElement(CardSkeleton, null);
|
|
249
171
|
}
|
|
250
172
|
if (horizontal) {
|
|
251
|
-
cardView = /* @__PURE__ */ import_react5.default.createElement(
|
|
173
|
+
cardView = /* @__PURE__ */ import_react5.default.createElement(import_react_native.View, { ref, style: [styles.horizontal, styles.card], testID: "card-horizontal" }, children);
|
|
252
174
|
} else if (reversed) {
|
|
253
|
-
cardView = /* @__PURE__ */ import_react5.default.createElement(
|
|
175
|
+
cardView = /* @__PURE__ */ import_react5.default.createElement(import_react_native.View, { ref, style: [styles.reversed, styles.card], testID: "card-reversed" }, children);
|
|
254
176
|
} else {
|
|
255
|
-
cardView = /* @__PURE__ */ import_react5.default.createElement(
|
|
177
|
+
cardView = /* @__PURE__ */ import_react5.default.createElement(import_react_native.View, { ref, style: [styles.card], ...others }, children);
|
|
256
178
|
}
|
|
257
179
|
return onClick ? /* @__PURE__ */ import_react5.default.createElement(StatesContext.Provider, { value: { inverted: false, active: !!active, flat: !!flat } }, /* @__PURE__ */ import_react5.default.createElement(
|
|
258
180
|
CardContext.Provider,
|
|
@@ -265,7 +187,7 @@ var Card = import_react5.default.forwardRef(
|
|
|
265
187
|
active: active || false
|
|
266
188
|
}
|
|
267
189
|
},
|
|
268
|
-
/* @__PURE__ */ import_react5.default.createElement(
|
|
190
|
+
/* @__PURE__ */ import_react5.default.createElement(import_react_native.View, { style: { width: "100%" } }, /* @__PURE__ */ import_react5.default.createElement(import_react_native.TouchableOpacity, { testID: "card-click-test", style: { width: "100%" }, onPress: onClick, activeOpacity: 0.85 }, /* @__PURE__ */ import_react5.default.createElement(ShadowWrapper, null, cardView)))
|
|
269
191
|
)) : /* @__PURE__ */ import_react5.default.createElement(StatesContext.Provider, { value: { inverted: false, active: !!active, flat: !!flat } }, /* @__PURE__ */ import_react5.default.createElement(
|
|
270
192
|
CardContext.Provider,
|
|
271
193
|
{
|
|
@@ -285,13 +207,13 @@ Card.displayName = "Card" /* Card */;
|
|
|
285
207
|
|
|
286
208
|
// components/card/image/CardImage.native.tsx
|
|
287
209
|
var import_react6 = __toESM(require("react"));
|
|
288
|
-
var
|
|
210
|
+
var import_react_native2 = require("react-native");
|
|
289
211
|
var CardImage = import_react6.default.forwardRef(
|
|
290
212
|
({ src, size, alt, onClick, contain, ...others }, ref) => {
|
|
291
213
|
const { horizontal } = (0, import_react6.useContext)(CardContext);
|
|
292
214
|
const maxSize = horizontal ? "50%" : "100%";
|
|
293
215
|
const [ratio, setRatio] = (0, import_react6.useState)(1);
|
|
294
|
-
const styles =
|
|
216
|
+
const styles = import_react_native2.StyleSheet.create({
|
|
295
217
|
cardImage: {
|
|
296
218
|
width: size ? `${size}0%` : maxSize,
|
|
297
219
|
aspectRatio: horizontal ? void 0 : ratio,
|
|
@@ -303,7 +225,7 @@ var CardImage = import_react6.default.forwardRef(
|
|
|
303
225
|
});
|
|
304
226
|
(0, import_react6.useEffect)(() => {
|
|
305
227
|
if (!horizontal) {
|
|
306
|
-
typeof src === "string" ?
|
|
228
|
+
typeof src === "string" ? import_react_native2.Image.getSize(
|
|
307
229
|
src,
|
|
308
230
|
(w, h) => {
|
|
309
231
|
h && setRatio(w / h);
|
|
@@ -313,7 +235,7 @@ var CardImage = import_react6.default.forwardRef(
|
|
|
313
235
|
}
|
|
314
236
|
}, [src, horizontal]);
|
|
315
237
|
const image = /* @__PURE__ */ import_react6.default.createElement(
|
|
316
|
-
|
|
238
|
+
import_react_native2.Image,
|
|
317
239
|
{
|
|
318
240
|
ref,
|
|
319
241
|
accessibilityLabel: alt,
|
|
@@ -322,7 +244,7 @@ var CardImage = import_react6.default.forwardRef(
|
|
|
322
244
|
...others
|
|
323
245
|
}
|
|
324
246
|
);
|
|
325
|
-
return onClick ? /* @__PURE__ */ import_react6.default.createElement(
|
|
247
|
+
return onClick ? /* @__PURE__ */ import_react6.default.createElement(import_react_native2.View, null, /* @__PURE__ */ import_react6.default.createElement(import_react_native2.TouchableOpacity, { onPress: onClick, activeOpacity: 0.85 }, image)) : image;
|
|
326
248
|
}
|
|
327
249
|
);
|
|
328
250
|
CardImage.displayName = "CardImage" /* CardImage */;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
CardImage_native_default
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
4
|
+
} from "../../../chunk-DJQD6XHB.mjs";
|
|
5
|
+
import "../../../chunk-3TFMB2ZU.mjs";
|
|
6
6
|
import "../../../chunk-CWIO3GEP.mjs";
|
|
7
7
|
import "../../../chunk-E4YRRUI3.mjs";
|
|
8
8
|
import "../../../chunk-UZO5VCH2.mjs";
|
|
9
|
-
import "../../../chunk-
|
|
9
|
+
import "../../../chunk-JJA6BOVR.mjs";
|
|
10
10
|
import "../../../chunk-LHDHBH5T.mjs";
|
|
11
11
|
import "../../../chunk-VDLM4YQP.mjs";
|
|
12
12
|
import "../../../chunk-QIPGVLHJ.mjs";
|
|
@@ -3,11 +3,11 @@ import "../../chunk-VHW7KXW7.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
image_default
|
|
5
5
|
} from "../../chunk-QTU7TCVL.mjs";
|
|
6
|
+
import "../../chunk-NWKP62JQ.mjs";
|
|
6
7
|
import {
|
|
7
8
|
content_default
|
|
8
9
|
} from "../../chunk-HWHXZZKH.mjs";
|
|
9
10
|
import "../../chunk-ICF5RIVG.mjs";
|
|
10
|
-
import "../../chunk-NWKP62JQ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
Card_default
|
|
13
13
|
} from "../../chunk-UK4S4W4O.mjs";
|
|
@@ -102,92 +102,14 @@ var getColorStyle = (trilogyColor) => {
|
|
|
102
102
|
|
|
103
103
|
// components/card/Card.native.tsx
|
|
104
104
|
var import_react5 = __toESM(require("react"));
|
|
105
|
-
var
|
|
105
|
+
var import_react_native = require("react-native");
|
|
106
106
|
|
|
107
|
-
// components/skeleton/Skeleton.
|
|
107
|
+
// components/skeleton/Skeleton.tsx
|
|
108
108
|
var import_react4 = __toESM(require("react"));
|
|
109
|
-
var
|
|
110
|
-
|
|
111
|
-
style,
|
|
112
|
-
width = "100%",
|
|
113
|
-
height = 20,
|
|
114
|
-
backgroundColor = "#E1E9EE",
|
|
115
|
-
shimmerColor = "#F7F8F8",
|
|
116
|
-
duration = 1200,
|
|
117
|
-
borderRadius = 4,
|
|
118
|
-
children,
|
|
119
|
-
testID
|
|
120
|
-
}) => {
|
|
121
|
-
const shimmerValue = (0, import_react4.useRef)(new import_react_native.Animated.Value(0)).current;
|
|
122
|
-
const [containerWidth, setContainerWidth] = import_react4.default.useState(200);
|
|
123
|
-
(0, import_react4.useEffect)(() => {
|
|
124
|
-
const shimmerAnimation = import_react_native.Animated.loop(
|
|
125
|
-
import_react_native.Animated.timing(shimmerValue, {
|
|
126
|
-
toValue: 1,
|
|
127
|
-
duration,
|
|
128
|
-
useNativeDriver: true
|
|
129
|
-
}),
|
|
130
|
-
{ iterations: -1 }
|
|
131
|
-
);
|
|
132
|
-
shimmerAnimation.start();
|
|
133
|
-
return () => shimmerAnimation.stop();
|
|
134
|
-
}, [shimmerValue, duration]);
|
|
135
|
-
const translateX = shimmerValue.interpolate({
|
|
136
|
-
inputRange: [0, 1],
|
|
137
|
-
outputRange: [-containerWidth, containerWidth]
|
|
138
|
-
});
|
|
139
|
-
const opacity = shimmerValue.interpolate({
|
|
140
|
-
inputRange: [0, 0.5, 1],
|
|
141
|
-
outputRange: [0.3, 0.8, 0.3]
|
|
142
|
-
});
|
|
143
|
-
const containerStyle = {
|
|
144
|
-
width: children ? void 0 : width,
|
|
145
|
-
height: children ? void 0 : height,
|
|
146
|
-
backgroundColor,
|
|
147
|
-
borderRadius,
|
|
148
|
-
overflow: "hidden",
|
|
149
|
-
alignSelf: children ? "flex-start" : void 0,
|
|
150
|
-
...style
|
|
151
|
-
};
|
|
152
|
-
const handleLayout = (event) => {
|
|
153
|
-
const { width: layoutWidth } = event.nativeEvent.layout;
|
|
154
|
-
setContainerWidth(layoutWidth);
|
|
155
|
-
};
|
|
156
|
-
if (children) {
|
|
157
|
-
return /* @__PURE__ */ import_react4.default.createElement(import_react_native.View, { style: containerStyle, testID, onLayout: handleLayout }, /* @__PURE__ */ import_react4.default.createElement(import_react_native.View, { style: { opacity: 0 } }, children), /* @__PURE__ */ import_react4.default.createElement(
|
|
158
|
-
import_react_native.Animated.View,
|
|
159
|
-
{
|
|
160
|
-
style: [
|
|
161
|
-
{
|
|
162
|
-
position: "absolute",
|
|
163
|
-
top: 0,
|
|
164
|
-
left: 0,
|
|
165
|
-
width: containerWidth * 0.7,
|
|
166
|
-
height: "100%",
|
|
167
|
-
backgroundColor: shimmerColor,
|
|
168
|
-
opacity,
|
|
169
|
-
transform: [{ translateX }]
|
|
170
|
-
}
|
|
171
|
-
]
|
|
172
|
-
}
|
|
173
|
-
));
|
|
174
|
-
}
|
|
175
|
-
return /* @__PURE__ */ import_react4.default.createElement(import_react_native.View, { style: containerStyle, testID, onLayout: handleLayout }, /* @__PURE__ */ import_react4.default.createElement(
|
|
176
|
-
import_react_native.Animated.View,
|
|
177
|
-
{
|
|
178
|
-
style: [
|
|
179
|
-
{
|
|
180
|
-
width: containerWidth * 0.7,
|
|
181
|
-
height: "100%",
|
|
182
|
-
backgroundColor: shimmerColor,
|
|
183
|
-
opacity,
|
|
184
|
-
transform: [{ translateX }]
|
|
185
|
-
}
|
|
186
|
-
]
|
|
187
|
-
}
|
|
188
|
-
));
|
|
109
|
+
var Skeleton = () => {
|
|
110
|
+
return /* @__PURE__ */ import_react4.default.createElement("div", null);
|
|
189
111
|
};
|
|
190
|
-
var
|
|
112
|
+
var Skeleton_default = Skeleton;
|
|
191
113
|
|
|
192
114
|
// components/card/Card.native.tsx
|
|
193
115
|
var CardContext = (0, import_react5.createContext)({
|
|
@@ -201,7 +123,7 @@ var Card = import_react5.default.forwardRef(
|
|
|
201
123
|
({ children, flat, horizontal, floating, onClick, skeleton, reversed, fullheight, active, ...others }, ref) => {
|
|
202
124
|
const borderColor = "#ccc";
|
|
203
125
|
const cardRadius = 6;
|
|
204
|
-
const styles =
|
|
126
|
+
const styles = import_react_native.StyleSheet.create({
|
|
205
127
|
card: {
|
|
206
128
|
width: "100%",
|
|
207
129
|
minHeight: 100,
|
|
@@ -235,7 +157,7 @@ var Card = import_react5.default.forwardRef(
|
|
|
235
157
|
}
|
|
236
158
|
});
|
|
237
159
|
const CardSkeleton = () => /* @__PURE__ */ import_react5.default.createElement(
|
|
238
|
-
|
|
160
|
+
Skeleton_default,
|
|
239
161
|
{
|
|
240
162
|
style: styles.skeleton,
|
|
241
163
|
width: "100%",
|
|
@@ -245,17 +167,17 @@ var Card = import_react5.default.forwardRef(
|
|
|
245
167
|
},
|
|
246
168
|
children
|
|
247
169
|
);
|
|
248
|
-
const ShadowWrapper = ({ children: children2 }) => /* @__PURE__ */ import_react5.default.createElement(
|
|
170
|
+
const ShadowWrapper = ({ children: children2 }) => /* @__PURE__ */ import_react5.default.createElement(import_react_native.View, { style: [!flat && !floating ? styles.shadow : void 0] }, children2);
|
|
249
171
|
let cardView;
|
|
250
172
|
if (skeleton) {
|
|
251
173
|
return /* @__PURE__ */ import_react5.default.createElement(CardSkeleton, null);
|
|
252
174
|
}
|
|
253
175
|
if (horizontal) {
|
|
254
|
-
cardView = /* @__PURE__ */ import_react5.default.createElement(
|
|
176
|
+
cardView = /* @__PURE__ */ import_react5.default.createElement(import_react_native.View, { ref, style: [styles.horizontal, styles.card], testID: "card-horizontal" }, children);
|
|
255
177
|
} else if (reversed) {
|
|
256
|
-
cardView = /* @__PURE__ */ import_react5.default.createElement(
|
|
178
|
+
cardView = /* @__PURE__ */ import_react5.default.createElement(import_react_native.View, { ref, style: [styles.reversed, styles.card], testID: "card-reversed" }, children);
|
|
257
179
|
} else {
|
|
258
|
-
cardView = /* @__PURE__ */ import_react5.default.createElement(
|
|
180
|
+
cardView = /* @__PURE__ */ import_react5.default.createElement(import_react_native.View, { ref, style: [styles.card], ...others }, children);
|
|
259
181
|
}
|
|
260
182
|
return onClick ? /* @__PURE__ */ import_react5.default.createElement(StatesContext.Provider, { value: { inverted: false, active: !!active, flat: !!flat } }, /* @__PURE__ */ import_react5.default.createElement(
|
|
261
183
|
CardContext.Provider,
|
|
@@ -268,7 +190,7 @@ var Card = import_react5.default.forwardRef(
|
|
|
268
190
|
active: active || false
|
|
269
191
|
}
|
|
270
192
|
},
|
|
271
|
-
/* @__PURE__ */ import_react5.default.createElement(
|
|
193
|
+
/* @__PURE__ */ import_react5.default.createElement(import_react_native.View, { style: { width: "100%" } }, /* @__PURE__ */ import_react5.default.createElement(import_react_native.TouchableOpacity, { testID: "card-click-test", style: { width: "100%" }, onPress: onClick, activeOpacity: 0.85 }, /* @__PURE__ */ import_react5.default.createElement(ShadowWrapper, null, cardView)))
|
|
272
194
|
)) : /* @__PURE__ */ import_react5.default.createElement(StatesContext.Provider, { value: { inverted: false, active: !!active, flat: !!flat } }, /* @__PURE__ */ import_react5.default.createElement(
|
|
273
195
|
CardContext.Provider,
|
|
274
196
|
{
|
|
@@ -289,18 +211,18 @@ var Card_native_default = Card;
|
|
|
289
211
|
|
|
290
212
|
// components/card/content/CardContent.native.tsx
|
|
291
213
|
var import_react6 = __toESM(require("react"));
|
|
292
|
-
var
|
|
214
|
+
var import_react_native2 = require("react-native");
|
|
293
215
|
var CardContent = import_react6.default.forwardRef(
|
|
294
216
|
({ children, ...others }, ref) => {
|
|
295
217
|
const cardContextValues = (0, import_react6.useContext)(CardContext);
|
|
296
|
-
const styles =
|
|
218
|
+
const styles = import_react_native2.StyleSheet.create({
|
|
297
219
|
card: {
|
|
298
220
|
padding: 16,
|
|
299
221
|
minHeight: 10,
|
|
300
222
|
flex: cardContextValues.horizontal ? 1 : 0
|
|
301
223
|
}
|
|
302
224
|
});
|
|
303
|
-
return /* @__PURE__ */ import_react6.default.createElement(
|
|
225
|
+
return /* @__PURE__ */ import_react6.default.createElement(import_react_native2.View, { ref, style: styles.card, ...others }, children);
|
|
304
226
|
}
|
|
305
227
|
);
|
|
306
228
|
CardContent.displayName = "CardContent" /* CardContent */;
|
|
@@ -308,13 +230,13 @@ var CardContent_native_default = CardContent;
|
|
|
308
230
|
|
|
309
231
|
// components/card/image/CardImage.native.tsx
|
|
310
232
|
var import_react7 = __toESM(require("react"));
|
|
311
|
-
var
|
|
233
|
+
var import_react_native3 = require("react-native");
|
|
312
234
|
var CardImage = import_react7.default.forwardRef(
|
|
313
235
|
({ src, size, alt, onClick, contain, ...others }, ref) => {
|
|
314
236
|
const { horizontal } = (0, import_react7.useContext)(CardContext);
|
|
315
237
|
const maxSize = horizontal ? "50%" : "100%";
|
|
316
238
|
const [ratio, setRatio] = (0, import_react7.useState)(1);
|
|
317
|
-
const styles =
|
|
239
|
+
const styles = import_react_native3.StyleSheet.create({
|
|
318
240
|
cardImage: {
|
|
319
241
|
width: size ? `${size}0%` : maxSize,
|
|
320
242
|
aspectRatio: horizontal ? void 0 : ratio,
|
|
@@ -326,7 +248,7 @@ var CardImage = import_react7.default.forwardRef(
|
|
|
326
248
|
});
|
|
327
249
|
(0, import_react7.useEffect)(() => {
|
|
328
250
|
if (!horizontal) {
|
|
329
|
-
typeof src === "string" ?
|
|
251
|
+
typeof src === "string" ? import_react_native3.Image.getSize(
|
|
330
252
|
src,
|
|
331
253
|
(w, h) => {
|
|
332
254
|
h && setRatio(w / h);
|
|
@@ -336,7 +258,7 @@ var CardImage = import_react7.default.forwardRef(
|
|
|
336
258
|
}
|
|
337
259
|
}, [src, horizontal]);
|
|
338
260
|
const image = /* @__PURE__ */ import_react7.default.createElement(
|
|
339
|
-
|
|
261
|
+
import_react_native3.Image,
|
|
340
262
|
{
|
|
341
263
|
ref,
|
|
342
264
|
accessibilityLabel: alt,
|
|
@@ -345,7 +267,7 @@ var CardImage = import_react7.default.forwardRef(
|
|
|
345
267
|
...others
|
|
346
268
|
}
|
|
347
269
|
);
|
|
348
|
-
return onClick ? /* @__PURE__ */ import_react7.default.createElement(
|
|
270
|
+
return onClick ? /* @__PURE__ */ import_react7.default.createElement(import_react_native3.View, null, /* @__PURE__ */ import_react7.default.createElement(import_react_native3.TouchableOpacity, { onPress: onClick, activeOpacity: 0.85 }, image)) : image;
|
|
349
271
|
}
|
|
350
272
|
);
|
|
351
273
|
CardImage.displayName = "CardImage" /* CardImage */;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-ZECQFPLY.mjs";
|
|
3
|
-
import {
|
|
4
|
-
CardContent_native_default
|
|
5
|
-
} from "../../chunk-MKSHOXCA.mjs";
|
|
6
3
|
import {
|
|
7
4
|
CardImage_native_default
|
|
8
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-DJQD6XHB.mjs";
|
|
6
|
+
import {
|
|
7
|
+
CardContent_native_default
|
|
8
|
+
} from "../../chunk-XRN2HE4L.mjs";
|
|
9
9
|
import {
|
|
10
10
|
Card_native_default
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-3TFMB2ZU.mjs";
|
|
12
12
|
import "../../chunk-CWIO3GEP.mjs";
|
|
13
13
|
import "../../chunk-E4YRRUI3.mjs";
|
|
14
14
|
import {
|
|
15
15
|
CardImageSize
|
|
16
16
|
} from "../../chunk-OYMGXPMZ.mjs";
|
|
17
17
|
import "../../chunk-UZO5VCH2.mjs";
|
|
18
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-JJA6BOVR.mjs";
|
|
19
19
|
import "../../chunk-LHDHBH5T.mjs";
|
|
20
20
|
import "../../chunk-VDLM4YQP.mjs";
|
|
21
21
|
import "../../chunk-QIPGVLHJ.mjs";
|