impact-ui 4.0.0-alpha.2 → 4.0.0-alpha.21
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/MIGRATION_GUIDE.md +37 -7
- package/README.md +6 -6
- package/bin/migrate.js +5 -5
- package/codemods/transform.js +17 -23
- package/dist/_virtual/BookmarkBorderOutlined.js +4 -0
- package/dist/_virtual/ChevronLeftOutlined.js +4 -0
- package/dist/_virtual/CloseRounded.js +4 -0
- package/dist/_virtual/FilterAltOutlined.js +4 -0
- package/dist/_virtual/FilterListOutlined.js +4 -0
- package/dist/_virtual/KeyboardRounded.js +4 -0
- package/dist/_virtual/index.js +4 -2
- package/dist/_virtual/index10.js +3 -3
- package/dist/_virtual/index11.js +3 -3
- package/dist/_virtual/index12.js +3 -3
- package/dist/_virtual/index13.js +2 -4
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.js +2 -2
- package/dist/_virtual/index2.js +2 -4
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +4 -2
- package/dist/_virtual/index5.js +3 -3
- package/dist/_virtual/index6.js +2 -4
- package/dist/_virtual/index7.js +4 -2
- package/dist/_virtual/index8.js +3 -3
- package/dist/_virtual/index9.js +3 -3
- package/dist/components/Accordion/index.d.ts.map +1 -1
- package/dist/components/Accordion/index.js +45 -31
- package/dist/components/AccordionModern/SortableAccordionComp.js +3 -3
- package/dist/components/AccordionModern/index.js +2 -1
- package/dist/components/Alert/index.js +3 -2
- package/dist/components/Avatar/index.js +2 -1
- package/dist/components/Badge/filled/filledIconLabelBadges/index.js +2 -1
- package/dist/components/Badge/filled/filledOnlyIconBadges/index.js +2 -1
- package/dist/components/Badge/filled/filledOnlyLabelBadges/index.js +2 -1
- package/dist/components/Badge/index.js +3 -2
- package/dist/components/Badge/stroke/strokeIconLabelBadges/index.js +2 -1
- package/dist/components/Badge/stroke/strokeOnlyIconBadges/index.js +2 -1
- package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.js +2 -1
- package/dist/components/Badge/subtle/subtleIOnlyIconBadges/index.js +2 -1
- package/dist/components/Badge/subtle/subtleIconLabelBadges/index.js +2 -1
- package/dist/components/Badge/subtle/subtleOnlyLabelBadges/index.js +2 -1
- package/dist/components/BottomSheet/index.js +2 -1
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +10 -2
- package/dist/components/Button/Button.types.d.ts +4 -0
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +4 -1
- package/dist/components/ButtonGroup/ButtonGroup.types.d.ts +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.types.d.ts.map +1 -1
- package/dist/components/ButtonGroup/index.d.ts +1 -1
- package/dist/components/ButtonGroup/index.d.ts.map +1 -1
- package/dist/components/ButtonGroup/index.js +7 -2
- package/dist/components/Card/index.js +2 -1
- package/dist/components/Chart/Chart.types.d.ts +2 -2
- package/dist/components/Chart/index.d.ts +1 -1
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Chart/index.js +22 -14
- package/dist/components/Chatbot/Chatbot.types.d.ts +16 -1
- package/dist/components/Chatbot/Chatbot.types.d.ts.map +1 -1
- package/dist/components/Chatbot/bookMarkPanel.d.ts.map +1 -1
- package/dist/components/Chatbot/bookMarkPanel.js +4 -3
- package/dist/components/Chatbot/chatInput.d.ts.map +1 -1
- package/dist/components/Chatbot/chatInput.js +8 -7
- package/dist/components/Chatbot/chatbotModuleMenu.d.ts.map +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.js +6 -5
- package/dist/components/Chatbot/constant.d.ts.map +1 -1
- package/dist/components/Chatbot/constant.js +6 -5
- package/dist/components/Chatbot/historyPanel.d.ts.map +1 -1
- package/dist/components/Chatbot/historyPanel.js +2 -1
- package/dist/components/Chatbot/index.d.ts +1 -1
- package/dist/components/Chatbot/index.d.ts.map +1 -1
- package/dist/components/Chatbot/index.js +66 -9
- package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
- package/dist/components/Chatbot/newChatComponent.js +3 -2
- package/dist/components/Checkbox/Checkbox.types.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -1
- package/dist/components/Checkbox/Default.d.ts +1 -1
- package/dist/components/Checkbox/Default.d.ts.map +1 -1
- package/dist/components/Checkbox/Default.js +4 -0
- package/dist/components/Checkbox/index.js +2 -1
- package/dist/components/Chips/index.js +2 -1
- package/dist/components/CreateItemFlow/index.d.ts.map +1 -1
- package/dist/components/CreateItemFlow/index.js +4 -2
- package/dist/components/DatePicker/datePickerDropdown.js +2 -1
- package/dist/components/DatePicker/datePickerInput.d.ts +2 -0
- package/dist/components/DatePicker/datePickerInput.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerInput.js +4 -0
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +7 -2
- package/dist/components/DatePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DatePicker/showMonthYearSelect.js +31 -0
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts +4 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.js +20 -5
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts +4 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.js +18 -4
- package/dist/components/DateRangePicker/index.d.ts.map +1 -1
- package/dist/components/DateRangePicker/index.js +31 -5
- package/dist/components/DynamicLayout/index.js +2 -1
- package/dist/components/EmptyState/EmptyState.types.d.ts +2 -2
- package/dist/components/EmptyState/EmptyStateImage.d.ts +0 -1
- package/dist/components/EmptyState/EmptyStateImage.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyStateImage.js +19 -37
- package/dist/components/EmptyState/index.d.ts +1 -2
- package/dist/components/EmptyState/index.d.ts.map +1 -1
- package/dist/components/EmptyState/index.js +35 -21
- package/dist/components/FileUpload/FileUpload.types.d.ts +10 -2
- package/dist/components/FileUpload/FileUpload.types.d.ts.map +1 -1
- package/dist/components/FileUpload/TemplatePreview.d.ts +9 -0
- package/dist/components/FileUpload/TemplatePreview.d.ts.map +1 -0
- package/dist/components/FileUpload/TemplatePreview.js +31 -0
- package/dist/components/FileUpload/fileUploadAssets.loader.d.ts +1 -3
- package/dist/components/FileUpload/fileUploadAssets.loader.d.ts.map +1 -1
- package/dist/components/FileUpload/fileUploadAssets.loader.js +17 -48
- package/dist/components/FileUpload/fileUploadUtils.d.ts +4 -0
- package/dist/components/FileUpload/fileUploadUtils.d.ts.map +1 -0
- package/dist/components/FileUpload/fileUploadUtils.js +14 -0
- package/dist/components/FileUpload/index.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FileUpload/index.js +115 -10
- package/dist/components/FileUpload/useFileUploadTemplateState.d.ts +14 -0
- package/dist/components/FileUpload/useFileUploadTemplateState.d.ts.map +1 -0
- package/dist/components/FileUpload/useFileUploadTemplateState.js +46 -0
- package/dist/components/FilterPanel/index.d.ts.map +1 -1
- package/dist/components/FilterPanel/index.js +34 -1
- package/dist/components/FiltersStrip/FiltersStrip.types.d.ts +2 -2
- package/dist/components/FiltersStrip/index.d.ts +1 -1
- package/dist/components/FiltersStrip/index.d.ts.map +1 -1
- package/dist/components/FiltersStrip/index.js +10 -3
- package/dist/components/Header/Header.types.d.ts +2 -2
- package/dist/components/Header/index.d.ts +1 -1
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +148 -135
- package/dist/components/HomePage/constants.d.ts.map +1 -1
- package/dist/components/HomePage/constants.js +67 -66
- package/dist/components/HomePage/index.d.ts.map +1 -1
- package/dist/components/HomePage/index.js +66 -10
- package/dist/components/Input/InputWithIcon.d.ts +1 -1
- package/dist/components/Input/InputWithIcon.d.ts.map +1 -1
- package/dist/components/Input/InputWithIcon.js +20 -2
- package/dist/components/Input/VanillaInput.d.ts +1 -1
- package/dist/components/Input/VanillaInput.d.ts.map +1 -1
- package/dist/components/Input/VanillaInput.js +20 -2
- package/dist/components/Input/index.js +2 -1
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts +12 -0
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/Keycombo.js +20 -0
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts +7 -0
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +69 -0
- package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts +7 -0
- package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +167 -0
- package/dist/components/KeyboardShortCuts/StarOutlineIcon.d.ts +3 -0
- package/dist/components/KeyboardShortCuts/StarOutlineIcon.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/allSetBox.d.ts +6 -0
- package/dist/components/KeyboardShortCuts/allSetBox.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/allSetBox.js +32 -0
- package/dist/components/KeyboardShortCuts/index.d.ts +14 -0
- package/dist/components/KeyboardShortCuts/index.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/index.js +187 -0
- package/dist/components/KeyboardShortCuts/screen2.d.ts +4 -0
- package/dist/components/KeyboardShortCuts/screen2.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/screen2.js +19 -0
- package/dist/components/KeyboardShortCuts/screen3.d.ts +4 -0
- package/dist/components/KeyboardShortCuts/screen3.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/screen3.js +19 -0
- package/dist/components/KeyboardShortCuts/tutorial.d.ts +7 -0
- package/dist/components/KeyboardShortCuts/tutorial.d.ts.map +1 -0
- package/dist/components/KeyboardShortCuts/tutorial.js +161 -0
- package/dist/components/Loader/Loader.types.d.ts +2 -2
- package/dist/components/Loader/index.d.ts +1 -1
- package/dist/components/Loader/index.d.ts.map +1 -1
- package/dist/components/Loader/index.js +57 -37
- package/dist/components/Menu/IconMenuItem.js +2 -1
- package/dist/components/Menu/Menu.types.d.ts +3 -1
- package/dist/components/Menu/Menu.types.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.js +4 -2
- package/dist/components/Menu/NestedMenuItem.js +2 -1
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +8 -4
- package/dist/components/Menu/nestedMenuItemsFromObject.js +2 -1
- package/dist/components/Modal/index.js +2 -1
- package/dist/components/MonthPicker/DefaultYearSelect.js +10 -0
- package/dist/components/MonthPicker/constants.js +4 -0
- package/dist/components/MonthPicker/index.js +324 -0
- package/dist/components/MonthRangePicker/MonthRangePicker.types.d.ts +30 -0
- package/dist/components/MonthRangePicker/MonthRangePicker.types.d.ts.map +1 -0
- package/dist/components/MonthRangePicker/constants.d.ts +2 -0
- package/dist/components/MonthRangePicker/constants.d.ts.map +1 -0
- package/dist/components/MonthRangePicker/constants.js +4 -0
- package/dist/components/MonthRangePicker/index.d.ts +22 -0
- package/dist/components/MonthRangePicker/index.d.ts.map +1 -0
- package/dist/components/MonthRangePicker/index.js +613 -0
- package/dist/components/Notification/Notification.types.d.ts +35 -5
- package/dist/components/Notification/Notification.types.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.d.ts +21 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.d.ts.map +1 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.js +49 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.d.ts +30 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.d.ts.map +1 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +212 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts +14 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -0
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.js +299 -0
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.d.ts +9 -0
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.d.ts.map +1 -0
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.js +71 -0
- package/dist/components/Notification/NotificationBody/NotificationTaskList.d.ts +43 -0
- package/dist/components/Notification/NotificationBody/NotificationTaskList.d.ts.map +1 -0
- package/dist/components/Notification/NotificationBody/NotificationTaskList.js +245 -0
- package/dist/components/Notification/NotificationBody/index.d.ts +2 -3
- package/dist/components/Notification/NotificationBody/index.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/index.js +21 -11
- package/dist/components/Notification/index.js +2 -1
- package/dist/components/Notification/mockData.d.ts +14 -0
- package/dist/components/Notification/mockData.d.ts.map +1 -0
- package/dist/components/Panel/index.js +2 -1
- package/dist/components/Popover/index.js +2 -1
- package/dist/components/Portal/index.d.ts +1 -1
- package/dist/components/Portal/index.d.ts.map +1 -1
- package/dist/components/Portal/index.js +2 -1
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +2 -2
- package/dist/components/ProgressBar/index.d.ts +1 -1
- package/dist/components/ProgressBar/index.d.ts.map +1 -1
- package/dist/components/ProgressBar/index.js +31 -14
- package/dist/components/Prompt/index.js +2 -1
- package/dist/components/RadioButtonGroup/index.d.ts +1 -1
- package/dist/components/RadioButtonGroup/index.d.ts.map +1 -1
- package/dist/components/RadioButtonGroup/index.js +11 -2
- package/dist/components/Select/SearchFilter.d.ts.map +1 -1
- package/dist/components/Select/SearchFilter.js +140 -28
- package/dist/components/Select/Select.types.d.ts +46 -1
- package/dist/components/Select/Select.types.d.ts.map +1 -1
- package/dist/components/Select/customGroupHeading.js +1 -1
- package/dist/components/Select/dropdown.d.ts +1 -1
- package/dist/components/Select/dropdown.d.ts.map +1 -1
- package/dist/components/Select/dropdown.js +3 -2
- package/dist/components/Select/hooks/index.d.ts +3 -0
- package/dist/components/Select/hooks/index.d.ts.map +1 -1
- package/dist/components/Select/hooks/useKeyboardNavigation.d.ts +22 -0
- package/dist/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -0
- package/dist/components/Select/hooks/useKeyboardNavigation.js +160 -0
- package/dist/components/Select/hooks/useScrollIntoView.d.ts +11 -0
- package/dist/components/Select/hooks/useScrollIntoView.d.ts.map +1 -0
- package/dist/components/Select/hooks/useScrollIntoView.js +28 -0
- package/dist/components/Select/hooks/useTypeahead.d.ts +11 -0
- package/dist/components/Select/hooks/useTypeahead.d.ts.map +1 -0
- package/dist/components/Select/hooks/useTypeahead.js +41 -0
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +529 -151
- package/dist/components/Select/menuList.d.ts +2 -7
- package/dist/components/Select/menuList.d.ts.map +1 -1
- package/dist/components/Select/menuList.js +70 -18
- package/dist/components/Select/optionList.js +1 -1
- package/dist/components/Select/utils.d.ts +2 -2
- package/dist/components/Select/utils.d.ts.map +1 -1
- package/dist/components/Select/utils.js +3 -32
- package/dist/components/Shortcuts/ShortcutContext.d.ts +3 -0
- package/dist/components/Shortcuts/ShortcutContext.d.ts.map +1 -0
- package/dist/components/Shortcuts/ShortcutContext.js +5 -0
- package/dist/components/Shortcuts/ShortcutHint.d.ts +9 -0
- package/dist/components/Shortcuts/ShortcutHint.d.ts.map +1 -0
- package/dist/components/Shortcuts/ShortcutHint.js +33 -0
- package/dist/components/Shortcuts/ShortcutScope.d.ts +9 -0
- package/dist/components/Shortcuts/ShortcutScope.d.ts.map +1 -0
- package/dist/components/Shortcuts/ShortcutScope.js +10 -0
- package/dist/components/Shortcuts/ShortcutsConfigContext.d.ts +7 -0
- package/dist/components/Shortcuts/ShortcutsConfigContext.d.ts.map +1 -0
- package/dist/components/Shortcuts/ShortcutsConfigContext.js +8 -0
- package/dist/components/Shortcuts/ShortcutsProvider.d.ts +9 -0
- package/dist/components/Shortcuts/ShortcutsProvider.d.ts.map +1 -0
- package/dist/components/Shortcuts/ShortcutsProvider.js +18 -0
- package/dist/components/Shortcuts/index.d.ts +13 -0
- package/dist/components/Shortcuts/index.d.ts.map +1 -0
- package/dist/components/Shortcuts/useShortcut.d.ts +6 -0
- package/dist/components/Shortcuts/useShortcut.d.ts.map +1 -0
- package/dist/components/Shortcuts/useShortcut.js +92 -0
- package/dist/components/Shortcuts/useShortcutScope.d.ts +5 -0
- package/dist/components/Shortcuts/useShortcutScope.d.ts.map +1 -0
- package/dist/components/Shortcuts/useShortcutScope.js +25 -0
- package/dist/components/Sidebar/ChildMenu.js +1 -1
- package/dist/components/Sidebar/ParentMenu.js +1 -1
- package/dist/components/Sidebar/SidebarActions.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarActions.js +2 -1
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +64 -5
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +4 -2
- package/dist/components/Stepper/index.js +2 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js +8 -3
- package/dist/components/Table/AdvanceSortModal.d.ts +8 -0
- package/dist/components/Table/AdvanceSortModal.d.ts.map +1 -0
- package/dist/components/Table/AdvanceSortModal.js +285 -0
- package/dist/components/Table/AgGridHeader.d.ts.map +1 -1
- package/dist/components/Table/AgGridHeader.js +98 -65
- package/dist/components/Table/CommentsPortal.d.ts +1 -3
- package/dist/components/Table/CommentsPortal.d.ts.map +1 -1
- package/dist/components/Table/CommentsPortal.js +7 -7
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts +14 -11
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.js +2 -7
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts +11 -10
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +4 -3
- package/dist/components/Table/NoComments.d.ts.map +1 -1
- package/dist/components/Table/NoComments.js +3 -1
- package/dist/components/Table/Table.types.d.ts +13 -0
- package/dist/components/Table/Table.types.d.ts.map +1 -1
- package/dist/components/Table/TableImpl.d.ts +1 -2
- package/dist/components/Table/TableImpl.d.ts.map +1 -1
- package/dist/components/Table/TableImpl.js +334 -141
- package/dist/components/Table/actionBar.d.ts +12 -0
- package/dist/components/Table/actionBar.d.ts.map +1 -0
- package/dist/components/Table/actionBar.js +44 -0
- package/dist/components/Table/advanceSearchModal.d.ts.map +1 -1
- package/dist/components/Table/commentPanel.d.ts +2 -1
- package/dist/components/Table/commentPanel.d.ts.map +1 -1
- package/dist/components/Table/commentPanel.js +13 -8
- package/dist/components/Table/filterUtils.d.ts +2 -0
- package/dist/components/Table/filterUtils.d.ts.map +1 -1
- package/dist/components/Table/filterUtils.js +23 -1
- package/dist/components/Table/tableFunctions.d.ts +1 -3
- package/dist/components/Table/tableFunctions.d.ts.map +1 -1
- package/dist/components/Table/tableFunctions.js +13 -12
- package/dist/components/Table/tableHeader.d.ts +6 -1
- package/dist/components/Table/tableHeader.d.ts.map +1 -1
- package/dist/components/Table/tableHeader.js +13 -3
- package/dist/components/Table/tableMoreOptions.d.ts +3 -1
- package/dist/components/Table/tableMoreOptions.d.ts.map +1 -1
- package/dist/components/Table/tableMoreOptions.js +29 -2
- package/dist/components/Table/tableSettings.d.ts.map +1 -1
- package/dist/components/Table/tableSettings.js +1 -1
- package/dist/components/Table/withCommentIcon.d.ts.map +1 -1
- package/dist/components/Table/withCommentIcon.js +2 -1
- package/dist/components/TableChat/EmptyContainer.js +2 -1
- package/dist/components/TableChat/TableChatSidePanel.d.ts.map +1 -1
- package/dist/components/TableChat/TableChatSidePanel.js +6 -3
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatFooterSkeleton.js +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatHeaderSkeleton.js +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatMessageListSkeleton.js +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatSkeleton.js +2 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +15 -16
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +3 -2
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.js +4 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +14 -12
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.js +5 -4
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +4 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +7 -6
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.js +2 -0
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +18 -14
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageAvatar/ChatMessageAvatar.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +7 -3
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/EmojiPicker/EmojiPicker.js +2 -2
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js +10 -21
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +4 -6
- package/dist/components/TableChat/components/TextEditor/EditorToolbar.js +2 -1
- package/dist/components/TableChat/components/TextEditor/Mention.d.ts.map +1 -1
- package/dist/components/TableChat/components/TextEditor/Mention.js +12 -10
- package/dist/components/TableChat/components/TextEditor/MentionList.js +2 -1
- package/dist/components/TableChat/components/TextEditor/suggestion.js +2 -2
- package/dist/components/TableOld/AgGridHeader.d.ts +12 -0
- package/dist/components/TableOld/AgGridHeader.d.ts.map +1 -0
- package/dist/components/TableOld/actionBar.d.ts +7 -0
- package/dist/components/TableOld/actionBar.d.ts.map +1 -0
- package/dist/components/TableOld/index.d.ts +3 -0
- package/dist/components/TableOld/index.d.ts.map +1 -0
- package/dist/components/TableOld/mockData.d.ts +39 -0
- package/dist/components/TableOld/mockData.d.ts.map +1 -0
- package/dist/components/TableOld/tableFunctions.d.ts +56 -0
- package/dist/components/TableOld/tableFunctions.d.ts.map +1 -0
- package/dist/components/TableOld/tableHeader.d.ts +48 -0
- package/dist/components/TableOld/tableHeader.d.ts.map +1 -0
- package/dist/components/TableOld/tableIcons.d.ts +3 -0
- package/dist/components/TableOld/tableIcons.d.ts.map +1 -0
- package/dist/components/TableOld/tablePagination.d.ts +8 -0
- package/dist/components/TableOld/tablePagination.d.ts.map +1 -0
- package/dist/components/TableOld/tableSettings.d.ts +11 -0
- package/dist/components/TableOld/tableSettings.d.ts.map +1 -0
- package/dist/components/Tabs/index.js +2 -1
- package/dist/components/Tag/Tag.types.d.ts +4 -0
- package/dist/components/Tag/Tag.types.d.ts.map +1 -1
- package/dist/components/Tag/filled.d.ts +1 -1
- package/dist/components/Tag/filled.d.ts.map +1 -1
- package/dist/components/Tag/filled.js +18 -2
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +30 -28
- package/dist/components/Tag/solid.d.ts +1 -1
- package/dist/components/Tag/solid.d.ts.map +1 -1
- package/dist/components/Tag/solid.js +9 -1
- package/dist/components/Tag/stroke.d.ts +1 -1
- package/dist/components/Tag/stroke.d.ts.map +1 -1
- package/dist/components/Tag/stroke.js +9 -1
- package/dist/components/TagGroup/TagGroup.types.d.ts +2 -2
- package/dist/components/TagGroup/index.d.ts +1 -1
- package/dist/components/TagGroup/index.d.ts.map +1 -1
- package/dist/components/TagGroup/index.js +12 -2
- package/dist/components/TextArea/index.d.ts +1 -1
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +28 -39
- package/dist/components/Toast/index.js +2 -1
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +5 -4
- package/dist/components/YearSelect/index.js +83 -0
- package/dist/components/common/HelperText/HelperText.types.d.ts +2 -2
- package/dist/components/common/HelperText/index.d.ts +1 -1
- package/dist/components/common/HelperText/index.d.ts.map +1 -1
- package/dist/components/common/HelperText/index.js +12 -2
- package/dist/components/index.d.ts +11 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +37 -4
- package/dist/mcp-component-registry.json +3870 -0
- package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +1 -0
- package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +2 -1
- package/dist/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js +1 -1
- package/dist/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js +1 -0
- package/dist/node_modules/@mui/icons-material/Add.js +2 -2
- package/dist/node_modules/@mui/icons-material/AttachFile.js +2 -2
- package/dist/node_modules/@mui/icons-material/AutoFixHigh.js +2 -2
- package/dist/node_modules/@mui/icons-material/Block.js +2 -2
- package/dist/node_modules/@mui/icons-material/BookmarkBorderOutlined.js +17 -0
- package/dist/node_modules/@mui/icons-material/Brush.js +2 -2
- package/dist/node_modules/@mui/icons-material/Cancel.js +2 -2
- package/dist/node_modules/@mui/icons-material/CheckCircle.js +2 -2
- package/dist/node_modules/@mui/icons-material/ChevronLeft.js +2 -2
- package/dist/node_modules/@mui/icons-material/ChevronLeftOutlined.js +17 -0
- package/dist/node_modules/@mui/icons-material/ChevronRight.js +2 -2
- package/dist/node_modules/@mui/icons-material/ChevronRightOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/Clear.js +2 -2
- package/dist/node_modules/@mui/icons-material/Close.js +2 -2
- package/dist/node_modules/@mui/icons-material/CloseOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/CloseRounded.js +17 -0
- package/dist/node_modules/@mui/icons-material/DeleteOutlineOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/DeleteOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/DragIndicator.js +2 -2
- package/dist/node_modules/@mui/icons-material/ErrorOutline.js +2 -2
- package/dist/node_modules/@mui/icons-material/ExpandLess.js +2 -2
- package/dist/node_modules/@mui/icons-material/ExpandMore.js +2 -2
- package/dist/node_modules/@mui/icons-material/FileDownloadOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/FilterAltOutlined.js +17 -0
- package/dist/node_modules/@mui/icons-material/FilterList.js +2 -2
- package/dist/node_modules/@mui/icons-material/FilterListOutlined.js +17 -0
- package/dist/node_modules/@mui/icons-material/FormatBold.js +2 -2
- package/dist/node_modules/@mui/icons-material/FormatColorTextOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/FormatItalic.js +2 -2
- package/dist/node_modules/@mui/icons-material/FormatListBulleted.js +2 -2
- package/dist/node_modules/@mui/icons-material/FormatListNumbered.js +2 -2
- package/dist/node_modules/@mui/icons-material/Image.js +2 -2
- package/dist/node_modules/@mui/icons-material/Info.js +2 -2
- package/dist/node_modules/@mui/icons-material/InsertEmoticon.js +2 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowDown.js +2 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowDownOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowLeft.js +2 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowRight.js +2 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowRightOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/KeyboardArrowUp.js +2 -2
- package/dist/node_modules/@mui/icons-material/KeyboardRounded.js +17 -0
- package/dist/node_modules/@mui/icons-material/Link.js +2 -2
- package/dist/node_modules/@mui/icons-material/Looks3.js +2 -2
- package/dist/node_modules/@mui/icons-material/Looks4.js +2 -2
- package/dist/node_modules/@mui/icons-material/Looks5.js +2 -2
- package/dist/node_modules/@mui/icons-material/Looks6.js +2 -2
- package/dist/node_modules/@mui/icons-material/LooksOne.js +2 -2
- package/dist/node_modules/@mui/icons-material/LooksTwo.js +2 -2
- package/dist/node_modules/@mui/icons-material/MoreHoriz.js +2 -2
- package/dist/node_modules/@mui/icons-material/MoreVert.js +2 -2
- package/dist/node_modules/@mui/icons-material/North.js +2 -2
- package/dist/node_modules/@mui/icons-material/NotificationsOff.js +2 -2
- package/dist/node_modules/@mui/icons-material/SaveOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/Search.js +2 -2
- package/dist/node_modules/@mui/icons-material/SearchOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/SettingsOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/StrikethroughS.js +2 -2
- package/dist/node_modules/@mui/icons-material/TableChartOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/Tune.js +2 -2
- package/dist/node_modules/@mui/icons-material/ViewColumnOutlined.js +2 -2
- package/dist/node_modules/@mui/icons-material/Warning.js +2 -2
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon.js +1 -1
- package/dist/node_modules/@mui/material/Accordion/Accordion.js +2 -2
- package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails.js +2 -2
- package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +2 -2
- package/dist/node_modules/@mui/material/Alert/Alert.js +2 -2
- package/dist/node_modules/@mui/material/AlertTitle/AlertTitle.js +2 -2
- package/dist/node_modules/@mui/material/Avatar/Avatar.js +2 -2
- package/dist/node_modules/@mui/material/Backdrop/Backdrop.js +2 -2
- package/dist/node_modules/@mui/material/Badge/Badge.js +2 -2
- package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js +2 -2
- package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/node_modules/@mui/material/Button/Button.js +2 -2
- package/dist/node_modules/@mui/material/ButtonBase/ButtonBase.js +2 -2
- package/dist/node_modules/@mui/material/ButtonBase/TouchRipple.js +2 -2
- package/dist/node_modules/@mui/material/Card/Card.js +2 -2
- package/dist/node_modules/@mui/material/Checkbox/Checkbox.js +2 -2
- package/dist/node_modules/@mui/material/Chip/Chip.js +2 -2
- package/dist/node_modules/@mui/material/CircularProgress/CircularProgress.js +2 -2
- package/dist/node_modules/@mui/material/Collapse/Collapse.js +2 -2
- package/dist/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js +1 -0
- package/dist/node_modules/@mui/material/Dialog/Dialog.js +2 -2
- package/dist/node_modules/@mui/material/DialogActions/DialogActions.js +2 -2
- package/dist/node_modules/@mui/material/DialogContent/DialogContent.js +2 -2
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText.js +2 -2
- package/dist/node_modules/@mui/material/DialogTitle/DialogTitle.js +2 -2
- package/dist/node_modules/@mui/material/Drawer/Drawer.js +2 -2
- package/dist/node_modules/@mui/material/Fade/Fade.js +2 -2
- package/dist/node_modules/@mui/material/FilledInput/FilledInput.js +2 -2
- package/dist/node_modules/@mui/material/FilledInput/filledInputClasses.js +1 -1
- package/dist/node_modules/@mui/material/FormControl/FormControl.js +2 -2
- package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel.js +2 -2
- package/dist/node_modules/@mui/material/FormGroup/FormGroup.js +2 -2
- package/dist/node_modules/@mui/material/FormHelperText/FormHelperText.js +2 -2
- package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/node_modules/@mui/material/Grow/Grow.js +2 -2
- package/dist/node_modules/@mui/material/IconButton/IconButton.js +2 -2
- package/dist/node_modules/@mui/material/Input/Input.js +2 -2
- package/dist/node_modules/@mui/material/Input/inputClasses.js +1 -1
- package/dist/node_modules/@mui/material/InputBase/InputBase.js +2 -2
- package/dist/node_modules/@mui/material/LinearProgress/LinearProgress.js +2 -2
- package/dist/node_modules/@mui/material/Link/Link.js +2 -2
- package/dist/node_modules/@mui/material/List/List.js +2 -2
- package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon.js +2 -2
- package/dist/node_modules/@mui/material/Menu/Menu.js +2 -2
- package/dist/node_modules/@mui/material/MenuItem/MenuItem.js +2 -2
- package/dist/node_modules/@mui/material/MenuList/MenuList.js +2 -2
- package/dist/node_modules/@mui/material/Modal/Modal.js +2 -2
- package/dist/node_modules/@mui/material/Modal/useModal.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +2 -2
- package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +2 -2
- package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +2 -2
- package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses.js +1 -1
- package/dist/node_modules/@mui/material/Paper/Paper.js +2 -2
- package/dist/node_modules/@mui/material/Popover/Popover.js +2 -2
- package/dist/node_modules/@mui/material/Popper/BasePopper.js +3 -3
- package/dist/node_modules/@mui/material/Popper/Popper.js +2 -2
- package/dist/node_modules/@mui/material/Radio/Radio.js +2 -2
- package/dist/node_modules/@mui/material/Radio/RadioButtonIcon.js +1 -1
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroup.js +2 -2
- package/dist/node_modules/@mui/material/Select/Select.js +2 -2
- package/dist/node_modules/@mui/material/Select/SelectInput.js +2 -2
- package/dist/node_modules/@mui/material/Skeleton/Skeleton.js +2 -2
- package/dist/node_modules/@mui/material/Slide/Slide.js +2 -2
- package/dist/node_modules/@mui/material/Slider/Slider.js +2 -2
- package/dist/node_modules/@mui/material/Slider/useSlider.js +1 -1
- package/dist/node_modules/@mui/material/Snackbar/Snackbar.js +2 -2
- package/dist/node_modules/@mui/material/Snackbar/useSnackbar.js +1 -1
- package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent.js +2 -2
- package/dist/node_modules/@mui/material/Step/Step.js +2 -2
- package/dist/node_modules/@mui/material/StepConnector/StepConnector.js +2 -2
- package/dist/node_modules/@mui/material/StepIcon/StepIcon.js +2 -2
- package/dist/node_modules/@mui/material/StepLabel/StepLabel.js +2 -2
- package/dist/node_modules/@mui/material/Stepper/Stepper.js +2 -2
- package/dist/node_modules/@mui/material/SvgIcon/SvgIcon.js +2 -2
- package/dist/node_modules/@mui/material/Switch/Switch.js +2 -2
- package/dist/node_modules/@mui/material/Tab/Tab.js +2 -2
- package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton.js +2 -2
- package/dist/node_modules/@mui/material/Tabs/ScrollbarSize.js +2 -2
- package/dist/node_modules/@mui/material/Tabs/Tabs.js +2 -2
- package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +2 -2
- package/dist/node_modules/@mui/material/ToggleButton/ToggleButton.js +2 -2
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/dist/node_modules/@mui/material/Tooltip/Tooltip.js +2 -2
- package/dist/node_modules/@mui/material/Typography/Typography.js +2 -2
- package/dist/node_modules/@mui/material/internal/SwitchBase.js +2 -2
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/exactProp/exactProp.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js +2 -2
- package/dist/node_modules/@mui/material/styles/createMixins.js +1 -1
- package/dist/node_modules/@mui/material/styles/createPalette.js +2 -2
- package/dist/node_modules/@mui/material/styles/createTheme.js +2 -2
- package/dist/node_modules/@mui/material/styles/createTransitions.js +2 -2
- package/dist/node_modules/@mui/material/styles/createTypography.js +2 -2
- package/dist/node_modules/@mui/material/utils/createSvgIcon.js +1 -1
- package/dist/node_modules/@mui/material/utils/useSlot.js +2 -2
- package/dist/node_modules/@mui/system/colorManipulator.js +4 -4
- package/dist/node_modules/@mui/system/createStyled.js +11 -11
- package/dist/node_modules/@mui/system/esm/RtlProvider/index.js +2 -0
- package/dist/node_modules/@mui/system/esm/Stack/createStack.js +2 -2
- package/dist/node_modules/@mui/system/esm/breakpoints.js +1 -0
- package/dist/node_modules/@mui/system/esm/createBox.js +2 -2
- package/dist/node_modules/@mui/system/esm/createStyled.js +2 -2
- package/dist/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +2 -2
- package/dist/node_modules/@mui/system/esm/createTheme/createTheme.js +2 -2
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js +2 -2
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault.js +1 -1
- package/dist/node_modules/call-bind/index.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/is-symbol/index.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-dates/lib/initialize.js +2 -2
- package/dist/node_modules/react-dates/lib/utils/registerCSSInterfaceWithDefaultTheme.js +2 -2
- package/dist/node_modules/react-dates/lib/utils/registerInterfaceWithDefaultTheme.js +2 -2
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js +2 -2
- package/dist/node_modules/react-transition-group/esm/TransitionGroup.js +4 -4
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +3 -3
- package/dist/storybook-utils/rootAttributes.d.ts +33 -0
- package/dist/storybook-utils/rootAttributes.d.ts.map +1 -0
- package/dist/storybook-utils.d.ts +2 -1
- package/dist/storybook-utils.d.ts.map +1 -1
- package/dist/styles/entry.d.ts +2 -0
- package/dist/styles/entry.d.ts.map +1 -0
- package/dist/styles/entry.js +1 -0
- package/dist/styles/style.css +1 -1
- package/dist/test-utils/itForwardsRootId.d.ts +15 -0
- package/dist/test-utils/itForwardsRootId.d.ts.map +1 -0
- package/dist/test-utils/rootAttributes.d.ts +22 -0
- package/dist/test-utils/rootAttributes.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/assetBase.d.ts +7 -0
- package/dist/utils/assetBase.d.ts.map +1 -0
- package/dist/utils/assetBase.js +14 -0
- package/dist/utils/debounce.d.ts +7 -2
- package/dist/utils/debounce.d.ts.map +1 -1
- package/dist/utils/debounce.js +8 -1
- package/dist/utils/pickRootDomAttributes.d.ts +18 -0
- package/dist/utils/pickRootDomAttributes.d.ts.map +1 -0
- package/dist/utils/shortcuts/ShortcutManager.d.ts +34 -0
- package/dist/utils/shortcuts/ShortcutManager.d.ts.map +1 -0
- package/dist/utils/shortcuts/ShortcutManager.js +159 -0
- package/dist/utils/shortcuts/constants.d.ts +10 -0
- package/dist/utils/shortcuts/constants.d.ts.map +1 -0
- package/dist/utils/shortcuts/constants.js +46 -0
- package/dist/utils/shortcuts/format.d.ts +3 -0
- package/dist/utils/shortcuts/format.d.ts.map +1 -0
- package/dist/utils/shortcuts/format.js +27 -0
- package/dist/utils/shortcuts/index.d.ts +8 -0
- package/dist/utils/shortcuts/index.d.ts.map +1 -0
- package/dist/utils/shortcuts/match.d.ts +9 -0
- package/dist/utils/shortcuts/match.d.ts.map +1 -0
- package/dist/utils/shortcuts/match.js +52 -0
- package/dist/utils/shortcuts/parse.d.ts +10 -0
- package/dist/utils/shortcuts/parse.d.ts.map +1 -0
- package/dist/utils/shortcuts/parse.js +50 -0
- package/dist/utils/shortcuts/platform.d.ts +2 -0
- package/dist/utils/shortcuts/platform.d.ts.map +1 -0
- package/dist/utils/shortcuts/platform.js +5 -0
- package/dist/utils/shortcuts/shortcuts.test.d.ts +2 -0
- package/dist/utils/shortcuts/shortcuts.test.d.ts.map +1 -0
- package/dist/utils/shortcuts/types.d.ts +50 -0
- package/dist/utils/shortcuts/types.d.ts.map +1 -0
- package/eslint-plugin/rules/no-barrel-import.js +21 -9
- package/package.json +21 -8
- package/dist/_virtual/extends.js +0 -6
- package/dist/_virtual/heatmap.js +0 -4
- package/dist/_virtual/highcharts-3d.js +0 -4
- package/dist/_virtual/highcharts-more.js +0 -4
- package/dist/_virtual/highcharts-react.min.js +0 -4
- package/dist/_virtual/highcharts.js +0 -4
- package/dist/_virtual/index17.js +0 -4
- package/dist/_virtual/interopRequireDefault.js +0 -4
- package/dist/_virtual/objectWithoutPropertiesLoose.js +0 -4
- package/dist/_virtual/stock.js +0 -4
- package/dist/_virtual/treemap.js +0 -4
- package/dist/_virtual/venn.js +0 -4
- package/dist/assets/Chart-dropdown.svg.js +0 -4
- package/dist/assets/CheckTickAll.svg.js +0 -4
- package/dist/assets/Collapse.svg.js +0 -4
- package/dist/assets/Comment.svg.js +0 -4
- package/dist/assets/Down.svg.js +0 -4
- package/dist/assets/IA_Logo.svg.js +0 -4
- package/dist/assets/MoreHorizontal.svg.js +0 -4
- package/dist/assets/Up.svg.js +0 -4
- package/dist/assets/active-notificationIcon.svg.js +0 -4
- package/dist/assets/activeModuleIcon.svg.js +0 -4
- package/dist/assets/bell.svg.js +0 -4
- package/dist/assets/bookmarkIcon.svg.js +0 -4
- package/dist/assets/calendar.svg.js +0 -4
- package/dist/assets/chat-home-icon.svg.js +0 -4
- package/dist/assets/chatBotMicIcon.svg.js +0 -4
- package/dist/assets/chatBotRefreshIcon.svg.js +0 -4
- package/dist/assets/chatBotSendIcon.svg.js +0 -4
- package/dist/assets/chatIcon.svg.js +0 -4
- package/dist/assets/chatbotBannerIcon.svg.js +0 -4
- package/dist/assets/chatbotStopIcon.svg.js +0 -4
- package/dist/assets/checkBlueIcon.svg.js +0 -4
- package/dist/assets/checkGreeIcon.svg.js +0 -4
- package/dist/assets/checkIcon.svg.js +0 -4
- package/dist/assets/clientLogos/Balsam.svg.js +0 -4
- package/dist/assets/clientLogos/Starboard.svg.js +0 -4
- package/dist/assets/clientLogos/figs.svg.js +0 -4
- package/dist/assets/close.svg.js +0 -4
- package/dist/assets/collapse-icon.svg.js +0 -4
- package/dist/assets/comment-indicator.svg.js +0 -4
- package/dist/assets/commentEmptyStateIcon.svg.js +0 -4
- package/dist/assets/createFlowImage.svg.js +0 -4
- package/dist/assets/csv-icon.svg.js +0 -4
- package/dist/assets/defaultViewIcon.svg.js +0 -4
- package/dist/assets/defaultViewIconActive.svg.js +0 -4
- package/dist/assets/delete-black.svg.js +0 -4
- package/dist/assets/deleteIcon.svg.js +0 -4
- package/dist/assets/deleteRedIcon.svg.js +0 -4
- package/dist/assets/downArrow.svg.js +0 -4
- package/dist/assets/edit-black.svg.js +0 -4
- package/dist/assets/editYellowIcon.svg.js +0 -4
- package/dist/assets/excel-icon.svg.js +0 -4
- package/dist/assets/expand-icon.svg.js +0 -4
- package/dist/assets/failed-csv-icon.svg.js +0 -4
- package/dist/assets/failed-excel-icon.svg.js +0 -4
- package/dist/assets/file-upload-error.svg.js +0 -4
- package/dist/assets/file-upload.svg.js +0 -4
- package/dist/assets/fileUploadDownloadIcon.svg.js +0 -4
- package/dist/assets/fileUploadRetryIcon.svg.js +0 -4
- package/dist/assets/hamburger-close.svg.js +0 -4
- package/dist/assets/help-icon.svg.js +0 -4
- package/dist/assets/historyIcon.svg.js +0 -4
- package/dist/assets/landingPageAssets/agenticIcons/starIcon1.svg.js +0 -4
- package/dist/assets/landingPageAssets/agenticIcons/starIcon2.svg.js +0 -4
- package/dist/assets/landingPageAssets/agenticIcons/starIcon3.svg.js +0 -4
- package/dist/assets/landingPageAssets/agenticIcons/starIcon4.svg.js +0 -4
- package/dist/assets/landingPageAssets/agenticIcons/starIcon5.svg.js +0 -4
- package/dist/assets/landingPageAssets/book-demo.svg.js +0 -4
- package/dist/assets/landingPageAssets/configuration_icon.svg.js +0 -4
- package/dist/assets/landingPageAssets/launch.svg.js +0 -4
- package/dist/assets/listIcon.svg.js +0 -4
- package/dist/assets/logout-icon.svg.js +0 -4
- package/dist/assets/material-symbols_sort.svg.js +0 -4
- package/dist/assets/message-icon-disabled.svg.js +0 -4
- package/dist/assets/message-icon.svg.js +0 -4
- package/dist/assets/newChatIcon.svg.js +0 -4
- package/dist/assets/no-filter-results.svg.js +0 -4
- package/dist/assets/notAllowedGreenIcon.svg.js +0 -4
- package/dist/assets/notification-dnd.svg.js +0 -4
- package/dist/assets/pageIcon.svg.js +0 -4
- package/dist/assets/pencilIcon.svg.js +0 -4
- package/dist/assets/pinedIcon.svg.js +0 -4
- package/dist/assets/pinnedIcon.svg.js +0 -4
- package/dist/assets/saveViewDeleteIcon.svg.js +0 -4
- package/dist/assets/saveViewEditIcon.svg.js +0 -4
- package/dist/assets/saveViewIcon.svg.js +0 -4
- package/dist/assets/search.svg.js +0 -4
- package/dist/assets/searchIcon.svg.js +0 -4
- package/dist/assets/searchIconTable.svg.js +0 -4
- package/dist/assets/sendIcon.svg.js +0 -4
- package/dist/assets/smartBotAlan.svg.js +0 -4
- package/dist/assets/success-fill.svg.js +0 -4
- package/dist/assets/success-gray.svg.js +0 -4
- package/dist/assets/sun.png.js +0 -4
- package/dist/assets/tableSettingIcon.svg.js +0 -4
- package/dist/assets/tableSortIcon.svg.js +0 -4
- package/dist/assets/text-icon.svg.js +0 -4
- package/dist/assets/thumbsUpYellowIcon.svg.js +0 -4
- package/dist/assets/thumbsupBlueIcon.svg.js +0 -4
- package/dist/assets/treadChatIcon.svg.js +0 -4
- package/dist/assets/treedotIcon.svg.js +0 -4
- package/dist/assets/unpinedIcon.svg.js +0 -4
- package/dist/assets/upload-close-icon.svg.js +0 -4
- package/dist/assets/upload-pause-icon.svg.js +0 -4
- package/dist/assets/uploadDownloadIcon.svg.js +0 -4
- package/dist/assets/userPlusIcon1.svg.js +0 -4
- package/dist/assets/warningRedIcon.svg.js +0 -4
- package/dist/assets/webp/clientLogos/PACSUN.webp.js +0 -4
- package/dist/assets/webp/clientLogos/aaa.webp.js +0 -4
- package/dist/assets/webp/clientLogos/al-futtaim.webp.js +0 -4
- package/dist/assets/webp/clientLogos/arhaus.webp.js +0 -4
- package/dist/assets/webp/clientLogos/asley-stewart.webp.js +0 -4
- package/dist/assets/webp/clientLogos/briscoe.webp.js +0 -4
- package/dist/assets/webp/clientLogos/carters.webp.js +0 -4
- package/dist/assets/webp/clientLogos/cb.webp.js +0 -4
- package/dist/assets/webp/clientLogos/coach.webp.js +0 -4
- package/dist/assets/webp/clientLogos/dollargeneral.webp.js +0 -4
- package/dist/assets/webp/clientLogos/fossil.webp.js +0 -4
- package/dist/assets/webp/clientLogos/jared.webp.js +0 -4
- package/dist/assets/webp/clientLogos/katespade.webp.js +0 -4
- package/dist/assets/webp/clientLogos/kay.webp.js +0 -4
- package/dist/assets/webp/clientLogos/kik.webp.js +0 -4
- package/dist/assets/webp/clientLogos/leslies.webp.js +0 -4
- package/dist/assets/webp/clientLogos/lovisa_1.webp.js +0 -4
- package/dist/assets/webp/clientLogos/lsco_logo_red.webp.js +0 -4
- package/dist/assets/webp/clientLogos/m-s.webp.js +0 -4
- package/dist/assets/webp/clientLogos/oshkosh.webp.js +0 -4
- package/dist/assets/webp/clientLogos/pantagonia.webp.js +0 -4
- package/dist/assets/webp/clientLogos/pink.webp.js +0 -4
- package/dist/assets/webp/clientLogos/pitta-roso.webp.js +0 -4
- package/dist/assets/webp/clientLogos/psp.webp.js +0 -4
- package/dist/assets/webp/clientLogos/ralphlauren.webp.js +0 -4
- package/dist/assets/webp/clientLogos/rebel.webp.js +0 -4
- package/dist/assets/webp/clientLogos/scarpe.webp.js +0 -4
- package/dist/assets/webp/clientLogos/signet.webp.js +0 -4
- package/dist/assets/webp/clientLogos/so5.webp.js +0 -4
- package/dist/assets/webp/clientLogos/spanx.webp.js +0 -4
- package/dist/assets/webp/clientLogos/stevemadden.webp.js +0 -4
- package/dist/assets/webp/clientLogos/stuart.webp.js +0 -4
- package/dist/assets/webp/clientLogos/tillys.webp.js +0 -4
- package/dist/assets/webp/clientLogos/tommy-bahama.webp.js +0 -4
- package/dist/assets/webp/clientLogos/vs.webp.js +0 -4
- package/dist/assets/webp/clientLogos/zales.webp.js +0 -4
- package/dist/assets/webp/emptyState1.webp.js +0 -4
- package/dist/assets/webp/emptyState2.webp.js +0 -4
- package/dist/assets/webp/emptyState3.webp.js +0 -4
- package/dist/assets/webp/emptyState4.webp.js +0 -4
- package/dist/assets/webp/emptyState5.webp.js +0 -4
- package/dist/assets/webp/emptyState6.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/1.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/10.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/11.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/12.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/13.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/14.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/15.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/17.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/19.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/2.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/20.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/21.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/22.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/23.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/24.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/3.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/4.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/5.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/6.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/7.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/agenticIcons/8.webp.js +0 -4
- package/dist/assets/webp/landingPageAssets/carouselImages/image-2.webp.js +0 -4
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -7
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -17
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -16
- package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -7
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -13
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -24
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -13
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -11
- package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -13
- package/dist/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -22
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +0 -59
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.js +0 -3405
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +0 -418
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +0 -301
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -257
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -122
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -34
- package/dist/node_modules/@popperjs/core/lib/createPopper.js +0 -149
- package/dist/node_modules/@popperjs/core/lib/dom-utils/contains.js +0 -19
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +0 -38
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +0 -61
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +0 -53
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +0 -10
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +0 -27
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +0 -21
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +0 -14
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +0 -51
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +0 -21
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +0 -16
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +0 -31
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +0 -13
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +0 -13
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +0 -21
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +0 -8
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +0 -22
- package/dist/node_modules/@popperjs/core/lib/enums.js +0 -54
- package/dist/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +0 -71
- package/dist/node_modules/@popperjs/core/lib/modifiers/arrow.js +0 -72
- package/dist/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +0 -131
- package/dist/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +0 -40
- package/dist/node_modules/@popperjs/core/lib/modifiers/flip.js +0 -113
- package/dist/node_modules/@popperjs/core/lib/modifiers/hide.js +0 -57
- package/dist/node_modules/@popperjs/core/lib/modifiers/offset.js +0 -43
- package/dist/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +0 -19
- package/dist/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +0 -105
- package/dist/node_modules/@popperjs/core/lib/popper.js +0 -28
- package/dist/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +0 -35
- package/dist/node_modules/@popperjs/core/lib/utils/computeOffsets.js +0 -59
- package/dist/node_modules/@popperjs/core/lib/utils/debounce.js +0 -17
- package/dist/node_modules/@popperjs/core/lib/utils/detectOverflow.js +0 -47
- package/dist/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/utils/getAltAxis.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +0 -11
- package/dist/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +0 -14
- package/dist/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +0 -12
- package/dist/node_modules/@popperjs/core/lib/utils/getVariation.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/math.js +0 -8
- package/dist/node_modules/@popperjs/core/lib/utils/mergeByName.js +0 -16
- package/dist/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/utils/orderModifiers.js +0 -39
- package/dist/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +0 -11
- package/dist/node_modules/@popperjs/core/lib/utils/userAgent.js +0 -12
- package/dist/node_modules/@popperjs/core/lib/utils/within.js +0 -12
- package/dist/node_modules/@remix-run/router/dist/router.js +0 -400
- package/dist/node_modules/@tiptap/core/dist/index.js +0 -4252
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -52
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +0 -86
- package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js +0 -68
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +0 -62
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +0 -196
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +0 -10
- package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js +0 -21
- package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js +0 -25
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -60
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +0 -71
- package/dist/node_modules/@tiptap/extension-highlight/dist/index.js +0 -82
- package/dist/node_modules/@tiptap/extension-history/dist/index.js +0 -40
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -79
- package/dist/node_modules/@tiptap/extension-image/dist/index.js +0 -69
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +0 -85
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +0 -360
- package/dist/node_modules/@tiptap/extension-list-item/dist/index.js +0 -34
- package/dist/node_modules/@tiptap/extension-mention/dist/index.js +0 -213
- package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js +0 -86
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -36
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +0 -60
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +0 -72
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +0 -9
- package/dist/node_modules/@tiptap/react/dist/index.js +0 -1077
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +0 -84
- package/dist/node_modules/@tiptap/suggestion/dist/index.js +0 -224
- package/dist/node_modules/dompurify/dist/purify.es.js +0 -1012
- package/dist/node_modules/emoji-picker-react/dist/emoji-picker-react.esm.js +0 -25708
- package/dist/node_modules/flairup/dist/esm/index.js +0 -334
- package/dist/node_modules/highcharts/highcharts-3d.js +0 -768
- package/dist/node_modules/highcharts/highcharts-more.js +0 -1814
- package/dist/node_modules/highcharts/highcharts.js +0 -5153
- package/dist/node_modules/highcharts/modules/heatmap.js +0 -416
- package/dist/node_modules/highcharts/modules/stock.js +0 -2095
- package/dist/node_modules/highcharts/modules/treemap.js +0 -558
- package/dist/node_modules/highcharts/modules/venn.js +0 -434
- package/dist/node_modules/highcharts-border-radius/index.js +0 -92
- package/dist/node_modules/highcharts-react-official/dist/highcharts-react.min.js +0 -106
- package/dist/node_modules/linkifyjs/dist/linkify.js +0 -1158
- package/dist/node_modules/memoize-one/dist/memoize-one.esm.js +0 -52
- package/dist/node_modules/orderedmap/dist/index.js +0 -119
- package/dist/node_modules/prosemirror-commands/dist/index.js +0 -526
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +0 -136
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +0 -220
- package/dist/node_modules/prosemirror-history/dist/index.js +0 -356
- package/dist/node_modules/prosemirror-keymap/dist/index.js +0 -83
- package/dist/node_modules/prosemirror-model/dist/index.js +0 -3208
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +0 -130
- package/dist/node_modules/prosemirror-state/dist/index.js +0 -935
- package/dist/node_modules/prosemirror-transform/dist/index.js +0 -1861
- package/dist/node_modules/prosemirror-view/dist/index.js +0 -5223
- package/dist/node_modules/react-hook-form/dist/index.esm.js +0 -2089
- package/dist/node_modules/react-router/dist/index.js +0 -375
- package/dist/node_modules/react-router-dom/dist/index.js +0 -521
- package/dist/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2317
- package/dist/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1071
- package/dist/node_modules/react-select/dist/react-select.esm.js +0 -20
- package/dist/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -51
- package/dist/node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js +0 -213
- package/dist/node_modules/react-window/dist/index.esm.js +0 -505
- package/dist/node_modules/react-window/node_modules/memoize-one/dist/memoize-one.esm.js +0 -50
- package/dist/node_modules/rope-sequence/dist/index.js +0 -183
- package/dist/node_modules/tippy.js/dist/tippy.esm.js +0 -1283
- package/dist/node_modules/use-composed-ref/dist/use-composed-ref.esm.js +0 -25
- package/dist/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -5
- package/dist/node_modules/use-latest/dist/use-latest.esm.js +0 -12
- package/dist/node_modules/w3c-keyname/index.js +0 -105
- package/dist/stats.html +0 -4950
|
@@ -1,1283 +0,0 @@
|
|
|
1
|
-
import { createPopper } from "../../@popperjs/core/lib/popper.js";
|
|
2
|
-
import applyStyles from "../../@popperjs/core/lib/modifiers/applyStyles.js";
|
|
3
|
-
var BOX_CLASS = "tippy-box";
|
|
4
|
-
var CONTENT_CLASS = "tippy-content";
|
|
5
|
-
var BACKDROP_CLASS = "tippy-backdrop";
|
|
6
|
-
var ARROW_CLASS = "tippy-arrow";
|
|
7
|
-
var SVG_ARROW_CLASS = "tippy-svg-arrow";
|
|
8
|
-
var TOUCH_OPTIONS = {
|
|
9
|
-
passive: true,
|
|
10
|
-
capture: true
|
|
11
|
-
};
|
|
12
|
-
var TIPPY_DEFAULT_APPEND_TO = function TIPPY_DEFAULT_APPEND_TO2() {
|
|
13
|
-
return document.body;
|
|
14
|
-
};
|
|
15
|
-
function hasOwnProperty(obj, key) {
|
|
16
|
-
return {}.hasOwnProperty.call(obj, key);
|
|
17
|
-
}
|
|
18
|
-
function getValueAtIndexOrReturn(value, index, defaultValue) {
|
|
19
|
-
if (Array.isArray(value)) {
|
|
20
|
-
var v = value[index];
|
|
21
|
-
return v == null ? Array.isArray(defaultValue) ? defaultValue[index] : defaultValue : v;
|
|
22
|
-
}
|
|
23
|
-
return value;
|
|
24
|
-
}
|
|
25
|
-
function isType(value, type) {
|
|
26
|
-
var str = {}.toString.call(value);
|
|
27
|
-
return str.indexOf("[object") === 0 && str.indexOf(type + "]") > -1;
|
|
28
|
-
}
|
|
29
|
-
function invokeWithArgsOrReturn(value, args) {
|
|
30
|
-
return typeof value === "function" ? value.apply(void 0, args) : value;
|
|
31
|
-
}
|
|
32
|
-
function debounce(fn, ms) {
|
|
33
|
-
if (ms === 0) {
|
|
34
|
-
return fn;
|
|
35
|
-
}
|
|
36
|
-
var timeout;
|
|
37
|
-
return function(arg) {
|
|
38
|
-
clearTimeout(timeout);
|
|
39
|
-
timeout = setTimeout(function() {
|
|
40
|
-
fn(arg);
|
|
41
|
-
}, ms);
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function removeProperties(obj, keys) {
|
|
45
|
-
var clone = Object.assign({}, obj);
|
|
46
|
-
keys.forEach(function(key) {
|
|
47
|
-
delete clone[key];
|
|
48
|
-
});
|
|
49
|
-
return clone;
|
|
50
|
-
}
|
|
51
|
-
function splitBySpaces(value) {
|
|
52
|
-
return value.split(/\s+/).filter(Boolean);
|
|
53
|
-
}
|
|
54
|
-
function normalizeToArray(value) {
|
|
55
|
-
return [].concat(value);
|
|
56
|
-
}
|
|
57
|
-
function pushIfUnique(arr, value) {
|
|
58
|
-
if (arr.indexOf(value) === -1) {
|
|
59
|
-
arr.push(value);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function unique(arr) {
|
|
63
|
-
return arr.filter(function(item, index) {
|
|
64
|
-
return arr.indexOf(item) === index;
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function getBasePlacement(placement) {
|
|
68
|
-
return placement.split("-")[0];
|
|
69
|
-
}
|
|
70
|
-
function arrayFrom(value) {
|
|
71
|
-
return [].slice.call(value);
|
|
72
|
-
}
|
|
73
|
-
function removeUndefinedProps(obj) {
|
|
74
|
-
return Object.keys(obj).reduce(function(acc, key) {
|
|
75
|
-
if (obj[key] !== void 0) {
|
|
76
|
-
acc[key] = obj[key];
|
|
77
|
-
}
|
|
78
|
-
return acc;
|
|
79
|
-
}, {});
|
|
80
|
-
}
|
|
81
|
-
function div() {
|
|
82
|
-
return document.createElement("div");
|
|
83
|
-
}
|
|
84
|
-
function isElement(value) {
|
|
85
|
-
return ["Element", "Fragment"].some(function(type) {
|
|
86
|
-
return isType(value, type);
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
function isNodeList(value) {
|
|
90
|
-
return isType(value, "NodeList");
|
|
91
|
-
}
|
|
92
|
-
function isMouseEvent(value) {
|
|
93
|
-
return isType(value, "MouseEvent");
|
|
94
|
-
}
|
|
95
|
-
function isReferenceElement(value) {
|
|
96
|
-
return !!(value && value._tippy && value._tippy.reference === value);
|
|
97
|
-
}
|
|
98
|
-
function getArrayOfElements(value) {
|
|
99
|
-
if (isElement(value)) {
|
|
100
|
-
return [value];
|
|
101
|
-
}
|
|
102
|
-
if (isNodeList(value)) {
|
|
103
|
-
return arrayFrom(value);
|
|
104
|
-
}
|
|
105
|
-
if (Array.isArray(value)) {
|
|
106
|
-
return value;
|
|
107
|
-
}
|
|
108
|
-
return arrayFrom(document.querySelectorAll(value));
|
|
109
|
-
}
|
|
110
|
-
function setTransitionDuration(els, value) {
|
|
111
|
-
els.forEach(function(el) {
|
|
112
|
-
if (el) {
|
|
113
|
-
el.style.transitionDuration = value + "ms";
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
function setVisibilityState(els, state) {
|
|
118
|
-
els.forEach(function(el) {
|
|
119
|
-
if (el) {
|
|
120
|
-
el.setAttribute("data-state", state);
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
function getOwnerDocument(elementOrElements) {
|
|
125
|
-
var _element$ownerDocumen;
|
|
126
|
-
var _normalizeToArray = normalizeToArray(elementOrElements), element = _normalizeToArray[0];
|
|
127
|
-
return element != null && (_element$ownerDocumen = element.ownerDocument) != null && _element$ownerDocumen.body ? element.ownerDocument : document;
|
|
128
|
-
}
|
|
129
|
-
function isCursorOutsideInteractiveBorder(popperTreeData, event) {
|
|
130
|
-
var clientX = event.clientX, clientY = event.clientY;
|
|
131
|
-
return popperTreeData.every(function(_ref) {
|
|
132
|
-
var popperRect = _ref.popperRect, popperState = _ref.popperState, props = _ref.props;
|
|
133
|
-
var interactiveBorder = props.interactiveBorder;
|
|
134
|
-
var basePlacement = getBasePlacement(popperState.placement);
|
|
135
|
-
var offsetData = popperState.modifiersData.offset;
|
|
136
|
-
if (!offsetData) {
|
|
137
|
-
return true;
|
|
138
|
-
}
|
|
139
|
-
var topDistance = basePlacement === "bottom" ? offsetData.top.y : 0;
|
|
140
|
-
var bottomDistance = basePlacement === "top" ? offsetData.bottom.y : 0;
|
|
141
|
-
var leftDistance = basePlacement === "right" ? offsetData.left.x : 0;
|
|
142
|
-
var rightDistance = basePlacement === "left" ? offsetData.right.x : 0;
|
|
143
|
-
var exceedsTop = popperRect.top - clientY + topDistance > interactiveBorder;
|
|
144
|
-
var exceedsBottom = clientY - popperRect.bottom - bottomDistance > interactiveBorder;
|
|
145
|
-
var exceedsLeft = popperRect.left - clientX + leftDistance > interactiveBorder;
|
|
146
|
-
var exceedsRight = clientX - popperRect.right - rightDistance > interactiveBorder;
|
|
147
|
-
return exceedsTop || exceedsBottom || exceedsLeft || exceedsRight;
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
function updateTransitionEndListener(box, action, listener) {
|
|
151
|
-
var method = action + "EventListener";
|
|
152
|
-
["transitionend", "webkitTransitionEnd"].forEach(function(event) {
|
|
153
|
-
box[method](event, listener);
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
function actualContains(parent, child) {
|
|
157
|
-
var target = child;
|
|
158
|
-
while (target) {
|
|
159
|
-
var _target$getRootNode;
|
|
160
|
-
if (parent.contains(target)) {
|
|
161
|
-
return true;
|
|
162
|
-
}
|
|
163
|
-
target = target.getRootNode == null ? void 0 : (_target$getRootNode = target.getRootNode()) == null ? void 0 : _target$getRootNode.host;
|
|
164
|
-
}
|
|
165
|
-
return false;
|
|
166
|
-
}
|
|
167
|
-
var currentInput = {
|
|
168
|
-
isTouch: false
|
|
169
|
-
};
|
|
170
|
-
var lastMouseMoveTime = 0;
|
|
171
|
-
function onDocumentTouchStart() {
|
|
172
|
-
if (currentInput.isTouch) {
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
currentInput.isTouch = true;
|
|
176
|
-
if (window.performance) {
|
|
177
|
-
document.addEventListener("mousemove", onDocumentMouseMove);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
function onDocumentMouseMove() {
|
|
181
|
-
var now = performance.now();
|
|
182
|
-
if (now - lastMouseMoveTime < 20) {
|
|
183
|
-
currentInput.isTouch = false;
|
|
184
|
-
document.removeEventListener("mousemove", onDocumentMouseMove);
|
|
185
|
-
}
|
|
186
|
-
lastMouseMoveTime = now;
|
|
187
|
-
}
|
|
188
|
-
function onWindowBlur() {
|
|
189
|
-
var activeElement = document.activeElement;
|
|
190
|
-
if (isReferenceElement(activeElement)) {
|
|
191
|
-
var instance = activeElement._tippy;
|
|
192
|
-
if (activeElement.blur && !instance.state.isVisible) {
|
|
193
|
-
activeElement.blur();
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
function bindGlobalEventListeners() {
|
|
198
|
-
document.addEventListener("touchstart", onDocumentTouchStart, TOUCH_OPTIONS);
|
|
199
|
-
window.addEventListener("blur", onWindowBlur);
|
|
200
|
-
}
|
|
201
|
-
var isBrowser = typeof window !== "undefined" && typeof document !== "undefined";
|
|
202
|
-
var isIE11 = isBrowser ? (
|
|
203
|
-
// @ts-ignore
|
|
204
|
-
!!window.msCrypto
|
|
205
|
-
) : false;
|
|
206
|
-
function createMemoryLeakWarning(method) {
|
|
207
|
-
var txt = method === "destroy" ? "n already-" : " ";
|
|
208
|
-
return [method + "() was called on a" + txt + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
|
|
209
|
-
}
|
|
210
|
-
function clean(value) {
|
|
211
|
-
var spacesAndTabs = /[ \t]{2,}/g;
|
|
212
|
-
var lineStartWithSpaces = /^[ \t]*/gm;
|
|
213
|
-
return value.replace(spacesAndTabs, " ").replace(lineStartWithSpaces, "").trim();
|
|
214
|
-
}
|
|
215
|
-
function getDevMessage(message) {
|
|
216
|
-
return clean("\n %ctippy.js\n\n %c" + clean(message) + "\n\n %c👷 This is a development-only message. It will be removed in production.\n ");
|
|
217
|
-
}
|
|
218
|
-
function getFormattedMessage(message) {
|
|
219
|
-
return [
|
|
220
|
-
getDevMessage(message),
|
|
221
|
-
// title
|
|
222
|
-
"color: #00C584; font-size: 1.3em; font-weight: bold;",
|
|
223
|
-
// message
|
|
224
|
-
"line-height: 1.5",
|
|
225
|
-
// footer
|
|
226
|
-
"color: #a6a095;"
|
|
227
|
-
];
|
|
228
|
-
}
|
|
229
|
-
var visitedMessages;
|
|
230
|
-
if (process.env.NODE_ENV !== "production") {
|
|
231
|
-
resetVisitedMessages();
|
|
232
|
-
}
|
|
233
|
-
function resetVisitedMessages() {
|
|
234
|
-
visitedMessages = /* @__PURE__ */ new Set();
|
|
235
|
-
}
|
|
236
|
-
function warnWhen(condition, message) {
|
|
237
|
-
if (condition && !visitedMessages.has(message)) {
|
|
238
|
-
var _console;
|
|
239
|
-
visitedMessages.add(message);
|
|
240
|
-
(_console = console).warn.apply(_console, getFormattedMessage(message));
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
function errorWhen(condition, message) {
|
|
244
|
-
if (condition && !visitedMessages.has(message)) {
|
|
245
|
-
var _console2;
|
|
246
|
-
visitedMessages.add(message);
|
|
247
|
-
(_console2 = console).error.apply(_console2, getFormattedMessage(message));
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
function validateTargets(targets) {
|
|
251
|
-
var didPassFalsyValue = !targets;
|
|
252
|
-
var didPassPlainObject = Object.prototype.toString.call(targets) === "[object Object]" && !targets.addEventListener;
|
|
253
|
-
errorWhen(didPassFalsyValue, ["tippy() was passed", "`" + String(targets) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" "));
|
|
254
|
-
errorWhen(didPassPlainObject, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
255
|
-
}
|
|
256
|
-
var pluginProps = {
|
|
257
|
-
animateFill: false,
|
|
258
|
-
followCursor: false,
|
|
259
|
-
inlinePositioning: false,
|
|
260
|
-
sticky: false
|
|
261
|
-
};
|
|
262
|
-
var renderProps = {
|
|
263
|
-
allowHTML: false,
|
|
264
|
-
animation: "fade",
|
|
265
|
-
arrow: true,
|
|
266
|
-
content: "",
|
|
267
|
-
inertia: false,
|
|
268
|
-
maxWidth: 350,
|
|
269
|
-
role: "tooltip",
|
|
270
|
-
theme: "",
|
|
271
|
-
zIndex: 9999
|
|
272
|
-
};
|
|
273
|
-
var defaultProps = Object.assign({
|
|
274
|
-
appendTo: TIPPY_DEFAULT_APPEND_TO,
|
|
275
|
-
aria: {
|
|
276
|
-
content: "auto",
|
|
277
|
-
expanded: "auto"
|
|
278
|
-
},
|
|
279
|
-
delay: 0,
|
|
280
|
-
duration: [300, 250],
|
|
281
|
-
getReferenceClientRect: null,
|
|
282
|
-
hideOnClick: true,
|
|
283
|
-
ignoreAttributes: false,
|
|
284
|
-
interactive: false,
|
|
285
|
-
interactiveBorder: 2,
|
|
286
|
-
interactiveDebounce: 0,
|
|
287
|
-
moveTransition: "",
|
|
288
|
-
offset: [0, 10],
|
|
289
|
-
onAfterUpdate: function onAfterUpdate() {
|
|
290
|
-
},
|
|
291
|
-
onBeforeUpdate: function onBeforeUpdate() {
|
|
292
|
-
},
|
|
293
|
-
onCreate: function onCreate() {
|
|
294
|
-
},
|
|
295
|
-
onDestroy: function onDestroy() {
|
|
296
|
-
},
|
|
297
|
-
onHidden: function onHidden() {
|
|
298
|
-
},
|
|
299
|
-
onHide: function onHide() {
|
|
300
|
-
},
|
|
301
|
-
onMount: function onMount() {
|
|
302
|
-
},
|
|
303
|
-
onShow: function onShow() {
|
|
304
|
-
},
|
|
305
|
-
onShown: function onShown() {
|
|
306
|
-
},
|
|
307
|
-
onTrigger: function onTrigger() {
|
|
308
|
-
},
|
|
309
|
-
onUntrigger: function onUntrigger() {
|
|
310
|
-
},
|
|
311
|
-
onClickOutside: function onClickOutside() {
|
|
312
|
-
},
|
|
313
|
-
placement: "top",
|
|
314
|
-
plugins: [],
|
|
315
|
-
popperOptions: {},
|
|
316
|
-
render: null,
|
|
317
|
-
showOnCreate: false,
|
|
318
|
-
touch: true,
|
|
319
|
-
trigger: "mouseenter focus",
|
|
320
|
-
triggerTarget: null
|
|
321
|
-
}, pluginProps, renderProps);
|
|
322
|
-
var defaultKeys = Object.keys(defaultProps);
|
|
323
|
-
var setDefaultProps = function setDefaultProps2(partialProps) {
|
|
324
|
-
if (process.env.NODE_ENV !== "production") {
|
|
325
|
-
validateProps(partialProps, []);
|
|
326
|
-
}
|
|
327
|
-
var keys = Object.keys(partialProps);
|
|
328
|
-
keys.forEach(function(key) {
|
|
329
|
-
defaultProps[key] = partialProps[key];
|
|
330
|
-
});
|
|
331
|
-
};
|
|
332
|
-
function getExtendedPassedProps(passedProps) {
|
|
333
|
-
var plugins = passedProps.plugins || [];
|
|
334
|
-
var pluginProps2 = plugins.reduce(function(acc, plugin) {
|
|
335
|
-
var name = plugin.name, defaultValue = plugin.defaultValue;
|
|
336
|
-
if (name) {
|
|
337
|
-
var _name;
|
|
338
|
-
acc[name] = passedProps[name] !== void 0 ? passedProps[name] : (_name = defaultProps[name]) != null ? _name : defaultValue;
|
|
339
|
-
}
|
|
340
|
-
return acc;
|
|
341
|
-
}, {});
|
|
342
|
-
return Object.assign({}, passedProps, pluginProps2);
|
|
343
|
-
}
|
|
344
|
-
function getDataAttributeProps(reference, plugins) {
|
|
345
|
-
var propKeys = plugins ? Object.keys(getExtendedPassedProps(Object.assign({}, defaultProps, {
|
|
346
|
-
plugins
|
|
347
|
-
}))) : defaultKeys;
|
|
348
|
-
var props = propKeys.reduce(function(acc, key) {
|
|
349
|
-
var valueAsString = (reference.getAttribute("data-tippy-" + key) || "").trim();
|
|
350
|
-
if (!valueAsString) {
|
|
351
|
-
return acc;
|
|
352
|
-
}
|
|
353
|
-
if (key === "content") {
|
|
354
|
-
acc[key] = valueAsString;
|
|
355
|
-
} else {
|
|
356
|
-
try {
|
|
357
|
-
acc[key] = JSON.parse(valueAsString);
|
|
358
|
-
} catch (e) {
|
|
359
|
-
acc[key] = valueAsString;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
return acc;
|
|
363
|
-
}, {});
|
|
364
|
-
return props;
|
|
365
|
-
}
|
|
366
|
-
function evaluateProps(reference, props) {
|
|
367
|
-
var out = Object.assign({}, props, {
|
|
368
|
-
content: invokeWithArgsOrReturn(props.content, [reference])
|
|
369
|
-
}, props.ignoreAttributes ? {} : getDataAttributeProps(reference, props.plugins));
|
|
370
|
-
out.aria = Object.assign({}, defaultProps.aria, out.aria);
|
|
371
|
-
out.aria = {
|
|
372
|
-
expanded: out.aria.expanded === "auto" ? props.interactive : out.aria.expanded,
|
|
373
|
-
content: out.aria.content === "auto" ? props.interactive ? null : "describedby" : out.aria.content
|
|
374
|
-
};
|
|
375
|
-
return out;
|
|
376
|
-
}
|
|
377
|
-
function validateProps(partialProps, plugins) {
|
|
378
|
-
if (partialProps === void 0) {
|
|
379
|
-
partialProps = {};
|
|
380
|
-
}
|
|
381
|
-
if (plugins === void 0) {
|
|
382
|
-
plugins = [];
|
|
383
|
-
}
|
|
384
|
-
var keys = Object.keys(partialProps);
|
|
385
|
-
keys.forEach(function(prop) {
|
|
386
|
-
var nonPluginProps = removeProperties(defaultProps, Object.keys(pluginProps));
|
|
387
|
-
var didPassUnknownProp = !hasOwnProperty(nonPluginProps, prop);
|
|
388
|
-
if (didPassUnknownProp) {
|
|
389
|
-
didPassUnknownProp = plugins.filter(function(plugin) {
|
|
390
|
-
return plugin.name === prop;
|
|
391
|
-
}).length === 0;
|
|
392
|
-
}
|
|
393
|
-
warnWhen(didPassUnknownProp, ["`" + prop + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", "\n\n", "All props: https://atomiks.github.io/tippyjs/v6/all-props/\n", "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
var innerHTML = function innerHTML2() {
|
|
397
|
-
return "innerHTML";
|
|
398
|
-
};
|
|
399
|
-
function dangerouslySetInnerHTML(element, html) {
|
|
400
|
-
element[innerHTML()] = html;
|
|
401
|
-
}
|
|
402
|
-
function createArrowElement(value) {
|
|
403
|
-
var arrow = div();
|
|
404
|
-
if (value === true) {
|
|
405
|
-
arrow.className = ARROW_CLASS;
|
|
406
|
-
} else {
|
|
407
|
-
arrow.className = SVG_ARROW_CLASS;
|
|
408
|
-
if (isElement(value)) {
|
|
409
|
-
arrow.appendChild(value);
|
|
410
|
-
} else {
|
|
411
|
-
dangerouslySetInnerHTML(arrow, value);
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
return arrow;
|
|
415
|
-
}
|
|
416
|
-
function setContent(content, props) {
|
|
417
|
-
if (isElement(props.content)) {
|
|
418
|
-
dangerouslySetInnerHTML(content, "");
|
|
419
|
-
content.appendChild(props.content);
|
|
420
|
-
} else if (typeof props.content !== "function") {
|
|
421
|
-
if (props.allowHTML) {
|
|
422
|
-
dangerouslySetInnerHTML(content, props.content);
|
|
423
|
-
} else {
|
|
424
|
-
content.textContent = props.content;
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
function getChildren(popper) {
|
|
429
|
-
var box = popper.firstElementChild;
|
|
430
|
-
var boxChildren = arrayFrom(box.children);
|
|
431
|
-
return {
|
|
432
|
-
box,
|
|
433
|
-
content: boxChildren.find(function(node) {
|
|
434
|
-
return node.classList.contains(CONTENT_CLASS);
|
|
435
|
-
}),
|
|
436
|
-
arrow: boxChildren.find(function(node) {
|
|
437
|
-
return node.classList.contains(ARROW_CLASS) || node.classList.contains(SVG_ARROW_CLASS);
|
|
438
|
-
}),
|
|
439
|
-
backdrop: boxChildren.find(function(node) {
|
|
440
|
-
return node.classList.contains(BACKDROP_CLASS);
|
|
441
|
-
})
|
|
442
|
-
};
|
|
443
|
-
}
|
|
444
|
-
function render(instance) {
|
|
445
|
-
var popper = div();
|
|
446
|
-
var box = div();
|
|
447
|
-
box.className = BOX_CLASS;
|
|
448
|
-
box.setAttribute("data-state", "hidden");
|
|
449
|
-
box.setAttribute("tabindex", "-1");
|
|
450
|
-
var content = div();
|
|
451
|
-
content.className = CONTENT_CLASS;
|
|
452
|
-
content.setAttribute("data-state", "hidden");
|
|
453
|
-
setContent(content, instance.props);
|
|
454
|
-
popper.appendChild(box);
|
|
455
|
-
box.appendChild(content);
|
|
456
|
-
onUpdate(instance.props, instance.props);
|
|
457
|
-
function onUpdate(prevProps, nextProps) {
|
|
458
|
-
var _getChildren = getChildren(popper), box2 = _getChildren.box, content2 = _getChildren.content, arrow = _getChildren.arrow;
|
|
459
|
-
if (nextProps.theme) {
|
|
460
|
-
box2.setAttribute("data-theme", nextProps.theme);
|
|
461
|
-
} else {
|
|
462
|
-
box2.removeAttribute("data-theme");
|
|
463
|
-
}
|
|
464
|
-
if (typeof nextProps.animation === "string") {
|
|
465
|
-
box2.setAttribute("data-animation", nextProps.animation);
|
|
466
|
-
} else {
|
|
467
|
-
box2.removeAttribute("data-animation");
|
|
468
|
-
}
|
|
469
|
-
if (nextProps.inertia) {
|
|
470
|
-
box2.setAttribute("data-inertia", "");
|
|
471
|
-
} else {
|
|
472
|
-
box2.removeAttribute("data-inertia");
|
|
473
|
-
}
|
|
474
|
-
box2.style.maxWidth = typeof nextProps.maxWidth === "number" ? nextProps.maxWidth + "px" : nextProps.maxWidth;
|
|
475
|
-
if (nextProps.role) {
|
|
476
|
-
box2.setAttribute("role", nextProps.role);
|
|
477
|
-
} else {
|
|
478
|
-
box2.removeAttribute("role");
|
|
479
|
-
}
|
|
480
|
-
if (prevProps.content !== nextProps.content || prevProps.allowHTML !== nextProps.allowHTML) {
|
|
481
|
-
setContent(content2, instance.props);
|
|
482
|
-
}
|
|
483
|
-
if (nextProps.arrow) {
|
|
484
|
-
if (!arrow) {
|
|
485
|
-
box2.appendChild(createArrowElement(nextProps.arrow));
|
|
486
|
-
} else if (prevProps.arrow !== nextProps.arrow) {
|
|
487
|
-
box2.removeChild(arrow);
|
|
488
|
-
box2.appendChild(createArrowElement(nextProps.arrow));
|
|
489
|
-
}
|
|
490
|
-
} else if (arrow) {
|
|
491
|
-
box2.removeChild(arrow);
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
return {
|
|
495
|
-
popper,
|
|
496
|
-
onUpdate
|
|
497
|
-
};
|
|
498
|
-
}
|
|
499
|
-
render.$$tippy = true;
|
|
500
|
-
var idCounter = 1;
|
|
501
|
-
var mouseMoveListeners = [];
|
|
502
|
-
var mountedInstances = [];
|
|
503
|
-
function createTippy(reference, passedProps) {
|
|
504
|
-
var props = evaluateProps(reference, Object.assign({}, defaultProps, getExtendedPassedProps(removeUndefinedProps(passedProps))));
|
|
505
|
-
var showTimeout;
|
|
506
|
-
var hideTimeout;
|
|
507
|
-
var scheduleHideAnimationFrame;
|
|
508
|
-
var isVisibleFromClick = false;
|
|
509
|
-
var didHideDueToDocumentMouseDown = false;
|
|
510
|
-
var didTouchMove = false;
|
|
511
|
-
var ignoreOnFirstUpdate = false;
|
|
512
|
-
var lastTriggerEvent;
|
|
513
|
-
var currentTransitionEndListener;
|
|
514
|
-
var onFirstUpdate;
|
|
515
|
-
var listeners = [];
|
|
516
|
-
var debouncedOnMouseMove = debounce(onMouseMove, props.interactiveDebounce);
|
|
517
|
-
var currentTarget;
|
|
518
|
-
var id = idCounter++;
|
|
519
|
-
var popperInstance = null;
|
|
520
|
-
var plugins = unique(props.plugins);
|
|
521
|
-
var state = {
|
|
522
|
-
// Is the instance currently enabled?
|
|
523
|
-
isEnabled: true,
|
|
524
|
-
// Is the tippy currently showing and not transitioning out?
|
|
525
|
-
isVisible: false,
|
|
526
|
-
// Has the instance been destroyed?
|
|
527
|
-
isDestroyed: false,
|
|
528
|
-
// Is the tippy currently mounted to the DOM?
|
|
529
|
-
isMounted: false,
|
|
530
|
-
// Has the tippy finished transitioning in?
|
|
531
|
-
isShown: false
|
|
532
|
-
};
|
|
533
|
-
var instance = {
|
|
534
|
-
// properties
|
|
535
|
-
id,
|
|
536
|
-
reference,
|
|
537
|
-
popper: div(),
|
|
538
|
-
popperInstance,
|
|
539
|
-
props,
|
|
540
|
-
state,
|
|
541
|
-
plugins,
|
|
542
|
-
// methods
|
|
543
|
-
clearDelayTimeouts,
|
|
544
|
-
setProps,
|
|
545
|
-
setContent: setContent2,
|
|
546
|
-
show,
|
|
547
|
-
hide,
|
|
548
|
-
hideWithInteractivity,
|
|
549
|
-
enable,
|
|
550
|
-
disable,
|
|
551
|
-
unmount,
|
|
552
|
-
destroy
|
|
553
|
-
};
|
|
554
|
-
if (!props.render) {
|
|
555
|
-
if (process.env.NODE_ENV !== "production") {
|
|
556
|
-
errorWhen(true, "render() function has not been supplied.");
|
|
557
|
-
}
|
|
558
|
-
return instance;
|
|
559
|
-
}
|
|
560
|
-
var _props$render = props.render(instance), popper = _props$render.popper, onUpdate = _props$render.onUpdate;
|
|
561
|
-
popper.setAttribute("data-tippy-root", "");
|
|
562
|
-
popper.id = "tippy-" + instance.id;
|
|
563
|
-
instance.popper = popper;
|
|
564
|
-
reference._tippy = instance;
|
|
565
|
-
popper._tippy = instance;
|
|
566
|
-
var pluginsHooks = plugins.map(function(plugin) {
|
|
567
|
-
return plugin.fn(instance);
|
|
568
|
-
});
|
|
569
|
-
var hasAriaExpanded = reference.hasAttribute("aria-expanded");
|
|
570
|
-
addListeners();
|
|
571
|
-
handleAriaExpandedAttribute();
|
|
572
|
-
handleStyles();
|
|
573
|
-
invokeHook("onCreate", [instance]);
|
|
574
|
-
if (props.showOnCreate) {
|
|
575
|
-
scheduleShow();
|
|
576
|
-
}
|
|
577
|
-
popper.addEventListener("mouseenter", function() {
|
|
578
|
-
if (instance.props.interactive && instance.state.isVisible) {
|
|
579
|
-
instance.clearDelayTimeouts();
|
|
580
|
-
}
|
|
581
|
-
});
|
|
582
|
-
popper.addEventListener("mouseleave", function() {
|
|
583
|
-
if (instance.props.interactive && instance.props.trigger.indexOf("mouseenter") >= 0) {
|
|
584
|
-
getDocument().addEventListener("mousemove", debouncedOnMouseMove);
|
|
585
|
-
}
|
|
586
|
-
});
|
|
587
|
-
return instance;
|
|
588
|
-
function getNormalizedTouchSettings() {
|
|
589
|
-
var touch = instance.props.touch;
|
|
590
|
-
return Array.isArray(touch) ? touch : [touch, 0];
|
|
591
|
-
}
|
|
592
|
-
function getIsCustomTouchBehavior() {
|
|
593
|
-
return getNormalizedTouchSettings()[0] === "hold";
|
|
594
|
-
}
|
|
595
|
-
function getIsDefaultRenderFn() {
|
|
596
|
-
var _instance$props$rende;
|
|
597
|
-
return !!((_instance$props$rende = instance.props.render) != null && _instance$props$rende.$$tippy);
|
|
598
|
-
}
|
|
599
|
-
function getCurrentTarget() {
|
|
600
|
-
return currentTarget || reference;
|
|
601
|
-
}
|
|
602
|
-
function getDocument() {
|
|
603
|
-
var parent = getCurrentTarget().parentNode;
|
|
604
|
-
return parent ? getOwnerDocument(parent) : document;
|
|
605
|
-
}
|
|
606
|
-
function getDefaultTemplateChildren() {
|
|
607
|
-
return getChildren(popper);
|
|
608
|
-
}
|
|
609
|
-
function getDelay(isShow) {
|
|
610
|
-
if (instance.state.isMounted && !instance.state.isVisible || currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === "focus") {
|
|
611
|
-
return 0;
|
|
612
|
-
}
|
|
613
|
-
return getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, defaultProps.delay);
|
|
614
|
-
}
|
|
615
|
-
function handleStyles(fromHide) {
|
|
616
|
-
if (fromHide === void 0) {
|
|
617
|
-
fromHide = false;
|
|
618
|
-
}
|
|
619
|
-
popper.style.pointerEvents = instance.props.interactive && !fromHide ? "" : "none";
|
|
620
|
-
popper.style.zIndex = "" + instance.props.zIndex;
|
|
621
|
-
}
|
|
622
|
-
function invokeHook(hook, args, shouldInvokePropsHook) {
|
|
623
|
-
if (shouldInvokePropsHook === void 0) {
|
|
624
|
-
shouldInvokePropsHook = true;
|
|
625
|
-
}
|
|
626
|
-
pluginsHooks.forEach(function(pluginHooks) {
|
|
627
|
-
if (pluginHooks[hook]) {
|
|
628
|
-
pluginHooks[hook].apply(pluginHooks, args);
|
|
629
|
-
}
|
|
630
|
-
});
|
|
631
|
-
if (shouldInvokePropsHook) {
|
|
632
|
-
var _instance$props;
|
|
633
|
-
(_instance$props = instance.props)[hook].apply(_instance$props, args);
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
function handleAriaContentAttribute() {
|
|
637
|
-
var aria = instance.props.aria;
|
|
638
|
-
if (!aria.content) {
|
|
639
|
-
return;
|
|
640
|
-
}
|
|
641
|
-
var attr = "aria-" + aria.content;
|
|
642
|
-
var id2 = popper.id;
|
|
643
|
-
var nodes = normalizeToArray(instance.props.triggerTarget || reference);
|
|
644
|
-
nodes.forEach(function(node) {
|
|
645
|
-
var currentValue = node.getAttribute(attr);
|
|
646
|
-
if (instance.state.isVisible) {
|
|
647
|
-
node.setAttribute(attr, currentValue ? currentValue + " " + id2 : id2);
|
|
648
|
-
} else {
|
|
649
|
-
var nextValue = currentValue && currentValue.replace(id2, "").trim();
|
|
650
|
-
if (nextValue) {
|
|
651
|
-
node.setAttribute(attr, nextValue);
|
|
652
|
-
} else {
|
|
653
|
-
node.removeAttribute(attr);
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
});
|
|
657
|
-
}
|
|
658
|
-
function handleAriaExpandedAttribute() {
|
|
659
|
-
if (hasAriaExpanded || !instance.props.aria.expanded) {
|
|
660
|
-
return;
|
|
661
|
-
}
|
|
662
|
-
var nodes = normalizeToArray(instance.props.triggerTarget || reference);
|
|
663
|
-
nodes.forEach(function(node) {
|
|
664
|
-
if (instance.props.interactive) {
|
|
665
|
-
node.setAttribute("aria-expanded", instance.state.isVisible && node === getCurrentTarget() ? "true" : "false");
|
|
666
|
-
} else {
|
|
667
|
-
node.removeAttribute("aria-expanded");
|
|
668
|
-
}
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
function cleanupInteractiveMouseListeners() {
|
|
672
|
-
getDocument().removeEventListener("mousemove", debouncedOnMouseMove);
|
|
673
|
-
mouseMoveListeners = mouseMoveListeners.filter(function(listener) {
|
|
674
|
-
return listener !== debouncedOnMouseMove;
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
function onDocumentPress(event) {
|
|
678
|
-
if (currentInput.isTouch) {
|
|
679
|
-
if (didTouchMove || event.type === "mousedown") {
|
|
680
|
-
return;
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
var actualTarget = event.composedPath && event.composedPath()[0] || event.target;
|
|
684
|
-
if (instance.props.interactive && actualContains(popper, actualTarget)) {
|
|
685
|
-
return;
|
|
686
|
-
}
|
|
687
|
-
if (normalizeToArray(instance.props.triggerTarget || reference).some(function(el) {
|
|
688
|
-
return actualContains(el, actualTarget);
|
|
689
|
-
})) {
|
|
690
|
-
if (currentInput.isTouch) {
|
|
691
|
-
return;
|
|
692
|
-
}
|
|
693
|
-
if (instance.state.isVisible && instance.props.trigger.indexOf("click") >= 0) {
|
|
694
|
-
return;
|
|
695
|
-
}
|
|
696
|
-
} else {
|
|
697
|
-
invokeHook("onClickOutside", [instance, event]);
|
|
698
|
-
}
|
|
699
|
-
if (instance.props.hideOnClick === true) {
|
|
700
|
-
instance.clearDelayTimeouts();
|
|
701
|
-
instance.hide();
|
|
702
|
-
didHideDueToDocumentMouseDown = true;
|
|
703
|
-
setTimeout(function() {
|
|
704
|
-
didHideDueToDocumentMouseDown = false;
|
|
705
|
-
});
|
|
706
|
-
if (!instance.state.isMounted) {
|
|
707
|
-
removeDocumentPress();
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
function onTouchMove() {
|
|
712
|
-
didTouchMove = true;
|
|
713
|
-
}
|
|
714
|
-
function onTouchStart() {
|
|
715
|
-
didTouchMove = false;
|
|
716
|
-
}
|
|
717
|
-
function addDocumentPress() {
|
|
718
|
-
var doc = getDocument();
|
|
719
|
-
doc.addEventListener("mousedown", onDocumentPress, true);
|
|
720
|
-
doc.addEventListener("touchend", onDocumentPress, TOUCH_OPTIONS);
|
|
721
|
-
doc.addEventListener("touchstart", onTouchStart, TOUCH_OPTIONS);
|
|
722
|
-
doc.addEventListener("touchmove", onTouchMove, TOUCH_OPTIONS);
|
|
723
|
-
}
|
|
724
|
-
function removeDocumentPress() {
|
|
725
|
-
var doc = getDocument();
|
|
726
|
-
doc.removeEventListener("mousedown", onDocumentPress, true);
|
|
727
|
-
doc.removeEventListener("touchend", onDocumentPress, TOUCH_OPTIONS);
|
|
728
|
-
doc.removeEventListener("touchstart", onTouchStart, TOUCH_OPTIONS);
|
|
729
|
-
doc.removeEventListener("touchmove", onTouchMove, TOUCH_OPTIONS);
|
|
730
|
-
}
|
|
731
|
-
function onTransitionedOut(duration, callback) {
|
|
732
|
-
onTransitionEnd(duration, function() {
|
|
733
|
-
if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) {
|
|
734
|
-
callback();
|
|
735
|
-
}
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
function onTransitionedIn(duration, callback) {
|
|
739
|
-
onTransitionEnd(duration, callback);
|
|
740
|
-
}
|
|
741
|
-
function onTransitionEnd(duration, callback) {
|
|
742
|
-
var box = getDefaultTemplateChildren().box;
|
|
743
|
-
function listener(event) {
|
|
744
|
-
if (event.target === box) {
|
|
745
|
-
updateTransitionEndListener(box, "remove", listener);
|
|
746
|
-
callback();
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
if (duration === 0) {
|
|
750
|
-
return callback();
|
|
751
|
-
}
|
|
752
|
-
updateTransitionEndListener(box, "remove", currentTransitionEndListener);
|
|
753
|
-
updateTransitionEndListener(box, "add", listener);
|
|
754
|
-
currentTransitionEndListener = listener;
|
|
755
|
-
}
|
|
756
|
-
function on(eventType, handler, options) {
|
|
757
|
-
if (options === void 0) {
|
|
758
|
-
options = false;
|
|
759
|
-
}
|
|
760
|
-
var nodes = normalizeToArray(instance.props.triggerTarget || reference);
|
|
761
|
-
nodes.forEach(function(node) {
|
|
762
|
-
node.addEventListener(eventType, handler, options);
|
|
763
|
-
listeners.push({
|
|
764
|
-
node,
|
|
765
|
-
eventType,
|
|
766
|
-
handler,
|
|
767
|
-
options
|
|
768
|
-
});
|
|
769
|
-
});
|
|
770
|
-
}
|
|
771
|
-
function addListeners() {
|
|
772
|
-
if (getIsCustomTouchBehavior()) {
|
|
773
|
-
on("touchstart", onTrigger2, {
|
|
774
|
-
passive: true
|
|
775
|
-
});
|
|
776
|
-
on("touchend", onMouseLeave, {
|
|
777
|
-
passive: true
|
|
778
|
-
});
|
|
779
|
-
}
|
|
780
|
-
splitBySpaces(instance.props.trigger).forEach(function(eventType) {
|
|
781
|
-
if (eventType === "manual") {
|
|
782
|
-
return;
|
|
783
|
-
}
|
|
784
|
-
on(eventType, onTrigger2);
|
|
785
|
-
switch (eventType) {
|
|
786
|
-
case "mouseenter":
|
|
787
|
-
on("mouseleave", onMouseLeave);
|
|
788
|
-
break;
|
|
789
|
-
case "focus":
|
|
790
|
-
on(isIE11 ? "focusout" : "blur", onBlurOrFocusOut);
|
|
791
|
-
break;
|
|
792
|
-
case "focusin":
|
|
793
|
-
on("focusout", onBlurOrFocusOut);
|
|
794
|
-
break;
|
|
795
|
-
}
|
|
796
|
-
});
|
|
797
|
-
}
|
|
798
|
-
function removeListeners() {
|
|
799
|
-
listeners.forEach(function(_ref) {
|
|
800
|
-
var node = _ref.node, eventType = _ref.eventType, handler = _ref.handler, options = _ref.options;
|
|
801
|
-
node.removeEventListener(eventType, handler, options);
|
|
802
|
-
});
|
|
803
|
-
listeners = [];
|
|
804
|
-
}
|
|
805
|
-
function onTrigger2(event) {
|
|
806
|
-
var _lastTriggerEvent;
|
|
807
|
-
var shouldScheduleClickHide = false;
|
|
808
|
-
if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) {
|
|
809
|
-
return;
|
|
810
|
-
}
|
|
811
|
-
var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === "focus";
|
|
812
|
-
lastTriggerEvent = event;
|
|
813
|
-
currentTarget = event.currentTarget;
|
|
814
|
-
handleAriaExpandedAttribute();
|
|
815
|
-
if (!instance.state.isVisible && isMouseEvent(event)) {
|
|
816
|
-
mouseMoveListeners.forEach(function(listener) {
|
|
817
|
-
return listener(event);
|
|
818
|
-
});
|
|
819
|
-
}
|
|
820
|
-
if (event.type === "click" && (instance.props.trigger.indexOf("mouseenter") < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) {
|
|
821
|
-
shouldScheduleClickHide = true;
|
|
822
|
-
} else {
|
|
823
|
-
scheduleShow(event);
|
|
824
|
-
}
|
|
825
|
-
if (event.type === "click") {
|
|
826
|
-
isVisibleFromClick = !shouldScheduleClickHide;
|
|
827
|
-
}
|
|
828
|
-
if (shouldScheduleClickHide && !wasFocused) {
|
|
829
|
-
scheduleHide(event);
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
function onMouseMove(event) {
|
|
833
|
-
var target = event.target;
|
|
834
|
-
var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
|
|
835
|
-
if (event.type === "mousemove" && isCursorOverReferenceOrPopper) {
|
|
836
|
-
return;
|
|
837
|
-
}
|
|
838
|
-
var popperTreeData = getNestedPopperTree().concat(popper).map(function(popper2) {
|
|
839
|
-
var _instance$popperInsta;
|
|
840
|
-
var instance2 = popper2._tippy;
|
|
841
|
-
var state2 = (_instance$popperInsta = instance2.popperInstance) == null ? void 0 : _instance$popperInsta.state;
|
|
842
|
-
if (state2) {
|
|
843
|
-
return {
|
|
844
|
-
popperRect: popper2.getBoundingClientRect(),
|
|
845
|
-
popperState: state2,
|
|
846
|
-
props
|
|
847
|
-
};
|
|
848
|
-
}
|
|
849
|
-
return null;
|
|
850
|
-
}).filter(Boolean);
|
|
851
|
-
if (isCursorOutsideInteractiveBorder(popperTreeData, event)) {
|
|
852
|
-
cleanupInteractiveMouseListeners();
|
|
853
|
-
scheduleHide(event);
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
function onMouseLeave(event) {
|
|
857
|
-
var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf("click") >= 0 && isVisibleFromClick;
|
|
858
|
-
if (shouldBail) {
|
|
859
|
-
return;
|
|
860
|
-
}
|
|
861
|
-
if (instance.props.interactive) {
|
|
862
|
-
instance.hideWithInteractivity(event);
|
|
863
|
-
return;
|
|
864
|
-
}
|
|
865
|
-
scheduleHide(event);
|
|
866
|
-
}
|
|
867
|
-
function onBlurOrFocusOut(event) {
|
|
868
|
-
if (instance.props.trigger.indexOf("focusin") < 0 && event.target !== getCurrentTarget()) {
|
|
869
|
-
return;
|
|
870
|
-
}
|
|
871
|
-
if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {
|
|
872
|
-
return;
|
|
873
|
-
}
|
|
874
|
-
scheduleHide(event);
|
|
875
|
-
}
|
|
876
|
-
function isEventListenerStopped(event) {
|
|
877
|
-
return currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf("touch") >= 0 : false;
|
|
878
|
-
}
|
|
879
|
-
function createPopperInstance() {
|
|
880
|
-
destroyPopperInstance();
|
|
881
|
-
var _instance$props2 = instance.props, popperOptions = _instance$props2.popperOptions, placement = _instance$props2.placement, offset = _instance$props2.offset, getReferenceClientRect = _instance$props2.getReferenceClientRect, moveTransition = _instance$props2.moveTransition;
|
|
882
|
-
var arrow = getIsDefaultRenderFn() ? getChildren(popper).arrow : null;
|
|
883
|
-
var computedReference = getReferenceClientRect ? {
|
|
884
|
-
getBoundingClientRect: getReferenceClientRect,
|
|
885
|
-
contextElement: getReferenceClientRect.contextElement || getCurrentTarget()
|
|
886
|
-
} : reference;
|
|
887
|
-
var tippyModifier = {
|
|
888
|
-
name: "$$tippy",
|
|
889
|
-
enabled: true,
|
|
890
|
-
phase: "beforeWrite",
|
|
891
|
-
requires: ["computeStyles"],
|
|
892
|
-
fn: function fn(_ref2) {
|
|
893
|
-
var state2 = _ref2.state;
|
|
894
|
-
if (getIsDefaultRenderFn()) {
|
|
895
|
-
var _getDefaultTemplateCh = getDefaultTemplateChildren(), box = _getDefaultTemplateCh.box;
|
|
896
|
-
["placement", "reference-hidden", "escaped"].forEach(function(attr) {
|
|
897
|
-
if (attr === "placement") {
|
|
898
|
-
box.setAttribute("data-placement", state2.placement);
|
|
899
|
-
} else {
|
|
900
|
-
if (state2.attributes.popper["data-popper-" + attr]) {
|
|
901
|
-
box.setAttribute("data-" + attr, "");
|
|
902
|
-
} else {
|
|
903
|
-
box.removeAttribute("data-" + attr);
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
});
|
|
907
|
-
state2.attributes.popper = {};
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
};
|
|
911
|
-
var modifiers = [{
|
|
912
|
-
name: "offset",
|
|
913
|
-
options: {
|
|
914
|
-
offset
|
|
915
|
-
}
|
|
916
|
-
}, {
|
|
917
|
-
name: "preventOverflow",
|
|
918
|
-
options: {
|
|
919
|
-
padding: {
|
|
920
|
-
top: 2,
|
|
921
|
-
bottom: 2,
|
|
922
|
-
left: 5,
|
|
923
|
-
right: 5
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
}, {
|
|
927
|
-
name: "flip",
|
|
928
|
-
options: {
|
|
929
|
-
padding: 5
|
|
930
|
-
}
|
|
931
|
-
}, {
|
|
932
|
-
name: "computeStyles",
|
|
933
|
-
options: {
|
|
934
|
-
adaptive: !moveTransition
|
|
935
|
-
}
|
|
936
|
-
}, tippyModifier];
|
|
937
|
-
if (getIsDefaultRenderFn() && arrow) {
|
|
938
|
-
modifiers.push({
|
|
939
|
-
name: "arrow",
|
|
940
|
-
options: {
|
|
941
|
-
element: arrow,
|
|
942
|
-
padding: 3
|
|
943
|
-
}
|
|
944
|
-
});
|
|
945
|
-
}
|
|
946
|
-
modifiers.push.apply(modifiers, (popperOptions == null ? void 0 : popperOptions.modifiers) || []);
|
|
947
|
-
instance.popperInstance = createPopper(computedReference, popper, Object.assign({}, popperOptions, {
|
|
948
|
-
placement,
|
|
949
|
-
onFirstUpdate,
|
|
950
|
-
modifiers
|
|
951
|
-
}));
|
|
952
|
-
}
|
|
953
|
-
function destroyPopperInstance() {
|
|
954
|
-
if (instance.popperInstance) {
|
|
955
|
-
instance.popperInstance.destroy();
|
|
956
|
-
instance.popperInstance = null;
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
function mount() {
|
|
960
|
-
var appendTo = instance.props.appendTo;
|
|
961
|
-
var parentNode;
|
|
962
|
-
var node = getCurrentTarget();
|
|
963
|
-
if (instance.props.interactive && appendTo === TIPPY_DEFAULT_APPEND_TO || appendTo === "parent") {
|
|
964
|
-
parentNode = node.parentNode;
|
|
965
|
-
} else {
|
|
966
|
-
parentNode = invokeWithArgsOrReturn(appendTo, [node]);
|
|
967
|
-
}
|
|
968
|
-
if (!parentNode.contains(popper)) {
|
|
969
|
-
parentNode.appendChild(popper);
|
|
970
|
-
}
|
|
971
|
-
instance.state.isMounted = true;
|
|
972
|
-
createPopperInstance();
|
|
973
|
-
if (process.env.NODE_ENV !== "production") {
|
|
974
|
-
warnWhen(instance.props.interactive && appendTo === defaultProps.appendTo && node.nextElementSibling !== popper, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", "\n\n", "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", "\n\n", "Specifying `appendTo: document.body` silences this warning, but it", "assumes you are using a focus management solution to handle", "keyboard navigation.", "\n\n", "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
function getNestedPopperTree() {
|
|
978
|
-
return arrayFrom(popper.querySelectorAll("[data-tippy-root]"));
|
|
979
|
-
}
|
|
980
|
-
function scheduleShow(event) {
|
|
981
|
-
instance.clearDelayTimeouts();
|
|
982
|
-
if (event) {
|
|
983
|
-
invokeHook("onTrigger", [instance, event]);
|
|
984
|
-
}
|
|
985
|
-
addDocumentPress();
|
|
986
|
-
var delay = getDelay(true);
|
|
987
|
-
var _getNormalizedTouchSe = getNormalizedTouchSettings(), touchValue = _getNormalizedTouchSe[0], touchDelay = _getNormalizedTouchSe[1];
|
|
988
|
-
if (currentInput.isTouch && touchValue === "hold" && touchDelay) {
|
|
989
|
-
delay = touchDelay;
|
|
990
|
-
}
|
|
991
|
-
if (delay) {
|
|
992
|
-
showTimeout = setTimeout(function() {
|
|
993
|
-
instance.show();
|
|
994
|
-
}, delay);
|
|
995
|
-
} else {
|
|
996
|
-
instance.show();
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
function scheduleHide(event) {
|
|
1000
|
-
instance.clearDelayTimeouts();
|
|
1001
|
-
invokeHook("onUntrigger", [instance, event]);
|
|
1002
|
-
if (!instance.state.isVisible) {
|
|
1003
|
-
removeDocumentPress();
|
|
1004
|
-
return;
|
|
1005
|
-
}
|
|
1006
|
-
if (instance.props.trigger.indexOf("mouseenter") >= 0 && instance.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(event.type) >= 0 && isVisibleFromClick) {
|
|
1007
|
-
return;
|
|
1008
|
-
}
|
|
1009
|
-
var delay = getDelay(false);
|
|
1010
|
-
if (delay) {
|
|
1011
|
-
hideTimeout = setTimeout(function() {
|
|
1012
|
-
if (instance.state.isVisible) {
|
|
1013
|
-
instance.hide();
|
|
1014
|
-
}
|
|
1015
|
-
}, delay);
|
|
1016
|
-
} else {
|
|
1017
|
-
scheduleHideAnimationFrame = requestAnimationFrame(function() {
|
|
1018
|
-
instance.hide();
|
|
1019
|
-
});
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
function enable() {
|
|
1023
|
-
instance.state.isEnabled = true;
|
|
1024
|
-
}
|
|
1025
|
-
function disable() {
|
|
1026
|
-
instance.hide();
|
|
1027
|
-
instance.state.isEnabled = false;
|
|
1028
|
-
}
|
|
1029
|
-
function clearDelayTimeouts() {
|
|
1030
|
-
clearTimeout(showTimeout);
|
|
1031
|
-
clearTimeout(hideTimeout);
|
|
1032
|
-
cancelAnimationFrame(scheduleHideAnimationFrame);
|
|
1033
|
-
}
|
|
1034
|
-
function setProps(partialProps) {
|
|
1035
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1036
|
-
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("setProps"));
|
|
1037
|
-
}
|
|
1038
|
-
if (instance.state.isDestroyed) {
|
|
1039
|
-
return;
|
|
1040
|
-
}
|
|
1041
|
-
invokeHook("onBeforeUpdate", [instance, partialProps]);
|
|
1042
|
-
removeListeners();
|
|
1043
|
-
var prevProps = instance.props;
|
|
1044
|
-
var nextProps = evaluateProps(reference, Object.assign({}, prevProps, removeUndefinedProps(partialProps), {
|
|
1045
|
-
ignoreAttributes: true
|
|
1046
|
-
}));
|
|
1047
|
-
instance.props = nextProps;
|
|
1048
|
-
addListeners();
|
|
1049
|
-
if (prevProps.interactiveDebounce !== nextProps.interactiveDebounce) {
|
|
1050
|
-
cleanupInteractiveMouseListeners();
|
|
1051
|
-
debouncedOnMouseMove = debounce(onMouseMove, nextProps.interactiveDebounce);
|
|
1052
|
-
}
|
|
1053
|
-
if (prevProps.triggerTarget && !nextProps.triggerTarget) {
|
|
1054
|
-
normalizeToArray(prevProps.triggerTarget).forEach(function(node) {
|
|
1055
|
-
node.removeAttribute("aria-expanded");
|
|
1056
|
-
});
|
|
1057
|
-
} else if (nextProps.triggerTarget) {
|
|
1058
|
-
reference.removeAttribute("aria-expanded");
|
|
1059
|
-
}
|
|
1060
|
-
handleAriaExpandedAttribute();
|
|
1061
|
-
handleStyles();
|
|
1062
|
-
if (onUpdate) {
|
|
1063
|
-
onUpdate(prevProps, nextProps);
|
|
1064
|
-
}
|
|
1065
|
-
if (instance.popperInstance) {
|
|
1066
|
-
createPopperInstance();
|
|
1067
|
-
getNestedPopperTree().forEach(function(nestedPopper) {
|
|
1068
|
-
requestAnimationFrame(nestedPopper._tippy.popperInstance.forceUpdate);
|
|
1069
|
-
});
|
|
1070
|
-
}
|
|
1071
|
-
invokeHook("onAfterUpdate", [instance, partialProps]);
|
|
1072
|
-
}
|
|
1073
|
-
function setContent2(content) {
|
|
1074
|
-
instance.setProps({
|
|
1075
|
-
content
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
function show() {
|
|
1079
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1080
|
-
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("show"));
|
|
1081
|
-
}
|
|
1082
|
-
var isAlreadyVisible = instance.state.isVisible;
|
|
1083
|
-
var isDestroyed = instance.state.isDestroyed;
|
|
1084
|
-
var isDisabled = !instance.state.isEnabled;
|
|
1085
|
-
var isTouchAndTouchDisabled = currentInput.isTouch && !instance.props.touch;
|
|
1086
|
-
var duration = getValueAtIndexOrReturn(instance.props.duration, 0, defaultProps.duration);
|
|
1087
|
-
if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {
|
|
1088
|
-
return;
|
|
1089
|
-
}
|
|
1090
|
-
if (getCurrentTarget().hasAttribute("disabled")) {
|
|
1091
|
-
return;
|
|
1092
|
-
}
|
|
1093
|
-
invokeHook("onShow", [instance], false);
|
|
1094
|
-
if (instance.props.onShow(instance) === false) {
|
|
1095
|
-
return;
|
|
1096
|
-
}
|
|
1097
|
-
instance.state.isVisible = true;
|
|
1098
|
-
if (getIsDefaultRenderFn()) {
|
|
1099
|
-
popper.style.visibility = "visible";
|
|
1100
|
-
}
|
|
1101
|
-
handleStyles();
|
|
1102
|
-
addDocumentPress();
|
|
1103
|
-
if (!instance.state.isMounted) {
|
|
1104
|
-
popper.style.transition = "none";
|
|
1105
|
-
}
|
|
1106
|
-
if (getIsDefaultRenderFn()) {
|
|
1107
|
-
var _getDefaultTemplateCh2 = getDefaultTemplateChildren(), box = _getDefaultTemplateCh2.box, content = _getDefaultTemplateCh2.content;
|
|
1108
|
-
setTransitionDuration([box, content], 0);
|
|
1109
|
-
}
|
|
1110
|
-
onFirstUpdate = function onFirstUpdate2() {
|
|
1111
|
-
var _instance$popperInsta2;
|
|
1112
|
-
if (!instance.state.isVisible || ignoreOnFirstUpdate) {
|
|
1113
|
-
return;
|
|
1114
|
-
}
|
|
1115
|
-
ignoreOnFirstUpdate = true;
|
|
1116
|
-
void popper.offsetHeight;
|
|
1117
|
-
popper.style.transition = instance.props.moveTransition;
|
|
1118
|
-
if (getIsDefaultRenderFn() && instance.props.animation) {
|
|
1119
|
-
var _getDefaultTemplateCh3 = getDefaultTemplateChildren(), _box = _getDefaultTemplateCh3.box, _content = _getDefaultTemplateCh3.content;
|
|
1120
|
-
setTransitionDuration([_box, _content], duration);
|
|
1121
|
-
setVisibilityState([_box, _content], "visible");
|
|
1122
|
-
}
|
|
1123
|
-
handleAriaContentAttribute();
|
|
1124
|
-
handleAriaExpandedAttribute();
|
|
1125
|
-
pushIfUnique(mountedInstances, instance);
|
|
1126
|
-
(_instance$popperInsta2 = instance.popperInstance) == null ? void 0 : _instance$popperInsta2.forceUpdate();
|
|
1127
|
-
invokeHook("onMount", [instance]);
|
|
1128
|
-
if (instance.props.animation && getIsDefaultRenderFn()) {
|
|
1129
|
-
onTransitionedIn(duration, function() {
|
|
1130
|
-
instance.state.isShown = true;
|
|
1131
|
-
invokeHook("onShown", [instance]);
|
|
1132
|
-
});
|
|
1133
|
-
}
|
|
1134
|
-
};
|
|
1135
|
-
mount();
|
|
1136
|
-
}
|
|
1137
|
-
function hide() {
|
|
1138
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1139
|
-
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hide"));
|
|
1140
|
-
}
|
|
1141
|
-
var isAlreadyHidden = !instance.state.isVisible;
|
|
1142
|
-
var isDestroyed = instance.state.isDestroyed;
|
|
1143
|
-
var isDisabled = !instance.state.isEnabled;
|
|
1144
|
-
var duration = getValueAtIndexOrReturn(instance.props.duration, 1, defaultProps.duration);
|
|
1145
|
-
if (isAlreadyHidden || isDestroyed || isDisabled) {
|
|
1146
|
-
return;
|
|
1147
|
-
}
|
|
1148
|
-
invokeHook("onHide", [instance], false);
|
|
1149
|
-
if (instance.props.onHide(instance) === false) {
|
|
1150
|
-
return;
|
|
1151
|
-
}
|
|
1152
|
-
instance.state.isVisible = false;
|
|
1153
|
-
instance.state.isShown = false;
|
|
1154
|
-
ignoreOnFirstUpdate = false;
|
|
1155
|
-
isVisibleFromClick = false;
|
|
1156
|
-
if (getIsDefaultRenderFn()) {
|
|
1157
|
-
popper.style.visibility = "hidden";
|
|
1158
|
-
}
|
|
1159
|
-
cleanupInteractiveMouseListeners();
|
|
1160
|
-
removeDocumentPress();
|
|
1161
|
-
handleStyles(true);
|
|
1162
|
-
if (getIsDefaultRenderFn()) {
|
|
1163
|
-
var _getDefaultTemplateCh4 = getDefaultTemplateChildren(), box = _getDefaultTemplateCh4.box, content = _getDefaultTemplateCh4.content;
|
|
1164
|
-
if (instance.props.animation) {
|
|
1165
|
-
setTransitionDuration([box, content], duration);
|
|
1166
|
-
setVisibilityState([box, content], "hidden");
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
handleAriaContentAttribute();
|
|
1170
|
-
handleAriaExpandedAttribute();
|
|
1171
|
-
if (instance.props.animation) {
|
|
1172
|
-
if (getIsDefaultRenderFn()) {
|
|
1173
|
-
onTransitionedOut(duration, instance.unmount);
|
|
1174
|
-
}
|
|
1175
|
-
} else {
|
|
1176
|
-
instance.unmount();
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
function hideWithInteractivity(event) {
|
|
1180
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1181
|
-
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hideWithInteractivity"));
|
|
1182
|
-
}
|
|
1183
|
-
getDocument().addEventListener("mousemove", debouncedOnMouseMove);
|
|
1184
|
-
pushIfUnique(mouseMoveListeners, debouncedOnMouseMove);
|
|
1185
|
-
debouncedOnMouseMove(event);
|
|
1186
|
-
}
|
|
1187
|
-
function unmount() {
|
|
1188
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1189
|
-
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("unmount"));
|
|
1190
|
-
}
|
|
1191
|
-
if (instance.state.isVisible) {
|
|
1192
|
-
instance.hide();
|
|
1193
|
-
}
|
|
1194
|
-
if (!instance.state.isMounted) {
|
|
1195
|
-
return;
|
|
1196
|
-
}
|
|
1197
|
-
destroyPopperInstance();
|
|
1198
|
-
getNestedPopperTree().forEach(function(nestedPopper) {
|
|
1199
|
-
nestedPopper._tippy.unmount();
|
|
1200
|
-
});
|
|
1201
|
-
if (popper.parentNode) {
|
|
1202
|
-
popper.parentNode.removeChild(popper);
|
|
1203
|
-
}
|
|
1204
|
-
mountedInstances = mountedInstances.filter(function(i) {
|
|
1205
|
-
return i !== instance;
|
|
1206
|
-
});
|
|
1207
|
-
instance.state.isMounted = false;
|
|
1208
|
-
invokeHook("onHidden", [instance]);
|
|
1209
|
-
}
|
|
1210
|
-
function destroy() {
|
|
1211
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1212
|
-
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("destroy"));
|
|
1213
|
-
}
|
|
1214
|
-
if (instance.state.isDestroyed) {
|
|
1215
|
-
return;
|
|
1216
|
-
}
|
|
1217
|
-
instance.clearDelayTimeouts();
|
|
1218
|
-
instance.unmount();
|
|
1219
|
-
removeListeners();
|
|
1220
|
-
delete reference._tippy;
|
|
1221
|
-
instance.state.isDestroyed = true;
|
|
1222
|
-
invokeHook("onDestroy", [instance]);
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
function tippy(targets, optionalProps) {
|
|
1226
|
-
if (optionalProps === void 0) {
|
|
1227
|
-
optionalProps = {};
|
|
1228
|
-
}
|
|
1229
|
-
var plugins = defaultProps.plugins.concat(optionalProps.plugins || []);
|
|
1230
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1231
|
-
validateTargets(targets);
|
|
1232
|
-
validateProps(optionalProps, plugins);
|
|
1233
|
-
}
|
|
1234
|
-
bindGlobalEventListeners();
|
|
1235
|
-
var passedProps = Object.assign({}, optionalProps, {
|
|
1236
|
-
plugins
|
|
1237
|
-
});
|
|
1238
|
-
var elements = getArrayOfElements(targets);
|
|
1239
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1240
|
-
var isSingleContentElement = isElement(passedProps.content);
|
|
1241
|
-
var isMoreThanOneReferenceElement = elements.length > 1;
|
|
1242
|
-
warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", "\n\n", "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", "\n\n", "1) content: element.innerHTML\n", "2) content: () => element.cloneNode(true)"].join(" "));
|
|
1243
|
-
}
|
|
1244
|
-
var instances = elements.reduce(function(acc, reference) {
|
|
1245
|
-
var instance = reference && createTippy(reference, passedProps);
|
|
1246
|
-
if (instance) {
|
|
1247
|
-
acc.push(instance);
|
|
1248
|
-
}
|
|
1249
|
-
return acc;
|
|
1250
|
-
}, []);
|
|
1251
|
-
return isElement(targets) ? instances[0] : instances;
|
|
1252
|
-
}
|
|
1253
|
-
tippy.defaultProps = defaultProps;
|
|
1254
|
-
tippy.setDefaultProps = setDefaultProps;
|
|
1255
|
-
tippy.currentInput = currentInput;
|
|
1256
|
-
Object.assign({}, applyStyles, {
|
|
1257
|
-
effect: function effect(_ref) {
|
|
1258
|
-
var state = _ref.state;
|
|
1259
|
-
var initialStyles = {
|
|
1260
|
-
popper: {
|
|
1261
|
-
position: state.options.strategy,
|
|
1262
|
-
left: "0",
|
|
1263
|
-
top: "0",
|
|
1264
|
-
margin: "0"
|
|
1265
|
-
},
|
|
1266
|
-
arrow: {
|
|
1267
|
-
position: "absolute"
|
|
1268
|
-
},
|
|
1269
|
-
reference: {}
|
|
1270
|
-
};
|
|
1271
|
-
Object.assign(state.elements.popper.style, initialStyles.popper);
|
|
1272
|
-
state.styles = initialStyles;
|
|
1273
|
-
if (state.elements.arrow) {
|
|
1274
|
-
Object.assign(state.elements.arrow.style, initialStyles.arrow);
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
});
|
|
1278
|
-
tippy.setDefaultProps({
|
|
1279
|
-
render
|
|
1280
|
-
});
|
|
1281
|
-
export {
|
|
1282
|
-
tippy as default
|
|
1283
|
-
};
|