@bloomreach/react-banana-ui 1.1.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +310 -0
- package/dist/bloomreach-react-banana-ui.es.js +7683 -0
- package/dist/bloomreach-react-banana-ui.es.js.map +1 -0
- package/dist/bloomreach-react-banana-ui.umd.js +52 -0
- package/dist/bloomreach-react-banana-ui.umd.js.map +1 -0
- package/dist/components/buttons/button/button.d.ts +71 -0
- package/dist/components/buttons/button/button.qa.stories.d.ts +8 -0
- package/dist/components/buttons/button/button.stories.d.ts +16 -0
- package/dist/components/buttons/button/index.d.ts +1 -0
- package/dist/components/buttons/button-group/button-group.d.ts +41 -0
- package/dist/components/buttons/button-group/button-group.stories.d.ts +9 -0
- package/dist/components/buttons/button-group/index.d.ts +2 -0
- package/dist/components/buttons/index.d.ts +4 -0
- package/dist/components/buttons/toggle-button/index.d.ts +2 -0
- package/dist/components/buttons/toggle-button/toggle-button.d.ts +75 -0
- package/dist/components/buttons/toggle-button/toggle-button.stories.d.ts +7 -0
- package/dist/components/buttons/toggle-button-group/index.d.ts +2 -0
- package/dist/components/buttons/toggle-button-group/toggle-button-group.d.ts +94 -0
- package/dist/components/buttons/toggle-button-group/toggle-button-group.stories.d.ts +8 -0
- package/dist/components/containers/dropdown/dropdown.d.ts +131 -0
- package/dist/components/containers/scroll-region/scroll-region.d.ts +106 -0
- package/dist/components/containers/scroll-view/scroll-view.d.ts +115 -0
- package/dist/components/feedback/alert/alert-title.d.ts +13 -0
- package/dist/components/feedback/alert/alert.d.ts +41 -0
- package/dist/components/feedback/alert/alert.stories.d.ts +11 -0
- package/dist/components/feedback/alert/index.d.ts +2 -0
- package/dist/components/feedback/index.d.ts +1 -0
- package/dist/components/foundations/icon/icon.d.ts +41 -0
- package/dist/components/foundations/icon/icon.qa.stories.d.ts +6 -0
- package/dist/components/foundations/icon/icon.stories.d.ts +16 -0
- package/dist/components/foundations/icon/icons/AbTestIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/AggregateIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/AnalyticsIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/AndroidIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/AnonymizeIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/AppleIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ArchiveAltIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ArchiveIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ArrowCollapseIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ArrowDownIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ArrowExpandIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ArrowKeyboardNextIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ArrowKeyboardPreviousIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ArrowKeyboardUpIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ArrowLeftIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ArrowRightIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ArrowUpIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/AxisIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/AxisLimtIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/BarChartIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/BooleanIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/BracketsCancelIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/BracketsIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/BrowserIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/BrowserPushIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CalendarAltIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CalendarIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CatalogIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ChatAddIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ChatIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ChatsIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CheckCircleIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CheckFilledIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CheckIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CheckSmallIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ChevronDownFillIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ChevronDownIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ChevronLeftFillIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ChevronLeftIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ChevronRightFillIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ChevronRightIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ChevronUpFillIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ChevronUpIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ClearFillIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ClearIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ClipboardAddIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ClockCircleIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CloneIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CloseIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CloseSmallIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CloudCheckIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CloudDownloadIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CodeIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ColorPickerAltIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ColorPickerIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ColumnsIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ConditionAltIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ConditionIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ConsoleIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ConstantAltIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ConstantIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ContextualPersonalizationIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CopyIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CopyToDashboardIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CsvIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CustomRowIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CustomerIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CustomersFilterIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/CustomersSegmentationIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/DateTimeIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/DescriptionIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/DesktopIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/DisabledIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/DivideIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/DocumentationIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/DownloadIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/DragHorizontalIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/DragVericalIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/EditIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/EducationHubIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/EllipsisVerticalIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/EllipsissHorizontalIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/EmailIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/EmojiPickerIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ErrorFillIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/EventIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/EventsSegmentationIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ExperimentIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ExposeIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ExpressionIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ExternalLinkIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/EyeCrossedIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/EyeIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/FastForwardIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/FileIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/FilterIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/FireIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/FolderEmptyIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/FolderFullIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/FormulaExpressionIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/FormulaIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/FromStartAltIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/FullscreenIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/GiftIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/GoToIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/GraphStatsIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/GridAltIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/GridIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/HelpIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/HistoryIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/HomeIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/HtmlIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ImagesIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/InfoFilledIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/InfoIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/InfoSmallIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/InternetIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/KeyIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/LayoutIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/LikeIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/LineChartIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/LinkIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ListIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/LoaderIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/LockIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/MapIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/MetricAltIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/MinusIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/MobileAppInboxIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/MobileImageMessageIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/MobilePhoneLandscapeIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/MobilePhonePortraitIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/MobilePushIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/MobileSmsIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/MobileTextMessageIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/MoveIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/NegationIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/NotificationIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/NumberIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/OfflineFillIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/OfflineIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/PaintIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ParagraphCenterAlignIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ParagraphLeftAlignIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ParagraphRightAlignIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/PercentageIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/PersAlt1Icon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/PersAlt2Icon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/PersAlt3Icon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/PersAlt4Icon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/PictureAltIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/PictureIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/PinIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/PlugPlayIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/PlusCircleFillIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/PlusCircleIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/PlusIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/PoverButtonIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/RefreshIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ReleaseNotesIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/RenameAltIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/RenameIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ReorderIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ReportIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/RetentionIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/RewertLeftIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/RewertRightIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/RibbonIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/RoadmapIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/RobotIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/RunningAggregateIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/SaveIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ScenarioIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/SearchIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/SecurityShieldIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/SendIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/SettingsAltIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/SettingsIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ShareIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ShopIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/ShrinkIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/SortIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/SplitFlowIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/SqlIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/StarFillIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/StarIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/StartFillIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/StartIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/StatusDotIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/StopIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/StopwatchIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/StringComponentIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/StringIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/SuggestionIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/SurveyIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/SwapIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/TabletLangscapeIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/TabletPortraitIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/TagAltIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/TagIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/TemplateIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/TextBoldIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/TextItalicIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/TextStyleIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/TragetIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/TransferIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/TrashIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/TrendIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/UnExposeIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/UnarchiveAltIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/UndoIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/UnlinkIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/UnlockIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/UntilNowAltIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/UploadIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/UsagesIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/UsersIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/VisualIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/VoucherIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/WaitIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/WalkthroughsIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/WarningFillIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/WebhookIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/WeblayerIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/WrenchIcon.d.ts +4 -0
- package/dist/components/foundations/icon/icons/index.d.ts +225 -0
- package/dist/components/foundations/icon/index.d.ts +3 -0
- package/dist/components/foundations/index.d.ts +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/inputs/base-field/base-field.d.ts +48 -0
- package/dist/components/inputs/base-field/generate-field-id.d.ts +4 -0
- package/dist/components/inputs/base-field/index.d.ts +2 -0
- package/dist/components/inputs/base-input/base-input.d.ts +104 -0
- package/dist/components/inputs/base-input/index.d.ts +2 -0
- package/dist/components/inputs/index.d.ts +2 -0
- package/dist/components/inputs/input-field/index.d.ts +2 -0
- package/dist/components/inputs/input-field/input-field.d.ts +119 -0
- package/dist/components/inputs/input-field/input-field.qa.stories.d.ts +13 -0
- package/dist/components/inputs/input-field/input-field.stories.d.ts +23 -0
- package/dist/components/inputs/internal.d.ts +2 -0
- package/dist/components/inputs/selection/selection.d.ts +233 -0
- package/dist/components/inputs/text-field/index.d.ts +2 -0
- package/dist/components/inputs/text-field/text-field.d.ts +138 -0
- package/dist/components/inputs/text-field/text-field.qa.stories.d.ts +14 -0
- package/dist/components/inputs/text-field/text-field.stories.d.ts +25 -0
- package/dist/components/internal.d.ts +1 -0
- package/dist/components/lists/list-view/list-view.d.ts +149 -0
- package/dist/components/loaders/loader/loader.d.ts +24 -0
- package/dist/components/navigation/index.d.ts +1 -0
- package/dist/components/navigation/pagination/index.d.ts +2 -0
- package/dist/components/navigation/pagination/pagination-config.d.ts +4 -0
- package/dist/components/navigation/pagination/pagination-context.d.ts +5 -0
- package/dist/components/navigation/pagination/pagination-items-per-page-selector.d.ts +2 -0
- package/dist/components/navigation/pagination/pagination-navigation-helpers.d.ts +11 -0
- package/dist/components/navigation/pagination/pagination-navigation-item.d.ts +6 -0
- package/dist/components/navigation/pagination/pagination-navigation.d.ts +2 -0
- package/dist/components/navigation/pagination/pagination-summary.d.ts +2 -0
- package/dist/components/navigation/pagination/pagination-types.d.ts +38 -0
- package/dist/components/navigation/pagination/pagination.d.ts +21 -0
- package/dist/components/navigation/pagination/pagination.qa.stories.d.ts +8 -0
- package/dist/components/navigation/pagination/pagination.stories.d.ts +20 -0
- package/dist/components/popovers/index.d.ts +2 -0
- package/dist/components/popovers/modal/index.d.ts +8 -0
- package/dist/components/popovers/modal/modal-body.d.ts +8 -0
- package/dist/components/popovers/modal/modal-close-button.d.ts +13 -0
- package/dist/components/popovers/modal/modal-context.d.ts +5 -0
- package/dist/components/popovers/modal/modal-footer-actions.d.ts +8 -0
- package/dist/components/popovers/modal/modal-footer.d.ts +10 -0
- package/dist/components/popovers/modal/modal-header-title.d.ts +7 -0
- package/dist/components/popovers/modal/modal-header.d.ts +9 -0
- package/dist/components/popovers/modal/modal-types.d.ts +94 -0
- package/dist/components/popovers/modal/modal.d.ts +37 -0
- package/dist/components/popovers/modal/modal.qa.stories.d.ts +10 -0
- package/dist/components/popovers/modal/modal.stories.d.ts +14 -0
- package/dist/components/popovers/tooltip/index.d.ts +2 -0
- package/dist/components/popovers/tooltip/tooltip-config.d.ts +2 -0
- package/dist/components/popovers/tooltip/tooltip.d.ts +50 -0
- package/dist/components/popovers/tooltip/tooltip.qa.stories.d.ts +8 -0
- package/dist/components/popovers/tooltip/tooltip.stories.d.ts +25 -0
- package/dist/components/types.d.ts +19 -0
- package/dist/index.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/utils/add-font.d.ts +29 -0
- package/dist/utils/after-render.d.ts +5 -0
- package/dist/utils/async-dom-render.d.ts +6 -0
- package/dist/utils/chalk.d.ts +44 -0
- package/dist/utils/chunk.d.ts +4 -0
- package/dist/utils/classnames.d.ts +6 -0
- package/dist/utils/clone-client-rect.d.ts +26 -0
- package/dist/utils/compare-client-rect.d.ts +5 -0
- package/dist/utils/compare-sets.d.ts +5 -0
- package/dist/utils/compose-refs.d.ts +5 -0
- package/dist/utils/cookie-parser.d.ts +8 -0
- package/dist/utils/copy-text-to-clipboard.d.ts +7 -0
- package/dist/utils/debounce.d.ts +4 -0
- package/dist/utils/deep-clone.d.ts +5 -0
- package/dist/utils/deep-equal.d.ts +4 -0
- package/dist/utils/ensure-modal-root.d.ts +4 -0
- package/dist/utils/event-element-position.d.ts +4 -0
- package/dist/utils/filter-react-children.d.ts +6 -0
- package/dist/utils/find-react-children.d.ts +10 -0
- package/dist/utils/flatten-array.d.ts +5 -0
- package/dist/utils/fuzzy-groups.d.ts +51 -0
- package/dist/utils/get-decimal.d.ts +8 -0
- package/dist/utils/get-error-message.d.ts +6 -0
- package/dist/utils/get-first-with-class.d.ts +5 -0
- package/dist/utils/get-index.d.ts +5 -0
- package/dist/utils/get-selected-text.d.ts +4 -0
- package/dist/utils/get-type-name.d.ts +14 -0
- package/dist/utils/group-react-children.d.ts +8 -0
- package/dist/utils/has-child.d.ts +4 -0
- package/dist/utils/hooks/index.d.ts +1 -0
- package/dist/utils/hooks/use-hover.d.ts +10 -0
- package/dist/utils/index.d.ts +43 -0
- package/dist/utils/local-storage.d.ts +42 -0
- package/dist/utils/make-buffer.d.ts +28 -0
- package/dist/utils/map-lookup-values.d.ts +65 -0
- package/dist/utils/no-op.d.ts +4 -0
- package/dist/utils/normalize-wheel/ExecutionEnvironment.d.ts +38 -0
- package/dist/utils/normalize-wheel/UserAgent_DEPRECATED.d.ts +116 -0
- package/dist/utils/normalize-wheel/index.d.ts +2 -0
- package/dist/utils/normalize-wheel/isEventSupported.d.ts +46 -0
- package/dist/utils/normalize-wheel/normalizeWheel.d.ts +139 -0
- package/dist/utils/promise-resolver.d.ts +36 -0
- package/dist/utils/relative-client-rect.d.ts +5 -0
- package/dist/utils/rush.d.ts +4 -0
- package/dist/utils/state-controls.d.ts +28 -0
- package/dist/utils/stop-all-propagation.d.ts +8 -0
- package/dist/utils/template.d.ts +49 -0
- package/dist/utils/to-digits.d.ts +4 -0
- package/dist/utils/to-query-params.d.ts +14 -0
- package/dist/utils/types.d.ts +69 -0
- package/dist/utils/url-join.d.ts +24 -0
- package/dist/utils/wait.d.ts +1 -0
- package/dist/utils/when.d.ts +2 -0
- package/package.json +117 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const chalk: {
|
|
2
|
+
cyan: (...text: string[]) => string;
|
|
3
|
+
red: (...text: string[]) => string;
|
|
4
|
+
yellow: (...text: string[]) => string;
|
|
5
|
+
green: (...text: string[]) => string;
|
|
6
|
+
blue: (...text: string[]) => string;
|
|
7
|
+
magenta: (...text: string[]) => string;
|
|
8
|
+
cyanBright: (...text: string[]) => string;
|
|
9
|
+
redBright: (...text: string[]) => string;
|
|
10
|
+
yellowBright: (...text: string[]) => string;
|
|
11
|
+
greenBright: (...text: string[]) => string;
|
|
12
|
+
blueBright: (...text: string[]) => string;
|
|
13
|
+
magentaBright: (...text: string[]) => string;
|
|
14
|
+
whiteBright: (...text: string[]) => string;
|
|
15
|
+
gray: (...text: string[]) => string;
|
|
16
|
+
grey: (...text: string[]) => string;
|
|
17
|
+
white: (...text: string[]) => string;
|
|
18
|
+
black: (...text: string[]) => string;
|
|
19
|
+
blackBright: (...text: string[]) => string;
|
|
20
|
+
bgCyan: (...text: string[]) => string;
|
|
21
|
+
bgRed: (...text: string[]) => string;
|
|
22
|
+
bgYellow: (...text: string[]) => string;
|
|
23
|
+
bgGreen: (...text: string[]) => string;
|
|
24
|
+
bgBlue: (...text: string[]) => string;
|
|
25
|
+
bgMagenta: (...text: string[]) => string;
|
|
26
|
+
bgCyanBright: (...text: string[]) => string;
|
|
27
|
+
bgRedBright: (...text: string[]) => string;
|
|
28
|
+
bgYellowBright: (...text: string[]) => string;
|
|
29
|
+
bgGreenBright: (...text: string[]) => string;
|
|
30
|
+
bgBlueBright: (...text: string[]) => string;
|
|
31
|
+
bgMagentaBright: (...text: string[]) => string;
|
|
32
|
+
cyanBrightBold: (...text: string[]) => string;
|
|
33
|
+
redBrightBold: (...text: string[]) => string;
|
|
34
|
+
yellowBrightBold: (...text: string[]) => string;
|
|
35
|
+
greenBrightBold: (...text: string[]) => string;
|
|
36
|
+
blueBrightBold: (...text: string[]) => string;
|
|
37
|
+
magentaBrightBold: (...text: string[]) => string;
|
|
38
|
+
whiteBrightBold: (...text: string[]) => string;
|
|
39
|
+
grayBrightBold: (...text: string[]) => string;
|
|
40
|
+
greyBrightBold: (...text: string[]) => string;
|
|
41
|
+
whiteBold: (...text: string[]) => string;
|
|
42
|
+
blackBold: (...text: string[]) => string;
|
|
43
|
+
blackBrightBold: (...text: string[]) => string;
|
|
44
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Padding values to grow a client rect during a client rect cloning operation.
|
|
3
|
+
*/
|
|
4
|
+
export type DOMRectPadding = {
|
|
5
|
+
left?: number;
|
|
6
|
+
top?: number;
|
|
7
|
+
bottom?: number;
|
|
8
|
+
right?: number;
|
|
9
|
+
};
|
|
10
|
+
export type DOMRectBounds = {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
top: number;
|
|
14
|
+
left: number;
|
|
15
|
+
bottom: number;
|
|
16
|
+
right: number;
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* ClientRects are a bit annoying to work around their immutability if needed.
|
|
22
|
+
* This properly makes a Mutable clone without altering the original (unless
|
|
23
|
+
* padding is specified to do a one time change of the bounds. The padding
|
|
24
|
+
* expands/contracts the box on the indicated sides).
|
|
25
|
+
*/
|
|
26
|
+
export declare function cloneClientRect(box?: DOMRectBounds, padding?: DOMRectPadding): DOMRectBounds;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses the current cookies for this application into an easier to use JSON
|
|
3
|
+
* object.
|
|
4
|
+
*
|
|
5
|
+
* If a cookie is not passed as an argument, this will parse the cookie found on
|
|
6
|
+
* the document (in browser. In Node an argument is required).
|
|
7
|
+
*/
|
|
8
|
+
export declare function cookieParser(manual?: string): Record<string, string>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The intent of this function is to provide the most reliable means to copy
|
|
3
|
+
* text to the clipboard. This provides some attempts ranging far back for older
|
|
4
|
+
* browser support and even falls back to a window prompt if everything
|
|
5
|
+
* automatic fails.
|
|
6
|
+
*/
|
|
7
|
+
export declare function copyTextToClipboard(text: string): Promise<void>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* This is a helper method to retrieve only a single type of child component
|
|
4
|
+
* from a React children list. This accounts for nested React fragments.
|
|
5
|
+
*/
|
|
6
|
+
export declare function filterReactChildren<T>(type: T | T[], children: React.ReactNode, fail?: (child: React.ReactNode) => void): React.ReactNode[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type GroupMap = Map<string | React.JSXElementConstructor<any> | React.JSXElementConstructor<any>, React.ReactNode[]>;
|
|
3
|
+
/**
|
|
4
|
+
* This is a helper method to seek out specific react children in the tree of
|
|
5
|
+
* children provided to this function. If a child is not of a type specified,
|
|
6
|
+
* this will search through it's children as well to see if any descendents
|
|
7
|
+
* match.
|
|
8
|
+
*/
|
|
9
|
+
export declare function findReactChildren(types: (string | React.JSXElementConstructor<any>)[], children: React.ReactNode): GroupMap;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Results for a fuzzyGroups query.
|
|
3
|
+
*/
|
|
4
|
+
export interface IFuzzyGroupResult {
|
|
5
|
+
/**
|
|
6
|
+
* Groupings of the fuzzy results. You can concat the text values in the order
|
|
7
|
+
* of this array to reconstruct the original text term. isMatch will be true
|
|
8
|
+
* when the fuzzy search made a match for the group.
|
|
9
|
+
*/
|
|
10
|
+
groups: {
|
|
11
|
+
isMatch: boolean;
|
|
12
|
+
text: string;
|
|
13
|
+
}[];
|
|
14
|
+
/**
|
|
15
|
+
* When true, the complete fuzzy search term is completely found within this
|
|
16
|
+
* result. Otherwise, only part or none of the fuzzy term was used.
|
|
17
|
+
*/
|
|
18
|
+
fuzzyMatch: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Indicates how much of the fuzzy term was utilized in the result. A 1 means
|
|
21
|
+
* fuzzyMatch is true. Anything less than 1 is how much less it was used
|
|
22
|
+
* within the result.
|
|
23
|
+
*/
|
|
24
|
+
fuzzyMatchStrength: number;
|
|
25
|
+
/**
|
|
26
|
+
* The original text the string was compared against
|
|
27
|
+
*/
|
|
28
|
+
text: string;
|
|
29
|
+
/**
|
|
30
|
+
* The fuzzy term that was used to compare against the text.
|
|
31
|
+
*/
|
|
32
|
+
fuzzy: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Typeguard for a fuzzy group result type
|
|
36
|
+
*/
|
|
37
|
+
export declare function isFuzzyGroupResult(val: any): val is IFuzzyGroupResult;
|
|
38
|
+
/**
|
|
39
|
+
* Returns fuzzy text matching results.
|
|
40
|
+
*
|
|
41
|
+
* This will provide the fuzzy match with the characters in the list grouped by
|
|
42
|
+
* how they match with the fuzzy text.
|
|
43
|
+
*
|
|
44
|
+
* You combine all of the group text vaues to recreate the original text input.
|
|
45
|
+
* Use the isMatch to determine if the group is a part of a match from the fuzzy
|
|
46
|
+
* input.
|
|
47
|
+
*
|
|
48
|
+
* fuzzyMatch is true when the complete fuzzy term matches items within the
|
|
49
|
+
* text. It's false if only part of the fuzzy term or none of the term matches.
|
|
50
|
+
*/
|
|
51
|
+
export declare function fuzzyGroups(text: string, fuzzy: string): IFuzzyGroupResult;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple function for getting a number up to a certain decimal. This properly
|
|
3
|
+
* returns a number to work with. This is for special formatting and should not
|
|
4
|
+
* be used for mathematical operations.
|
|
5
|
+
*
|
|
6
|
+
* This specifically rounds up the final decimal value.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getDecimal(value: number | string, decimalPlaces: number): number;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Errors can not have a type specified in the try catch clause. This makes
|
|
3
|
+
* outputting an error message safe and easier to type by doing validations
|
|
4
|
+
* necessary to get a standard error's error message or stack.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getErrorMessage(e: unknown): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* JSX types are created as strings or via function components or class
|
|
4
|
+
* components. There is an interesting issue with matching on "type" where two
|
|
5
|
+
* versions of the same library could cause matches to fail because they can
|
|
6
|
+
* bundle and point to two separate versions of the same component but be two
|
|
7
|
+
* different objects entirely.
|
|
8
|
+
*
|
|
9
|
+
* THUS: a more reliable matching approach is to check on the string "name" of
|
|
10
|
+
* the type as best as possible. This method normalizes retrieving the type name
|
|
11
|
+
* from the component by addressing the different component types that can be
|
|
12
|
+
* created and passed out.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getTypeName(type: string | React.ReactElement | React.ComponentType<any> | React.JSXElementConstructor<any> | Function): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type GroupMap = Map<string | React.JSXElementConstructor<any> | React.JSXElementConstructor<any>, React.ReactNode[]>;
|
|
3
|
+
/**
|
|
4
|
+
* This is a helper method to sort a list of react children into groups, based
|
|
5
|
+
* on their type. This accounds for nested React Fragments.
|
|
6
|
+
*/
|
|
7
|
+
export declare function groupReactChildren(children: React.ReactNode): GroupMap;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useHover } from './use-hover';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export * from './add-font';
|
|
2
|
+
export * from './after-render';
|
|
3
|
+
export * from './async-dom-render';
|
|
4
|
+
export * from './chalk';
|
|
5
|
+
export * from './chunk';
|
|
6
|
+
export * from './classnames';
|
|
7
|
+
export * from './clone-client-rect';
|
|
8
|
+
export * from './compare-client-rect';
|
|
9
|
+
export * from './compare-sets';
|
|
10
|
+
export * from './compose-refs';
|
|
11
|
+
export * from './cookie-parser';
|
|
12
|
+
export * from './copy-text-to-clipboard';
|
|
13
|
+
export * from './debounce';
|
|
14
|
+
export * from './deep-clone';
|
|
15
|
+
export * from './deep-equal';
|
|
16
|
+
export * from './ensure-modal-root';
|
|
17
|
+
export * from './event-element-position';
|
|
18
|
+
export * from './filter-react-children';
|
|
19
|
+
export * from './flatten-array';
|
|
20
|
+
export * from './fuzzy-groups';
|
|
21
|
+
export * from './get-decimal';
|
|
22
|
+
export * from './get-error-message';
|
|
23
|
+
export * from './get-first-with-class';
|
|
24
|
+
export * from './get-index';
|
|
25
|
+
export * from './get-selected-text';
|
|
26
|
+
export * from './group-react-children';
|
|
27
|
+
export * from './has-child';
|
|
28
|
+
export * from './make-buffer';
|
|
29
|
+
export * from './map-lookup-values';
|
|
30
|
+
export * from './no-op';
|
|
31
|
+
export * from './normalize-wheel';
|
|
32
|
+
export * from './promise-resolver';
|
|
33
|
+
export * from './relative-client-rect';
|
|
34
|
+
export * from './rush';
|
|
35
|
+
export * from './state-controls';
|
|
36
|
+
export * from './stop-all-propagation';
|
|
37
|
+
export * from './template';
|
|
38
|
+
export * from './to-digits';
|
|
39
|
+
export * from './to-query-params';
|
|
40
|
+
export * from './types';
|
|
41
|
+
export * from './url-join';
|
|
42
|
+
export * from './wait';
|
|
43
|
+
export * from './when';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IJson } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieve a number from local storage. If the identifier is NOT a number OR is
|
|
4
|
+
* not a data type stored using this system it will merely return void.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getStorageNumber(id: string): number | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve a string from local storage.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getStorageString(id: string): string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves a JSON object from local storage. If the identifier is NOT a JSON
|
|
13
|
+
* object, this will return void;
|
|
14
|
+
*/
|
|
15
|
+
export declare function getStorageObject(id: string): IJson | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve a boolean from local storage. If the item does not exist this will
|
|
18
|
+
* return false.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getStorageBoolean(id: string): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Apply a number to local storage. If a different data type exists for the
|
|
23
|
+
* given identifier that is already set, this will return false. Set override to
|
|
24
|
+
* true to force setting the value regardless of previous value.
|
|
25
|
+
*/
|
|
26
|
+
export declare function setStorageNumber(id: string, val: number, override?: boolean): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Apply a string from local storage. This will always override the current
|
|
29
|
+
* value regardless of type as it's not easy to determine if a string or a
|
|
30
|
+
* number was put into the
|
|
31
|
+
*/
|
|
32
|
+
export declare function setStorageString(id: string, val: string, override?: boolean): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Applys a JSON object from local storage. If the identifier is NOT a JSON
|
|
35
|
+
* object, this will return void;
|
|
36
|
+
*/
|
|
37
|
+
export declare function setStorageObject(id: string, val: IJson, override?: boolean): IJson | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Apply a boolean from local storage. If the item does not exist this will
|
|
40
|
+
* return false.
|
|
41
|
+
*/
|
|
42
|
+
export declare function setStorageBoolean(id: string, val: boolean, override?: boolean): boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This static class provides a utility for creating an array buffer and mapping
|
|
3
|
+
* it's values to an initial value or simply create an initial array that is
|
|
4
|
+
* iterable.
|
|
5
|
+
*
|
|
6
|
+
* Purpose: This utility was created to get around issues with default JS means
|
|
7
|
+
* of generating arrays. All of the "native" means are incredibly slow and have
|
|
8
|
+
* issues with creating double instances of arrays or doing multiple iterations
|
|
9
|
+
* across the size of the array.
|
|
10
|
+
*
|
|
11
|
+
* This ensures a single allocation and a single iteration of the array which is
|
|
12
|
+
* optimal. Currently, these methods beat the normal native means significantly.
|
|
13
|
+
*/
|
|
14
|
+
export declare class MakeBuffer {
|
|
15
|
+
/**
|
|
16
|
+
* Create and fill a buffer with intiial values.
|
|
17
|
+
*/
|
|
18
|
+
static map<T>(size: number, map: (index: number) => T): T[];
|
|
19
|
+
/**
|
|
20
|
+
* Create a buffer with initial values applied.
|
|
21
|
+
*/
|
|
22
|
+
static init<T>(size: number, initialValue: T): T[];
|
|
23
|
+
/**
|
|
24
|
+
* Creates a buffer that begins at the provided value and ends exclusive of
|
|
25
|
+
* the end value. You can provide a step value to increase the buffer by.
|
|
26
|
+
*/
|
|
27
|
+
static range(start: number, end: number, step?: number): number[];
|
|
28
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A special type that allows deep nesting of identifiers before ultimately
|
|
3
|
+
* landing on a specific type at the leaves of the object.
|
|
4
|
+
*/
|
|
5
|
+
export type Lookup<T> = {
|
|
6
|
+
[key: string]: T | Lookup<T>;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* A special type that allows deep nesting of identifiers before ultimately
|
|
10
|
+
* landing on a specific type at the leaves of the Map.
|
|
11
|
+
*/
|
|
12
|
+
export type LookupMap<T> = Map<string, T | LookupMap<T>>;
|
|
13
|
+
/**
|
|
14
|
+
* Using a list of keys, this injects a value deeply into a Map object as a tree
|
|
15
|
+
* structure.
|
|
16
|
+
*/
|
|
17
|
+
export declare function deepInjectMap<T>(key: string[], target: LookupMap<T>, value: T): LookupMap<T> | null;
|
|
18
|
+
/**
|
|
19
|
+
* Using a list of keys, this retrieves a value deeply from a Map object that
|
|
20
|
+
* has a tree structure.
|
|
21
|
+
*/
|
|
22
|
+
export declare function deepGet<T>(key: string[], target: LookupMap<T>): LookupMap<T> | T | undefined;
|
|
23
|
+
export type LookupNode<T> = {
|
|
24
|
+
id: string[];
|
|
25
|
+
data: T[];
|
|
26
|
+
children: LookupNode<T>[];
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Flattened node structure. This provides some indexing numbers to aid in
|
|
30
|
+
* looping through the flatened structure.
|
|
31
|
+
*
|
|
32
|
+
* next sibling and parent index is -1 when there is no sibling or parent.
|
|
33
|
+
*
|
|
34
|
+
* [depth, node, parent index, next sibling]
|
|
35
|
+
*/
|
|
36
|
+
export type FlattenedLookupNode<T> = [
|
|
37
|
+
number,
|
|
38
|
+
T | LookupNode<T>,
|
|
39
|
+
number,
|
|
40
|
+
number
|
|
41
|
+
][];
|
|
42
|
+
/**
|
|
43
|
+
* Converts a Map tree structure into Nodes.
|
|
44
|
+
*
|
|
45
|
+
* TODO: don't use recursion. This is the quick way to implement. This will
|
|
46
|
+
* crash on circular map dependency.
|
|
47
|
+
*/
|
|
48
|
+
export declare function mapToNodes<T extends {
|
|
49
|
+
nodeId?: string[];
|
|
50
|
+
}>(map: LookupMap<T>, nodeComplete?: (node: LookupNode<T>) => void, id?: string[]): LookupNode<T>;
|
|
51
|
+
/**
|
|
52
|
+
* Flattens a LookupNode to a simple list with
|
|
53
|
+
*/
|
|
54
|
+
export declare function flattenNodeData<T>(node: LookupNode<T>, depth?: number, parentIndex?: number, out?: FlattenedLookupNode<T>): FlattenedLookupNode<T>;
|
|
55
|
+
/**
|
|
56
|
+
* Converts an object Lookup to a LookupMap
|
|
57
|
+
*
|
|
58
|
+
* TODO: Don't use recursion
|
|
59
|
+
*/
|
|
60
|
+
export declare function makeLookupMap<T>(lookup: Lookup<T>, typeGuard: (value: any) => value is T): LookupMap<T>;
|
|
61
|
+
/**
|
|
62
|
+
* A very tricky method that maps a Lookup (dictionary with nested keys) to
|
|
63
|
+
* values found in the leaves of the tree of the object.
|
|
64
|
+
*/
|
|
65
|
+
export declare function mapLookupValues<T, U>(label: string, typeGuard: (value: T | Lookup<T>) => value is T, lookup: Lookup<T>, callback: (key: string[], value: T) => U): U[];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
BSD License
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2015, Facebook, Inc. All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
7
|
+
are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
* Neither the name Facebook nor the names of its contributors may be used to
|
|
17
|
+
endorse or promote products derived from this software without specific
|
|
18
|
+
prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
21
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
22
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
24
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
25
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
26
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
27
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
28
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
29
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Simple, lightweight module assisting with the detection and context of
|
|
33
|
+
* Worker. Helps avoid circular dependencies and allows code to reason about
|
|
34
|
+
* whether or not they are in a Worker, even if they never include the main
|
|
35
|
+
* `ReactWorker` dependency.
|
|
36
|
+
*/
|
|
37
|
+
declare var ExecutionEnvironment: any;
|
|
38
|
+
export default ExecutionEnvironment;
|