@economic/taco 1.17.0-alpha.0 → 1.17.1
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/README.md +82 -82
- package/dist/components/Accordion/Accordion.d.ts +42 -0
- package/dist/components/Accordion/Accordion.stories.d.ts +26 -0
- package/dist/components/AlertDialog/AlertDialog.d.ts +24 -0
- package/dist/components/AlertDialog/AlertDialog.stories.d.ts +10 -0
- package/dist/components/AlertDialog/Context.d.ts +7 -0
- package/dist/components/AlertDialog/components/Content.d.ts +13 -0
- package/dist/components/AlertDialog/components/Footer.d.ts +7 -0
- package/dist/components/AlertDialog/components/Trigger.d.ts +3 -0
- package/dist/components/Backdrop/Backdrop.d.ts +3 -0
- package/dist/components/Backdrop/Backdrop.stories.d.ts +7 -0
- package/dist/components/Badge/Badge.d.ts +23 -0
- package/dist/components/Badge/Badge.stories.d.ts +15 -0
- package/dist/components/Banner/Banner.d.ts +20 -0
- package/dist/components/Banner/Banner.stories.d.ts +5 -0
- package/dist/components/Banner/util.d.ts +3 -0
- package/dist/components/Button/Button.d.ts +60 -0
- package/dist/components/Button/Button.stories.d.ts +77 -0
- package/dist/components/Button/util.d.ts +6 -0
- package/dist/components/Calendar/Calendar.d.ts +35 -0
- package/dist/components/Calendar/Calendar.stories.d.ts +13 -0
- package/dist/components/Card/Card.d.ts +14 -0
- package/dist/components/Card/Card.stories.d.ts +12 -0
- package/dist/components/Checkbox/Checkbox.d.ts +26 -0
- package/dist/components/Combobox/Combobox.d.ts +51 -0
- package/dist/components/Combobox/useCombobox.d.ts +20 -0
- package/dist/components/Datepicker/Datepicker.d.ts +50 -0
- package/dist/components/Datepicker/Datepicker.stories.d.ts +43 -0
- package/dist/components/Datepicker/useDatepicker.d.ts +13 -0
- package/dist/components/Dialog/Context.d.ts +21 -0
- package/dist/components/Dialog/Dialog.d.ts +47 -0
- package/dist/components/Dialog/Dialog.stories.d.ts +57 -0
- package/dist/components/Dialog/components/Content.d.ts +23 -0
- package/dist/components/Dialog/components/Drawer.d.ts +10 -0
- package/dist/components/Dialog/components/Extra.d.ts +4 -0
- package/dist/components/Dialog/components/Trigger.d.ts +3 -0
- package/dist/components/Dialog/types.d.ts +1 -0
- package/dist/components/Dialog/util.d.ts +4 -0
- package/dist/components/Field/Field.d.ts +26 -0
- package/dist/components/Field/Field.stories.d.ts +14 -0
- package/dist/components/Form/Form.d.ts +14 -0
- package/dist/components/Form/Form.stories.d.ts +14 -0
- package/dist/components/Group/Group.d.ts +30 -0
- package/dist/components/Group/Group.stories.d.ts +23 -0
- package/dist/components/Hanger/Hanger.d.ts +31 -0
- package/dist/components/Hanger/Hanger.stories.d.ts +11 -0
- package/dist/components/HoverCard/HoverCard.d.ts +16 -0
- package/dist/components/HoverCard/HoverCard.stories.d.ts +16 -0
- package/dist/components/HoverCard/Primitives.d.ts +2 -0
- package/dist/components/Icon/Icon.d.ts +12 -0
- package/dist/components/Icon/Icon.stories.d.ts +8 -0
- package/dist/components/Icon/components/AccountPreview.d.ts +3 -0
- package/dist/components/Icon/components/Accounting.d.ts +3 -0
- package/dist/components/Icon/components/AccountingYear.d.ts +3 -0
- package/dist/components/Icon/components/AccountingYearCancel.d.ts +3 -0
- package/dist/components/Icon/components/ArrowBottom.d.ts +3 -0
- package/dist/components/Icon/components/ArrowDown.d.ts +3 -0
- package/dist/components/Icon/components/ArrowEnd.d.ts +3 -0
- package/dist/components/Icon/components/ArrowLeft.d.ts +3 -0
- package/dist/components/Icon/components/ArrowRight.d.ts +3 -0
- package/dist/components/Icon/components/ArrowStart.d.ts +3 -0
- package/dist/components/Icon/components/ArrowTop.d.ts +3 -0
- package/dist/components/Icon/components/ArrowUp.d.ts +3 -0
- package/dist/components/Icon/components/Attach.d.ts +3 -0
- package/dist/components/Icon/components/AttachAuto.d.ts +3 -0
- package/dist/components/Icon/components/AttachCancel.d.ts +3 -0
- package/dist/components/Icon/components/Autotext.d.ts +3 -0
- package/dist/components/Icon/components/AutotextInsert.d.ts +3 -0
- package/dist/components/Icon/components/Basic.d.ts +3 -0
- package/dist/components/Icon/components/BasicTabs.d.ts +3 -0
- package/dist/components/Icon/components/BellSolid.d.ts +3 -0
- package/dist/components/Icon/components/Book.d.ts +3 -0
- package/dist/components/Icon/components/Booking.d.ts +3 -0
- package/dist/components/Icon/components/Budget.d.ts +3 -0
- package/dist/components/Icon/components/Calendar.d.ts +3 -0
- package/dist/components/Icon/components/CashAccount.d.ts +3 -0
- package/dist/components/Icon/components/CashReports.d.ts +3 -0
- package/dist/components/Icon/components/Chat.d.ts +3 -0
- package/dist/components/Icon/components/ChatSolid.d.ts +3 -0
- package/dist/components/Icon/components/ChevronDown.d.ts +3 -0
- package/dist/components/Icon/components/ChevronDownDouble.d.ts +3 -0
- package/dist/components/Icon/components/ChevronDownSolid.d.ts +3 -0
- package/dist/components/Icon/components/ChevronLeft.d.ts +3 -0
- package/dist/components/Icon/components/ChevronLeftDouble.d.ts +3 -0
- package/dist/components/Icon/components/ChevronLeftSolid.d.ts +3 -0
- package/dist/components/Icon/components/ChevronRight.d.ts +3 -0
- package/dist/components/Icon/components/ChevronRightDouble.d.ts +3 -0
- package/dist/components/Icon/components/ChevronRightSolid.d.ts +3 -0
- package/dist/components/Icon/components/ChevronUp.d.ts +3 -0
- package/dist/components/Icon/components/ChevronUpDouble.d.ts +3 -0
- package/dist/components/Icon/components/ChevronUpSolid.d.ts +3 -0
- package/dist/components/Icon/components/CircleClose.d.ts +3 -0
- package/dist/components/Icon/components/CircleMinus.d.ts +3 -0
- package/dist/components/Icon/components/CirclePlus.d.ts +3 -0
- package/dist/components/Icon/components/CircleTick.d.ts +3 -0
- package/dist/components/Icon/components/Clamp.d.ts +3 -0
- package/dist/components/Icon/components/ClampOpen.d.ts +3 -0
- package/dist/components/Icon/components/Close.d.ts +3 -0
- package/dist/components/Icon/components/ConnectionEnable.d.ts +3 -0
- package/dist/components/Icon/components/ConnectionRevoke.d.ts +3 -0
- package/dist/components/Icon/components/Contacts.d.ts +3 -0
- package/dist/components/Icon/components/Copy.d.ts +3 -0
- package/dist/components/Icon/components/Courses.d.ts +3 -0
- package/dist/components/Icon/components/Credit.d.ts +3 -0
- package/dist/components/Icon/components/Delete.d.ts +3 -0
- package/dist/components/Icon/components/DeletePermanently.d.ts +3 -0
- package/dist/components/Icon/components/Depecriate.d.ts +3 -0
- package/dist/components/Icon/components/Developer.d.ts +3 -0
- package/dist/components/Icon/components/DistributionTemplate.d.ts +3 -0
- package/dist/components/Icon/components/Document.d.ts +3 -0
- package/dist/components/Icon/components/DocumentApprove.d.ts +3 -0
- package/dist/components/Icon/components/DocumentCreateEntry.d.ts +3 -0
- package/dist/components/Icon/components/DocumentCut.d.ts +3 -0
- package/dist/components/Icon/components/DocumentError.d.ts +3 -0
- package/dist/components/Icon/components/DocumentIsolatePage.d.ts +3 -0
- package/dist/components/Icon/components/DocumentMerge.d.ts +3 -0
- package/dist/components/Icon/components/DocumentMove.d.ts +3 -0
- package/dist/components/Icon/components/DocumentPreview.d.ts +3 -0
- package/dist/components/Icon/components/DocumentReceived.d.ts +3 -0
- package/dist/components/Icon/components/DocumentRejectedRequest.d.ts +3 -0
- package/dist/components/Icon/components/DocumentSplit.d.ts +3 -0
- package/dist/components/Icon/components/DocumentTime.d.ts +3 -0
- package/dist/components/Icon/components/Download.d.ts +3 -0
- package/dist/components/Icon/components/Drag.d.ts +3 -0
- package/dist/components/Icon/components/ECopedia.d.ts +3 -0
- package/dist/components/Icon/components/ESignature.d.ts +3 -0
- package/dist/components/Icon/components/Edit.d.ts +3 -0
- package/dist/components/Icon/components/EllipsisHorizontal.d.ts +3 -0
- package/dist/components/Icon/components/EllipsisVertical.d.ts +3 -0
- package/dist/components/Icon/components/EntriesOnAccount.d.ts +3 -0
- package/dist/components/Icon/components/EntriesOpen.d.ts +3 -0
- package/dist/components/Icon/components/EntriesWarning.d.ts +3 -0
- package/dist/components/Icon/components/EntryTypeCustomerInvoice.d.ts +3 -0
- package/dist/components/Icon/components/EntryTypeCustomerPayment.d.ts +3 -0
- package/dist/components/Icon/components/EntryTypeJournalEntry.d.ts +3 -0
- package/dist/components/Icon/components/EntryTypeManualCustomerInvoice.d.ts +3 -0
- package/dist/components/Icon/components/EntryTypeSupplierInvoice.d.ts +3 -0
- package/dist/components/Icon/components/EntryTypeSupplierPayment.d.ts +3 -0
- package/dist/components/Icon/components/Envelope.d.ts +3 -0
- package/dist/components/Icon/components/EnvelopeApproved.d.ts +3 -0
- package/dist/components/Icon/components/ExpandView.d.ts +3 -0
- package/dist/components/Icon/components/Expenses.d.ts +3 -0
- package/dist/components/Icon/components/Export.d.ts +3 -0
- package/dist/components/Icon/components/ExportToExcel.d.ts +3 -0
- package/dist/components/Icon/components/ExportToPdf.d.ts +3 -0
- package/dist/components/Icon/components/Filter.d.ts +3 -0
- package/dist/components/Icon/components/FilterSolid.d.ts +3 -0
- package/dist/components/Icon/components/GraphSolid.d.ts +3 -0
- package/dist/components/Icon/components/Hash.d.ts +3 -0
- package/dist/components/Icon/components/Home.d.ts +3 -0
- package/dist/components/Icon/components/Images.d.ts +3 -0
- package/dist/components/Icon/components/Import.d.ts +3 -0
- package/dist/components/Icon/components/Inbox.d.ts +3 -0
- package/dist/components/Icon/components/InboxEinvoicing.d.ts +3 -0
- package/dist/components/Icon/components/InboxScanning.d.ts +3 -0
- package/dist/components/Icon/components/InboxSmart.d.ts +3 -0
- package/dist/components/Icon/components/Info.d.ts +3 -0
- package/dist/components/Icon/components/Inventory.d.ts +3 -0
- package/dist/components/Icon/components/InventoryMatrix.d.ts +3 -0
- package/dist/components/Icon/components/JournalPro.d.ts +3 -0
- package/dist/components/Icon/components/Layout.d.ts +3 -0
- package/dist/components/Icon/components/LayoutBoth.d.ts +3 -0
- package/dist/components/Icon/components/LayoutFirst.d.ts +3 -0
- package/dist/components/Icon/components/LayoutLast.d.ts +3 -0
- package/dist/components/Icon/components/LayoutNone.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCard.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardCustomerReminder.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardManualCustomerInvoice.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardObsoleteStock.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardOpeningEntry.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardReservedEntry.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardShrinkagePilferage.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardStockAdjustment.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardTransferredOpeningEntry.d.ts +3 -0
- package/dist/components/Icon/components/Lightbulb.d.ts +3 -0
- package/dist/components/Icon/components/Line.d.ts +3 -0
- package/dist/components/Icon/components/List.d.ts +3 -0
- package/dist/components/Icon/components/ListBulleted.d.ts +3 -0
- package/dist/components/Icon/components/ListSearch.d.ts +3 -0
- package/dist/components/Icon/components/LockOpen.d.ts +3 -0
- package/dist/components/Icon/components/Log.d.ts +3 -0
- package/dist/components/Icon/components/LogOut.d.ts +3 -0
- package/dist/components/Icon/components/Market.d.ts +3 -0
- package/dist/components/Icon/components/MatchAmount.d.ts +3 -0
- package/dist/components/Icon/components/MatchEntries.d.ts +3 -0
- package/dist/components/Icon/components/Menu.d.ts +3 -0
- package/dist/components/Icon/components/Mileage.d.ts +3 -0
- package/dist/components/Icon/components/ModalResize.d.ts +3 -0
- package/dist/components/Icon/components/ModalShrink.d.ts +3 -0
- package/dist/components/Icon/components/More.d.ts +3 -0
- package/dist/components/Icon/components/MoreSolid.d.ts +3 -0
- package/dist/components/Icon/components/Move.d.ts +3 -0
- package/dist/components/Icon/components/NavigationList.d.ts +3 -0
- package/dist/components/Icon/components/Note.d.ts +3 -0
- package/dist/components/Icon/components/NoteFollowUp.d.ts +3 -0
- package/dist/components/Icon/components/NoteRead.d.ts +3 -0
- package/dist/components/Icon/components/Numbers.d.ts +3 -0
- package/dist/components/Icon/components/PartnerApi.d.ts +3 -0
- package/dist/components/Icon/components/Period.d.ts +3 -0
- package/dist/components/Icon/components/PersonChange.d.ts +3 -0
- package/dist/components/Icon/components/PersonMinus.d.ts +3 -0
- package/dist/components/Icon/components/PersonPlus.d.ts +3 -0
- package/dist/components/Icon/components/PersonTick.d.ts +3 -0
- package/dist/components/Icon/components/Play.d.ts +3 -0
- package/dist/components/Icon/components/PlusMinus.d.ts +3 -0
- package/dist/components/Icon/components/Print.d.ts +3 -0
- package/dist/components/Icon/components/ProcessPayment.d.ts +3 -0
- package/dist/components/Icon/components/ProductLedgerCard.d.ts +3 -0
- package/dist/components/Icon/components/Profile.d.ts +3 -0
- package/dist/components/Icon/components/ProjectCards.d.ts +3 -0
- package/dist/components/Icon/components/Projects.d.ts +3 -0
- package/dist/components/Icon/components/Quicklinks.d.ts +3 -0
- package/dist/components/Icon/components/RatingBankruptcy.d.ts +3 -0
- package/dist/components/Icon/components/RatingPaymentProblems.d.ts +3 -0
- package/dist/components/Icon/components/Reconciled.d.ts +3 -0
- package/dist/components/Icon/components/Refresh.d.ts +3 -0
- package/dist/components/Icon/components/Report.d.ts +3 -0
- package/dist/components/Icon/components/ReportSolid.d.ts +3 -0
- package/dist/components/Icon/components/Restore.d.ts +3 -0
- package/dist/components/Icon/components/RotateLeft.d.ts +3 -0
- package/dist/components/Icon/components/RotateRight.d.ts +3 -0
- package/dist/components/Icon/components/Sales.d.ts +3 -0
- package/dist/components/Icon/components/Search.d.ts +3 -0
- package/dist/components/Icon/components/SearchBold.d.ts +3 -0
- package/dist/components/Icon/components/Secure.d.ts +3 -0
- package/dist/components/Icon/components/SecureTick.d.ts +3 -0
- package/dist/components/Icon/components/Settings.d.ts +3 -0
- package/dist/components/Icon/components/SettingsSolid.d.ts +3 -0
- package/dist/components/Icon/components/Shortcuts.d.ts +3 -0
- package/dist/components/Icon/components/ShowAll.d.ts +3 -0
- package/dist/components/Icon/components/ShowLess.d.ts +3 -0
- package/dist/components/Icon/components/ShowMore.d.ts +3 -0
- package/dist/components/Icon/components/ShowTemplate.d.ts +3 -0
- package/dist/components/Icon/components/Sliders.d.ts +3 -0
- package/dist/components/Icon/components/Smartpay.d.ts +3 -0
- package/dist/components/Icon/components/SortBy.d.ts +3 -0
- package/dist/components/Icon/components/Spinner.d.ts +3 -0
- package/dist/components/Icon/components/Star.d.ts +3 -0
- package/dist/components/Icon/components/StarSolid.d.ts +3 -0
- package/dist/components/Icon/components/Subscriptions.d.ts +3 -0
- package/dist/components/Icon/components/SystemEntries.d.ts +3 -0
- package/dist/components/Icon/components/Tag.d.ts +3 -0
- package/dist/components/Icon/components/TemplateOverride.d.ts +3 -0
- package/dist/components/Icon/components/Templates.d.ts +3 -0
- package/dist/components/Icon/components/ThumbBoth.d.ts +3 -0
- package/dist/components/Icon/components/ThumbDown.d.ts +3 -0
- package/dist/components/Icon/components/ThumbDownSolid.d.ts +3 -0
- package/dist/components/Icon/components/ThumbUp.d.ts +3 -0
- package/dist/components/Icon/components/ThumbUpSolid.d.ts +3 -0
- package/dist/components/Icon/components/Tick.d.ts +3 -0
- package/dist/components/Icon/components/Time.d.ts +3 -0
- package/dist/components/Icon/components/Transfer.d.ts +3 -0
- package/dist/components/Icon/components/TransferCancel.d.ts +3 -0
- package/dist/components/Icon/components/TransferLocked.d.ts +3 -0
- package/dist/components/Icon/components/Undo.d.ts +3 -0
- package/dist/components/Icon/components/Undock.d.ts +3 -0
- package/dist/components/Icon/components/Unreconciled.d.ts +3 -0
- package/dist/components/Icon/components/Warning.d.ts +3 -0
- package/dist/components/Icon/components/Webshop.d.ts +3 -0
- package/dist/components/Icon/components/Website.d.ts +3 -0
- package/dist/components/Icon/components/Workflow.d.ts +3 -0
- package/dist/components/Icon/components/Zoom.d.ts +3 -0
- package/dist/components/Icon/components/index.d.ts +3 -0
- package/dist/components/IconButton/IconButton.d.ts +92 -0
- package/dist/components/IconButton/IconButton.stories.d.ts +12 -0
- package/dist/components/Input/Input.d.ts +27 -0
- package/dist/components/Input/Input.stories.d.ts +17 -0
- package/dist/components/Input/util.d.ts +2 -0
- package/dist/components/Listbox/Listbox.d.ts +96 -0
- package/dist/components/Listbox/Listbox.stories.d.ts +44 -0
- package/dist/components/Listbox/ScrollableList.d.ts +120 -0
- package/dist/components/Listbox/useListbox.d.ts +9 -0
- package/dist/components/Listbox/useMultiListbox.d.ts +9 -0
- package/dist/components/Listbox/useTypeahead.d.ts +10 -0
- package/dist/components/Listbox/util.d.ts +25 -0
- package/dist/components/Menu/Context.d.ts +15 -0
- package/dist/components/Menu/Menu.d.ts +30 -0
- package/dist/components/Menu/Menu.stories.d.ts +73 -0
- package/dist/components/Menu/components/Checkbox.d.ts +11 -0
- package/dist/components/Menu/components/Content.d.ts +15 -0
- package/dist/components/Menu/components/Header.d.ts +3 -0
- package/dist/components/Menu/components/Item.d.ts +26 -0
- package/dist/components/Menu/components/Link.d.ts +14 -0
- package/dist/components/Menu/components/RadioGroup.d.ts +9 -0
- package/dist/components/Menu/components/Separator.d.ts +2 -0
- package/dist/components/Menu/components/Trigger.d.ts +7 -0
- package/dist/components/Navigation/Navigation.d.ts +50 -0
- package/dist/components/Navigation/Navigation.stories.d.ts +7 -0
- package/dist/components/Pagination/PageNumbers.d.ts +8 -0
- package/dist/components/Pagination/Pagination.d.ts +100 -0
- package/dist/components/Pagination/Pagination.stories.d.ts +28 -0
- package/dist/components/Pagination/usePagination.d.ts +11 -0
- package/dist/components/Pagination/usePaginationShortcuts.d.ts +8 -0
- package/dist/components/Popover/Popover.d.ts +31 -0
- package/dist/components/Popover/Popover.stories.d.ts +29 -0
- package/dist/components/Popover/Primitives.d.ts +2 -0
- package/dist/components/Popover/util.d.ts +1 -0
- package/dist/components/Progress/Progress.d.ts +10 -0
- package/dist/components/Progress/Progress.stories.d.ts +8 -0
- package/dist/components/Provider/Localization.d.ts +158 -0
- package/dist/components/Provider/Provider.d.ts +9 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +52 -0
- package/dist/components/RadioGroup/RadioGroup.stories.d.ts +49 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +4 -0
- package/dist/components/ScrollArea/ScrollArea.stories.d.ts +8 -0
- package/dist/components/SearchInput/SearchInput.d.ts +15 -0
- package/dist/components/SearchInput/SearchInput.stories.d.ts +38 -0
- package/dist/components/Select/Select.d.ts +40 -0
- package/dist/components/Select/Select.stories.d.ts +35 -0
- package/dist/components/Select/useSelect.d.ts +21 -0
- package/dist/components/Select2/Select2.d.ts +45 -0
- package/dist/components/Select2/Select2.stories.d.ts +51 -0
- package/dist/components/Select2/components/All.d.ts +7 -0
- package/dist/components/Select2/components/Collection.d.ts +6 -0
- package/dist/components/Select2/components/Context.d.ts +29 -0
- package/dist/components/Select2/components/Create.d.ts +9 -0
- package/dist/components/Select2/components/Edit.d.ts +10 -0
- package/dist/components/Select2/components/Group.d.ts +4 -0
- package/dist/components/Select2/components/Option.d.ts +16 -0
- package/dist/components/Select2/components/Search.d.ts +12 -0
- package/dist/components/Select2/components/Title.d.ts +4 -0
- package/dist/components/Select2/components/Trigger.d.ts +5 -0
- package/dist/components/Select2/hooks/useChildren.d.ts +17 -0
- package/dist/components/Select2/types.d.ts +3 -0
- package/dist/components/Select2/utilities.d.ts +2 -0
- package/dist/components/Spinner/Spinner.d.ts +20 -0
- package/dist/components/Spinner/Spinner.stories.d.ts +15 -0
- package/dist/components/Switch/Switch.d.ts +19 -0
- package/dist/components/Table/Table.d.ts +14 -0
- package/dist/components/Table/Table.stories.d.ts +32 -0
- package/dist/components/Table/Table.storyexample.d.ts +9 -0
- package/dist/components/Table/components/BaseTable.d.ts +8 -0
- package/dist/components/Table/components/PaginatedTable.d.ts +2 -0
- package/dist/components/Table/components/Table.d.ts +2 -0
- package/dist/components/Table/components/WindowedTable.d.ts +2 -0
- package/dist/components/Table/hooks/plugins/useRowActions.d.ts +4 -0
- package/dist/components/Table/hooks/plugins/useRowDraggable.d.ts +3 -0
- package/dist/components/Table/hooks/plugins/useRowEditing.d.ts +2 -0
- package/dist/components/Table/hooks/plugins/useRowSelect.d.ts +3 -0
- package/dist/components/Table/hooks/useRowCreation.d.ts +11 -0
- package/dist/components/Table/hooks/useTable.d.ts +38 -0
- package/dist/components/Table/hooks/useTableKeyboardNavigation.d.ts +3 -0
- package/dist/components/Table/types.d.ts +284 -0
- package/dist/components/Table/util/renderColumn.d.ts +1 -0
- package/dist/components/Table/util/renderRow.d.ts +2 -0
- package/dist/components/Table/util/rowIndexPath.d.ts +5 -0
- package/dist/components/Table/util/sortTypes.d.ts +4 -0
- package/dist/components/Table/util.d.ts +12 -0
- package/dist/components/Tabs/Tabs.d.ts +55 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +19 -0
- package/dist/components/Tag/Tag.d.ts +19 -0
- package/dist/components/Tag/Tag.stories.d.ts +9 -0
- package/dist/components/Textarea/Textarea.d.ts +15 -0
- package/dist/components/Textarea/Textarea.stories.d.ts +40 -0
- package/dist/components/Toast/Toast.d.ts +36 -0
- package/dist/components/Toast/Toast.stories.d.ts +12 -0
- package/dist/components/Toast/Toaster.d.ts +35 -0
- package/dist/components/Toast/util.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.d.ts +23 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +26 -0
- package/dist/components/Tour/Tour.d.ts +72 -0
- package/dist/components/Tour/Tour.stories.d.ts +11 -0
- package/dist/components/Treeview/Treeview.d.ts +25 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +4 -0
- package/dist/css/Typography.stories.d.ts +6 -0
- package/dist/{taco.css → esm/index.css} +415 -413
- package/dist/esm/node_modules/babel-plugin-transform-async-to-promises/helpers.mjs.js +19 -0
- package/dist/esm/node_modules/babel-plugin-transform-async-to-promises/helpers.mjs.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Accordion/Accordion.js +86 -0
- package/dist/esm/packages/taco/src/components/Accordion/Accordion.js.map +1 -0
- package/dist/esm/packages/taco/src/components/AlertDialog/AlertDialog.js +37 -0
- package/dist/esm/packages/taco/src/components/AlertDialog/AlertDialog.js.map +1 -0
- package/dist/esm/packages/taco/src/components/AlertDialog/Context.js +13 -0
- package/dist/esm/packages/taco/src/components/AlertDialog/Context.js.map +1 -0
- package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js +26 -0
- package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js.map +1 -0
- package/dist/esm/packages/taco/src/components/AlertDialog/components/Footer.js +26 -0
- package/dist/esm/packages/taco/src/components/AlertDialog/components/Footer.js.map +1 -0
- package/dist/esm/packages/taco/src/components/AlertDialog/components/Trigger.js +19 -0
- package/dist/esm/packages/taco/src/components/AlertDialog/components/Trigger.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js +14 -0
- package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Badge/Badge.js +32 -0
- package/dist/esm/packages/taco/src/components/Badge/Badge.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Banner/Banner.js +31 -0
- package/dist/esm/packages/taco/src/components/Banner/Banner.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Banner/util.js +32 -0
- package/dist/esm/packages/taco/src/components/Banner/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Button/Button.js +52 -0
- package/dist/esm/packages/taco/src/components/Button/Button.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Button/util.js +73 -0
- package/dist/esm/packages/taco/src/components/Button/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Calendar/Calendar.js +125 -0
- package/dist/esm/packages/taco/src/components/Calendar/Calendar.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Card/Card.js +43 -0
- package/dist/esm/packages/taco/src/components/Card/Card.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js +65 -0
- package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Combobox/Combobox.js +90 -0
- package/dist/esm/packages/taco/src/components/Combobox/Combobox.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Combobox/useCombobox.js +253 -0
- package/dist/esm/packages/taco/src/components/Combobox/useCombobox.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js +75 -0
- package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Datepicker/useDatepicker.js +83 -0
- package/dist/esm/packages/taco/src/components/Datepicker/useDatepicker.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Dialog/Context.js +26 -0
- package/dist/esm/packages/taco/src/components/Dialog/Context.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Dialog/Dialog.js +77 -0
- package/dist/esm/packages/taco/src/components/Dialog/Dialog.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Dialog/components/Content.js +118 -0
- package/dist/esm/packages/taco/src/components/Dialog/components/Content.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Dialog/components/Drawer.js +41 -0
- package/dist/esm/packages/taco/src/components/Dialog/components/Drawer.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js +15 -0
- package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Dialog/components/Trigger.js +19 -0
- package/dist/esm/packages/taco/src/components/Dialog/components/Trigger.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Dialog/util.js +19 -0
- package/dist/esm/packages/taco/src/components/Dialog/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Field/Field.js +31 -0
- package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Form/Form.js +20 -0
- package/dist/esm/packages/taco/src/components/Form/Form.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Group/Group.js +21 -0
- package/dist/esm/packages/taco/src/components/Group/Group.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Hanger/Hanger.js +101 -0
- package/dist/esm/packages/taco/src/components/Hanger/Hanger.js.map +1 -0
- package/dist/esm/packages/taco/src/components/HoverCard/HoverCard.js +37 -0
- package/dist/esm/packages/taco/src/components/HoverCard/HoverCard.js.map +1 -0
- package/dist/esm/packages/taco/src/components/HoverCard/Primitives.js +27 -0
- package/dist/esm/packages/taco/src/components/HoverCard/Primitives.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/Icon.js +27 -0
- package/dist/esm/packages/taco/src/components/Icon/Icon.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AccountPreview.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AccountPreview.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Accounting.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Accounting.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AccountingYear.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AccountingYear.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AccountingYearCancel.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AccountingYearCancel.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowBottom.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowBottom.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowDown.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowDown.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowEnd.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowEnd.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowLeft.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowLeft.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowRight.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowRight.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowStart.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowStart.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowTop.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowTop.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowUp.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ArrowUp.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Attach.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Attach.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AttachAuto.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AttachAuto.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AttachCancel.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AttachCancel.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Autotext.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Autotext.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AutotextInsert.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AutotextInsert.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Basic.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Basic.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/BasicTabs.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/BasicTabs.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/BellSolid.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/BellSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Book.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Book.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Booking.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Booking.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Budget.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Budget.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Calendar.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Calendar.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/CashAccount.js +16 -0
- package/dist/esm/packages/taco/src/components/Icon/components/CashAccount.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/CashReports.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/CashReports.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Chat.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Chat.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChatSolid.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChatSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronDown.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronDown.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronDownDouble.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronDownDouble.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronDownSolid.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronDownSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronLeft.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronLeft.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronLeftDouble.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronLeftDouble.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronLeftSolid.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronLeftSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronRight.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronRight.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronRightDouble.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronRightDouble.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronRightSolid.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronRightSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronUp.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronUp.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronUpDouble.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronUpDouble.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronUpSolid.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ChevronUpSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/CircleClose.js +18 -0
- package/dist/esm/packages/taco/src/components/Icon/components/CircleClose.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/CircleMinus.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/CircleMinus.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/CirclePlus.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/CirclePlus.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/CircleTick.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/CircleTick.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Clamp.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Clamp.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ClampOpen.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ClampOpen.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Close.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Close.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ConnectionEnable.js +16 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ConnectionEnable.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ConnectionRevoke.js +16 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ConnectionRevoke.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Contacts.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Contacts.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Copy.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Copy.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Courses.js +16 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Courses.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Credit.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Credit.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Delete.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Delete.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DeletePermanently.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DeletePermanently.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Depecriate.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Depecriate.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Developer.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Developer.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DistributionTemplate.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DistributionTemplate.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Document.js +16 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Document.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentApprove.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentApprove.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentCreateEntry.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentCreateEntry.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentCut.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentCut.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentError.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentError.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentIsolatePage.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentIsolatePage.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentMerge.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentMerge.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentMove.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentMove.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentPreview.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentPreview.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentReceived.js +16 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentReceived.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentRejectedRequest.js +16 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentRejectedRequest.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentSplit.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentSplit.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentTime.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentTime.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Download.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Download.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Drag.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Drag.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ECopedia.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ECopedia.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ESignature.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ESignature.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Edit.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Edit.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EllipsisHorizontal.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EllipsisHorizontal.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EllipsisVertical.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EllipsisVertical.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntriesOnAccount.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntriesOnAccount.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntriesOpen.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntriesOpen.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntriesWarning.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntriesWarning.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntryTypeCustomerInvoice.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntryTypeCustomerInvoice.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntryTypeCustomerPayment.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntryTypeCustomerPayment.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntryTypeJournalEntry.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntryTypeJournalEntry.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntryTypeManualCustomerInvoice.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntryTypeManualCustomerInvoice.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntryTypeSupplierInvoice.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntryTypeSupplierInvoice.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntryTypeSupplierPayment.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EntryTypeSupplierPayment.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Envelope.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Envelope.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EnvelopeApproved.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EnvelopeApproved.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ExpandView.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ExpandView.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Expenses.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Expenses.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Export.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Export.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ExportToExcel.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ExportToExcel.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ExportToPdf.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ExportToPdf.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Filter.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Filter.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/FilterSolid.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/FilterSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/GraphSolid.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/GraphSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Hash.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Hash.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Home.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Home.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Images.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Images.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Import.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Import.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Inbox.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Inbox.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/InboxEinvoicing.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/InboxEinvoicing.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/InboxScanning.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/InboxScanning.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/InboxSmart.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/InboxSmart.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Info.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Info.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Inventory.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Inventory.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/InventoryMatrix.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/InventoryMatrix.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/JournalPro.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/JournalPro.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Layout.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Layout.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LayoutBoth.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LayoutBoth.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LayoutFirst.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LayoutFirst.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LayoutLast.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LayoutLast.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LayoutNone.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LayoutNone.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCard.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCard.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardCustomerReminder.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardCustomerReminder.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardManualCustomerInvoice.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardManualCustomerInvoice.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardObsoleteStock.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardObsoleteStock.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardOpeningEntry.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardOpeningEntry.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardReservedEntry.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardReservedEntry.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardShrinkagePilferage.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardShrinkagePilferage.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardStockAdjustment.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardStockAdjustment.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardTransferredOpeningEntry.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LedgerCardTransferredOpeningEntry.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Lightbulb.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Lightbulb.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Line.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Line.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/List.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/List.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ListBulleted.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ListBulleted.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ListSearch.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ListSearch.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LockOpen.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LockOpen.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Log.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Log.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LogOut.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/LogOut.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Market.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Market.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/MatchAmount.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/MatchAmount.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/MatchEntries.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/MatchEntries.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Menu.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Menu.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Mileage.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Mileage.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ModalResize.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ModalResize.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ModalShrink.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ModalShrink.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/More.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/More.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/MoreSolid.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/MoreSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Move.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Move.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/NavigationList.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/NavigationList.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Note.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Note.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/NoteFollowUp.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/NoteFollowUp.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/NoteRead.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/NoteRead.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Numbers.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Numbers.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/PartnerApi.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/PartnerApi.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Period.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Period.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/PersonChange.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/PersonChange.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/PersonMinus.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/PersonMinus.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/PersonPlus.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/PersonPlus.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/PersonTick.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/PersonTick.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Play.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Play.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/PlusMinus.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/PlusMinus.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Print.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Print.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ProcessPayment.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ProcessPayment.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ProductLedgerCard.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ProductLedgerCard.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Profile.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Profile.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ProjectCards.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ProjectCards.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Projects.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Projects.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Quicklinks.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Quicklinks.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/RatingBankruptcy.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/RatingBankruptcy.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/RatingPaymentProblems.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/RatingPaymentProblems.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Reconciled.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Reconciled.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Refresh.js +16 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Refresh.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Report.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Report.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ReportSolid.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ReportSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Restore.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Restore.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/RotateLeft.js +16 -0
- package/dist/esm/packages/taco/src/components/Icon/components/RotateLeft.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/RotateRight.js +16 -0
- package/dist/esm/packages/taco/src/components/Icon/components/RotateRight.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Sales.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Sales.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Search.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Search.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/SearchBold.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/SearchBold.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Secure.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Secure.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/SecureTick.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/SecureTick.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Settings.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Settings.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/SettingsSolid.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/SettingsSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Shortcuts.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Shortcuts.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ShowAll.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ShowAll.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ShowLess.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ShowLess.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ShowMore.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ShowMore.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ShowTemplate.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ShowTemplate.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Sliders.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Sliders.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Smartpay.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Smartpay.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/SortBy.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/SortBy.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Spinner.js +20 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Spinner.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Star.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Star.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/StarSolid.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/StarSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Subscriptions.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Subscriptions.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/SystemEntries.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/SystemEntries.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Tag.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Tag.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/TemplateOverride.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/TemplateOverride.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Templates.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Templates.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ThumbBoth.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ThumbBoth.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ThumbDown.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ThumbDown.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ThumbDownSolid.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ThumbDownSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ThumbUp.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ThumbUp.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ThumbUpSolid.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/ThumbUpSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Tick.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Tick.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Time.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Time.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Transfer.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Transfer.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/TransferCancel.js +23 -0
- package/dist/esm/packages/taco/src/components/Icon/components/TransferCancel.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/TransferLocked.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/TransferLocked.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Undo.js +25 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Undo.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Undock.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Undock.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Unreconciled.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Unreconciled.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Warning.js +16 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Warning.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Webshop.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Webshop.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Website.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Website.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Workflow.js +16 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Workflow.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Zoom.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Zoom.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/index.js +428 -0
- package/dist/esm/packages/taco/src/components/Icon/components/index.js.map +1 -0
- package/dist/esm/packages/taco/src/components/IconButton/IconButton.js +50 -0
- package/dist/esm/packages/taco/src/components/IconButton/IconButton.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Input/Input.js +119 -0
- package/dist/esm/packages/taco/src/components/Input/Input.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Input/util.js +31 -0
- package/dist/esm/packages/taco/src/components/Input/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Listbox/Listbox.js +55 -0
- package/dist/esm/packages/taco/src/components/Listbox/Listbox.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js +165 -0
- package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Listbox/useListbox.js +130 -0
- package/dist/esm/packages/taco/src/components/Listbox/useListbox.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Listbox/useMultiListbox.js +177 -0
- package/dist/esm/packages/taco/src/components/Listbox/useMultiListbox.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Listbox/useTypeahead.js +26 -0
- package/dist/esm/packages/taco/src/components/Listbox/useTypeahead.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Listbox/util.js +130 -0
- package/dist/esm/packages/taco/src/components/Listbox/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Menu/Context.js +9 -0
- package/dist/esm/packages/taco/src/components/Menu/Context.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Menu/Menu.js +59 -0
- package/dist/esm/packages/taco/src/components/Menu/Menu.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Menu/components/Checkbox.js +32 -0
- package/dist/esm/packages/taco/src/components/Menu/components/Checkbox.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Menu/components/Content.js +31 -0
- package/dist/esm/packages/taco/src/components/Menu/components/Content.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Menu/components/Header.js +19 -0
- package/dist/esm/packages/taco/src/components/Menu/components/Header.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Menu/components/Item.js +88 -0
- package/dist/esm/packages/taco/src/components/Menu/components/Item.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Menu/components/Link.js +37 -0
- package/dist/esm/packages/taco/src/components/Menu/components/Link.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Menu/components/RadioGroup.js +49 -0
- package/dist/esm/packages/taco/src/components/Menu/components/RadioGroup.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Menu/components/Separator.js +11 -0
- package/dist/esm/packages/taco/src/components/Menu/components/Separator.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js +21 -0
- package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Navigation/Navigation.js +120 -0
- package/dist/esm/packages/taco/src/components/Navigation/Navigation.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Pagination/PageNumbers.js +44 -0
- package/dist/esm/packages/taco/src/components/Pagination/PageNumbers.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Pagination/Pagination.js +102 -0
- package/dist/esm/packages/taco/src/components/Pagination/Pagination.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Pagination/usePagination.js +15 -0
- package/dist/esm/packages/taco/src/components/Pagination/usePagination.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Pagination/usePaginationShortcuts.js +44 -0
- package/dist/esm/packages/taco/src/components/Pagination/usePaginationShortcuts.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Popover/Popover.js +98 -0
- package/dist/esm/packages/taco/src/components/Popover/Popover.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Popover/Primitives.js +27 -0
- package/dist/esm/packages/taco/src/components/Popover/Primitives.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Popover/util.js +4 -0
- package/dist/esm/packages/taco/src/components/Popover/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Progress/Progress.js +30 -0
- package/dist/esm/packages/taco/src/components/Progress/Progress.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Provider/Localization.js +113 -0
- package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Provider/Provider.js +17 -0
- package/dist/esm/packages/taco/src/components/Provider/Provider.js.map +1 -0
- package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js +106 -0
- package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js +37 -0
- package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js.map +1 -0
- package/dist/esm/packages/taco/src/components/SearchInput/SearchInput.js +59 -0
- package/dist/esm/packages/taco/src/components/SearchInput/SearchInput.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Select/Select.js +97 -0
- package/dist/esm/packages/taco/src/components/Select/Select.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Select/useSelect.js +191 -0
- package/dist/esm/packages/taco/src/components/Select/useSelect.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Select2/Select2.js +218 -0
- package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Collection.js +14 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Collection.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Context.js +7 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Context.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Create.js +82 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Create.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Edit.js +189 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Edit.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Group.js +18 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Group.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Option.js +93 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Option.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Search.js +57 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Search.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Title.js +17 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Title.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +230 -0
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js +55 -0
- package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Select2/utilities.js +5 -0
- package/dist/esm/packages/taco/src/components/Select2/utilities.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Spinner/Spinner.js +44 -0
- package/dist/esm/packages/taco/src/components/Spinner/Spinner.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Switch/Switch.js +48 -0
- package/dist/esm/packages/taco/src/components/Switch/Switch.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js +48 -0
- package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/components/PaginatedTable.js +14 -0
- package/dist/esm/packages/taco/src/components/Table/components/PaginatedTable.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/components/Table.js +52 -0
- package/dist/esm/packages/taco/src/components/Table/components/Table.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +178 -0
- package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +207 -0
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowDraggable.js +113 -0
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowDraggable.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowEditing.js +92 -0
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowEditing.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowSelect.js +95 -0
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowSelect.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/hooks/useRowCreation.js +95 -0
- package/dist/esm/packages/taco/src/components/Table/hooks/useRowCreation.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/hooks/useTable.js +211 -0
- package/dist/esm/packages/taco/src/components/Table/hooks/useTable.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/hooks/useTableKeyboardNavigation.js +118 -0
- package/dist/esm/packages/taco/src/components/Table/hooks/useTableKeyboardNavigation.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js +40 -0
- package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/util/renderRow.js +100 -0
- package/dist/esm/packages/taco/src/components/Table/util/renderRow.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/util/rowIndexPath.js +47 -0
- package/dist/esm/packages/taco/src/components/Table/util/rowIndexPath.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/util/sortTypes.js +87 -0
- package/dist/esm/packages/taco/src/components/Table/util/sortTypes.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table/util.js +87 -0
- package/dist/esm/packages/taco/src/components/Table/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Tabs/Tabs.js +69 -0
- package/dist/esm/packages/taco/src/components/Tabs/Tabs.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Tag/Tag.js +42 -0
- package/dist/esm/packages/taco/src/components/Tag/Tag.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Textarea/Textarea.js +37 -0
- package/dist/esm/packages/taco/src/components/Textarea/Textarea.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Toast/Toast.js +79 -0
- package/dist/esm/packages/taco/src/components/Toast/Toast.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Toast/Toaster.js +151 -0
- package/dist/esm/packages/taco/src/components/Toast/Toaster.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Toast/util.js +40 -0
- package/dist/esm/packages/taco/src/components/Toast/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js +35 -0
- package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Tour/Tour.js +136 -0
- package/dist/esm/packages/taco/src/components/Tour/Tour.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Treeview/Treeview.js +70 -0
- package/dist/esm/packages/taco/src/components/Treeview/Treeview.js.map +1 -0
- package/dist/esm/packages/taco/src/components/VisuallyHidden/VisuallyHidden.js +11 -0
- package/dist/esm/packages/taco/src/components/VisuallyHidden/VisuallyHidden.js.map +1 -0
- package/dist/esm/packages/taco/src/hooks/useBoundingClientRectListener.js +43 -0
- package/dist/esm/packages/taco/src/hooks/useBoundingClientRectListener.js.map +1 -0
- package/dist/esm/packages/taco/src/hooks/useId.js +10 -0
- package/dist/esm/packages/taco/src/hooks/useId.js.map +1 -0
- package/dist/esm/packages/taco/src/hooks/useIsFormControl.js +28 -0
- package/dist/esm/packages/taco/src/hooks/useIsFormControl.js.map +1 -0
- package/dist/esm/packages/taco/src/hooks/useMergedRef.js +19 -0
- package/dist/esm/packages/taco/src/hooks/useMergedRef.js.map +1 -0
- package/dist/esm/packages/taco/src/hooks/usePrevious.js +17 -0
- package/dist/esm/packages/taco/src/hooks/usePrevious.js.map +1 -0
- package/dist/esm/packages/taco/src/index.js +58 -0
- package/dist/esm/packages/taco/src/index.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/BubbleSelect.js +53 -0
- package/dist/esm/packages/taco/src/primitives/BubbleSelect.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Button.js +21 -0
- package/dist/esm/packages/taco/src/primitives/Button.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Collection/components/Root.js +146 -0
- package/dist/esm/packages/taco/src/primitives/Collection/components/Root.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Listbox2/components/Context.js +7 -0
- package/dist/esm/packages/taco/src/primitives/Listbox2/components/Context.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Listbox2/components/Group.js +19 -0
- package/dist/esm/packages/taco/src/primitives/Listbox2/components/Group.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Listbox2/components/Option.js +56 -0
- package/dist/esm/packages/taco/src/primitives/Listbox2/components/Option.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Listbox2/components/Root.js +62 -0
- package/dist/esm/packages/taco/src/primitives/Listbox2/components/Root.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Listbox2/components/Title.js +25 -0
- package/dist/esm/packages/taco/src/primitives/Listbox2/components/Title.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/aria.js +15 -0
- package/dist/esm/packages/taco/src/utils/aria.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/colors.js +14 -0
- package/dist/esm/packages/taco/src/utils/colors.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/date.js +61 -0
- package/dist/esm/packages/taco/src/utils/date.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/debounce.js +10 -0
- package/dist/esm/packages/taco/src/utils/debounce.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/device.js +5 -0
- package/dist/esm/packages/taco/src/utils/device.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/dom.js +18 -0
- package/dist/esm/packages/taco/src/utils/dom.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/hooks/useDraggable.js +47 -0
- package/dist/esm/packages/taco/src/utils/hooks/useDraggable.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/hooks/useDropTarget.js +36 -0
- package/dist/esm/packages/taco/src/utils/hooks/useDropTarget.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/hooks/useListKeyboardNavigation.js +34 -0
- package/dist/esm/packages/taco/src/utils/hooks/useListKeyboardNavigation.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/hooks/useListScrollTo.js +33 -0
- package/dist/esm/packages/taco/src/utils/hooks/useListScrollTo.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/hooks/useOnClickOutside.js +22 -0
- package/dist/esm/packages/taco/src/utils/hooks/useOnClickOutside.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/hooks/useTimer.js +49 -0
- package/dist/esm/packages/taco/src/utils/hooks/useTimer.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/input.js +42 -0
- package/dist/esm/packages/taco/src/utils/input.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/mergeRefs.js +14 -0
- package/dist/esm/packages/taco/src/utils/mergeRefs.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/taillwind.js +33 -0
- package/dist/esm/packages/taco/src/utils/taillwind.js.map +1 -0
- package/dist/hooks/useBoundaryOverflowDetection.d.ts +2 -0
- package/dist/hooks/useBoundingClientRectListener.d.ts +2 -0
- package/dist/hooks/useId.d.ts +1 -0
- package/dist/hooks/useIsFormControl.d.ts +2 -0
- package/dist/hooks/useIsRefOverflowing.d.ts +2 -0
- package/dist/hooks/useMergedRef.d.ts +2 -0
- package/dist/hooks/usePrevious.d.ts +2 -0
- package/dist/{taco.esm.css → index.css} +415 -413
- package/dist/index.d.ts +53 -0
- package/dist/index.js +8 -0
- package/dist/primitives/BubbleSelect.d.ts +2 -0
- package/dist/primitives/Button.d.ts +19 -0
- package/dist/primitives/Collection/Collection.d.ts +2 -0
- package/dist/primitives/Collection/Collection.stories.d.ts +8 -0
- package/dist/primitives/Collection/components/Root.d.ts +12 -0
- package/dist/primitives/Listbox2/Listbox2.d.ts +5 -0
- package/dist/primitives/Listbox2/Listbox2.stories.d.ts +16 -0
- package/dist/primitives/Listbox2/components/Context.d.ts +10 -0
- package/dist/primitives/Listbox2/components/Group.d.ts +8 -0
- package/dist/primitives/Listbox2/components/Option.d.ts +10 -0
- package/dist/primitives/Listbox2/components/Root.d.ts +20 -0
- package/dist/primitives/Listbox2/components/Title.d.ts +3 -0
- package/dist/primitives/Listbox2/types.d.ts +2 -0
- package/dist/primitives/Sortable/Sortable.d.ts +6 -0
- package/dist/primitives/Sortable/Sortable.stories.d.ts +14 -0
- package/dist/primitives/Sortable/components/Container.d.ts +11 -0
- package/dist/primitives/Sortable/components/Item.d.ts +10 -0
- package/dist/primitives/Sortable/components/List.d.ts +8 -0
- package/dist/taco.cjs.development.js +10559 -0
- package/dist/taco.cjs.development.js.map +1 -0
- package/dist/taco.cjs.production.min.js +2 -0
- package/dist/taco.cjs.production.min.js.map +1 -0
- package/dist/types.d.ts +6 -1891
- package/dist/utils/aria.d.ts +2 -0
- package/dist/utils/colors.d.ts +12 -0
- package/dist/utils/date.d.ts +3 -0
- package/dist/utils/debounce.d.ts +1 -0
- package/dist/utils/device.d.ts +1 -0
- package/dist/utils/dom.d.ts +2 -0
- package/dist/utils/hooks/useDraggable.d.ts +2 -0
- package/dist/utils/hooks/useDropTarget.d.ts +8 -0
- package/dist/utils/hooks/useListKeyboardNavigation.d.ts +8 -0
- package/dist/utils/hooks/useListScrollTo.d.ts +1 -0
- package/dist/utils/hooks/useOnClickOutside.d.ts +2 -0
- package/dist/utils/hooks/useRefState.d.ts +1 -0
- package/dist/utils/hooks/useTimer.d.ts +7 -0
- package/dist/utils/input.d.ts +3 -0
- package/dist/utils/mergeRefs.d.ts +2 -0
- package/dist/utils/storyutils.d.ts +8 -0
- package/dist/utils/taillwind.d.ts +4 -0
- package/dist/utils/tailwind.d.ts +1 -0
- package/package.json +133 -139
- package/plugins/tailwindcss-aria-attributes.js +73 -73
- package/plugins/tailwindcss-group-peer.js +12 -0
- package/tailwind.config.js +534 -284
- package/types.json +66 -19
- package/dist/taco.css.map +0 -1
- package/dist/taco.esm.css.map +0 -1
- package/dist/taco.esm.js +0 -11833
- package/dist/taco.esm.js.map +0 -1
- package/dist/taco.js +0 -13436
- package/dist/taco.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
@@ -0,0 +1,48 @@
|
|
1
|
+
import { forwardRef, createElement } from 'react';
|
2
|
+
import cn from 'classnames';
|
3
|
+
import { useId } from '../../hooks/useId.js';
|
4
|
+
import { Root, Thumb } from '@radix-ui/react-switch';
|
5
|
+
|
6
|
+
const Switch = /*#__PURE__*/forwardRef(function Switch(props, ref) {
|
7
|
+
const {
|
8
|
+
label,
|
9
|
+
onChange,
|
10
|
+
...otherProps
|
11
|
+
} = props;
|
12
|
+
const id = useId(props.id);
|
13
|
+
const className = cn('group h-5 w-9 flex flex-shrink-0 rounded-full inline-flex', {
|
14
|
+
'mr-2': !!label,
|
15
|
+
'bg-grey-500 hover:bg-grey-300 aria-checked:bg-blue-500 aria-checked:hover:bg-blue-300 focus:yt-focus': !props.disabled,
|
16
|
+
'bg-grey-100 cursor-not-allowed aria-checked:bg-blue-300': props.disabled
|
17
|
+
}, props.className);
|
18
|
+
let labelledByProps = null;
|
19
|
+
if (label) {
|
20
|
+
labelledByProps = {
|
21
|
+
'aria-labelledby': `${id}-label`,
|
22
|
+
id
|
23
|
+
};
|
24
|
+
}
|
25
|
+
const element = /*#__PURE__*/createElement(Root, Object.assign({}, otherProps, labelledByProps, {
|
26
|
+
className: className,
|
27
|
+
onCheckedChange: onChange,
|
28
|
+
ref: ref
|
29
|
+
}), /*#__PURE__*/createElement(Thumb, {
|
30
|
+
className: "'will-change-transform mt-0.5 h-4 w-4 translate-x-[0.15rem] rounded-full bg-white transition-transform group-disabled:opacity-50 group-aria-checked:translate-x-[1.1rem]"
|
31
|
+
}));
|
32
|
+
if (label) {
|
33
|
+
const labelContainerClassName = cn('flex self-start cursor-pointer', {
|
34
|
+
'cursor-not-allowed text-grey-300': props.disabled
|
35
|
+
});
|
36
|
+
return /*#__PURE__*/createElement("span", {
|
37
|
+
className: labelContainerClassName
|
38
|
+
}, element, /*#__PURE__*/createElement("label", {
|
39
|
+
htmlFor: id,
|
40
|
+
id: `${id}-label`
|
41
|
+
}, label));
|
42
|
+
}
|
43
|
+
return element;
|
44
|
+
});
|
45
|
+
Switch.displayName = 'Switch';
|
46
|
+
|
47
|
+
export { Switch };
|
48
|
+
//# sourceMappingURL=Switch.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Switch.js","sources":["../../../../../../../src/components/Switch/Switch.tsx"],"sourcesContent":["import * as React from 'react';\nimport cn from 'classnames';\nimport * as PrimitiveSwitch from '@radix-ui/react-switch';\nimport { useId } from '../../hooks/useId';\n\ntype SwitchBaseProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'onChange'> & {\n /** Label for the switch */\n label?: React.ReactNode;\n /* Whether user input is required */\n required?: boolean;\n};\n\ninterface UncontrolledSwitchProps extends SwitchBaseProps {\n checked?: never;\n onChange?: never;\n /* The default checked state (uncontrolled) */\n defaultChecked?: boolean;\n}\n\ninterface ControlledSwitchProps extends SwitchBaseProps {\n defaultChecked?: never;\n /* The current checked state (controlled) */\n checked: boolean;\n /* Handler called when the checked state changes */\n onChange: (checked: boolean) => void;\n}\n\nexport type SwitchProps = UncontrolledSwitchProps | ControlledSwitchProps;\n\nexport const Switch = React.forwardRef(function Switch(props: SwitchProps, ref: React.Ref<HTMLButtonElement>) {\n const { label, onChange, ...otherProps } = props;\n const id = useId(props.id);\n\n const className = cn(\n 'group h-5 w-9 flex flex-shrink-0 rounded-full inline-flex',\n {\n 'mr-2': !!label,\n 'bg-grey-500 hover:bg-grey-300 aria-checked:bg-blue-500 aria-checked:hover:bg-blue-300 focus:yt-focus':\n !props.disabled,\n 'bg-grey-100 cursor-not-allowed aria-checked:bg-blue-300': props.disabled,\n },\n props.className\n );\n\n let labelledByProps: Record<string, string> | null = null;\n\n if (label) {\n labelledByProps = {\n 'aria-labelledby': `${id}-label`,\n id,\n };\n }\n\n const element = (\n <PrimitiveSwitch.Root {...otherProps} {...labelledByProps} className={className} onCheckedChange={onChange} ref={ref}>\n <PrimitiveSwitch.Thumb className=\"'will-change-transform mt-0.5 h-4 w-4 translate-x-[0.15rem] rounded-full bg-white transition-transform group-disabled:opacity-50 group-aria-checked:translate-x-[1.1rem]\" />\n </PrimitiveSwitch.Root>\n );\n\n if (label) {\n const labelContainerClassName = cn('flex self-start cursor-pointer', {\n 'cursor-not-allowed text-grey-300': props.disabled,\n });\n\n return (\n <span className={labelContainerClassName}>\n {element}\n <label htmlFor={id} id={`${id}-label`}>\n {label}\n </label>\n </span>\n );\n }\n\n return element;\n});\nSwitch.displayName = 'Switch';\n"],"names":["Switch","React","props","ref","label","onChange","otherProps","id","useId","className","cn","disabled","labelledByProps","element","PrimitiveSwitch","onCheckedChange","labelContainerClassName","htmlFor","displayName"],"mappings":";;;;;MA6BaA,MAAM,gBAAGC,UAAgB,CAAC,SAASD,MAAM,CAACE,KAAkB,EAAEC,GAAiC;EACxG,MAAM;IAAEC,KAAK;IAAEC,QAAQ;IAAE,GAAGC;GAAY,GAAGJ,KAAK;EAChD,MAAMK,EAAE,GAAGC,KAAK,CAACN,KAAK,CAACK,EAAE,CAAC;EAE1B,MAAME,SAAS,GAAGC,EAAE,CAChB,2DAA2D,EAC3D;IACI,MAAM,EAAE,CAAC,CAACN,KAAK;IACf,sGAAsG,EAClG,CAACF,KAAK,CAACS,QAAQ;IACnB,yDAAyD,EAAET,KAAK,CAACS;GACpE,EACDT,KAAK,CAACO,SAAS,CAClB;EAED,IAAIG,eAAe,GAAkC,IAAI;EAEzD,IAAIR,KAAK,EAAE;IACPQ,eAAe,GAAG;MACd,iBAAiB,KAAKL,UAAU;MAChCA;KACH;;EAGL,MAAMM,OAAO,gBACTZ,cAACa,IAAoB,oBAAKR,UAAU,EAAMM,eAAe;IAAEH,SAAS,EAAEA,SAAS;IAAEM,eAAe,EAAEV,QAAQ;IAAEF,GAAG,EAAEA;mBAC7GF,cAACa,KAAqB;IAACL,SAAS,EAAC;IAA6K,CAErN;EAED,IAAIL,KAAK,EAAE;IACP,MAAMY,uBAAuB,GAAGN,EAAE,CAAC,gCAAgC,EAAE;MACjE,kCAAkC,EAAER,KAAK,CAACS;KAC7C,CAAC;IAEF,oBACIV;MAAMQ,SAAS,EAAEO;OACZH,OAAO,eACRZ;MAAOgB,OAAO,EAAEV,EAAE;MAAEA,EAAE,KAAKA;OACtBH,KAAK,CACF,CACL;;EAIf,OAAOS,OAAO;AAClB,CAAC;AACDb,MAAM,CAACkB,WAAW,GAAG,QAAQ;;;;"}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import cn from 'classnames';
|
3
|
+
import { useMergedRef } from '../../../hooks/useMergedRef.js';
|
4
|
+
import { Column } from '../util/renderColumn.js';
|
5
|
+
|
6
|
+
const DefaultEmptyState = () => null;
|
7
|
+
const BaseTable = /*#__PURE__*/React__default.forwardRef(function BaseTable(props, ref) {
|
8
|
+
const tableRef = useMergedRef(ref);
|
9
|
+
const {
|
10
|
+
autoFocus,
|
11
|
+
children,
|
12
|
+
disableSorting: _,
|
13
|
+
headerGroups,
|
14
|
+
headerRef,
|
15
|
+
bodyRef,
|
16
|
+
...otherProps
|
17
|
+
} = props;
|
18
|
+
React__default.useEffect(() => {
|
19
|
+
if (autoFocus && tableRef.current) {
|
20
|
+
tableRef.current.focus();
|
21
|
+
}
|
22
|
+
}, []);
|
23
|
+
const className = cn('yt-table flex flex-col focus:yt-focus focus:rounded-sm', props.className);
|
24
|
+
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, otherProps, {
|
25
|
+
role: "table",
|
26
|
+
className: className,
|
27
|
+
ref: tableRef
|
28
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
29
|
+
role: "rowgroup",
|
30
|
+
className: "yt-table__head",
|
31
|
+
ref: headerRef
|
32
|
+
}, headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map((headerGroup, index) => /*#__PURE__*/React__default.createElement("div", {
|
33
|
+
key: index,
|
34
|
+
role: "row",
|
35
|
+
className: "border-grey-100 flex h-auto min-h-[2.5rem] w-full select-none border-t-0 border-b-2 font-bold"
|
36
|
+
}, headerGroup.headers.map((cell, index) => /*#__PURE__*/React__default.createElement(Column, {
|
37
|
+
key: index,
|
38
|
+
index: index,
|
39
|
+
cell: cell
|
40
|
+
}))))), /*#__PURE__*/React__default.createElement("div", {
|
41
|
+
role: "rowgroup",
|
42
|
+
className: "yt-table__body",
|
43
|
+
ref: bodyRef
|
44
|
+
}, children));
|
45
|
+
});
|
46
|
+
|
47
|
+
export { BaseTable, DefaultEmptyState };
|
48
|
+
//# sourceMappingURL=BaseTable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"BaseTable.js","sources":["../../../../../../../../src/components/Table/components/BaseTable.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport { HeaderGroup } from 'react-table';\nimport { useMergedRef } from '../../../hooks/useMergedRef';\nimport { InternalBaseTable } from '../types';\nimport './Table.css';\nimport { Column } from '../util/renderColumn';\n\nexport const DefaultEmptyState = (): React.ReactNode => null;\n\nexport const BaseTable = React.forwardRef(function BaseTable(props: InternalBaseTable, ref: React.Ref<HTMLDivElement>) {\n const tableRef = useMergedRef<HTMLDivElement>(ref);\n const { autoFocus, children, disableSorting: _, headerGroups, headerRef, bodyRef, ...otherProps } = props;\n\n React.useEffect(() => {\n if (autoFocus && tableRef.current) {\n tableRef.current.focus();\n }\n }, []);\n\n const className = cn('yt-table flex flex-col focus:yt-focus focus:rounded-sm', props.className);\n\n return (\n <div {...otherProps} role=\"table\" className={className} ref={tableRef}>\n <div role=\"rowgroup\" className=\"yt-table__head\" ref={headerRef}>\n {headerGroups?.map((headerGroup: HeaderGroup<object>, index: number) => (\n <div\n key={index}\n role=\"row\"\n className=\"border-grey-100 flex h-auto min-h-[2.5rem] w-full select-none border-t-0 border-b-2 font-bold\">\n {headerGroup.headers.map((cell: any, index: number) => (\n <Column key={index} index={index} cell={cell} />\n ))}\n </div>\n ))}\n </div>\n\n <div role=\"rowgroup\" className=\"yt-table__body\" ref={bodyRef}>\n {children}\n </div>\n </div>\n );\n});\n"],"names":["DefaultEmptyState","BaseTable","React","forwardRef","props","ref","tableRef","useMergedRef","autoFocus","children","disableSorting","_","headerGroups","headerRef","bodyRef","otherProps","useEffect","current","focus","className","cn","role","map","headerGroup","index","key","headers","cell","Column"],"mappings":";;;;;MAQaA,iBAAiB,GAAG,MAAuB;MAE3CC,SAAS,gBAAGC,cAAK,CAACC,UAAU,CAAC,SAASF,SAAS,CAACG,KAAwB,EAAEC,GAA8B;EACjH,MAAMC,QAAQ,GAAGC,YAAY,CAAiBF,GAAG,CAAC;EAClD,MAAM;IAAEG,SAAS;IAAEC,QAAQ;IAAEC,cAAc,EAAEC,CAAC;IAAEC,YAAY;IAAEC,SAAS;IAAEC,OAAO;IAAE,GAAGC;GAAY,GAAGX,KAAK;EAEzGF,cAAK,CAACc,SAAS,CAAC;IACZ,IAAIR,SAAS,IAAIF,QAAQ,CAACW,OAAO,EAAE;MAC/BX,QAAQ,CAACW,OAAO,CAACC,KAAK,EAAE;;GAE/B,EAAE,EAAE,CAAC;EAEN,MAAMC,SAAS,GAAGC,EAAE,CAAC,wDAAwD,EAAEhB,KAAK,CAACe,SAAS,CAAC;EAE/F,oBACIjB,sDAASa,UAAU;IAAEM,IAAI,EAAC,OAAO;IAACF,SAAS,EAAEA,SAAS;IAAEd,GAAG,EAAEC;mBACzDJ;IAAKmB,IAAI,EAAC,UAAU;IAACF,SAAS,EAAC,gBAAgB;IAACd,GAAG,EAAEQ;KAChDD,YAAY,aAAZA,YAAY,uBAAZA,YAAY,CAAEU,GAAG,CAAC,CAACC,WAAgC,EAAEC,KAAa,kBAC/DtB;IACIuB,GAAG,EAAED,KAAK;IACVH,IAAI,EAAC,KAAK;IACVF,SAAS,EAAC;KACTI,WAAW,CAACG,OAAO,CAACJ,GAAG,CAAC,CAACK,IAAS,EAAEH,KAAa,kBAC9CtB,6BAAC0B,MAAM;IAACH,GAAG,EAAED,KAAK;IAAEA,KAAK,EAAEA,KAAK;IAAEG,IAAI,EAAEA;IAC3C,CAAC,CAET,CAAC,CACA,eAENzB;IAAKmB,IAAI,EAAC,UAAU;IAACF,SAAS,EAAC,gBAAgB;IAACd,GAAG,EAAES;KAChDL,QAAQ,CACP,CACJ;AAEd,CAAC;;;;"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import { Table } from './Table.js';
|
3
|
+
|
4
|
+
const PaginatedTable = /*#__PURE__*/React__default.forwardRef(function PaginatedTable(props, ref) {
|
5
|
+
return /*#__PURE__*/React__default.createElement(Table, Object.assign({}, props, {
|
6
|
+
disablePagination: false,
|
7
|
+
ref: ref
|
8
|
+
}));
|
9
|
+
});
|
10
|
+
PaginatedTable.Column = () => null;
|
11
|
+
PaginatedTable.Group = () => null;
|
12
|
+
|
13
|
+
export { PaginatedTable };
|
14
|
+
//# sourceMappingURL=PaginatedTable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PaginatedTable.js","sources":["../../../../../../../../src/components/Table/components/PaginatedTable.tsx"],"sourcesContent":["import React from 'react';\nimport { ForwardedGenericTableWithStatics, TableProps, TableRef } from '../types';\nimport { Table } from './Table';\n\nexport const PaginatedTable = React.forwardRef(function PaginatedTable<T>(props: TableProps<T>, ref: React.Ref<TableRef>) {\n return <Table {...props} disablePagination={false} ref={ref} />;\n}) as ForwardedGenericTableWithStatics;\n\nPaginatedTable.Column = () => null;\nPaginatedTable.Group = () => null;\n"],"names":["PaginatedTable","React","forwardRef","props","ref","Table","disablePagination","Column","Group"],"mappings":";;;MAIaA,cAAc,gBAAGC,cAAK,CAACC,UAAU,CAAC,SAASF,cAAc,CAAIG,KAAoB,EAAEC,GAAwB;EACpH,oBAAOH,6BAACI,KAAK,oBAAKF,KAAK;IAAEG,iBAAiB,EAAE,KAAK;IAAEF,GAAG,EAAEA;KAAO;AACnE,CAAC;AAEDJ,cAAc,CAACO,MAAM,GAAG,MAAM,IAAI;AAClCP,cAAc,CAACQ,KAAK,GAAG,MAAM,IAAI;;;;"}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import { useMergedRef } from '../../../hooks/useMergedRef.js';
|
3
|
+
import { Pagination } from '../../Pagination/Pagination.js';
|
4
|
+
import { useTable } from '../hooks/useTable.js';
|
5
|
+
import { Row } from '../util/renderRow.js';
|
6
|
+
import { BaseTable, DefaultEmptyState } from './BaseTable.js';
|
7
|
+
|
8
|
+
const Table = /*#__PURE__*/React__default.forwardRef(function Table(props, ref) {
|
9
|
+
const {
|
10
|
+
emptyStateRenderer = DefaultEmptyState,
|
11
|
+
...otherProps
|
12
|
+
} = props;
|
13
|
+
const tableRef = useMergedRef(ref);
|
14
|
+
const {
|
15
|
+
rowProps,
|
16
|
+
tableProps,
|
17
|
+
rows,
|
18
|
+
prepareRow,
|
19
|
+
pagination,
|
20
|
+
instance
|
21
|
+
} = useTable(otherProps, tableRef);
|
22
|
+
let paginationElement;
|
23
|
+
if (pagination) {
|
24
|
+
paginationElement = /*#__PURE__*/React__default.createElement(Pagination, {
|
25
|
+
className: "my-4 w-full",
|
26
|
+
length: pagination.length,
|
27
|
+
pageIndex: pagination.pageIndex,
|
28
|
+
pageSize: pagination.pageSize,
|
29
|
+
setPageIndex: pagination.setPageIndex,
|
30
|
+
setPageSize: pagination.setPageSize,
|
31
|
+
showPageControls: pagination.length > pagination.pageSize,
|
32
|
+
dangerouslyHijackGlobalKeyboardNavigation: props.dangerouslyHijackGlobalKeyboardNavigation
|
33
|
+
});
|
34
|
+
}
|
35
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, paginationElement, /*#__PURE__*/React__default.createElement(BaseTable, Object.assign({}, tableProps, {
|
36
|
+
ref: tableRef
|
37
|
+
}), rows.length ? rows.map((row, index) => {
|
38
|
+
prepareRow(row, index);
|
39
|
+
return /*#__PURE__*/React__default.createElement(Row, Object.assign({}, rowProps, {
|
40
|
+
key: index,
|
41
|
+
index: index,
|
42
|
+
row: row,
|
43
|
+
instance: instance,
|
44
|
+
headerGroups: tableProps.headerGroups
|
45
|
+
}));
|
46
|
+
}) : emptyStateRenderer()), paginationElement);
|
47
|
+
});
|
48
|
+
Table.Column = () => null;
|
49
|
+
Table.Group = () => null;
|
50
|
+
|
51
|
+
export { Table };
|
52
|
+
//# sourceMappingURL=Table.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Table.js","sources":["../../../../../../../../src/components/Table/components/Table.tsx"],"sourcesContent":["import React from 'react';\nimport { PluginHook } from 'react-table';\nimport { TableProps, InternalTableRow, ForwardedGenericTableWithStatics, TableRef } from '../types';\nimport { useTable } from '../hooks/useTable';\nimport { Pagination } from '../../Pagination/Pagination';\nimport { useMergedRef } from '../../../hooks/useMergedRef';\nimport { Row } from '../util/renderRow';\nimport { DefaultEmptyState, BaseTable } from './BaseTable';\n\nexport const Table = React.forwardRef(function Table<T>(\n props: TableProps<T> & { plugins: PluginHook<{}>[] },\n ref: React.Ref<TableRef>\n) {\n const { emptyStateRenderer = DefaultEmptyState, ...otherProps } = props;\n const tableRef: any = useMergedRef<HTMLDivElement>(ref);\n const { rowProps, tableProps, rows, prepareRow, pagination, instance } = useTable(otherProps, tableRef);\n\n let paginationElement;\n\n if (pagination) {\n paginationElement = (\n <Pagination\n className=\"my-4 w-full\"\n length={pagination.length}\n pageIndex={pagination.pageIndex}\n pageSize={pagination.pageSize}\n setPageIndex={pagination.setPageIndex}\n setPageSize={pagination.setPageSize}\n showPageControls={pagination.length > pagination.pageSize}\n dangerouslyHijackGlobalKeyboardNavigation={props.dangerouslyHijackGlobalKeyboardNavigation}\n />\n );\n }\n\n return (\n <>\n {paginationElement}\n <BaseTable {...tableProps} ref={tableRef}>\n {rows.length\n ? rows.map((row: InternalTableRow, index: number) => {\n prepareRow(row, index);\n return (\n <Row\n {...rowProps}\n key={index}\n index={index}\n row={row}\n instance={instance}\n headerGroups={tableProps.headerGroups}\n />\n );\n })\n : emptyStateRenderer()}\n </BaseTable>\n {paginationElement}\n </>\n );\n}) as ForwardedGenericTableWithStatics;\n\nTable.Column = () => null;\nTable.Group = () => null;\n"],"names":["Table","React","forwardRef","props","ref","emptyStateRenderer","DefaultEmptyState","otherProps","tableRef","useMergedRef","rowProps","tableProps","rows","prepareRow","pagination","instance","useTable","paginationElement","Pagination","className","length","pageIndex","pageSize","setPageIndex","setPageSize","showPageControls","dangerouslyHijackGlobalKeyboardNavigation","BaseTable","map","row","index","Row","key","headerGroups","Column","Group"],"mappings":";;;;;;;MASaA,KAAK,gBAAGC,cAAK,CAACC,UAAU,CAAC,SAASF,KAAK,CAChDG,KAAoD,EACpDC,GAAwB;EAExB,MAAM;IAAEC,kBAAkB,GAAGC,iBAAiB;IAAE,GAAGC;GAAY,GAAGJ,KAAK;EACvE,MAAMK,QAAQ,GAAQC,YAAY,CAAiBL,GAAG,CAAC;EACvD,MAAM;IAAEM,QAAQ;IAAEC,UAAU;IAAEC,IAAI;IAAEC,UAAU;IAAEC,UAAU;IAAEC;GAAU,GAAGC,QAAQ,CAACT,UAAU,EAAEC,QAAQ,CAAC;EAEvG,IAAIS,iBAAiB;EAErB,IAAIH,UAAU,EAAE;IACZG,iBAAiB,gBACbhB,6BAACiB,UAAU;MACPC,SAAS,EAAC,aAAa;MACvBC,MAAM,EAAEN,UAAU,CAACM,MAAM;MACzBC,SAAS,EAAEP,UAAU,CAACO,SAAS;MAC/BC,QAAQ,EAAER,UAAU,CAACQ,QAAQ;MAC7BC,YAAY,EAAET,UAAU,CAACS,YAAY;MACrCC,WAAW,EAAEV,UAAU,CAACU,WAAW;MACnCC,gBAAgB,EAAEX,UAAU,CAACM,MAAM,GAAGN,UAAU,CAACQ,QAAQ;MACzDI,yCAAyC,EAAEvB,KAAK,CAACuB;MAExD;;EAGL,oBACIzB,4DACKgB,iBAAiB,eAClBhB,6BAAC0B,SAAS,oBAAKhB,UAAU;IAAEP,GAAG,EAAEI;MAC3BI,IAAI,CAACQ,MAAM,GACNR,IAAI,CAACgB,GAAG,CAAC,CAACC,GAAqB,EAAEC,KAAa;IAC1CjB,UAAU,CAACgB,GAAG,EAAEC,KAAK,CAAC;IACtB,oBACI7B,6BAAC8B,GAAG,oBACIrB,QAAQ;MACZsB,GAAG,EAAEF,KAAK;MACVA,KAAK,EAAEA,KAAK;MACZD,GAAG,EAAEA,GAAG;MACRd,QAAQ,EAAEA,QAAQ;MAClBkB,YAAY,EAAEtB,UAAU,CAACsB;OAC3B;GAET,CAAC,GACF5B,kBAAkB,EAAE,CAClB,EACXY,iBAAiB,CACnB;AAEX,CAAC;AAEDjB,KAAK,CAACkC,MAAM,GAAG,MAAM,IAAI;AACzBlC,KAAK,CAACmC,KAAK,GAAG,MAAM,IAAI;;;;"}
|
@@ -0,0 +1,178 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import cn from 'classnames';
|
3
|
+
import { useLocalization } from '../../Provider/Localization.js';
|
4
|
+
import { useBoundingClientRectListener } from '../../../hooks/useBoundingClientRectListener.js';
|
5
|
+
import { useMergedRef } from '../../../hooks/useMergedRef.js';
|
6
|
+
import { useTable } from '../hooks/useTable.js';
|
7
|
+
import { Row } from '../util/renderRow.js';
|
8
|
+
import { BaseTable, DefaultEmptyState } from './BaseTable.js';
|
9
|
+
import { VariableSizeList, areEqual } from 'react-window';
|
10
|
+
import InfiniteLoader from 'react-window-infinite-loader';
|
11
|
+
|
12
|
+
const ROW_HEIGHT = 40;
|
13
|
+
const VariableRow = /*#__PURE__*/React__default.memo(({
|
14
|
+
data,
|
15
|
+
index,
|
16
|
+
style: {
|
17
|
+
height: _,
|
18
|
+
...style
|
19
|
+
}
|
20
|
+
}) => {
|
21
|
+
const {
|
22
|
+
texts
|
23
|
+
} = useLocalization();
|
24
|
+
const {
|
25
|
+
rows,
|
26
|
+
setRowHeight,
|
27
|
+
rowProps,
|
28
|
+
tableProps,
|
29
|
+
instance,
|
30
|
+
prepareRow,
|
31
|
+
rowHeights
|
32
|
+
} = data;
|
33
|
+
const row = rows[index];
|
34
|
+
const ref = React__default.useRef(null);
|
35
|
+
React__default.useEffect(() => {
|
36
|
+
if (ref !== null && ref !== void 0 && ref.current) {
|
37
|
+
setRowHeight(index, ref.current.getBoundingClientRect().height);
|
38
|
+
}
|
39
|
+
}, [rowHeights[index]]);
|
40
|
+
if (row) {
|
41
|
+
prepareRow(row, index);
|
42
|
+
return /*#__PURE__*/React__default.createElement(Row, Object.assign({}, rowProps, {
|
43
|
+
style: style,
|
44
|
+
key: index,
|
45
|
+
index: index,
|
46
|
+
row: row,
|
47
|
+
instance: instance,
|
48
|
+
headerGroups: tableProps.headerGroups,
|
49
|
+
setRowHeight: setRowHeight,
|
50
|
+
ref: ref
|
51
|
+
}));
|
52
|
+
}
|
53
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
54
|
+
className: "yt-table__row",
|
55
|
+
role: "row",
|
56
|
+
style: style
|
57
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
58
|
+
className: "yt-table__cell text-grey-300"
|
59
|
+
}, texts.table.loading));
|
60
|
+
}, areEqual);
|
61
|
+
const getAverageRowHeight = (rowHeights = {}) => {
|
62
|
+
const keys = Object.keys(rowHeights);
|
63
|
+
const estimatedHeight = keys.reduce((p, i) => p + rowHeights[i], 0);
|
64
|
+
return estimatedHeight / keys.length;
|
65
|
+
};
|
66
|
+
const WindowedTable = /*#__PURE__*/React__default.forwardRef(function WindowedTable(props, ref) {
|
67
|
+
const tableRef = useMergedRef(ref);
|
68
|
+
const {
|
69
|
+
emptyStateRenderer = DefaultEmptyState,
|
70
|
+
length,
|
71
|
+
loadMore,
|
72
|
+
...otherProps
|
73
|
+
} = props;
|
74
|
+
const {
|
75
|
+
rowProps,
|
76
|
+
tableProps,
|
77
|
+
rows,
|
78
|
+
prepareRow,
|
79
|
+
instance,
|
80
|
+
state
|
81
|
+
} = useTable({
|
82
|
+
...otherProps,
|
83
|
+
windowed: true
|
84
|
+
}, tableRef);
|
85
|
+
// determine heights for windowing calculations
|
86
|
+
const headerRef = React__default.useRef(null);
|
87
|
+
const [rowsRef, setRowsRef] = React__default.useState(null);
|
88
|
+
const tableDimensions = useBoundingClientRectListener(tableRef);
|
89
|
+
const headerDimensions = useBoundingClientRectListener(headerRef);
|
90
|
+
const height = tableDimensions && headerDimensions ? tableDimensions.height - headerDimensions.height : null;
|
91
|
+
// variable row height calculations
|
92
|
+
const estimatedRowHeight = rowProps.rowHeight || ROW_HEIGHT;
|
93
|
+
const rowHeights = React__default.useRef({});
|
94
|
+
const setRowHeight = React__default.useCallback((index, size) => {
|
95
|
+
if (rowHeights.current[index] !== size) {
|
96
|
+
rowHeights.current = {
|
97
|
+
...rowHeights.current,
|
98
|
+
[index]: size
|
99
|
+
};
|
100
|
+
if (rowsRef) {
|
101
|
+
rowsRef.resetAfterIndex(0);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}, []);
|
105
|
+
const getRowHeight = React__default.useCallback(index => rowHeights.current[index] || estimatedRowHeight, []);
|
106
|
+
React__default.useEffect(() => {
|
107
|
+
if (rowsRef && rowProps.activeIndex !== undefined) {
|
108
|
+
rowsRef.scrollToItem(rowProps.activeIndex, 'start');
|
109
|
+
}
|
110
|
+
}, [rowsRef, rowProps.activeIndex]);
|
111
|
+
// trigger recalculation of variable row heights if the data changes
|
112
|
+
React__default.useEffect(() => {
|
113
|
+
rowHeights.current = {};
|
114
|
+
if (rowsRef) {
|
115
|
+
rowsRef.resetAfterIndex(0);
|
116
|
+
}
|
117
|
+
}, [rows.length]);
|
118
|
+
const contentHeight = estimatedRowHeight * props.data.length || 0;
|
119
|
+
const isScrollbarVisible = height !== null ? contentHeight > height : false;
|
120
|
+
const className = cn(tableProps.className, 'yt-table--windowed', {
|
121
|
+
'table-with-scrollbar': isScrollbarVisible
|
122
|
+
});
|
123
|
+
let list;
|
124
|
+
const itemData = {
|
125
|
+
rows,
|
126
|
+
setRowHeight,
|
127
|
+
rowProps,
|
128
|
+
tableProps,
|
129
|
+
instance,
|
130
|
+
prepareRow,
|
131
|
+
state,
|
132
|
+
rowHeights: rowHeights.current
|
133
|
+
};
|
134
|
+
if (height && rows.length) {
|
135
|
+
const listProps = {
|
136
|
+
height,
|
137
|
+
itemData,
|
138
|
+
estimatedItemSize: getAverageRowHeight(rowHeights.current),
|
139
|
+
itemSize: getRowHeight,
|
140
|
+
width: '100%'
|
141
|
+
};
|
142
|
+
if (loadMore && length) {
|
143
|
+
const isLoaded = index => !!rows[index];
|
144
|
+
list = /*#__PURE__*/React__default.createElement(InfiniteLoader, {
|
145
|
+
isItemLoaded: isLoaded,
|
146
|
+
itemCount: length,
|
147
|
+
loadMoreItems: loadMore
|
148
|
+
}, ({
|
149
|
+
onItemsRendered,
|
150
|
+
ref
|
151
|
+
}) => /*#__PURE__*/React__default.createElement(VariableSizeList, Object.assign({}, listProps, {
|
152
|
+
itemCount: length,
|
153
|
+
onItemsRendered: onItemsRendered,
|
154
|
+
ref: list => {
|
155
|
+
ref(list);
|
156
|
+
setRowsRef(list);
|
157
|
+
}
|
158
|
+
}), VariableRow));
|
159
|
+
} else {
|
160
|
+
list = /*#__PURE__*/React__default.createElement(VariableSizeList, Object.assign({}, listProps, {
|
161
|
+
itemCount: rows.length,
|
162
|
+
ref: ref => {
|
163
|
+
setRowsRef(ref);
|
164
|
+
}
|
165
|
+
}), VariableRow);
|
166
|
+
}
|
167
|
+
}
|
168
|
+
return /*#__PURE__*/React__default.createElement(BaseTable, Object.assign({}, tableProps, {
|
169
|
+
className: className,
|
170
|
+
headerRef: headerRef,
|
171
|
+
ref: tableRef
|
172
|
+
}), list ? list : emptyStateRenderer());
|
173
|
+
});
|
174
|
+
WindowedTable.Column = () => null;
|
175
|
+
WindowedTable.Group = () => null;
|
176
|
+
|
177
|
+
export { WindowedTable };
|
178
|
+
//# sourceMappingURL=WindowedTable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WindowedTable.js","sources":["../../../../../../../../src/components/Table/components/WindowedTable.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport { PluginHook } from 'react-table';\nimport { areEqual, VariableSizeList } from 'react-window';\nimport InfiniteLoader from 'react-window-infinite-loader';\nimport { TableProps, ForwardedGenericTableWithStatics, TableRef } from '../types';\nimport { useTable } from '../hooks/useTable';\nimport { useBoundingClientRectListener } from '../../../hooks/useBoundingClientRectListener';\nimport { useMergedRef } from '../../../hooks/useMergedRef';\nimport { Row } from '../util/renderRow';\nimport { DefaultEmptyState, BaseTable } from './BaseTable';\nimport { useLocalization } from '../../Provider/Localization';\n\nconst ROW_HEIGHT = 40;\n\nconst VariableRow = React.memo(({ data, index, style: { height: _, ...style } }: any) => {\n const { texts } = useLocalization();\n const { rows, setRowHeight, rowProps, tableProps, instance, prepareRow, rowHeights } = data;\n const row = rows[index];\n const ref = React.useRef<HTMLDivElement>(null);\n\n React.useEffect(() => {\n if (ref?.current) {\n setRowHeight(index, ref.current.getBoundingClientRect().height);\n }\n }, [rowHeights[index]]);\n\n if (row) {\n prepareRow(row, index);\n\n return (\n <Row\n {...rowProps}\n style={style}\n key={index}\n index={index}\n row={row}\n instance={instance}\n headerGroups={tableProps.headerGroups}\n setRowHeight={setRowHeight}\n ref={ref}\n />\n );\n }\n\n return (\n <div className=\"yt-table__row\" role=\"row\" style={style}>\n <div className=\"yt-table__cell text-grey-300\">{texts.table.loading}</div>\n </div>\n );\n}, areEqual);\n\nconst getAverageRowHeight = (rowHeights = {}) => {\n const keys = Object.keys(rowHeights);\n const estimatedHeight = keys.reduce((p, i) => p + rowHeights[i], 0);\n return estimatedHeight / keys.length;\n};\n\nexport const WindowedTable = React.forwardRef(function WindowedTable<T>(\n props: TableProps<T> & { plugins: PluginHook<{}>[] },\n ref: React.Ref<TableRef>\n) {\n const tableRef: any = useMergedRef<HTMLDivElement>(ref);\n const { emptyStateRenderer = DefaultEmptyState, length, loadMore, ...otherProps } = props;\n const { rowProps, tableProps, rows, prepareRow, instance, state } = useTable<T>({ ...otherProps, windowed: true }, tableRef);\n\n // determine heights for windowing calculations\n const headerRef = React.useRef<HTMLDivElement>(null);\n const [rowsRef, setRowsRef] = React.useState<any>(null);\n const tableDimensions = useBoundingClientRectListener(tableRef);\n const headerDimensions = useBoundingClientRectListener(headerRef);\n const height = tableDimensions && headerDimensions ? tableDimensions.height - headerDimensions.height : null;\n\n // variable row height calculations\n const estimatedRowHeight = rowProps.rowHeight || ROW_HEIGHT;\n const rowHeights = React.useRef<Record<string, number>>({});\n const setRowHeight = React.useCallback((index: number, size: number) => {\n if (rowHeights.current[index] !== size) {\n rowHeights.current = {\n ...rowHeights.current,\n [index]: size,\n };\n\n if (rowsRef) {\n rowsRef.resetAfterIndex(0);\n }\n }\n }, []);\n const getRowHeight = React.useCallback(index => rowHeights.current[index] || estimatedRowHeight, []);\n\n React.useEffect(() => {\n if (rowsRef && rowProps.activeIndex !== undefined) {\n rowsRef.scrollToItem(rowProps.activeIndex, 'start');\n }\n }, [rowsRef, rowProps.activeIndex]);\n\n // trigger recalculation of variable row heights if the data changes\n React.useEffect(() => {\n rowHeights.current = {};\n\n if (rowsRef) {\n rowsRef.resetAfterIndex(0);\n }\n }, [rows.length]);\n\n const contentHeight = estimatedRowHeight * props.data.length || 0;\n const isScrollbarVisible = height !== null ? contentHeight > height : false;\n\n const className = cn(tableProps.className, 'yt-table--windowed', { 'table-with-scrollbar': isScrollbarVisible });\n\n let list;\n\n const itemData = {\n rows,\n setRowHeight,\n rowProps,\n tableProps,\n instance,\n prepareRow,\n state,\n rowHeights: rowHeights.current,\n };\n\n if (height && rows.length) {\n const listProps = {\n height,\n itemData,\n estimatedItemSize: getAverageRowHeight(rowHeights.current),\n itemSize: getRowHeight,\n width: '100%',\n };\n\n if (loadMore && length) {\n const isLoaded = (index: number) => !!rows[index];\n\n list = (\n <InfiniteLoader isItemLoaded={isLoaded} itemCount={length} loadMoreItems={loadMore as any}>\n {({ onItemsRendered, ref }: any) => (\n <VariableSizeList\n {...listProps}\n itemCount={length}\n onItemsRendered={onItemsRendered}\n ref={list => {\n ref(list);\n setRowsRef(list);\n }}>\n {VariableRow}\n </VariableSizeList>\n )}\n </InfiniteLoader>\n );\n } else {\n list = (\n <VariableSizeList\n {...listProps}\n itemCount={rows.length}\n ref={ref => {\n setRowsRef(ref);\n }}>\n {VariableRow}\n </VariableSizeList>\n );\n }\n }\n\n return (\n <BaseTable {...tableProps} className={className} headerRef={headerRef} ref={tableRef}>\n {list ? list : emptyStateRenderer()}\n </BaseTable>\n );\n}) as ForwardedGenericTableWithStatics;\n\nWindowedTable.Column = () => null;\nWindowedTable.Group = () => null;\n"],"names":["ROW_HEIGHT","VariableRow","React","memo","data","index","style","height","_","texts","useLocalization","rows","setRowHeight","rowProps","tableProps","instance","prepareRow","rowHeights","row","ref","useRef","useEffect","current","getBoundingClientRect","Row","key","headerGroups","className","role","table","loading","areEqual","getAverageRowHeight","keys","Object","estimatedHeight","reduce","p","i","length","WindowedTable","forwardRef","props","tableRef","useMergedRef","emptyStateRenderer","DefaultEmptyState","loadMore","otherProps","state","useTable","windowed","headerRef","rowsRef","setRowsRef","useState","tableDimensions","useBoundingClientRectListener","headerDimensions","estimatedRowHeight","rowHeight","useCallback","size","resetAfterIndex","getRowHeight","activeIndex","undefined","scrollToItem","contentHeight","isScrollbarVisible","cn","list","itemData","listProps","estimatedItemSize","itemSize","width","isLoaded","InfiniteLoader","isItemLoaded","itemCount","loadMoreItems","onItemsRendered","VariableSizeList","BaseTable","Column","Group"],"mappings":";;;;;;;;;;;AAaA,MAAMA,UAAU,GAAG,EAAE;AAErB,MAAMC,WAAW,gBAAGC,cAAK,CAACC,IAAI,CAAC,CAAC;EAAEC,IAAI;EAAEC,KAAK;EAAEC,KAAK,EAAE;IAAEC,MAAM,EAAEC,CAAC;IAAE,GAAGF;;CAAc;EAChF,MAAM;IAAEG;GAAO,GAAGC,eAAe,EAAE;EACnC,MAAM;IAAEC,IAAI;IAAEC,YAAY;IAAEC,QAAQ;IAAEC,UAAU;IAAEC,QAAQ;IAAEC,UAAU;IAAEC;GAAY,GAAGb,IAAI;EAC3F,MAAMc,GAAG,GAAGP,IAAI,CAACN,KAAK,CAAC;EACvB,MAAMc,GAAG,GAAGjB,cAAK,CAACkB,MAAM,CAAiB,IAAI,CAAC;EAE9ClB,cAAK,CAACmB,SAAS,CAAC;IACZ,IAAIF,GAAG,aAAHA,GAAG,eAAHA,GAAG,CAAEG,OAAO,EAAE;MACdV,YAAY,CAACP,KAAK,EAAEc,GAAG,CAACG,OAAO,CAACC,qBAAqB,EAAE,CAAChB,MAAM,CAAC;;GAEtE,EAAE,CAACU,UAAU,CAACZ,KAAK,CAAC,CAAC,CAAC;EAEvB,IAAIa,GAAG,EAAE;IACLF,UAAU,CAACE,GAAG,EAAEb,KAAK,CAAC;IAEtB,oBACIH,6BAACsB,GAAG,oBACIX,QAAQ;MACZP,KAAK,EAAEA,KAAK;MACZmB,GAAG,EAAEpB,KAAK;MACVA,KAAK,EAAEA,KAAK;MACZa,GAAG,EAAEA,GAAG;MACRH,QAAQ,EAAEA,QAAQ;MAClBW,YAAY,EAAEZ,UAAU,CAACY,YAAY;MACrCd,YAAY,EAAEA,YAAY;MAC1BO,GAAG,EAAEA;OACP;;EAIV,oBACIjB;IAAKyB,SAAS,EAAC,eAAe;IAACC,IAAI,EAAC,KAAK;IAACtB,KAAK,EAAEA;kBAC7CJ;IAAKyB,SAAS,EAAC;KAAgClB,KAAK,CAACoB,KAAK,CAACC,OAAO,CAAO,CACvE;AAEd,CAAC,EAAEC,QAAQ,CAAC;AAEZ,MAAMC,mBAAmB,GAAG,CAACf,UAAU,GAAG,EAAE;EACxC,MAAMgB,IAAI,GAAGC,MAAM,CAACD,IAAI,CAAChB,UAAU,CAAC;EACpC,MAAMkB,eAAe,GAAGF,IAAI,CAACG,MAAM,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,GAAGpB,UAAU,CAACqB,CAAC,CAAC,EAAE,CAAC,CAAC;EACnE,OAAOH,eAAe,GAAGF,IAAI,CAACM,MAAM;AACxC,CAAC;MAEYC,aAAa,gBAAGtC,cAAK,CAACuC,UAAU,CAAC,SAASD,aAAa,CAChEE,KAAoD,EACpDvB,GAAwB;EAExB,MAAMwB,QAAQ,GAAQC,YAAY,CAAiBzB,GAAG,CAAC;EACvD,MAAM;IAAE0B,kBAAkB,GAAGC,iBAAiB;IAAEP,MAAM;IAAEQ,QAAQ;IAAE,GAAGC;GAAY,GAAGN,KAAK;EACzF,MAAM;IAAE7B,QAAQ;IAAEC,UAAU;IAAEH,IAAI;IAAEK,UAAU;IAAED,QAAQ;IAAEkC;GAAO,GAAGC,QAAQ,CAAI;IAAE,GAAGF,UAAU;IAAEG,QAAQ,EAAE;GAAM,EAAER,QAAQ,CAAC;;EAG5H,MAAMS,SAAS,GAAGlD,cAAK,CAACkB,MAAM,CAAiB,IAAI,CAAC;EACpD,MAAM,CAACiC,OAAO,EAAEC,UAAU,CAAC,GAAGpD,cAAK,CAACqD,QAAQ,CAAM,IAAI,CAAC;EACvD,MAAMC,eAAe,GAAGC,6BAA6B,CAACd,QAAQ,CAAC;EAC/D,MAAMe,gBAAgB,GAAGD,6BAA6B,CAACL,SAAS,CAAC;EACjE,MAAM7C,MAAM,GAAGiD,eAAe,IAAIE,gBAAgB,GAAGF,eAAe,CAACjD,MAAM,GAAGmD,gBAAgB,CAACnD,MAAM,GAAG,IAAI;;EAG5G,MAAMoD,kBAAkB,GAAG9C,QAAQ,CAAC+C,SAAS,IAAI5D,UAAU;EAC3D,MAAMiB,UAAU,GAAGf,cAAK,CAACkB,MAAM,CAAyB,EAAE,CAAC;EAC3D,MAAMR,YAAY,GAAGV,cAAK,CAAC2D,WAAW,CAAC,CAACxD,KAAa,EAAEyD,IAAY;IAC/D,IAAI7C,UAAU,CAACK,OAAO,CAACjB,KAAK,CAAC,KAAKyD,IAAI,EAAE;MACpC7C,UAAU,CAACK,OAAO,GAAG;QACjB,GAAGL,UAAU,CAACK,OAAO;QACrB,CAACjB,KAAK,GAAGyD;OACZ;MAED,IAAIT,OAAO,EAAE;QACTA,OAAO,CAACU,eAAe,CAAC,CAAC,CAAC;;;GAGrC,EAAE,EAAE,CAAC;EACN,MAAMC,YAAY,GAAG9D,cAAK,CAAC2D,WAAW,CAACxD,KAAK,IAAIY,UAAU,CAACK,OAAO,CAACjB,KAAK,CAAC,IAAIsD,kBAAkB,EAAE,EAAE,CAAC;EAEpGzD,cAAK,CAACmB,SAAS,CAAC;IACZ,IAAIgC,OAAO,IAAIxC,QAAQ,CAACoD,WAAW,KAAKC,SAAS,EAAE;MAC/Cb,OAAO,CAACc,YAAY,CAACtD,QAAQ,CAACoD,WAAW,EAAE,OAAO,CAAC;;GAE1D,EAAE,CAACZ,OAAO,EAAExC,QAAQ,CAACoD,WAAW,CAAC,CAAC;;EAGnC/D,cAAK,CAACmB,SAAS,CAAC;IACZJ,UAAU,CAACK,OAAO,GAAG,EAAE;IAEvB,IAAI+B,OAAO,EAAE;MACTA,OAAO,CAACU,eAAe,CAAC,CAAC,CAAC;;GAEjC,EAAE,CAACpD,IAAI,CAAC4B,MAAM,CAAC,CAAC;EAEjB,MAAM6B,aAAa,GAAGT,kBAAkB,GAAGjB,KAAK,CAACtC,IAAI,CAACmC,MAAM,IAAI,CAAC;EACjE,MAAM8B,kBAAkB,GAAG9D,MAAM,KAAK,IAAI,GAAG6D,aAAa,GAAG7D,MAAM,GAAG,KAAK;EAE3E,MAAMoB,SAAS,GAAG2C,EAAE,CAACxD,UAAU,CAACa,SAAS,EAAE,oBAAoB,EAAE;IAAE,sBAAsB,EAAE0C;GAAoB,CAAC;EAEhH,IAAIE,IAAI;EAER,MAAMC,QAAQ,GAAG;IACb7D,IAAI;IACJC,YAAY;IACZC,QAAQ;IACRC,UAAU;IACVC,QAAQ;IACRC,UAAU;IACViC,KAAK;IACLhC,UAAU,EAAEA,UAAU,CAACK;GAC1B;EAED,IAAIf,MAAM,IAAII,IAAI,CAAC4B,MAAM,EAAE;IACvB,MAAMkC,SAAS,GAAG;MACdlE,MAAM;MACNiE,QAAQ;MACRE,iBAAiB,EAAE1C,mBAAmB,CAACf,UAAU,CAACK,OAAO,CAAC;MAC1DqD,QAAQ,EAAEX,YAAY;MACtBY,KAAK,EAAE;KACV;IAED,IAAI7B,QAAQ,IAAIR,MAAM,EAAE;MACpB,MAAMsC,QAAQ,GAAIxE,KAAa,IAAK,CAAC,CAACM,IAAI,CAACN,KAAK,CAAC;MAEjDkE,IAAI,gBACArE,6BAAC4E,cAAc;QAACC,YAAY,EAAEF,QAAQ;QAAEG,SAAS,EAAEzC,MAAM;QAAE0C,aAAa,EAAElC;SACrE,CAAC;QAAEmC,eAAe;QAAE/D;OAAU,kBAC3BjB,6BAACiF,gBAAgB,oBACTV,SAAS;QACbO,SAAS,EAAEzC,MAAM;QACjB2C,eAAe,EAAEA,eAAe;QAChC/D,GAAG,EAAEoD,IAAI;UACLpD,GAAG,CAACoD,IAAI,CAAC;UACTjB,UAAU,CAACiB,IAAI,CAAC;;UAEnBtE,WAAW,CAEnB,CAER;KACJ,MAAM;MACHsE,IAAI,gBACArE,6BAACiF,gBAAgB,oBACTV,SAAS;QACbO,SAAS,EAAErE,IAAI,CAAC4B,MAAM;QACtBpB,GAAG,EAAEA,GAAG;UACJmC,UAAU,CAACnC,GAAG,CAAC;;UAElBlB,WAAW,CAEnB;;;EAIT,oBACIC,6BAACkF,SAAS,oBAAKtE,UAAU;IAAEa,SAAS,EAAEA,SAAS;IAAEyB,SAAS,EAAEA,SAAS;IAAEjC,GAAG,EAAEwB;MACvE4B,IAAI,GAAGA,IAAI,GAAG1B,kBAAkB,EAAE,CAC3B;AAEpB,CAAC;AAEDL,aAAa,CAAC6C,MAAM,GAAG,MAAM,IAAI;AACjC7C,aAAa,CAAC8C,KAAK,GAAG,MAAM,IAAI;;;;"}
|
@@ -0,0 +1,207 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import { IconButton } from '../../../IconButton/IconButton.js';
|
3
|
+
import { Menu } from '../../../Menu/Menu.js';
|
4
|
+
import { sanitizeRowProps } from '../../util.js';
|
5
|
+
import { InView } from 'react-intersection-observer';
|
6
|
+
|
7
|
+
const actionGroupClassName = '-mt-1 -mb-1 h-8 flex';
|
8
|
+
const hasActions = (inlineEditingUniqueId, handlers, actions) => {
|
9
|
+
return !!actions || handlers.onRowCreate || handlers.onRowCopy || handlers.onRowDelete || !!inlineEditingUniqueId || handlers.onRowEdit;
|
10
|
+
};
|
11
|
+
const getActions = (actions, row = undefined) => {
|
12
|
+
const primary = [];
|
13
|
+
const secondary = [];
|
14
|
+
if (actions) {
|
15
|
+
let visibleActions = actions.filter(x => !!x && typeof x !== 'boolean');
|
16
|
+
if (row) {
|
17
|
+
visibleActions = visibleActions.filter(action => {
|
18
|
+
if (action.visible !== undefined) {
|
19
|
+
if (typeof action.visible === 'function') {
|
20
|
+
return action.visible(row);
|
21
|
+
}
|
22
|
+
return action.visible;
|
23
|
+
}
|
24
|
+
return true;
|
25
|
+
});
|
26
|
+
}
|
27
|
+
visibleActions.forEach(action => {
|
28
|
+
if (action.showOnRow) {
|
29
|
+
primary.push(action);
|
30
|
+
} else {
|
31
|
+
secondary.push(action);
|
32
|
+
}
|
33
|
+
});
|
34
|
+
}
|
35
|
+
return [primary, secondary];
|
36
|
+
};
|
37
|
+
const getLength = (inlineEditingUniqueId, handlers, actions) => {
|
38
|
+
const [primaryActions, secondaryActions] = getActions(actions);
|
39
|
+
let length = primaryActions.length + (secondaryActions.length ? 1 : 0);
|
40
|
+
if (handlers.onRowCreate) {
|
41
|
+
length++;
|
42
|
+
}
|
43
|
+
if (handlers.onRowCopy) {
|
44
|
+
length++;
|
45
|
+
}
|
46
|
+
if (handlers.onRowDelete) {
|
47
|
+
length++;
|
48
|
+
}
|
49
|
+
if (!!inlineEditingUniqueId || handlers.onRowEdit) {
|
50
|
+
length++;
|
51
|
+
if (length < 2) {
|
52
|
+
length++;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
return length;
|
56
|
+
};
|
57
|
+
const getActionProps = (action, row) => {
|
58
|
+
return {
|
59
|
+
'aria-label': typeof action.tooltip === 'function' ? action.tooltip(row) : action.tooltip,
|
60
|
+
disabled: typeof action.disabled === 'function' ? action.disabled(row) : action.disabled,
|
61
|
+
onClick: event => {
|
62
|
+
action.onClick(row, event);
|
63
|
+
}
|
64
|
+
};
|
65
|
+
};
|
66
|
+
const EditModeActions = () => {
|
67
|
+
React__default.useEffect(() => {
|
68
|
+
const listener = event => {
|
69
|
+
var _event$target, _event$target$form;
|
70
|
+
if (event.key === 'Escape' && (_event$target = event.target) !== null && _event$target !== void 0 && (_event$target$form = _event$target.form) !== null && _event$target$form !== void 0 && _event$target$form.reset) {
|
71
|
+
event.preventDefault();
|
72
|
+
event.target.form.reset();
|
73
|
+
}
|
74
|
+
};
|
75
|
+
document.addEventListener('keydown', listener);
|
76
|
+
return () => {
|
77
|
+
document.removeEventListener('keydown', listener);
|
78
|
+
};
|
79
|
+
}, []);
|
80
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
81
|
+
className: actionGroupClassName
|
82
|
+
}, /*#__PURE__*/React__default.createElement(IconButton, {
|
83
|
+
appearance: "primary",
|
84
|
+
icon: "tick",
|
85
|
+
type: "submit",
|
86
|
+
className: "mr-2"
|
87
|
+
}), /*#__PURE__*/React__default.createElement(IconButton, {
|
88
|
+
appearance: "ghost",
|
89
|
+
icon: "close",
|
90
|
+
type: "reset"
|
91
|
+
}));
|
92
|
+
};
|
93
|
+
const useRowActions = (inlineEditingUniqueId, handlers, actions, rowExpansionRenderer, texts, windowed = false) => {
|
94
|
+
const inlineEditing = !!inlineEditingUniqueId;
|
95
|
+
const actionsLength = getLength(inlineEditingUniqueId, handlers, actions);
|
96
|
+
const plugin = hooks => {
|
97
|
+
if (hasActions(inlineEditingUniqueId, handlers, actions)) {
|
98
|
+
hooks.visibleColumns.push(columns => [...columns, {
|
99
|
+
id: '_actions',
|
100
|
+
className: 'flex justify-end px-1 overflow-visible',
|
101
|
+
flex: `0 0 calc((${actionsLength} * 2rem) + .5rem)`,
|
102
|
+
Cell: ({
|
103
|
+
row
|
104
|
+
}) => {
|
105
|
+
if (row.isEditing) {
|
106
|
+
return /*#__PURE__*/React__default.createElement(EditModeActions, null);
|
107
|
+
}
|
108
|
+
const sanitizedRow = sanitizeRowProps(row, rowExpansionRenderer);
|
109
|
+
const [primaryActions, secondaryActions] = getActions(actions, sanitizedRow);
|
110
|
+
const output = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, handlers.onRowCreate && /*#__PURE__*/React__default.createElement(IconButton, {
|
111
|
+
appearance: "discrete",
|
112
|
+
icon: "circle-plus",
|
113
|
+
"aria-label": texts.table.newSubRow,
|
114
|
+
tooltip: texts.table.newSubRow,
|
115
|
+
disabled: inlineEditing && !row.canEdit,
|
116
|
+
onClick: event => {
|
117
|
+
event.stopPropagation();
|
118
|
+
event.persist();
|
119
|
+
row.setActive();
|
120
|
+
if (!row.isExpanded) {
|
121
|
+
row.toggleRowExpanded();
|
122
|
+
}
|
123
|
+
handlers.onRowCreate(sanitizedRow, event);
|
124
|
+
}
|
125
|
+
}), (inlineEditing || handlers.onRowEdit) && /*#__PURE__*/React__default.createElement(IconButton, {
|
126
|
+
appearance: "discrete",
|
127
|
+
icon: "edit",
|
128
|
+
"aria-label": texts.table.edit,
|
129
|
+
tooltip: texts.table.edit,
|
130
|
+
disabled: inlineEditing && !row.canEdit,
|
131
|
+
onClick: event => {
|
132
|
+
event.stopPropagation();
|
133
|
+
row.setActive();
|
134
|
+
if (inlineEditing) {
|
135
|
+
row.toggleRowEditing();
|
136
|
+
} else if (handlers.onRowEdit) {
|
137
|
+
event.persist();
|
138
|
+
handlers.onRowEdit(sanitizedRow, event);
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}), handlers.onRowCopy && /*#__PURE__*/React__default.createElement(IconButton, {
|
142
|
+
appearance: "discrete",
|
143
|
+
icon: "copy",
|
144
|
+
"aria-label": texts.table.copy,
|
145
|
+
tooltip: texts.table.copy,
|
146
|
+
disabled: inlineEditing && !row.canEdit,
|
147
|
+
onClick: event => {
|
148
|
+
event.stopPropagation();
|
149
|
+
event.persist();
|
150
|
+
row.setActive();
|
151
|
+
handlers.onRowCopy(sanitizedRow, event);
|
152
|
+
}
|
153
|
+
}), handlers.onRowDelete && /*#__PURE__*/React__default.createElement(IconButton, {
|
154
|
+
appearance: "discrete",
|
155
|
+
icon: "delete",
|
156
|
+
"aria-label": texts.table.del,
|
157
|
+
tooltip: texts.table.del,
|
158
|
+
disabled: inlineEditing && !row.canEdit,
|
159
|
+
onClick: event => {
|
160
|
+
event.stopPropagation();
|
161
|
+
event.persist();
|
162
|
+
row.setActive();
|
163
|
+
handlers.onRowDelete(sanitizedRow, event);
|
164
|
+
}
|
165
|
+
}), primaryActions.map((action, index) => /*#__PURE__*/React__default.createElement(IconButton, Object.assign({}, getActionProps(action, sanitizedRow), {
|
166
|
+
key: index,
|
167
|
+
appearance: "discrete",
|
168
|
+
icon: typeof action.icon === 'function' ? action.icon(sanitizedRow) : action.icon,
|
169
|
+
tooltip: typeof action.tooltip === 'function' ? action.tooltip(sanitizedRow) : action.tooltip
|
170
|
+
}))), secondaryActions.length ? /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement(Menu.Trigger, null, /*#__PURE__*/React__default.createElement(IconButton, {
|
171
|
+
appearance: "discrete",
|
172
|
+
icon: "ellipsis-vertical",
|
173
|
+
"aria-label": texts.table.actions,
|
174
|
+
tooltip: texts.table.actions,
|
175
|
+
disabled: inlineEditing && !row.canEdit,
|
176
|
+
onClick: event => {
|
177
|
+
event.stopPropagation();
|
178
|
+
row.setActive();
|
179
|
+
}
|
180
|
+
})), /*#__PURE__*/React__default.createElement(Menu.Content, null, secondaryActions.map((action, index) => /*#__PURE__*/React__default.createElement(Menu.Item, Object.assign({
|
181
|
+
key: index,
|
182
|
+
icon: typeof action.icon === 'function' ? action.icon(sanitizedRow) : action.icon
|
183
|
+
}, getActionProps(action, sanitizedRow)), typeof action.text === 'function' ? action.text(sanitizedRow) : action.text)))) : null);
|
184
|
+
if (windowed) {
|
185
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
186
|
+
className: actionGroupClassName
|
187
|
+
}, output);
|
188
|
+
}
|
189
|
+
return /*#__PURE__*/React__default.createElement(InView, {
|
190
|
+
rootMargin: "100px 0px"
|
191
|
+
}, ({
|
192
|
+
inView,
|
193
|
+
ref
|
194
|
+
}) => /*#__PURE__*/React__default.createElement("div", {
|
195
|
+
className: actionGroupClassName,
|
196
|
+
ref: ref
|
197
|
+
}, inView ? output : null));
|
198
|
+
}
|
199
|
+
}]);
|
200
|
+
}
|
201
|
+
};
|
202
|
+
plugin.pluginName = 'useRowActions';
|
203
|
+
return plugin;
|
204
|
+
};
|
205
|
+
|
206
|
+
export { useRowActions };
|
207
|
+
//# sourceMappingURL=useRowActions.js.map
|