@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/index.js
CHANGED
|
@@ -153,6 +153,7 @@ __export(index_exports, {
|
|
|
153
153
|
Select: () => Select_default,
|
|
154
154
|
SelectOption: () => option_default,
|
|
155
155
|
SelectStatus: () => SelectStatus,
|
|
156
|
+
Skeleton: () => Skeleton_default,
|
|
156
157
|
Spacer: () => Spacer_default,
|
|
157
158
|
SpacerSize: () => SpacerSize,
|
|
158
159
|
SpacerSizeValues: () => SpacerSizeValues,
|
|
@@ -3212,7 +3213,15 @@ var SelectStatus = /* @__PURE__ */ ((SelectStatus2) => {
|
|
|
3212
3213
|
})(SelectStatus || {});
|
|
3213
3214
|
|
|
3214
3215
|
// components/calendar/Calendar.tsx
|
|
3215
|
-
var days = [
|
|
3216
|
+
var days = [
|
|
3217
|
+
import_locales3.calendarLocale.days[1],
|
|
3218
|
+
import_locales3.calendarLocale.days[2],
|
|
3219
|
+
import_locales3.calendarLocale.days[3],
|
|
3220
|
+
import_locales3.calendarLocale.days[4],
|
|
3221
|
+
import_locales3.calendarLocale.days[5],
|
|
3222
|
+
import_locales3.calendarLocale.days[6],
|
|
3223
|
+
import_locales3.calendarLocale.days[0]
|
|
3224
|
+
];
|
|
3216
3225
|
var months = [...import_locales3.calendarLocale.months];
|
|
3217
3226
|
var currentDate = /* @__PURE__ */ new Date();
|
|
3218
3227
|
function checkIsRange(date) {
|
|
@@ -3272,7 +3281,7 @@ var Calendar = import_react16.default.forwardRef(
|
|
|
3272
3281
|
const getAllDaysInMonth = import_react16.default.useCallback((year, month) => {
|
|
3273
3282
|
const date = new Date(year, month, 1);
|
|
3274
3283
|
const days2 = [];
|
|
3275
|
-
const firstDayOfMonth = date.getDay();
|
|
3284
|
+
const firstDayOfMonth = (date.getDay() + 6) % 7;
|
|
3276
3285
|
const lastDayOfMonth = new Date(year, month + 1, 0).getDate();
|
|
3277
3286
|
const allDays = [];
|
|
3278
3287
|
for (let i = 0; i < firstDayOfMonth; i++) days2.push(null);
|
|
@@ -3441,9 +3450,13 @@ var Calendar = import_react16.default.forwardRef(
|
|
|
3441
3450
|
}
|
|
3442
3451
|
}, [refsDays.current, refDayFocused.current]);
|
|
3443
3452
|
import_react16.default.useEffect(() => {
|
|
3453
|
+
const prevActiveDate = activeDate;
|
|
3444
3454
|
setActiveDate(value);
|
|
3445
3455
|
if (value instanceof Date) return setVisibleMonth(value);
|
|
3446
|
-
if (!(value instanceof Date) && value[0])
|
|
3456
|
+
if (!(value instanceof Date) && value[0]) {
|
|
3457
|
+
const isNewRangeSelection = !prevActiveDate || Array.isArray(prevActiveDate) && prevActiveDate.length === 0 || Array.isArray(prevActiveDate) && Array.isArray(value) && prevActiveDate.length === 2 && value.length === 1;
|
|
3458
|
+
if (isNewRangeSelection) return setVisibleMonth(value[0]);
|
|
3459
|
+
}
|
|
3447
3460
|
}, [value]);
|
|
3448
3461
|
return /* @__PURE__ */ import_react16.default.createElement(
|
|
3449
3462
|
"table",
|
|
@@ -6245,10 +6258,17 @@ var SegmentControl = import_react44.default.forwardRef(({ className, id, onClick
|
|
|
6245
6258
|
SegmentControl.displayName = "SegmentControl" /* SegmentControl */;
|
|
6246
6259
|
var SegmentControl_default = SegmentControl;
|
|
6247
6260
|
|
|
6261
|
+
// components/skeleton/Skeleton.tsx
|
|
6262
|
+
var import_react45 = __toESM(require("react"));
|
|
6263
|
+
var Skeleton = () => {
|
|
6264
|
+
return /* @__PURE__ */ import_react45.default.createElement("div", null);
|
|
6265
|
+
};
|
|
6266
|
+
var Skeleton_default = Skeleton;
|
|
6267
|
+
|
|
6248
6268
|
// components/spacer/Spacer.tsx
|
|
6249
6269
|
var import_clsx77 = __toESM(require("clsx"));
|
|
6250
|
-
var
|
|
6251
|
-
var Spacer =
|
|
6270
|
+
var React87 = __toESM(require("react"));
|
|
6271
|
+
var Spacer = React87.forwardRef(({ size: size2, horizontal, className, id }, ref) => {
|
|
6252
6272
|
const { styled } = useTrilogyContext();
|
|
6253
6273
|
const styles = {
|
|
6254
6274
|
spacer: {
|
|
@@ -6257,24 +6277,24 @@ var Spacer = React86.forwardRef(({ size: size2, horizontal, className, id }, ref
|
|
|
6257
6277
|
}
|
|
6258
6278
|
};
|
|
6259
6279
|
const classes = hashClass(styled, (0, import_clsx77.default)(className));
|
|
6260
|
-
return /* @__PURE__ */
|
|
6280
|
+
return /* @__PURE__ */ React87.createElement("div", { ref, id, style: styles.spacer, className: classes });
|
|
6261
6281
|
});
|
|
6262
6282
|
Spacer.displayName = "Spacer" /* Spacer */;
|
|
6263
6283
|
var Spacer_default = Spacer;
|
|
6264
6284
|
|
|
6265
6285
|
// components/stepper/Stepper.tsx
|
|
6266
6286
|
var import_clsx78 = __toESM(require("clsx"));
|
|
6267
|
-
var
|
|
6268
|
-
var Stepper =
|
|
6287
|
+
var React88 = __toESM(require("react"));
|
|
6288
|
+
var Stepper = React88.forwardRef(({ className, id, children, ...others }, ref) => {
|
|
6269
6289
|
const { styled } = useTrilogyContext();
|
|
6270
6290
|
const classes = hashClass(styled, (0, import_clsx78.default)("stepper-wrapper", className));
|
|
6271
|
-
const [currentStep, setCurrentStep] =
|
|
6272
|
-
const nbChild =
|
|
6291
|
+
const [currentStep, setCurrentStep] = React88.useState(1);
|
|
6292
|
+
const nbChild = React88.useMemo(() => {
|
|
6273
6293
|
if (children && Array.isArray(children)) return children.length;
|
|
6274
6294
|
if (children && !Array.isArray(children)) return 1;
|
|
6275
6295
|
return 0;
|
|
6276
6296
|
}, [children]);
|
|
6277
|
-
|
|
6297
|
+
React88.useEffect(() => {
|
|
6278
6298
|
if (children) {
|
|
6279
6299
|
if (Array.isArray(children)) {
|
|
6280
6300
|
let haveCurrentStep = false;
|
|
@@ -6291,15 +6311,15 @@ var Stepper = React87.forwardRef(({ className, id, children, ...others }, ref) =
|
|
|
6291
6311
|
}
|
|
6292
6312
|
}
|
|
6293
6313
|
}, [children]);
|
|
6294
|
-
return /* @__PURE__ */
|
|
6314
|
+
return /* @__PURE__ */ React88.createElement("div", { ref, id, className: classes, ...others }, children, /* @__PURE__ */ React88.createElement("div", { className: "step-count" }, /* @__PURE__ */ React88.createElement(Text_default, null, currentStep, "/", nbChild)));
|
|
6295
6315
|
});
|
|
6296
6316
|
Stepper.displayName = "Stepper" /* Stepper */;
|
|
6297
6317
|
var Stepper_default = Stepper;
|
|
6298
6318
|
|
|
6299
6319
|
// components/stepper/step/Step.tsx
|
|
6300
6320
|
var import_clsx79 = __toESM(require("clsx"));
|
|
6301
|
-
var
|
|
6302
|
-
var Step =
|
|
6321
|
+
var import_react46 = __toESM(require("react"));
|
|
6322
|
+
var Step = import_react46.default.forwardRef(({ className, id, active, current, done, label, iconName, error, ...others }, ref) => {
|
|
6303
6323
|
const { styled } = useTrilogyContext();
|
|
6304
6324
|
const classesStepLabel = hashClass(styled, (0, import_clsx79.default)("step-label"));
|
|
6305
6325
|
const classes = hashClass(
|
|
@@ -6313,7 +6333,7 @@ var Step = import_react45.default.forwardRef(({ className, id, active, current,
|
|
|
6313
6333
|
className
|
|
6314
6334
|
)
|
|
6315
6335
|
);
|
|
6316
|
-
return /* @__PURE__ */
|
|
6336
|
+
return /* @__PURE__ */ import_react46.default.createElement("div", { ref, id, className: classes, "data-label": label, ...others }, /* @__PURE__ */ import_react46.default.createElement("div", { className: classesStepLabel }, label, !done && iconName && /* @__PURE__ */ import_react46.default.createElement(Icon_default, { name: iconName && iconName, className: "step-icon", size: "medium" /* MEDIUM */ })));
|
|
6317
6337
|
});
|
|
6318
6338
|
Step.displayName = "Step" /* Step */;
|
|
6319
6339
|
var Step_default = Step;
|
|
@@ -6332,10 +6352,10 @@ var step_default = Step_default;
|
|
|
6332
6352
|
|
|
6333
6353
|
// components/switch/Switch.tsx
|
|
6334
6354
|
var import_clsx80 = __toESM(require("clsx"));
|
|
6335
|
-
var
|
|
6336
|
-
var Switch =
|
|
6355
|
+
var import_react47 = __toESM(require("react"));
|
|
6356
|
+
var Switch = import_react47.default.forwardRef(({
|
|
6337
6357
|
className,
|
|
6338
|
-
id =
|
|
6358
|
+
id = import_react47.default.useId(),
|
|
6339
6359
|
label,
|
|
6340
6360
|
value,
|
|
6341
6361
|
checked,
|
|
@@ -6349,23 +6369,23 @@ var Switch = import_react46.default.forwardRef(({
|
|
|
6349
6369
|
fullWidth,
|
|
6350
6370
|
...others
|
|
6351
6371
|
}, ref) => {
|
|
6352
|
-
const [_checked, setChecked] = (0,
|
|
6372
|
+
const [_checked, setChecked] = (0, import_react47.useState)(checked || false);
|
|
6353
6373
|
const { styled } = useTrilogyContext();
|
|
6354
|
-
|
|
6374
|
+
import_react47.default.useEffect(() => {
|
|
6355
6375
|
setChecked(checked || false);
|
|
6356
6376
|
}, [checked]);
|
|
6357
|
-
(0,
|
|
6377
|
+
(0, import_react47.useEffect)(() => {
|
|
6358
6378
|
if (!readonly) {
|
|
6359
6379
|
setChecked(checked || false);
|
|
6360
6380
|
}
|
|
6361
6381
|
}, [checked, readonly]);
|
|
6362
|
-
return /* @__PURE__ */
|
|
6382
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
|
6363
6383
|
"div",
|
|
6364
6384
|
{
|
|
6365
6385
|
ref,
|
|
6366
6386
|
className: hashClass(styled, (0, import_clsx80.default)("switch", reversed && is("reversed"), fullWidth && is("fullwidth"), className))
|
|
6367
6387
|
},
|
|
6368
|
-
/* @__PURE__ */
|
|
6388
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
|
6369
6389
|
"input",
|
|
6370
6390
|
{
|
|
6371
6391
|
onChange: (e) => {
|
|
@@ -6401,14 +6421,14 @@ var Switch = import_react46.default.forwardRef(({
|
|
|
6401
6421
|
...others
|
|
6402
6422
|
}
|
|
6403
6423
|
),
|
|
6404
|
-
/* @__PURE__ */
|
|
6424
|
+
/* @__PURE__ */ import_react47.default.createElement("label", { htmlFor: `switch-${id}` }, label)
|
|
6405
6425
|
);
|
|
6406
6426
|
});
|
|
6407
6427
|
Switch.displayName = "Switch" /* Switch */;
|
|
6408
6428
|
var Switch_default = Switch;
|
|
6409
6429
|
|
|
6410
6430
|
// components/table/Table.tsx
|
|
6411
|
-
var
|
|
6431
|
+
var React91 = __toESM(require("react"));
|
|
6412
6432
|
var import_clsx81 = __toESM(require("clsx"));
|
|
6413
6433
|
|
|
6414
6434
|
// components/table/TableProps.ts
|
|
@@ -6420,7 +6440,7 @@ var TableBorderEnum = /* @__PURE__ */ ((TableBorderEnum2) => {
|
|
|
6420
6440
|
})(TableBorderEnum || {});
|
|
6421
6441
|
|
|
6422
6442
|
// components/table/Table.tsx
|
|
6423
|
-
var Table =
|
|
6443
|
+
var Table = React91.forwardRef(({
|
|
6424
6444
|
className,
|
|
6425
6445
|
id,
|
|
6426
6446
|
fullwidth,
|
|
@@ -6441,15 +6461,15 @@ var Table = React90.forwardRef(({
|
|
|
6441
6461
|
className
|
|
6442
6462
|
)
|
|
6443
6463
|
);
|
|
6444
|
-
return /* @__PURE__ */
|
|
6464
|
+
return /* @__PURE__ */ React91.createElement("table", { ref, id, className: classes, ...others });
|
|
6445
6465
|
});
|
|
6446
6466
|
Table.displayName = "Table" /* Table */;
|
|
6447
6467
|
var Table_default = Table;
|
|
6448
6468
|
|
|
6449
6469
|
// components/table/head/TableHead.tsx
|
|
6450
|
-
var
|
|
6470
|
+
var React92 = __toESM(require("react"));
|
|
6451
6471
|
var import_clsx82 = __toESM(require("clsx"));
|
|
6452
|
-
var TableHead =
|
|
6472
|
+
var TableHead = React92.forwardRef(({ className, id, color, backgroundColor, ...others }, ref) => {
|
|
6453
6473
|
const { styled } = useTrilogyContext();
|
|
6454
6474
|
const classes = hashClass(
|
|
6455
6475
|
styled,
|
|
@@ -6459,7 +6479,7 @@ var TableHead = React91.forwardRef(({ className, id, color, backgroundColor, ...
|
|
|
6459
6479
|
color && is(getColorClassName(color))
|
|
6460
6480
|
)
|
|
6461
6481
|
);
|
|
6462
|
-
return /* @__PURE__ */
|
|
6482
|
+
return /* @__PURE__ */ React92.createElement("thead", { ref, id, className: classes, ...others });
|
|
6463
6483
|
});
|
|
6464
6484
|
TableHead.displayName = "TableHead" /* TableHead */;
|
|
6465
6485
|
var TableHead_default = TableHead;
|
|
@@ -6468,9 +6488,9 @@ var TableHead_default = TableHead;
|
|
|
6468
6488
|
var head_default = TableHead_default;
|
|
6469
6489
|
|
|
6470
6490
|
// components/table/body/TableBody.tsx
|
|
6471
|
-
var
|
|
6491
|
+
var React93 = __toESM(require("react"));
|
|
6472
6492
|
var import_clsx83 = __toESM(require("clsx"));
|
|
6473
|
-
var TableBody =
|
|
6493
|
+
var TableBody = React93.forwardRef(({ className, id, color, backgroundColor, ...others }, ref) => {
|
|
6474
6494
|
const { styled } = useTrilogyContext();
|
|
6475
6495
|
const classes = hashClass(
|
|
6476
6496
|
styled,
|
|
@@ -6480,7 +6500,7 @@ var TableBody = React92.forwardRef(({ className, id, color, backgroundColor, ...
|
|
|
6480
6500
|
color && is(getColorClassName(color))
|
|
6481
6501
|
)
|
|
6482
6502
|
);
|
|
6483
|
-
return /* @__PURE__ */
|
|
6503
|
+
return /* @__PURE__ */ React93.createElement("tbody", { ref, id, className: classes, ...others });
|
|
6484
6504
|
});
|
|
6485
6505
|
TableBody.displayName = "TableBody" /* TableBody */;
|
|
6486
6506
|
var TableBody_default = TableBody;
|
|
@@ -6489,12 +6509,12 @@ var TableBody_default = TableBody;
|
|
|
6489
6509
|
var body_default = TableBody_default;
|
|
6490
6510
|
|
|
6491
6511
|
// components/table/th/TableTh.tsx
|
|
6492
|
-
var
|
|
6512
|
+
var React94 = __toESM(require("react"));
|
|
6493
6513
|
var import_clsx84 = __toESM(require("clsx"));
|
|
6494
|
-
var TableTh =
|
|
6514
|
+
var TableTh = React94.forwardRef(({ className, id, colSpan, rowSpan, ...others }, ref) => {
|
|
6495
6515
|
const { styled } = useTrilogyContext();
|
|
6496
6516
|
const classes = hashClass(styled, (0, import_clsx84.default)(className));
|
|
6497
|
-
return /* @__PURE__ */
|
|
6517
|
+
return /* @__PURE__ */ React94.createElement("th", { ref, id, className: classes, colSpan, rowSpan, ...others });
|
|
6498
6518
|
});
|
|
6499
6519
|
TableTh.displayName = "TableTh" /* TableTh */;
|
|
6500
6520
|
var TableTh_default = TableTh;
|
|
@@ -6503,9 +6523,9 @@ var TableTh_default = TableTh;
|
|
|
6503
6523
|
var th_default = TableTh_default;
|
|
6504
6524
|
|
|
6505
6525
|
// components/table/tr/TableTr.tsx
|
|
6506
|
-
var
|
|
6526
|
+
var React95 = __toESM(require("react"));
|
|
6507
6527
|
var import_clsx85 = __toESM(require("clsx"));
|
|
6508
|
-
var TableTr =
|
|
6528
|
+
var TableTr = React95.forwardRef(({
|
|
6509
6529
|
className,
|
|
6510
6530
|
id,
|
|
6511
6531
|
expandable,
|
|
@@ -6525,7 +6545,7 @@ var TableTr = React94.forwardRef(({
|
|
|
6525
6545
|
color && getColorClassName(color)
|
|
6526
6546
|
)
|
|
6527
6547
|
);
|
|
6528
|
-
return /* @__PURE__ */
|
|
6548
|
+
return /* @__PURE__ */ React95.createElement("tr", { ref, id, className: classes, ...others });
|
|
6529
6549
|
});
|
|
6530
6550
|
TableTr.displayName = "TableTr" /* TableTr */;
|
|
6531
6551
|
var TableTr_default = TableTr;
|
|
@@ -6534,12 +6554,12 @@ var TableTr_default = TableTr;
|
|
|
6534
6554
|
var tr_default = TableTr_default;
|
|
6535
6555
|
|
|
6536
6556
|
// components/table/td/TableTd.tsx
|
|
6537
|
-
var
|
|
6557
|
+
var React96 = __toESM(require("react"));
|
|
6538
6558
|
var import_clsx86 = __toESM(require("clsx"));
|
|
6539
|
-
var TableTd =
|
|
6559
|
+
var TableTd = React96.forwardRef(({ className, id, rowSpan, colSpan, ...others }, ref) => {
|
|
6540
6560
|
const { styled } = useTrilogyContext();
|
|
6541
6561
|
const classes = hashClass(styled, (0, import_clsx86.default)(className));
|
|
6542
|
-
return /* @__PURE__ */
|
|
6562
|
+
return /* @__PURE__ */ React96.createElement("td", { ref, id, className: classes, rowSpan, colSpan, ...others });
|
|
6543
6563
|
});
|
|
6544
6564
|
TableTd.displayName = "TableTd" /* TableTd */;
|
|
6545
6565
|
var TableTd_default = TableTd;
|
|
@@ -6548,8 +6568,8 @@ var TableTd_default = TableTd;
|
|
|
6548
6568
|
var td_default = TableTd_default;
|
|
6549
6569
|
|
|
6550
6570
|
// components/tabs/context/index.tsx
|
|
6551
|
-
var
|
|
6552
|
-
var TabsContext =
|
|
6571
|
+
var import_react48 = __toESM(require("react"));
|
|
6572
|
+
var TabsContext = import_react48.default.createContext({
|
|
6553
6573
|
activeIndex: 0,
|
|
6554
6574
|
inverted: false,
|
|
6555
6575
|
setActiveIndex: () => 0,
|
|
@@ -6560,20 +6580,20 @@ var TabsContext = import_react47.default.createContext({
|
|
|
6560
6580
|
|
|
6561
6581
|
// components/tabs/Tabs.tsx
|
|
6562
6582
|
var import_clsx87 = __toESM(require("clsx"));
|
|
6563
|
-
var
|
|
6564
|
-
var Tabs =
|
|
6583
|
+
var import_react49 = __toESM(require("react"));
|
|
6584
|
+
var Tabs = import_react49.default.forwardRef(
|
|
6565
6585
|
({ children, className, id, activeIndex, fullwidth, inverted, small }, ref) => {
|
|
6566
|
-
const [currentIndex, setCurrentIndex] =
|
|
6567
|
-
const [isInverted, setIsInverted] =
|
|
6586
|
+
const [currentIndex, setCurrentIndex] = import_react49.default.useState(activeIndex || 0);
|
|
6587
|
+
const [isInverted, setIsInverted] = import_react49.default.useState(inverted || false);
|
|
6568
6588
|
const { styled } = useTrilogyContext();
|
|
6569
6589
|
const classes = hashClass(
|
|
6570
6590
|
styled,
|
|
6571
6591
|
(0, import_clsx87.default)("tabs", fullwidth && is("fullwidth"), inverted && is("inverted"), small && is("small"), className)
|
|
6572
6592
|
);
|
|
6573
|
-
|
|
6593
|
+
import_react49.default.useEffect(() => {
|
|
6574
6594
|
activeIndex !== void 0 && setCurrentIndex(activeIndex);
|
|
6575
6595
|
}, [activeIndex]);
|
|
6576
|
-
return /* @__PURE__ */
|
|
6596
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
|
6577
6597
|
TabsContext.Provider,
|
|
6578
6598
|
{
|
|
6579
6599
|
value: {
|
|
@@ -6584,7 +6604,7 @@ var Tabs = import_react48.default.forwardRef(
|
|
|
6584
6604
|
setActiveIndex: setCurrentIndex
|
|
6585
6605
|
}
|
|
6586
6606
|
},
|
|
6587
|
-
/* @__PURE__ */
|
|
6607
|
+
/* @__PURE__ */ import_react49.default.createElement("div", { ref, id, className: classes, "data-tabs-context": "" }, children)
|
|
6588
6608
|
);
|
|
6589
6609
|
}
|
|
6590
6610
|
);
|
|
@@ -6593,16 +6613,16 @@ var Tabs_default = Tabs;
|
|
|
6593
6613
|
|
|
6594
6614
|
// components/tabs/tab-list/tab/Tab.tsx
|
|
6595
6615
|
var import_clsx88 = __toESM(require("clsx"));
|
|
6596
|
-
var
|
|
6597
|
-
var Tab =
|
|
6616
|
+
var import_react50 = __toESM(require("react"));
|
|
6617
|
+
var Tab = import_react50.default.forwardRef(
|
|
6598
6618
|
({ active, className, onClick, routerLink = "a", iconName, label, disabled, testId, ariaControls, ...others }, ref) => {
|
|
6599
6619
|
const { styled } = useTrilogyContext();
|
|
6600
6620
|
const { index, ...props } = others;
|
|
6601
|
-
const { activeIndex, setActiveIndex, small } =
|
|
6621
|
+
const { activeIndex, setActiveIndex, small } = import_react50.default.useContext(TabsContext);
|
|
6602
6622
|
const Tag2 = others.href || others.to ? routerLink : "button";
|
|
6603
|
-
const isActive =
|
|
6623
|
+
const isActive = import_react50.default.useMemo(() => activeIndex === index, [activeIndex, index]);
|
|
6604
6624
|
const classes = hashClass(styled, (0, import_clsx88.default)("tab", className, { "is-active": isActive }));
|
|
6605
|
-
const handleClick =
|
|
6625
|
+
const handleClick = import_react50.default.useCallback(
|
|
6606
6626
|
(e) => {
|
|
6607
6627
|
if (!disabled) {
|
|
6608
6628
|
if (!others.href && !others.to) setActiveIndex(index);
|
|
@@ -6611,10 +6631,10 @@ var Tab = import_react49.default.forwardRef(
|
|
|
6611
6631
|
},
|
|
6612
6632
|
[disabled, onClick, index, setActiveIndex]
|
|
6613
6633
|
);
|
|
6614
|
-
|
|
6634
|
+
import_react50.default.useEffect(() => {
|
|
6615
6635
|
if (active) setActiveIndex(index);
|
|
6616
6636
|
}, [active, setActiveIndex, index]);
|
|
6617
|
-
return /* @__PURE__ */
|
|
6637
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
|
6618
6638
|
Tag2,
|
|
6619
6639
|
{
|
|
6620
6640
|
ref,
|
|
@@ -6630,8 +6650,8 @@ var Tab = import_react49.default.forwardRef(
|
|
|
6630
6650
|
onClick: handleClick,
|
|
6631
6651
|
...props
|
|
6632
6652
|
},
|
|
6633
|
-
/* @__PURE__ */
|
|
6634
|
-
label && /* @__PURE__ */
|
|
6653
|
+
/* @__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 })),
|
|
6654
|
+
label && /* @__PURE__ */ import_react50.default.createElement(Text_default, null, label)
|
|
6635
6655
|
);
|
|
6636
6656
|
}
|
|
6637
6657
|
);
|
|
@@ -6640,31 +6660,31 @@ var Tab_default = Tab;
|
|
|
6640
6660
|
|
|
6641
6661
|
// components/tabs/tab-list/TabList.tsx
|
|
6642
6662
|
var import_clsx89 = __toESM(require("clsx"));
|
|
6643
|
-
var
|
|
6644
|
-
var TabList =
|
|
6663
|
+
var import_react51 = __toESM(require("react"));
|
|
6664
|
+
var TabList = import_react51.default.forwardRef(
|
|
6645
6665
|
({ children, className, id, testId, align, ...others }, ref) => {
|
|
6646
6666
|
const { styled } = useTrilogyContext();
|
|
6647
|
-
const TabListRef =
|
|
6648
|
-
const tabRefs =
|
|
6649
|
-
const { small } =
|
|
6650
|
-
|
|
6651
|
-
const [tabsWidth, setTabsWidth] =
|
|
6652
|
-
const [tabListWidth, setTabListWidth] =
|
|
6653
|
-
const [scrollLeft, setScrollLeft] =
|
|
6654
|
-
const [tabFocused, setTabFocused] =
|
|
6667
|
+
const TabListRef = import_react51.default.useRef(null);
|
|
6668
|
+
const tabRefs = import_react51.default.useRef([]);
|
|
6669
|
+
const { small } = import_react51.default.useContext(TabsContext);
|
|
6670
|
+
import_react51.default.useImperativeHandle(ref, () => TabListRef.current);
|
|
6671
|
+
const [tabsWidth, setTabsWidth] = import_react51.default.useState(0);
|
|
6672
|
+
const [tabListWidth, setTabListWidth] = import_react51.default.useState(0);
|
|
6673
|
+
const [scrollLeft, setScrollLeft] = import_react51.default.useState(0);
|
|
6674
|
+
const [tabFocused, setTabFocused] = import_react51.default.useState(0);
|
|
6655
6675
|
const classes = hashClass(styled, (0, import_clsx89.default)("tab-list", align && is(getAlignClassName(align)), className));
|
|
6656
|
-
const isVisibleArrowLeft = (0,
|
|
6676
|
+
const isVisibleArrowLeft = (0, import_react51.useMemo)(() => {
|
|
6657
6677
|
if (!tabRefs.current.length) return false;
|
|
6658
6678
|
return scrollLeft > tabRefs.current[0].width / 2;
|
|
6659
6679
|
}, [tabRefs, scrollLeft]);
|
|
6660
|
-
const isVisibleArrowRight = (0,
|
|
6680
|
+
const isVisibleArrowRight = (0, import_react51.useMemo)(
|
|
6661
6681
|
() => tabListWidth - tabsWidth - scrollLeft > 5,
|
|
6662
6682
|
[tabListWidth, tabsWidth, scrollLeft]
|
|
6663
6683
|
);
|
|
6664
|
-
const TabElms =
|
|
6665
|
-
return
|
|
6666
|
-
if (!
|
|
6667
|
-
return /* @__PURE__ */
|
|
6684
|
+
const TabElms = import_react51.default.useMemo(() => {
|
|
6685
|
+
return import_react51.default.Children.map(children, (child, index) => {
|
|
6686
|
+
if (!import_react51.default.isValidElement(child)) return false;
|
|
6687
|
+
return /* @__PURE__ */ import_react51.default.createElement(
|
|
6668
6688
|
Tab_default,
|
|
6669
6689
|
{
|
|
6670
6690
|
ref: (el) => tabRefs.current[index] = el == null ? void 0 : el.getBoundingClientRect(),
|
|
@@ -6674,7 +6694,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6674
6694
|
);
|
|
6675
6695
|
});
|
|
6676
6696
|
}, [children, tabRefs]);
|
|
6677
|
-
const scrollWithArrow =
|
|
6697
|
+
const scrollWithArrow = import_react51.default.useCallback(
|
|
6678
6698
|
(direction) => {
|
|
6679
6699
|
var _a;
|
|
6680
6700
|
if (tabRefs.current) {
|
|
@@ -6686,7 +6706,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6686
6706
|
},
|
|
6687
6707
|
[tabRefs.current, tabFocused, TabListRef]
|
|
6688
6708
|
);
|
|
6689
|
-
const handleScrollList =
|
|
6709
|
+
const handleScrollList = import_react51.default.useCallback(
|
|
6690
6710
|
(e) => {
|
|
6691
6711
|
const target = e.target;
|
|
6692
6712
|
const firstGap = tabRefs.current[0].x + (small ? 16 : 24);
|
|
@@ -6698,26 +6718,26 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6698
6718
|
},
|
|
6699
6719
|
[tabRefs, small]
|
|
6700
6720
|
);
|
|
6701
|
-
const onClickPrev =
|
|
6721
|
+
const onClickPrev = import_react51.default.useCallback(() => {
|
|
6702
6722
|
isVisibleArrowLeft && scrollWithArrow(-1);
|
|
6703
6723
|
}, [scrollWithArrow, isVisibleArrowLeft]);
|
|
6704
|
-
const onClickNext =
|
|
6724
|
+
const onClickNext = import_react51.default.useCallback(() => {
|
|
6705
6725
|
isVisibleArrowRight && scrollWithArrow(1);
|
|
6706
6726
|
}, [scrollWithArrow, isVisibleArrowRight]);
|
|
6707
|
-
const setWidths =
|
|
6727
|
+
const setWidths = import_react51.default.useCallback(() => {
|
|
6708
6728
|
if (TabListRef.current) {
|
|
6709
6729
|
setTabsWidth(TabListRef.current.clientWidth);
|
|
6710
6730
|
setTabListWidth(TabListRef.current.scrollWidth);
|
|
6711
6731
|
}
|
|
6712
6732
|
}, [TabListRef]);
|
|
6713
|
-
|
|
6733
|
+
import_react51.default.useEffect(() => {
|
|
6714
6734
|
setWidths();
|
|
6715
6735
|
}, [setWidths, isVisibleArrowLeft, isVisibleArrowRight]);
|
|
6716
|
-
|
|
6736
|
+
import_react51.default.useEffect(() => {
|
|
6717
6737
|
window.addEventListener("resize", setWidths);
|
|
6718
6738
|
return () => window.removeEventListener("resize", setWidths);
|
|
6719
6739
|
}, [TabListRef, setWidths]);
|
|
6720
|
-
return /* @__PURE__ */
|
|
6740
|
+
return /* @__PURE__ */ import_react51.default.createElement(
|
|
6721
6741
|
"div",
|
|
6722
6742
|
{
|
|
6723
6743
|
ref: TabListRef,
|
|
@@ -6728,7 +6748,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6728
6748
|
onScroll: handleScrollList,
|
|
6729
6749
|
...others
|
|
6730
6750
|
},
|
|
6731
|
-
isVisibleArrowLeft && /* @__PURE__ */
|
|
6751
|
+
isVisibleArrowLeft && /* @__PURE__ */ import_react51.default.createElement(
|
|
6732
6752
|
Icon_default,
|
|
6733
6753
|
{
|
|
6734
6754
|
"data-arrow-prev": "",
|
|
@@ -6739,7 +6759,7 @@ var TabList = import_react50.default.forwardRef(
|
|
|
6739
6759
|
}
|
|
6740
6760
|
),
|
|
6741
6761
|
TabElms,
|
|
6742
|
-
isVisibleArrowRight && /* @__PURE__ */
|
|
6762
|
+
isVisibleArrowRight && /* @__PURE__ */ import_react51.default.createElement(
|
|
6743
6763
|
Icon_default,
|
|
6744
6764
|
{
|
|
6745
6765
|
"data-arrow-next": "",
|
|
@@ -6757,13 +6777,13 @@ var TabList_default = TabList;
|
|
|
6757
6777
|
|
|
6758
6778
|
// components/tabs/tab-panels/tab-panel/TabPanel.tsx
|
|
6759
6779
|
var import_clsx90 = __toESM(require("clsx"));
|
|
6760
|
-
var
|
|
6761
|
-
var TabPanel =
|
|
6780
|
+
var import_react52 = __toESM(require("react"));
|
|
6781
|
+
var TabPanel = import_react52.default.forwardRef(({ children, className, testId, ...others }, ref) => {
|
|
6762
6782
|
const { styled } = useTrilogyContext();
|
|
6763
6783
|
const { index, ...props } = others;
|
|
6764
|
-
const { activeIndex } =
|
|
6784
|
+
const { activeIndex } = import_react52.default.useContext(TabsContext);
|
|
6765
6785
|
const classes = hashClass(styled, (0, import_clsx90.default)("tab-panel", index === activeIndex && is("active"), className));
|
|
6766
|
-
return /* @__PURE__ */
|
|
6786
|
+
return /* @__PURE__ */ import_react52.default.createElement("div", { ref, "data-testid": testId, className: classes, ...props }, children);
|
|
6767
6787
|
});
|
|
6768
6788
|
TabPanel.displayName = "TabPanel" /* TabPanel */;
|
|
6769
6789
|
var TabPanel_default = TabPanel;
|
|
@@ -6773,13 +6793,13 @@ var tab_panel_default = TabPanel_default;
|
|
|
6773
6793
|
|
|
6774
6794
|
// components/tabs/tab-panels/TabPanels.tsx
|
|
6775
6795
|
var import_clsx91 = __toESM(require("clsx"));
|
|
6776
|
-
var
|
|
6777
|
-
var TabPanels =
|
|
6796
|
+
var import_react53 = __toESM(require("react"));
|
|
6797
|
+
var TabPanels = import_react53.default.forwardRef(({ children, className, id, testId, ...others }, ref) => {
|
|
6778
6798
|
const { styled } = useTrilogyContext();
|
|
6779
6799
|
const classes = hashClass(styled, (0, import_clsx91.default)("tab-panels", className));
|
|
6780
|
-
return /* @__PURE__ */
|
|
6781
|
-
if (!
|
|
6782
|
-
return /* @__PURE__ */
|
|
6800
|
+
return /* @__PURE__ */ import_react53.default.createElement("div", { ref, id, "data-testid": testId, className: classes, ...others }, import_react53.default.Children.map(children, (child, index) => {
|
|
6801
|
+
if (!import_react53.default.isValidElement(child)) return false;
|
|
6802
|
+
return /* @__PURE__ */ import_react53.default.createElement(tab_panel_default, { ...child.props, index });
|
|
6783
6803
|
}));
|
|
6784
6804
|
});
|
|
6785
6805
|
TabPanels.displayName = "TabPanels" /* TabPanels */;
|
|
@@ -6787,8 +6807,8 @@ var TabPanels_default = TabPanels;
|
|
|
6787
6807
|
|
|
6788
6808
|
// components/tag/Tag.tsx
|
|
6789
6809
|
var import_clsx92 = __toESM(require("clsx"));
|
|
6790
|
-
var
|
|
6791
|
-
var Tag =
|
|
6810
|
+
var import_react54 = __toESM(require("react"));
|
|
6811
|
+
var Tag = import_react54.default.forwardRef(
|
|
6792
6812
|
({ label, className, id, variant, inverted, small, iconName, ...others }, ref) => {
|
|
6793
6813
|
const { styled } = useTrilogyContext();
|
|
6794
6814
|
const tagClassNames = hashClass(
|
|
@@ -6802,7 +6822,7 @@ var Tag = import_react53.default.forwardRef(
|
|
|
6802
6822
|
)
|
|
6803
6823
|
);
|
|
6804
6824
|
const tagIconClassNames = (0, import_clsx92.default)(variant && is(getColorClassName(variant)));
|
|
6805
|
-
return /* @__PURE__ */
|
|
6825
|
+
return /* @__PURE__ */ import_react54.default.createElement("span", { ref, id, className: tagClassNames, ...others }, iconName && /* @__PURE__ */ import_react54.default.createElement(Icon_default, { className: tagIconClassNames, name: iconName }), label);
|
|
6806
6826
|
}
|
|
6807
6827
|
);
|
|
6808
6828
|
Tag.displayName = "Tag" /* Tag */;
|
|
@@ -6810,10 +6830,10 @@ var Tag_default = Tag;
|
|
|
6810
6830
|
|
|
6811
6831
|
// components/tag/list/TagList.tsx
|
|
6812
6832
|
var import_clsx93 = __toESM(require("clsx"));
|
|
6813
|
-
var
|
|
6814
|
-
var TagList =
|
|
6833
|
+
var React104 = __toESM(require("react"));
|
|
6834
|
+
var TagList = React104.forwardRef(({ className, id, align, marginless, ...others }, ref) => {
|
|
6815
6835
|
const { styled } = useTrilogyContext();
|
|
6816
|
-
return /* @__PURE__ */
|
|
6836
|
+
return /* @__PURE__ */ React104.createElement(
|
|
6817
6837
|
"div",
|
|
6818
6838
|
{
|
|
6819
6839
|
ref,
|
|
@@ -6843,8 +6863,8 @@ var TagVariant = /* @__PURE__ */ ((TagVariant2) => {
|
|
|
6843
6863
|
|
|
6844
6864
|
// components/textarea/Textarea.tsx
|
|
6845
6865
|
var import_clsx94 = __toESM(require("clsx"));
|
|
6846
|
-
var
|
|
6847
|
-
var Textarea =
|
|
6866
|
+
var import_react55 = __toESM(require("react"));
|
|
6867
|
+
var Textarea = import_react55.default.forwardRef(
|
|
6848
6868
|
({
|
|
6849
6869
|
className,
|
|
6850
6870
|
id,
|
|
@@ -6865,9 +6885,9 @@ var Textarea = import_react54.default.forwardRef(
|
|
|
6865
6885
|
iconNameRight,
|
|
6866
6886
|
...others
|
|
6867
6887
|
}, ref) => {
|
|
6868
|
-
const [value, setValue] = (0,
|
|
6888
|
+
const [value, setValue] = (0, import_react55.useState)(defaultValue || "");
|
|
6869
6889
|
const { styled } = useTrilogyContext();
|
|
6870
|
-
(0,
|
|
6890
|
+
(0, import_react55.useEffect)(() => {
|
|
6871
6891
|
setValue(defaultValue || "");
|
|
6872
6892
|
}, [defaultValue]);
|
|
6873
6893
|
const wrapperClasses = hashClass(styled, (0, import_clsx94.default)("field textarea-wrapper", className, status && is(status)));
|
|
@@ -6878,7 +6898,7 @@ var Textarea = import_react54.default.forwardRef(
|
|
|
6878
6898
|
styled,
|
|
6879
6899
|
(0, import_clsx94.default)("control", iconNameLeft && has("icons-left"), iconNameRight && has("icons-right"))
|
|
6880
6900
|
);
|
|
6881
|
-
return /* @__PURE__ */
|
|
6901
|
+
return /* @__PURE__ */ import_react55.default.createElement("div", { id, className: wrapperClasses }, label && /* @__PURE__ */ import_react55.default.createElement("label", { className: hashClass(styled, "textarea-label"), htmlFor: id }, label, " ", required && /* @__PURE__ */ import_react55.default.createElement(Text_default, { markup: "span" /* SPAN */, typo: "has-text-error" /* TEXT_ERROR */ }, "*")), sample && /* @__PURE__ */ import_react55.default.createElement(Text_default, { className: "input-sample", level: 2 /* TWO */, id }, sample), /* @__PURE__ */ import_react55.default.createElement("div", { className: controlClasses }, /* @__PURE__ */ import_react55.default.createElement(
|
|
6882
6902
|
"textarea",
|
|
6883
6903
|
{
|
|
6884
6904
|
ref,
|
|
@@ -6901,7 +6921,7 @@ var Textarea = import_react54.default.forwardRef(
|
|
|
6901
6921
|
required,
|
|
6902
6922
|
...others
|
|
6903
6923
|
}
|
|
6904
|
-
), iconNameLeft && /* @__PURE__ */
|
|
6924
|
+
), iconNameLeft && /* @__PURE__ */ import_react55.default.createElement(Icon_default, { name: iconNameLeft, size: "small", className: "icon-left" }), iconNameRight && /* @__PURE__ */ import_react55.default.createElement(Icon_default, { name: iconNameRight, size: "small", className: "icon-right" }), maxLength && /* @__PURE__ */ import_react55.default.createElement("div", { className: counterClasses }, `${value.length}/${maxLength == null ? void 0 : maxLength.toString()}`)), help && /* @__PURE__ */ import_react55.default.createElement(Text_default, { className: helpClasses }, help));
|
|
6905
6925
|
}
|
|
6906
6926
|
);
|
|
6907
6927
|
Textarea.displayName = "Textarea" /* Textarea */;
|
|
@@ -6909,15 +6929,15 @@ var Textarea_default = Textarea;
|
|
|
6909
6929
|
|
|
6910
6930
|
// components/timeline/content/TimelineContent.tsx
|
|
6911
6931
|
var import_clsx95 = __toESM(require("clsx"));
|
|
6912
|
-
var
|
|
6913
|
-
var TimelineContent =
|
|
6932
|
+
var React106 = __toESM(require("react"));
|
|
6933
|
+
var TimelineContent = React106.forwardRef(
|
|
6914
6934
|
({ children, className, id, heading, content, linkLabel, linkTo, ...others }, ref) => {
|
|
6915
6935
|
const { styled } = useTrilogyContext();
|
|
6916
6936
|
const classes = hashClass(styled, (0, import_clsx95.default)("timeline-content", className));
|
|
6917
6937
|
if (children) {
|
|
6918
|
-
return /* @__PURE__ */
|
|
6938
|
+
return /* @__PURE__ */ React106.createElement("div", { ref, id, className: classes, ...others }, children);
|
|
6919
6939
|
}
|
|
6920
|
-
return /* @__PURE__ */
|
|
6940
|
+
return /* @__PURE__ */ React106.createElement("div", { ref, id, className: classes, ...others }, heading && /* @__PURE__ */ React106.createElement(Text_default, { markup: "p" /* P */ }, heading), content && /* @__PURE__ */ React106.createElement(Text_default, { className: "main-content", markup: "p" /* P */ }, content), linkTo && linkLabel && /* @__PURE__ */ React106.createElement(Link_default, { href: linkTo }, linkLabel));
|
|
6921
6941
|
}
|
|
6922
6942
|
);
|
|
6923
6943
|
TimelineContent.displayName = "TimelineContent" /* TimelineContent */;
|
|
@@ -6928,14 +6948,14 @@ var content_default3 = TimelineContent_default;
|
|
|
6928
6948
|
|
|
6929
6949
|
// components/timeline/item/TimelineItem.tsx
|
|
6930
6950
|
var import_clsx96 = __toESM(require("clsx"));
|
|
6931
|
-
var
|
|
6932
|
-
var TimelineItem =
|
|
6951
|
+
var React107 = __toESM(require("react"));
|
|
6952
|
+
var TimelineItem = React107.forwardRef(({ className, id, done, active, cancel, ...others }, ref) => {
|
|
6933
6953
|
const { styled } = useTrilogyContext();
|
|
6934
6954
|
const classes = hashClass(
|
|
6935
6955
|
styled,
|
|
6936
6956
|
(0, import_clsx96.default)("timeline-item", done && "done", active && "active", cancel && "cancel", className)
|
|
6937
6957
|
);
|
|
6938
|
-
return /* @__PURE__ */
|
|
6958
|
+
return /* @__PURE__ */ React107.createElement("div", { ref, id, className: classes, ...others });
|
|
6939
6959
|
});
|
|
6940
6960
|
TimelineItem.displayName = "TimelineItem" /* TimelineItem */;
|
|
6941
6961
|
var TimelineItem_default = TimelineItem;
|
|
@@ -6945,8 +6965,8 @@ var item_default5 = TimelineItem_default;
|
|
|
6945
6965
|
|
|
6946
6966
|
// components/timeline/marker/TimelineMarker.tsx
|
|
6947
6967
|
var import_clsx97 = __toESM(require("clsx"));
|
|
6948
|
-
var
|
|
6949
|
-
var TimelineMarker =
|
|
6968
|
+
var React108 = __toESM(require("react"));
|
|
6969
|
+
var TimelineMarker = React108.forwardRef(({
|
|
6950
6970
|
className,
|
|
6951
6971
|
id,
|
|
6952
6972
|
iconClassname,
|
|
@@ -6956,7 +6976,7 @@ var TimelineMarker = React107.forwardRef(({
|
|
|
6956
6976
|
const { styled } = useTrilogyContext();
|
|
6957
6977
|
const classes = hashClass(styled, (0, import_clsx97.default)("timeline-marker", is("icon"), className));
|
|
6958
6978
|
const iconClasses = (0, import_clsx97.default)(iconClassname);
|
|
6959
|
-
return /* @__PURE__ */
|
|
6979
|
+
return /* @__PURE__ */ React108.createElement("div", { ref, id, className: classes, ...others }, /* @__PURE__ */ React108.createElement("div", { className: "card-header-icon" }, /* @__PURE__ */ React108.createElement(Icon_default, { className: iconClasses, name: iconName, size: "small" /* SMALL */ })));
|
|
6960
6980
|
});
|
|
6961
6981
|
TimelineMarker.displayName = "TimelineMarker" /* TimelineMarker */;
|
|
6962
6982
|
var TimelineMarker_default = TimelineMarker;
|
|
@@ -6966,18 +6986,18 @@ var marker_default = TimelineMarker_default;
|
|
|
6966
6986
|
|
|
6967
6987
|
// components/timeline/Timeline.tsx
|
|
6968
6988
|
var import_clsx98 = __toESM(require("clsx"));
|
|
6969
|
-
var
|
|
6970
|
-
var Timeline =
|
|
6989
|
+
var React109 = __toESM(require("react"));
|
|
6990
|
+
var Timeline = React109.forwardRef(({ className, id, horizontal, ...others }, ref) => {
|
|
6971
6991
|
const { styled } = useTrilogyContext();
|
|
6972
6992
|
const classes = hashClass(styled, (0, import_clsx98.default)("timeline", horizontal && is("horizontal"), className));
|
|
6973
|
-
return /* @__PURE__ */
|
|
6993
|
+
return /* @__PURE__ */ React109.createElement("div", { ref, id, className: classes, ...others });
|
|
6974
6994
|
});
|
|
6975
6995
|
Timeline.displayName = "Timeline" /* Timeline */;
|
|
6976
6996
|
var Timeline_default = Timeline;
|
|
6977
6997
|
|
|
6978
6998
|
// components/view/View.tsx
|
|
6979
6999
|
var import_clsx99 = __toESM(require("clsx"));
|
|
6980
|
-
var
|
|
7000
|
+
var React110 = __toESM(require("react"));
|
|
6981
7001
|
|
|
6982
7002
|
// components/view/ViewProps/index.ts
|
|
6983
7003
|
var ViewMarkup = /* @__PURE__ */ ((ViewMarkup2) => {
|
|
@@ -7002,7 +7022,7 @@ var ViewMarkup = /* @__PURE__ */ ((ViewMarkup2) => {
|
|
|
7002
7022
|
})(ViewMarkup || {});
|
|
7003
7023
|
|
|
7004
7024
|
// components/view/View.tsx
|
|
7005
|
-
var View =
|
|
7025
|
+
var View = React110.forwardRef(({
|
|
7006
7026
|
children,
|
|
7007
7027
|
style,
|
|
7008
7028
|
className,
|
|
@@ -7039,7 +7059,7 @@ var View = React109.forwardRef(({
|
|
|
7039
7059
|
className
|
|
7040
7060
|
)
|
|
7041
7061
|
);
|
|
7042
|
-
return /* @__PURE__ */
|
|
7062
|
+
return /* @__PURE__ */ React110.createElement(
|
|
7043
7063
|
Tag2,
|
|
7044
7064
|
{
|
|
7045
7065
|
ref,
|
|
@@ -7080,10 +7100,10 @@ var JustifyContent = /* @__PURE__ */ ((JustifyContent2) => {
|
|
|
7080
7100
|
})(JustifyContent || {});
|
|
7081
7101
|
|
|
7082
7102
|
// context/provider/index.tsx
|
|
7083
|
-
var
|
|
7103
|
+
var import_react56 = __toESM(require("react"));
|
|
7084
7104
|
|
|
7085
7105
|
// version.ts
|
|
7086
|
-
var version = "0.0.
|
|
7106
|
+
var version = "0.0.23-esm-cjs";
|
|
7087
7107
|
|
|
7088
7108
|
// version.json
|
|
7089
7109
|
var version_default = {
|
|
@@ -7111,12 +7131,12 @@ var TrilogyProvider = ({
|
|
|
7111
7131
|
hash: HASH = version_default.VERSION,
|
|
7112
7132
|
assetUrl = ""
|
|
7113
7133
|
}) => {
|
|
7114
|
-
const [styled, setStyled] =
|
|
7115
|
-
const [hash, setHash] =
|
|
7116
|
-
(0,
|
|
7134
|
+
const [styled, setStyled] = import_react56.default.useState(mangled);
|
|
7135
|
+
const [hash, setHash] = import_react56.default.useState(HASH);
|
|
7136
|
+
(0, import_react56.useLayoutEffect)(() => {
|
|
7117
7137
|
injectTrilogyAssets && injectTrilogy(mangled, id, theme, assetUrl);
|
|
7118
7138
|
}, []);
|
|
7119
|
-
return /* @__PURE__ */
|
|
7139
|
+
return /* @__PURE__ */ import_react56.default.createElement(TrilogyContext.Provider, { value: { styled, setStyled, hash, setHash } }, children);
|
|
7120
7140
|
};
|
|
7121
7141
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7122
7142
|
0 && (module.exports = {
|
|
@@ -7242,6 +7262,7 @@ var TrilogyProvider = ({
|
|
|
7242
7262
|
Select,
|
|
7243
7263
|
SelectOption,
|
|
7244
7264
|
SelectStatus,
|
|
7265
|
+
Skeleton,
|
|
7245
7266
|
Spacer,
|
|
7246
7267
|
SpacerSize,
|
|
7247
7268
|
SpacerSizeValues,
|