@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
package/lib/index.js
CHANGED
|
@@ -153,6 +153,7 @@ __export(index_exports, {
|
|
|
153
153
|
Select: () => Select_default,
|
|
154
154
|
SelectOption: () => option_default,
|
|
155
155
|
SelectStatus: () => SelectStatus,
|
|
156
|
+
Skeleton: () => Skeleton_native_default,
|
|
156
157
|
Spacer: () => Spacer_default,
|
|
157
158
|
SpacerSize: () => SpacerSize,
|
|
158
159
|
SpacerSizeValues: () => SpacerSizeValues,
|
|
@@ -3212,7 +3213,15 @@ var SelectStatus = /* @__PURE__ */ ((SelectStatus2) => {
|
|
|
3212
3213
|
})(SelectStatus || {});
|
|
3213
3214
|
|
|
3214
3215
|
// components/calendar/Calendar.tsx
|
|
3215
|
-
var days = [
|
|
3216
|
+
var days = [
|
|
3217
|
+
import_locales3.calendarLocale.days[1],
|
|
3218
|
+
import_locales3.calendarLocale.days[2],
|
|
3219
|
+
import_locales3.calendarLocale.days[3],
|
|
3220
|
+
import_locales3.calendarLocale.days[4],
|
|
3221
|
+
import_locales3.calendarLocale.days[5],
|
|
3222
|
+
import_locales3.calendarLocale.days[6],
|
|
3223
|
+
import_locales3.calendarLocale.days[0]
|
|
3224
|
+
];
|
|
3216
3225
|
var months = [...import_locales3.calendarLocale.months];
|
|
3217
3226
|
var currentDate = /* @__PURE__ */ new Date();
|
|
3218
3227
|
function checkIsRange(date) {
|
|
@@ -3272,7 +3281,7 @@ var Calendar = import_react16.default.forwardRef(
|
|
|
3272
3281
|
const getAllDaysInMonth = import_react16.default.useCallback((year, month) => {
|
|
3273
3282
|
const date = new Date(year, month, 1);
|
|
3274
3283
|
const days2 = [];
|
|
3275
|
-
const firstDayOfMonth = date.getDay();
|
|
3284
|
+
const firstDayOfMonth = (date.getDay() + 6) % 7;
|
|
3276
3285
|
const lastDayOfMonth = new Date(year, month + 1, 0).getDate();
|
|
3277
3286
|
const allDays = [];
|
|
3278
3287
|
for (let i = 0; i < firstDayOfMonth; i++) days2.push(null);
|
|
@@ -3441,9 +3450,13 @@ var Calendar = import_react16.default.forwardRef(
|
|
|
3441
3450
|
}
|
|
3442
3451
|
}, [refsDays.current, refDayFocused.current]);
|
|
3443
3452
|
import_react16.default.useEffect(() => {
|
|
3453
|
+
const prevActiveDate = activeDate;
|
|
3444
3454
|
setActiveDate(value);
|
|
3445
3455
|
if (value instanceof Date) return setVisibleMonth(value);
|
|
3446
|
-
if (!(value instanceof Date) && value[0])
|
|
3456
|
+
if (!(value instanceof Date) && value[0]) {
|
|
3457
|
+
const isNewRangeSelection = !prevActiveDate || Array.isArray(prevActiveDate) && prevActiveDate.length === 0 || Array.isArray(prevActiveDate) && Array.isArray(value) && prevActiveDate.length === 2 && value.length === 1;
|
|
3458
|
+
if (isNewRangeSelection) return setVisibleMonth(value[0]);
|
|
3459
|
+
}
|
|
3447
3460
|
}, [value]);
|
|
3448
3461
|
return /* @__PURE__ */ import_react16.default.createElement(
|
|
3449
3462
|
"table",
|
|
@@ -6245,10 +6258,95 @@ var SegmentControl = import_react44.default.forwardRef(({ className, id, onClick
|
|
|
6245
6258
|
SegmentControl.displayName = "SegmentControl" /* SegmentControl */;
|
|
6246
6259
|
var SegmentControl_default = SegmentControl;
|
|
6247
6260
|
|
|
6261
|
+
// components/skeleton/Skeleton.native.tsx
|
|
6262
|
+
var import_react45 = __toESM(require("react"));
|
|
6263
|
+
var import_react_native = require("react-native");
|
|
6264
|
+
var Skeleton = ({
|
|
6265
|
+
style,
|
|
6266
|
+
width = "100%",
|
|
6267
|
+
height = 20,
|
|
6268
|
+
backgroundColor = "#E1E9EE",
|
|
6269
|
+
shimmerColor = "#F7F8F8",
|
|
6270
|
+
duration = 1200,
|
|
6271
|
+
borderRadius = 4,
|
|
6272
|
+
children,
|
|
6273
|
+
testID
|
|
6274
|
+
}) => {
|
|
6275
|
+
const shimmerValue = (0, import_react45.useRef)(new import_react_native.Animated.Value(0)).current;
|
|
6276
|
+
const [containerWidth, setContainerWidth] = import_react45.default.useState(200);
|
|
6277
|
+
(0, import_react45.useEffect)(() => {
|
|
6278
|
+
const shimmerAnimation = import_react_native.Animated.loop(
|
|
6279
|
+
import_react_native.Animated.timing(shimmerValue, {
|
|
6280
|
+
toValue: 1,
|
|
6281
|
+
duration,
|
|
6282
|
+
useNativeDriver: true
|
|
6283
|
+
}),
|
|
6284
|
+
{ iterations: -1 }
|
|
6285
|
+
);
|
|
6286
|
+
shimmerAnimation.start();
|
|
6287
|
+
return () => shimmerAnimation.stop();
|
|
6288
|
+
}, [shimmerValue, duration]);
|
|
6289
|
+
const translateX = shimmerValue.interpolate({
|
|
6290
|
+
inputRange: [0, 1],
|
|
6291
|
+
outputRange: [-containerWidth, containerWidth]
|
|
6292
|
+
});
|
|
6293
|
+
const opacity = shimmerValue.interpolate({
|
|
6294
|
+
inputRange: [0, 0.5, 1],
|
|
6295
|
+
outputRange: [0.3, 0.8, 0.3]
|
|
6296
|
+
});
|
|
6297
|
+
const containerStyle = {
|
|
6298
|
+
width: children ? void 0 : width,
|
|
6299
|
+
height: children ? void 0 : height,
|
|
6300
|
+
backgroundColor,
|
|
6301
|
+
borderRadius,
|
|
6302
|
+
overflow: "hidden",
|
|
6303
|
+
alignSelf: children ? "flex-start" : void 0,
|
|
6304
|
+
...style
|
|
6305
|
+
};
|
|
6306
|
+
const handleLayout = (event) => {
|
|
6307
|
+
const { width: layoutWidth } = event.nativeEvent.layout;
|
|
6308
|
+
setContainerWidth(layoutWidth);
|
|
6309
|
+
};
|
|
6310
|
+
if (children) {
|
|
6311
|
+
return /* @__PURE__ */ import_react45.default.createElement(import_react_native.View, { style: containerStyle, testID, onLayout: handleLayout }, /* @__PURE__ */ import_react45.default.createElement(import_react_native.View, { style: { opacity: 0 } }, children), /* @__PURE__ */ import_react45.default.createElement(
|
|
6312
|
+
import_react_native.Animated.View,
|
|
6313
|
+
{
|
|
6314
|
+
style: [
|
|
6315
|
+
{
|
|
6316
|
+
position: "absolute",
|
|
6317
|
+
top: 0,
|
|
6318
|
+
left: 0,
|
|
6319
|
+
width: containerWidth * 0.7,
|
|
6320
|
+
height: "100%",
|
|
6321
|
+
backgroundColor: shimmerColor,
|
|
6322
|
+
opacity,
|
|
6323
|
+
transform: [{ translateX }]
|
|
6324
|
+
}
|
|
6325
|
+
]
|
|
6326
|
+
}
|
|
6327
|
+
));
|
|
6328
|
+
}
|
|
6329
|
+
return /* @__PURE__ */ import_react45.default.createElement(import_react_native.View, { style: containerStyle, testID, onLayout: handleLayout }, /* @__PURE__ */ import_react45.default.createElement(
|
|
6330
|
+
import_react_native.Animated.View,
|
|
6331
|
+
{
|
|
6332
|
+
style: [
|
|
6333
|
+
{
|
|
6334
|
+
width: containerWidth * 0.7,
|
|
6335
|
+
height: "100%",
|
|
6336
|
+
backgroundColor: shimmerColor,
|
|
6337
|
+
opacity,
|
|
6338
|
+
transform: [{ translateX }]
|
|
6339
|
+
}
|
|
6340
|
+
]
|
|
6341
|
+
}
|
|
6342
|
+
));
|
|
6343
|
+
};
|
|
6344
|
+
var Skeleton_native_default = Skeleton;
|
|
6345
|
+
|
|
6248
6346
|
// components/spacer/Spacer.tsx
|
|
6249
6347
|
var import_clsx77 = __toESM(require("clsx"));
|
|
6250
|
-
var
|
|
6251
|
-
var Spacer =
|
|
6348
|
+
var React87 = __toESM(require("react"));
|
|
6349
|
+
var Spacer = React87.forwardRef(({ size: size2, horizontal, className, id }, ref) => {
|
|
6252
6350
|
const { styled } = useTrilogyContext();
|
|
6253
6351
|
const styles = {
|
|
6254
6352
|
spacer: {
|
|
@@ -6257,24 +6355,24 @@ var Spacer = React86.forwardRef(({ size: size2, horizontal, className, id }, ref
|
|
|
6257
6355
|
}
|
|
6258
6356
|
};
|
|
6259
6357
|
const classes = hashClass(styled, (0, import_clsx77.default)(className));
|
|
6260
|
-
return /* @__PURE__ */
|
|
6358
|
+
return /* @__PURE__ */ React87.createElement("div", { ref, id, style: styles.spacer, className: classes });
|
|
6261
6359
|
});
|
|
6262
6360
|
Spacer.displayName = "Spacer" /* Spacer */;
|
|
6263
6361
|
var Spacer_default = Spacer;
|
|
6264
6362
|
|
|
6265
6363
|
// components/stepper/Stepper.tsx
|
|
6266
6364
|
var import_clsx78 = __toESM(require("clsx"));
|
|
6267
|
-
var
|
|
6268
|
-
var Stepper =
|
|
6365
|
+
var React88 = __toESM(require("react"));
|
|
6366
|
+
var Stepper = React88.forwardRef(({ className, id, children, ...others }, ref) => {
|
|
6269
6367
|
const { styled } = useTrilogyContext();
|
|
6270
6368
|
const classes = hashClass(styled, (0, import_clsx78.default)("stepper-wrapper", className));
|
|
6271
|
-
const [currentStep, setCurrentStep] =
|
|
6272
|
-
const nbChild =
|
|
6369
|
+
const [currentStep, setCurrentStep] = React88.useState(1);
|
|
6370
|
+
const nbChild = React88.useMemo(() => {
|
|
6273
6371
|
if (children && Array.isArray(children)) return children.length;
|
|
6274
6372
|
if (children && !Array.isArray(children)) return 1;
|
|
6275
6373
|
return 0;
|
|
6276
6374
|
}, [children]);
|
|
6277
|
-
|
|
6375
|
+
React88.useEffect(() => {
|
|
6278
6376
|
if (children) {
|
|
6279
6377
|
if (Array.isArray(children)) {
|
|
6280
6378
|
let haveCurrentStep = false;
|
|
@@ -6291,15 +6389,15 @@ var Stepper = React87.forwardRef(({ className, id, children, ...others }, ref) =
|
|
|
6291
6389
|
}
|
|
6292
6390
|
}
|
|
6293
6391
|
}, [children]);
|
|
6294
|
-
return /* @__PURE__ */
|
|
6392
|
+
return /* @__PURE__ */ React88.createElement("div", { ref, id, className: classes, ...others }, children, /* @__PURE__ */ React88.createElement("div", { className: "step-count" }, /* @__PURE__ */ React88.createElement(Text_default, null, currentStep, "/", nbChild)));
|
|
6295
6393
|
});
|
|
6296
6394
|
Stepper.displayName = "Stepper" /* Stepper */;
|
|
6297
6395
|
var Stepper_default = Stepper;
|
|
6298
6396
|
|
|
6299
6397
|
// components/stepper/step/Step.tsx
|
|
6300
6398
|
var import_clsx79 = __toESM(require("clsx"));
|
|
6301
|
-
var
|
|
6302
|
-
var Step =
|
|
6399
|
+
var import_react46 = __toESM(require("react"));
|
|
6400
|
+
var Step = import_react46.default.forwardRef(({ className, id, active, current, done, label, iconName, error, ...others }, ref) => {
|
|
6303
6401
|
const { styled } = useTrilogyContext();
|
|
6304
6402
|
const classesStepLabel = hashClass(styled, (0, import_clsx79.default)("step-label"));
|
|
6305
6403
|
const classes = hashClass(
|
|
@@ -6313,7 +6411,7 @@ var Step = import_react45.default.forwardRef(({ className, id, active, current,
|
|
|
6313
6411
|
className
|
|
6314
6412
|
)
|
|
6315
6413
|
);
|
|
6316
|
-
return /* @__PURE__ */
|
|
6414
|
+
return /* @__PURE__ */ import_react46.default.createElement("div", { ref, id, className: classes, "data-label": label, ...others }, /* @__PURE__ */ import_react46.default.createElement("div", { className: classesStepLabel }, label, !done && iconName && /* @__PURE__ */ import_react46.default.createElement(Icon_default, { name: iconName && iconName, className: "step-icon", size: "medium" /* MEDIUM */ })));
|
|
6317
6415
|
});
|
|
6318
6416
|
Step.displayName = "Step" /* Step */;
|
|
6319
6417
|
var Step_default = Step;
|
|
@@ -6332,10 +6430,10 @@ var step_default = Step_default;
|
|
|
6332
6430
|
|
|
6333
6431
|
// components/switch/Switch.tsx
|
|
6334
6432
|
var import_clsx80 = __toESM(require("clsx"));
|
|
6335
|
-
var
|
|
6336
|
-
var Switch =
|
|
6433
|
+
var import_react47 = __toESM(require("react"));
|
|
6434
|
+
var Switch = import_react47.default.forwardRef(({
|
|
6337
6435
|
className,
|
|
6338
|
-
id =
|
|
6436
|
+
id = import_react47.default.useId(),
|
|
6339
6437
|
label,
|
|
6340
6438
|
value,
|
|
6341
6439
|
checked,
|
|
@@ -6349,23 +6447,23 @@ var Switch = import_react46.default.forwardRef(({
|
|
|
6349
6447
|
fullWidth,
|
|
6350
6448
|
...others
|
|
6351
6449
|
}, ref) => {
|
|
6352
|
-
const [_checked, setChecked] = (0,
|
|
6450
|
+
const [_checked, setChecked] = (0, import_react47.useState)(checked || false);
|
|
6353
6451
|
const { styled } = useTrilogyContext();
|
|
6354
|
-
|
|
6452
|
+
import_react47.default.useEffect(() => {
|
|
6355
6453
|
setChecked(checked || false);
|
|
6356
6454
|
}, [checked]);
|
|
6357
|
-
(0,
|
|
6455
|
+
(0, import_react47.useEffect)(() => {
|
|
6358
6456
|
if (!readonly) {
|
|
6359
6457
|
setChecked(checked || false);
|
|
6360
6458
|
}
|
|
6361
6459
|
}, [checked, readonly]);
|
|
6362
|
-
return /* @__PURE__ */
|
|
6460
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
|
6363
6461
|
"div",
|
|
6364
6462
|
{
|
|
6365
6463
|
ref,
|
|
6366
6464
|
className: hashClass(styled, (0, import_clsx80.default)("switch", reversed && is("reversed"), fullWidth && is("fullwidth"), className))
|
|
6367
6465
|
},
|
|
6368
|
-
/* @__PURE__ */
|
|
6466
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
|
6369
6467
|
"input",
|
|
6370
6468
|
{
|
|
6371
6469
|
onChange: (e) => {
|
|
@@ -6401,14 +6499,14 @@ var Switch = import_react46.default.forwardRef(({
|
|
|
6401
6499
|
...others
|
|
6402
6500
|
}
|
|
6403
6501
|
),
|
|
6404
|
-
/* @__PURE__ */
|
|
6502
|
+
/* @__PURE__ */ import_react47.default.createElement("label", { htmlFor: `switch-${id}` }, label)
|
|
6405
6503
|
);
|
|
6406
6504
|
});
|
|
6407
6505
|
Switch.displayName = "Switch" /* Switch */;
|
|
6408
6506
|
var Switch_default = Switch;
|
|
6409
6507
|
|
|
6410
6508
|
// components/table/Table.tsx
|
|
6411
|
-
var
|
|
6509
|
+
var React91 = __toESM(require("react"));
|
|
6412
6510
|
var import_clsx81 = __toESM(require("clsx"));
|
|
6413
6511
|
|
|
6414
6512
|
// components/table/TableProps.ts
|
|
@@ -6420,7 +6518,7 @@ var TableBorderEnum = /* @__PURE__ */ ((TableBorderEnum2) => {
|
|
|
6420
6518
|
})(TableBorderEnum || {});
|
|
6421
6519
|
|
|
6422
6520
|
// components/table/Table.tsx
|
|
6423
|
-
var Table =
|
|
6521
|
+
var Table = React91.forwardRef(({
|
|
6424
6522
|
className,
|
|
6425
6523
|
id,
|
|
6426
6524
|
fullwidth,
|
|
@@ -6441,15 +6539,15 @@ var Table = React90.forwardRef(({
|
|
|
6441
6539
|
className
|
|
6442
6540
|
)
|
|
6443
6541
|
);
|
|
6444
|
-
return /* @__PURE__ */
|
|
6542
|
+
return /* @__PURE__ */ React91.createElement("table", { ref, id, className: classes, ...others });
|
|
6445
6543
|
});
|
|
6446
6544
|
Table.displayName = "Table" /* Table */;
|
|
6447
6545
|
var Table_default = Table;
|
|
6448
6546
|
|
|
6449
6547
|
// components/table/head/TableHead.tsx
|
|
6450
|
-
var
|
|
6548
|
+
var React92 = __toESM(require("react"));
|
|
6451
6549
|
var import_clsx82 = __toESM(require("clsx"));
|
|
6452
|
-
var TableHead =
|
|
6550
|
+
var TableHead = React92.forwardRef(({ className, id, color, backgroundColor, ...others }, ref) => {
|
|
6453
6551
|
const { styled } = useTrilogyContext();
|
|
6454
6552
|
const classes = hashClass(
|
|
6455
6553
|
styled,
|
|
@@ -6459,7 +6557,7 @@ var TableHead = React91.forwardRef(({ className, id, color, backgroundColor, ...
|
|
|
6459
6557
|
color && is(getColorClassName(color))
|
|
6460
6558
|
)
|
|
6461
6559
|
);
|
|
6462
|
-
return /* @__PURE__ */
|
|
6560
|
+
return /* @__PURE__ */ React92.createElement("thead", { ref, id, className: classes, ...others });
|
|
6463
6561
|
});
|
|
6464
6562
|
TableHead.displayName = "TableHead" /* TableHead */;
|
|
6465
6563
|
var TableHead_default = TableHead;
|
|
@@ -6468,9 +6566,9 @@ var TableHead_default = TableHead;
|
|
|
6468
6566
|
var head_default = TableHead_default;
|
|
6469
6567
|
|
|
6470
6568
|
// components/table/body/TableBody.tsx
|
|
6471
|
-
var
|
|
6569
|
+
var React93 = __toESM(require("react"));
|
|
6472
6570
|
var import_clsx83 = __toESM(require("clsx"));
|
|
6473
|
-
var TableBody =
|
|
6571
|
+
var TableBody = React93.forwardRef(({ className, id, color, backgroundColor, ...others }, ref) => {
|
|
6474
6572
|
const { styled } = useTrilogyContext();
|
|
6475
6573
|
const classes = hashClass(
|
|
6476
6574
|
styled,
|
|
@@ -6480,7 +6578,7 @@ var TableBody = React92.forwardRef(({ className, id, color, backgroundColor, ...
|
|
|
6480
6578
|
color && is(getColorClassName(color))
|
|
6481
6579
|
)
|
|
6482
6580
|
);
|
|
6483
|
-
return /* @__PURE__ */
|
|
6581
|
+
return /* @__PURE__ */ React93.createElement("tbody", { ref, id, className: classes, ...others });
|
|
6484
6582
|
});
|
|
6485
6583
|
TableBody.displayName = "TableBody" /* TableBody */;
|
|
6486
6584
|
var TableBody_default = TableBody;
|
|
@@ -6489,12 +6587,12 @@ var TableBody_default = TableBody;
|
|
|
6489
6587
|
var body_default = TableBody_default;
|
|
6490
6588
|
|
|
6491
6589
|
// components/table/th/TableTh.tsx
|
|
6492
|
-
var
|
|
6590
|
+
var React94 = __toESM(require("react"));
|
|
6493
6591
|
var import_clsx84 = __toESM(require("clsx"));
|
|
6494
|
-
var TableTh =
|
|
6592
|
+
var TableTh = React94.forwardRef(({ className, id, colSpan, rowSpan, ...others }, ref) => {
|
|
6495
6593
|
const { styled } = useTrilogyContext();
|
|
6496
6594
|
const classes = hashClass(styled, (0, import_clsx84.default)(className));
|
|
6497
|
-
return /* @__PURE__ */
|
|
6595
|
+
return /* @__PURE__ */ React94.createElement("th", { ref, id, className: classes, colSpan, rowSpan, ...others });
|
|
6498
6596
|
});
|
|
6499
6597
|
TableTh.displayName = "TableTh" /* TableTh */;
|
|
6500
6598
|
var TableTh_default = TableTh;
|
|
@@ -6503,9 +6601,9 @@ var TableTh_default = TableTh;
|
|
|
6503
6601
|
var th_default = TableTh_default;
|
|
6504
6602
|
|
|
6505
6603
|
// components/table/tr/TableTr.tsx
|
|
6506
|
-
var
|
|
6604
|
+
var React95 = __toESM(require("react"));
|
|
6507
6605
|
var import_clsx85 = __toESM(require("clsx"));
|
|
6508
|
-
var TableTr =
|
|
6606
|
+
var TableTr = React95.forwardRef(({
|
|
6509
6607
|
className,
|
|
6510
6608
|
id,
|
|
6511
6609
|
expandable,
|
|
@@ -6525,7 +6623,7 @@ var TableTr = React94.forwardRef(({
|
|
|
6525
6623
|
color && getColorClassName(color)
|
|
6526
6624
|
)
|
|
6527
6625
|
);
|
|
6528
|
-
return /* @__PURE__ */
|
|
6626
|
+
return /* @__PURE__ */ React95.createElement("tr", { ref, id, className: classes, ...others });
|
|
6529
6627
|
});
|
|
6530
6628
|
TableTr.displayName = "TableTr" /* TableTr */;
|
|
6531
6629
|
var TableTr_default = TableTr;
|
|
@@ -6534,12 +6632,12 @@ var TableTr_default = TableTr;
|
|
|
6534
6632
|
var tr_default = TableTr_default;
|
|
6535
6633
|
|
|
6536
6634
|
// components/table/td/TableTd.tsx
|
|
6537
|
-
var
|
|
6635
|
+
var React96 = __toESM(require("react"));
|
|
6538
6636
|
var import_clsx86 = __toESM(require("clsx"));
|
|
6539
|
-
var TableTd =
|
|
6637
|
+
var TableTd = React96.forwardRef(({ className, id, rowSpan, colSpan, ...others }, ref) => {
|
|
6540
6638
|
const { styled } = useTrilogyContext();
|
|
6541
6639
|
const classes = hashClass(styled, (0, import_clsx86.default)(className));
|
|
6542
|
-
return /* @__PURE__ */
|
|
6640
|
+
return /* @__PURE__ */ React96.createElement("td", { ref, id, className: classes, rowSpan, colSpan, ...others });
|
|
6543
6641
|
});
|
|
6544
6642
|
TableTd.displayName = "TableTd" /* TableTd */;
|
|
6545
6643
|
var TableTd_default = TableTd;
|
|
@@ -6548,8 +6646,8 @@ var TableTd_default = TableTd;
|
|
|
6548
6646
|
var td_default = TableTd_default;
|
|
6549
6647
|
|
|
6550
6648
|
// components/tabs/context/index.tsx
|
|
6551
|
-
var
|
|
6552
|
-
var TabsContext =
|
|
6649
|
+
var import_react48 = __toESM(require("react"));
|
|
6650
|
+
var TabsContext = import_react48.default.createContext({
|
|
6553
6651
|
activeIndex: 0,
|
|
6554
6652
|
inverted: false,
|
|
6555
6653
|
setActiveIndex: () => 0,
|
|
@@ -6560,20 +6658,20 @@ var TabsContext = import_react47.default.createContext({
|
|
|
6560
6658
|
|
|
6561
6659
|
// components/tabs/Tabs.tsx
|
|
6562
6660
|
var import_clsx87 = __toESM(require("clsx"));
|
|
6563
|
-
var
|
|
6564
|
-
var Tabs =
|
|
6661
|
+
var import_react49 = __toESM(require("react"));
|
|
6662
|
+
var Tabs = import_react49.default.forwardRef(
|
|
6565
6663
|
({ children, className, id, activeIndex, fullwidth, inverted, small }, ref) => {
|
|
6566
|
-
const [currentIndex, setCurrentIndex] =
|
|
6567
|
-
const [isInverted, setIsInverted] =
|
|
6664
|
+
const [currentIndex, setCurrentIndex] = import_react49.default.useState(activeIndex || 0);
|
|
6665
|
+
const [isInverted, setIsInverted] = import_react49.default.useState(inverted || false);
|
|
6568
6666
|
const { styled } = useTrilogyContext();
|
|
6569
6667
|
const classes = hashClass(
|
|
6570
6668
|
styled,
|
|
6571
6669
|
(0, import_clsx87.default)("tabs", fullwidth && is("fullwidth"), inverted && is("inverted"), small && is("small"), className)
|
|
6572
6670
|
);
|
|
6573
|
-
|
|
6671
|
+
import_react49.default.useEffect(() => {
|
|
6574
6672
|
activeIndex !== void 0 && setCurrentIndex(activeIndex);
|
|
6575
6673
|
}, [activeIndex]);
|
|
6576
|
-
return /* @__PURE__ */
|
|
6674
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
|
6577
6675
|
TabsContext.Provider,
|
|
6578
6676
|
{
|
|
6579
6677
|
value: {
|
|
@@ -6584,7 +6682,7 @@ var Tabs = import_react48.default.forwardRef(
|
|
|
6584
6682
|
setActiveIndex: setCurrentIndex
|
|
6585
6683
|
}
|
|
6586
6684
|
},
|
|
6587
|
-
/* @__PURE__ */
|
|
6685
|
+
/* @__PURE__ */ import_react49.default.createElement("div", { ref, id, className: classes, "data-tabs-context": "" }, children)
|
|
6588
6686
|
);
|
|
6589
6687
|
}
|
|
6590
6688
|
);
|
|
@@ -6593,16 +6691,16 @@ var Tabs_default = Tabs;
|
|
|
6593
6691
|
|
|
6594
6692
|
// components/tabs/tab-list/tab/Tab.tsx
|
|
6595
6693
|
var import_clsx88 = __toESM(require("clsx"));
|
|
6596
|
-
var
|
|
6597
|
-
var Tab =
|
|
6694
|
+
var import_react50 = __toESM(require("react"));
|
|
6695
|
+
var Tab = import_react50.default.forwardRef(
|
|
6598
6696
|
({ active, className, onClick, routerLink = "a", iconName, label, disabled, testId, ariaControls, ...others }, ref) => {
|
|
6599
6697
|
const { styled } = useTrilogyContext();
|
|
6600
6698
|
const { index, ...props } = others;
|
|
6601
|
-
const { activeIndex, setActiveIndex, small } =
|
|
6699
|
+
const { activeIndex, setActiveIndex, small } = import_react50.default.useContext(TabsContext);
|
|
6602
6700
|
const Tag2 = others.href || others.to ? routerLink : "button";
|
|
6603
|
-
const isActive =
|
|
6701
|
+
const isActive = import_react50.default.useMemo(() => activeIndex === index, [activeIndex, index]);
|
|
6604
6702
|
const classes = hashClass(styled, (0, import_clsx88.default)("tab", className, { "is-active": isActive }));
|
|
6605
|
-
const handleClick =
|
|
6703
|
+
const handleClick = import_react50.default.useCallback(
|
|
6606
6704
|
(e) => {
|
|
6607
6705
|
if (!disabled) {
|
|
6608
6706
|
if (!others.href && !others.to) setActiveIndex(index);
|
|
@@ -6611,10 +6709,10 @@ var Tab = import_react49.default.forwardRef(
|
|
|
6611
6709
|
},
|
|
6612
6710
|
[disabled, onClick, index, setActiveIndex]
|
|
6613
6711
|
);
|
|
6614
|
-
|
|
6712
|
+
import_react50.default.useEffect(() => {
|
|
6615
6713
|
if (active) setActiveIndex(index);
|
|
6616
6714
|
}, [active, setActiveIndex, index]);
|
|
6617
|
-
return /* @__PURE__ */
|
|
6715
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
|
6618
6716
|
Tag2,
|
|
6619
6717
|
{
|
|
6620
6718
|
ref,
|
|
@@ -6630,8 +6728,8 @@ var Tab = import_react49.default.forwardRef(
|
|
|
6630
6728
|
onClick: handleClick,
|
|
6631
6729
|
...props
|
|
6632
6730
|
},
|
|
6633
|
-
/* @__PURE__ */
|
|
6634
|
-
label && /* @__PURE__ */
|
|
6731
|
+
/* @__PURE__ */ import_react50.default.createElement("div", { className: hashClass(styled, "tab-icon") }, iconName && /* @__PURE__ */ import_react50.default.createElement(Icon_default, { size: small ? "small" : "medium", name: iconName })),
|
|
6732
|
+
label && /* @__PURE__ */ import_react50.default.createElement(Text_default, null, label)
|
|
6635
6733
|
);
|
|
6636
6734
|
}
|
|
6637
6735
|
);
|
|
@@ -6640,31 +6738,31 @@ var Tab_default = Tab;
|
|
|
6640
6738
|
|
|
6641
6739
|
// components/tabs/tab-list/TabList.tsx
|
|
6642
6740
|
var import_clsx89 = __toESM(require("clsx"));
|
|
6643
|
-
var
|
|
6644
|
-
var TabList =
|
|
6741
|
+
var import_react51 = __toESM(require("react"));
|
|
6742
|
+
var TabList = import_react51.default.forwardRef(
|
|
6645
6743
|
({ children, className, id, testId, align, ...others }, ref) => {
|
|
6646
6744
|
const { styled } = useTrilogyContext();
|
|
6647
|
-
const TabListRef =
|
|
6648
|
-
const tabRefs =
|
|
6649
|
-
const { small } =
|
|
6650
|
-
|
|
6651
|
-
const [tabsWidth, setTabsWidth] =
|
|
6652
|
-
const [tabListWidth, setTabListWidth] =
|
|
6653
|
-
const [scrollLeft, setScrollLeft] =
|
|
6654
|
-
const [tabFocused, setTabFocused] =
|
|
6745
|
+
const TabListRef = import_react51.default.useRef(null);
|
|
6746
|
+
const tabRefs = import_react51.default.useRef([]);
|
|
6747
|
+
const { small } = import_react51.default.useContext(TabsContext);
|
|
6748
|
+
import_react51.default.useImperativeHandle(ref, () => TabListRef.current);
|
|
6749
|
+
const [tabsWidth, setTabsWidth] = import_react51.default.useState(0);
|
|
6750
|
+
const [tabListWidth, setTabListWidth] = import_react51.default.useState(0);
|
|
6751
|
+
const [scrollLeft, setScrollLeft] = import_react51.default.useState(0);
|
|
6752
|
+
const [tabFocused, setTabFocused] = import_react51.default.useState(0);
|
|
6655
6753
|
const classes = hashClass(styled, (0, import_clsx89.default)("tab-list", align && is(getAlignClassName(align)), className));
|
|
6656
|
-
const isVisibleArrowLeft = (0,
|
|
6754
|
+
const isVisibleArrowLeft = (0, import_react51.useMemo)(() => {
|
|
6657
6755
|
if (!tabRefs.current.length) return false;
|
|
6658
6756
|
return scrollLeft > tabRefs.current[0].width / 2;
|
|
6659
6757
|
}, [tabRefs, scrollLeft]);
|
|
6660
|
-
const isVisibleArrowRight = (0,
|
|
6758
|
+
const isVisibleArrowRight = (0, import_react51.useMemo)(
|
|
6661
6759
|
() => tabListWidth - tabsWidth - scrollLeft > 5,
|
|
6662
6760
|
[tabListWidth, tabsWidth, scrollLeft]
|
|
6663
6761
|
);
|
|
6664
|
-
const TabElms =
|
|
6665
|
-
return
|
|
6666
|
-
if (!
|
|
6667
|
-
return /* @__PURE__ */
|
|
6762
|
+
const TabElms = import_react51.default.useMemo(() => {
|
|
6763
|
+
return import_react51.default.Children.map(children, (child, index) => {
|
|
6764
|
+
if (!import_react51.default.isValidElement(child)) return false;
|
|
6765
|
+
return /* @__PURE__ */ import_react51.default.createElement(
|
|
6668
6766
|
Tab_default,
|
|
6669
6767
|
{
|
|
6670
6768
|
ref: (el) => tabRefs.current[index] = el == null ? void 0 : el.getBoundingClientRect(),
|
|
@@ -6674,7 +6772,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6674
6772
|
);
|
|
6675
6773
|
});
|
|
6676
6774
|
}, [children, tabRefs]);
|
|
6677
|
-
const scrollWithArrow =
|
|
6775
|
+
const scrollWithArrow = import_react51.default.useCallback(
|
|
6678
6776
|
(direction) => {
|
|
6679
6777
|
var _a;
|
|
6680
6778
|
if (tabRefs.current) {
|
|
@@ -6686,7 +6784,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6686
6784
|
},
|
|
6687
6785
|
[tabRefs.current, tabFocused, TabListRef]
|
|
6688
6786
|
);
|
|
6689
|
-
const handleScrollList =
|
|
6787
|
+
const handleScrollList = import_react51.default.useCallback(
|
|
6690
6788
|
(e) => {
|
|
6691
6789
|
const target = e.target;
|
|
6692
6790
|
const firstGap = tabRefs.current[0].x + (small ? 16 : 24);
|
|
@@ -6698,26 +6796,26 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6698
6796
|
},
|
|
6699
6797
|
[tabRefs, small]
|
|
6700
6798
|
);
|
|
6701
|
-
const onClickPrev =
|
|
6799
|
+
const onClickPrev = import_react51.default.useCallback(() => {
|
|
6702
6800
|
isVisibleArrowLeft && scrollWithArrow(-1);
|
|
6703
6801
|
}, [scrollWithArrow, isVisibleArrowLeft]);
|
|
6704
|
-
const onClickNext =
|
|
6802
|
+
const onClickNext = import_react51.default.useCallback(() => {
|
|
6705
6803
|
isVisibleArrowRight && scrollWithArrow(1);
|
|
6706
6804
|
}, [scrollWithArrow, isVisibleArrowRight]);
|
|
6707
|
-
const setWidths =
|
|
6805
|
+
const setWidths = import_react51.default.useCallback(() => {
|
|
6708
6806
|
if (TabListRef.current) {
|
|
6709
6807
|
setTabsWidth(TabListRef.current.clientWidth);
|
|
6710
6808
|
setTabListWidth(TabListRef.current.scrollWidth);
|
|
6711
6809
|
}
|
|
6712
6810
|
}, [TabListRef]);
|
|
6713
|
-
|
|
6811
|
+
import_react51.default.useEffect(() => {
|
|
6714
6812
|
setWidths();
|
|
6715
6813
|
}, [setWidths, isVisibleArrowLeft, isVisibleArrowRight]);
|
|
6716
|
-
|
|
6814
|
+
import_react51.default.useEffect(() => {
|
|
6717
6815
|
window.addEventListener("resize", setWidths);
|
|
6718
6816
|
return () => window.removeEventListener("resize", setWidths);
|
|
6719
6817
|
}, [TabListRef, setWidths]);
|
|
6720
|
-
return /* @__PURE__ */
|
|
6818
|
+
return /* @__PURE__ */ import_react51.default.createElement(
|
|
6721
6819
|
"div",
|
|
6722
6820
|
{
|
|
6723
6821
|
ref: TabListRef,
|
|
@@ -6728,7 +6826,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6728
6826
|
onScroll: handleScrollList,
|
|
6729
6827
|
...others
|
|
6730
6828
|
},
|
|
6731
|
-
isVisibleArrowLeft && /* @__PURE__ */
|
|
6829
|
+
isVisibleArrowLeft && /* @__PURE__ */ import_react51.default.createElement(
|
|
6732
6830
|
Icon_default,
|
|
6733
6831
|
{
|
|
6734
6832
|
"data-arrow-prev": "",
|
|
@@ -6739,7 +6837,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6739
6837
|
}
|
|
6740
6838
|
),
|
|
6741
6839
|
TabElms,
|
|
6742
|
-
isVisibleArrowRight && /* @__PURE__ */
|
|
6840
|
+
isVisibleArrowRight && /* @__PURE__ */ import_react51.default.createElement(
|
|
6743
6841
|
Icon_default,
|
|
6744
6842
|
{
|
|
6745
6843
|
"data-arrow-next": "",
|
|
@@ -6757,13 +6855,13 @@ var TabList_default = TabList;
|
|
|
6757
6855
|
|
|
6758
6856
|
// components/tabs/tab-panels/tab-panel/TabPanel.tsx
|
|
6759
6857
|
var import_clsx90 = __toESM(require("clsx"));
|
|
6760
|
-
var
|
|
6761
|
-
var TabPanel =
|
|
6858
|
+
var import_react52 = __toESM(require("react"));
|
|
6859
|
+
var TabPanel = import_react52.default.forwardRef(({ children, className, testId, ...others }, ref) => {
|
|
6762
6860
|
const { styled } = useTrilogyContext();
|
|
6763
6861
|
const { index, ...props } = others;
|
|
6764
|
-
const { activeIndex } =
|
|
6862
|
+
const { activeIndex } = import_react52.default.useContext(TabsContext);
|
|
6765
6863
|
const classes = hashClass(styled, (0, import_clsx90.default)("tab-panel", index === activeIndex && is("active"), className));
|
|
6766
|
-
return /* @__PURE__ */
|
|
6864
|
+
return /* @__PURE__ */ import_react52.default.createElement("div", { ref, "data-testid": testId, className: classes, ...props }, children);
|
|
6767
6865
|
});
|
|
6768
6866
|
TabPanel.displayName = "TabPanel" /* TabPanel */;
|
|
6769
6867
|
var TabPanel_default = TabPanel;
|
|
@@ -6773,13 +6871,13 @@ var tab_panel_default = TabPanel_default;
|
|
|
6773
6871
|
|
|
6774
6872
|
// components/tabs/tab-panels/TabPanels.tsx
|
|
6775
6873
|
var import_clsx91 = __toESM(require("clsx"));
|
|
6776
|
-
var
|
|
6777
|
-
var TabPanels =
|
|
6874
|
+
var import_react53 = __toESM(require("react"));
|
|
6875
|
+
var TabPanels = import_react53.default.forwardRef(({ children, className, id, testId, ...others }, ref) => {
|
|
6778
6876
|
const { styled } = useTrilogyContext();
|
|
6779
6877
|
const classes = hashClass(styled, (0, import_clsx91.default)("tab-panels", className));
|
|
6780
|
-
return /* @__PURE__ */
|
|
6781
|
-
if (!
|
|
6782
|
-
return /* @__PURE__ */
|
|
6878
|
+
return /* @__PURE__ */ import_react53.default.createElement("div", { ref, id, "data-testid": testId, className: classes, ...others }, import_react53.default.Children.map(children, (child, index) => {
|
|
6879
|
+
if (!import_react53.default.isValidElement(child)) return false;
|
|
6880
|
+
return /* @__PURE__ */ import_react53.default.createElement(tab_panel_default, { ...child.props, index });
|
|
6783
6881
|
}));
|
|
6784
6882
|
});
|
|
6785
6883
|
TabPanels.displayName = "TabPanels" /* TabPanels */;
|
|
@@ -6787,8 +6885,8 @@ var TabPanels_default = TabPanels;
|
|
|
6787
6885
|
|
|
6788
6886
|
// components/tag/Tag.tsx
|
|
6789
6887
|
var import_clsx92 = __toESM(require("clsx"));
|
|
6790
|
-
var
|
|
6791
|
-
var Tag =
|
|
6888
|
+
var import_react54 = __toESM(require("react"));
|
|
6889
|
+
var Tag = import_react54.default.forwardRef(
|
|
6792
6890
|
({ label, className, id, variant, inverted, small, iconName, ...others }, ref) => {
|
|
6793
6891
|
const { styled } = useTrilogyContext();
|
|
6794
6892
|
const tagClassNames = hashClass(
|
|
@@ -6802,7 +6900,7 @@ var Tag = import_react53.default.forwardRef(
|
|
|
6802
6900
|
)
|
|
6803
6901
|
);
|
|
6804
6902
|
const tagIconClassNames = (0, import_clsx92.default)(variant && is(getColorClassName(variant)));
|
|
6805
|
-
return /* @__PURE__ */
|
|
6903
|
+
return /* @__PURE__ */ import_react54.default.createElement("span", { ref, id, className: tagClassNames, ...others }, iconName && /* @__PURE__ */ import_react54.default.createElement(Icon_default, { className: tagIconClassNames, name: iconName }), label);
|
|
6806
6904
|
}
|
|
6807
6905
|
);
|
|
6808
6906
|
Tag.displayName = "Tag" /* Tag */;
|
|
@@ -6810,10 +6908,10 @@ var Tag_default = Tag;
|
|
|
6810
6908
|
|
|
6811
6909
|
// components/tag/list/TagList.tsx
|
|
6812
6910
|
var import_clsx93 = __toESM(require("clsx"));
|
|
6813
|
-
var
|
|
6814
|
-
var TagList =
|
|
6911
|
+
var React104 = __toESM(require("react"));
|
|
6912
|
+
var TagList = React104.forwardRef(({ className, id, align, marginless, ...others }, ref) => {
|
|
6815
6913
|
const { styled } = useTrilogyContext();
|
|
6816
|
-
return /* @__PURE__ */
|
|
6914
|
+
return /* @__PURE__ */ React104.createElement(
|
|
6817
6915
|
"div",
|
|
6818
6916
|
{
|
|
6819
6917
|
ref,
|
|
@@ -6843,8 +6941,8 @@ var TagVariant = /* @__PURE__ */ ((TagVariant2) => {
|
|
|
6843
6941
|
|
|
6844
6942
|
// components/textarea/Textarea.tsx
|
|
6845
6943
|
var import_clsx94 = __toESM(require("clsx"));
|
|
6846
|
-
var
|
|
6847
|
-
var Textarea =
|
|
6944
|
+
var import_react55 = __toESM(require("react"));
|
|
6945
|
+
var Textarea = import_react55.default.forwardRef(
|
|
6848
6946
|
({
|
|
6849
6947
|
className,
|
|
6850
6948
|
id,
|
|
@@ -6865,9 +6963,9 @@ var Textarea = import_react54.default.forwardRef(
|
|
|
6865
6963
|
iconNameRight,
|
|
6866
6964
|
...others
|
|
6867
6965
|
}, ref) => {
|
|
6868
|
-
const [value, setValue] = (0,
|
|
6966
|
+
const [value, setValue] = (0, import_react55.useState)(defaultValue || "");
|
|
6869
6967
|
const { styled } = useTrilogyContext();
|
|
6870
|
-
(0,
|
|
6968
|
+
(0, import_react55.useEffect)(() => {
|
|
6871
6969
|
setValue(defaultValue || "");
|
|
6872
6970
|
}, [defaultValue]);
|
|
6873
6971
|
const wrapperClasses = hashClass(styled, (0, import_clsx94.default)("field textarea-wrapper", className, status && is(status)));
|
|
@@ -6878,7 +6976,7 @@ var Textarea = import_react54.default.forwardRef(
|
|
|
6878
6976
|
styled,
|
|
6879
6977
|
(0, import_clsx94.default)("control", iconNameLeft && has("icons-left"), iconNameRight && has("icons-right"))
|
|
6880
6978
|
);
|
|
6881
|
-
return /* @__PURE__ */
|
|
6979
|
+
return /* @__PURE__ */ import_react55.default.createElement("div", { id, className: wrapperClasses }, label && /* @__PURE__ */ import_react55.default.createElement("label", { className: hashClass(styled, "textarea-label"), htmlFor: id }, label, " ", required && /* @__PURE__ */ import_react55.default.createElement(Text_default, { markup: "span" /* SPAN */, typo: "has-text-error" /* TEXT_ERROR */ }, "*")), sample && /* @__PURE__ */ import_react55.default.createElement(Text_default, { className: "input-sample", level: 2 /* TWO */, id }, sample), /* @__PURE__ */ import_react55.default.createElement("div", { className: controlClasses }, /* @__PURE__ */ import_react55.default.createElement(
|
|
6882
6980
|
"textarea",
|
|
6883
6981
|
{
|
|
6884
6982
|
ref,
|
|
@@ -6901,7 +6999,7 @@ var Textarea = import_react54.default.forwardRef(
|
|
|
6901
6999
|
required,
|
|
6902
7000
|
...others
|
|
6903
7001
|
}
|
|
6904
|
-
), iconNameLeft && /* @__PURE__ */
|
|
7002
|
+
), iconNameLeft && /* @__PURE__ */ import_react55.default.createElement(Icon_default, { name: iconNameLeft, size: "small", className: "icon-left" }), iconNameRight && /* @__PURE__ */ import_react55.default.createElement(Icon_default, { name: iconNameRight, size: "small", className: "icon-right" }), maxLength && /* @__PURE__ */ import_react55.default.createElement("div", { className: counterClasses }, `${value.length}/${maxLength == null ? void 0 : maxLength.toString()}`)), help && /* @__PURE__ */ import_react55.default.createElement(Text_default, { className: helpClasses }, help));
|
|
6905
7003
|
}
|
|
6906
7004
|
);
|
|
6907
7005
|
Textarea.displayName = "Textarea" /* Textarea */;
|
|
@@ -6909,15 +7007,15 @@ var Textarea_default = Textarea;
|
|
|
6909
7007
|
|
|
6910
7008
|
// components/timeline/content/TimelineContent.tsx
|
|
6911
7009
|
var import_clsx95 = __toESM(require("clsx"));
|
|
6912
|
-
var
|
|
6913
|
-
var TimelineContent =
|
|
7010
|
+
var React106 = __toESM(require("react"));
|
|
7011
|
+
var TimelineContent = React106.forwardRef(
|
|
6914
7012
|
({ children, className, id, heading, content, linkLabel, linkTo, ...others }, ref) => {
|
|
6915
7013
|
const { styled } = useTrilogyContext();
|
|
6916
7014
|
const classes = hashClass(styled, (0, import_clsx95.default)("timeline-content", className));
|
|
6917
7015
|
if (children) {
|
|
6918
|
-
return /* @__PURE__ */
|
|
7016
|
+
return /* @__PURE__ */ React106.createElement("div", { ref, id, className: classes, ...others }, children);
|
|
6919
7017
|
}
|
|
6920
|
-
return /* @__PURE__ */
|
|
7018
|
+
return /* @__PURE__ */ React106.createElement("div", { ref, id, className: classes, ...others }, heading && /* @__PURE__ */ React106.createElement(Text_default, { markup: "p" /* P */ }, heading), content && /* @__PURE__ */ React106.createElement(Text_default, { className: "main-content", markup: "p" /* P */ }, content), linkTo && linkLabel && /* @__PURE__ */ React106.createElement(Link_default, { href: linkTo }, linkLabel));
|
|
6921
7019
|
}
|
|
6922
7020
|
);
|
|
6923
7021
|
TimelineContent.displayName = "TimelineContent" /* TimelineContent */;
|
|
@@ -6928,14 +7026,14 @@ var content_default3 = TimelineContent_default;
|
|
|
6928
7026
|
|
|
6929
7027
|
// components/timeline/item/TimelineItem.tsx
|
|
6930
7028
|
var import_clsx96 = __toESM(require("clsx"));
|
|
6931
|
-
var
|
|
6932
|
-
var TimelineItem =
|
|
7029
|
+
var React107 = __toESM(require("react"));
|
|
7030
|
+
var TimelineItem = React107.forwardRef(({ className, id, done, active, cancel, ...others }, ref) => {
|
|
6933
7031
|
const { styled } = useTrilogyContext();
|
|
6934
7032
|
const classes = hashClass(
|
|
6935
7033
|
styled,
|
|
6936
7034
|
(0, import_clsx96.default)("timeline-item", done && "done", active && "active", cancel && "cancel", className)
|
|
6937
7035
|
);
|
|
6938
|
-
return /* @__PURE__ */
|
|
7036
|
+
return /* @__PURE__ */ React107.createElement("div", { ref, id, className: classes, ...others });
|
|
6939
7037
|
});
|
|
6940
7038
|
TimelineItem.displayName = "TimelineItem" /* TimelineItem */;
|
|
6941
7039
|
var TimelineItem_default = TimelineItem;
|
|
@@ -6945,8 +7043,8 @@ var item_default5 = TimelineItem_default;
|
|
|
6945
7043
|
|
|
6946
7044
|
// components/timeline/marker/TimelineMarker.tsx
|
|
6947
7045
|
var import_clsx97 = __toESM(require("clsx"));
|
|
6948
|
-
var
|
|
6949
|
-
var TimelineMarker =
|
|
7046
|
+
var React108 = __toESM(require("react"));
|
|
7047
|
+
var TimelineMarker = React108.forwardRef(({
|
|
6950
7048
|
className,
|
|
6951
7049
|
id,
|
|
6952
7050
|
iconClassname,
|
|
@@ -6956,7 +7054,7 @@ var TimelineMarker = React107.forwardRef(({
|
|
|
6956
7054
|
const { styled } = useTrilogyContext();
|
|
6957
7055
|
const classes = hashClass(styled, (0, import_clsx97.default)("timeline-marker", is("icon"), className));
|
|
6958
7056
|
const iconClasses = (0, import_clsx97.default)(iconClassname);
|
|
6959
|
-
return /* @__PURE__ */
|
|
7057
|
+
return /* @__PURE__ */ React108.createElement("div", { ref, id, className: classes, ...others }, /* @__PURE__ */ React108.createElement("div", { className: "card-header-icon" }, /* @__PURE__ */ React108.createElement(Icon_default, { className: iconClasses, name: iconName, size: "small" /* SMALL */ })));
|
|
6960
7058
|
});
|
|
6961
7059
|
TimelineMarker.displayName = "TimelineMarker" /* TimelineMarker */;
|
|
6962
7060
|
var TimelineMarker_default = TimelineMarker;
|
|
@@ -6966,18 +7064,18 @@ var marker_default = TimelineMarker_default;
|
|
|
6966
7064
|
|
|
6967
7065
|
// components/timeline/Timeline.tsx
|
|
6968
7066
|
var import_clsx98 = __toESM(require("clsx"));
|
|
6969
|
-
var
|
|
6970
|
-
var Timeline =
|
|
7067
|
+
var React109 = __toESM(require("react"));
|
|
7068
|
+
var Timeline = React109.forwardRef(({ className, id, horizontal, ...others }, ref) => {
|
|
6971
7069
|
const { styled } = useTrilogyContext();
|
|
6972
7070
|
const classes = hashClass(styled, (0, import_clsx98.default)("timeline", horizontal && is("horizontal"), className));
|
|
6973
|
-
return /* @__PURE__ */
|
|
7071
|
+
return /* @__PURE__ */ React109.createElement("div", { ref, id, className: classes, ...others });
|
|
6974
7072
|
});
|
|
6975
7073
|
Timeline.displayName = "Timeline" /* Timeline */;
|
|
6976
7074
|
var Timeline_default = Timeline;
|
|
6977
7075
|
|
|
6978
7076
|
// components/view/View.tsx
|
|
6979
7077
|
var import_clsx99 = __toESM(require("clsx"));
|
|
6980
|
-
var
|
|
7078
|
+
var React110 = __toESM(require("react"));
|
|
6981
7079
|
|
|
6982
7080
|
// components/view/ViewProps/index.ts
|
|
6983
7081
|
var ViewMarkup = /* @__PURE__ */ ((ViewMarkup2) => {
|
|
@@ -7002,7 +7100,7 @@ var ViewMarkup = /* @__PURE__ */ ((ViewMarkup2) => {
|
|
|
7002
7100
|
})(ViewMarkup || {});
|
|
7003
7101
|
|
|
7004
7102
|
// components/view/View.tsx
|
|
7005
|
-
var
|
|
7103
|
+
var View2 = React110.forwardRef(({
|
|
7006
7104
|
children,
|
|
7007
7105
|
style,
|
|
7008
7106
|
className,
|
|
@@ -7039,7 +7137,7 @@ var View = React109.forwardRef(({
|
|
|
7039
7137
|
className
|
|
7040
7138
|
)
|
|
7041
7139
|
);
|
|
7042
|
-
return /* @__PURE__ */
|
|
7140
|
+
return /* @__PURE__ */ React110.createElement(
|
|
7043
7141
|
Tag2,
|
|
7044
7142
|
{
|
|
7045
7143
|
ref,
|
|
@@ -7058,7 +7156,7 @@ var View = React109.forwardRef(({
|
|
|
7058
7156
|
children
|
|
7059
7157
|
);
|
|
7060
7158
|
});
|
|
7061
|
-
var View_default =
|
|
7159
|
+
var View_default = View2;
|
|
7062
7160
|
|
|
7063
7161
|
// components/view/ViewEnum.ts
|
|
7064
7162
|
var ViewColor = /* @__PURE__ */ ((ViewColor2) => {
|
|
@@ -7080,10 +7178,10 @@ var JustifyContent = /* @__PURE__ */ ((JustifyContent2) => {
|
|
|
7080
7178
|
})(JustifyContent || {});
|
|
7081
7179
|
|
|
7082
7180
|
// context/provider/index.tsx
|
|
7083
|
-
var
|
|
7181
|
+
var import_react56 = __toESM(require("react"));
|
|
7084
7182
|
|
|
7085
7183
|
// version.ts
|
|
7086
|
-
var version = "0.0.
|
|
7184
|
+
var version = "0.0.21-esm-cjs";
|
|
7087
7185
|
|
|
7088
7186
|
// version.json
|
|
7089
7187
|
var version_default = {
|
|
@@ -7111,12 +7209,12 @@ var TrilogyProvider = ({
|
|
|
7111
7209
|
hash: HASH = version_default.VERSION,
|
|
7112
7210
|
assetUrl = ""
|
|
7113
7211
|
}) => {
|
|
7114
|
-
const [styled, setStyled] =
|
|
7115
|
-
const [hash, setHash] =
|
|
7116
|
-
(0,
|
|
7212
|
+
const [styled, setStyled] = import_react56.default.useState(mangled);
|
|
7213
|
+
const [hash, setHash] = import_react56.default.useState(HASH);
|
|
7214
|
+
(0, import_react56.useLayoutEffect)(() => {
|
|
7117
7215
|
injectTrilogyAssets && injectTrilogy(mangled, id, theme, assetUrl);
|
|
7118
7216
|
}, []);
|
|
7119
|
-
return /* @__PURE__ */
|
|
7217
|
+
return /* @__PURE__ */ import_react56.default.createElement(TrilogyContext.Provider, { value: { styled, setStyled, hash, setHash } }, children);
|
|
7120
7218
|
};
|
|
7121
7219
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7122
7220
|
0 && (module.exports = {
|
|
@@ -7242,6 +7340,7 @@ var TrilogyProvider = ({
|
|
|
7242
7340
|
Select,
|
|
7243
7341
|
SelectOption,
|
|
7244
7342
|
SelectStatus,
|
|
7343
|
+
Skeleton,
|
|
7245
7344
|
Spacer,
|
|
7246
7345
|
SpacerSize,
|
|
7247
7346
|
SpacerSizeValues,
|