@ledgerhq/lumen-ui-react 0.1.59 → 0.1.60
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/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +6 -6
- package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
- package/dist/lib/Components/core/Banner/Banner.js +14 -14
- package/dist/lib/Components/core/Button/Button.js +4 -4
- package/dist/lib/Components/core/Card/Card.js +16 -16
- package/dist/lib/Components/core/CardButton/CardButton.js +8 -8
- package/dist/lib/Components/core/DataTable/DataTable.d.ts +1 -1
- package/dist/lib/Components/core/DataTable/DataTable.d.ts.map +1 -1
- package/dist/lib/Components/core/DataTable/DataTable.js +119 -115
- package/dist/lib/Components/core/DataTable/types.d.ts +7 -1
- package/dist/lib/Components/core/DataTable/types.d.ts.map +1 -1
- package/dist/lib/Components/core/Dialog/Dialog.js +4 -4
- package/dist/lib/Components/core/Divider/Divider.js +4 -4
- package/dist/lib/Components/core/DotIcon/DotIcon.js +9 -9
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +4 -4
- package/dist/lib/Components/core/IconButton/IconButton.js +5 -5
- package/dist/lib/Components/core/Link/Link.js +6 -6
- package/dist/lib/Components/core/ListItem/ListItem.js +8 -8
- package/dist/lib/Components/core/MediaBanner/MediaBanner.js +4 -4
- package/dist/lib/Components/core/NavBar/CoinCapsule.js +4 -4
- package/dist/lib/Components/core/Popover/Popover.js +4 -4
- package/dist/lib/Components/core/SearchInput/SearchInput.js +2 -2
- package/dist/lib/Components/core/SectionHeader/SectionHeader.js +4 -4
- package/dist/lib/Components/core/Spot/Spot.js +4 -4
- package/dist/lib/Components/core/Stepper/Stepper.js +10 -10
- package/dist/lib/Components/core/Switch/Switch.js +4 -4
- package/dist/lib/Components/core/Tooltip/Tooltip.js +3 -3
- package/dist/lib/Components/internal/BaseInput/BaseInput.js +1 -1
- package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +10 -10
- package/dist/lib/Components/internal/BaseTag/BaseTag.js +6 -6
- package/dist/lib/Components/symbols/Icon/createIcon.d.ts.map +1 -1
- package/dist/lib/Components/symbols/Icon/createIcon.js +12 -12
- package/dist/lib/Components/symbols/icons/Airplane.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Airplane.js +4 -5
- package/dist/lib/Components/symbols/icons/AlarmClock.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/AlarmClock.js +0 -1
- package/dist/lib/Components/symbols/icons/Apps.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Apps.js +0 -1
- package/dist/lib/Components/symbols/icons/ArrowDown.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ArrowDown.js +0 -1
- package/dist/lib/Components/symbols/icons/ArrowDownRight.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ArrowDownRight.js +2 -3
- package/dist/lib/Components/symbols/icons/ArrowLeft.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ArrowLeft.js +2 -3
- package/dist/lib/Components/symbols/icons/ArrowRight.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ArrowRight.js +0 -1
- package/dist/lib/Components/symbols/icons/ArrowUp.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ArrowUp.js +2 -3
- package/dist/lib/Components/symbols/icons/ArrowUpRight.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ArrowUpRight.js +0 -1
- package/dist/lib/Components/symbols/icons/Asterisk.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Asterisk.js +0 -1
- package/dist/lib/Components/symbols/icons/At.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/At.js +2 -3
- package/dist/lib/Components/symbols/icons/Atm.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Atm.js +0 -1
- package/dist/lib/Components/symbols/icons/AutoLock.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/AutoLock.js +0 -1
- package/dist/lib/Components/symbols/icons/Bank.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Bank.js +0 -1
- package/dist/lib/Components/symbols/icons/BasketPutIn.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/BasketPutIn.js +5 -6
- package/dist/lib/Components/symbols/icons/Bell.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Bell.js +0 -1
- package/dist/lib/Components/symbols/icons/BellNotification.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/BellNotification.js +0 -1
- package/dist/lib/Components/symbols/icons/BitcoinComputer.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/BitcoinComputer.js +2 -3
- package/dist/lib/Components/symbols/icons/BitcoinVoucher.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/BitcoinVoucher.js +2 -3
- package/dist/lib/Components/symbols/icons/Bluetooth.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Bluetooth.js +3 -4
- package/dist/lib/Components/symbols/icons/Bolt.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Bolt.js +2 -3
- package/dist/lib/Components/symbols/icons/BookOpen.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/BookOpen.js +0 -1
- package/dist/lib/Components/symbols/icons/Bug.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Bug.js +2 -3
- package/dist/lib/Components/symbols/icons/Bundle.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Bundle.js +2 -3
- package/dist/lib/Components/symbols/icons/Calendar.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Calendar.js +0 -1
- package/dist/lib/Components/symbols/icons/CalendarRefresh.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CalendarRefresh.js +2 -3
- package/dist/lib/Components/symbols/icons/Cart.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Cart.js +2 -3
- package/dist/lib/Components/symbols/icons/Charon.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Charon.js +0 -1
- package/dist/lib/Components/symbols/icons/Chart1.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Chart1.js +2 -3
- package/dist/lib/Components/symbols/icons/Chart2.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Chart2.js +2 -3
- package/dist/lib/Components/symbols/icons/Chart3.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Chart3.js +2 -3
- package/dist/lib/Components/symbols/icons/Chart4.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Chart4.js +2 -3
- package/dist/lib/Components/symbols/icons/Chart5.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Chart5.js +0 -1
- package/dist/lib/Components/symbols/icons/ChartPie.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ChartPie.js +3 -5
- package/dist/lib/Components/symbols/icons/Check.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Check.js +2 -3
- package/dist/lib/Components/symbols/icons/CheckmarkCircle.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CheckmarkCircle.js +0 -1
- package/dist/lib/Components/symbols/icons/ChevronAscending.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ChevronAscending.js +0 -2
- package/dist/lib/Components/symbols/icons/ChevronBigBottom.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ChevronBigBottom.js +2 -3
- package/dist/lib/Components/symbols/icons/ChevronBigLeft.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ChevronBigLeft.js +2 -3
- package/dist/lib/Components/symbols/icons/ChevronBigRight.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ChevronBigRight.js +0 -1
- package/dist/lib/Components/symbols/icons/ChevronBigTop.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ChevronBigTop.js +2 -3
- package/dist/lib/Components/symbols/icons/ChevronDescending.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ChevronDescending.js +0 -2
- package/dist/lib/Components/symbols/icons/ChevronDown.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ChevronDown.js +2 -3
- package/dist/lib/Components/symbols/icons/ChevronLeft.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ChevronLeft.js +0 -1
- package/dist/lib/Components/symbols/icons/ChevronRight.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ChevronRight.js +2 -3
- package/dist/lib/Components/symbols/icons/ChevronUp.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ChevronUp.js +0 -1
- package/dist/lib/Components/symbols/icons/ChevronUpDown.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ChevronUpDown.js +2 -3
- package/dist/lib/Components/symbols/icons/Circles.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Circles.js +0 -1
- package/dist/lib/Components/symbols/icons/Clear.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Clear.js +0 -1
- package/dist/lib/Components/symbols/icons/Clip.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Clip.js +0 -1
- package/dist/lib/Components/symbols/icons/Clock.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Clock.js +2 -3
- package/dist/lib/Components/symbols/icons/Close.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Close.js +2 -3
- package/dist/lib/Components/symbols/icons/CloudDownload.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CloudDownload.js +0 -1
- package/dist/lib/Components/symbols/icons/CloudSync.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CloudSync.js +0 -1
- package/dist/lib/Components/symbols/icons/CloudUpload.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CloudUpload.js +2 -3
- package/dist/lib/Components/symbols/icons/Code.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Code.js +2 -3
- package/dist/lib/Components/symbols/icons/CodeShield.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CodeShield.js +0 -1
- package/dist/lib/Components/symbols/icons/CoinAlert.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CoinAlert.js +2 -3
- package/dist/lib/Components/symbols/icons/CoinPercent.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CoinPercent.js +2 -3
- package/dist/lib/Components/symbols/icons/CoinStacked.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CoinStacked.js +2 -3
- package/dist/lib/Components/symbols/icons/Coins.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Coins.js +2 -3
- package/dist/lib/Components/symbols/icons/CoinsAddPlus.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CoinsAddPlus.js +0 -1
- package/dist/lib/Components/symbols/icons/CoinsCheck.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CoinsCheck.js +0 -1
- package/dist/lib/Components/symbols/icons/CoinsCross.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CoinsCross.js +2 -3
- package/dist/lib/Components/symbols/icons/CoinsCrypto.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CoinsCrypto.js +2 -3
- package/dist/lib/Components/symbols/icons/CoinsEye.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CoinsEye.js +2 -3
- package/dist/lib/Components/symbols/icons/ColorPalette.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ColorPalette.js +0 -1
- package/dist/lib/Components/symbols/icons/Compass.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Compass.js +0 -1
- package/dist/lib/Components/symbols/icons/ComputerMobile.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ComputerMobile.js +0 -1
- package/dist/lib/Components/symbols/icons/Contact.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Contact.js +2 -3
- package/dist/lib/Components/symbols/icons/Copy.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Copy.js +2 -3
- package/dist/lib/Components/symbols/icons/Craft.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Craft.js +2 -3
- package/dist/lib/Components/symbols/icons/CreditCard.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CreditCard.js +0 -1
- package/dist/lib/Components/symbols/icons/Csv.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Csv.js +4 -5
- package/dist/lib/Components/symbols/icons/CursorTouch.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CursorTouch.js +0 -1
- package/dist/lib/Components/symbols/icons/CurveDown.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CurveDown.js +2 -6
- package/dist/lib/Components/symbols/icons/CurveUp.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/CurveUp.js +3 -15
- package/dist/lib/Components/symbols/icons/Cutlery.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Cutlery.js +2 -3
- package/dist/lib/Components/symbols/icons/DatabaseLock.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/DatabaseLock.js +2 -3
- package/dist/lib/Components/symbols/icons/Delete.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Delete.js +0 -1
- package/dist/lib/Components/symbols/icons/DeleteCircle.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/DeleteCircle.js +0 -1
- package/dist/lib/Components/symbols/icons/DeleteStop.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/DeleteStop.js +0 -2
- package/dist/lib/Components/symbols/icons/Desktop.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Desktop.js +2 -3
- package/dist/lib/Components/symbols/icons/Devices.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Devices.js +0 -1
- package/dist/lib/Components/symbols/icons/DocumentCode.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/DocumentCode.js +0 -1
- package/dist/lib/Components/symbols/icons/Dollar.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Dollar.js +2 -4
- package/dist/lib/Components/symbols/icons/DollarConvert.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/DollarConvert.js +0 -1
- package/dist/lib/Components/symbols/icons/Download.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Download.js +0 -1
- package/dist/lib/Components/symbols/icons/Duplicate.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Duplicate.js +0 -1
- package/dist/lib/Components/symbols/icons/Equal.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Equal.js +1 -9
- package/dist/lib/Components/symbols/icons/Exchange.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Exchange.js +0 -1
- package/dist/lib/Components/symbols/icons/ExchangeFill.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ExchangeFill.js +0 -1
- package/dist/lib/Components/symbols/icons/ExitLogout.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ExitLogout.js +2 -3
- package/dist/lib/Components/symbols/icons/Expand.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Expand.js +0 -1
- package/dist/lib/Components/symbols/icons/ExpandLeft.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ExpandLeft.js +0 -1
- package/dist/lib/Components/symbols/icons/ExpandRight.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ExpandRight.js +2 -3
- package/dist/lib/Components/symbols/icons/Experiment.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Experiment.js +0 -1
- package/dist/lib/Components/symbols/icons/Experiment2.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Experiment2.js +2 -3
- package/dist/lib/Components/symbols/icons/ExternalLink.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ExternalLink.js +0 -1
- package/dist/lib/Components/symbols/icons/Eye.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Eye.js +2 -3
- package/dist/lib/Components/symbols/icons/EyeCross.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/EyeCross.js +0 -1
- package/dist/lib/Components/symbols/icons/FaceId.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/FaceId.js +2 -3
- package/dist/lib/Components/symbols/icons/Feather.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Feather.js +2 -3
- package/dist/lib/Components/symbols/icons/File.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/File.js +0 -1
- package/dist/lib/Components/symbols/icons/FileDownload.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/FileDownload.js +2 -3
- package/dist/lib/Components/symbols/icons/FileShield.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/FileShield.js +0 -1
- package/dist/lib/Components/symbols/icons/FilterSort.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/FilterSort.js +0 -1
- package/dist/lib/Components/symbols/icons/Fingerprint.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Fingerprint.js +2 -3
- package/dist/lib/Components/symbols/icons/Fire.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Fire.js +0 -1
- package/dist/lib/Components/symbols/icons/Folder.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Folder.js +0 -1
- package/dist/lib/Components/symbols/icons/GameControler.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/GameControler.js +0 -1
- package/dist/lib/Components/symbols/icons/Gift.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Gift.js +2 -3
- package/dist/lib/Components/symbols/icons/Globe.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Globe.js +2 -3
- package/dist/lib/Components/symbols/icons/Grid.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Grid.js +0 -1
- package/dist/lib/Components/symbols/icons/Grid2.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Grid2.js +0 -2
- package/dist/lib/Components/symbols/icons/GroupUsers.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/GroupUsers.js +0 -1
- package/dist/lib/Components/symbols/icons/GroupUsersAdd.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/GroupUsersAdd.js +0 -1
- package/dist/lib/Components/symbols/icons/HandCard.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/HandCard.js +0 -1
- package/dist/lib/Components/symbols/icons/HandCoins.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/HandCoins.js +2 -3
- package/dist/lib/Components/symbols/icons/HandKey.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/HandKey.js +2 -3
- package/dist/lib/Components/symbols/icons/Handshake.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Handshake.js +2 -3
- package/dist/lib/Components/symbols/icons/HatSchool.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/HatSchool.js +0 -1
- package/dist/lib/Components/symbols/icons/Heart.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Heart.js +2 -3
- package/dist/lib/Components/symbols/icons/Home.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Home.js +2 -3
- package/dist/lib/Components/symbols/icons/IdCard.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/IdCard.js +0 -1
- package/dist/lib/Components/symbols/icons/Incognito.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Incognito.js +0 -1
- package/dist/lib/Components/symbols/icons/Infinite.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Infinite.js +2 -3
- package/dist/lib/Components/symbols/icons/Information.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Information.js +0 -1
- package/dist/lib/Components/symbols/icons/Invoice.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Invoice.js +2 -3
- package/dist/lib/Components/symbols/icons/Label.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Label.js +2 -4
- package/dist/lib/Components/symbols/icons/Language.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Language.js +0 -1
- package/dist/lib/Components/symbols/icons/LedgerLogo.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/LedgerLogo.js +2 -3
- package/dist/lib/Components/symbols/icons/Legal.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Legal.js +0 -1
- package/dist/lib/Components/symbols/icons/LifeRing.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/LifeRing.js +0 -1
- package/dist/lib/Components/symbols/icons/Lightbulb.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Lightbulb.js +0 -1
- package/dist/lib/Components/symbols/icons/Link.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Link.js +2 -3
- package/dist/lib/Components/symbols/icons/ListEye.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ListEye.js +0 -1
- package/dist/lib/Components/symbols/icons/Lock.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Lock.js +0 -1
- package/dist/lib/Components/symbols/icons/LockCheckSuccess.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/LockCheckSuccess.js +2 -3
- package/dist/lib/Components/symbols/icons/Magnet.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Magnet.js +0 -1
- package/dist/lib/Components/symbols/icons/Mail.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Mail.js +0 -1
- package/dist/lib/Components/symbols/icons/MailShield.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/MailShield.js +0 -1
- package/dist/lib/Components/symbols/icons/Mailbox.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Mailbox.js +0 -1
- package/dist/lib/Components/symbols/icons/Maths.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Maths.js +0 -1
- package/dist/lib/Components/symbols/icons/Medal1.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Medal1.js +2 -3
- package/dist/lib/Components/symbols/icons/Medal2.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Medal2.js +0 -1
- package/dist/lib/Components/symbols/icons/MenuBurger.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/MenuBurger.js +0 -1
- package/dist/lib/Components/symbols/icons/Merge.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Merge.js +2 -3
- package/dist/lib/Components/symbols/icons/MessageChat.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/MessageChat.js +2 -3
- package/dist/lib/Components/symbols/icons/Minimize.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Minimize.js +0 -1
- package/dist/lib/Components/symbols/icons/Minus.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Minus.js +2 -3
- package/dist/lib/Components/symbols/icons/MinusCircle.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/MinusCircle.js +0 -1
- package/dist/lib/Components/symbols/icons/Mobile.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Mobile.js +0 -1
- package/dist/lib/Components/symbols/icons/MobileArrow.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/MobileArrow.js +0 -1
- package/dist/lib/Components/symbols/icons/MonitorPassword.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/MonitorPassword.js +0 -1
- package/dist/lib/Components/symbols/icons/Moon.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Moon.js +0 -1
- package/dist/lib/Components/symbols/icons/MoreHorizontal.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/MoreHorizontal.js +2 -3
- package/dist/lib/Components/symbols/icons/MoreVertical.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/MoreVertical.js +2 -3
- package/dist/lib/Components/symbols/icons/Nano.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Nano.js +0 -1
- package/dist/lib/Components/symbols/icons/Nested.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Nested.js +0 -1
- package/dist/lib/Components/symbols/icons/NetworkWarning.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/NetworkWarning.js +0 -1
- package/dist/lib/Components/symbols/icons/Nfc.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Nfc.js +2 -3
- package/dist/lib/Components/symbols/icons/Nft.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Nft.js +0 -1
- package/dist/lib/Components/symbols/icons/NftHide.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/NftHide.js +0 -1
- package/dist/lib/Components/symbols/icons/NotEqual.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/NotEqual.js +2 -3
- package/dist/lib/Components/symbols/icons/Note.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Note.js +2 -3
- package/dist/lib/Components/symbols/icons/P2p.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/P2p.js +2 -3
- package/dist/lib/Components/symbols/icons/Parachute.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Parachute.js +0 -1
- package/dist/lib/Components/symbols/icons/Paste.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Paste.js +2 -3
- package/dist/lib/Components/symbols/icons/Pause.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Pause.js +2 -3
- package/dist/lib/Components/symbols/icons/PenEdit.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/PenEdit.js +2 -3
- package/dist/lib/Components/symbols/icons/PenEditWriting.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/PenEditWriting.js +2 -3
- package/dist/lib/Components/symbols/icons/PeopleShield.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/PeopleShield.js +0 -1
- package/dist/lib/Components/symbols/icons/Percentage.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Percentage.js +0 -1
- package/dist/lib/Components/symbols/icons/PictureImage.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/PictureImage.js +0 -1
- package/dist/lib/Components/symbols/icons/PiggyBank.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/PiggyBank.js +2 -3
- package/dist/lib/Components/symbols/icons/Pin.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Pin.js +2 -3
- package/dist/lib/Components/symbols/icons/PinLocation.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/PinLocation.js +0 -2
- package/dist/lib/Components/symbols/icons/Placeholder.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Placeholder.js +5 -6
- package/dist/lib/Components/symbols/icons/Planet.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Planet.js +0 -1
- package/dist/lib/Components/symbols/icons/Plus.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Plus.js +2 -3
- package/dist/lib/Components/symbols/icons/PlusCircle.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/PlusCircle.js +0 -1
- package/dist/lib/Components/symbols/icons/Printer.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Printer.js +0 -1
- package/dist/lib/Components/symbols/icons/QrCode.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/QrCode.js +0 -1
- package/dist/lib/Components/symbols/icons/QrCodeScanner.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/QrCodeScanner.js +2 -3
- package/dist/lib/Components/symbols/icons/Question.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Question.js +2 -3
- package/dist/lib/Components/symbols/icons/Receive.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Receive.js +0 -1
- package/dist/lib/Components/symbols/icons/RecoveryKey.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/RecoveryKey.js +2 -3
- package/dist/lib/Components/symbols/icons/Reduce.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Reduce.js +2 -3
- package/dist/lib/Components/symbols/icons/Refresh.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Refresh.js +2 -3
- package/dist/lib/Components/symbols/icons/RefreshBack.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/RefreshBack.js +2 -3
- package/dist/lib/Components/symbols/icons/Repair.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Repair.js +0 -1
- package/dist/lib/Components/symbols/icons/Retry.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Retry.js +2 -3
- package/dist/lib/Components/symbols/icons/Screens.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Screens.js +0 -1
- package/dist/lib/Components/symbols/icons/Search.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Search.js +0 -1
- package/dist/lib/Components/symbols/icons/Send.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Send.js +0 -1
- package/dist/lib/Components/symbols/icons/ServerDatabaseFail.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ServerDatabaseFail.js +0 -1
- package/dist/lib/Components/symbols/icons/Servers.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Servers.js +2 -3
- package/dist/lib/Components/symbols/icons/Settings.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Settings.js +6 -8
- package/dist/lib/Components/symbols/icons/SettingsAlt.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/SettingsAlt.js +2 -3
- package/dist/lib/Components/symbols/icons/SettingsAlt2.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/SettingsAlt2.js +2 -3
- package/dist/lib/Components/symbols/icons/Shapes.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Shapes.js +2 -5
- package/dist/lib/Components/symbols/icons/Share.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Share.js +2 -3
- package/dist/lib/Components/symbols/icons/Share2.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Share2.js +2 -3
- package/dist/lib/Components/symbols/icons/ShieldCheck.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ShieldCheck.js +2 -3
- package/dist/lib/Components/symbols/icons/ShieldCheckNotification.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ShieldCheckNotification.js +2 -3
- package/dist/lib/Components/symbols/icons/ShieldLock.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ShieldLock.js +2 -3
- package/dist/lib/Components/symbols/icons/ShieldMore.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/ShieldMore.js +0 -1
- package/dist/lib/Components/symbols/icons/Signature.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Signature.js +2 -3
- package/dist/lib/Components/symbols/icons/Slideshow.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Slideshow.js +0 -1
- package/dist/lib/Components/symbols/icons/Snow.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Snow.js +0 -1
- package/dist/lib/Components/symbols/icons/SoftRepair.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/SoftRepair.js +0 -1
- package/dist/lib/Components/symbols/icons/Spacerocket.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Spacerocket.js +0 -1
- package/dist/lib/Components/symbols/icons/SpeedFast.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/SpeedFast.js +2 -3
- package/dist/lib/Components/symbols/icons/SpeedLow.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/SpeedLow.js +2 -3
- package/dist/lib/Components/symbols/icons/SpeedMedium.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/SpeedMedium.js +0 -1
- package/dist/lib/Components/symbols/icons/Star.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Star.js +2 -3
- package/dist/lib/Components/symbols/icons/StarFill.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/StarFill.js +0 -1
- package/dist/lib/Components/symbols/icons/StarHalf.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/StarHalf.js +2 -3
- package/dist/lib/Components/symbols/icons/Stax.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Stax.js +5 -6
- package/dist/lib/Components/symbols/icons/SubArrow.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/SubArrow.js +2 -3
- package/dist/lib/Components/symbols/icons/Sun.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Sun.js +0 -1
- package/dist/lib/Components/symbols/icons/Support.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Support.js +0 -1
- package/dist/lib/Components/symbols/icons/Switch.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Switch.js +0 -1
- package/dist/lib/Components/symbols/icons/Switch2.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Switch2.js +0 -1
- package/dist/lib/Components/symbols/icons/Tablet.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Tablet.js +0 -1
- package/dist/lib/Components/symbols/icons/Target.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Target.js +2 -3
- package/dist/lib/Components/symbols/icons/Theme.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Theme.js +0 -2
- package/dist/lib/Components/symbols/icons/Tools.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Tools.js +2 -3
- package/dist/lib/Components/symbols/icons/TransferHorizontal.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/TransferHorizontal.js +0 -1
- package/dist/lib/Components/symbols/icons/TransferVertical.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/TransferVertical.js +2 -3
- package/dist/lib/Components/symbols/icons/Trash.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Trash.js +2 -3
- package/dist/lib/Components/symbols/icons/Truck.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Truck.js +2 -3
- package/dist/lib/Components/symbols/icons/Unlink.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Unlink.js +2 -3
- package/dist/lib/Components/symbols/icons/Unlock.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Unlock.js +0 -1
- package/dist/lib/Components/symbols/icons/Upload.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Upload.js +2 -3
- package/dist/lib/Components/symbols/icons/Usb.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Usb.js +2 -3
- package/dist/lib/Components/symbols/icons/UsbC.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/UsbC.js +0 -1
- package/dist/lib/Components/symbols/icons/User.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/User.js +2 -3
- package/dist/lib/Components/symbols/icons/UserAdd.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/UserAdd.js +2 -3
- package/dist/lib/Components/symbols/icons/UserArrowRight.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/UserArrowRight.js +0 -1
- package/dist/lib/Components/symbols/icons/UserCheck.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/UserCheck.js +2 -3
- package/dist/lib/Components/symbols/icons/UserCircle.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/UserCircle.js +0 -1
- package/dist/lib/Components/symbols/icons/UserDelete.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/UserDelete.js +0 -1
- package/dist/lib/Components/symbols/icons/UserLock.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/UserLock.js +0 -1
- package/dist/lib/Components/symbols/icons/UserShield.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/UserShield.js +0 -1
- package/dist/lib/Components/symbols/icons/Wallet.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Wallet.js +0 -1
- package/dist/lib/Components/symbols/icons/WalletInput.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/WalletInput.js +5 -6
- package/dist/lib/Components/symbols/icons/WalletSearch.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/WalletSearch.js +0 -1
- package/dist/lib/Components/symbols/icons/Warning.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Warning.js +2 -3
- package/dist/lib/Components/symbols/icons/Whatsapp.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/Whatsapp.js +2 -3
- package/dist/lib/Components/symbols/icons/WirelessCharging.d.ts.map +1 -1
- package/dist/lib/Components/symbols/icons/WirelessCharging.js +0 -1
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +2 -2
- package/dist/lib/Components/visualization/Legend/Legend.js +4 -4
- package/dist/libs/utils-shared/dist/index.js +103 -107
- package/dist/package.json +3 -3
- package/package.json +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { textFormatter as m } from "../../../../../libs/utils-shared/dist/index.js";
|
|
2
|
-
import { useCallback as
|
|
2
|
+
import { useCallback as i, useState as g, useRef as d, useEffect as f } from "react";
|
|
3
3
|
const I = ({
|
|
4
4
|
value: r,
|
|
5
5
|
onChange: o,
|
|
6
6
|
formatOptions: t
|
|
7
7
|
}) => {
|
|
8
|
-
const a =
|
|
8
|
+
const a = i(
|
|
9
9
|
(e) => m(String(e), t),
|
|
10
10
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11
11
|
[
|
|
@@ -15,13 +15,13 @@ const I = ({
|
|
|
15
15
|
t.maxDecimalLength,
|
|
16
16
|
t.decimalSeparator
|
|
17
17
|
]
|
|
18
|
-
), [
|
|
18
|
+
), [c, s] = g(() => a(r)), [h, l] = g(!1), u = d(c);
|
|
19
19
|
return f(() => {
|
|
20
20
|
const e = a(r);
|
|
21
|
-
|
|
22
|
-
}, [r, a]), { inputValue:
|
|
21
|
+
s(e), u.current = e;
|
|
22
|
+
}, [r, a]), { inputValue: c, isChanging: h, setIsChanging: l, handleChange: (e) => {
|
|
23
23
|
const n = a(e.target.value);
|
|
24
|
-
|
|
24
|
+
s(n), o({ ...e, target: { ...e.target, value: n } }), n !== u.current && l(!0), u.current = n;
|
|
25
25
|
} };
|
|
26
26
|
};
|
|
27
27
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cn as t } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as b } from "class-variance-authority";
|
|
4
4
|
import { useCommonTranslation as g } from "../../../../i18n/useCommonTranslation.js";
|
|
5
|
-
import { IconButton as
|
|
6
|
-
import { Close as
|
|
7
|
-
import { DeleteCircleFill as
|
|
5
|
+
import { IconButton as N } from "../IconButton/IconButton.js";
|
|
6
|
+
import { Close as h } from "../../symbols/icons/Close.js";
|
|
7
|
+
import { DeleteCircleFill as u } from "../../symbols/icons/DeleteCircleFill.js";
|
|
8
8
|
import { WarningFill as v } from "../../symbols/icons/WarningFill.js";
|
|
9
9
|
import { CheckmarkCircleFill as w } from "../../symbols/icons/CheckmarkCircleFill.js";
|
|
10
10
|
import { InformationFill as C } from "../../symbols/icons/InformationFill.js";
|
|
@@ -12,7 +12,7 @@ const k = {
|
|
|
12
12
|
info: /* @__PURE__ */ r(C, { className: "text-base" }),
|
|
13
13
|
success: /* @__PURE__ */ r(w, { className: "text-success" }),
|
|
14
14
|
warning: /* @__PURE__ */ r(v, { className: "text-warning" }),
|
|
15
|
-
error: /* @__PURE__ */ r(
|
|
15
|
+
error: /* @__PURE__ */ r(u, { className: "text-error" })
|
|
16
16
|
}, F = {
|
|
17
17
|
root: b("flex w-full items-start gap-8 rounded-md p-12 text-base", {
|
|
18
18
|
variants: {
|
|
@@ -27,7 +27,7 @@ const k = {
|
|
|
27
27
|
}, W = ({
|
|
28
28
|
ref: c,
|
|
29
29
|
appearance: s = "info",
|
|
30
|
-
title:
|
|
30
|
+
title: e,
|
|
31
31
|
description: n,
|
|
32
32
|
primaryAction: o,
|
|
33
33
|
secondaryAction: l,
|
|
@@ -37,7 +37,7 @@ const k = {
|
|
|
37
37
|
...f
|
|
38
38
|
}) => {
|
|
39
39
|
const { t: x } = g(), d = k[s];
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ a(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
43
|
ref: c,
|
|
@@ -45,22 +45,22 @@ const k = {
|
|
|
45
45
|
...f,
|
|
46
46
|
children: [
|
|
47
47
|
/* @__PURE__ */ r("div", { className: "flex shrink-0 items-start py-4", children: d }),
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
|
|
51
|
-
n && /* @__PURE__ */ r("div", { className: t("line-clamp-5 body-2", !
|
|
48
|
+
/* @__PURE__ */ a("div", { className: "mr-8 flex flex-1 flex-col gap-8 py-4", children: [
|
|
49
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col gap-4", children: [
|
|
50
|
+
e && /* @__PURE__ */ r("h3", { className: "line-clamp-2 body-1-semi-bold", children: e }),
|
|
51
|
+
n && /* @__PURE__ */ r("div", { className: t("line-clamp-5 body-2", !e && "mt-2"), children: n })
|
|
52
52
|
] }),
|
|
53
|
-
(o || l) && /* @__PURE__ */
|
|
53
|
+
(o || l) && /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-4", children: [
|
|
54
54
|
o,
|
|
55
55
|
l
|
|
56
56
|
] })
|
|
57
57
|
] }),
|
|
58
58
|
i && /* @__PURE__ */ r(
|
|
59
|
-
|
|
59
|
+
N,
|
|
60
60
|
{
|
|
61
61
|
appearance: "transparent",
|
|
62
62
|
size: "xs",
|
|
63
|
-
icon:
|
|
63
|
+
icon: h,
|
|
64
64
|
onClick: () => i(),
|
|
65
65
|
"aria-label": p || x("components.banner.closeAriaLabel")
|
|
66
66
|
}
|
|
@@ -17,8 +17,8 @@ const l = e("", {
|
|
|
17
17
|
ref: t,
|
|
18
18
|
className: m,
|
|
19
19
|
loading: s,
|
|
20
|
-
disabled:
|
|
21
|
-
children:
|
|
20
|
+
disabled: a,
|
|
21
|
+
children: r,
|
|
22
22
|
size: o,
|
|
23
23
|
icon: i,
|
|
24
24
|
...p
|
|
@@ -27,12 +27,12 @@ const l = e("", {
|
|
|
27
27
|
{
|
|
28
28
|
ref: t,
|
|
29
29
|
size: o,
|
|
30
|
-
disabled:
|
|
30
|
+
disabled: a,
|
|
31
31
|
icon: i,
|
|
32
32
|
loading: s,
|
|
33
33
|
className: d(l({ size: o }), "gap-8", m),
|
|
34
34
|
...p,
|
|
35
|
-
children:
|
|
35
|
+
children: r
|
|
36
36
|
}
|
|
37
37
|
);
|
|
38
38
|
export {
|
|
@@ -71,31 +71,31 @@ const k = ({
|
|
|
71
71
|
disabled: !1
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
),
|
|
74
|
+
), P = ({
|
|
75
75
|
ref: r,
|
|
76
76
|
className: t,
|
|
77
77
|
type: a = "interactive",
|
|
78
78
|
expanded: e,
|
|
79
79
|
outlined: s = !1,
|
|
80
80
|
disabled: i = !1,
|
|
81
|
-
onClick:
|
|
82
|
-
children:
|
|
81
|
+
onClick: d,
|
|
82
|
+
children: l,
|
|
83
83
|
...p
|
|
84
84
|
}) => {
|
|
85
85
|
const u = h(
|
|
86
86
|
() => k({
|
|
87
87
|
type: a,
|
|
88
88
|
expanded: e,
|
|
89
|
-
onClick:
|
|
89
|
+
onClick: d,
|
|
90
90
|
disabled: i
|
|
91
91
|
}),
|
|
92
|
-
[a, e,
|
|
92
|
+
[a, e, d, i]
|
|
93
93
|
);
|
|
94
94
|
return /* @__PURE__ */ n(R, { value: u, children: /* @__PURE__ */ n(g, { value: { disabled: i }, children: /* @__PURE__ */ f(
|
|
95
95
|
"div",
|
|
96
96
|
{
|
|
97
97
|
ref: r,
|
|
98
|
-
...u.cardClickable && C({ onClick:
|
|
98
|
+
...u.cardClickable && C({ onClick: d, disabled: i }),
|
|
99
99
|
className: o(
|
|
100
100
|
E({
|
|
101
101
|
interactive: u.cardClickable,
|
|
@@ -105,7 +105,7 @@ const k = ({
|
|
|
105
105
|
),
|
|
106
106
|
...p,
|
|
107
107
|
children: [
|
|
108
|
-
|
|
108
|
+
l,
|
|
109
109
|
s && /* @__PURE__ */ n(
|
|
110
110
|
"span",
|
|
111
111
|
{
|
|
@@ -123,7 +123,7 @@ const k = ({
|
|
|
123
123
|
className: a,
|
|
124
124
|
...e
|
|
125
125
|
}) => {
|
|
126
|
-
const { disabled: s, headerClickable: i, footerExpanded:
|
|
126
|
+
const { disabled: s, headerClickable: i, footerExpanded: d, onHeaderClick: l } = c({
|
|
127
127
|
consumerName: "CardHeader",
|
|
128
128
|
contextRequired: !1
|
|
129
129
|
});
|
|
@@ -131,8 +131,8 @@ const k = ({
|
|
|
131
131
|
"div",
|
|
132
132
|
{
|
|
133
133
|
ref: r,
|
|
134
|
-
"aria-expanded":
|
|
135
|
-
...C({ onClick:
|
|
134
|
+
"aria-expanded": l ? d : void 0,
|
|
135
|
+
...C({ onClick: l, disabled: s }),
|
|
136
136
|
className: o(
|
|
137
137
|
"flex items-center gap-12 p-12",
|
|
138
138
|
i && "cursor-pointer -outline-offset-6 transition-colors hover:bg-surface-hover focus-visible:outline-2 focus-visible:outline-focus active:bg-surface-pressed",
|
|
@@ -141,9 +141,9 @@ const k = ({
|
|
|
141
141
|
...e,
|
|
142
142
|
children: [
|
|
143
143
|
t,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
!
|
|
144
|
+
l && /* @__PURE__ */ f(b, { children: [
|
|
145
|
+
d && /* @__PURE__ */ n(N, { className: "text-muted", size: 20 }),
|
|
146
|
+
!d && /* @__PURE__ */ n(w, { className: "text-muted", size: 20 })
|
|
147
147
|
] })
|
|
148
148
|
]
|
|
149
149
|
}
|
|
@@ -296,7 +296,7 @@ const k = ({
|
|
|
296
296
|
appearance: e = "plain",
|
|
297
297
|
...s
|
|
298
298
|
}) => {
|
|
299
|
-
const { disabled: i, footerExpanded:
|
|
299
|
+
const { disabled: i, footerExpanded: d } = c({
|
|
300
300
|
consumerName: "CardFooter",
|
|
301
301
|
contextRequired: !1
|
|
302
302
|
});
|
|
@@ -305,7 +305,7 @@ const k = ({
|
|
|
305
305
|
{
|
|
306
306
|
className: o(
|
|
307
307
|
H({ appearance: e }),
|
|
308
|
-
|
|
308
|
+
d ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
309
309
|
),
|
|
310
310
|
children: /* @__PURE__ */ n("div", { className: "overflow-hidden", children: /* @__PURE__ */ n(
|
|
311
311
|
"div",
|
|
@@ -337,7 +337,7 @@ const k = ({
|
|
|
337
337
|
}
|
|
338
338
|
);
|
|
339
339
|
export {
|
|
340
|
-
|
|
340
|
+
P as Card,
|
|
341
341
|
B as CardContent,
|
|
342
342
|
M as CardContentDescription,
|
|
343
343
|
I as CardContentRow,
|
|
@@ -18,31 +18,31 @@ const h = f(
|
|
|
18
18
|
), w = ({
|
|
19
19
|
ref: i,
|
|
20
20
|
className: o,
|
|
21
|
-
appearance:
|
|
22
|
-
icon:
|
|
21
|
+
appearance: l,
|
|
22
|
+
icon: d,
|
|
23
23
|
title: n,
|
|
24
24
|
description: t,
|
|
25
25
|
hideChevron: r,
|
|
26
|
-
disabled:
|
|
27
|
-
...
|
|
26
|
+
disabled: b,
|
|
27
|
+
...u
|
|
28
28
|
}) => {
|
|
29
29
|
const c = m({
|
|
30
30
|
consumerName: "CardButton",
|
|
31
|
-
mergeWith: { disabled:
|
|
32
|
-
}), s =
|
|
31
|
+
mergeWith: { disabled: b }
|
|
32
|
+
}), s = d;
|
|
33
33
|
return /* @__PURE__ */ a(
|
|
34
34
|
"button",
|
|
35
35
|
{
|
|
36
36
|
ref: i,
|
|
37
37
|
className: p(
|
|
38
38
|
h({
|
|
39
|
-
appearance:
|
|
39
|
+
appearance: l
|
|
40
40
|
}),
|
|
41
41
|
o
|
|
42
42
|
),
|
|
43
43
|
disabled: c,
|
|
44
44
|
type: "button",
|
|
45
|
-
...
|
|
45
|
+
...u,
|
|
46
46
|
children: [
|
|
47
47
|
s && /* @__PURE__ */ e(s, { size: 24 }),
|
|
48
48
|
/* @__PURE__ */ a("div", { className: "flex min-w-0 flex-1 flex-col gap-4 text-left", children: [
|
|
@@ -11,7 +11,7 @@ import { DataTableProps, DataTableRootProps } from './types';
|
|
|
11
11
|
* <DataTable />
|
|
12
12
|
* </DataTableRoot>
|
|
13
13
|
*/
|
|
14
|
-
export declare const DataTableRoot: <TData extends RowData = RowData>({ table, appearance, paginationMode, loading, onScrollBottom, onRowClick, groupBy, renderGroupHeader, hideHeader, stickyHeader, children, className, ref, ...props }: DataTableRootProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const DataTableRoot: <TData extends RowData = RowData>({ table, appearance, paginationMode, loading, onScrollBottom, onRowClick, getRowProps, groupBy, renderGroupHeader, hideHeader, stickyHeader, children, className, ref, ...props }: DataTableRootProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
/**
|
|
16
16
|
* Renders the full table (header + body) from the TanStack table instance
|
|
17
17
|
* provided by `DataTableRoot`. Internally composes the pure-UI Table building blocks.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/DataTable/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,OAAO,EAER,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAkBvD,OAAO,KAAK,EAGV,cAAc,EACd,kBAAkB,EACnB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/DataTable/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,OAAO,EAER,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAkBvD,OAAO,KAAK,EAGV,cAAc,EACd,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAmBjB;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,mLAgB5D,kBAAkB,CAAC,KAAK,CAAC,4CAwB3B,CAAC;AAqFF;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,GAAI,8BAA8B,cAAc,4CA8BrE,CAAC;AA2HF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GAAI,wBAGxC,gBAAgB,4CAqBlB,CAAC"}
|
|
@@ -1,204 +1,208 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createSafeContext as
|
|
3
|
-
import { flexRender as
|
|
4
|
-
import { useCallback as
|
|
5
|
-
import { TableRoot as
|
|
6
|
-
import { SearchInput as
|
|
7
|
-
const [j, i] =
|
|
1
|
+
import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as w, cn as R } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { flexRender as m } from "@tanstack/react-table";
|
|
4
|
+
import { useCallback as x, Fragment as B } from "react";
|
|
5
|
+
import { TableRoot as N, Table as k, TableLoadingRow as y, TableColGroup as H, TableCol as S, TableHeader as G, TableHeaderRow as v, TableHeaderCell as q, TableSortButton as I, TableBody as b, TableGroupHeaderRow as V, TableRow as F, TableCell as M } from "../Table/Table.js";
|
|
6
|
+
import { SearchInput as P } from "../SearchInput/SearchInput.js";
|
|
7
|
+
const [j, i] = w("DataTableContext"), Y = ({
|
|
8
8
|
table: l,
|
|
9
9
|
appearance: n = "no-background",
|
|
10
|
-
paginationMode:
|
|
10
|
+
paginationMode: o = "none",
|
|
11
11
|
loading: e = !1,
|
|
12
|
-
onScrollBottom:
|
|
13
|
-
onRowClick:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
onScrollBottom: t,
|
|
13
|
+
onRowClick: r,
|
|
14
|
+
getRowProps: c,
|
|
15
|
+
groupBy: s,
|
|
16
|
+
renderGroupHeader: u,
|
|
17
|
+
hideHeader: T = !1,
|
|
18
|
+
stickyHeader: p = !0,
|
|
19
|
+
children: D,
|
|
20
|
+
className: h,
|
|
21
|
+
ref: C,
|
|
22
|
+
...f
|
|
23
|
+
}) => /* @__PURE__ */ a(
|
|
23
24
|
j,
|
|
24
25
|
{
|
|
25
26
|
value: {
|
|
26
|
-
hideHeader:
|
|
27
|
-
stickyHeader:
|
|
28
|
-
paginationMode:
|
|
27
|
+
hideHeader: T,
|
|
28
|
+
stickyHeader: p,
|
|
29
|
+
paginationMode: o,
|
|
29
30
|
table: l,
|
|
30
31
|
appearance: n,
|
|
31
32
|
loading: e,
|
|
32
|
-
onScrollBottom:
|
|
33
|
-
onRowClick:
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
onScrollBottom: t,
|
|
34
|
+
onRowClick: r,
|
|
35
|
+
getRowProps: c,
|
|
36
|
+
groupBy: s,
|
|
37
|
+
renderGroupHeader: u
|
|
36
38
|
},
|
|
37
|
-
children: /* @__PURE__ */
|
|
39
|
+
children: /* @__PURE__ */ a("div", { ref: C, className: R("flex flex-col", h), ...f, children: D })
|
|
38
40
|
}
|
|
39
41
|
), L = () => {
|
|
40
42
|
const { table: l } = i({
|
|
41
43
|
consumerName: "DataTableColGroup",
|
|
42
44
|
contextRequired: !0
|
|
43
45
|
});
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
const
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
|
|
46
|
+
return /* @__PURE__ */ a(H, { children: l.getVisibleLeafColumns().map((n) => {
|
|
47
|
+
const o = n.columnDef.meta;
|
|
48
|
+
return /* @__PURE__ */ a(
|
|
49
|
+
S,
|
|
48
50
|
{
|
|
49
|
-
hideBelow:
|
|
50
|
-
className:
|
|
51
|
+
hideBelow: o?.hideBelow,
|
|
52
|
+
className: o?.className
|
|
51
53
|
},
|
|
52
54
|
n.id
|
|
53
55
|
);
|
|
54
56
|
}) });
|
|
55
|
-
},
|
|
57
|
+
}, z = ({
|
|
56
58
|
className: l,
|
|
57
59
|
ref: n,
|
|
58
|
-
...
|
|
60
|
+
...o
|
|
59
61
|
}) => {
|
|
60
|
-
const { table: e, stickyHeader:
|
|
62
|
+
const { table: e, stickyHeader: t } = i({
|
|
61
63
|
consumerName: "DataTableHeader",
|
|
62
64
|
contextRequired: !0
|
|
63
65
|
});
|
|
64
|
-
return /* @__PURE__ */
|
|
65
|
-
const
|
|
66
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ a(G, { ref: n, className: l, ...o, children: e.getHeaderGroups().map((r) => /* @__PURE__ */ a(v, { stickyHeader: t, children: r.headers.map((c) => {
|
|
67
|
+
const s = c.column.columnDef.meta;
|
|
68
|
+
return /* @__PURE__ */ a(
|
|
67
69
|
q,
|
|
68
70
|
{
|
|
69
|
-
align:
|
|
70
|
-
hideBelow:
|
|
71
|
-
className:
|
|
72
|
-
trailingContent:
|
|
73
|
-
children:
|
|
74
|
-
|
|
71
|
+
align: s?.align,
|
|
72
|
+
hideBelow: s?.hideBelow,
|
|
73
|
+
className: s?.className,
|
|
74
|
+
trailingContent: s?.headerTrailingContent,
|
|
75
|
+
children: c.isPlaceholder ? null : c.column.getCanSort() ? /* @__PURE__ */ a(
|
|
76
|
+
I,
|
|
75
77
|
{
|
|
76
|
-
sortDirection:
|
|
77
|
-
onClick:
|
|
78
|
-
align:
|
|
79
|
-
children:
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
sortDirection: c.column.getIsSorted() || void 0,
|
|
79
|
+
onClick: c.column.getToggleSortingHandler(),
|
|
80
|
+
align: s?.align,
|
|
81
|
+
children: m(
|
|
82
|
+
c.column.columnDef.header,
|
|
83
|
+
c.getContext()
|
|
82
84
|
)
|
|
83
85
|
}
|
|
84
|
-
) :
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
) : m(
|
|
87
|
+
c.column.columnDef.header,
|
|
88
|
+
c.getContext()
|
|
87
89
|
)
|
|
88
90
|
},
|
|
89
|
-
|
|
91
|
+
c.id
|
|
90
92
|
);
|
|
91
|
-
}) },
|
|
92
|
-
},
|
|
93
|
+
}) }, r.id)) });
|
|
94
|
+
}, Z = ({ className: l, ref: n, ...o }) => {
|
|
93
95
|
const {
|
|
94
96
|
appearance: e,
|
|
95
|
-
paginationMode:
|
|
96
|
-
hideHeader:
|
|
97
|
-
loading:
|
|
98
|
-
onScrollBottom:
|
|
97
|
+
paginationMode: t,
|
|
98
|
+
hideHeader: r,
|
|
99
|
+
loading: c,
|
|
100
|
+
onScrollBottom: s,
|
|
99
101
|
groupBy: u
|
|
100
102
|
} = i({
|
|
101
103
|
consumerName: "DataTable",
|
|
102
104
|
contextRequired: !0
|
|
103
105
|
});
|
|
104
|
-
return /* @__PURE__ */
|
|
105
|
-
|
|
106
|
+
return /* @__PURE__ */ d(
|
|
107
|
+
N,
|
|
106
108
|
{
|
|
107
109
|
ref: n,
|
|
108
110
|
appearance: e,
|
|
109
|
-
loading:
|
|
110
|
-
onScrollBottom:
|
|
111
|
+
loading: c,
|
|
112
|
+
onScrollBottom: s,
|
|
111
113
|
className: l,
|
|
112
|
-
...
|
|
114
|
+
...o,
|
|
113
115
|
children: [
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
!
|
|
117
|
-
u ? /* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ d(k, { children: [
|
|
117
|
+
/* @__PURE__ */ a(L, {}),
|
|
118
|
+
!r && /* @__PURE__ */ a(z, {}),
|
|
119
|
+
u ? /* @__PURE__ */ a(J, {}) : /* @__PURE__ */ a(A, {})
|
|
118
120
|
] }),
|
|
119
|
-
|
|
121
|
+
t === "infinite-scroll" && /* @__PURE__ */ a(y, {})
|
|
120
122
|
]
|
|
121
123
|
}
|
|
122
124
|
);
|
|
123
|
-
},
|
|
125
|
+
}, A = ({ className: l, ref: n, ...o }) => {
|
|
124
126
|
const { table: e } = i({
|
|
125
127
|
consumerName: "DataTableBody",
|
|
126
128
|
contextRequired: !0
|
|
127
129
|
});
|
|
128
|
-
return /* @__PURE__ */
|
|
129
|
-
},
|
|
130
|
-
const
|
|
130
|
+
return /* @__PURE__ */ a(b, { ref: n, className: l, ...o, children: e.getRowModel().rows.map((t) => /* @__PURE__ */ a(g, { row: t }, t.id)) });
|
|
131
|
+
}, E = (l, n) => {
|
|
132
|
+
const o = [];
|
|
131
133
|
let e = null;
|
|
132
|
-
for (const
|
|
133
|
-
const
|
|
134
|
-
(!e || e.key !==
|
|
134
|
+
for (const t of l) {
|
|
135
|
+
const r = n(t);
|
|
136
|
+
(!e || e.key !== r) && (e = { key: r, rows: [], count: 0 }, o.push(e)), e.rows.push(t), e.count++;
|
|
135
137
|
}
|
|
136
|
-
return
|
|
137
|
-
},
|
|
138
|
+
return o;
|
|
139
|
+
}, J = ({
|
|
138
140
|
className: l,
|
|
139
141
|
ref: n,
|
|
140
|
-
...
|
|
142
|
+
...o
|
|
141
143
|
}) => {
|
|
142
|
-
const { table: e, groupBy:
|
|
144
|
+
const { table: e, groupBy: t, renderGroupHeader: r } = i({
|
|
143
145
|
consumerName: "DataTableGroupedBody",
|
|
144
146
|
contextRequired: !0
|
|
145
|
-
}),
|
|
147
|
+
}), c = E(
|
|
146
148
|
e.getRowModel().rows,
|
|
147
|
-
|
|
149
|
+
t
|
|
148
150
|
);
|
|
149
|
-
return /* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
|
|
152
|
-
] },
|
|
151
|
+
return /* @__PURE__ */ a(b, { ref: n, className: l, ...o, children: c.map((s) => /* @__PURE__ */ d(B, { children: [
|
|
152
|
+
/* @__PURE__ */ a(V, { colSpan: s.rows[0].getVisibleCells().length, children: r ? r({ row: s.rows[0], count: s.count }) : s.key }),
|
|
153
|
+
s.rows.map((u) => /* @__PURE__ */ a(g, { row: u }, u.id))
|
|
154
|
+
] }, s.key)) });
|
|
153
155
|
}, g = ({ row: l }) => {
|
|
154
|
-
const { onRowClick: n } = i({
|
|
156
|
+
const { onRowClick: n, getRowProps: o } = i({
|
|
155
157
|
consumerName: "DataTableRow",
|
|
156
158
|
contextRequired: !0
|
|
157
|
-
}),
|
|
158
|
-
return /* @__PURE__ */
|
|
159
|
-
|
|
159
|
+
}), e = !!n;
|
|
160
|
+
return /* @__PURE__ */ a(
|
|
161
|
+
F,
|
|
160
162
|
{
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
163
|
+
...o?.(l),
|
|
164
|
+
clickable: e,
|
|
165
|
+
onClick: e ? () => n?.(l) : void 0,
|
|
166
|
+
role: e ? "button" : void 0,
|
|
167
|
+
children: l.getVisibleCells().map((t) => {
|
|
168
|
+
const r = t.column.columnDef.meta;
|
|
169
|
+
return /* @__PURE__ */ a(
|
|
170
|
+
M,
|
|
167
171
|
{
|
|
168
|
-
align:
|
|
169
|
-
hideBelow:
|
|
170
|
-
className:
|
|
171
|
-
children:
|
|
172
|
+
align: r?.align,
|
|
173
|
+
hideBelow: r?.hideBelow,
|
|
174
|
+
className: r?.className,
|
|
175
|
+
children: m(t.column.columnDef.cell, t.getContext())
|
|
172
176
|
},
|
|
173
|
-
|
|
177
|
+
t.id
|
|
174
178
|
);
|
|
175
179
|
})
|
|
176
180
|
}
|
|
177
181
|
);
|
|
178
|
-
},
|
|
182
|
+
}, _ = ({
|
|
179
183
|
onChange: l,
|
|
180
184
|
...n
|
|
181
185
|
}) => {
|
|
182
|
-
const { table:
|
|
186
|
+
const { table: o } = i({
|
|
183
187
|
consumerName: "DataTableGlobalSearchInput",
|
|
184
188
|
contextRequired: !0
|
|
185
|
-
}), e =
|
|
186
|
-
(
|
|
187
|
-
|
|
189
|
+
}), e = x(
|
|
190
|
+
(t) => {
|
|
191
|
+
o.setGlobalFilter(t.target.value), l?.(t);
|
|
188
192
|
},
|
|
189
|
-
[
|
|
193
|
+
[o, l]
|
|
190
194
|
);
|
|
191
|
-
return /* @__PURE__ */
|
|
192
|
-
|
|
195
|
+
return /* @__PURE__ */ a(
|
|
196
|
+
P,
|
|
193
197
|
{
|
|
194
|
-
value:
|
|
198
|
+
value: o.getState().globalFilter ?? "",
|
|
195
199
|
onChange: e,
|
|
196
200
|
...n
|
|
197
201
|
}
|
|
198
202
|
);
|
|
199
203
|
};
|
|
200
204
|
export {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
205
|
+
Z as DataTable,
|
|
206
|
+
_ as DataTableGlobalSearchInput,
|
|
207
|
+
Y as DataTableRoot
|
|
204
208
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Row, RowData, Table } from '@tanstack/react-table';
|
|
2
2
|
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
3
3
|
import { Breakpoints } from '../../../../types';
|
|
4
|
-
import { TableRootProps } from '../Table/types';
|
|
4
|
+
import { TableRootProps, TableRowProps } from '../Table/types';
|
|
5
5
|
/**
|
|
6
6
|
* Lumen-specific column metadata that extends TanStack's ColumnMeta.
|
|
7
7
|
* These properties are picked up by DataTable's auto-rendering logic.
|
|
@@ -31,6 +31,7 @@ declare module '@tanstack/react-table' {
|
|
|
31
31
|
interface ColumnMeta<TData extends RowData, TValue> extends LumenColumnMeta {
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
export type DataTableRowProps = Omit<TableRowProps, 'children' | 'clickable' | 'dangerouslySetInnerHTML' | 'onClick' | 'onClickCapture' | 'role'> & Record<`data-${string}`, string | number | boolean | undefined>;
|
|
34
35
|
export type DataTableRootProps<TData extends RowData = RowData> = {
|
|
35
36
|
/**
|
|
36
37
|
* The TanStack table instance returned by `useLumenDataTable`.
|
|
@@ -81,6 +82,11 @@ export type DataTableRootProps<TData extends RowData = RowData> = {
|
|
|
81
82
|
* @default undefined
|
|
82
83
|
*/
|
|
83
84
|
onRowClick?: (row: Row<TData>) => void;
|
|
85
|
+
/**
|
|
86
|
+
* Returns native props to apply to a rendered data row.
|
|
87
|
+
* @default undefined
|
|
88
|
+
*/
|
|
89
|
+
getRowProps?: (row: Row<TData>) => DataTableRowProps | undefined;
|
|
84
90
|
/**
|
|
85
91
|
* Extracts a group key from a row. When provided, rows are visually
|
|
86
92
|
* separated by group header rows whenever the key changes.
|