@trilogy-ds/react 0.0.13-esm-cjs → 0.0.15-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-ATPFUBNB.mjs → chunk-2QI25H4L.mjs} +1 -1
- package/lib/{chunk-57VVNO3I.mjs → chunk-3NCWHDRS.mjs} +1 -1
- package/lib/{chunk-IOOEK5VI.mjs → chunk-4HVUQDPB.mjs} +1 -1
- package/lib/{chunk-JBFO7SRF.mjs → chunk-636WODA2.mjs} +2 -2
- package/lib/{chunk-EWNUE7ID.mjs → chunk-6QPU3LHF.mjs} +1 -1
- package/lib/{chunk-N5WHEQME.mjs → chunk-7GB6GKGD.mjs} +2 -2
- package/lib/{chunk-EUJKB6RG.mjs → chunk-AKMN7UO5.mjs} +1 -1
- package/lib/{chunk-225GHZOS.mjs → chunk-CJHW2V6H.mjs} +3 -3
- package/lib/{chunk-6JWYMTZI.mjs → chunk-CWOJMTBG.mjs} +1 -1
- package/lib/{chunk-KGDE4I6M.mjs → chunk-D7SER4BZ.mjs} +3 -3
- package/lib/{chunk-TBIFSK4N.mjs → chunk-EFTZDOEV.mjs} +2 -2
- package/lib/{chunk-QP35ZXU6.mjs → chunk-EQIF6RE5.mjs} +3 -3
- package/lib/{chunk-5BJSQK4M.mjs → chunk-FIH3EYH2.mjs} +1 -1
- package/lib/{chunk-5EQAV6A2.mjs → chunk-FUE3HEEY.mjs} +1 -1
- package/lib/{chunk-EGZVKHFM.mjs → chunk-HLTY5AJR.mjs} +1 -1
- package/lib/{chunk-Y3EHTJD4.mjs → chunk-HPICKTAC.mjs} +1 -1
- package/lib/{chunk-ASIVCRAT.mjs → chunk-HQXEF7BU.mjs} +1 -1
- package/lib/{chunk-7GDLEVCB.mjs → chunk-IERXTGCG.mjs} +1 -1
- package/lib/{chunk-ILLANT3J.mjs → chunk-K5BZA4Y4.mjs} +2 -2
- package/lib/chunk-KEXRV4H7.mjs +1 -0
- package/lib/chunk-KPAFJMF3.mjs +1 -0
- package/lib/{chunk-AZ5GLGL2.mjs → chunk-LALBHUEG.mjs} +2 -2
- package/lib/{chunk-6ASDNMS4.mjs → chunk-LQ7MOJFV.mjs} +1 -1
- package/lib/{chunk-JQKBHQAI.mjs → chunk-MDUVWKC5.mjs} +1 -1
- package/lib/{chunk-P74YNW6V.mjs → chunk-MLDIC7PA.mjs} +1 -1
- package/lib/{chunk-3U2THTWL.mjs → chunk-MN7IITZQ.mjs} +2 -2
- package/lib/chunk-NHWFJSKL.mjs +1 -0
- package/lib/{chunk-OJE7QMVW.mjs → chunk-O6QKUT7P.mjs} +2 -2
- package/lib/{chunk-F647X6CN.mjs → chunk-OF3FJXZL.mjs} +1 -1
- package/lib/chunk-PEWOXBQI.mjs +1 -0
- package/lib/{chunk-MWQQD27H.mjs → chunk-PFH5M7W4.mjs} +1 -1
- package/lib/{chunk-CFPYGFEZ.mjs → chunk-PHH6JAI6.mjs} +2 -2
- package/lib/{chunk-L6AARVS4.mjs → chunk-POM5H35R.mjs} +1 -1
- package/lib/{chunk-RUOWLFQM.mjs → chunk-PRRXEPHP.mjs} +1 -1
- package/lib/{chunk-WCDAUWGY.mjs → chunk-Q4EJ7LGQ.mjs} +3 -3
- package/lib/{chunk-IQ3TASL4.mjs → chunk-Q6FQTPU4.mjs} +1 -1
- package/lib/chunk-QEFVCZML.mjs +1 -0
- package/lib/chunk-QMDG2VUU.mjs +1 -0
- package/lib/{chunk-QITRSGLL.mjs → chunk-REG3H3QQ.mjs} +1 -1
- package/lib/{chunk-C2MBX2T3.mjs → chunk-REWE5O46.mjs} +1 -1
- package/lib/{chunk-Z4E57WZW.mjs → chunk-RZ4YLRVA.mjs} +1 -1
- package/lib/{chunk-PS5EJY7K.mjs → chunk-S2DOOAGV.mjs} +2 -2
- package/lib/chunk-SJJLVXTK.mjs +1 -0
- package/lib/{chunk-YODEPF5J.mjs → chunk-SPYC565D.mjs} +2 -2
- package/lib/{chunk-HV74L2Q7.mjs → chunk-SRZY7O3J.mjs} +1 -1
- package/lib/chunk-TAXYUDZN.mjs +1 -0
- package/lib/{chunk-XY6EUXMK.mjs → chunk-TBCW3ORO.mjs} +3 -3
- package/lib/{chunk-VPDN3YT7.mjs → chunk-TELJAUBZ.mjs} +1 -1
- package/lib/{chunk-3PZ7FJRR.mjs → chunk-UESRINZG.mjs} +2 -2
- package/lib/{chunk-3AN7EUS6.mjs → chunk-UMAMF5YJ.mjs} +3 -3
- package/lib/{chunk-5T6J3A25.mjs → chunk-UUKIIB2D.mjs} +3 -3
- package/lib/{chunk-JJOP4A5Z.mjs → chunk-UXXUYCZ5.mjs} +2 -2
- package/lib/{chunk-WHD26MUV.mjs → chunk-VYZ76EPZ.mjs} +2 -2
- package/lib/{chunk-Y4ZMPV3Q.mjs → chunk-WM3KXXQX.mjs} +1 -1
- package/lib/{chunk-NXCRO4B2.mjs → chunk-WZNAXR6Q.mjs} +2 -2
- package/lib/{chunk-IJKRPVB7.mjs → chunk-XQJMHLCD.mjs} +1 -1
- package/lib/{chunk-RHXKAFKN.mjs → chunk-XYFBDF32.mjs} +2 -2
- package/lib/chunk-Y3ROARMA.mjs +1 -0
- package/lib/{chunk-ZKBRHO6C.mjs → chunk-YORBTFM6.mjs} +4 -4
- package/lib/{chunk-YS4SPJEP.mjs → chunk-Z6YBOKUS.mjs} +2 -2
- package/lib/components/accordion/index.native.mjs +7 -7
- package/lib/components/accordion/item/AccordionItem.native.mjs +4 -4
- package/lib/components/accordion/item/index.native.mjs +4 -4
- package/lib/components/alert/Alert.mjs +3 -2
- package/lib/components/alert/Alert.native.mjs +10 -10
- package/lib/components/alert/index.mjs +3 -2
- package/lib/components/alert/index.native.mjs +10 -10
- package/lib/components/autocomplete/AutoComplete.mjs +6 -5
- package/lib/components/autocomplete/AutoComplete.native.mjs +12 -12
- package/lib/components/autocomplete/index.mjs +6 -5
- package/lib/components/autocomplete/index.native.mjs +12 -12
- package/lib/components/autocomplete/item/AutoCompleteIem.native.mjs +4 -4
- package/lib/components/autocomplete/item/index.native.mjs +4 -4
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.mjs +9 -9
- package/lib/components/autocomplete/menu/index.native.mjs +9 -9
- package/lib/components/autolayout/index.mjs +3 -3
- package/lib/components/badge/Badge.mjs +2 -1
- package/lib/components/badge/Badge.native.mjs +7 -7
- package/lib/components/badge/index.mjs +2 -1
- package/lib/components/badge/index.native.mjs +7 -7
- package/lib/components/box/Box.native.mjs +2 -2
- package/lib/components/box/footer/BoxFooter.native.mjs +6 -6
- package/lib/components/box/footer/index.native.mjs +6 -6
- package/lib/components/box/header/BoxHeader.native.mjs +2 -2
- package/lib/components/box/header/index.native.mjs +2 -2
- package/lib/components/box/index.native.mjs +10 -10
- package/lib/components/breadcrumb/Breadcrumb.native.mjs +4 -4
- package/lib/components/breadcrumb/index.mjs +4 -2
- package/lib/components/breadcrumb/index.native.mjs +7 -7
- package/lib/components/breadcrumb/item/BreadcrumbItem.mjs +4 -2
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.mjs +4 -4
- package/lib/components/breadcrumb/item/index.mjs +4 -2
- package/lib/components/breadcrumb/item/index.native.mjs +4 -4
- package/lib/components/button/Button.mjs +2 -1
- package/lib/components/button/Button.native.mjs +7 -7
- package/lib/components/button/index.mjs +2 -1
- package/lib/components/button/index.native.mjs +7 -7
- package/lib/components/card/Card.native.mjs +2 -2
- package/lib/components/card/content/CardContent.native.mjs +3 -3
- package/lib/components/card/content/index.native.mjs +3 -3
- package/lib/components/card/image/CardImage.native.mjs +3 -3
- package/lib/components/card/image/index.native.mjs +3 -3
- package/lib/components/card/index.native.mjs +6 -6
- package/lib/components/checkbox/Checkbox.native.mjs +6 -6
- package/lib/components/checkbox/index.mjs +8 -6
- package/lib/components/checkbox/index.native.mjs +12 -11
- package/lib/components/checkbox/list/CheckboxList.mjs +6 -5
- package/lib/components/checkbox/list/index.mjs +6 -5
- package/lib/components/checkbox/tiles/tile/CheckboxTile.mjs +8 -6
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.mjs +11 -10
- package/lib/components/checkbox/tiles/tile/CheckboxTileProps.d.mts +1 -1
- package/lib/components/checkbox/tiles/tile/CheckboxTileProps.d.ts +1 -1
- package/lib/components/checkbox/tiles/tile/CheckboxTileProps.mjs +1 -0
- package/lib/components/checkbox/tiles/tile/index.d.mts +1 -0
- package/lib/components/checkbox/tiles/tile/index.d.ts +1 -0
- package/lib/components/checkbox/tiles/tile/index.mjs +9 -6
- package/lib/components/checkbox/tiles/tile/index.native.d.mts +1 -0
- package/lib/components/checkbox/tiles/tile/index.native.d.ts +1 -0
- package/lib/components/checkbox/tiles/tile/index.native.mjs +12 -10
- package/lib/components/chips/Chips.native.mjs +6 -6
- package/lib/components/chips/index.native.mjs +6 -6
- package/lib/components/columns/column/Column.native.mjs +6 -6
- package/lib/components/columns/column/index.native.mjs +6 -6
- package/lib/components/columns/index.native.mjs +6 -6
- package/lib/components/countdown/Countdown.native.mjs +4 -4
- package/lib/components/countdown/index.native.mjs +4 -4
- package/lib/components/divider/Divider.mjs +2 -1
- package/lib/components/divider/Divider.native.mjs +6 -6
- package/lib/components/divider/index.mjs +2 -1
- package/lib/components/divider/index.native.mjs +6 -6
- package/lib/components/fab/Fab.mjs +2 -1
- package/lib/components/fab/Fab.native.mjs +8 -8
- package/lib/components/fab/index.mjs +2 -1
- package/lib/components/fab/index.native.mjs +8 -8
- package/lib/components/flex-box/FlexBox.native.mjs +6 -6
- package/lib/components/flex-box/index.native.mjs +6 -6
- package/lib/components/hero/Hero.native.mjs +9 -9
- package/lib/components/hero/index.native.mjs +9 -9
- package/lib/components/icon/Icon.native.mjs +2 -2
- package/lib/components/icon/index.d.mts +1 -0
- package/lib/components/icon/index.d.ts +1 -0
- package/lib/components/icon/index.mjs +2 -1
- package/lib/components/icon/index.native.mjs +3 -3
- package/lib/components/image/Image.mjs +6 -5
- package/lib/components/image/index.mjs +6 -5
- package/lib/components/index.js +75 -75
- package/lib/components/index.mjs +39 -32
- package/lib/components/index.native.mjs +94 -89
- package/lib/components/input/Input.mjs +6 -5
- package/lib/components/input/Input.native.mjs +9 -9
- package/lib/components/input/gauge/InputGauge.mjs +6 -5
- package/lib/components/input/gauge/InputGauge.native.mjs +8 -8
- package/lib/components/input/gauge/hook/useGauge.mjs +6 -5
- package/lib/components/input/gauge/hook/useGauge.native.mjs +6 -6
- package/lib/components/input/index.mjs +6 -5
- package/lib/components/input/index.native.mjs +9 -9
- package/lib/components/link/Link.mjs +2 -1
- package/lib/components/link/Link.native.mjs +4 -4
- package/lib/components/link/LinkProps.d.mts +4 -2
- package/lib/components/link/LinkProps.d.ts +4 -2
- package/lib/components/link/LinkProps.mjs +1 -0
- package/lib/components/link/index.d.mts +1 -0
- package/lib/components/link/index.d.ts +1 -0
- package/lib/components/link/index.mjs +4 -2
- package/lib/components/link/index.native.d.mts +1 -0
- package/lib/components/link/index.native.d.ts +1 -0
- package/lib/components/link/index.native.mjs +6 -5
- package/lib/components/list/index.mjs +6 -5
- package/lib/components/list/index.native.mjs +9 -9
- package/lib/components/list/item/ListItem.mjs +6 -5
- package/lib/components/list/item/ListItem.native.mjs +8 -8
- package/lib/components/list/item/description/ListItemDescription.native.mjs +8 -8
- package/lib/components/list/item/description/index.native.mjs +8 -8
- package/lib/components/list/item/index.mjs +6 -5
- package/lib/components/list/item/index.native.mjs +9 -9
- package/lib/components/modal/Modal.mjs +3 -2
- package/lib/components/modal/Modal.native.mjs +9 -9
- package/lib/components/modal/body/ModalBody.native.mjs +6 -6
- package/lib/components/modal/body/index.native.mjs +6 -6
- package/lib/components/modal/footer/ModalFooter.native.mjs +9 -9
- package/lib/components/modal/footer/index.native.mjs +9 -9
- package/lib/components/modal/index.mjs +3 -2
- package/lib/components/modal/index.native.mjs +11 -11
- package/lib/components/otp/Otp.mjs +1 -1
- package/lib/components/otp/Otp.native.mjs +10 -10
- package/lib/components/otp/index.mjs +1 -1
- package/lib/components/otp/index.native.mjs +10 -10
- package/lib/components/pagination/Pagination.mjs +2 -1
- package/lib/components/pagination/Pagination.native.mjs +6 -6
- package/lib/components/pagination/index.mjs +2 -1
- package/lib/components/pagination/index.native.mjs +6 -6
- package/lib/components/popover/Popover.native.mjs +6 -6
- package/lib/components/popover/index.native.mjs +6 -6
- package/lib/components/price/Price.mjs +6 -5
- package/lib/components/price/Price.native.mjs +7 -7
- package/lib/components/price/index.mjs +6 -5
- package/lib/components/price/index.native.mjs +7 -7
- package/lib/components/product-tour/ProductTour.mjs +2 -1
- package/lib/components/product-tour/index.mjs +2 -1
- package/lib/components/progress/Progress.mjs +6 -5
- package/lib/components/progress/Progress.native.mjs +8 -8
- package/lib/components/progress/index.mjs +8 -7
- package/lib/components/progress/index.native.mjs +9 -9
- package/lib/components/progress/item/ProgressItem.mjs +6 -5
- package/lib/components/progress/item/index.mjs +6 -5
- package/lib/components/progress/radial/ProgressRadial.mjs +1 -1
- package/lib/components/progress/radial/ProgressRadial.native.mjs +8 -8
- package/lib/components/progress/radial/index.mjs +1 -1
- package/lib/components/progress/radial/index.native.mjs +8 -8
- package/lib/components/radio/Radio.native.mjs +8 -8
- package/lib/components/radio/RadioProps.d.mts +1 -1
- package/lib/components/radio/RadioProps.d.ts +1 -1
- package/lib/components/radio/index.mjs +11 -9
- package/lib/components/radio/index.native.mjs +12 -11
- package/lib/components/radio/list/RadioList.mjs +6 -5
- package/lib/components/radio/list/index.mjs +6 -5
- package/lib/components/radio/tiles/RadioTiles.mjs +6 -5
- package/lib/components/radio/tiles/index.mjs +6 -5
- package/lib/components/radio/tiles/tile/RadioTile.mjs +8 -6
- package/lib/components/radio/tiles/tile/RadioTile.native.mjs +11 -10
- package/lib/components/radio/tiles/tile/RadioTileProps.d.mts +1 -1
- package/lib/components/radio/tiles/tile/RadioTileProps.d.ts +1 -1
- package/lib/components/radio/tiles/tile/RadioTileProps.mjs +1 -0
- package/lib/components/radio/tiles/tile/index.d.mts +1 -0
- package/lib/components/radio/tiles/tile/index.d.ts +1 -0
- package/lib/components/radio/tiles/tile/index.mjs +9 -6
- package/lib/components/radio/tiles/tile/index.native.d.mts +1 -0
- package/lib/components/radio/tiles/tile/index.native.d.ts +1 -0
- package/lib/components/radio/tiles/tile/index.native.mjs +12 -10
- package/lib/components/range/Range.mjs +6 -5
- package/lib/components/range/Range.native.mjs +8 -8
- package/lib/components/range/index.mjs +6 -5
- package/lib/components/range/index.native.mjs +8 -8
- package/lib/components/scroll-view/ScrollView.mjs +6 -5
- package/lib/components/scroll-view/ScrollView.native.mjs +6 -6
- package/lib/components/scroll-view/index.mjs +6 -5
- package/lib/components/scroll-view/index.native.mjs +6 -6
- package/lib/components/section/Section.mjs +6 -5
- package/lib/components/section/Section.native.mjs +6 -6
- package/lib/components/section/index.mjs +6 -5
- package/lib/components/section/index.native.mjs +6 -6
- package/lib/components/segment-control/SegmentControl.mjs +6 -5
- package/lib/components/segment-control/SegmentControl.native.mjs +8 -8
- package/lib/components/segment-control/index.mjs +6 -5
- package/lib/components/segment-control/index.native.mjs +8 -8
- package/lib/components/select/Select.mjs +9 -7
- package/lib/components/select/Select.native.mjs +18 -17
- package/lib/components/select/index.mjs +10 -8
- package/lib/components/select/index.native.mjs +18 -17
- package/lib/components/select/option/SelectOption.mjs +2 -1
- package/lib/components/select/option/SelectOption.native.mjs +8 -8
- package/lib/components/select/option/SelectOptionProps.d.mts +4 -3
- package/lib/components/select/option/SelectOptionProps.d.ts +4 -3
- package/lib/components/select/option/SelectOptionProps.mjs +1 -0
- package/lib/components/select/option/index.d.mts +1 -0
- package/lib/components/select/option/index.d.ts +1 -0
- package/lib/components/select/option/index.mjs +4 -2
- package/lib/components/select/option/index.native.d.mts +1 -0
- package/lib/components/select/option/index.native.d.ts +1 -0
- package/lib/components/select/option/index.native.mjs +10 -9
- package/lib/components/select/web/SelectDynamic.mjs +6 -5
- package/lib/components/select/web/SelectNative.mjs +9 -7
- package/lib/components/select/web/index.mjs +9 -7
- package/lib/components/stepper/Stepper.native.mjs +8 -8
- package/lib/components/stepper/index.js +3 -3
- package/lib/components/stepper/index.mjs +4 -2
- package/lib/components/stepper/index.native.mjs +8 -8
- package/lib/components/stepper/step/Step.mjs +2 -1
- package/lib/components/stepper/step/Step.native.mjs +6 -6
- package/lib/components/stepper/step/StepProps.d.mts +1 -1
- package/lib/components/stepper/step/StepProps.d.ts +1 -1
- package/lib/components/stepper/step/StepProps.mjs +1 -0
- package/lib/components/stepper/step/index.d.mts +2 -0
- package/lib/components/stepper/step/index.d.ts +2 -0
- package/lib/components/stepper/step/index.js +14 -0
- package/lib/components/stepper/step/index.mjs +8 -2
- package/lib/components/stepper/step/index.native.d.mts +2 -0
- package/lib/components/stepper/step/index.native.d.ts +2 -0
- package/lib/components/stepper/step/index.native.js +14 -0
- package/lib/components/stepper/step/index.native.mjs +11 -6
- package/lib/components/sticker/Sticker.mjs +6 -5
- package/lib/components/sticker/Sticker.native.mjs +8 -8
- package/lib/components/sticker/{StickerProps.d.mts → StickerProps/index.d.mts} +4 -4
- package/lib/components/sticker/{StickerProps.d.ts → StickerProps/index.d.ts} +4 -4
- package/lib/components/sticker/{StickerProps.js → StickerProps/index.js} +1 -1
- package/lib/components/sticker/StickerProps/index.mjs +2 -0
- package/lib/components/sticker/StickerProps/index.native.d.mts +12 -0
- package/lib/components/sticker/StickerProps/index.native.d.ts +12 -0
- package/lib/components/sticker/StickerProps/index.native.js +19 -0
- package/lib/components/sticker/StickerProps/index.native.mjs +2 -0
- package/lib/components/sticker/index.d.mts +1 -0
- package/lib/components/sticker/index.d.ts +1 -0
- package/lib/components/sticker/index.mjs +8 -6
- package/lib/components/sticker/index.native.d.mts +1 -0
- package/lib/components/sticker/index.native.d.ts +1 -0
- package/lib/components/sticker/index.native.mjs +10 -9
- package/lib/components/switch/Switch.mjs +6 -5
- package/lib/components/switch/Switch.native.mjs +6 -6
- package/lib/components/switch/index.mjs +6 -5
- package/lib/components/switch/index.native.mjs +6 -6
- package/lib/components/table/Table.native.mjs +6 -6
- package/lib/components/table/index.native.mjs +11 -11
- package/lib/components/table/td/TableTd.native.mjs +6 -6
- package/lib/components/table/td/index.native.mjs +6 -6
- package/lib/components/table/th/TableTh.native.mjs +8 -8
- package/lib/components/table/th/index.native.mjs +8 -8
- package/lib/components/table/tr/TableTr.native.mjs +8 -8
- package/lib/components/table/tr/index.native.mjs +8 -8
- package/lib/components/tabs/TabsProps.mjs +1 -0
- package/lib/components/tabs/index.d.mts +4 -3
- package/lib/components/tabs/index.d.ts +4 -3
- package/lib/components/tabs/index.js +87 -87
- package/lib/components/tabs/index.mjs +10 -8
- package/lib/components/tabs/index.native.d.mts +1 -0
- package/lib/components/tabs/index.native.d.ts +1 -0
- package/lib/components/tabs/index.native.mjs +11 -10
- package/lib/components/tabs/tab-list/TabList.mjs +2 -1
- package/lib/components/tabs/tab-list/TabList.native.mjs +9 -9
- package/lib/components/tabs/tab-list/index.mjs +2 -1
- package/lib/components/tabs/tab-list/index.native.mjs +9 -9
- package/lib/components/tabs/tab-list/tab/Tab.mjs +2 -1
- package/lib/components/tabs/tab-list/tab/Tab.native.mjs +6 -6
- package/lib/components/tabs/tab-list/tab/TabProps.mjs +1 -0
- package/lib/components/tabs/tab-list/tab/index.d.mts +1 -0
- package/lib/components/tabs/tab-list/tab/index.d.ts +1 -0
- package/lib/components/tabs/tab-list/tab/index.mjs +3 -1
- package/lib/components/tabs/tab-list/tab/index.native.d.mts +1 -0
- package/lib/components/tabs/tab-list/tab/index.native.d.ts +1 -0
- package/lib/components/tabs/tab-list/tab/index.native.mjs +7 -6
- package/lib/components/tabs/tab-panels/TabPanels.native.mjs +6 -6
- package/lib/components/tabs/tab-panels/index.native.mjs +6 -6
- package/lib/components/tag/Tag.mjs +2 -1
- package/lib/components/tag/Tag.native.mjs +4 -4
- package/lib/components/tag/index.mjs +6 -5
- package/lib/components/tag/index.native.mjs +9 -9
- package/lib/components/tag/list/TagList.mjs +6 -5
- package/lib/components/tag/list/index.mjs +6 -5
- package/lib/components/text/Text.native.mjs +3 -3
- package/lib/components/text/index.native.mjs +3 -3
- package/lib/components/textarea/Textarea.mjs +6 -5
- package/lib/components/textarea/Textarea.native.mjs +8 -8
- package/lib/components/textarea/index.mjs +6 -5
- package/lib/components/textarea/index.native.mjs +8 -8
- package/lib/components/timeline/TimelineProps.mjs +1 -0
- package/lib/components/timeline/content/TimelineContent.mjs +4 -2
- package/lib/components/timeline/content/TimelineContent.native.mjs +11 -10
- package/lib/components/timeline/content/index.mjs +4 -2
- package/lib/components/timeline/content/index.native.mjs +11 -10
- package/lib/components/timeline/index.d.mts +2 -1
- package/lib/components/timeline/index.d.ts +2 -1
- package/lib/components/timeline/index.mjs +10 -7
- package/lib/components/timeline/index.native.d.mts +1 -0
- package/lib/components/timeline/index.native.d.ts +1 -0
- package/lib/components/timeline/index.native.mjs +15 -13
- package/lib/components/timeline/item/index.mjs +1 -1
- package/lib/components/timeline/marker/TimelineMarker.mjs +2 -1
- package/lib/components/timeline/marker/TimelineMarker.native.mjs +7 -7
- package/lib/components/timeline/marker/index.mjs +2 -1
- package/lib/components/timeline/marker/index.native.mjs +8 -8
- package/lib/components/title/Title.native.mjs +7 -7
- package/lib/components/title/index.mjs +1 -1
- package/lib/components/title/index.native.mjs +8 -8
- package/lib/components/view/View.mjs +6 -5
- package/lib/components/view/View.native.mjs +6 -6
- package/lib/components/view/index.mjs +6 -5
- package/lib/components/view/index.native.mjs +6 -6
- package/lib/context/provider/index.js +1 -1
- package/lib/context/provider/index.mjs +2 -2
- package/lib/context/test/provider.test.js +1 -1
- package/lib/context/test/provider.test.mjs +2 -2
- package/lib/index.js +76 -76
- package/lib/index.mjs +43 -36
- package/lib/index.native.js +1 -1
- package/lib/index.native.mjs +98 -93
- package/lib/objects/Typography/index.mjs +3 -3
- package/lib/objects/Typography/index.native.mjs +3 -3
- package/lib/objects/facets/Status/index.mjs +2 -1
- package/lib/objects/facets/Status/index.native.mjs +3 -3
- package/lib/objects/facets/index.mjs +4 -3
- package/lib/objects/facets/index.native.mjs +5 -5
- package/lib/objects/index.mjs +8 -7
- package/lib/objects/index.native.mjs +8 -8
- package/lib/version.d.mts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.mjs +1 -1
- package/package.json +1 -1
- package/lib/components/sticker/StickerPropsDefaults.js +0 -107
- package/lib/{chunk-RPXUKVT4.mjs → chunk-2AL4D3MJ.mjs} +3 -3
- package/lib/{chunk-22RRO4UK.mjs → chunk-4CECZ57P.mjs} +0 -0
- package/lib/{chunk-5HT5JYKR.mjs → chunk-5UNNKE7R.mjs} +0 -0
- package/lib/{chunk-CE4NLNBM.mjs → chunk-7GXWOZJB.mjs} +0 -0
- package/lib/{chunk-JM27ZQM7.mjs → chunk-AK2SCURT.mjs} +3 -3
- package/lib/{chunk-MDAPUQYL.mjs → chunk-AMKZNB5D.mjs} +3 -3
- package/lib/{chunk-CRKTC32Z.mjs → chunk-CHO6M6KC.mjs} +0 -0
- package/lib/{chunk-HBXKX5DT.mjs → chunk-CJ5KD75M.mjs} +0 -0
- package/lib/{chunk-OBANZQ7B.mjs → chunk-CK3JZVFI.mjs} +0 -0
- package/lib/{chunk-SEUFDQBO.mjs → chunk-CTL6JRU3.mjs} +0 -0
- package/lib/{chunk-BD3Z35IV.mjs → chunk-ELTZ3E3O.mjs} +3 -3
- package/lib/{chunk-WJ66MCM5.mjs → chunk-FMOHWRAS.mjs} +0 -0
- package/lib/{chunk-STJ5TNSE.mjs → chunk-H6FVJB5Z.mjs} +3 -3
- package/lib/{chunk-YYWCL3GN.mjs → chunk-IK3CWSC6.mjs} +0 -0
- package/lib/{components/sticker/StickerProps.mjs → chunk-JCBCIWZY.mjs} +0 -0
- package/lib/{chunk-ZIKNYPIP.mjs → chunk-KWHZZUYO.mjs} +3 -3
- package/lib/{chunk-U7SMKQNY.mjs → chunk-ORDBTUJK.mjs} +0 -0
- package/lib/{chunk-G5UO56UH.mjs → chunk-SYNRLOS5.mjs} +3 -3
- /package/lib/{chunk-I2BTIELF.mjs → chunk-YGG7NOZ7.mjs} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
TableTr_native_default
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-HLTY5AJR.mjs";
|
|
5
5
|
import "../../../chunk-O5CT6DIR.mjs";
|
|
6
6
|
import "../../../chunk-3ONIJFUC.mjs";
|
|
7
7
|
import "../../../chunk-MK63OCEA.mjs";
|
|
8
8
|
import "../../../chunk-WEGZE5OY.mjs";
|
|
9
|
-
import "../../../chunk-
|
|
9
|
+
import "../../../chunk-2AL4D3MJ.mjs";
|
|
10
10
|
import "../../../chunk-7M6BHGK7.mjs";
|
|
11
11
|
import "../../../chunk-VNWHCGCD.mjs";
|
|
12
12
|
import "../../../chunk-SJ5DUOZ6.mjs";
|
|
@@ -17,14 +17,14 @@ import "../../../chunk-KNRXLZZP.mjs";
|
|
|
17
17
|
import "../../../chunk-D5HHHZDS.mjs";
|
|
18
18
|
import "../../../chunk-2CYVOYRM.mjs";
|
|
19
19
|
import "../../../chunk-7L5452RP.mjs";
|
|
20
|
-
import "../../../chunk-
|
|
21
|
-
import "../../../chunk-YK5HPRX4.mjs";
|
|
22
|
-
import "../../../chunk-VI2KFLCZ.mjs";
|
|
20
|
+
import "../../../chunk-H6FVJB5Z.mjs";
|
|
23
21
|
import "../../../chunk-CWIO3GEP.mjs";
|
|
22
|
+
import "../../../chunk-VI2KFLCZ.mjs";
|
|
24
23
|
import "../../../chunk-R6PFY5VS.mjs";
|
|
25
24
|
import "../../../chunk-LUYCGMYG.mjs";
|
|
26
25
|
import "../../../chunk-P6NVOAAH.mjs";
|
|
27
26
|
import "../../../chunk-RXBVZD3M.mjs";
|
|
27
|
+
import "../../../chunk-A2ASOVUR.mjs";
|
|
28
28
|
import "../../../chunk-3XMSRU64.mjs";
|
|
29
29
|
import "../../../chunk-L5TMSDJR.mjs";
|
|
30
30
|
import "../../../chunk-GP5CJGRF.mjs";
|
|
@@ -35,12 +35,12 @@ import "../../../chunk-HQXKHRER.mjs";
|
|
|
35
35
|
import "../../../chunk-NVH4ZPGW.mjs";
|
|
36
36
|
import "../../../chunk-62DJK35E.mjs";
|
|
37
37
|
import "../../../chunk-PAEZ47M2.mjs";
|
|
38
|
-
import "../../../chunk-A2ASOVUR.mjs";
|
|
39
38
|
import "../../../chunk-FTTU4DJW.mjs";
|
|
40
39
|
import "../../../chunk-L7CNF7H6.mjs";
|
|
41
40
|
import "../../../chunk-RJO5KKUW.mjs";
|
|
42
41
|
import "../../../chunk-R7HI6GOP.mjs";
|
|
43
42
|
import "../../../chunk-SUNBSFL4.mjs";
|
|
43
|
+
import "../../../chunk-XIQL4ZTN.mjs";
|
|
44
44
|
import "../../../chunk-UUXUTBLZ.mjs";
|
|
45
45
|
import "../../../chunk-QOEJLTZN.mjs";
|
|
46
46
|
import "../../../chunk-B6WC6WS2.mjs";
|
|
@@ -48,14 +48,14 @@ import "../../../chunk-K2VWHGPL.mjs";
|
|
|
48
48
|
import "../../../chunk-6BTWLQPI.mjs";
|
|
49
49
|
import "../../../chunk-G6BHSMLA.mjs";
|
|
50
50
|
import "../../../chunk-THOTRBD4.mjs";
|
|
51
|
-
import "../../../chunk-
|
|
51
|
+
import "../../../chunk-ATW7ITPH.mjs";
|
|
52
52
|
import "../../../chunk-IGMJNGTZ.mjs";
|
|
53
53
|
import "../../../chunk-5QUXSOHX.mjs";
|
|
54
|
-
import "../../../chunk-ATW7ITPH.mjs";
|
|
55
54
|
import "../../../chunk-L4UDEKQK.mjs";
|
|
56
55
|
import "../../../chunk-P372ZF3A.mjs";
|
|
57
56
|
import "../../../chunk-HV6TXVFA.mjs";
|
|
58
57
|
import "../../../chunk-CYNSXZSV.mjs";
|
|
58
|
+
import "../../../chunk-YK5HPRX4.mjs";
|
|
59
59
|
import "../../../chunk-4ZJQXF2V.mjs";
|
|
60
60
|
import "../../../chunk-4UHBBNZ7.mjs";
|
|
61
61
|
import "../../../chunk-NTS75UVH.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
TableTr_native_default
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-HLTY5AJR.mjs";
|
|
5
5
|
import "../../../chunk-O5CT6DIR.mjs";
|
|
6
6
|
import "../../../chunk-3ONIJFUC.mjs";
|
|
7
7
|
import "../../../chunk-MK63OCEA.mjs";
|
|
8
8
|
import "../../../chunk-WEGZE5OY.mjs";
|
|
9
|
-
import "../../../chunk-
|
|
9
|
+
import "../../../chunk-2AL4D3MJ.mjs";
|
|
10
10
|
import "../../../chunk-7M6BHGK7.mjs";
|
|
11
11
|
import "../../../chunk-VNWHCGCD.mjs";
|
|
12
12
|
import "../../../chunk-SJ5DUOZ6.mjs";
|
|
@@ -17,14 +17,14 @@ import "../../../chunk-KNRXLZZP.mjs";
|
|
|
17
17
|
import "../../../chunk-D5HHHZDS.mjs";
|
|
18
18
|
import "../../../chunk-2CYVOYRM.mjs";
|
|
19
19
|
import "../../../chunk-7L5452RP.mjs";
|
|
20
|
-
import "../../../chunk-
|
|
21
|
-
import "../../../chunk-YK5HPRX4.mjs";
|
|
22
|
-
import "../../../chunk-VI2KFLCZ.mjs";
|
|
20
|
+
import "../../../chunk-H6FVJB5Z.mjs";
|
|
23
21
|
import "../../../chunk-CWIO3GEP.mjs";
|
|
22
|
+
import "../../../chunk-VI2KFLCZ.mjs";
|
|
24
23
|
import "../../../chunk-R6PFY5VS.mjs";
|
|
25
24
|
import "../../../chunk-LUYCGMYG.mjs";
|
|
26
25
|
import "../../../chunk-P6NVOAAH.mjs";
|
|
27
26
|
import "../../../chunk-RXBVZD3M.mjs";
|
|
27
|
+
import "../../../chunk-A2ASOVUR.mjs";
|
|
28
28
|
import "../../../chunk-3XMSRU64.mjs";
|
|
29
29
|
import "../../../chunk-L5TMSDJR.mjs";
|
|
30
30
|
import "../../../chunk-GP5CJGRF.mjs";
|
|
@@ -35,12 +35,12 @@ import "../../../chunk-HQXKHRER.mjs";
|
|
|
35
35
|
import "../../../chunk-NVH4ZPGW.mjs";
|
|
36
36
|
import "../../../chunk-62DJK35E.mjs";
|
|
37
37
|
import "../../../chunk-PAEZ47M2.mjs";
|
|
38
|
-
import "../../../chunk-A2ASOVUR.mjs";
|
|
39
38
|
import "../../../chunk-FTTU4DJW.mjs";
|
|
40
39
|
import "../../../chunk-L7CNF7H6.mjs";
|
|
41
40
|
import "../../../chunk-RJO5KKUW.mjs";
|
|
42
41
|
import "../../../chunk-R7HI6GOP.mjs";
|
|
43
42
|
import "../../../chunk-SUNBSFL4.mjs";
|
|
43
|
+
import "../../../chunk-XIQL4ZTN.mjs";
|
|
44
44
|
import "../../../chunk-UUXUTBLZ.mjs";
|
|
45
45
|
import "../../../chunk-QOEJLTZN.mjs";
|
|
46
46
|
import "../../../chunk-B6WC6WS2.mjs";
|
|
@@ -48,14 +48,14 @@ import "../../../chunk-K2VWHGPL.mjs";
|
|
|
48
48
|
import "../../../chunk-6BTWLQPI.mjs";
|
|
49
49
|
import "../../../chunk-G6BHSMLA.mjs";
|
|
50
50
|
import "../../../chunk-THOTRBD4.mjs";
|
|
51
|
-
import "../../../chunk-
|
|
51
|
+
import "../../../chunk-ATW7ITPH.mjs";
|
|
52
52
|
import "../../../chunk-IGMJNGTZ.mjs";
|
|
53
53
|
import "../../../chunk-5QUXSOHX.mjs";
|
|
54
|
-
import "../../../chunk-ATW7ITPH.mjs";
|
|
55
54
|
import "../../../chunk-L4UDEKQK.mjs";
|
|
56
55
|
import "../../../chunk-P372ZF3A.mjs";
|
|
57
56
|
import "../../../chunk-HV6TXVFA.mjs";
|
|
58
57
|
import "../../../chunk-CYNSXZSV.mjs";
|
|
58
|
+
import "../../../chunk-YK5HPRX4.mjs";
|
|
59
59
|
import "../../../chunk-4ZJQXF2V.mjs";
|
|
60
60
|
import "../../../chunk-4UHBBNZ7.mjs";
|
|
61
61
|
import "../../../chunk-NTS75UVH.mjs";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Tabs from './Tabs';
|
|
2
|
-
import TabPanels from './tab-panels/TabPanels';
|
|
3
|
-
import TabPanel from './tab-panels/tab-panel/TabPanel';
|
|
4
2
|
import TabList from './tab-list/TabList';
|
|
5
3
|
import Tab from './tab-list/tab/Tab';
|
|
6
|
-
|
|
4
|
+
import TabPanels from './tab-panels/TabPanels';
|
|
5
|
+
import TabPanel from './tab-panels/tab-panel/TabPanel';
|
|
6
|
+
export * from './TabsProps';
|
|
7
|
+
export { Tab, TabList, TabPanel, TabPanels, Tabs };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Tabs from './Tabs';
|
|
2
|
-
import TabPanels from './tab-panels/TabPanels';
|
|
3
|
-
import TabPanel from './tab-panels/tab-panel/TabPanel';
|
|
4
2
|
import TabList from './tab-list/TabList';
|
|
5
3
|
import Tab from './tab-list/tab/Tab';
|
|
6
|
-
|
|
4
|
+
import TabPanels from './tab-panels/TabPanels';
|
|
5
|
+
import TabPanel from './tab-panels/tab-panel/TabPanel';
|
|
6
|
+
export * from './TabsProps';
|
|
7
|
+
export { Tab, TabList, TabPanel, TabPanels, Tabs };
|
|
@@ -113,38 +113,6 @@ var Tabs = import_react2.default.forwardRef(
|
|
|
113
113
|
Tabs.displayName = "Tabs" /* Tabs */;
|
|
114
114
|
var Tabs_default = Tabs;
|
|
115
115
|
|
|
116
|
-
// components/tabs/tab-panels/tab-panel/TabPanel.tsx
|
|
117
|
-
var import_clsx2 = __toESM(require("clsx"));
|
|
118
|
-
var import_react3 = __toESM(require("react"));
|
|
119
|
-
var TabPanel = import_react3.default.forwardRef(({ children, className, testId, ...others }, ref) => {
|
|
120
|
-
const { styled } = useTrilogyContext();
|
|
121
|
-
const { index, ...props } = others;
|
|
122
|
-
const { activeIndex } = import_react3.default.useContext(TabsContext);
|
|
123
|
-
const classes = hashClass(styled, (0, import_clsx2.default)("tab-panel", index === activeIndex && is("active"), className));
|
|
124
|
-
return /* @__PURE__ */ import_react3.default.createElement("div", { ref, "data-testid": testId, className: classes, ...props }, children);
|
|
125
|
-
});
|
|
126
|
-
TabPanel.displayName = "TabPanel" /* TabPanel */;
|
|
127
|
-
var TabPanel_default = TabPanel;
|
|
128
|
-
|
|
129
|
-
// components/tabs/tab-panels/tab-panel/index.ts
|
|
130
|
-
var tab_panel_default = TabPanel_default;
|
|
131
|
-
|
|
132
|
-
// components/tabs/tab-panels/TabPanels.tsx
|
|
133
|
-
var import_clsx3 = __toESM(require("clsx"));
|
|
134
|
-
var import_react4 = __toESM(require("react"));
|
|
135
|
-
var TabPanels = import_react4.default.forwardRef(
|
|
136
|
-
({ children, className, id, testId, ...others }, ref) => {
|
|
137
|
-
const { styled } = useTrilogyContext();
|
|
138
|
-
const classes = hashClass(styled, (0, import_clsx3.default)("tab-panels", className));
|
|
139
|
-
return /* @__PURE__ */ import_react4.default.createElement("div", { ref, id, "data-testid": testId, className: classes, ...others }, import_react4.default.Children.map(children, (child, index) => {
|
|
140
|
-
if (!import_react4.default.isValidElement(child)) return false;
|
|
141
|
-
return /* @__PURE__ */ import_react4.default.createElement(tab_panel_default, { ...child.props, index });
|
|
142
|
-
}));
|
|
143
|
-
}
|
|
144
|
-
);
|
|
145
|
-
TabPanels.displayName = "TabPanels" /* TabPanels */;
|
|
146
|
-
var TabPanels_default = TabPanels;
|
|
147
|
-
|
|
148
116
|
// helpers/device/index.ts
|
|
149
117
|
var Device = /* @__PURE__ */ ((Device2) => {
|
|
150
118
|
Device2["Browser"] = "browser";
|
|
@@ -171,7 +139,7 @@ var toArrayObject = () => assign((values(SSRObjectDefined), SSRObjectDefined));
|
|
|
171
139
|
var SSRObject = toArrayObject();
|
|
172
140
|
|
|
173
141
|
// context/providerTheme/index.tsx
|
|
174
|
-
var
|
|
142
|
+
var import_react3 = __toESM(require("react"));
|
|
175
143
|
var defaultTheme = {
|
|
176
144
|
icons: {},
|
|
177
145
|
colors: {},
|
|
@@ -181,10 +149,10 @@ var defaultContextValue = {
|
|
|
181
149
|
theme: defaultTheme,
|
|
182
150
|
setTheme: () => void 0
|
|
183
151
|
};
|
|
184
|
-
var TrilogyThemeContext =
|
|
152
|
+
var TrilogyThemeContext = import_react3.default.createContext(defaultContextValue);
|
|
185
153
|
|
|
186
154
|
// objects/facets/Color/index.tsx
|
|
187
|
-
var
|
|
155
|
+
var import_react4 = require("react");
|
|
188
156
|
var colors = {
|
|
189
157
|
["WHITE" /* BACKGROUND */]: ["#fff", "white", "main"],
|
|
190
158
|
["MAIN" /* MAIN */]: ["#3d5d7e", "main", "white"],
|
|
@@ -231,15 +199,15 @@ var getJustifySelfClassName = (justifyContent) => {
|
|
|
231
199
|
};
|
|
232
200
|
|
|
233
201
|
// components/icon/Icon.tsx
|
|
234
|
-
var
|
|
235
|
-
var
|
|
236
|
-
var Icon =
|
|
202
|
+
var import_clsx2 = __toESM(require("clsx"));
|
|
203
|
+
var React5 = __toESM(require("react"));
|
|
204
|
+
var Icon = React5.forwardRef(
|
|
237
205
|
({ className, id, size, name, circled, stretched, color, backgroundColor, onClick, skeleton, align, ...others }, ref) => {
|
|
238
206
|
const { styled } = useTrilogyContext();
|
|
239
207
|
const background = backgroundColor && has(getBackgroundClassName(backgroundColor)) || circled && has(getBackgroundClassName("MAIN" /* MAIN */)) || "";
|
|
240
208
|
const classes = hashClass(
|
|
241
209
|
styled,
|
|
242
|
-
(0,
|
|
210
|
+
(0, import_clsx2.default)(
|
|
243
211
|
"icon",
|
|
244
212
|
stretched && is("stretched"),
|
|
245
213
|
size && is(size),
|
|
@@ -247,20 +215,20 @@ var Icon = React7.forwardRef(
|
|
|
247
215
|
circled && !color && has("text-white"),
|
|
248
216
|
color && is(`${getColorClassName(color)}`),
|
|
249
217
|
skeleton && is("loading"),
|
|
250
|
-
align && (0,
|
|
218
|
+
align && (0, import_clsx2.default)(is("flex"), is(getJustifySelfClassName(align))),
|
|
251
219
|
background,
|
|
252
220
|
className
|
|
253
221
|
)
|
|
254
222
|
);
|
|
255
|
-
return /* @__PURE__ */
|
|
223
|
+
return /* @__PURE__ */ React5.createElement("span", { id, onClick: onClick && onClick, className: classes, ...others, ref }, /* @__PURE__ */ React5.createElement("i", { className: hashClass(styled, (0, import_clsx2.default)(name)), "aria-hidden": "true" }));
|
|
256
224
|
}
|
|
257
225
|
);
|
|
258
226
|
Icon.displayName = "Icon" /* Icon */;
|
|
259
227
|
var Icon_default = Icon;
|
|
260
228
|
|
|
261
229
|
// components/text/Text.tsx
|
|
262
|
-
var
|
|
263
|
-
var
|
|
230
|
+
var React6 = __toESM(require("react"));
|
|
231
|
+
var import_clsx3 = __toESM(require("clsx"));
|
|
264
232
|
|
|
265
233
|
// components/text/TextEnum.ts
|
|
266
234
|
var TextMarkup = /* @__PURE__ */ ((TextMarkup2) => {
|
|
@@ -270,7 +238,7 @@ var TextMarkup = /* @__PURE__ */ ((TextMarkup2) => {
|
|
|
270
238
|
})(TextMarkup || {});
|
|
271
239
|
|
|
272
240
|
// components/text/Text.tsx
|
|
273
|
-
var Text =
|
|
241
|
+
var Text = React6.forwardRef(({
|
|
274
242
|
level,
|
|
275
243
|
markup,
|
|
276
244
|
children,
|
|
@@ -303,7 +271,7 @@ var Text = React8.forwardRef(({
|
|
|
303
271
|
};
|
|
304
272
|
const classes = hashClass(
|
|
305
273
|
styled,
|
|
306
|
-
(0,
|
|
274
|
+
(0, import_clsx3.default)(
|
|
307
275
|
"text",
|
|
308
276
|
level && levelText(),
|
|
309
277
|
inverted && is("inverted"),
|
|
@@ -318,7 +286,7 @@ var Text = React8.forwardRef(({
|
|
|
318
286
|
if (stringMarkup in TextMarkup || Object.values(TextMarkup).includes(stringMarkup)) return true;
|
|
319
287
|
};
|
|
320
288
|
const Tag = markup && isCorrectMarkup(markup) ? markup : "p";
|
|
321
|
-
return /* @__PURE__ */
|
|
289
|
+
return /* @__PURE__ */ React6.createElement(
|
|
322
290
|
Tag,
|
|
323
291
|
{
|
|
324
292
|
ref,
|
|
@@ -335,17 +303,17 @@ Text.displayName = "Text" /* Text */;
|
|
|
335
303
|
var Text_default = Text;
|
|
336
304
|
|
|
337
305
|
// components/tabs/tab-list/tab/Tab.tsx
|
|
338
|
-
var
|
|
339
|
-
var
|
|
340
|
-
var Tab =
|
|
306
|
+
var import_clsx4 = __toESM(require("clsx"));
|
|
307
|
+
var import_react5 = __toESM(require("react"));
|
|
308
|
+
var Tab = import_react5.default.forwardRef(
|
|
341
309
|
({ active, className, onClick, routerLink = "a", iconName, label, disabled, testId, ariaControls, ...others }, ref) => {
|
|
342
310
|
const { styled } = useTrilogyContext();
|
|
343
311
|
const { index, ...props } = others;
|
|
344
|
-
const { activeIndex, setActiveIndex, small } =
|
|
312
|
+
const { activeIndex, setActiveIndex, small } = import_react5.default.useContext(TabsContext);
|
|
345
313
|
const Tag = others.href || others.to ? routerLink : "button";
|
|
346
|
-
const isActive =
|
|
347
|
-
const classes = hashClass(styled, (0,
|
|
348
|
-
const handleClick =
|
|
314
|
+
const isActive = import_react5.default.useMemo(() => activeIndex === index, [activeIndex, index]);
|
|
315
|
+
const classes = hashClass(styled, (0, import_clsx4.default)("tab", className, { "is-active": isActive }));
|
|
316
|
+
const handleClick = import_react5.default.useCallback(
|
|
349
317
|
(e) => {
|
|
350
318
|
if (!disabled) {
|
|
351
319
|
if (!others.href && !others.to) setActiveIndex(index);
|
|
@@ -354,10 +322,10 @@ var Tab = import_react7.default.forwardRef(
|
|
|
354
322
|
},
|
|
355
323
|
[disabled, onClick, index, setActiveIndex]
|
|
356
324
|
);
|
|
357
|
-
|
|
325
|
+
import_react5.default.useEffect(() => {
|
|
358
326
|
if (active) setActiveIndex(index);
|
|
359
327
|
}, [active, setActiveIndex, index]);
|
|
360
|
-
return /* @__PURE__ */
|
|
328
|
+
return /* @__PURE__ */ import_react5.default.createElement(
|
|
361
329
|
Tag,
|
|
362
330
|
{
|
|
363
331
|
ref,
|
|
@@ -373,8 +341,8 @@ var Tab = import_react7.default.forwardRef(
|
|
|
373
341
|
onClick: handleClick,
|
|
374
342
|
...props
|
|
375
343
|
},
|
|
376
|
-
/* @__PURE__ */
|
|
377
|
-
label && /* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ import_react5.default.createElement("div", { className: hashClass(styled, "tab-icon") }, iconName && /* @__PURE__ */ import_react5.default.createElement(Icon_default, { size: small ? "small" : "medium", name: iconName })),
|
|
345
|
+
label && /* @__PURE__ */ import_react5.default.createElement(Text_default, null, label)
|
|
378
346
|
);
|
|
379
347
|
}
|
|
380
348
|
);
|
|
@@ -404,32 +372,32 @@ var getAlignClassName = (alignType) => {
|
|
|
404
372
|
};
|
|
405
373
|
|
|
406
374
|
// components/tabs/tab-list/TabList.tsx
|
|
407
|
-
var
|
|
408
|
-
var
|
|
409
|
-
var TabList =
|
|
375
|
+
var import_clsx5 = __toESM(require("clsx"));
|
|
376
|
+
var import_react6 = __toESM(require("react"));
|
|
377
|
+
var TabList = import_react6.default.forwardRef(
|
|
410
378
|
({ children, className, id, testId, align, ...others }, ref) => {
|
|
411
379
|
const { styled } = useTrilogyContext();
|
|
412
|
-
const TabListRef =
|
|
413
|
-
const tabRefs =
|
|
414
|
-
const { small } =
|
|
415
|
-
|
|
416
|
-
const [tabsWidth, setTabsWidth] =
|
|
417
|
-
const [tabListWidth, setTabListWidth] =
|
|
418
|
-
const [scrollLeft, setScrollLeft] =
|
|
419
|
-
const [tabFocused, setTabFocused] =
|
|
420
|
-
const classes = hashClass(styled, (0,
|
|
421
|
-
const isVisibleArrowLeft = (0,
|
|
380
|
+
const TabListRef = import_react6.default.useRef(null);
|
|
381
|
+
const tabRefs = import_react6.default.useRef([]);
|
|
382
|
+
const { small } = import_react6.default.useContext(TabsContext);
|
|
383
|
+
import_react6.default.useImperativeHandle(ref, () => TabListRef.current);
|
|
384
|
+
const [tabsWidth, setTabsWidth] = import_react6.default.useState(0);
|
|
385
|
+
const [tabListWidth, setTabListWidth] = import_react6.default.useState(0);
|
|
386
|
+
const [scrollLeft, setScrollLeft] = import_react6.default.useState(0);
|
|
387
|
+
const [tabFocused, setTabFocused] = import_react6.default.useState(0);
|
|
388
|
+
const classes = hashClass(styled, (0, import_clsx5.default)("tab-list", align && is(getAlignClassName(align)), className));
|
|
389
|
+
const isVisibleArrowLeft = (0, import_react6.useMemo)(() => {
|
|
422
390
|
if (!tabRefs.current.length) return false;
|
|
423
391
|
return scrollLeft > tabRefs.current[0].width / 2;
|
|
424
392
|
}, [tabRefs, scrollLeft]);
|
|
425
|
-
const isVisibleArrowRight = (0,
|
|
393
|
+
const isVisibleArrowRight = (0, import_react6.useMemo)(
|
|
426
394
|
() => tabListWidth - tabsWidth - scrollLeft > 5,
|
|
427
395
|
[tabListWidth, tabsWidth, scrollLeft]
|
|
428
396
|
);
|
|
429
|
-
const TabElms =
|
|
430
|
-
return
|
|
431
|
-
if (!
|
|
432
|
-
return /* @__PURE__ */
|
|
397
|
+
const TabElms = import_react6.default.useMemo(() => {
|
|
398
|
+
return import_react6.default.Children.map(children, (child, index) => {
|
|
399
|
+
if (!import_react6.default.isValidElement(child)) return false;
|
|
400
|
+
return /* @__PURE__ */ import_react6.default.createElement(
|
|
433
401
|
Tab_default,
|
|
434
402
|
{
|
|
435
403
|
ref: (el) => tabRefs.current[index] = el == null ? void 0 : el.getBoundingClientRect(),
|
|
@@ -439,7 +407,7 @@ var TabList = import_react8.default.forwardRef(
|
|
|
439
407
|
);
|
|
440
408
|
});
|
|
441
409
|
}, [children, tabRefs]);
|
|
442
|
-
const scrollWithArrow =
|
|
410
|
+
const scrollWithArrow = import_react6.default.useCallback(
|
|
443
411
|
(direction) => {
|
|
444
412
|
var _a;
|
|
445
413
|
if (tabRefs.current) {
|
|
@@ -451,7 +419,7 @@ var TabList = import_react8.default.forwardRef(
|
|
|
451
419
|
},
|
|
452
420
|
[tabRefs.current, tabFocused, TabListRef]
|
|
453
421
|
);
|
|
454
|
-
const handleScrollList =
|
|
422
|
+
const handleScrollList = import_react6.default.useCallback(
|
|
455
423
|
(e) => {
|
|
456
424
|
const target = e.target;
|
|
457
425
|
const firstGap = tabRefs.current[0].x + (small ? 16 : 24);
|
|
@@ -463,26 +431,26 @@ var TabList = import_react8.default.forwardRef(
|
|
|
463
431
|
},
|
|
464
432
|
[tabRefs, small]
|
|
465
433
|
);
|
|
466
|
-
const onClickPrev =
|
|
434
|
+
const onClickPrev = import_react6.default.useCallback(() => {
|
|
467
435
|
isVisibleArrowLeft && scrollWithArrow(-1);
|
|
468
436
|
}, [scrollWithArrow, isVisibleArrowLeft]);
|
|
469
|
-
const onClickNext =
|
|
437
|
+
const onClickNext = import_react6.default.useCallback(() => {
|
|
470
438
|
isVisibleArrowRight && scrollWithArrow(1);
|
|
471
439
|
}, [scrollWithArrow, isVisibleArrowRight]);
|
|
472
|
-
const setWidths =
|
|
440
|
+
const setWidths = import_react6.default.useCallback(() => {
|
|
473
441
|
if (TabListRef.current) {
|
|
474
442
|
setTabsWidth(TabListRef.current.clientWidth);
|
|
475
443
|
setTabListWidth(TabListRef.current.scrollWidth);
|
|
476
444
|
}
|
|
477
445
|
}, [TabListRef]);
|
|
478
|
-
|
|
446
|
+
import_react6.default.useEffect(() => {
|
|
479
447
|
setWidths();
|
|
480
448
|
}, [setWidths, isVisibleArrowLeft, isVisibleArrowRight]);
|
|
481
|
-
|
|
449
|
+
import_react6.default.useEffect(() => {
|
|
482
450
|
window.addEventListener("resize", setWidths);
|
|
483
451
|
return () => window.removeEventListener("resize", setWidths);
|
|
484
452
|
}, [TabListRef, setWidths]);
|
|
485
|
-
return /* @__PURE__ */
|
|
453
|
+
return /* @__PURE__ */ import_react6.default.createElement(
|
|
486
454
|
"div",
|
|
487
455
|
{
|
|
488
456
|
ref: TabListRef,
|
|
@@ -493,23 +461,23 @@ var TabList = import_react8.default.forwardRef(
|
|
|
493
461
|
onScroll: handleScrollList,
|
|
494
462
|
...others
|
|
495
463
|
},
|
|
496
|
-
isVisibleArrowLeft && /* @__PURE__ */
|
|
464
|
+
isVisibleArrowLeft && /* @__PURE__ */ import_react6.default.createElement(
|
|
497
465
|
Icon_default,
|
|
498
466
|
{
|
|
499
467
|
"data-arrow-prev": "",
|
|
500
468
|
name: "tri-arrow-left",
|
|
501
|
-
className: (0,
|
|
469
|
+
className: (0, import_clsx5.default)("arrow-prev"),
|
|
502
470
|
size: small ? "small" : "medium",
|
|
503
471
|
onClick: onClickPrev
|
|
504
472
|
}
|
|
505
473
|
),
|
|
506
474
|
TabElms,
|
|
507
|
-
isVisibleArrowRight && /* @__PURE__ */
|
|
475
|
+
isVisibleArrowRight && /* @__PURE__ */ import_react6.default.createElement(
|
|
508
476
|
Icon_default,
|
|
509
477
|
{
|
|
510
478
|
"data-arrow-next": "",
|
|
511
479
|
name: "tri-arrow-right",
|
|
512
|
-
className: (0,
|
|
480
|
+
className: (0, import_clsx5.default)("arrow-next"),
|
|
513
481
|
size: small ? "small" : "medium",
|
|
514
482
|
onClick: onClickNext
|
|
515
483
|
}
|
|
@@ -519,6 +487,38 @@ var TabList = import_react8.default.forwardRef(
|
|
|
519
487
|
);
|
|
520
488
|
TabList.displayName = "TabList" /* TabList */;
|
|
521
489
|
var TabList_default = TabList;
|
|
490
|
+
|
|
491
|
+
// components/tabs/tab-panels/tab-panel/TabPanel.tsx
|
|
492
|
+
var import_clsx6 = __toESM(require("clsx"));
|
|
493
|
+
var import_react7 = __toESM(require("react"));
|
|
494
|
+
var TabPanel = import_react7.default.forwardRef(({ children, className, testId, ...others }, ref) => {
|
|
495
|
+
const { styled } = useTrilogyContext();
|
|
496
|
+
const { index, ...props } = others;
|
|
497
|
+
const { activeIndex } = import_react7.default.useContext(TabsContext);
|
|
498
|
+
const classes = hashClass(styled, (0, import_clsx6.default)("tab-panel", index === activeIndex && is("active"), className));
|
|
499
|
+
return /* @__PURE__ */ import_react7.default.createElement("div", { ref, "data-testid": testId, className: classes, ...props }, children);
|
|
500
|
+
});
|
|
501
|
+
TabPanel.displayName = "TabPanel" /* TabPanel */;
|
|
502
|
+
var TabPanel_default = TabPanel;
|
|
503
|
+
|
|
504
|
+
// components/tabs/tab-panels/tab-panel/index.ts
|
|
505
|
+
var tab_panel_default = TabPanel_default;
|
|
506
|
+
|
|
507
|
+
// components/tabs/tab-panels/TabPanels.tsx
|
|
508
|
+
var import_clsx7 = __toESM(require("clsx"));
|
|
509
|
+
var import_react8 = __toESM(require("react"));
|
|
510
|
+
var TabPanels = import_react8.default.forwardRef(
|
|
511
|
+
({ children, className, id, testId, ...others }, ref) => {
|
|
512
|
+
const { styled } = useTrilogyContext();
|
|
513
|
+
const classes = hashClass(styled, (0, import_clsx7.default)("tab-panels", className));
|
|
514
|
+
return /* @__PURE__ */ import_react8.default.createElement("div", { ref, id, "data-testid": testId, className: classes, ...others }, import_react8.default.Children.map(children, (child, index) => {
|
|
515
|
+
if (!import_react8.default.isValidElement(child)) return false;
|
|
516
|
+
return /* @__PURE__ */ import_react8.default.createElement(tab_panel_default, { ...child.props, index });
|
|
517
|
+
}));
|
|
518
|
+
}
|
|
519
|
+
);
|
|
520
|
+
TabPanels.displayName = "TabPanels" /* TabPanels */;
|
|
521
|
+
var TabPanels_default = TabPanels;
|
|
522
522
|
// Annotate the CommonJS export names for ESM import in node:
|
|
523
523
|
0 && (module.exports = {
|
|
524
524
|
Tab,
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "../../chunk-
|
|
3
|
-
import {
|
|
4
|
-
TabList_default
|
|
5
|
-
} from "../../chunk-UNUI5GCY.mjs";
|
|
6
|
-
import {
|
|
7
|
-
Tab_default
|
|
8
|
-
} from "../../chunk-PTHFF3G5.mjs";
|
|
2
|
+
import "../../chunk-CTL6JRU3.mjs";
|
|
9
3
|
import {
|
|
10
4
|
TabPanels_default
|
|
11
5
|
} from "../../chunk-4XLHP4FT.mjs";
|
|
@@ -13,15 +7,22 @@ import "../../chunk-TTMI7WFG.mjs";
|
|
|
13
7
|
import {
|
|
14
8
|
TabPanel_default
|
|
15
9
|
} from "../../chunk-TBFT5WCF.mjs";
|
|
10
|
+
import {
|
|
11
|
+
TabList_default
|
|
12
|
+
} from "../../chunk-UNUI5GCY.mjs";
|
|
13
|
+
import {
|
|
14
|
+
Tab_default
|
|
15
|
+
} from "../../chunk-PTHFF3G5.mjs";
|
|
16
16
|
import {
|
|
17
17
|
Tabs_default
|
|
18
18
|
} from "../../chunk-5Z2RQ5MY.mjs";
|
|
19
19
|
import "../../chunk-BVZWKYND.mjs";
|
|
20
20
|
import "../../chunk-HHE7L3CW.mjs";
|
|
21
21
|
import "../../chunk-SWFBV5TR.mjs";
|
|
22
|
+
import "../../chunk-KPAFJMF3.mjs";
|
|
22
23
|
import "../../chunk-P6NVOAAH.mjs";
|
|
23
24
|
import "../../chunk-A35Q44N2.mjs";
|
|
24
|
-
import "../../chunk-
|
|
25
|
+
import "../../chunk-Y3ROARMA.mjs";
|
|
25
26
|
import "../../chunk-SGAZRZIK.mjs";
|
|
26
27
|
import "../../chunk-WC3ULY5W.mjs";
|
|
27
28
|
import "../../chunk-JOSZ4COK.mjs";
|
|
@@ -36,6 +37,7 @@ import "../../chunk-L4UDEKQK.mjs";
|
|
|
36
37
|
import "../../chunk-P372ZF3A.mjs";
|
|
37
38
|
import "../../chunk-HV6TXVFA.mjs";
|
|
38
39
|
import "../../chunk-CYNSXZSV.mjs";
|
|
40
|
+
import "../../chunk-YK5HPRX4.mjs";
|
|
39
41
|
import "../../chunk-4ZJQXF2V.mjs";
|
|
40
42
|
import "../../chunk-4UHBBNZ7.mjs";
|
|
41
43
|
import "../../chunk-NTS75UVH.mjs";
|
|
@@ -3,4 +3,5 @@ import TabList from './tab-list/TabList.native';
|
|
|
3
3
|
import Tab from './tab-list/tab/Tab.native';
|
|
4
4
|
import TabPanels from './tab-panels/TabPanels.native';
|
|
5
5
|
import TabPanel from './tab-panels/tab-panel/TabPanel.native';
|
|
6
|
+
export * from './TabsProps';
|
|
6
7
|
export { Tab, TabList, TabPanel, TabPanels, Tabs };
|
|
@@ -3,4 +3,5 @@ import TabList from './tab-list/TabList.native';
|
|
|
3
3
|
import Tab from './tab-list/tab/Tab.native';
|
|
4
4
|
import TabPanels from './tab-panels/TabPanels.native';
|
|
5
5
|
import TabPanel from './tab-panels/tab-panel/TabPanel.native';
|
|
6
|
+
export * from './TabsProps';
|
|
6
7
|
export { Tab, TabList, TabPanel, TabPanels, Tabs };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "../../chunk-
|
|
2
|
+
import "../../chunk-KEXRV4H7.mjs";
|
|
3
3
|
import {
|
|
4
4
|
TabPanels_native_default
|
|
5
5
|
} from "../../chunk-A4UUZNZZ.mjs";
|
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
} from "../../chunk-R37XLGXJ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
TabList_native_default
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-Z6YBOKUS.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Tab_native_default
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-LALBHUEG.mjs";
|
|
15
15
|
import {
|
|
16
16
|
Tabs_native_default
|
|
17
17
|
} from "../../chunk-CIMSFVNA.mjs";
|
|
18
18
|
import "../../chunk-WEGZE5OY.mjs";
|
|
19
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-2AL4D3MJ.mjs";
|
|
20
20
|
import "../../chunk-7M6BHGK7.mjs";
|
|
21
21
|
import "../../chunk-VNWHCGCD.mjs";
|
|
22
22
|
import "../../chunk-SJ5DUOZ6.mjs";
|
|
@@ -27,14 +27,15 @@ import "../../chunk-KNRXLZZP.mjs";
|
|
|
27
27
|
import "../../chunk-D5HHHZDS.mjs";
|
|
28
28
|
import "../../chunk-2CYVOYRM.mjs";
|
|
29
29
|
import "../../chunk-7L5452RP.mjs";
|
|
30
|
-
import "../../chunk-
|
|
31
|
-
import "../../chunk-YK5HPRX4.mjs";
|
|
32
|
-
import "../../chunk-VI2KFLCZ.mjs";
|
|
30
|
+
import "../../chunk-H6FVJB5Z.mjs";
|
|
33
31
|
import "../../chunk-CWIO3GEP.mjs";
|
|
32
|
+
import "../../chunk-VI2KFLCZ.mjs";
|
|
34
33
|
import "../../chunk-R6PFY5VS.mjs";
|
|
35
34
|
import "../../chunk-SWFBV5TR.mjs";
|
|
35
|
+
import "../../chunk-KPAFJMF3.mjs";
|
|
36
36
|
import "../../chunk-P6NVOAAH.mjs";
|
|
37
37
|
import "../../chunk-RXBVZD3M.mjs";
|
|
38
|
+
import "../../chunk-A2ASOVUR.mjs";
|
|
38
39
|
import "../../chunk-3XMSRU64.mjs";
|
|
39
40
|
import "../../chunk-L5TMSDJR.mjs";
|
|
40
41
|
import "../../chunk-GP5CJGRF.mjs";
|
|
@@ -45,12 +46,12 @@ import "../../chunk-HQXKHRER.mjs";
|
|
|
45
46
|
import "../../chunk-NVH4ZPGW.mjs";
|
|
46
47
|
import "../../chunk-62DJK35E.mjs";
|
|
47
48
|
import "../../chunk-PAEZ47M2.mjs";
|
|
48
|
-
import "../../chunk-A2ASOVUR.mjs";
|
|
49
49
|
import "../../chunk-FTTU4DJW.mjs";
|
|
50
50
|
import "../../chunk-L7CNF7H6.mjs";
|
|
51
51
|
import "../../chunk-RJO5KKUW.mjs";
|
|
52
52
|
import "../../chunk-R7HI6GOP.mjs";
|
|
53
53
|
import "../../chunk-SUNBSFL4.mjs";
|
|
54
|
+
import "../../chunk-XIQL4ZTN.mjs";
|
|
54
55
|
import "../../chunk-UUXUTBLZ.mjs";
|
|
55
56
|
import "../../chunk-QOEJLTZN.mjs";
|
|
56
57
|
import "../../chunk-B6WC6WS2.mjs";
|
|
@@ -58,14 +59,14 @@ import "../../chunk-K2VWHGPL.mjs";
|
|
|
58
59
|
import "../../chunk-6BTWLQPI.mjs";
|
|
59
60
|
import "../../chunk-G6BHSMLA.mjs";
|
|
60
61
|
import "../../chunk-THOTRBD4.mjs";
|
|
61
|
-
import "../../chunk-
|
|
62
|
+
import "../../chunk-ATW7ITPH.mjs";
|
|
62
63
|
import "../../chunk-IGMJNGTZ.mjs";
|
|
63
64
|
import "../../chunk-5QUXSOHX.mjs";
|
|
64
|
-
import "../../chunk-ATW7ITPH.mjs";
|
|
65
65
|
import "../../chunk-L4UDEKQK.mjs";
|
|
66
66
|
import "../../chunk-P372ZF3A.mjs";
|
|
67
67
|
import "../../chunk-HV6TXVFA.mjs";
|
|
68
68
|
import "../../chunk-CYNSXZSV.mjs";
|
|
69
|
+
import "../../chunk-YK5HPRX4.mjs";
|
|
69
70
|
import "../../chunk-4ZJQXF2V.mjs";
|
|
70
71
|
import "../../chunk-4UHBBNZ7.mjs";
|
|
71
72
|
import "../../chunk-NTS75UVH.mjs";
|
|
@@ -8,7 +8,7 @@ import "../../../chunk-HHE7L3CW.mjs";
|
|
|
8
8
|
import "../../../chunk-SWFBV5TR.mjs";
|
|
9
9
|
import "../../../chunk-P6NVOAAH.mjs";
|
|
10
10
|
import "../../../chunk-A35Q44N2.mjs";
|
|
11
|
-
import "../../../chunk-
|
|
11
|
+
import "../../../chunk-Y3ROARMA.mjs";
|
|
12
12
|
import "../../../chunk-SGAZRZIK.mjs";
|
|
13
13
|
import "../../../chunk-WC3ULY5W.mjs";
|
|
14
14
|
import "../../../chunk-JOSZ4COK.mjs";
|
|
@@ -23,6 +23,7 @@ import "../../../chunk-L4UDEKQK.mjs";
|
|
|
23
23
|
import "../../../chunk-P372ZF3A.mjs";
|
|
24
24
|
import "../../../chunk-HV6TXVFA.mjs";
|
|
25
25
|
import "../../../chunk-CYNSXZSV.mjs";
|
|
26
|
+
import "../../../chunk-YK5HPRX4.mjs";
|
|
26
27
|
import "../../../chunk-4ZJQXF2V.mjs";
|
|
27
28
|
import "../../../chunk-4UHBBNZ7.mjs";
|
|
28
29
|
import "../../../chunk-NTS75UVH.mjs";
|