@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,116 @@
|
|
|
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
|
+
declare var UserAgent_DEPRECATED: {
|
|
32
|
+
/**
|
|
33
|
+
* Check if the UA is Internet Explorer.
|
|
34
|
+
*
|
|
35
|
+
*
|
|
36
|
+
* @return float|NaN Version number (if match) or NaN.
|
|
37
|
+
*/
|
|
38
|
+
ie: () => any;
|
|
39
|
+
/**
|
|
40
|
+
* Check if we're in Internet Explorer compatibility mode.
|
|
41
|
+
*
|
|
42
|
+
* @return bool true if in compatibility mode, false if
|
|
43
|
+
* not compatibility mode or not ie
|
|
44
|
+
*/
|
|
45
|
+
ieCompatibilityMode: () => any;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
|
|
48
|
+
* only need this because Skype can't handle 64-bit IE yet. We need to remove
|
|
49
|
+
* this when we don't need it -- tracked by #601957.
|
|
50
|
+
*/
|
|
51
|
+
ie64: () => any;
|
|
52
|
+
/**
|
|
53
|
+
* Check if the UA is Firefox.
|
|
54
|
+
*
|
|
55
|
+
*
|
|
56
|
+
* @return float|NaN Version number (if match) or NaN.
|
|
57
|
+
*/
|
|
58
|
+
firefox: () => any;
|
|
59
|
+
/**
|
|
60
|
+
* Check if the UA is Opera.
|
|
61
|
+
*
|
|
62
|
+
*
|
|
63
|
+
* @return float|NaN Version number (if match) or NaN.
|
|
64
|
+
*/
|
|
65
|
+
opera: () => any;
|
|
66
|
+
/**
|
|
67
|
+
* Check if the UA is WebKit.
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* @return float|NaN Version number (if match) or NaN.
|
|
71
|
+
*/
|
|
72
|
+
webkit: () => any;
|
|
73
|
+
/**
|
|
74
|
+
* For Push
|
|
75
|
+
* WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
|
|
76
|
+
*/
|
|
77
|
+
safari: () => any;
|
|
78
|
+
/**
|
|
79
|
+
* Check if the UA is a Chrome browser.
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* @return float|NaN Version number (if match) or NaN.
|
|
83
|
+
*/
|
|
84
|
+
chrome: () => any;
|
|
85
|
+
/**
|
|
86
|
+
* Check if the user is running Windows.
|
|
87
|
+
*
|
|
88
|
+
* @return bool `true' if the user's OS is Windows.
|
|
89
|
+
*/
|
|
90
|
+
windows: () => any;
|
|
91
|
+
/**
|
|
92
|
+
* Check if the user is running Mac OS X.
|
|
93
|
+
*
|
|
94
|
+
* @return float|bool Returns a float if a version number is detected,
|
|
95
|
+
* otherwise true/false.
|
|
96
|
+
*/
|
|
97
|
+
osx: () => any;
|
|
98
|
+
/**
|
|
99
|
+
* Check if the user is running Linux.
|
|
100
|
+
*
|
|
101
|
+
* @return bool `true' if the user's OS is some flavor of Linux.
|
|
102
|
+
*/
|
|
103
|
+
linux: () => any;
|
|
104
|
+
/**
|
|
105
|
+
* Check if the user is running on an iPhone or iPod platform.
|
|
106
|
+
*
|
|
107
|
+
* @return bool `true' if the user is running some flavor of the
|
|
108
|
+
* iPhone OS.
|
|
109
|
+
*/
|
|
110
|
+
iphone: () => any;
|
|
111
|
+
mobile: () => any;
|
|
112
|
+
nativeApp: () => any;
|
|
113
|
+
android: () => any;
|
|
114
|
+
ipad: () => any;
|
|
115
|
+
};
|
|
116
|
+
export default UserAgent_DEPRECATED;
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
* Checks if an event is supported in the current execution environment.
|
|
33
|
+
*
|
|
34
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
35
|
+
* `reset`, `load`, `error`, and `select`.
|
|
36
|
+
*
|
|
37
|
+
* Borrows from Modernizr.
|
|
38
|
+
*
|
|
39
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
40
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
|
41
|
+
* @return {boolean} True if the event is supported.
|
|
42
|
+
* @internal
|
|
43
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
44
|
+
*/
|
|
45
|
+
declare function isEventSupported(eventNameSuffix: any, capture?: any): boolean;
|
|
46
|
+
export default isEventSupported;
|
|
@@ -0,0 +1,139 @@
|
|
|
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
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
|
33
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
|
34
|
+
* your questions.
|
|
35
|
+
*
|
|
36
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
|
37
|
+
* like your bestest friend. * hugs *
|
|
38
|
+
*
|
|
39
|
+
* As of today, there are 4 DOM event types you can listen to:
|
|
40
|
+
*
|
|
41
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
|
42
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
|
43
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
|
44
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
|
45
|
+
*
|
|
46
|
+
* So what to do? The is the best:
|
|
47
|
+
*
|
|
48
|
+
* normalizeWheel.getEventType();
|
|
49
|
+
*
|
|
50
|
+
* In your event callback, use this code to get sane interpretation of the
|
|
51
|
+
* deltas. This code will return an object with properties:
|
|
52
|
+
*
|
|
53
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
|
54
|
+
* spinY -- " - y plane
|
|
55
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
|
56
|
+
* pixelY -- " - y plane
|
|
57
|
+
*
|
|
58
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
|
59
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
|
60
|
+
* significantly on different platforms and browsers, forgetting that you can
|
|
61
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
|
62
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
|
63
|
+
* linear speed or acceleration.
|
|
64
|
+
*
|
|
65
|
+
* This code does its best to normalize the deltas for you:
|
|
66
|
+
*
|
|
67
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
|
68
|
+
* dragged). This is super useful for zoom support where you want to
|
|
69
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
|
70
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
|
71
|
+
* resolve a single slow step on a wheel to 1.
|
|
72
|
+
*
|
|
73
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
|
74
|
+
* get the crazy differences between browsers, but at least it'll be in
|
|
75
|
+
* pixels!
|
|
76
|
+
*
|
|
77
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
|
78
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
|
79
|
+
* This matches the newer 'wheel' event.
|
|
80
|
+
*
|
|
81
|
+
* Why are there spinX, spinY (or pixels)?
|
|
82
|
+
*
|
|
83
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
|
84
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
|
85
|
+
*
|
|
86
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
|
87
|
+
*
|
|
88
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
|
89
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
|
90
|
+
* you know.
|
|
91
|
+
*
|
|
92
|
+
* Implementation info:
|
|
93
|
+
*
|
|
94
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
|
95
|
+
* average mouse:
|
|
96
|
+
*
|
|
97
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
|
98
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
|
99
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
|
100
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
|
101
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
|
102
|
+
*
|
|
103
|
+
* On the trackpad:
|
|
104
|
+
*
|
|
105
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
|
106
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
|
107
|
+
*
|
|
108
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
|
109
|
+
* also missing delta values.
|
|
110
|
+
*
|
|
111
|
+
* The 'wheel' event is more standard:
|
|
112
|
+
*
|
|
113
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
|
114
|
+
*
|
|
115
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
|
116
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
|
117
|
+
* backward compatibility with older events. Those other values help us
|
|
118
|
+
* better normalize spin speed. Example of what the browsers provide:
|
|
119
|
+
*
|
|
120
|
+
* | event.wheelDelta | event.detail
|
|
121
|
+
* ------------------+------------------+--------------
|
|
122
|
+
* Safari v5/OS X | -120 | 0
|
|
123
|
+
* Safari v5/Win7 | -120 | 0
|
|
124
|
+
* Chrome v17/OS X | -120 | 0
|
|
125
|
+
* Chrome v17/Win7 | -120 | 0
|
|
126
|
+
* IE9/Win7 | -120 | undefined
|
|
127
|
+
* Firefox v4/OS X | undefined | 1
|
|
128
|
+
* Firefox v4/Win7 | undefined | 3
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
export declare function normalizeWheel(/* object*/ event: any): {
|
|
132
|
+
spinX: number;
|
|
133
|
+
spinY: number;
|
|
134
|
+
pixelX: number;
|
|
135
|
+
pixelY: number;
|
|
136
|
+
};
|
|
137
|
+
export declare namespace normalizeWheel {
|
|
138
|
+
var getEventType: () => "wheel" | "DOMMouseScroll" | "mousewheel";
|
|
139
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface IPromiseResolver<T> {
|
|
2
|
+
/**
|
|
3
|
+
* When set, immediately resolves this resolver with the provided value.
|
|
4
|
+
*/
|
|
5
|
+
resolveValue?: T;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* This is a convenience object for creating a promise and retrieving it's resolve method for
|
|
9
|
+
* later use in resolving a situation. Very handy for making a method asynchronous.
|
|
10
|
+
*/
|
|
11
|
+
export declare class PromiseResolver<T> {
|
|
12
|
+
private resolver;
|
|
13
|
+
private rejector;
|
|
14
|
+
promise: Promise<T>;
|
|
15
|
+
/**
|
|
16
|
+
* This resolver can supersede other resolvers and hijack their ability to
|
|
17
|
+
* resolve until this resolver resolves. There is also the ability to make
|
|
18
|
+
* this resolver wait for all the child resolvers to wait before any of the
|
|
19
|
+
* resolvers can continue. These children represent the resolvers this
|
|
20
|
+
* resolver hijacked.
|
|
21
|
+
*/
|
|
22
|
+
children?: PromiseResolver<any>[];
|
|
23
|
+
/** Stores the resolution values of each child that gets resolved */
|
|
24
|
+
private childResolutions?;
|
|
25
|
+
private childResolvers?;
|
|
26
|
+
constructor(options?: IPromiseResolver<T>);
|
|
27
|
+
resolve(val: T): void;
|
|
28
|
+
reject<U>(reason: U): void;
|
|
29
|
+
/**
|
|
30
|
+
* This causes this resolver to steal the child resolver's resolve method and
|
|
31
|
+
* force the child to wait for this resolver to complete. This is similar to a
|
|
32
|
+
* cancellation pattern EXCEPT it instead continues execution for all
|
|
33
|
+
* processes waiting for a common task resolution.
|
|
34
|
+
*/
|
|
35
|
+
hijack(child: PromiseResolver<any>): void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DOMRectBounds, DOMRectPadding } from './clone-client-rect';
|
|
2
|
+
/**
|
|
3
|
+
* Calculates a ClientRect that is relative to another client rect.
|
|
4
|
+
*/
|
|
5
|
+
export declare function relativeClientRect(source?: DOMRectBounds, relativeTo?: DOMRectBounds, padding?: DOMRectPadding): DOMRectBounds;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IHoverState {
|
|
3
|
+
hovered: boolean;
|
|
4
|
+
}
|
|
5
|
+
interface IFocusState {
|
|
6
|
+
focused: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface IMosueDownState {
|
|
9
|
+
mousedown: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function controlHover<TState extends IHoverState>(component: React.Component<any, TState> & {
|
|
12
|
+
container?: React.RefObject<HTMLDivElement>;
|
|
13
|
+
}, over?: (e: React.MouseEvent) => void | boolean, out?: (e: React.MouseEvent) => void | boolean): {
|
|
14
|
+
onMouseOver: (e: React.MouseEvent) => void;
|
|
15
|
+
onMouseLeave: (e: React.MouseEvent) => void;
|
|
16
|
+
};
|
|
17
|
+
export declare function controlMouseDown<TState extends IMosueDownState>(component: React.Component<any, TState> & {
|
|
18
|
+
container?: React.RefObject<HTMLDivElement>;
|
|
19
|
+
}): {
|
|
20
|
+
onMouseDown: () => void;
|
|
21
|
+
onMouseUp: () => void;
|
|
22
|
+
onMouseOut: (e: React.MouseEvent) => void;
|
|
23
|
+
};
|
|
24
|
+
export declare function controlFocus<TState extends IFocusState>(component: React.Component<any, TState>): {
|
|
25
|
+
onFocus: () => void;
|
|
26
|
+
onBlur: () => void;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* This is a VERY thorough event propogation halt. This prevents defaults
|
|
4
|
+
* and propogation and handles native and React events.
|
|
5
|
+
*/
|
|
6
|
+
export declare function stopPropagation(e: React.MouseEvent | React.ChangeEvent | (MouseEvent & {
|
|
7
|
+
nativeEvent?: any;
|
|
8
|
+
}) | Event): boolean;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface ITemplateResults {
|
|
2
|
+
/** This is the resulting template string generated from the templating */
|
|
3
|
+
template: string;
|
|
4
|
+
/** This is the template options provided by the template. {option: num occurrences} */
|
|
5
|
+
templateProvidedOptions: Map<string, number>;
|
|
6
|
+
/**
|
|
7
|
+
* This is the template options provided by the template that were not resolved by the options parameter
|
|
8
|
+
* {option: num occurrences}
|
|
9
|
+
*/
|
|
10
|
+
unresolvedTemplateOptions: Map<string, number>;
|
|
11
|
+
/** This is the options provided to the template that did not get resolved by the template {option: 1} */
|
|
12
|
+
unresolvedProvidedOptions: Map<string, number>;
|
|
13
|
+
/** This is the list of options that DID get resolved by the options provided {option: num occurrences} */
|
|
14
|
+
resolvedTemplateOptions: Map<string, number>;
|
|
15
|
+
}
|
|
16
|
+
export interface ITemplateRequirements {
|
|
17
|
+
/** A string identifier to make it easier to identify which template template failed requirements */
|
|
18
|
+
name: string;
|
|
19
|
+
/** The options that must be present within both provided options AND within the template */
|
|
20
|
+
values: string[];
|
|
21
|
+
}
|
|
22
|
+
export interface ITemplateOptions {
|
|
23
|
+
/** Double curly brackets for template items instead of one */
|
|
24
|
+
doubleCurlyBrackets?: boolean;
|
|
25
|
+
/** This is a key value pair the template uses to match tokens found to replacement values */
|
|
26
|
+
options: {
|
|
27
|
+
[key: string]: string;
|
|
28
|
+
};
|
|
29
|
+
/** This is used to indicate which tokens are required both within the template AND within the 'options' */
|
|
30
|
+
required?: ITemplateRequirements;
|
|
31
|
+
/** This is the template written with templating information */
|
|
32
|
+
template: string;
|
|
33
|
+
/** Callback for 'required' errors being emitted */
|
|
34
|
+
onError?(msg: string): void;
|
|
35
|
+
/**
|
|
36
|
+
* Callback that allows overrides for token replacement. Provides the token found and the
|
|
37
|
+
* suggested replacement for it
|
|
38
|
+
*/
|
|
39
|
+
onToken?(token: string, replace: string): string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* This is a method that aids in making templates a bit more dynamic with simple string replacement based on
|
|
43
|
+
* tokens written into the template. Tokens in the template will appear as ${token} and will either be ignored by this
|
|
44
|
+
* method and thus removed or will be replaced with a provided value.
|
|
45
|
+
*
|
|
46
|
+
* This method will give feedback on the replacements taking place and simplify the process of detecting errors
|
|
47
|
+
* within the process.
|
|
48
|
+
*/
|
|
49
|
+
export declare function template({ template, doubleCurlyBrackets, options, required, onError, onToken, }: ITemplateOptions): ITemplateResults;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type QueryParams = Map<string, string | string[] | undefined> | Record<string, string | string[] | undefined>;
|
|
2
|
+
/**
|
|
3
|
+
* Convert a map or an object to query params to send to the server. Provide
|
|
4
|
+
* tokens to automatically replace ${tokens} in the values of params before
|
|
5
|
+
* encoding occurs.
|
|
6
|
+
*
|
|
7
|
+
* Set repeatLists to cause
|
|
8
|
+
*/
|
|
9
|
+
export declare function toQueryParams(params?: QueryParams, tokens?: Record<string, string>, excludeEmpty?: boolean, repeatLists?: boolean): string;
|
|
10
|
+
/**
|
|
11
|
+
* Loops through query params and modifies their values to replace any found
|
|
12
|
+
* ${tokens}.
|
|
13
|
+
*/
|
|
14
|
+
export declare function tokenizeQueryParams(params?: QueryParams, tokens?: Record<string, string>): QueryParams;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface for declaring a generic JSON valid object
|
|
3
|
+
*/
|
|
4
|
+
export interface IJson {
|
|
5
|
+
[x: string]: string | number | boolean | Date | IJson | IJsonArray;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Interface for declaring a generic JSON valid object
|
|
9
|
+
*/
|
|
10
|
+
export interface IJsonType {
|
|
11
|
+
[x: string]: string | number | boolean | Date | IJsonType | IJsonArray | undefined | null;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Part of the IJson declaration to make a valid JSON type.
|
|
15
|
+
*/
|
|
16
|
+
export type IJsonArray = (string | number | boolean | Date | IJson | IJsonArray)[];
|
|
17
|
+
/**
|
|
18
|
+
* This is to help establish a custom child pattern for React. The props for your react component simply needs to extend
|
|
19
|
+
* this interface.
|
|
20
|
+
*/
|
|
21
|
+
export type IChildren<T extends object> = T & {
|
|
22
|
+
children?: Partial<T>;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* This lets you define children for a component and forces the children to be declared in the props as opposed to
|
|
26
|
+
* nesting the children.
|
|
27
|
+
*/
|
|
28
|
+
export type IPropsChildren<T extends object> = T & {
|
|
29
|
+
children: never;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* This lets you define children for a component and forces the children to be nested as opposed to
|
|
33
|
+
* being declared in the props.
|
|
34
|
+
*/
|
|
35
|
+
export type INestedChildren<T> = {
|
|
36
|
+
children?: T;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* A slightly stronger type for indicating "Function". This has greater
|
|
40
|
+
* flexibility to fit into generic callbacks.
|
|
41
|
+
*/
|
|
42
|
+
export type GenericFunction<T> = (...args: any[]) => T;
|
|
43
|
+
/**
|
|
44
|
+
* This type is intended for the async operation of a "flow". A flow can have
|
|
45
|
+
* several yield statements, but are NOT for the intention of returning values
|
|
46
|
+
* to the caller, but rather for the intent of performing a mobx action that has
|
|
47
|
+
* asynchronous properties.
|
|
48
|
+
*/
|
|
49
|
+
export type FlowType = Generator<unknown, unknown, unknown> | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Typeguard for strings
|
|
52
|
+
*/
|
|
53
|
+
export declare function isString(val: any): val is string;
|
|
54
|
+
/**
|
|
55
|
+
* Typeguard for numbers
|
|
56
|
+
*/
|
|
57
|
+
export declare function isNumber(val: any): val is number;
|
|
58
|
+
/**
|
|
59
|
+
* Typeguard for booleans
|
|
60
|
+
*/
|
|
61
|
+
export declare function isBoolean(val: any): val is boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Typeguard for functions
|
|
64
|
+
*/
|
|
65
|
+
export declare function isFunction(val: any): val is Function;
|
|
66
|
+
/**
|
|
67
|
+
* Typegaurd for ensuring an element is non-null and not undefined.
|
|
68
|
+
*/
|
|
69
|
+
export declare function isDefined<T>(val: T | undefined | null): val is T;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2015 José F. Romaniello
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
export declare function urlJoin(...args: any[]): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function wait(t: number): Promise<void>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare function when<TTest, T, U>(condition: TTest | null | undefined, value: ((condition: TTest) => T) | T): T | U | undefined;
|
|
2
|
+
export declare function when<TTest, T, U>(condition: TTest | null | undefined, value: ((condition: TTest) => T) | T, otherwise: (() => U) | U): T | U;
|