|
| 1 | +import type { DetailedHTMLProps, HTMLAttributes } from "react"; |
| 2 | +import type { Button, ButtonProps } from "./button"; |
| 3 | +import type { EoActions, ActionsProps, SimpleAction } from "./actions"; |
| 4 | +import type { Link, LinkProps } from "./link"; |
| 5 | +import type { ToggleLink, ToggleLinkProps } from "./toggle-link"; |
| 6 | +import type { EoBreadcrumb } from "./breadcrumb"; |
| 7 | +import type { EoBreadcrumbItem, BreadcrumbItemProps } from "./breadcrumb-item"; |
| 8 | +import type { EoText, TextProps } from "./text"; |
| 9 | +import type { EoMenuGroup } from "./menu-group"; |
| 10 | +import type { DropdownButton, DropdownButtonProps } from "./dropdown-button"; |
| 11 | +import type { |
| 12 | + EoDropdownActions, |
| 13 | + DropdownActionsProps, |
| 14 | +} from "./dropdown-actions"; |
| 15 | +import type { EoAvatarGroup, EoAvatarGroupProps } from "./avatar-group"; |
| 16 | +import type { Tag, TagProps } from "./tag"; |
| 17 | +import type { EoAvatar, AvatarProps } from "./avatar"; |
| 18 | +import type { MenuItem, MenuComponentProps } from "./menu-item"; |
| 19 | +import type { EoSidebarSubMenu } from "./sidebar-sub-menu"; |
| 20 | +import type { Menu, MenuProps } from "./menu"; |
| 21 | +import type { List, ListProps } from "./list"; |
| 22 | +import type { Popover, PopoverProps } from "./popover"; |
| 23 | +import type { EoContextMenu, EoContextMenuProps } from "./context-menu"; |
| 24 | +import type { TagList, TagListProps } from "./tag-list"; |
| 25 | +import type { EoPageTitle, PageTitleProps } from "./page-title"; |
| 26 | +import type { EoImage, ImageListProps } from "./image"; |
| 27 | +import type { EoEasyopsAvatar, EoEasyopsAvatarProps } from "./easyops-avatar"; |
| 28 | +import type { EoMiniActions, EoMiniActionsProps } from "./mini-actions"; |
| 29 | +import type { |
| 30 | + DropdownSelect, |
| 31 | + DropdownSelectProps, |
| 32 | + DropdownSelectOption, |
| 33 | +} from "./dropdown-select"; |
| 34 | +import type { |
| 35 | + EoFrameBreadcrumb, |
| 36 | + EoFrameBreadcrumbProps, |
| 37 | +} from "./frame-breadcrumb"; |
| 38 | +import type { |
| 39 | + LoadingContainer, |
| 40 | + LoadingContainerProps, |
| 41 | +} from "./loading-container"; |
| 42 | +import type { |
| 43 | + EoBroadcastChannel, |
| 44 | + BroadcastChannelProps, |
| 45 | +} from "./broadcast-channel"; |
| 46 | +import type { |
| 47 | + EoFormatterNumber, |
| 48 | + EoFormatterNumberProps, |
| 49 | +} from "./formatter-number"; |
| 50 | +import type { |
| 51 | + EoMessageListener, |
| 52 | + EoMessageListenerProps, |
| 53 | + MessageDetail, |
| 54 | +} from "./message-listener"; |
| 55 | +import type { |
| 56 | + EoMenuItemSubMenu, |
| 57 | + EoMenuSubMenuProps, |
| 58 | +} from "./menu-item-sub-menu"; |
| 59 | +import type { EoViewport, ViewportProps } from "./viewport"; |
| 60 | +import type { Iframe, IframeProps } from "./iframe"; |
| 61 | +import type { EoAppBarWrapper, AppBarWrapperProps } from "./app-bar-wrapper"; |
| 62 | +import type { EoTooltip, ToolTipProps } from "./tooltip"; |
| 63 | +import type { EoCounterBadge, BadgeProps } from "./counter-badge"; |
| 64 | +import type { EoSidebar, EoSidebarProps } from "./sidebar"; |
| 65 | +import type { EoSidebarMenu, EoSidebarMenuProps } from "./sidebar/sidebar-menu"; |
| 66 | +import type { |
| 67 | + EoSidebarMenuGroup, |
| 68 | + EoSidebarMenuGroupProps, |
| 69 | +} from "./sidebar/sidebar-menu-group"; |
| 70 | +import type { |
| 71 | + EoSidebarMenuSubmenu, |
| 72 | + EoSidebarMenuSubmenuProps, |
| 73 | +} from "./sidebar/sidebar-menu-submenu"; |
| 74 | +import type { |
| 75 | + EoSidebarMenuItem, |
| 76 | + EoSidebarMenuItemProps, |
| 77 | +} from "./sidebar/sidebar-menu-item"; |
| 78 | + |
| 79 | +declare global { |
| 80 | + namespace JSX { |
| 81 | + interface IntrinsicElements { |
| 82 | + "eo-actions": DetailedHTMLProps<HTMLAttributes<EoActions>, EoActions> & |
| 83 | + ActionsProps & { |
| 84 | + onActionClick?: (event: CustomEvent<SimpleAction>) => void; |
| 85 | + onItemDragStart?: (event: CustomEvent<SimpleAction>) => void; |
| 86 | + onItemDragEnd?: (event: CustomEvent<SimpleAction>) => void; |
| 87 | + }; |
| 88 | + "eo-app-bar-wrapper": DetailedHTMLProps< |
| 89 | + HTMLAttributes<EoAppBarWrapper>, |
| 90 | + EoAppBarWrapper |
| 91 | + > & |
| 92 | + AppBarWrapperProps; |
| 93 | + "eo-avatar": DetailedHTMLProps<HTMLAttributes<EoAvatar>, EoAvatar> & |
| 94 | + AvatarProps; |
| 95 | + "eo-avatar-group": DetailedHTMLProps< |
| 96 | + HTMLAttributes<EoAvatarGroup>, |
| 97 | + EoAvatarGroup |
| 98 | + > & |
| 99 | + EoAvatarGroupProps; |
| 100 | + "eo-breadcrumb": DetailedHTMLProps< |
| 101 | + HTMLAttributes<EoBreadcrumb>, |
| 102 | + EoBreadcrumb |
| 103 | + >; |
| 104 | + "eo-breadcrumb-item": DetailedHTMLProps< |
| 105 | + HTMLAttributes<EoBreadcrumbItem>, |
| 106 | + EoBreadcrumbItem |
| 107 | + > & |
| 108 | + BreadcrumbItemProps; |
| 109 | + "eo-broadcast-channel": DetailedHTMLProps< |
| 110 | + HTMLAttributes<EoBroadcastChannel>, |
| 111 | + EoBroadcastChannel |
| 112 | + > & |
| 113 | + BroadcastChannelProps & { |
| 114 | + onMessage?: (event: CustomEvent<unknown>) => void; |
| 115 | + }; |
| 116 | + "eo-button": DetailedHTMLProps<HTMLAttributes<Button>, Button> & |
| 117 | + ButtonProps; |
| 118 | + "eo-context-menu": DetailedHTMLProps< |
| 119 | + HTMLAttributes<EoContextMenu>, |
| 120 | + EoContextMenu |
| 121 | + > & |
| 122 | + EoContextMenuProps & { |
| 123 | + onActionClick?: (event: CustomEvent<SimpleAction>) => void; |
| 124 | + onItemDragStart?: (event: CustomEvent<SimpleAction>) => void; |
| 125 | + onItemDragEnd?: (event: CustomEvent<SimpleAction>) => void; |
| 126 | + }; |
| 127 | + "eo-counter-badge": DetailedHTMLProps< |
| 128 | + HTMLAttributes<EoCounterBadge>, |
| 129 | + EoCounterBadge |
| 130 | + > & |
| 131 | + BadgeProps; |
| 132 | + "eo-dropdown-actions": DetailedHTMLProps< |
| 133 | + HTMLAttributes<EoDropdownActions>, |
| 134 | + EoDropdownActions |
| 135 | + > & |
| 136 | + DropdownActionsProps; |
| 137 | + "eo-dropdown-button": DetailedHTMLProps< |
| 138 | + HTMLAttributes<DropdownButton>, |
| 139 | + DropdownButton |
| 140 | + > & |
| 141 | + DropdownButtonProps; |
| 142 | + "eo-dropdown-select": DetailedHTMLProps< |
| 143 | + HTMLAttributes<DropdownSelect>, |
| 144 | + DropdownSelect |
| 145 | + > & |
| 146 | + DropdownSelectProps & { |
| 147 | + onChange?: (event: CustomEvent<DropdownSelectOption>) => void; |
| 148 | + }; |
| 149 | + "eo-easyops-avatar": DetailedHTMLProps< |
| 150 | + HTMLAttributes<EoEasyopsAvatar>, |
| 151 | + EoEasyopsAvatar |
| 152 | + > & |
| 153 | + EoEasyopsAvatarProps; |
| 154 | + "eo-formatter-number": DetailedHTMLProps< |
| 155 | + HTMLAttributes<EoFormatterNumber>, |
| 156 | + EoFormatterNumber |
| 157 | + > & |
| 158 | + EoFormatterNumberProps; |
| 159 | + "eo-frame-breadcrumb": DetailedHTMLProps< |
| 160 | + HTMLAttributes<EoFrameBreadcrumb>, |
| 161 | + EoFrameBreadcrumb |
| 162 | + > & |
| 163 | + EoFrameBreadcrumbProps; |
| 164 | + "eo-iframe": DetailedHTMLProps<HTMLAttributes<Iframe>, Iframe> & |
| 165 | + IframeProps & { |
| 166 | + onLoad?: (event: CustomEvent<void>) => void; |
| 167 | + }; |
| 168 | + "eo-image": DetailedHTMLProps<HTMLAttributes<EoImage>, EoImage> & |
| 169 | + ImageListProps; |
| 170 | + "eo-link": DetailedHTMLProps<HTMLAttributes<Link>, Link> & LinkProps; |
| 171 | + "eo-list": DetailedHTMLProps<HTMLAttributes<List>, List> & ListProps; |
| 172 | + "eo-loading-container": DetailedHTMLProps< |
| 173 | + HTMLAttributes<LoadingContainer>, |
| 174 | + LoadingContainer |
| 175 | + > & |
| 176 | + LoadingContainerProps; |
| 177 | + "eo-menu": DetailedHTMLProps<HTMLAttributes<Menu>, Menu> & MenuProps; |
| 178 | + "eo-menu-group": DetailedHTMLProps< |
| 179 | + HTMLAttributes<EoMenuGroup>, |
| 180 | + EoMenuGroup |
| 181 | + >; |
| 182 | + "eo-menu-item": DetailedHTMLProps<HTMLAttributes<MenuItem>, MenuItem> & |
| 183 | + MenuComponentProps; |
| 184 | + "eo-menu-item-sub-menu": DetailedHTMLProps< |
| 185 | + HTMLAttributes<EoMenuItemSubMenu>, |
| 186 | + EoMenuItemSubMenu |
| 187 | + > & |
| 188 | + EoMenuSubMenuProps; |
| 189 | + "eo-message-listener": DetailedHTMLProps< |
| 190 | + HTMLAttributes<EoMessageListener>, |
| 191 | + EoMessageListener |
| 192 | + > & |
| 193 | + EoMessageListenerProps & { |
| 194 | + onMessage?: (event: CustomEvent<MessageDetail>) => void; |
| 195 | + }; |
| 196 | + "eo-mini-actions": DetailedHTMLProps< |
| 197 | + HTMLAttributes<EoMiniActions>, |
| 198 | + EoMiniActions |
| 199 | + > & |
| 200 | + EoMiniActionsProps & { |
| 201 | + onActionClick?: (event: CustomEvent<SimpleAction>) => void; |
| 202 | + }; |
| 203 | + "eo-page-title": DetailedHTMLProps< |
| 204 | + HTMLAttributes<EoPageTitle>, |
| 205 | + EoPageTitle |
| 206 | + > & |
| 207 | + PageTitleProps; |
| 208 | + "eo-popover": DetailedHTMLProps<HTMLAttributes<Popover>, Popover> & |
| 209 | + PopoverProps & { |
| 210 | + onVisibleChange?: (event: CustomEvent<boolean>) => void; |
| 211 | + onBeforeVisibleChange?: (event: CustomEvent<boolean>) => void; |
| 212 | + }; |
| 213 | + "eo-sidebar": DetailedHTMLProps<HTMLAttributes<EoSidebar>, EoSidebar> & |
| 214 | + EoSidebarProps; |
| 215 | + "eo-sidebar-menu": DetailedHTMLProps< |
| 216 | + HTMLAttributes<EoSidebarMenu>, |
| 217 | + EoSidebarMenu |
| 218 | + > & |
| 219 | + EoSidebarMenuProps; |
| 220 | + "eo-sidebar-menu-group": DetailedHTMLProps< |
| 221 | + HTMLAttributes<EoSidebarMenuGroup>, |
| 222 | + EoSidebarMenuGroup |
| 223 | + > & |
| 224 | + EoSidebarMenuGroupProps; |
| 225 | + "eo-sidebar-menu-item": DetailedHTMLProps< |
| 226 | + HTMLAttributes<EoSidebarMenuItem>, |
| 227 | + EoSidebarMenuItem |
| 228 | + > & |
| 229 | + EoSidebarMenuItemProps; |
| 230 | + "eo-sidebar-menu-submenu": DetailedHTMLProps< |
| 231 | + HTMLAttributes<EoSidebarMenuSubmenu>, |
| 232 | + EoSidebarMenuSubmenu |
| 233 | + > & |
| 234 | + EoSidebarMenuSubmenuProps; |
| 235 | + "eo-sidebar-sub-menu": DetailedHTMLProps< |
| 236 | + HTMLAttributes<EoSidebarSubMenu>, |
| 237 | + EoSidebarSubMenu |
| 238 | + >; |
| 239 | + "eo-tag": DetailedHTMLProps<HTMLAttributes<Tag>, Tag> & |
| 240 | + TagProps & { |
| 241 | + onCheck?: (event: CustomEvent<TagProps>) => void; |
| 242 | + onClose?: (event: CustomEvent<TagProps>) => void; |
| 243 | + }; |
| 244 | + "eo-tag-list": DetailedHTMLProps<HTMLAttributes<TagList>, TagList> & |
| 245 | + TagListProps; |
| 246 | + "eo-text": DetailedHTMLProps<HTMLAttributes<EoText>, EoText> & TextProps; |
| 247 | + "eo-toggle-link": DetailedHTMLProps< |
| 248 | + HTMLAttributes<ToggleLink>, |
| 249 | + ToggleLink |
| 250 | + > & |
| 251 | + ToggleLinkProps; |
| 252 | + "eo-tooltip": DetailedHTMLProps<HTMLAttributes<EoTooltip>, EoTooltip> & |
| 253 | + ToolTipProps; |
| 254 | + "eo-viewport": DetailedHTMLProps<HTMLAttributes<EoViewport>, EoViewport> & |
| 255 | + ViewportProps; |
| 256 | + } |
| 257 | + } |
| 258 | +} |
0 commit comments