@trilogy-ds/react 0.0.20-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-LJ4LZ3UC.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-7ZANYDV4.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.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/components/index.js
CHANGED
|
@@ -145,6 +145,7 @@ __export(components_exports, {
|
|
|
145
145
|
Select: () => Select_default,
|
|
146
146
|
SelectOption: () => option_default,
|
|
147
147
|
SelectStatus: () => SelectStatus,
|
|
148
|
+
Skeleton: () => Skeleton_native_default,
|
|
148
149
|
Spacer: () => Spacer_default,
|
|
149
150
|
SpacerSize: () => SpacerSize,
|
|
150
151
|
SpacerSizeValues: () => SpacerSizeValues,
|
|
@@ -2877,7 +2878,15 @@ var SelectStatus = /* @__PURE__ */ ((SelectStatus2) => {
|
|
|
2877
2878
|
})(SelectStatus || {});
|
|
2878
2879
|
|
|
2879
2880
|
// components/calendar/Calendar.tsx
|
|
2880
|
-
var days = [
|
|
2881
|
+
var days = [
|
|
2882
|
+
import_locales3.calendarLocale.days[1],
|
|
2883
|
+
import_locales3.calendarLocale.days[2],
|
|
2884
|
+
import_locales3.calendarLocale.days[3],
|
|
2885
|
+
import_locales3.calendarLocale.days[4],
|
|
2886
|
+
import_locales3.calendarLocale.days[5],
|
|
2887
|
+
import_locales3.calendarLocale.days[6],
|
|
2888
|
+
import_locales3.calendarLocale.days[0]
|
|
2889
|
+
];
|
|
2881
2890
|
var months = [...import_locales3.calendarLocale.months];
|
|
2882
2891
|
var currentDate = /* @__PURE__ */ new Date();
|
|
2883
2892
|
function checkIsRange(date) {
|
|
@@ -2937,7 +2946,7 @@ var Calendar = import_react16.default.forwardRef(
|
|
|
2937
2946
|
const getAllDaysInMonth = import_react16.default.useCallback((year, month) => {
|
|
2938
2947
|
const date = new Date(year, month, 1);
|
|
2939
2948
|
const days2 = [];
|
|
2940
|
-
const firstDayOfMonth = date.getDay();
|
|
2949
|
+
const firstDayOfMonth = (date.getDay() + 6) % 7;
|
|
2941
2950
|
const lastDayOfMonth = new Date(year, month + 1, 0).getDate();
|
|
2942
2951
|
const allDays = [];
|
|
2943
2952
|
for (let i = 0; i < firstDayOfMonth; i++) days2.push(null);
|
|
@@ -3106,9 +3115,13 @@ var Calendar = import_react16.default.forwardRef(
|
|
|
3106
3115
|
}
|
|
3107
3116
|
}, [refsDays.current, refDayFocused.current]);
|
|
3108
3117
|
import_react16.default.useEffect(() => {
|
|
3118
|
+
const prevActiveDate = activeDate;
|
|
3109
3119
|
setActiveDate(value);
|
|
3110
3120
|
if (value instanceof Date) return setVisibleMonth(value);
|
|
3111
|
-
if (!(value instanceof Date) && value[0])
|
|
3121
|
+
if (!(value instanceof Date) && value[0]) {
|
|
3122
|
+
const isNewRangeSelection = !prevActiveDate || Array.isArray(prevActiveDate) && prevActiveDate.length === 0 || Array.isArray(prevActiveDate) && Array.isArray(value) && prevActiveDate.length === 2 && value.length === 1;
|
|
3123
|
+
if (isNewRangeSelection) return setVisibleMonth(value[0]);
|
|
3124
|
+
}
|
|
3112
3125
|
}, [value]);
|
|
3113
3126
|
return /* @__PURE__ */ import_react16.default.createElement(
|
|
3114
3127
|
"table",
|
|
@@ -5910,10 +5923,95 @@ var SegmentControl = import_react44.default.forwardRef(({ className, id, onClick
|
|
|
5910
5923
|
SegmentControl.displayName = "SegmentControl" /* SegmentControl */;
|
|
5911
5924
|
var SegmentControl_default = SegmentControl;
|
|
5912
5925
|
|
|
5926
|
+
// components/skeleton/Skeleton.native.tsx
|
|
5927
|
+
var import_react45 = __toESM(require("react"));
|
|
5928
|
+
var import_react_native = require("react-native");
|
|
5929
|
+
var Skeleton = ({
|
|
5930
|
+
style,
|
|
5931
|
+
width = "100%",
|
|
5932
|
+
height = 20,
|
|
5933
|
+
backgroundColor = "#E1E9EE",
|
|
5934
|
+
shimmerColor = "#F7F8F8",
|
|
5935
|
+
duration = 1200,
|
|
5936
|
+
borderRadius = 4,
|
|
5937
|
+
children,
|
|
5938
|
+
testID
|
|
5939
|
+
}) => {
|
|
5940
|
+
const shimmerValue = (0, import_react45.useRef)(new import_react_native.Animated.Value(0)).current;
|
|
5941
|
+
const [containerWidth, setContainerWidth] = import_react45.default.useState(200);
|
|
5942
|
+
(0, import_react45.useEffect)(() => {
|
|
5943
|
+
const shimmerAnimation = import_react_native.Animated.loop(
|
|
5944
|
+
import_react_native.Animated.timing(shimmerValue, {
|
|
5945
|
+
toValue: 1,
|
|
5946
|
+
duration,
|
|
5947
|
+
useNativeDriver: true
|
|
5948
|
+
}),
|
|
5949
|
+
{ iterations: -1 }
|
|
5950
|
+
);
|
|
5951
|
+
shimmerAnimation.start();
|
|
5952
|
+
return () => shimmerAnimation.stop();
|
|
5953
|
+
}, [shimmerValue, duration]);
|
|
5954
|
+
const translateX = shimmerValue.interpolate({
|
|
5955
|
+
inputRange: [0, 1],
|
|
5956
|
+
outputRange: [-containerWidth, containerWidth]
|
|
5957
|
+
});
|
|
5958
|
+
const opacity = shimmerValue.interpolate({
|
|
5959
|
+
inputRange: [0, 0.5, 1],
|
|
5960
|
+
outputRange: [0.3, 0.8, 0.3]
|
|
5961
|
+
});
|
|
5962
|
+
const containerStyle = {
|
|
5963
|
+
width: children ? void 0 : width,
|
|
5964
|
+
height: children ? void 0 : height,
|
|
5965
|
+
backgroundColor,
|
|
5966
|
+
borderRadius,
|
|
5967
|
+
overflow: "hidden",
|
|
5968
|
+
alignSelf: children ? "flex-start" : void 0,
|
|
5969
|
+
...style
|
|
5970
|
+
};
|
|
5971
|
+
const handleLayout = (event) => {
|
|
5972
|
+
const { width: layoutWidth } = event.nativeEvent.layout;
|
|
5973
|
+
setContainerWidth(layoutWidth);
|
|
5974
|
+
};
|
|
5975
|
+
if (children) {
|
|
5976
|
+
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(
|
|
5977
|
+
import_react_native.Animated.View,
|
|
5978
|
+
{
|
|
5979
|
+
style: [
|
|
5980
|
+
{
|
|
5981
|
+
position: "absolute",
|
|
5982
|
+
top: 0,
|
|
5983
|
+
left: 0,
|
|
5984
|
+
width: containerWidth * 0.7,
|
|
5985
|
+
height: "100%",
|
|
5986
|
+
backgroundColor: shimmerColor,
|
|
5987
|
+
opacity,
|
|
5988
|
+
transform: [{ translateX }]
|
|
5989
|
+
}
|
|
5990
|
+
]
|
|
5991
|
+
}
|
|
5992
|
+
));
|
|
5993
|
+
}
|
|
5994
|
+
return /* @__PURE__ */ import_react45.default.createElement(import_react_native.View, { style: containerStyle, testID, onLayout: handleLayout }, /* @__PURE__ */ import_react45.default.createElement(
|
|
5995
|
+
import_react_native.Animated.View,
|
|
5996
|
+
{
|
|
5997
|
+
style: [
|
|
5998
|
+
{
|
|
5999
|
+
width: containerWidth * 0.7,
|
|
6000
|
+
height: "100%",
|
|
6001
|
+
backgroundColor: shimmerColor,
|
|
6002
|
+
opacity,
|
|
6003
|
+
transform: [{ translateX }]
|
|
6004
|
+
}
|
|
6005
|
+
]
|
|
6006
|
+
}
|
|
6007
|
+
));
|
|
6008
|
+
};
|
|
6009
|
+
var Skeleton_native_default = Skeleton;
|
|
6010
|
+
|
|
5913
6011
|
// components/spacer/Spacer.tsx
|
|
5914
6012
|
var import_clsx77 = __toESM(require("clsx"));
|
|
5915
|
-
var
|
|
5916
|
-
var Spacer =
|
|
6013
|
+
var React87 = __toESM(require("react"));
|
|
6014
|
+
var Spacer = React87.forwardRef(({ size: size2, horizontal, className, id }, ref) => {
|
|
5917
6015
|
const { styled } = useTrilogyContext();
|
|
5918
6016
|
const styles = {
|
|
5919
6017
|
spacer: {
|
|
@@ -5922,24 +6020,24 @@ var Spacer = React86.forwardRef(({ size: size2, horizontal, className, id }, ref
|
|
|
5922
6020
|
}
|
|
5923
6021
|
};
|
|
5924
6022
|
const classes = hashClass(styled, (0, import_clsx77.default)(className));
|
|
5925
|
-
return /* @__PURE__ */
|
|
6023
|
+
return /* @__PURE__ */ React87.createElement("div", { ref, id, style: styles.spacer, className: classes });
|
|
5926
6024
|
});
|
|
5927
6025
|
Spacer.displayName = "Spacer" /* Spacer */;
|
|
5928
6026
|
var Spacer_default = Spacer;
|
|
5929
6027
|
|
|
5930
6028
|
// components/stepper/Stepper.tsx
|
|
5931
6029
|
var import_clsx78 = __toESM(require("clsx"));
|
|
5932
|
-
var
|
|
5933
|
-
var Stepper =
|
|
6030
|
+
var React88 = __toESM(require("react"));
|
|
6031
|
+
var Stepper = React88.forwardRef(({ className, id, children, ...others }, ref) => {
|
|
5934
6032
|
const { styled } = useTrilogyContext();
|
|
5935
6033
|
const classes = hashClass(styled, (0, import_clsx78.default)("stepper-wrapper", className));
|
|
5936
|
-
const [currentStep, setCurrentStep] =
|
|
5937
|
-
const nbChild =
|
|
6034
|
+
const [currentStep, setCurrentStep] = React88.useState(1);
|
|
6035
|
+
const nbChild = React88.useMemo(() => {
|
|
5938
6036
|
if (children && Array.isArray(children)) return children.length;
|
|
5939
6037
|
if (children && !Array.isArray(children)) return 1;
|
|
5940
6038
|
return 0;
|
|
5941
6039
|
}, [children]);
|
|
5942
|
-
|
|
6040
|
+
React88.useEffect(() => {
|
|
5943
6041
|
if (children) {
|
|
5944
6042
|
if (Array.isArray(children)) {
|
|
5945
6043
|
let haveCurrentStep = false;
|
|
@@ -5956,15 +6054,15 @@ var Stepper = React87.forwardRef(({ className, id, children, ...others }, ref) =
|
|
|
5956
6054
|
}
|
|
5957
6055
|
}
|
|
5958
6056
|
}, [children]);
|
|
5959
|
-
return /* @__PURE__ */
|
|
6057
|
+
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)));
|
|
5960
6058
|
});
|
|
5961
6059
|
Stepper.displayName = "Stepper" /* Stepper */;
|
|
5962
6060
|
var Stepper_default = Stepper;
|
|
5963
6061
|
|
|
5964
6062
|
// components/stepper/step/Step.tsx
|
|
5965
6063
|
var import_clsx79 = __toESM(require("clsx"));
|
|
5966
|
-
var
|
|
5967
|
-
var Step =
|
|
6064
|
+
var import_react46 = __toESM(require("react"));
|
|
6065
|
+
var Step = import_react46.default.forwardRef(({ className, id, active, current, done, label, iconName, error, ...others }, ref) => {
|
|
5968
6066
|
const { styled } = useTrilogyContext();
|
|
5969
6067
|
const classesStepLabel = hashClass(styled, (0, import_clsx79.default)("step-label"));
|
|
5970
6068
|
const classes = hashClass(
|
|
@@ -5978,7 +6076,7 @@ var Step = import_react45.default.forwardRef(({ className, id, active, current,
|
|
|
5978
6076
|
className
|
|
5979
6077
|
)
|
|
5980
6078
|
);
|
|
5981
|
-
return /* @__PURE__ */
|
|
6079
|
+
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 */ })));
|
|
5982
6080
|
});
|
|
5983
6081
|
Step.displayName = "Step" /* Step */;
|
|
5984
6082
|
var Step_default = Step;
|
|
@@ -5997,10 +6095,10 @@ var step_default = Step_default;
|
|
|
5997
6095
|
|
|
5998
6096
|
// components/switch/Switch.tsx
|
|
5999
6097
|
var import_clsx80 = __toESM(require("clsx"));
|
|
6000
|
-
var
|
|
6001
|
-
var Switch =
|
|
6098
|
+
var import_react47 = __toESM(require("react"));
|
|
6099
|
+
var Switch = import_react47.default.forwardRef(({
|
|
6002
6100
|
className,
|
|
6003
|
-
id =
|
|
6101
|
+
id = import_react47.default.useId(),
|
|
6004
6102
|
label,
|
|
6005
6103
|
value,
|
|
6006
6104
|
checked,
|
|
@@ -6014,23 +6112,23 @@ var Switch = import_react46.default.forwardRef(({
|
|
|
6014
6112
|
fullWidth,
|
|
6015
6113
|
...others
|
|
6016
6114
|
}, ref) => {
|
|
6017
|
-
const [_checked, setChecked] = (0,
|
|
6115
|
+
const [_checked, setChecked] = (0, import_react47.useState)(checked || false);
|
|
6018
6116
|
const { styled } = useTrilogyContext();
|
|
6019
|
-
|
|
6117
|
+
import_react47.default.useEffect(() => {
|
|
6020
6118
|
setChecked(checked || false);
|
|
6021
6119
|
}, [checked]);
|
|
6022
|
-
(0,
|
|
6120
|
+
(0, import_react47.useEffect)(() => {
|
|
6023
6121
|
if (!readonly) {
|
|
6024
6122
|
setChecked(checked || false);
|
|
6025
6123
|
}
|
|
6026
6124
|
}, [checked, readonly]);
|
|
6027
|
-
return /* @__PURE__ */
|
|
6125
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
|
6028
6126
|
"div",
|
|
6029
6127
|
{
|
|
6030
6128
|
ref,
|
|
6031
6129
|
className: hashClass(styled, (0, import_clsx80.default)("switch", reversed && is("reversed"), fullWidth && is("fullwidth"), className))
|
|
6032
6130
|
},
|
|
6033
|
-
/* @__PURE__ */
|
|
6131
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
|
6034
6132
|
"input",
|
|
6035
6133
|
{
|
|
6036
6134
|
onChange: (e) => {
|
|
@@ -6066,14 +6164,14 @@ var Switch = import_react46.default.forwardRef(({
|
|
|
6066
6164
|
...others
|
|
6067
6165
|
}
|
|
6068
6166
|
),
|
|
6069
|
-
/* @__PURE__ */
|
|
6167
|
+
/* @__PURE__ */ import_react47.default.createElement("label", { htmlFor: `switch-${id}` }, label)
|
|
6070
6168
|
);
|
|
6071
6169
|
});
|
|
6072
6170
|
Switch.displayName = "Switch" /* Switch */;
|
|
6073
6171
|
var Switch_default = Switch;
|
|
6074
6172
|
|
|
6075
6173
|
// components/table/Table.tsx
|
|
6076
|
-
var
|
|
6174
|
+
var React91 = __toESM(require("react"));
|
|
6077
6175
|
var import_clsx81 = __toESM(require("clsx"));
|
|
6078
6176
|
|
|
6079
6177
|
// components/table/TableProps.ts
|
|
@@ -6085,7 +6183,7 @@ var TableBorderEnum = /* @__PURE__ */ ((TableBorderEnum2) => {
|
|
|
6085
6183
|
})(TableBorderEnum || {});
|
|
6086
6184
|
|
|
6087
6185
|
// components/table/Table.tsx
|
|
6088
|
-
var Table =
|
|
6186
|
+
var Table = React91.forwardRef(({
|
|
6089
6187
|
className,
|
|
6090
6188
|
id,
|
|
6091
6189
|
fullwidth,
|
|
@@ -6106,15 +6204,15 @@ var Table = React90.forwardRef(({
|
|
|
6106
6204
|
className
|
|
6107
6205
|
)
|
|
6108
6206
|
);
|
|
6109
|
-
return /* @__PURE__ */
|
|
6207
|
+
return /* @__PURE__ */ React91.createElement("table", { ref, id, className: classes, ...others });
|
|
6110
6208
|
});
|
|
6111
6209
|
Table.displayName = "Table" /* Table */;
|
|
6112
6210
|
var Table_default = Table;
|
|
6113
6211
|
|
|
6114
6212
|
// components/table/head/TableHead.tsx
|
|
6115
|
-
var
|
|
6213
|
+
var React92 = __toESM(require("react"));
|
|
6116
6214
|
var import_clsx82 = __toESM(require("clsx"));
|
|
6117
|
-
var TableHead =
|
|
6215
|
+
var TableHead = React92.forwardRef(({ className, id, color, backgroundColor, ...others }, ref) => {
|
|
6118
6216
|
const { styled } = useTrilogyContext();
|
|
6119
6217
|
const classes = hashClass(
|
|
6120
6218
|
styled,
|
|
@@ -6124,7 +6222,7 @@ var TableHead = React91.forwardRef(({ className, id, color, backgroundColor, ...
|
|
|
6124
6222
|
color && is(getColorClassName(color))
|
|
6125
6223
|
)
|
|
6126
6224
|
);
|
|
6127
|
-
return /* @__PURE__ */
|
|
6225
|
+
return /* @__PURE__ */ React92.createElement("thead", { ref, id, className: classes, ...others });
|
|
6128
6226
|
});
|
|
6129
6227
|
TableHead.displayName = "TableHead" /* TableHead */;
|
|
6130
6228
|
var TableHead_default = TableHead;
|
|
@@ -6133,9 +6231,9 @@ var TableHead_default = TableHead;
|
|
|
6133
6231
|
var head_default = TableHead_default;
|
|
6134
6232
|
|
|
6135
6233
|
// components/table/body/TableBody.tsx
|
|
6136
|
-
var
|
|
6234
|
+
var React93 = __toESM(require("react"));
|
|
6137
6235
|
var import_clsx83 = __toESM(require("clsx"));
|
|
6138
|
-
var TableBody =
|
|
6236
|
+
var TableBody = React93.forwardRef(({ className, id, color, backgroundColor, ...others }, ref) => {
|
|
6139
6237
|
const { styled } = useTrilogyContext();
|
|
6140
6238
|
const classes = hashClass(
|
|
6141
6239
|
styled,
|
|
@@ -6145,7 +6243,7 @@ var TableBody = React92.forwardRef(({ className, id, color, backgroundColor, ...
|
|
|
6145
6243
|
color && is(getColorClassName(color))
|
|
6146
6244
|
)
|
|
6147
6245
|
);
|
|
6148
|
-
return /* @__PURE__ */
|
|
6246
|
+
return /* @__PURE__ */ React93.createElement("tbody", { ref, id, className: classes, ...others });
|
|
6149
6247
|
});
|
|
6150
6248
|
TableBody.displayName = "TableBody" /* TableBody */;
|
|
6151
6249
|
var TableBody_default = TableBody;
|
|
@@ -6154,12 +6252,12 @@ var TableBody_default = TableBody;
|
|
|
6154
6252
|
var body_default = TableBody_default;
|
|
6155
6253
|
|
|
6156
6254
|
// components/table/th/TableTh.tsx
|
|
6157
|
-
var
|
|
6255
|
+
var React94 = __toESM(require("react"));
|
|
6158
6256
|
var import_clsx84 = __toESM(require("clsx"));
|
|
6159
|
-
var TableTh =
|
|
6257
|
+
var TableTh = React94.forwardRef(({ className, id, colSpan, rowSpan, ...others }, ref) => {
|
|
6160
6258
|
const { styled } = useTrilogyContext();
|
|
6161
6259
|
const classes = hashClass(styled, (0, import_clsx84.default)(className));
|
|
6162
|
-
return /* @__PURE__ */
|
|
6260
|
+
return /* @__PURE__ */ React94.createElement("th", { ref, id, className: classes, colSpan, rowSpan, ...others });
|
|
6163
6261
|
});
|
|
6164
6262
|
TableTh.displayName = "TableTh" /* TableTh */;
|
|
6165
6263
|
var TableTh_default = TableTh;
|
|
@@ -6168,9 +6266,9 @@ var TableTh_default = TableTh;
|
|
|
6168
6266
|
var th_default = TableTh_default;
|
|
6169
6267
|
|
|
6170
6268
|
// components/table/tr/TableTr.tsx
|
|
6171
|
-
var
|
|
6269
|
+
var React95 = __toESM(require("react"));
|
|
6172
6270
|
var import_clsx85 = __toESM(require("clsx"));
|
|
6173
|
-
var TableTr =
|
|
6271
|
+
var TableTr = React95.forwardRef(({
|
|
6174
6272
|
className,
|
|
6175
6273
|
id,
|
|
6176
6274
|
expandable,
|
|
@@ -6190,7 +6288,7 @@ var TableTr = React94.forwardRef(({
|
|
|
6190
6288
|
color && getColorClassName(color)
|
|
6191
6289
|
)
|
|
6192
6290
|
);
|
|
6193
|
-
return /* @__PURE__ */
|
|
6291
|
+
return /* @__PURE__ */ React95.createElement("tr", { ref, id, className: classes, ...others });
|
|
6194
6292
|
});
|
|
6195
6293
|
TableTr.displayName = "TableTr" /* TableTr */;
|
|
6196
6294
|
var TableTr_default = TableTr;
|
|
@@ -6199,12 +6297,12 @@ var TableTr_default = TableTr;
|
|
|
6199
6297
|
var tr_default = TableTr_default;
|
|
6200
6298
|
|
|
6201
6299
|
// components/table/td/TableTd.tsx
|
|
6202
|
-
var
|
|
6300
|
+
var React96 = __toESM(require("react"));
|
|
6203
6301
|
var import_clsx86 = __toESM(require("clsx"));
|
|
6204
|
-
var TableTd =
|
|
6302
|
+
var TableTd = React96.forwardRef(({ className, id, rowSpan, colSpan, ...others }, ref) => {
|
|
6205
6303
|
const { styled } = useTrilogyContext();
|
|
6206
6304
|
const classes = hashClass(styled, (0, import_clsx86.default)(className));
|
|
6207
|
-
return /* @__PURE__ */
|
|
6305
|
+
return /* @__PURE__ */ React96.createElement("td", { ref, id, className: classes, rowSpan, colSpan, ...others });
|
|
6208
6306
|
});
|
|
6209
6307
|
TableTd.displayName = "TableTd" /* TableTd */;
|
|
6210
6308
|
var TableTd_default = TableTd;
|
|
@@ -6213,8 +6311,8 @@ var TableTd_default = TableTd;
|
|
|
6213
6311
|
var td_default = TableTd_default;
|
|
6214
6312
|
|
|
6215
6313
|
// components/tabs/context/index.tsx
|
|
6216
|
-
var
|
|
6217
|
-
var TabsContext =
|
|
6314
|
+
var import_react48 = __toESM(require("react"));
|
|
6315
|
+
var TabsContext = import_react48.default.createContext({
|
|
6218
6316
|
activeIndex: 0,
|
|
6219
6317
|
inverted: false,
|
|
6220
6318
|
setActiveIndex: () => 0,
|
|
@@ -6225,20 +6323,20 @@ var TabsContext = import_react47.default.createContext({
|
|
|
6225
6323
|
|
|
6226
6324
|
// components/tabs/Tabs.tsx
|
|
6227
6325
|
var import_clsx87 = __toESM(require("clsx"));
|
|
6228
|
-
var
|
|
6229
|
-
var Tabs =
|
|
6326
|
+
var import_react49 = __toESM(require("react"));
|
|
6327
|
+
var Tabs = import_react49.default.forwardRef(
|
|
6230
6328
|
({ children, className, id, activeIndex, fullwidth, inverted, small }, ref) => {
|
|
6231
|
-
const [currentIndex, setCurrentIndex] =
|
|
6232
|
-
const [isInverted, setIsInverted] =
|
|
6329
|
+
const [currentIndex, setCurrentIndex] = import_react49.default.useState(activeIndex || 0);
|
|
6330
|
+
const [isInverted, setIsInverted] = import_react49.default.useState(inverted || false);
|
|
6233
6331
|
const { styled } = useTrilogyContext();
|
|
6234
6332
|
const classes = hashClass(
|
|
6235
6333
|
styled,
|
|
6236
6334
|
(0, import_clsx87.default)("tabs", fullwidth && is("fullwidth"), inverted && is("inverted"), small && is("small"), className)
|
|
6237
6335
|
);
|
|
6238
|
-
|
|
6336
|
+
import_react49.default.useEffect(() => {
|
|
6239
6337
|
activeIndex !== void 0 && setCurrentIndex(activeIndex);
|
|
6240
6338
|
}, [activeIndex]);
|
|
6241
|
-
return /* @__PURE__ */
|
|
6339
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
|
6242
6340
|
TabsContext.Provider,
|
|
6243
6341
|
{
|
|
6244
6342
|
value: {
|
|
@@ -6249,7 +6347,7 @@ var Tabs = import_react48.default.forwardRef(
|
|
|
6249
6347
|
setActiveIndex: setCurrentIndex
|
|
6250
6348
|
}
|
|
6251
6349
|
},
|
|
6252
|
-
/* @__PURE__ */
|
|
6350
|
+
/* @__PURE__ */ import_react49.default.createElement("div", { ref, id, className: classes, "data-tabs-context": "" }, children)
|
|
6253
6351
|
);
|
|
6254
6352
|
}
|
|
6255
6353
|
);
|
|
@@ -6258,16 +6356,16 @@ var Tabs_default = Tabs;
|
|
|
6258
6356
|
|
|
6259
6357
|
// components/tabs/tab-list/tab/Tab.tsx
|
|
6260
6358
|
var import_clsx88 = __toESM(require("clsx"));
|
|
6261
|
-
var
|
|
6262
|
-
var Tab =
|
|
6359
|
+
var import_react50 = __toESM(require("react"));
|
|
6360
|
+
var Tab = import_react50.default.forwardRef(
|
|
6263
6361
|
({ active, className, onClick, routerLink = "a", iconName, label, disabled, testId, ariaControls, ...others }, ref) => {
|
|
6264
6362
|
const { styled } = useTrilogyContext();
|
|
6265
6363
|
const { index, ...props } = others;
|
|
6266
|
-
const { activeIndex, setActiveIndex, small } =
|
|
6364
|
+
const { activeIndex, setActiveIndex, small } = import_react50.default.useContext(TabsContext);
|
|
6267
6365
|
const Tag2 = others.href || others.to ? routerLink : "button";
|
|
6268
|
-
const isActive =
|
|
6366
|
+
const isActive = import_react50.default.useMemo(() => activeIndex === index, [activeIndex, index]);
|
|
6269
6367
|
const classes = hashClass(styled, (0, import_clsx88.default)("tab", className, { "is-active": isActive }));
|
|
6270
|
-
const handleClick =
|
|
6368
|
+
const handleClick = import_react50.default.useCallback(
|
|
6271
6369
|
(e) => {
|
|
6272
6370
|
if (!disabled) {
|
|
6273
6371
|
if (!others.href && !others.to) setActiveIndex(index);
|
|
@@ -6276,10 +6374,10 @@ var Tab = import_react49.default.forwardRef(
|
|
|
6276
6374
|
},
|
|
6277
6375
|
[disabled, onClick, index, setActiveIndex]
|
|
6278
6376
|
);
|
|
6279
|
-
|
|
6377
|
+
import_react50.default.useEffect(() => {
|
|
6280
6378
|
if (active) setActiveIndex(index);
|
|
6281
6379
|
}, [active, setActiveIndex, index]);
|
|
6282
|
-
return /* @__PURE__ */
|
|
6380
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
|
6283
6381
|
Tag2,
|
|
6284
6382
|
{
|
|
6285
6383
|
ref,
|
|
@@ -6295,8 +6393,8 @@ var Tab = import_react49.default.forwardRef(
|
|
|
6295
6393
|
onClick: handleClick,
|
|
6296
6394
|
...props
|
|
6297
6395
|
},
|
|
6298
|
-
/* @__PURE__ */
|
|
6299
|
-
label && /* @__PURE__ */
|
|
6396
|
+
/* @__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 })),
|
|
6397
|
+
label && /* @__PURE__ */ import_react50.default.createElement(Text_default, null, label)
|
|
6300
6398
|
);
|
|
6301
6399
|
}
|
|
6302
6400
|
);
|
|
@@ -6305,31 +6403,31 @@ var Tab_default = Tab;
|
|
|
6305
6403
|
|
|
6306
6404
|
// components/tabs/tab-list/TabList.tsx
|
|
6307
6405
|
var import_clsx89 = __toESM(require("clsx"));
|
|
6308
|
-
var
|
|
6309
|
-
var TabList =
|
|
6406
|
+
var import_react51 = __toESM(require("react"));
|
|
6407
|
+
var TabList = import_react51.default.forwardRef(
|
|
6310
6408
|
({ children, className, id, testId, align, ...others }, ref) => {
|
|
6311
6409
|
const { styled } = useTrilogyContext();
|
|
6312
|
-
const TabListRef =
|
|
6313
|
-
const tabRefs =
|
|
6314
|
-
const { small } =
|
|
6315
|
-
|
|
6316
|
-
const [tabsWidth, setTabsWidth] =
|
|
6317
|
-
const [tabListWidth, setTabListWidth] =
|
|
6318
|
-
const [scrollLeft, setScrollLeft] =
|
|
6319
|
-
const [tabFocused, setTabFocused] =
|
|
6410
|
+
const TabListRef = import_react51.default.useRef(null);
|
|
6411
|
+
const tabRefs = import_react51.default.useRef([]);
|
|
6412
|
+
const { small } = import_react51.default.useContext(TabsContext);
|
|
6413
|
+
import_react51.default.useImperativeHandle(ref, () => TabListRef.current);
|
|
6414
|
+
const [tabsWidth, setTabsWidth] = import_react51.default.useState(0);
|
|
6415
|
+
const [tabListWidth, setTabListWidth] = import_react51.default.useState(0);
|
|
6416
|
+
const [scrollLeft, setScrollLeft] = import_react51.default.useState(0);
|
|
6417
|
+
const [tabFocused, setTabFocused] = import_react51.default.useState(0);
|
|
6320
6418
|
const classes = hashClass(styled, (0, import_clsx89.default)("tab-list", align && is(getAlignClassName(align)), className));
|
|
6321
|
-
const isVisibleArrowLeft = (0,
|
|
6419
|
+
const isVisibleArrowLeft = (0, import_react51.useMemo)(() => {
|
|
6322
6420
|
if (!tabRefs.current.length) return false;
|
|
6323
6421
|
return scrollLeft > tabRefs.current[0].width / 2;
|
|
6324
6422
|
}, [tabRefs, scrollLeft]);
|
|
6325
|
-
const isVisibleArrowRight = (0,
|
|
6423
|
+
const isVisibleArrowRight = (0, import_react51.useMemo)(
|
|
6326
6424
|
() => tabListWidth - tabsWidth - scrollLeft > 5,
|
|
6327
6425
|
[tabListWidth, tabsWidth, scrollLeft]
|
|
6328
6426
|
);
|
|
6329
|
-
const TabElms =
|
|
6330
|
-
return
|
|
6331
|
-
if (!
|
|
6332
|
-
return /* @__PURE__ */
|
|
6427
|
+
const TabElms = import_react51.default.useMemo(() => {
|
|
6428
|
+
return import_react51.default.Children.map(children, (child, index) => {
|
|
6429
|
+
if (!import_react51.default.isValidElement(child)) return false;
|
|
6430
|
+
return /* @__PURE__ */ import_react51.default.createElement(
|
|
6333
6431
|
Tab_default,
|
|
6334
6432
|
{
|
|
6335
6433
|
ref: (el) => tabRefs.current[index] = el == null ? void 0 : el.getBoundingClientRect(),
|
|
@@ -6339,7 +6437,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6339
6437
|
);
|
|
6340
6438
|
});
|
|
6341
6439
|
}, [children, tabRefs]);
|
|
6342
|
-
const scrollWithArrow =
|
|
6440
|
+
const scrollWithArrow = import_react51.default.useCallback(
|
|
6343
6441
|
(direction) => {
|
|
6344
6442
|
var _a;
|
|
6345
6443
|
if (tabRefs.current) {
|
|
@@ -6351,7 +6449,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6351
6449
|
},
|
|
6352
6450
|
[tabRefs.current, tabFocused, TabListRef]
|
|
6353
6451
|
);
|
|
6354
|
-
const handleScrollList =
|
|
6452
|
+
const handleScrollList = import_react51.default.useCallback(
|
|
6355
6453
|
(e) => {
|
|
6356
6454
|
const target = e.target;
|
|
6357
6455
|
const firstGap = tabRefs.current[0].x + (small ? 16 : 24);
|
|
@@ -6363,26 +6461,26 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6363
6461
|
},
|
|
6364
6462
|
[tabRefs, small]
|
|
6365
6463
|
);
|
|
6366
|
-
const onClickPrev =
|
|
6464
|
+
const onClickPrev = import_react51.default.useCallback(() => {
|
|
6367
6465
|
isVisibleArrowLeft && scrollWithArrow(-1);
|
|
6368
6466
|
}, [scrollWithArrow, isVisibleArrowLeft]);
|
|
6369
|
-
const onClickNext =
|
|
6467
|
+
const onClickNext = import_react51.default.useCallback(() => {
|
|
6370
6468
|
isVisibleArrowRight && scrollWithArrow(1);
|
|
6371
6469
|
}, [scrollWithArrow, isVisibleArrowRight]);
|
|
6372
|
-
const setWidths =
|
|
6470
|
+
const setWidths = import_react51.default.useCallback(() => {
|
|
6373
6471
|
if (TabListRef.current) {
|
|
6374
6472
|
setTabsWidth(TabListRef.current.clientWidth);
|
|
6375
6473
|
setTabListWidth(TabListRef.current.scrollWidth);
|
|
6376
6474
|
}
|
|
6377
6475
|
}, [TabListRef]);
|
|
6378
|
-
|
|
6476
|
+
import_react51.default.useEffect(() => {
|
|
6379
6477
|
setWidths();
|
|
6380
6478
|
}, [setWidths, isVisibleArrowLeft, isVisibleArrowRight]);
|
|
6381
|
-
|
|
6479
|
+
import_react51.default.useEffect(() => {
|
|
6382
6480
|
window.addEventListener("resize", setWidths);
|
|
6383
6481
|
return () => window.removeEventListener("resize", setWidths);
|
|
6384
6482
|
}, [TabListRef, setWidths]);
|
|
6385
|
-
return /* @__PURE__ */
|
|
6483
|
+
return /* @__PURE__ */ import_react51.default.createElement(
|
|
6386
6484
|
"div",
|
|
6387
6485
|
{
|
|
6388
6486
|
ref: TabListRef,
|
|
@@ -6393,7 +6491,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6393
6491
|
onScroll: handleScrollList,
|
|
6394
6492
|
...others
|
|
6395
6493
|
},
|
|
6396
|
-
isVisibleArrowLeft && /* @__PURE__ */
|
|
6494
|
+
isVisibleArrowLeft && /* @__PURE__ */ import_react51.default.createElement(
|
|
6397
6495
|
Icon_default,
|
|
6398
6496
|
{
|
|
6399
6497
|
"data-arrow-prev": "",
|
|
@@ -6404,7 +6502,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6404
6502
|
}
|
|
6405
6503
|
),
|
|
6406
6504
|
TabElms,
|
|
6407
|
-
isVisibleArrowRight && /* @__PURE__ */
|
|
6505
|
+
isVisibleArrowRight && /* @__PURE__ */ import_react51.default.createElement(
|
|
6408
6506
|
Icon_default,
|
|
6409
6507
|
{
|
|
6410
6508
|
"data-arrow-next": "",
|
|
@@ -6422,13 +6520,13 @@ var TabList_default = TabList;
|
|
|
6422
6520
|
|
|
6423
6521
|
// components/tabs/tab-panels/tab-panel/TabPanel.tsx
|
|
6424
6522
|
var import_clsx90 = __toESM(require("clsx"));
|
|
6425
|
-
var
|
|
6426
|
-
var TabPanel =
|
|
6523
|
+
var import_react52 = __toESM(require("react"));
|
|
6524
|
+
var TabPanel = import_react52.default.forwardRef(({ children, className, testId, ...others }, ref) => {
|
|
6427
6525
|
const { styled } = useTrilogyContext();
|
|
6428
6526
|
const { index, ...props } = others;
|
|
6429
|
-
const { activeIndex } =
|
|
6527
|
+
const { activeIndex } = import_react52.default.useContext(TabsContext);
|
|
6430
6528
|
const classes = hashClass(styled, (0, import_clsx90.default)("tab-panel", index === activeIndex && is("active"), className));
|
|
6431
|
-
return /* @__PURE__ */
|
|
6529
|
+
return /* @__PURE__ */ import_react52.default.createElement("div", { ref, "data-testid": testId, className: classes, ...props }, children);
|
|
6432
6530
|
});
|
|
6433
6531
|
TabPanel.displayName = "TabPanel" /* TabPanel */;
|
|
6434
6532
|
var TabPanel_default = TabPanel;
|
|
@@ -6438,13 +6536,13 @@ var tab_panel_default = TabPanel_default;
|
|
|
6438
6536
|
|
|
6439
6537
|
// components/tabs/tab-panels/TabPanels.tsx
|
|
6440
6538
|
var import_clsx91 = __toESM(require("clsx"));
|
|
6441
|
-
var
|
|
6442
|
-
var TabPanels =
|
|
6539
|
+
var import_react53 = __toESM(require("react"));
|
|
6540
|
+
var TabPanels = import_react53.default.forwardRef(({ children, className, id, testId, ...others }, ref) => {
|
|
6443
6541
|
const { styled } = useTrilogyContext();
|
|
6444
6542
|
const classes = hashClass(styled, (0, import_clsx91.default)("tab-panels", className));
|
|
6445
|
-
return /* @__PURE__ */
|
|
6446
|
-
if (!
|
|
6447
|
-
return /* @__PURE__ */
|
|
6543
|
+
return /* @__PURE__ */ import_react53.default.createElement("div", { ref, id, "data-testid": testId, className: classes, ...others }, import_react53.default.Children.map(children, (child, index) => {
|
|
6544
|
+
if (!import_react53.default.isValidElement(child)) return false;
|
|
6545
|
+
return /* @__PURE__ */ import_react53.default.createElement(tab_panel_default, { ...child.props, index });
|
|
6448
6546
|
}));
|
|
6449
6547
|
});
|
|
6450
6548
|
TabPanels.displayName = "TabPanels" /* TabPanels */;
|
|
@@ -6452,8 +6550,8 @@ var TabPanels_default = TabPanels;
|
|
|
6452
6550
|
|
|
6453
6551
|
// components/tag/Tag.tsx
|
|
6454
6552
|
var import_clsx92 = __toESM(require("clsx"));
|
|
6455
|
-
var
|
|
6456
|
-
var Tag =
|
|
6553
|
+
var import_react54 = __toESM(require("react"));
|
|
6554
|
+
var Tag = import_react54.default.forwardRef(
|
|
6457
6555
|
({ label, className, id, variant, inverted, small, iconName, ...others }, ref) => {
|
|
6458
6556
|
const { styled } = useTrilogyContext();
|
|
6459
6557
|
const tagClassNames = hashClass(
|
|
@@ -6467,7 +6565,7 @@ var Tag = import_react53.default.forwardRef(
|
|
|
6467
6565
|
)
|
|
6468
6566
|
);
|
|
6469
6567
|
const tagIconClassNames = (0, import_clsx92.default)(variant && is(getColorClassName(variant)));
|
|
6470
|
-
return /* @__PURE__ */
|
|
6568
|
+
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);
|
|
6471
6569
|
}
|
|
6472
6570
|
);
|
|
6473
6571
|
Tag.displayName = "Tag" /* Tag */;
|
|
@@ -6475,10 +6573,10 @@ var Tag_default = Tag;
|
|
|
6475
6573
|
|
|
6476
6574
|
// components/tag/list/TagList.tsx
|
|
6477
6575
|
var import_clsx93 = __toESM(require("clsx"));
|
|
6478
|
-
var
|
|
6479
|
-
var TagList =
|
|
6576
|
+
var React104 = __toESM(require("react"));
|
|
6577
|
+
var TagList = React104.forwardRef(({ className, id, align, marginless, ...others }, ref) => {
|
|
6480
6578
|
const { styled } = useTrilogyContext();
|
|
6481
|
-
return /* @__PURE__ */
|
|
6579
|
+
return /* @__PURE__ */ React104.createElement(
|
|
6482
6580
|
"div",
|
|
6483
6581
|
{
|
|
6484
6582
|
ref,
|
|
@@ -6508,8 +6606,8 @@ var TagVariant = /* @__PURE__ */ ((TagVariant2) => {
|
|
|
6508
6606
|
|
|
6509
6607
|
// components/textarea/Textarea.tsx
|
|
6510
6608
|
var import_clsx94 = __toESM(require("clsx"));
|
|
6511
|
-
var
|
|
6512
|
-
var Textarea =
|
|
6609
|
+
var import_react55 = __toESM(require("react"));
|
|
6610
|
+
var Textarea = import_react55.default.forwardRef(
|
|
6513
6611
|
({
|
|
6514
6612
|
className,
|
|
6515
6613
|
id,
|
|
@@ -6530,9 +6628,9 @@ var Textarea = import_react54.default.forwardRef(
|
|
|
6530
6628
|
iconNameRight,
|
|
6531
6629
|
...others
|
|
6532
6630
|
}, ref) => {
|
|
6533
|
-
const [value, setValue] = (0,
|
|
6631
|
+
const [value, setValue] = (0, import_react55.useState)(defaultValue || "");
|
|
6534
6632
|
const { styled } = useTrilogyContext();
|
|
6535
|
-
(0,
|
|
6633
|
+
(0, import_react55.useEffect)(() => {
|
|
6536
6634
|
setValue(defaultValue || "");
|
|
6537
6635
|
}, [defaultValue]);
|
|
6538
6636
|
const wrapperClasses = hashClass(styled, (0, import_clsx94.default)("field textarea-wrapper", className, status && is(status)));
|
|
@@ -6543,7 +6641,7 @@ var Textarea = import_react54.default.forwardRef(
|
|
|
6543
6641
|
styled,
|
|
6544
6642
|
(0, import_clsx94.default)("control", iconNameLeft && has("icons-left"), iconNameRight && has("icons-right"))
|
|
6545
6643
|
);
|
|
6546
|
-
return /* @__PURE__ */
|
|
6644
|
+
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(
|
|
6547
6645
|
"textarea",
|
|
6548
6646
|
{
|
|
6549
6647
|
ref,
|
|
@@ -6566,7 +6664,7 @@ var Textarea = import_react54.default.forwardRef(
|
|
|
6566
6664
|
required,
|
|
6567
6665
|
...others
|
|
6568
6666
|
}
|
|
6569
|
-
), iconNameLeft && /* @__PURE__ */
|
|
6667
|
+
), 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));
|
|
6570
6668
|
}
|
|
6571
6669
|
);
|
|
6572
6670
|
Textarea.displayName = "Textarea" /* Textarea */;
|
|
@@ -6574,15 +6672,15 @@ var Textarea_default = Textarea;
|
|
|
6574
6672
|
|
|
6575
6673
|
// components/timeline/content/TimelineContent.tsx
|
|
6576
6674
|
var import_clsx95 = __toESM(require("clsx"));
|
|
6577
|
-
var
|
|
6578
|
-
var TimelineContent =
|
|
6675
|
+
var React106 = __toESM(require("react"));
|
|
6676
|
+
var TimelineContent = React106.forwardRef(
|
|
6579
6677
|
({ children, className, id, heading, content, linkLabel, linkTo, ...others }, ref) => {
|
|
6580
6678
|
const { styled } = useTrilogyContext();
|
|
6581
6679
|
const classes = hashClass(styled, (0, import_clsx95.default)("timeline-content", className));
|
|
6582
6680
|
if (children) {
|
|
6583
|
-
return /* @__PURE__ */
|
|
6681
|
+
return /* @__PURE__ */ React106.createElement("div", { ref, id, className: classes, ...others }, children);
|
|
6584
6682
|
}
|
|
6585
|
-
return /* @__PURE__ */
|
|
6683
|
+
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));
|
|
6586
6684
|
}
|
|
6587
6685
|
);
|
|
6588
6686
|
TimelineContent.displayName = "TimelineContent" /* TimelineContent */;
|
|
@@ -6593,14 +6691,14 @@ var content_default3 = TimelineContent_default;
|
|
|
6593
6691
|
|
|
6594
6692
|
// components/timeline/item/TimelineItem.tsx
|
|
6595
6693
|
var import_clsx96 = __toESM(require("clsx"));
|
|
6596
|
-
var
|
|
6597
|
-
var TimelineItem =
|
|
6694
|
+
var React107 = __toESM(require("react"));
|
|
6695
|
+
var TimelineItem = React107.forwardRef(({ className, id, done, active, cancel, ...others }, ref) => {
|
|
6598
6696
|
const { styled } = useTrilogyContext();
|
|
6599
6697
|
const classes = hashClass(
|
|
6600
6698
|
styled,
|
|
6601
6699
|
(0, import_clsx96.default)("timeline-item", done && "done", active && "active", cancel && "cancel", className)
|
|
6602
6700
|
);
|
|
6603
|
-
return /* @__PURE__ */
|
|
6701
|
+
return /* @__PURE__ */ React107.createElement("div", { ref, id, className: classes, ...others });
|
|
6604
6702
|
});
|
|
6605
6703
|
TimelineItem.displayName = "TimelineItem" /* TimelineItem */;
|
|
6606
6704
|
var TimelineItem_default = TimelineItem;
|
|
@@ -6610,8 +6708,8 @@ var item_default5 = TimelineItem_default;
|
|
|
6610
6708
|
|
|
6611
6709
|
// components/timeline/marker/TimelineMarker.tsx
|
|
6612
6710
|
var import_clsx97 = __toESM(require("clsx"));
|
|
6613
|
-
var
|
|
6614
|
-
var TimelineMarker =
|
|
6711
|
+
var React108 = __toESM(require("react"));
|
|
6712
|
+
var TimelineMarker = React108.forwardRef(({
|
|
6615
6713
|
className,
|
|
6616
6714
|
id,
|
|
6617
6715
|
iconClassname,
|
|
@@ -6621,7 +6719,7 @@ var TimelineMarker = React107.forwardRef(({
|
|
|
6621
6719
|
const { styled } = useTrilogyContext();
|
|
6622
6720
|
const classes = hashClass(styled, (0, import_clsx97.default)("timeline-marker", is("icon"), className));
|
|
6623
6721
|
const iconClasses = (0, import_clsx97.default)(iconClassname);
|
|
6624
|
-
return /* @__PURE__ */
|
|
6722
|
+
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 */ })));
|
|
6625
6723
|
});
|
|
6626
6724
|
TimelineMarker.displayName = "TimelineMarker" /* TimelineMarker */;
|
|
6627
6725
|
var TimelineMarker_default = TimelineMarker;
|
|
@@ -6631,18 +6729,18 @@ var marker_default = TimelineMarker_default;
|
|
|
6631
6729
|
|
|
6632
6730
|
// components/timeline/Timeline.tsx
|
|
6633
6731
|
var import_clsx98 = __toESM(require("clsx"));
|
|
6634
|
-
var
|
|
6635
|
-
var Timeline =
|
|
6732
|
+
var React109 = __toESM(require("react"));
|
|
6733
|
+
var Timeline = React109.forwardRef(({ className, id, horizontal, ...others }, ref) => {
|
|
6636
6734
|
const { styled } = useTrilogyContext();
|
|
6637
6735
|
const classes = hashClass(styled, (0, import_clsx98.default)("timeline", horizontal && is("horizontal"), className));
|
|
6638
|
-
return /* @__PURE__ */
|
|
6736
|
+
return /* @__PURE__ */ React109.createElement("div", { ref, id, className: classes, ...others });
|
|
6639
6737
|
});
|
|
6640
6738
|
Timeline.displayName = "Timeline" /* Timeline */;
|
|
6641
6739
|
var Timeline_default = Timeline;
|
|
6642
6740
|
|
|
6643
6741
|
// components/view/View.tsx
|
|
6644
6742
|
var import_clsx99 = __toESM(require("clsx"));
|
|
6645
|
-
var
|
|
6743
|
+
var React110 = __toESM(require("react"));
|
|
6646
6744
|
|
|
6647
6745
|
// components/view/ViewProps/index.ts
|
|
6648
6746
|
var ViewMarkup = /* @__PURE__ */ ((ViewMarkup2) => {
|
|
@@ -6667,7 +6765,7 @@ var ViewMarkup = /* @__PURE__ */ ((ViewMarkup2) => {
|
|
|
6667
6765
|
})(ViewMarkup || {});
|
|
6668
6766
|
|
|
6669
6767
|
// components/view/View.tsx
|
|
6670
|
-
var
|
|
6768
|
+
var View2 = React110.forwardRef(({
|
|
6671
6769
|
children,
|
|
6672
6770
|
style,
|
|
6673
6771
|
className,
|
|
@@ -6704,7 +6802,7 @@ var View = React109.forwardRef(({
|
|
|
6704
6802
|
className
|
|
6705
6803
|
)
|
|
6706
6804
|
);
|
|
6707
|
-
return /* @__PURE__ */
|
|
6805
|
+
return /* @__PURE__ */ React110.createElement(
|
|
6708
6806
|
Tag2,
|
|
6709
6807
|
{
|
|
6710
6808
|
ref,
|
|
@@ -6723,7 +6821,7 @@ var View = React109.forwardRef(({
|
|
|
6723
6821
|
children
|
|
6724
6822
|
);
|
|
6725
6823
|
});
|
|
6726
|
-
var View_default =
|
|
6824
|
+
var View_default = View2;
|
|
6727
6825
|
|
|
6728
6826
|
// components/view/ViewEnum.ts
|
|
6729
6827
|
var ViewColor = /* @__PURE__ */ ((ViewColor2) => {
|
|
@@ -6859,6 +6957,7 @@ var JustifyContent = /* @__PURE__ */ ((JustifyContent2) => {
|
|
|
6859
6957
|
Select,
|
|
6860
6958
|
SelectOption,
|
|
6861
6959
|
SelectStatus,
|
|
6960
|
+
Skeleton,
|
|
6862
6961
|
Spacer,
|
|
6863
6962
|
SpacerSize,
|
|
6864
6963
|
SpacerSizeValues,
|