@trilogy-ds/react 0.0.20-esm-cjs → 0.0.23-esm-cjs
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{chunk-7ZANYDV4.mjs → chunk-2BQXWN3R.mjs} +1 -1
- package/lib/{chunk-WV5PBU2C.mjs → chunk-2DMJIJTD.mjs} +17 -5
- package/lib/{chunk-MDZE2AV3.mjs → chunk-2EF72O53.mjs} +15 -8
- package/lib/{chunk-G2QCDZEE.mjs → chunk-33VIHGIE.mjs} +1 -1
- package/lib/{chunk-JB7AXJFO.mjs → chunk-3CUMNA5T.mjs} +16 -4
- package/lib/{chunk-27BK6EVC.mjs → chunk-3QN2JTJH.mjs} +3 -3
- package/lib/{chunk-IT2ZBSQG.mjs → chunk-3TFMB2ZU.mjs} +16 -7
- package/lib/{chunk-POCUFCQC.mjs → chunk-4J6WJU6H.mjs} +1 -1
- package/lib/chunk-4LBDW7MG.mjs +320 -0
- package/lib/{chunk-UPP3GX33.mjs → chunk-5NCBENYK.mjs} +16 -6
- package/lib/{chunk-B6D5UHOQ.mjs → chunk-6WPEEBMC.mjs} +1 -1
- package/lib/{chunk-ZRWNSZC6.mjs → chunk-6YU73H5M.mjs} +1 -1
- package/lib/chunk-7DJ5V2J7.mjs +90 -0
- package/lib/chunk-7HQWD2HW.mjs +635 -0
- package/lib/{chunk-ZSBVX26X.mjs → chunk-7LIZKR65.mjs} +1 -1
- package/lib/{chunk-T4AH7FLU.mjs → chunk-AVYI3IRF.mjs} +1 -1
- package/lib/{chunk-IOXFCPJQ.mjs → chunk-BNFC4BW2.mjs} +1 -1
- package/lib/{chunk-U2STNP4N.mjs → chunk-CKEC5R4P.mjs} +1 -1
- package/lib/{chunk-Q3NP4BBO.mjs → chunk-CU2FQJB3.mjs} +2 -2
- package/lib/{chunk-TCRJL43C.mjs → chunk-DB4LE4EW.mjs} +2 -2
- package/lib/{chunk-5ALKJFH4.mjs → chunk-DJQD6XHB.mjs} +1 -1
- package/lib/{chunk-LQ2EKGFZ.mjs → chunk-DOYDNMGO.mjs} +1 -1
- package/lib/{chunk-UC3N6X6R.mjs → chunk-DTG6ZDOA.mjs} +1 -1
- package/lib/{chunk-XZCE64VV.mjs → chunk-EFI4OPOL.mjs} +1 -1
- package/lib/{chunk-2MP6W4C2.mjs → chunk-EIBKS56D.mjs} +4 -4
- package/lib/{chunk-432FETUO.mjs → chunk-EKMGL7ZZ.mjs} +1 -1
- package/lib/{chunk-3I74MN5M.mjs → chunk-FADGUVGS.mjs} +2 -2
- package/lib/{chunk-M5W5FRMF.mjs → chunk-FKLCZFMR.mjs} +2 -2
- package/lib/{chunk-IHTDJ5DD.mjs → chunk-GQOES35K.mjs} +2 -2
- package/lib/{chunk-ZEEM3OU3.mjs → chunk-HS7PWFF3.mjs} +3 -3
- package/lib/{chunk-X5HHW5EE.mjs → chunk-HZAMMVDY.mjs} +3 -3
- package/lib/{chunk-LJ4LZ3UC.mjs → chunk-ILTCTVY7.mjs} +1 -1
- package/lib/{chunk-HPM5H4HF.mjs → chunk-INMX4E34.mjs} +1 -1
- package/lib/{chunk-ACDIJOLY.mjs → chunk-IZYESQPA.mjs} +12 -5
- package/lib/{chunk-I3LRGLUL.mjs → chunk-J2YGXNIH.mjs} +3 -3
- package/lib/{chunk-67BVHO7H.mjs → chunk-JDIKK2K5.mjs} +2 -2
- package/lib/chunk-JJA6BOVR.mjs +12 -0
- package/lib/{chunk-BIWBGSDJ.mjs → chunk-KPIWEUFQ.mjs} +1 -1
- package/lib/{chunk-NKO25SIM.mjs → chunk-KRZWEBDP.mjs} +2 -2
- package/lib/chunk-LHDHBH5T.mjs +1 -0
- package/lib/{chunk-SFL4T7RS.mjs → chunk-MIEXUCOH.mjs} +1 -1
- package/lib/{chunk-Y4CLZAPU.mjs → chunk-MR7AJAP2.mjs} +2 -2
- package/lib/{chunk-VSYM7BJ4.mjs → chunk-MV3N2D6T.mjs} +1 -1
- package/lib/{chunk-CCIRXOIR.mjs → chunk-NHN7GU32.mjs} +2 -2
- package/lib/{chunk-RVRMMLZJ.mjs → chunk-NPCDCOTL.mjs} +2 -2
- package/lib/{chunk-I4RR2QN7.mjs → chunk-OQ6PNNED.mjs} +2 -2
- package/lib/{chunk-QNDMUIJM.mjs → chunk-PZ2SAVMT.mjs} +2 -2
- package/lib/{chunk-573KW52P.mjs → chunk-PZP5ZUI3.mjs} +1 -1
- package/lib/chunk-RA7237YI.mjs +84 -0
- package/lib/{chunk-YSBY3XJC.mjs → chunk-RAQQH2DI.mjs} +1 -1
- package/lib/{chunk-K5D3QU3U.mjs → chunk-RGEGLOEG.mjs} +2 -2
- package/lib/{chunk-Y6VHQF2J.mjs → chunk-SOW7WGY7.mjs} +1 -1
- package/lib/{chunk-QIEADZWY.mjs → chunk-T27AVHAC.mjs} +1 -1
- package/lib/{chunk-UTXKOHCM.mjs → chunk-T2NWMSDU.mjs} +3 -3
- package/lib/{chunk-KUVBW2U7.mjs → chunk-THX2YDD5.mjs} +1 -1
- package/lib/{chunk-VL2UCFFK.mjs → chunk-TXKGISWW.mjs} +2 -2
- package/lib/{chunk-NE4WGXUM.mjs → chunk-TZFHL54Q.mjs} +1 -1
- package/lib/{chunk-QTEMHSK5.mjs → chunk-UIJLFZYF.mjs} +1 -1
- package/lib/{chunk-5NJMUSWY.mjs → chunk-UMCBNLSL.mjs} +1 -1
- package/lib/{chunk-DWZ232Q2.mjs → chunk-UQSQUPSK.mjs} +2 -2
- package/lib/chunk-UZO5VCH2.mjs +1 -0
- package/lib/{chunk-TPXCSXWT.mjs → chunk-VXYPRBJB.mjs} +3 -3
- package/lib/{chunk-5DY6WPCA.mjs → chunk-WWBPXBJT.mjs} +2 -2
- package/lib/{chunk-7TEPMZRL.mjs → chunk-XRN2HE4L.mjs} +1 -1
- package/lib/{chunk-23RKW2TY.mjs → chunk-Z44CCSOP.mjs} +1 -1
- package/lib/{chunk-JDLZGLZJ.mjs → chunk-Z7AZ74DI.mjs} +2 -2
- package/lib/components/accordion/index.mjs +3 -3
- package/lib/components/accordion/index.native.js +54 -37
- package/lib/components/accordion/index.native.mjs +9 -6
- package/lib/components/accordion/item/AccordionItem.native.js +48 -31
- package/lib/components/accordion/item/AccordionItem.native.mjs +6 -3
- package/lib/components/accordion/item/index.native.js +48 -31
- package/lib/components/accordion/item/index.native.mjs +6 -3
- package/lib/components/alert/Alert.mjs +2 -2
- package/lib/components/alert/Alert.native.js +138 -115
- package/lib/components/alert/Alert.native.mjs +19 -16
- package/lib/components/alert/index.mjs +2 -2
- package/lib/components/alert/index.native.js +138 -115
- package/lib/components/alert/index.native.mjs +19 -16
- package/lib/components/autocomplete/AutoComplete.mjs +15 -15
- package/lib/components/autocomplete/AutoComplete.native.js +158 -142
- package/lib/components/autocomplete/AutoComplete.native.mjs +21 -18
- package/lib/components/autocomplete/index.mjs +17 -17
- package/lib/components/autocomplete/index.native.js +166 -150
- package/lib/components/autocomplete/index.native.mjs +26 -23
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js +67 -87
- package/lib/components/autocomplete/item/AutoCompleteIem.native.mjs +7 -5
- package/lib/components/autocomplete/item/AutoCompleteItem.mjs +1 -1
- package/lib/components/autocomplete/item/index.mjs +2 -2
- package/lib/components/autocomplete/item/index.native.js +67 -87
- package/lib/components/autocomplete/item/index.native.mjs +7 -5
- package/lib/components/autocomplete/menu/AutoCompleteMenu.mjs +1 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js +118 -102
- 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 +118 -102
- 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.mjs +3 -3
- package/lib/components/autolayout/index.native.mjs +3 -3
- package/lib/components/badge/Badge.mjs +1 -1
- package/lib/components/badge/Badge.native.js +37 -20
- package/lib/components/badge/Badge.native.mjs +16 -13
- package/lib/components/badge/index.mjs +1 -1
- package/lib/components/badge/index.native.js +37 -20
- package/lib/components/badge/index.native.mjs +16 -13
- package/lib/components/box/Box.native.js +34 -16
- package/lib/components/box/Box.native.mjs +5 -2
- package/lib/components/box/content/BoxContent.mjs +1 -1
- package/lib/components/box/content/index.mjs +1 -1
- package/lib/components/box/footer/BoxFooter.mjs +1 -1
- package/lib/components/box/footer/BoxFooter.native.js +34 -17
- package/lib/components/box/footer/BoxFooter.native.mjs +15 -12
- package/lib/components/box/footer/index.mjs +1 -1
- package/lib/components/box/footer/index.native.js +34 -17
- package/lib/components/box/footer/index.native.mjs +15 -12
- package/lib/components/box/header/BoxHeader.mjs +1 -1
- package/lib/components/box/header/BoxHeader.native.mjs +2 -2
- package/lib/components/box/header/index.mjs +1 -1
- package/lib/components/box/header/index.native.mjs +2 -2
- package/lib/components/box/index.mjs +9 -9
- package/lib/components/box/index.native.js +75 -49
- package/lib/components/box/index.native.mjs +22 -19
- package/lib/components/breadcrumb/Breadcrumb.native.js +34 -17
- package/lib/components/breadcrumb/Breadcrumb.native.mjs +6 -3
- package/lib/components/breadcrumb/index.mjs +1 -1
- package/lib/components/breadcrumb/index.native.js +94 -78
- package/lib/components/breadcrumb/index.native.mjs +9 -6
- package/lib/components/breadcrumb/item/BreadcrumbItem.mjs +1 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +71 -91
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.mjs +7 -5
- package/lib/components/breadcrumb/item/index.mjs +1 -1
- package/lib/components/breadcrumb/item/index.native.js +71 -91
- package/lib/components/breadcrumb/item/index.native.mjs +7 -5
- package/lib/components/button/Button.mjs +1 -1
- package/lib/components/button/Button.native.js +50 -33
- package/lib/components/button/Button.native.mjs +16 -13
- package/lib/components/button/index.mjs +1 -1
- package/lib/components/button/index.native.js +53 -36
- package/lib/components/button/index.native.mjs +16 -13
- package/lib/components/button/list/ButtonList.mjs +1 -1
- package/lib/components/button/list/index.mjs +1 -1
- package/lib/components/calendar/Calendar.js +15 -3
- package/lib/components/calendar/Calendar.mjs +15 -15
- 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 +945 -3
- package/lib/components/calendar/Calendar.native.mjs +23 -1
- package/lib/components/calendar/index.js +15 -3
- package/lib/components/calendar/index.mjs +15 -15
- package/lib/components/calendar/index.native.js +943 -3
- package/lib/components/calendar/index.native.mjs +23 -1
- package/lib/components/card/Card.native.js +33 -43
- package/lib/components/card/Card.native.mjs +5 -3
- package/lib/components/card/content/CardContent.native.js +39 -49
- package/lib/components/card/content/CardContent.native.mjs +6 -4
- package/lib/components/card/content/index.native.js +39 -49
- package/lib/components/card/content/index.native.mjs +6 -4
- package/lib/components/card/image/CardImage.native.js +44 -54
- package/lib/components/card/image/CardImage.native.mjs +6 -4
- package/lib/components/card/image/index.native.js +44 -54
- 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 +50 -60
- package/lib/components/card/index.native.mjs +7 -5
- package/lib/components/checkbox/Checkbox.native.js +92 -76
- package/lib/components/checkbox/Checkbox.native.mjs +8 -5
- package/lib/components/checkbox/index.mjs +15 -15
- package/lib/components/checkbox/index.native.js +139 -123
- package/lib/components/checkbox/index.native.mjs +25 -22
- package/lib/components/checkbox/list/CheckboxList.mjs +12 -12
- package/lib/components/checkbox/list/CheckboxList.native.js +71 -91
- package/lib/components/checkbox/list/CheckboxList.native.mjs +10 -8
- package/lib/components/checkbox/list/index.mjs +12 -12
- package/lib/components/checkbox/list/index.native.js +71 -91
- package/lib/components/checkbox/list/index.native.mjs +10 -8
- package/lib/components/checkbox/tiles/tile/CheckboxTile.mjs +12 -12
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.js +107 -91
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.mjs +18 -15
- package/lib/components/checkbox/tiles/tile/index.mjs +12 -12
- package/lib/components/checkbox/tiles/tile/index.native.js +107 -91
- package/lib/components/checkbox/tiles/tile/index.native.mjs +18 -15
- package/lib/components/chips/Chips.native.js +125 -109
- package/lib/components/chips/Chips.native.mjs +8 -5
- package/lib/components/chips/index.native.js +125 -109
- package/lib/components/chips/index.native.mjs +8 -5
- package/lib/components/columns/column/Column.native.js +40 -23
- package/lib/components/columns/column/Column.native.mjs +15 -12
- package/lib/components/columns/column/index.native.js +40 -23
- package/lib/components/columns/column/index.native.mjs +15 -12
- package/lib/components/columns/index.native.js +40 -23
- package/lib/components/columns/index.native.mjs +15 -12
- package/lib/components/countdown/Countdown.native.js +74 -94
- package/lib/components/countdown/Countdown.native.mjs +7 -5
- package/lib/components/countdown/index.native.js +74 -94
- package/lib/components/countdown/index.native.mjs +7 -5
- package/lib/components/datepicker/DatePicker.js +15 -3
- package/lib/components/datepicker/DatePicker.mjs +17 -17
- 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 +1248 -3
- package/lib/components/datepicker/DatePicker.native.mjs +26 -1
- package/lib/components/datepicker/index.js +15 -3
- package/lib/components/datepicker/index.mjs +17 -17
- package/lib/components/datepicker/index.native.js +1247 -4
- package/lib/components/datepicker/index.native.mjs +26 -1
- package/lib/components/divider/Divider.mjs +1 -1
- package/lib/components/divider/Divider.native.js +98 -82
- package/lib/components/divider/Divider.native.mjs +8 -5
- package/lib/components/divider/index.mjs +1 -1
- package/lib/components/divider/index.native.js +98 -82
- package/lib/components/divider/index.native.mjs +8 -5
- package/lib/components/fab/Fab.mjs +1 -1
- package/lib/components/fab/Fab.native.js +92 -76
- package/lib/components/fab/Fab.native.mjs +17 -14
- package/lib/components/fab/index.mjs +1 -1
- package/lib/components/fab/index.native.js +92 -76
- package/lib/components/fab/index.native.mjs +17 -14
- package/lib/components/flex-box/FlexBox.native.js +53 -36
- package/lib/components/flex-box/FlexBox.native.mjs +15 -12
- package/lib/components/flex-box/index.native.js +59 -42
- package/lib/components/flex-box/index.native.mjs +15 -12
- package/lib/components/hero/Hero.native.js +87 -61
- package/lib/components/hero/Hero.native.mjs +20 -17
- package/lib/components/hero/index.native.js +87 -61
- package/lib/components/hero/index.native.mjs +20 -17
- package/lib/components/icon/Icon.mjs +1 -1
- package/lib/components/icon/Icon.native.js +30 -13
- package/lib/components/icon/Icon.native.mjs +5 -2
- package/lib/components/icon/index.mjs +1 -1
- package/lib/components/icon/index.native.js +30 -13
- package/lib/components/icon/index.native.mjs +5 -2
- package/lib/components/image/Image.mjs +12 -12
- package/lib/components/image/index.mjs +12 -12
- package/lib/components/index.d.mts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +144 -123
- package/lib/components/index.mjs +85 -79
- package/lib/components/index.native.js +1926 -968
- package/lib/components/index.native.mjs +120 -117
- package/lib/components/input/Input.mjs +12 -12
- package/lib/components/input/Input.native.js +143 -127
- package/lib/components/input/Input.native.mjs +18 -15
- package/lib/components/input/gauge/InputGauge.mjs +12 -12
- package/lib/components/input/gauge/InputGauge.native.js +108 -92
- package/lib/components/input/gauge/InputGauge.native.mjs +17 -14
- package/lib/components/input/gauge/hook/useGauge.mjs +12 -12
- package/lib/components/input/gauge/hook/useGauge.native.js +44 -27
- package/lib/components/input/gauge/hook/useGauge.native.mjs +15 -12
- package/lib/components/input/index.mjs +12 -12
- package/lib/components/input/index.native.js +143 -127
- package/lib/components/input/index.native.mjs +18 -15
- package/lib/components/link/Link.mjs +1 -1
- package/lib/components/link/Link.native.js +37 -20
- package/lib/components/link/Link.native.mjs +6 -3
- package/lib/components/link/index.mjs +1 -1
- package/lib/components/link/index.native.js +37 -20
- package/lib/components/link/index.native.mjs +6 -3
- package/lib/components/list/index.mjs +12 -12
- package/lib/components/list/index.native.js +95 -79
- package/lib/components/list/index.native.mjs +18 -15
- package/lib/components/list/item/ListItem.mjs +12 -12
- package/lib/components/list/item/ListItem.native.js +97 -81
- package/lib/components/list/item/ListItem.native.mjs +17 -14
- package/lib/components/list/item/description/ListItemDescription.mjs +1 -1
- package/lib/components/list/item/description/ListItemDescription.native.js +125 -109
- package/lib/components/list/item/description/ListItemDescription.native.mjs +17 -14
- package/lib/components/list/item/description/index.mjs +1 -1
- package/lib/components/list/item/description/index.native.js +125 -109
- package/lib/components/list/item/description/index.native.mjs +17 -14
- package/lib/components/list/item/index.mjs +12 -12
- package/lib/components/list/item/index.native.js +97 -81
- package/lib/components/list/item/index.native.mjs +18 -15
- package/lib/components/modal/Modal.mjs +2 -2
- package/lib/components/modal/Modal.native.js +81 -57
- package/lib/components/modal/Modal.native.mjs +18 -15
- package/lib/components/modal/body/ModalBody.mjs +1 -1
- package/lib/components/modal/body/ModalBody.native.js +38 -21
- package/lib/components/modal/body/ModalBody.native.mjs +15 -12
- package/lib/components/modal/body/index.native.js +38 -21
- package/lib/components/modal/body/index.native.mjs +15 -12
- package/lib/components/modal/footer/ModalFooter.mjs +1 -1
- package/lib/components/modal/footer/ModalFooter.native.js +82 -58
- package/lib/components/modal/footer/ModalFooter.native.mjs +18 -15
- package/lib/components/modal/footer/index.native.js +82 -58
- package/lib/components/modal/footer/index.native.mjs +18 -15
- package/lib/components/modal/index.mjs +2 -2
- package/lib/components/modal/index.native.js +91 -67
- package/lib/components/modal/index.native.mjs +22 -19
- package/lib/components/otp/Otp.mjs +1 -1
- package/lib/components/otp/Otp.native.js +112 -89
- package/lib/components/otp/Otp.native.mjs +19 -16
- package/lib/components/otp/index.mjs +1 -1
- package/lib/components/otp/index.native.js +112 -89
- package/lib/components/otp/index.native.mjs +19 -16
- package/lib/components/pagination/Pagination.mjs +1 -1
- package/lib/components/pagination/Pagination.native.js +100 -84
- package/lib/components/pagination/Pagination.native.mjs +8 -5
- package/lib/components/pagination/index.mjs +1 -1
- package/lib/components/pagination/index.native.js +100 -84
- package/lib/components/pagination/index.native.mjs +8 -5
- package/lib/components/popover/Popover.native.js +38 -21
- package/lib/components/popover/Popover.native.mjs +15 -12
- package/lib/components/popover/index.native.js +38 -21
- package/lib/components/popover/index.native.mjs +15 -12
- package/lib/components/price/Price.mjs +12 -12
- package/lib/components/price/Price.native.js +39 -22
- package/lib/components/price/Price.native.mjs +16 -13
- package/lib/components/price/index.mjs +12 -12
- package/lib/components/price/index.native.js +39 -22
- package/lib/components/price/index.native.mjs +16 -13
- package/lib/components/product-tour/ProductTour.mjs +1 -1
- package/lib/components/product-tour/index.mjs +1 -1
- package/lib/components/progress/Progress.mjs +12 -12
- package/lib/components/progress/Progress.native.js +128 -112
- package/lib/components/progress/Progress.native.mjs +17 -14
- package/lib/components/progress/index.mjs +17 -17
- package/lib/components/progress/index.native.js +158 -135
- package/lib/components/progress/index.native.mjs +21 -18
- package/lib/components/progress/item/ProgressItem.mjs +12 -12
- package/lib/components/progress/item/index.mjs +12 -12
- package/lib/components/progress/radial/ProgressRadial.mjs +2 -2
- package/lib/components/progress/radial/ProgressRadial.native.js +137 -114
- package/lib/components/progress/radial/ProgressRadial.native.mjs +17 -14
- package/lib/components/progress/radial/index.mjs +2 -2
- package/lib/components/progress/radial/index.native.js +137 -114
- package/lib/components/progress/radial/index.native.mjs +17 -14
- package/lib/components/progress/radial/item/ProgressRadialtem.mjs +1 -1
- package/lib/components/progress/radial/item/index.mjs +1 -1
- package/lib/components/radio/Radio.native.js +116 -100
- package/lib/components/radio/Radio.native.mjs +17 -14
- package/lib/components/radio/index.mjs +13 -13
- package/lib/components/radio/index.native.js +131 -115
- package/lib/components/radio/index.native.mjs +23 -20
- package/lib/components/radio/list/RadioList.mjs +12 -12
- package/lib/components/radio/list/RadioList.native.mjs +5 -5
- package/lib/components/radio/list/index.mjs +12 -12
- package/lib/components/radio/list/index.native.mjs +5 -5
- package/lib/components/radio/tiles/RadioTiles.mjs +12 -12
- package/lib/components/radio/tiles/index.mjs +12 -12
- package/lib/components/radio/tiles/tile/RadioTile.mjs +12 -12
- package/lib/components/radio/tiles/tile/RadioTile.native.js +101 -85
- package/lib/components/radio/tiles/tile/RadioTile.native.mjs +18 -15
- package/lib/components/radio/tiles/tile/index.mjs +12 -12
- package/lib/components/radio/tiles/tile/index.native.js +101 -85
- package/lib/components/radio/tiles/tile/index.native.mjs +18 -15
- package/lib/components/range/Range.mjs +12 -12
- package/lib/components/range/Range.native.js +95 -79
- package/lib/components/range/Range.native.mjs +17 -14
- package/lib/components/range/index.mjs +12 -12
- package/lib/components/range/index.native.js +95 -79
- package/lib/components/range/index.native.mjs +17 -14
- package/lib/components/rows/Rows.mjs +1 -1
- package/lib/components/rows/index.mjs +1 -1
- package/lib/components/rows/row/Row.mjs +1 -1
- package/lib/components/rows/row/index.mjs +1 -1
- package/lib/components/scroll-view/ScrollView.mjs +12 -12
- package/lib/components/scroll-view/ScrollView.native.js +42 -25
- package/lib/components/scroll-view/ScrollView.native.mjs +15 -12
- package/lib/components/scroll-view/index.mjs +12 -12
- package/lib/components/scroll-view/index.native.js +42 -25
- package/lib/components/scroll-view/index.native.mjs +15 -12
- package/lib/components/section/Section.mjs +12 -12
- package/lib/components/section/Section.native.js +36 -19
- package/lib/components/section/Section.native.mjs +15 -12
- package/lib/components/section/index.mjs +12 -12
- package/lib/components/section/index.native.js +36 -19
- package/lib/components/section/index.native.mjs +15 -12
- package/lib/components/segment-control/SegmentControl.mjs +12 -12
- package/lib/components/segment-control/SegmentControl.native.js +136 -120
- package/lib/components/segment-control/SegmentControl.native.mjs +18 -15
- package/lib/components/segment-control/index.mjs +12 -12
- package/lib/components/segment-control/index.native.js +142 -126
- package/lib/components/segment-control/index.native.mjs +18 -15
- package/lib/components/segment-control/item/SegmentControlItem.mjs +1 -1
- package/lib/components/segment-control/item/index.mjs +1 -1
- package/lib/components/select/Select.mjs +14 -14
- package/lib/components/select/Select.native.js +228 -205
- package/lib/components/select/Select.native.mjs +26 -23
- package/lib/components/select/index.mjs +14 -14
- package/lib/components/select/index.native.js +228 -205
- package/lib/components/select/index.native.mjs +26 -23
- package/lib/components/select/option/SelectOption.mjs +1 -1
- package/lib/components/select/option/SelectOption.native.js +102 -86
- package/lib/components/select/option/SelectOption.native.mjs +17 -14
- package/lib/components/select/option/index.mjs +1 -1
- package/lib/components/select/option/index.native.js +102 -86
- package/lib/components/select/option/index.native.mjs +18 -15
- package/lib/components/select/web/SelectDynamic.mjs +12 -12
- package/lib/components/select/web/SelectNative.mjs +14 -14
- package/lib/components/select/web/index.mjs +15 -15
- package/lib/components/skeleton/Skeleton.d.mts +4 -0
- package/lib/components/skeleton/Skeleton.d.ts +4 -0
- package/lib/components/skeleton/Skeleton.js +41 -0
- package/lib/components/skeleton/Skeleton.mjs +8 -0
- package/lib/components/skeleton/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 +47 -0
- package/lib/components/skeleton/index.mjs +10 -0
- package/lib/components/skeleton/index.native.d.mts +3 -0
- package/lib/components/skeleton/index.native.d.ts +3 -0
- package/lib/components/skeleton/index.native.js +125 -0
- package/lib/components/skeleton/index.native.mjs +9 -0
- package/lib/components/stepper/Stepper.mjs +1 -1
- package/lib/components/stepper/Stepper.native.js +92 -76
- package/lib/components/stepper/Stepper.native.mjs +17 -14
- package/lib/components/stepper/index.mjs +1 -1
- package/lib/components/stepper/index.native.js +97 -81
- package/lib/components/stepper/index.native.mjs +17 -14
- package/lib/components/stepper/step/Step.mjs +1 -1
- package/lib/components/stepper/step/Step.native.js +36 -19
- 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 +36 -19
- package/lib/components/stepper/step/index.native.mjs +15 -12
- package/lib/components/sticker/Sticker.mjs +12 -12
- package/lib/components/sticker/Sticker.native.js +89 -73
- package/lib/components/sticker/Sticker.native.mjs +17 -14
- package/lib/components/sticker/index.mjs +12 -12
- package/lib/components/sticker/index.native.js +89 -73
- package/lib/components/sticker/index.native.mjs +17 -14
- package/lib/components/switch/Switch.mjs +12 -12
- package/lib/components/switch/Switch.native.js +37 -20
- package/lib/components/switch/Switch.native.mjs +15 -12
- package/lib/components/switch/index.mjs +12 -12
- package/lib/components/switch/index.native.js +37 -20
- package/lib/components/switch/index.native.mjs +15 -12
- package/lib/components/table/Table.native.js +34 -17
- package/lib/components/table/Table.native.mjs +15 -12
- package/lib/components/table/index.mjs +8 -8
- package/lib/components/table/index.native.js +116 -100
- package/lib/components/table/index.native.mjs +22 -19
- package/lib/components/table/td/TableTd.native.js +34 -17
- package/lib/components/table/td/TableTd.native.mjs +15 -12
- package/lib/components/table/td/index.native.js +34 -17
- package/lib/components/table/td/index.native.mjs +15 -12
- package/lib/components/table/th/TableTh.native.js +124 -108
- package/lib/components/table/th/TableTh.native.mjs +17 -14
- package/lib/components/table/th/index.native.js +124 -108
- package/lib/components/table/th/index.native.mjs +17 -14
- package/lib/components/table/tr/TableTr.native.js +101 -85
- package/lib/components/table/tr/TableTr.native.mjs +17 -14
- package/lib/components/table/tr/index.native.js +101 -85
- package/lib/components/table/tr/index.native.mjs +17 -14
- package/lib/components/tabs/index.mjs +8 -8
- package/lib/components/tabs/index.native.js +128 -112
- package/lib/components/tabs/index.native.mjs +23 -20
- package/lib/components/tabs/tab-list/TabList.mjs +1 -1
- package/lib/components/tabs/tab-list/TabList.native.js +118 -102
- package/lib/components/tabs/tab-list/TabList.native.mjs +18 -15
- package/lib/components/tabs/tab-list/index.mjs +1 -1
- package/lib/components/tabs/tab-list/index.native.js +118 -102
- package/lib/components/tabs/tab-list/index.native.mjs +18 -15
- package/lib/components/tabs/tab-list/tab/Tab.mjs +1 -1
- package/lib/components/tabs/tab-list/tab/Tab.native.js +96 -80
- package/lib/components/tabs/tab-list/tab/Tab.native.mjs +8 -5
- package/lib/components/tabs/tab-list/tab/index.mjs +1 -1
- package/lib/components/tabs/tab-list/tab/index.native.js +96 -80
- package/lib/components/tabs/tab-list/tab/index.native.mjs +8 -5
- package/lib/components/tabs/tab-panels/TabPanels.native.js +37 -20
- package/lib/components/tabs/tab-panels/TabPanels.native.mjs +15 -12
- package/lib/components/tabs/tab-panels/index.native.js +37 -20
- package/lib/components/tabs/tab-panels/index.native.mjs +15 -12
- package/lib/components/tag/Tag.mjs +1 -1
- package/lib/components/tag/Tag.native.js +34 -17
- package/lib/components/tag/Tag.native.mjs +6 -3
- package/lib/components/tag/index.mjs +12 -12
- package/lib/components/tag/index.native.js +37 -20
- package/lib/components/tag/index.native.mjs +6 -3
- package/lib/components/tag/list/TagList.mjs +12 -12
- package/lib/components/tag/list/index.mjs +12 -12
- package/lib/components/text/Text.native.js +63 -83
- package/lib/components/text/Text.native.mjs +6 -4
- package/lib/components/text/index.native.js +61 -83
- package/lib/components/text/index.native.mjs +6 -4
- package/lib/components/textarea/Textarea.mjs +12 -12
- package/lib/components/textarea/Textarea.native.js +98 -82
- package/lib/components/textarea/Textarea.native.mjs +17 -14
- package/lib/components/textarea/index.mjs +12 -12
- package/lib/components/textarea/index.native.js +98 -82
- package/lib/components/textarea/index.native.mjs +17 -14
- package/lib/components/timeline/Timeline.mjs +1 -1
- package/lib/components/timeline/content/TimelineContent.mjs +1 -1
- package/lib/components/timeline/content/TimelineContent.native.js +108 -92
- package/lib/components/timeline/content/TimelineContent.native.mjs +21 -18
- package/lib/components/timeline/content/index.mjs +1 -1
- package/lib/components/timeline/content/index.native.js +108 -92
- package/lib/components/timeline/content/index.native.mjs +21 -18
- package/lib/components/timeline/index.mjs +6 -6
- package/lib/components/timeline/index.native.js +114 -98
- package/lib/components/timeline/index.native.mjs +23 -20
- package/lib/components/timeline/item/TimelineItem.mjs +1 -1
- package/lib/components/timeline/item/index.mjs +1 -1
- package/lib/components/timeline/marker/TimelineMarker.mjs +1 -1
- package/lib/components/timeline/marker/TimelineMarker.native.js +51 -34
- package/lib/components/timeline/marker/TimelineMarker.native.mjs +16 -13
- package/lib/components/timeline/marker/index.mjs +1 -1
- package/lib/components/timeline/marker/index.native.js +51 -34
- package/lib/components/timeline/marker/index.native.mjs +17 -14
- package/lib/components/title/Title.native.js +75 -51
- package/lib/components/title/Title.native.mjs +16 -13
- package/lib/components/title/index.mjs +1 -1
- package/lib/components/title/index.native.js +75 -51
- package/lib/components/title/index.native.mjs +17 -14
- package/lib/components/view/View.mjs +12 -12
- package/lib/components/view/View.native.js +38 -21
- package/lib/components/view/View.native.mjs +15 -12
- package/lib/components/view/index.mjs +12 -12
- package/lib/components/view/index.native.js +38 -21
- 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/helpers/index.mjs +3 -3
- package/lib/helpers/index.native.mjs +3 -3
- package/lib/index.js +150 -129
- package/lib/index.mjs +94 -88
- package/lib/index.native.js +1932 -974
- package/lib/index.native.mjs +129 -126
- package/lib/objects/Typography/index.mjs +3 -3
- package/lib/objects/Typography/index.native.mjs +3 -3
- package/lib/objects/facets/Status/index.mjs +1 -1
- package/lib/objects/facets/Status/index.native.js +30 -13
- package/lib/objects/facets/Status/index.native.mjs +5 -2
- package/lib/objects/facets/index.mjs +13 -13
- package/lib/objects/facets/index.native.js +30 -13
- package/lib/objects/facets/index.native.mjs +17 -14
- package/lib/objects/index.mjs +17 -17
- package/lib/objects/index.native.js +32 -15
- package/lib/objects/index.native.mjs +20 -17
- package/lib/version.d.mts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.mjs +1 -1
- package/package.json +1 -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_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,17 @@ 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.tsx
|
|
5927
|
+
var import_react45 = __toESM(require("react"));
|
|
5928
|
+
var Skeleton = () => {
|
|
5929
|
+
return /* @__PURE__ */ import_react45.default.createElement("div", null);
|
|
5930
|
+
};
|
|
5931
|
+
var Skeleton_default = Skeleton;
|
|
5932
|
+
|
|
5913
5933
|
// components/spacer/Spacer.tsx
|
|
5914
5934
|
var import_clsx77 = __toESM(require("clsx"));
|
|
5915
|
-
var
|
|
5916
|
-
var Spacer =
|
|
5935
|
+
var React87 = __toESM(require("react"));
|
|
5936
|
+
var Spacer = React87.forwardRef(({ size: size2, horizontal, className, id }, ref) => {
|
|
5917
5937
|
const { styled } = useTrilogyContext();
|
|
5918
5938
|
const styles = {
|
|
5919
5939
|
spacer: {
|
|
@@ -5922,24 +5942,24 @@ var Spacer = React86.forwardRef(({ size: size2, horizontal, className, id }, ref
|
|
|
5922
5942
|
}
|
|
5923
5943
|
};
|
|
5924
5944
|
const classes = hashClass(styled, (0, import_clsx77.default)(className));
|
|
5925
|
-
return /* @__PURE__ */
|
|
5945
|
+
return /* @__PURE__ */ React87.createElement("div", { ref, id, style: styles.spacer, className: classes });
|
|
5926
5946
|
});
|
|
5927
5947
|
Spacer.displayName = "Spacer" /* Spacer */;
|
|
5928
5948
|
var Spacer_default = Spacer;
|
|
5929
5949
|
|
|
5930
5950
|
// components/stepper/Stepper.tsx
|
|
5931
5951
|
var import_clsx78 = __toESM(require("clsx"));
|
|
5932
|
-
var
|
|
5933
|
-
var Stepper =
|
|
5952
|
+
var React88 = __toESM(require("react"));
|
|
5953
|
+
var Stepper = React88.forwardRef(({ className, id, children, ...others }, ref) => {
|
|
5934
5954
|
const { styled } = useTrilogyContext();
|
|
5935
5955
|
const classes = hashClass(styled, (0, import_clsx78.default)("stepper-wrapper", className));
|
|
5936
|
-
const [currentStep, setCurrentStep] =
|
|
5937
|
-
const nbChild =
|
|
5956
|
+
const [currentStep, setCurrentStep] = React88.useState(1);
|
|
5957
|
+
const nbChild = React88.useMemo(() => {
|
|
5938
5958
|
if (children && Array.isArray(children)) return children.length;
|
|
5939
5959
|
if (children && !Array.isArray(children)) return 1;
|
|
5940
5960
|
return 0;
|
|
5941
5961
|
}, [children]);
|
|
5942
|
-
|
|
5962
|
+
React88.useEffect(() => {
|
|
5943
5963
|
if (children) {
|
|
5944
5964
|
if (Array.isArray(children)) {
|
|
5945
5965
|
let haveCurrentStep = false;
|
|
@@ -5956,15 +5976,15 @@ var Stepper = React87.forwardRef(({ className, id, children, ...others }, ref) =
|
|
|
5956
5976
|
}
|
|
5957
5977
|
}
|
|
5958
5978
|
}, [children]);
|
|
5959
|
-
return /* @__PURE__ */
|
|
5979
|
+
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
5980
|
});
|
|
5961
5981
|
Stepper.displayName = "Stepper" /* Stepper */;
|
|
5962
5982
|
var Stepper_default = Stepper;
|
|
5963
5983
|
|
|
5964
5984
|
// components/stepper/step/Step.tsx
|
|
5965
5985
|
var import_clsx79 = __toESM(require("clsx"));
|
|
5966
|
-
var
|
|
5967
|
-
var Step =
|
|
5986
|
+
var import_react46 = __toESM(require("react"));
|
|
5987
|
+
var Step = import_react46.default.forwardRef(({ className, id, active, current, done, label, iconName, error, ...others }, ref) => {
|
|
5968
5988
|
const { styled } = useTrilogyContext();
|
|
5969
5989
|
const classesStepLabel = hashClass(styled, (0, import_clsx79.default)("step-label"));
|
|
5970
5990
|
const classes = hashClass(
|
|
@@ -5978,7 +5998,7 @@ var Step = import_react45.default.forwardRef(({ className, id, active, current,
|
|
|
5978
5998
|
className
|
|
5979
5999
|
)
|
|
5980
6000
|
);
|
|
5981
|
-
return /* @__PURE__ */
|
|
6001
|
+
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
6002
|
});
|
|
5983
6003
|
Step.displayName = "Step" /* Step */;
|
|
5984
6004
|
var Step_default = Step;
|
|
@@ -5997,10 +6017,10 @@ var step_default = Step_default;
|
|
|
5997
6017
|
|
|
5998
6018
|
// components/switch/Switch.tsx
|
|
5999
6019
|
var import_clsx80 = __toESM(require("clsx"));
|
|
6000
|
-
var
|
|
6001
|
-
var Switch =
|
|
6020
|
+
var import_react47 = __toESM(require("react"));
|
|
6021
|
+
var Switch = import_react47.default.forwardRef(({
|
|
6002
6022
|
className,
|
|
6003
|
-
id =
|
|
6023
|
+
id = import_react47.default.useId(),
|
|
6004
6024
|
label,
|
|
6005
6025
|
value,
|
|
6006
6026
|
checked,
|
|
@@ -6014,23 +6034,23 @@ var Switch = import_react46.default.forwardRef(({
|
|
|
6014
6034
|
fullWidth,
|
|
6015
6035
|
...others
|
|
6016
6036
|
}, ref) => {
|
|
6017
|
-
const [_checked, setChecked] = (0,
|
|
6037
|
+
const [_checked, setChecked] = (0, import_react47.useState)(checked || false);
|
|
6018
6038
|
const { styled } = useTrilogyContext();
|
|
6019
|
-
|
|
6039
|
+
import_react47.default.useEffect(() => {
|
|
6020
6040
|
setChecked(checked || false);
|
|
6021
6041
|
}, [checked]);
|
|
6022
|
-
(0,
|
|
6042
|
+
(0, import_react47.useEffect)(() => {
|
|
6023
6043
|
if (!readonly) {
|
|
6024
6044
|
setChecked(checked || false);
|
|
6025
6045
|
}
|
|
6026
6046
|
}, [checked, readonly]);
|
|
6027
|
-
return /* @__PURE__ */
|
|
6047
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
|
6028
6048
|
"div",
|
|
6029
6049
|
{
|
|
6030
6050
|
ref,
|
|
6031
6051
|
className: hashClass(styled, (0, import_clsx80.default)("switch", reversed && is("reversed"), fullWidth && is("fullwidth"), className))
|
|
6032
6052
|
},
|
|
6033
|
-
/* @__PURE__ */
|
|
6053
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
|
6034
6054
|
"input",
|
|
6035
6055
|
{
|
|
6036
6056
|
onChange: (e) => {
|
|
@@ -6066,14 +6086,14 @@ var Switch = import_react46.default.forwardRef(({
|
|
|
6066
6086
|
...others
|
|
6067
6087
|
}
|
|
6068
6088
|
),
|
|
6069
|
-
/* @__PURE__ */
|
|
6089
|
+
/* @__PURE__ */ import_react47.default.createElement("label", { htmlFor: `switch-${id}` }, label)
|
|
6070
6090
|
);
|
|
6071
6091
|
});
|
|
6072
6092
|
Switch.displayName = "Switch" /* Switch */;
|
|
6073
6093
|
var Switch_default = Switch;
|
|
6074
6094
|
|
|
6075
6095
|
// components/table/Table.tsx
|
|
6076
|
-
var
|
|
6096
|
+
var React91 = __toESM(require("react"));
|
|
6077
6097
|
var import_clsx81 = __toESM(require("clsx"));
|
|
6078
6098
|
|
|
6079
6099
|
// components/table/TableProps.ts
|
|
@@ -6085,7 +6105,7 @@ var TableBorderEnum = /* @__PURE__ */ ((TableBorderEnum2) => {
|
|
|
6085
6105
|
})(TableBorderEnum || {});
|
|
6086
6106
|
|
|
6087
6107
|
// components/table/Table.tsx
|
|
6088
|
-
var Table =
|
|
6108
|
+
var Table = React91.forwardRef(({
|
|
6089
6109
|
className,
|
|
6090
6110
|
id,
|
|
6091
6111
|
fullwidth,
|
|
@@ -6106,15 +6126,15 @@ var Table = React90.forwardRef(({
|
|
|
6106
6126
|
className
|
|
6107
6127
|
)
|
|
6108
6128
|
);
|
|
6109
|
-
return /* @__PURE__ */
|
|
6129
|
+
return /* @__PURE__ */ React91.createElement("table", { ref, id, className: classes, ...others });
|
|
6110
6130
|
});
|
|
6111
6131
|
Table.displayName = "Table" /* Table */;
|
|
6112
6132
|
var Table_default = Table;
|
|
6113
6133
|
|
|
6114
6134
|
// components/table/head/TableHead.tsx
|
|
6115
|
-
var
|
|
6135
|
+
var React92 = __toESM(require("react"));
|
|
6116
6136
|
var import_clsx82 = __toESM(require("clsx"));
|
|
6117
|
-
var TableHead =
|
|
6137
|
+
var TableHead = React92.forwardRef(({ className, id, color, backgroundColor, ...others }, ref) => {
|
|
6118
6138
|
const { styled } = useTrilogyContext();
|
|
6119
6139
|
const classes = hashClass(
|
|
6120
6140
|
styled,
|
|
@@ -6124,7 +6144,7 @@ var TableHead = React91.forwardRef(({ className, id, color, backgroundColor, ...
|
|
|
6124
6144
|
color && is(getColorClassName(color))
|
|
6125
6145
|
)
|
|
6126
6146
|
);
|
|
6127
|
-
return /* @__PURE__ */
|
|
6147
|
+
return /* @__PURE__ */ React92.createElement("thead", { ref, id, className: classes, ...others });
|
|
6128
6148
|
});
|
|
6129
6149
|
TableHead.displayName = "TableHead" /* TableHead */;
|
|
6130
6150
|
var TableHead_default = TableHead;
|
|
@@ -6133,9 +6153,9 @@ var TableHead_default = TableHead;
|
|
|
6133
6153
|
var head_default = TableHead_default;
|
|
6134
6154
|
|
|
6135
6155
|
// components/table/body/TableBody.tsx
|
|
6136
|
-
var
|
|
6156
|
+
var React93 = __toESM(require("react"));
|
|
6137
6157
|
var import_clsx83 = __toESM(require("clsx"));
|
|
6138
|
-
var TableBody =
|
|
6158
|
+
var TableBody = React93.forwardRef(({ className, id, color, backgroundColor, ...others }, ref) => {
|
|
6139
6159
|
const { styled } = useTrilogyContext();
|
|
6140
6160
|
const classes = hashClass(
|
|
6141
6161
|
styled,
|
|
@@ -6145,7 +6165,7 @@ var TableBody = React92.forwardRef(({ className, id, color, backgroundColor, ...
|
|
|
6145
6165
|
color && is(getColorClassName(color))
|
|
6146
6166
|
)
|
|
6147
6167
|
);
|
|
6148
|
-
return /* @__PURE__ */
|
|
6168
|
+
return /* @__PURE__ */ React93.createElement("tbody", { ref, id, className: classes, ...others });
|
|
6149
6169
|
});
|
|
6150
6170
|
TableBody.displayName = "TableBody" /* TableBody */;
|
|
6151
6171
|
var TableBody_default = TableBody;
|
|
@@ -6154,12 +6174,12 @@ var TableBody_default = TableBody;
|
|
|
6154
6174
|
var body_default = TableBody_default;
|
|
6155
6175
|
|
|
6156
6176
|
// components/table/th/TableTh.tsx
|
|
6157
|
-
var
|
|
6177
|
+
var React94 = __toESM(require("react"));
|
|
6158
6178
|
var import_clsx84 = __toESM(require("clsx"));
|
|
6159
|
-
var TableTh =
|
|
6179
|
+
var TableTh = React94.forwardRef(({ className, id, colSpan, rowSpan, ...others }, ref) => {
|
|
6160
6180
|
const { styled } = useTrilogyContext();
|
|
6161
6181
|
const classes = hashClass(styled, (0, import_clsx84.default)(className));
|
|
6162
|
-
return /* @__PURE__ */
|
|
6182
|
+
return /* @__PURE__ */ React94.createElement("th", { ref, id, className: classes, colSpan, rowSpan, ...others });
|
|
6163
6183
|
});
|
|
6164
6184
|
TableTh.displayName = "TableTh" /* TableTh */;
|
|
6165
6185
|
var TableTh_default = TableTh;
|
|
@@ -6168,9 +6188,9 @@ var TableTh_default = TableTh;
|
|
|
6168
6188
|
var th_default = TableTh_default;
|
|
6169
6189
|
|
|
6170
6190
|
// components/table/tr/TableTr.tsx
|
|
6171
|
-
var
|
|
6191
|
+
var React95 = __toESM(require("react"));
|
|
6172
6192
|
var import_clsx85 = __toESM(require("clsx"));
|
|
6173
|
-
var TableTr =
|
|
6193
|
+
var TableTr = React95.forwardRef(({
|
|
6174
6194
|
className,
|
|
6175
6195
|
id,
|
|
6176
6196
|
expandable,
|
|
@@ -6190,7 +6210,7 @@ var TableTr = React94.forwardRef(({
|
|
|
6190
6210
|
color && getColorClassName(color)
|
|
6191
6211
|
)
|
|
6192
6212
|
);
|
|
6193
|
-
return /* @__PURE__ */
|
|
6213
|
+
return /* @__PURE__ */ React95.createElement("tr", { ref, id, className: classes, ...others });
|
|
6194
6214
|
});
|
|
6195
6215
|
TableTr.displayName = "TableTr" /* TableTr */;
|
|
6196
6216
|
var TableTr_default = TableTr;
|
|
@@ -6199,12 +6219,12 @@ var TableTr_default = TableTr;
|
|
|
6199
6219
|
var tr_default = TableTr_default;
|
|
6200
6220
|
|
|
6201
6221
|
// components/table/td/TableTd.tsx
|
|
6202
|
-
var
|
|
6222
|
+
var React96 = __toESM(require("react"));
|
|
6203
6223
|
var import_clsx86 = __toESM(require("clsx"));
|
|
6204
|
-
var TableTd =
|
|
6224
|
+
var TableTd = React96.forwardRef(({ className, id, rowSpan, colSpan, ...others }, ref) => {
|
|
6205
6225
|
const { styled } = useTrilogyContext();
|
|
6206
6226
|
const classes = hashClass(styled, (0, import_clsx86.default)(className));
|
|
6207
|
-
return /* @__PURE__ */
|
|
6227
|
+
return /* @__PURE__ */ React96.createElement("td", { ref, id, className: classes, rowSpan, colSpan, ...others });
|
|
6208
6228
|
});
|
|
6209
6229
|
TableTd.displayName = "TableTd" /* TableTd */;
|
|
6210
6230
|
var TableTd_default = TableTd;
|
|
@@ -6213,8 +6233,8 @@ var TableTd_default = TableTd;
|
|
|
6213
6233
|
var td_default = TableTd_default;
|
|
6214
6234
|
|
|
6215
6235
|
// components/tabs/context/index.tsx
|
|
6216
|
-
var
|
|
6217
|
-
var TabsContext =
|
|
6236
|
+
var import_react48 = __toESM(require("react"));
|
|
6237
|
+
var TabsContext = import_react48.default.createContext({
|
|
6218
6238
|
activeIndex: 0,
|
|
6219
6239
|
inverted: false,
|
|
6220
6240
|
setActiveIndex: () => 0,
|
|
@@ -6225,20 +6245,20 @@ var TabsContext = import_react47.default.createContext({
|
|
|
6225
6245
|
|
|
6226
6246
|
// components/tabs/Tabs.tsx
|
|
6227
6247
|
var import_clsx87 = __toESM(require("clsx"));
|
|
6228
|
-
var
|
|
6229
|
-
var Tabs =
|
|
6248
|
+
var import_react49 = __toESM(require("react"));
|
|
6249
|
+
var Tabs = import_react49.default.forwardRef(
|
|
6230
6250
|
({ children, className, id, activeIndex, fullwidth, inverted, small }, ref) => {
|
|
6231
|
-
const [currentIndex, setCurrentIndex] =
|
|
6232
|
-
const [isInverted, setIsInverted] =
|
|
6251
|
+
const [currentIndex, setCurrentIndex] = import_react49.default.useState(activeIndex || 0);
|
|
6252
|
+
const [isInverted, setIsInverted] = import_react49.default.useState(inverted || false);
|
|
6233
6253
|
const { styled } = useTrilogyContext();
|
|
6234
6254
|
const classes = hashClass(
|
|
6235
6255
|
styled,
|
|
6236
6256
|
(0, import_clsx87.default)("tabs", fullwidth && is("fullwidth"), inverted && is("inverted"), small && is("small"), className)
|
|
6237
6257
|
);
|
|
6238
|
-
|
|
6258
|
+
import_react49.default.useEffect(() => {
|
|
6239
6259
|
activeIndex !== void 0 && setCurrentIndex(activeIndex);
|
|
6240
6260
|
}, [activeIndex]);
|
|
6241
|
-
return /* @__PURE__ */
|
|
6261
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
|
6242
6262
|
TabsContext.Provider,
|
|
6243
6263
|
{
|
|
6244
6264
|
value: {
|
|
@@ -6249,7 +6269,7 @@ var Tabs = import_react48.default.forwardRef(
|
|
|
6249
6269
|
setActiveIndex: setCurrentIndex
|
|
6250
6270
|
}
|
|
6251
6271
|
},
|
|
6252
|
-
/* @__PURE__ */
|
|
6272
|
+
/* @__PURE__ */ import_react49.default.createElement("div", { ref, id, className: classes, "data-tabs-context": "" }, children)
|
|
6253
6273
|
);
|
|
6254
6274
|
}
|
|
6255
6275
|
);
|
|
@@ -6258,16 +6278,16 @@ var Tabs_default = Tabs;
|
|
|
6258
6278
|
|
|
6259
6279
|
// components/tabs/tab-list/tab/Tab.tsx
|
|
6260
6280
|
var import_clsx88 = __toESM(require("clsx"));
|
|
6261
|
-
var
|
|
6262
|
-
var Tab =
|
|
6281
|
+
var import_react50 = __toESM(require("react"));
|
|
6282
|
+
var Tab = import_react50.default.forwardRef(
|
|
6263
6283
|
({ active, className, onClick, routerLink = "a", iconName, label, disabled, testId, ariaControls, ...others }, ref) => {
|
|
6264
6284
|
const { styled } = useTrilogyContext();
|
|
6265
6285
|
const { index, ...props } = others;
|
|
6266
|
-
const { activeIndex, setActiveIndex, small } =
|
|
6286
|
+
const { activeIndex, setActiveIndex, small } = import_react50.default.useContext(TabsContext);
|
|
6267
6287
|
const Tag2 = others.href || others.to ? routerLink : "button";
|
|
6268
|
-
const isActive =
|
|
6288
|
+
const isActive = import_react50.default.useMemo(() => activeIndex === index, [activeIndex, index]);
|
|
6269
6289
|
const classes = hashClass(styled, (0, import_clsx88.default)("tab", className, { "is-active": isActive }));
|
|
6270
|
-
const handleClick =
|
|
6290
|
+
const handleClick = import_react50.default.useCallback(
|
|
6271
6291
|
(e) => {
|
|
6272
6292
|
if (!disabled) {
|
|
6273
6293
|
if (!others.href && !others.to) setActiveIndex(index);
|
|
@@ -6276,10 +6296,10 @@ var Tab = import_react49.default.forwardRef(
|
|
|
6276
6296
|
},
|
|
6277
6297
|
[disabled, onClick, index, setActiveIndex]
|
|
6278
6298
|
);
|
|
6279
|
-
|
|
6299
|
+
import_react50.default.useEffect(() => {
|
|
6280
6300
|
if (active) setActiveIndex(index);
|
|
6281
6301
|
}, [active, setActiveIndex, index]);
|
|
6282
|
-
return /* @__PURE__ */
|
|
6302
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
|
6283
6303
|
Tag2,
|
|
6284
6304
|
{
|
|
6285
6305
|
ref,
|
|
@@ -6295,8 +6315,8 @@ var Tab = import_react49.default.forwardRef(
|
|
|
6295
6315
|
onClick: handleClick,
|
|
6296
6316
|
...props
|
|
6297
6317
|
},
|
|
6298
|
-
/* @__PURE__ */
|
|
6299
|
-
label && /* @__PURE__ */
|
|
6318
|
+
/* @__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 })),
|
|
6319
|
+
label && /* @__PURE__ */ import_react50.default.createElement(Text_default, null, label)
|
|
6300
6320
|
);
|
|
6301
6321
|
}
|
|
6302
6322
|
);
|
|
@@ -6305,31 +6325,31 @@ var Tab_default = Tab;
|
|
|
6305
6325
|
|
|
6306
6326
|
// components/tabs/tab-list/TabList.tsx
|
|
6307
6327
|
var import_clsx89 = __toESM(require("clsx"));
|
|
6308
|
-
var
|
|
6309
|
-
var TabList =
|
|
6328
|
+
var import_react51 = __toESM(require("react"));
|
|
6329
|
+
var TabList = import_react51.default.forwardRef(
|
|
6310
6330
|
({ children, className, id, testId, align, ...others }, ref) => {
|
|
6311
6331
|
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] =
|
|
6332
|
+
const TabListRef = import_react51.default.useRef(null);
|
|
6333
|
+
const tabRefs = import_react51.default.useRef([]);
|
|
6334
|
+
const { small } = import_react51.default.useContext(TabsContext);
|
|
6335
|
+
import_react51.default.useImperativeHandle(ref, () => TabListRef.current);
|
|
6336
|
+
const [tabsWidth, setTabsWidth] = import_react51.default.useState(0);
|
|
6337
|
+
const [tabListWidth, setTabListWidth] = import_react51.default.useState(0);
|
|
6338
|
+
const [scrollLeft, setScrollLeft] = import_react51.default.useState(0);
|
|
6339
|
+
const [tabFocused, setTabFocused] = import_react51.default.useState(0);
|
|
6320
6340
|
const classes = hashClass(styled, (0, import_clsx89.default)("tab-list", align && is(getAlignClassName(align)), className));
|
|
6321
|
-
const isVisibleArrowLeft = (0,
|
|
6341
|
+
const isVisibleArrowLeft = (0, import_react51.useMemo)(() => {
|
|
6322
6342
|
if (!tabRefs.current.length) return false;
|
|
6323
6343
|
return scrollLeft > tabRefs.current[0].width / 2;
|
|
6324
6344
|
}, [tabRefs, scrollLeft]);
|
|
6325
|
-
const isVisibleArrowRight = (0,
|
|
6345
|
+
const isVisibleArrowRight = (0, import_react51.useMemo)(
|
|
6326
6346
|
() => tabListWidth - tabsWidth - scrollLeft > 5,
|
|
6327
6347
|
[tabListWidth, tabsWidth, scrollLeft]
|
|
6328
6348
|
);
|
|
6329
|
-
const TabElms =
|
|
6330
|
-
return
|
|
6331
|
-
if (!
|
|
6332
|
-
return /* @__PURE__ */
|
|
6349
|
+
const TabElms = import_react51.default.useMemo(() => {
|
|
6350
|
+
return import_react51.default.Children.map(children, (child, index) => {
|
|
6351
|
+
if (!import_react51.default.isValidElement(child)) return false;
|
|
6352
|
+
return /* @__PURE__ */ import_react51.default.createElement(
|
|
6333
6353
|
Tab_default,
|
|
6334
6354
|
{
|
|
6335
6355
|
ref: (el) => tabRefs.current[index] = el == null ? void 0 : el.getBoundingClientRect(),
|
|
@@ -6339,7 +6359,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6339
6359
|
);
|
|
6340
6360
|
});
|
|
6341
6361
|
}, [children, tabRefs]);
|
|
6342
|
-
const scrollWithArrow =
|
|
6362
|
+
const scrollWithArrow = import_react51.default.useCallback(
|
|
6343
6363
|
(direction) => {
|
|
6344
6364
|
var _a;
|
|
6345
6365
|
if (tabRefs.current) {
|
|
@@ -6351,7 +6371,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6351
6371
|
},
|
|
6352
6372
|
[tabRefs.current, tabFocused, TabListRef]
|
|
6353
6373
|
);
|
|
6354
|
-
const handleScrollList =
|
|
6374
|
+
const handleScrollList = import_react51.default.useCallback(
|
|
6355
6375
|
(e) => {
|
|
6356
6376
|
const target = e.target;
|
|
6357
6377
|
const firstGap = tabRefs.current[0].x + (small ? 16 : 24);
|
|
@@ -6363,26 +6383,26 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6363
6383
|
},
|
|
6364
6384
|
[tabRefs, small]
|
|
6365
6385
|
);
|
|
6366
|
-
const onClickPrev =
|
|
6386
|
+
const onClickPrev = import_react51.default.useCallback(() => {
|
|
6367
6387
|
isVisibleArrowLeft && scrollWithArrow(-1);
|
|
6368
6388
|
}, [scrollWithArrow, isVisibleArrowLeft]);
|
|
6369
|
-
const onClickNext =
|
|
6389
|
+
const onClickNext = import_react51.default.useCallback(() => {
|
|
6370
6390
|
isVisibleArrowRight && scrollWithArrow(1);
|
|
6371
6391
|
}, [scrollWithArrow, isVisibleArrowRight]);
|
|
6372
|
-
const setWidths =
|
|
6392
|
+
const setWidths = import_react51.default.useCallback(() => {
|
|
6373
6393
|
if (TabListRef.current) {
|
|
6374
6394
|
setTabsWidth(TabListRef.current.clientWidth);
|
|
6375
6395
|
setTabListWidth(TabListRef.current.scrollWidth);
|
|
6376
6396
|
}
|
|
6377
6397
|
}, [TabListRef]);
|
|
6378
|
-
|
|
6398
|
+
import_react51.default.useEffect(() => {
|
|
6379
6399
|
setWidths();
|
|
6380
6400
|
}, [setWidths, isVisibleArrowLeft, isVisibleArrowRight]);
|
|
6381
|
-
|
|
6401
|
+
import_react51.default.useEffect(() => {
|
|
6382
6402
|
window.addEventListener("resize", setWidths);
|
|
6383
6403
|
return () => window.removeEventListener("resize", setWidths);
|
|
6384
6404
|
}, [TabListRef, setWidths]);
|
|
6385
|
-
return /* @__PURE__ */
|
|
6405
|
+
return /* @__PURE__ */ import_react51.default.createElement(
|
|
6386
6406
|
"div",
|
|
6387
6407
|
{
|
|
6388
6408
|
ref: TabListRef,
|
|
@@ -6393,7 +6413,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6393
6413
|
onScroll: handleScrollList,
|
|
6394
6414
|
...others
|
|
6395
6415
|
},
|
|
6396
|
-
isVisibleArrowLeft && /* @__PURE__ */
|
|
6416
|
+
isVisibleArrowLeft && /* @__PURE__ */ import_react51.default.createElement(
|
|
6397
6417
|
Icon_default,
|
|
6398
6418
|
{
|
|
6399
6419
|
"data-arrow-prev": "",
|
|
@@ -6404,7 +6424,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6404
6424
|
}
|
|
6405
6425
|
),
|
|
6406
6426
|
TabElms,
|
|
6407
|
-
isVisibleArrowRight && /* @__PURE__ */
|
|
6427
|
+
isVisibleArrowRight && /* @__PURE__ */ import_react51.default.createElement(
|
|
6408
6428
|
Icon_default,
|
|
6409
6429
|
{
|
|
6410
6430
|
"data-arrow-next": "",
|
|
@@ -6422,13 +6442,13 @@ var TabList_default = TabList;
|
|
|
6422
6442
|
|
|
6423
6443
|
// components/tabs/tab-panels/tab-panel/TabPanel.tsx
|
|
6424
6444
|
var import_clsx90 = __toESM(require("clsx"));
|
|
6425
|
-
var
|
|
6426
|
-
var TabPanel =
|
|
6445
|
+
var import_react52 = __toESM(require("react"));
|
|
6446
|
+
var TabPanel = import_react52.default.forwardRef(({ children, className, testId, ...others }, ref) => {
|
|
6427
6447
|
const { styled } = useTrilogyContext();
|
|
6428
6448
|
const { index, ...props } = others;
|
|
6429
|
-
const { activeIndex } =
|
|
6449
|
+
const { activeIndex } = import_react52.default.useContext(TabsContext);
|
|
6430
6450
|
const classes = hashClass(styled, (0, import_clsx90.default)("tab-panel", index === activeIndex && is("active"), className));
|
|
6431
|
-
return /* @__PURE__ */
|
|
6451
|
+
return /* @__PURE__ */ import_react52.default.createElement("div", { ref, "data-testid": testId, className: classes, ...props }, children);
|
|
6432
6452
|
});
|
|
6433
6453
|
TabPanel.displayName = "TabPanel" /* TabPanel */;
|
|
6434
6454
|
var TabPanel_default = TabPanel;
|
|
@@ -6438,13 +6458,13 @@ var tab_panel_default = TabPanel_default;
|
|
|
6438
6458
|
|
|
6439
6459
|
// components/tabs/tab-panels/TabPanels.tsx
|
|
6440
6460
|
var import_clsx91 = __toESM(require("clsx"));
|
|
6441
|
-
var
|
|
6442
|
-
var TabPanels =
|
|
6461
|
+
var import_react53 = __toESM(require("react"));
|
|
6462
|
+
var TabPanels = import_react53.default.forwardRef(({ children, className, id, testId, ...others }, ref) => {
|
|
6443
6463
|
const { styled } = useTrilogyContext();
|
|
6444
6464
|
const classes = hashClass(styled, (0, import_clsx91.default)("tab-panels", className));
|
|
6445
|
-
return /* @__PURE__ */
|
|
6446
|
-
if (!
|
|
6447
|
-
return /* @__PURE__ */
|
|
6465
|
+
return /* @__PURE__ */ import_react53.default.createElement("div", { ref, id, "data-testid": testId, className: classes, ...others }, import_react53.default.Children.map(children, (child, index) => {
|
|
6466
|
+
if (!import_react53.default.isValidElement(child)) return false;
|
|
6467
|
+
return /* @__PURE__ */ import_react53.default.createElement(tab_panel_default, { ...child.props, index });
|
|
6448
6468
|
}));
|
|
6449
6469
|
});
|
|
6450
6470
|
TabPanels.displayName = "TabPanels" /* TabPanels */;
|
|
@@ -6452,8 +6472,8 @@ var TabPanels_default = TabPanels;
|
|
|
6452
6472
|
|
|
6453
6473
|
// components/tag/Tag.tsx
|
|
6454
6474
|
var import_clsx92 = __toESM(require("clsx"));
|
|
6455
|
-
var
|
|
6456
|
-
var Tag =
|
|
6475
|
+
var import_react54 = __toESM(require("react"));
|
|
6476
|
+
var Tag = import_react54.default.forwardRef(
|
|
6457
6477
|
({ label, className, id, variant, inverted, small, iconName, ...others }, ref) => {
|
|
6458
6478
|
const { styled } = useTrilogyContext();
|
|
6459
6479
|
const tagClassNames = hashClass(
|
|
@@ -6467,7 +6487,7 @@ var Tag = import_react53.default.forwardRef(
|
|
|
6467
6487
|
)
|
|
6468
6488
|
);
|
|
6469
6489
|
const tagIconClassNames = (0, import_clsx92.default)(variant && is(getColorClassName(variant)));
|
|
6470
|
-
return /* @__PURE__ */
|
|
6490
|
+
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
6491
|
}
|
|
6472
6492
|
);
|
|
6473
6493
|
Tag.displayName = "Tag" /* Tag */;
|
|
@@ -6475,10 +6495,10 @@ var Tag_default = Tag;
|
|
|
6475
6495
|
|
|
6476
6496
|
// components/tag/list/TagList.tsx
|
|
6477
6497
|
var import_clsx93 = __toESM(require("clsx"));
|
|
6478
|
-
var
|
|
6479
|
-
var TagList =
|
|
6498
|
+
var React104 = __toESM(require("react"));
|
|
6499
|
+
var TagList = React104.forwardRef(({ className, id, align, marginless, ...others }, ref) => {
|
|
6480
6500
|
const { styled } = useTrilogyContext();
|
|
6481
|
-
return /* @__PURE__ */
|
|
6501
|
+
return /* @__PURE__ */ React104.createElement(
|
|
6482
6502
|
"div",
|
|
6483
6503
|
{
|
|
6484
6504
|
ref,
|
|
@@ -6508,8 +6528,8 @@ var TagVariant = /* @__PURE__ */ ((TagVariant2) => {
|
|
|
6508
6528
|
|
|
6509
6529
|
// components/textarea/Textarea.tsx
|
|
6510
6530
|
var import_clsx94 = __toESM(require("clsx"));
|
|
6511
|
-
var
|
|
6512
|
-
var Textarea =
|
|
6531
|
+
var import_react55 = __toESM(require("react"));
|
|
6532
|
+
var Textarea = import_react55.default.forwardRef(
|
|
6513
6533
|
({
|
|
6514
6534
|
className,
|
|
6515
6535
|
id,
|
|
@@ -6530,9 +6550,9 @@ var Textarea = import_react54.default.forwardRef(
|
|
|
6530
6550
|
iconNameRight,
|
|
6531
6551
|
...others
|
|
6532
6552
|
}, ref) => {
|
|
6533
|
-
const [value, setValue] = (0,
|
|
6553
|
+
const [value, setValue] = (0, import_react55.useState)(defaultValue || "");
|
|
6534
6554
|
const { styled } = useTrilogyContext();
|
|
6535
|
-
(0,
|
|
6555
|
+
(0, import_react55.useEffect)(() => {
|
|
6536
6556
|
setValue(defaultValue || "");
|
|
6537
6557
|
}, [defaultValue]);
|
|
6538
6558
|
const wrapperClasses = hashClass(styled, (0, import_clsx94.default)("field textarea-wrapper", className, status && is(status)));
|
|
@@ -6543,7 +6563,7 @@ var Textarea = import_react54.default.forwardRef(
|
|
|
6543
6563
|
styled,
|
|
6544
6564
|
(0, import_clsx94.default)("control", iconNameLeft && has("icons-left"), iconNameRight && has("icons-right"))
|
|
6545
6565
|
);
|
|
6546
|
-
return /* @__PURE__ */
|
|
6566
|
+
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
6567
|
"textarea",
|
|
6548
6568
|
{
|
|
6549
6569
|
ref,
|
|
@@ -6566,7 +6586,7 @@ var Textarea = import_react54.default.forwardRef(
|
|
|
6566
6586
|
required,
|
|
6567
6587
|
...others
|
|
6568
6588
|
}
|
|
6569
|
-
), iconNameLeft && /* @__PURE__ */
|
|
6589
|
+
), 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
6590
|
}
|
|
6571
6591
|
);
|
|
6572
6592
|
Textarea.displayName = "Textarea" /* Textarea */;
|
|
@@ -6574,15 +6594,15 @@ var Textarea_default = Textarea;
|
|
|
6574
6594
|
|
|
6575
6595
|
// components/timeline/content/TimelineContent.tsx
|
|
6576
6596
|
var import_clsx95 = __toESM(require("clsx"));
|
|
6577
|
-
var
|
|
6578
|
-
var TimelineContent =
|
|
6597
|
+
var React106 = __toESM(require("react"));
|
|
6598
|
+
var TimelineContent = React106.forwardRef(
|
|
6579
6599
|
({ children, className, id, heading, content, linkLabel, linkTo, ...others }, ref) => {
|
|
6580
6600
|
const { styled } = useTrilogyContext();
|
|
6581
6601
|
const classes = hashClass(styled, (0, import_clsx95.default)("timeline-content", className));
|
|
6582
6602
|
if (children) {
|
|
6583
|
-
return /* @__PURE__ */
|
|
6603
|
+
return /* @__PURE__ */ React106.createElement("div", { ref, id, className: classes, ...others }, children);
|
|
6584
6604
|
}
|
|
6585
|
-
return /* @__PURE__ */
|
|
6605
|
+
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
6606
|
}
|
|
6587
6607
|
);
|
|
6588
6608
|
TimelineContent.displayName = "TimelineContent" /* TimelineContent */;
|
|
@@ -6593,14 +6613,14 @@ var content_default3 = TimelineContent_default;
|
|
|
6593
6613
|
|
|
6594
6614
|
// components/timeline/item/TimelineItem.tsx
|
|
6595
6615
|
var import_clsx96 = __toESM(require("clsx"));
|
|
6596
|
-
var
|
|
6597
|
-
var TimelineItem =
|
|
6616
|
+
var React107 = __toESM(require("react"));
|
|
6617
|
+
var TimelineItem = React107.forwardRef(({ className, id, done, active, cancel, ...others }, ref) => {
|
|
6598
6618
|
const { styled } = useTrilogyContext();
|
|
6599
6619
|
const classes = hashClass(
|
|
6600
6620
|
styled,
|
|
6601
6621
|
(0, import_clsx96.default)("timeline-item", done && "done", active && "active", cancel && "cancel", className)
|
|
6602
6622
|
);
|
|
6603
|
-
return /* @__PURE__ */
|
|
6623
|
+
return /* @__PURE__ */ React107.createElement("div", { ref, id, className: classes, ...others });
|
|
6604
6624
|
});
|
|
6605
6625
|
TimelineItem.displayName = "TimelineItem" /* TimelineItem */;
|
|
6606
6626
|
var TimelineItem_default = TimelineItem;
|
|
@@ -6610,8 +6630,8 @@ var item_default5 = TimelineItem_default;
|
|
|
6610
6630
|
|
|
6611
6631
|
// components/timeline/marker/TimelineMarker.tsx
|
|
6612
6632
|
var import_clsx97 = __toESM(require("clsx"));
|
|
6613
|
-
var
|
|
6614
|
-
var TimelineMarker =
|
|
6633
|
+
var React108 = __toESM(require("react"));
|
|
6634
|
+
var TimelineMarker = React108.forwardRef(({
|
|
6615
6635
|
className,
|
|
6616
6636
|
id,
|
|
6617
6637
|
iconClassname,
|
|
@@ -6621,7 +6641,7 @@ var TimelineMarker = React107.forwardRef(({
|
|
|
6621
6641
|
const { styled } = useTrilogyContext();
|
|
6622
6642
|
const classes = hashClass(styled, (0, import_clsx97.default)("timeline-marker", is("icon"), className));
|
|
6623
6643
|
const iconClasses = (0, import_clsx97.default)(iconClassname);
|
|
6624
|
-
return /* @__PURE__ */
|
|
6644
|
+
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
6645
|
});
|
|
6626
6646
|
TimelineMarker.displayName = "TimelineMarker" /* TimelineMarker */;
|
|
6627
6647
|
var TimelineMarker_default = TimelineMarker;
|
|
@@ -6631,18 +6651,18 @@ var marker_default = TimelineMarker_default;
|
|
|
6631
6651
|
|
|
6632
6652
|
// components/timeline/Timeline.tsx
|
|
6633
6653
|
var import_clsx98 = __toESM(require("clsx"));
|
|
6634
|
-
var
|
|
6635
|
-
var Timeline =
|
|
6654
|
+
var React109 = __toESM(require("react"));
|
|
6655
|
+
var Timeline = React109.forwardRef(({ className, id, horizontal, ...others }, ref) => {
|
|
6636
6656
|
const { styled } = useTrilogyContext();
|
|
6637
6657
|
const classes = hashClass(styled, (0, import_clsx98.default)("timeline", horizontal && is("horizontal"), className));
|
|
6638
|
-
return /* @__PURE__ */
|
|
6658
|
+
return /* @__PURE__ */ React109.createElement("div", { ref, id, className: classes, ...others });
|
|
6639
6659
|
});
|
|
6640
6660
|
Timeline.displayName = "Timeline" /* Timeline */;
|
|
6641
6661
|
var Timeline_default = Timeline;
|
|
6642
6662
|
|
|
6643
6663
|
// components/view/View.tsx
|
|
6644
6664
|
var import_clsx99 = __toESM(require("clsx"));
|
|
6645
|
-
var
|
|
6665
|
+
var React110 = __toESM(require("react"));
|
|
6646
6666
|
|
|
6647
6667
|
// components/view/ViewProps/index.ts
|
|
6648
6668
|
var ViewMarkup = /* @__PURE__ */ ((ViewMarkup2) => {
|
|
@@ -6667,7 +6687,7 @@ var ViewMarkup = /* @__PURE__ */ ((ViewMarkup2) => {
|
|
|
6667
6687
|
})(ViewMarkup || {});
|
|
6668
6688
|
|
|
6669
6689
|
// components/view/View.tsx
|
|
6670
|
-
var View =
|
|
6690
|
+
var View = React110.forwardRef(({
|
|
6671
6691
|
children,
|
|
6672
6692
|
style,
|
|
6673
6693
|
className,
|
|
@@ -6704,7 +6724,7 @@ var View = React109.forwardRef(({
|
|
|
6704
6724
|
className
|
|
6705
6725
|
)
|
|
6706
6726
|
);
|
|
6707
|
-
return /* @__PURE__ */
|
|
6727
|
+
return /* @__PURE__ */ React110.createElement(
|
|
6708
6728
|
Tag2,
|
|
6709
6729
|
{
|
|
6710
6730
|
ref,
|
|
@@ -6859,6 +6879,7 @@ var JustifyContent = /* @__PURE__ */ ((JustifyContent2) => {
|
|
|
6859
6879
|
Select,
|
|
6860
6880
|
SelectOption,
|
|
6861
6881
|
SelectStatus,
|
|
6882
|
+
Skeleton,
|
|
6862
6883
|
Spacer,
|
|
6863
6884
|
SpacerSize,
|
|
6864
6885
|
SpacerSizeValues,
|