@consta/header 3.0.1 → 3.1.0

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.
Files changed (82) hide show
  1. package/__internal__/src/components/ButtonMenu/helpers.d.ts +10 -11
  2. package/__internal__/src/components/ButtonMenu/types.d.ts +2 -3
  3. package/__internal__/src/components/ButtonMenu/types.js.map +1 -1
  4. package/__internal__/src/components/Layout/Layout.d.ts +1 -1
  5. package/__internal__/src/components/Layout/LayoutRow/LayoutRow.d.ts +1 -1
  6. package/__internal__/src/components/Layout/LayoutRow/LayoutRow.js.map +1 -1
  7. package/__internal__/src/components/Layout/types.d.ts +1 -1
  8. package/__internal__/src/components/Layout/types.js.map +1 -1
  9. package/__internal__/src/components/MegaMenu/MegaMenu.d.ts +1 -1
  10. package/__internal__/src/components/MegaMenu/MegaMenuBannerBar/helpers.d.ts +103 -97
  11. package/__internal__/src/components/MegaMenu/MegaMenuBannerBar/types.d.ts +3 -3
  12. package/__internal__/src/components/MegaMenu/MegaMenuBannerBar/types.js.map +1 -1
  13. package/__internal__/src/components/MegaMenu/MegaMenuBox/MegaMenuBox.d.ts +1 -1
  14. package/__internal__/src/components/MegaMenu/MegaMenuBox/MegaMenuBox.js.map +1 -1
  15. package/__internal__/src/components/MegaMenu/MegaMenuBox/types.d.ts +1 -2
  16. package/__internal__/src/components/MegaMenu/MegaMenuBox/types.js.map +1 -1
  17. package/__internal__/src/components/MegaMenu/MegaMenuGlobal/helper.d.ts +106 -100
  18. package/__internal__/src/components/MegaMenu/MegaMenuGlobal/types.d.ts +4 -4
  19. package/__internal__/src/components/MegaMenu/MegaMenuGlobal/types.js.map +1 -1
  20. package/__internal__/src/components/MegaMenu/MegaMenuNavBar/helper.d.ts +14 -5
  21. package/__internal__/src/components/MegaMenu/MegaMenuNavBar/types.d.ts +3 -3
  22. package/__internal__/src/components/MegaMenu/MegaMenuNavBar/types.js.map +1 -1
  23. package/__internal__/src/components/MegaMenu/helper.d.ts +108 -102
  24. package/__internal__/src/components/MegaMenu/types.d.ts +2 -2
  25. package/__internal__/src/components/MegaMenu/types.js.map +1 -1
  26. package/__internal__/src/components/Menu/Menu.js +1 -1
  27. package/__internal__/src/components/Menu/Menu.js.map +1 -1
  28. package/__internal__/src/components/Menu/helpers.d.ts +10 -10
  29. package/__internal__/src/components/Menu/types.d.ts +3 -3
  30. package/__internal__/src/components/Menu/types.js.map +1 -1
  31. package/__internal__/src/components/MobileMenu/types.d.ts +3 -3
  32. package/__internal__/src/components/MobileMenu/types.js.map +1 -1
  33. package/__internal__/src/components/Navbar/Navbar.d.ts +1 -0
  34. package/__internal__/src/components/Navbar/Navbar.js +1 -1
  35. package/__internal__/src/components/Navbar/Navbar.js.map +1 -1
  36. package/__internal__/src/components/Navbar/NavbarArrow/NavbarArrow.d.ts +1 -1
  37. package/__internal__/src/components/Navbar/NavbarItem/NavbarItem.d.ts +21 -0
  38. package/__internal__/src/components/Navbar/NavbarItem/NavbarItem.js +1 -1
  39. package/__internal__/src/components/Navbar/NavbarItem/NavbarItem.js.map +1 -1
  40. package/__internal__/src/components/Navbar/NavbarRail/NavbarRail.js +1 -1
  41. package/__internal__/src/components/Navbar/NavbarRail/NavbarRail.js.map +1 -1
  42. package/__internal__/src/components/Navbar/NavbarRailItem/NavbarRailItem.d.ts +14 -1
  43. package/__internal__/src/components/Navbar/NavbarRailItem/NavbarRailItem.js +1 -1
  44. package/__internal__/src/components/Navbar/NavbarRailItem/NavbarRailItem.js.map +1 -1
  45. package/__internal__/src/components/Navbar/helpers.d.ts +11 -10
  46. package/__internal__/src/components/Navbar/types.d.ts +13 -4
  47. package/__internal__/src/components/Navbar/types.js.map +1 -1
  48. package/__internal__/src/components/Notifications/NotificationsActions/helpers.d.ts +4 -5
  49. package/__internal__/src/components/Notifications/NotificationsActions/types.d.ts +2 -3
  50. package/__internal__/src/components/Notifications/NotificationsActions/types.js.map +1 -1
  51. package/__internal__/src/components/Notifications/NotificationsItem/NotificationsItem.d.ts +1 -1
  52. package/__internal__/src/components/Notifications/NotificationsItem/types.d.ts +1 -1
  53. package/__internal__/src/components/Notifications/NotificationsItem/types.js.map +1 -1
  54. package/__internal__/src/components/Notifications/NotificationsItemFooter/types.d.ts +1 -1
  55. package/__internal__/src/components/Notifications/NotificationsItemFooter/types.js.map +1 -1
  56. package/__internal__/src/components/Notifications/NotificationsList/helpers.d.ts +3 -60
  57. package/__internal__/src/components/Notifications/NotificationsList/types.d.ts +2 -3
  58. package/__internal__/src/components/Notifications/NotificationsList/types.js.map +1 -1
  59. package/__internal__/src/components/Notifications/types.d.ts +2 -3
  60. package/__internal__/src/components/Notifications/types.js.map +1 -1
  61. package/__internal__/src/components/PopoverButton/PopoverButton.d.ts +1 -1
  62. package/__internal__/src/components/SelectMenu/helpers.d.ts +6 -7
  63. package/__internal__/src/components/SelectMenu/types.d.ts +2 -3
  64. package/__internal__/src/components/SelectMenu/types.js.map +1 -1
  65. package/__internal__/src/components/Sidebar/Sidebar.d.ts +1 -1
  66. package/__internal__/src/components/TileMenu/TileMenuItem/types.d.ts +0 -1
  67. package/__internal__/src/components/TileMenu/TileMenuList/helpers.d.ts +1 -2
  68. package/__internal__/src/components/TileMenu/TileMenuList/types.d.ts +2 -3
  69. package/__internal__/src/components/TileMenu/TileMenuList/types.js.map +1 -1
  70. package/__internal__/src/components/TileMenu/types.d.ts +2 -3
  71. package/__internal__/src/components/TileMenu/types.js.map +1 -1
  72. package/__internal__/src/components/VerticalMenu/helpers.d.ts +3 -4
  73. package/__internal__/src/components/VerticalMenu/types.d.ts +4 -4
  74. package/__internal__/src/components/VerticalMenu/types.js.map +1 -1
  75. package/__internal__/src/helpers/getItemClick.d.ts +1 -2
  76. package/package.json +6 -3
  77. package/__internal__/src/components/Navbar/NavbarItem/NavbarDrawer.d.ts +0 -2
  78. package/__internal__/src/components/Navbar/NavbarItem/NavbarDrawer.js +0 -2
  79. package/__internal__/src/components/Navbar/NavbarItem/NavbarDrawer.js.map +0 -1
  80. package/__internal__/src/utils/types/PropsWithHTMLAttributes.d.ts +0 -3
  81. package/__internal__/src/utils/types/PropsWithHTMLAttributes.js +0 -2
  82. package/__internal__/src/utils/types/PropsWithHTMLAttributes.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../../../../../src/components/Notifications/NotificationsList/types.ts"],"sourcesContent":["import { IconProps } from '@consta/icons/Icon';\n\nimport { PropsWithHTMLAttributesAndRef } from '##/utils/types/PropsWithHTMLAttributes';\n\nimport {\n NotificationsItemAction,\n NotificationsItemBadge,\n} from '../NotificationsItem';\n\nexport type NotificationsListDefaultGroup = {\n label: string;\n id: string;\n};\n\nexport type NotificationsListDefaultItem = {\n label: string;\n description?: string;\n image?: string;\n read?: boolean;\n date?: Date;\n badges?: NotificationsItemBadge[];\n actions?: NotificationsItemAction[];\n onClick?: React.EventHandler<React.MouseEvent>;\n group?: string;\n view?: 'default' | 'user';\n};\n\nexport type NotificationsListPropGetItemLabel<ITEM> = (item: ITEM) => string;\nexport type NotificationsListPropGetItemDescription<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type NotificationsListPropGetItemImage<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type NotificationsListPropGetItemRead<ITEM> = (\n item: ITEM,\n) => boolean | undefined;\nexport type NotificationsListPropGetItemDate<ITEM> = (\n item: ITEM,\n) => Date | undefined;\nexport type NotificationsListPropGetItemBadges<ITEM> = (\n item: ITEM,\n) => NotificationsItemBadge[] | undefined;\nexport type NotificationsListPropGetItemActions<ITEM> = (\n item: ITEM,\n) => NotificationsItemAction[] | undefined;\nexport type NotificationsListPropGetItemGroup<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type NotificationsListPropGetItemView<ITEM> = (\n item: ITEM,\n) => 'default' | 'user' | undefined;\nexport type NotificationsListPropItemDateFormat = (date: Date) => string;\n\nexport type NotificationsListPropGetActionLabel<ACTION> = (\n action: ACTION,\n) => string;\nexport type NotificationsListPropGetActionIcon<ACTION> = (\n action: ACTION,\n) => React.FC<IconProps> | undefined;\nexport type NotificationsListPropGetActionOnClick<ACTION> = (\n action: ACTION,\n) => React.EventHandler<React.MouseEvent> | undefined;\n\nexport type NotificationsListPropGetGroupLabel<GROUP> = (\n group: GROUP,\n) => string;\nexport type NotificationsListPropGetGroupId<GROUP> = (\n group: GROUP,\n) => string | number;\n\nexport type NotificationsListPropGroupLabelFormat<GROUP_BY_DAY> =\n GROUP_BY_DAY extends true ? (timestamp: number) => string : never;\n\nexport type Props<ITEM, GROUP, ACTION, GROUP_BY_DAY extends boolean> = {\n children?: never;\n items: ITEM[];\n itemDateFormat?: NotificationsListPropItemDateFormat;\n title?: string;\n actions?: ACTION[];\n getItemLabel?: NotificationsListPropGetItemLabel<ITEM>;\n getItemDescription?: NotificationsListPropGetItemDescription<ITEM>;\n getItemImage?: NotificationsListPropGetItemImage<ITEM>;\n getItemRead?: NotificationsListPropGetItemRead<ITEM>;\n getItemDate?: NotificationsListPropGetItemDate<ITEM>;\n getItemBadges?: NotificationsListPropGetItemBadges<ITEM>;\n getItemActions?: NotificationsListPropGetItemActions<ITEM>;\n getItemGroup?: NotificationsListPropGetItemGroup<ITEM>;\n getItemView?: NotificationsListPropGetItemView<ITEM>;\n getActionLabel?: NotificationsListPropGetActionLabel<ACTION>;\n getActionIcon?: NotificationsListPropGetActionIcon<ACTION>;\n getActionOnClick?: NotificationsListPropGetActionOnClick<ACTION>;\n getGroupLabel?: NotificationsListPropGetGroupLabel<GROUP>;\n getGroupId?: NotificationsListPropGetGroupId<GROUP>;\n groupByDay?: GROUP_BY_DAY;\n groupLabelFormat?: NotificationsListPropGroupLabelFormat<GROUP_BY_DAY>;\n groups?: GROUP_BY_DAY extends true ? never : GROUP[];\n onClose?: React.EventHandler<React.MouseEvent>;\n} & (ACTION extends { label: NotificationsItemAction['label'] }\n ? {}\n : { getActionLabel: NotificationsListPropGetItemActions<ACTION> }) &\n (GROUP extends { label: NotificationsListDefaultGroup['label'] }\n ? {}\n : { getGroupLabel: NotificationsListPropGetGroupLabel<GROUP> }) &\n (GROUP extends { id: NotificationsListDefaultGroup['id'] }\n ? {}\n : { getGroupId: NotificationsListPropGetGroupId<GROUP> }) &\n (ITEM extends { label: NotificationsListDefaultItem['label'] }\n ? {}\n : { getItemLabel: NotificationsListPropGetItemLabel<ITEM> });\n\nexport type NotificationsListProps<\n ITEM = NotificationsListDefaultItem,\n GROUP = NotificationsListDefaultGroup,\n ACTION = NotificationsItemAction,\n GROUP_BY_DAY extends boolean = false,\n> = PropsWithHTMLAttributesAndRef<\n Props<ITEM, GROUP, ACTION, GROUP_BY_DAY>,\n HTMLDivElement\n>;\n\nexport type NotificationsListComponent = <\n ITEM = NotificationsListDefaultItem,\n GROUP = NotificationsListDefaultGroup,\n ACTION = NotificationsItemAction,\n GROUP_BY_DAY extends boolean = false,\n>(\n props: NotificationsListProps<ITEM, GROUP, ACTION, GROUP_BY_DAY>,\n) => React.ReactElement | null;\n"],"mappings":""}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../../../../../src/components/Notifications/NotificationsList/types.ts"],"sourcesContent":["import { IconProps } from '@consta/icons/Icon';\nimport { PropsWithHTMLAttributesAndRef } from '@consta/uikit/__internal__/src/utils/types/PropsWithHTMLAttributes';\n\nimport {\n NotificationsItemAction,\n NotificationsItemBadge,\n} from '../NotificationsItem';\n\nexport type NotificationsListDefaultGroup = {\n label: string;\n id: string;\n};\n\nexport type NotificationsListDefaultItem = {\n label: string;\n description?: string;\n image?: string;\n read?: boolean;\n date?: Date;\n badges?: NotificationsItemBadge[];\n actions?: NotificationsItemAction[];\n onClick?: React.EventHandler<React.MouseEvent>;\n group?: string;\n view?: 'default' | 'user';\n};\n\nexport type NotificationsListPropGetItemLabel<ITEM> = (item: ITEM) => string;\nexport type NotificationsListPropGetItemDescription<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type NotificationsListPropGetItemImage<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type NotificationsListPropGetItemRead<ITEM> = (\n item: ITEM,\n) => boolean | undefined;\nexport type NotificationsListPropGetItemDate<ITEM> = (\n item: ITEM,\n) => Date | undefined;\nexport type NotificationsListPropGetItemBadges<ITEM> = (\n item: ITEM,\n) => NotificationsItemBadge[] | undefined;\nexport type NotificationsListPropGetItemActions<ITEM> = (\n item: ITEM,\n) => NotificationsItemAction[] | undefined;\nexport type NotificationsListPropGetItemGroup<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type NotificationsListPropGetItemView<ITEM> = (\n item: ITEM,\n) => 'default' | 'user' | undefined;\nexport type NotificationsListPropItemDateFormat = (date: Date) => string;\n\nexport type NotificationsListPropGetActionLabel<ACTION> = (\n action: ACTION,\n) => string;\nexport type NotificationsListPropGetActionIcon<ACTION> = (\n action: ACTION,\n) => React.FC<IconProps> | undefined;\nexport type NotificationsListPropGetActionOnClick<ACTION> = (\n action: ACTION,\n) => React.EventHandler<React.MouseEvent> | undefined;\n\nexport type NotificationsListPropGetGroupLabel<GROUP> = (\n group: GROUP,\n) => string;\nexport type NotificationsListPropGetGroupId<GROUP> = (\n group: GROUP,\n) => string | number;\n\nexport type NotificationsListPropGroupLabelFormat<GROUP_BY_DAY> =\n GROUP_BY_DAY extends true ? (timestamp: number) => string : never;\n\nexport type Props<ITEM, GROUP, ACTION, GROUP_BY_DAY extends boolean> = {\n children?: never;\n items: ITEM[];\n itemDateFormat?: NotificationsListPropItemDateFormat;\n title?: string;\n actions?: ACTION[];\n getItemLabel?: NotificationsListPropGetItemLabel<ITEM>;\n getItemDescription?: NotificationsListPropGetItemDescription<ITEM>;\n getItemImage?: NotificationsListPropGetItemImage<ITEM>;\n getItemRead?: NotificationsListPropGetItemRead<ITEM>;\n getItemDate?: NotificationsListPropGetItemDate<ITEM>;\n getItemBadges?: NotificationsListPropGetItemBadges<ITEM>;\n getItemActions?: NotificationsListPropGetItemActions<ITEM>;\n getItemGroup?: NotificationsListPropGetItemGroup<ITEM>;\n getItemView?: NotificationsListPropGetItemView<ITEM>;\n getActionLabel?: NotificationsListPropGetActionLabel<ACTION>;\n getActionIcon?: NotificationsListPropGetActionIcon<ACTION>;\n getActionOnClick?: NotificationsListPropGetActionOnClick<ACTION>;\n getGroupLabel?: NotificationsListPropGetGroupLabel<GROUP>;\n getGroupId?: NotificationsListPropGetGroupId<GROUP>;\n groupByDay?: GROUP_BY_DAY;\n groupLabelFormat?: NotificationsListPropGroupLabelFormat<GROUP_BY_DAY>;\n groups?: GROUP_BY_DAY extends true ? never : GROUP[];\n onClose?: React.EventHandler<React.MouseEvent>;\n} & (ACTION extends { label: NotificationsItemAction['label'] }\n ? {}\n : { getActionLabel: NotificationsListPropGetItemActions<ACTION> }) &\n (GROUP extends { label: NotificationsListDefaultGroup['label'] }\n ? {}\n : { getGroupLabel: NotificationsListPropGetGroupLabel<GROUP> }) &\n (GROUP extends { id: NotificationsListDefaultGroup['id'] }\n ? {}\n : { getGroupId: NotificationsListPropGetGroupId<GROUP> }) &\n (ITEM extends { label: NotificationsListDefaultItem['label'] }\n ? {}\n : { getItemLabel: NotificationsListPropGetItemLabel<ITEM> });\n\nexport type NotificationsListProps<\n ITEM = NotificationsListDefaultItem,\n GROUP = NotificationsListDefaultGroup,\n ACTION = NotificationsItemAction,\n GROUP_BY_DAY extends boolean = false,\n> = PropsWithHTMLAttributesAndRef<\n Props<ITEM, GROUP, ACTION, GROUP_BY_DAY>,\n HTMLDivElement\n>;\n\nexport type NotificationsListComponent = <\n ITEM = NotificationsListDefaultItem,\n GROUP = NotificationsListDefaultGroup,\n ACTION = NotificationsItemAction,\n GROUP_BY_DAY extends boolean = false,\n>(\n props: NotificationsListProps<ITEM, GROUP, ACTION, GROUP_BY_DAY>,\n) => React.ReactNode;\n"],"mappings":""}
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
- import { PropsWithHTMLAttributesAndRef } from "../../utils/types/PropsWithHTMLAttributes";
1
+ import { PropsWithHTMLAttributesAndRef } from '@consta/uikit/__internal__/src/utils/types/PropsWithHTMLAttributes';
3
2
  import { NotificationsItemAction } from './NotificationsItem';
4
3
  import { NotificationsListDefaultGroup, NotificationsListDefaultItem, Props } from './NotificationsList';
5
4
  export type NotificationsProps<ITEM = NotificationsListDefaultItem, GROUP = NotificationsListDefaultGroup, ACTION = NotificationsItemAction, GROUP_BY_DAY extends boolean = false> = PropsWithHTMLAttributesAndRef<Omit<Props<ITEM, GROUP, ACTION, GROUP_BY_DAY>, 'onClose'> & {
6
5
  listClassName?: string;
7
6
  isMobile?: boolean;
8
7
  }, HTMLButtonElement>;
9
- export type NotificationsComponent = <ITEM = NotificationsListDefaultItem, GROUP = NotificationsListDefaultGroup, ACTION = NotificationsItemAction, GROUP_BY_DAY extends boolean = false>(props: NotificationsProps<ITEM, GROUP, ACTION, GROUP_BY_DAY>) => React.ReactElement | null;
8
+ export type NotificationsComponent = <ITEM = NotificationsListDefaultItem, GROUP = NotificationsListDefaultGroup, ACTION = NotificationsItemAction, GROUP_BY_DAY extends boolean = false>(props: NotificationsProps<ITEM, GROUP, ACTION, GROUP_BY_DAY>) => React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../../../../src/components/Notifications/types.ts"],"sourcesContent":["import { PropsWithHTMLAttributesAndRef } from '##/utils/types/PropsWithHTMLAttributes';\n\nimport { NotificationsItemAction } from './NotificationsItem';\nimport {\n NotificationsListDefaultGroup,\n NotificationsListDefaultItem,\n Props,\n} from './NotificationsList';\n\nexport type NotificationsProps<\n ITEM = NotificationsListDefaultItem,\n GROUP = NotificationsListDefaultGroup,\n ACTION = NotificationsItemAction,\n GROUP_BY_DAY extends boolean = false,\n> = PropsWithHTMLAttributesAndRef<\n Omit<Props<ITEM, GROUP, ACTION, GROUP_BY_DAY>, 'onClose'> & {\n listClassName?: string;\n isMobile?: boolean;\n },\n HTMLButtonElement\n>;\n\nexport type NotificationsComponent = <\n ITEM = NotificationsListDefaultItem,\n GROUP = NotificationsListDefaultGroup,\n ACTION = NotificationsItemAction,\n GROUP_BY_DAY extends boolean = false,\n>(\n props: NotificationsProps<ITEM, GROUP, ACTION, GROUP_BY_DAY>,\n) => React.ReactElement | null;\n"],"mappings":""}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../../../../src/components/Notifications/types.ts"],"sourcesContent":["import { PropsWithHTMLAttributesAndRef } from '@consta/uikit/__internal__/src/utils/types/PropsWithHTMLAttributes';\n\nimport { NotificationsItemAction } from './NotificationsItem';\nimport {\n NotificationsListDefaultGroup,\n NotificationsListDefaultItem,\n Props,\n} from './NotificationsList';\n\nexport type NotificationsProps<\n ITEM = NotificationsListDefaultItem,\n GROUP = NotificationsListDefaultGroup,\n ACTION = NotificationsItemAction,\n GROUP_BY_DAY extends boolean = false,\n> = PropsWithHTMLAttributesAndRef<\n Omit<Props<ITEM, GROUP, ACTION, GROUP_BY_DAY>, 'onClose'> & {\n listClassName?: string;\n isMobile?: boolean;\n },\n HTMLButtonElement\n>;\n\nexport type NotificationsComponent = <\n ITEM = NotificationsListDefaultItem,\n GROUP = NotificationsListDefaultGroup,\n ACTION = NotificationsItemAction,\n GROUP_BY_DAY extends boolean = false,\n>(\n props: NotificationsProps<ITEM, GROUP, ACTION, GROUP_BY_DAY>,\n) => React.ReactNode;\n"],"mappings":""}
@@ -7,5 +7,5 @@ type PopoverButtonProps = Omit<React.ComponentProps<typeof Button>, 'children'>
7
7
  popoverClassName?: string;
8
8
  withCloseButton?: boolean;
9
9
  };
10
- export declare const PopoverButton: React.ForwardRefExoticComponent<Pick<PopoverButtonProps, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "size" | "view" | "onlyIcon" | "label" | "key" | "width" | "disabled" | "loading" | "iconLeft" | "iconRight" | "iconSize" | "type" | "formId" | "as" | "isMobile" | "popoverClassName" | "withCloseButton"> & React.RefAttributes<HTMLButtonElement>>;
10
+ export declare const PopoverButton: React.ForwardRefExoticComponent<Omit<PopoverButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
11
11
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectMenuDefaultItem, SelectMenuPropGetItemHref, SelectMenuPropGetItemLabel, SelectMenuPropGetItemOnClick, SelectMenuPropGetItemSubMenu, SelectMenuPropGetItemTarget, SelectMenuProps } from './types';
3
2
  export declare const defaultGetItemLabel: SelectMenuPropGetItemLabel<SelectMenuDefaultItem>;
4
3
  export declare const defaultGetItemHref: SelectMenuPropGetItemHref<SelectMenuDefaultItem>;
@@ -6,11 +5,11 @@ export declare const defaultGetItemOnClick: SelectMenuPropGetItemOnClick<SelectM
6
5
  export declare const defaultGetItemTarget: SelectMenuPropGetItemTarget<SelectMenuDefaultItem>;
7
6
  export declare const defaultGetItemSubMenu: SelectMenuPropGetItemSubMenu<SelectMenuDefaultItem>;
8
7
  export declare const getGetters: <ITEM>(props: {
9
- getItemLabel?: SelectMenuPropGetItemLabel<ITEM> | undefined;
10
- getItemHref?: SelectMenuPropGetItemHref<ITEM> | undefined;
11
- getItemOnClick?: SelectMenuPropGetItemOnClick<ITEM> | undefined;
12
- getItemTarget?: SelectMenuPropGetItemTarget<ITEM> | undefined;
13
- getItemSubMenu?: SelectMenuPropGetItemSubMenu<ITEM> | undefined;
8
+ getItemLabel?: SelectMenuPropGetItemLabel<ITEM>;
9
+ getItemHref?: SelectMenuPropGetItemHref<ITEM>;
10
+ getItemOnClick?: SelectMenuPropGetItemOnClick<ITEM>;
11
+ getItemTarget?: SelectMenuPropGetItemTarget<ITEM>;
12
+ getItemSubMenu?: SelectMenuPropGetItemSubMenu<ITEM>;
14
13
  }) => {
15
14
  getItemLabel: SelectMenuPropGetItemLabel<SelectMenuDefaultItem> | SelectMenuPropGetItemLabel<ITEM>;
16
15
  getItemHref: SelectMenuPropGetItemHref<SelectMenuDefaultItem> | SelectMenuPropGetItemHref<ITEM>;
@@ -28,7 +27,7 @@ export declare function withDefaultGetters<ITEM>(props: SelectMenuProps<ITEM>):
28
27
  getItemSubMenu?: SelectMenuPropGetItemSubMenu<ITEM> | undefined;
29
28
  label: string;
30
29
  } & Omit<import("react").HTMLAttributes<HTMLDivElement>, "css" | "items" | "onItemClick" | "getItemHref" | "getItemLabel" | "getItemTarget" | "getItemOnClick" | "label" | "getItemSubMenu"> & import("react").RefAttributes<HTMLDivElement> & (ITEM extends {
31
- label: string;
30
+ label: SelectMenuDefaultItem["label"];
32
31
  } ? {} : {
33
32
  getItemLabel: SelectMenuPropGetItemLabel<ITEM>;
34
33
  }) & {
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- import { PropsWithHTMLAttributesAndRef } from "../../utils/types/PropsWithHTMLAttributes";
1
+ import { PropsWithHTMLAttributesAndRef } from '@consta/uikit/__internal__/src/utils/types/PropsWithHTMLAttributes';
3
2
  export type SelectMenuDefaultItem = {
4
3
  label: string;
5
4
  href?: string;
@@ -29,4 +28,4 @@ export type SelectMenuProps<ITEM = SelectMenuDefaultItem> = PropsWithHTMLAttribu
29
28
  } ? {} : {
30
29
  getItemLabel: SelectMenuPropGetItemLabel<ITEM>;
31
30
  });
32
- export type SelectMenuComponent = <ITEM = SelectMenuDefaultItem>(props: SelectMenuProps<ITEM>) => React.ReactElement | null;
31
+ export type SelectMenuComponent = <ITEM = SelectMenuDefaultItem>(props: SelectMenuProps<ITEM>) => React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../../../../src/components/SelectMenu/types.ts"],"sourcesContent":["import { PropsWithHTMLAttributesAndRef } from '##/utils/types/PropsWithHTMLAttributes';\n\nexport type SelectMenuDefaultItem = {\n label: string;\n href?: string;\n target?: string;\n onClick?: React.EventHandler<React.MouseEvent>;\n subMenu?: SelectMenuDefaultItem[];\n};\n\nexport type SelectMenuPropGetItemLabel<ITEM> = (item: ITEM) => string;\nexport type SelectMenuPropGetItemHref<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type SelectMenuPropGetItemTarget<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type SelectMenuPropGetItemOnClick<ITEM> = (\n item: ITEM,\n) => React.EventHandler<React.MouseEvent> | undefined;\nexport type SelectMenuPropOnItemClick<ITEM> = (\n item: ITEM,\n props: {\n e: React.MouseEvent;\n },\n) => void;\nexport type SelectMenuPropGetItemSubMenu<ITEM> = (\n item: ITEM,\n) => ITEM[] | undefined;\n\nexport type SelectMenuProps<ITEM = SelectMenuDefaultItem> =\n PropsWithHTMLAttributesAndRef<\n {\n items: ITEM[];\n onItemClick?: SelectMenuPropOnItemClick<ITEM>;\n getItemHref?: SelectMenuPropGetItemHref<ITEM>;\n getItemLabel?: SelectMenuPropGetItemLabel<ITEM>;\n getItemTarget?: SelectMenuPropGetItemTarget<ITEM>;\n getItemOnClick?: SelectMenuPropGetItemOnClick<ITEM>;\n getItemSubMenu?: SelectMenuPropGetItemSubMenu<ITEM>;\n label: string;\n },\n HTMLDivElement\n > &\n (ITEM extends { label: SelectMenuDefaultItem['label'] }\n ? {}\n : { getItemLabel: SelectMenuPropGetItemLabel<ITEM> });\n\nexport type SelectMenuComponent = <ITEM = SelectMenuDefaultItem>(\n props: SelectMenuProps<ITEM>,\n) => React.ReactElement | null;\n"],"mappings":""}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../../../../src/components/SelectMenu/types.ts"],"sourcesContent":["import { PropsWithHTMLAttributesAndRef } from '@consta/uikit/__internal__/src/utils/types/PropsWithHTMLAttributes';\n\nexport type SelectMenuDefaultItem = {\n label: string;\n href?: string;\n target?: string;\n onClick?: React.EventHandler<React.MouseEvent>;\n subMenu?: SelectMenuDefaultItem[];\n};\n\nexport type SelectMenuPropGetItemLabel<ITEM> = (item: ITEM) => string;\nexport type SelectMenuPropGetItemHref<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type SelectMenuPropGetItemTarget<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type SelectMenuPropGetItemOnClick<ITEM> = (\n item: ITEM,\n) => React.EventHandler<React.MouseEvent> | undefined;\nexport type SelectMenuPropOnItemClick<ITEM> = (\n item: ITEM,\n props: {\n e: React.MouseEvent;\n },\n) => void;\nexport type SelectMenuPropGetItemSubMenu<ITEM> = (\n item: ITEM,\n) => ITEM[] | undefined;\n\nexport type SelectMenuProps<ITEM = SelectMenuDefaultItem> =\n PropsWithHTMLAttributesAndRef<\n {\n items: ITEM[];\n onItemClick?: SelectMenuPropOnItemClick<ITEM>;\n getItemHref?: SelectMenuPropGetItemHref<ITEM>;\n getItemLabel?: SelectMenuPropGetItemLabel<ITEM>;\n getItemTarget?: SelectMenuPropGetItemTarget<ITEM>;\n getItemOnClick?: SelectMenuPropGetItemOnClick<ITEM>;\n getItemSubMenu?: SelectMenuPropGetItemSubMenu<ITEM>;\n label: string;\n },\n HTMLDivElement\n > &\n (ITEM extends { label: SelectMenuDefaultItem['label'] }\n ? {}\n : { getItemLabel: SelectMenuPropGetItemLabel<ITEM> });\n\nexport type SelectMenuComponent = <ITEM = SelectMenuDefaultItem>(\n props: SelectMenuProps<ITEM>,\n) => React.ReactNode;\n"],"mappings":""}
@@ -5,5 +5,5 @@ type SidebarProps = Omit<React.ComponentProps<typeof ConstaSidebar>, 'position'
5
5
  title?: string;
6
6
  onClose?: React.EventHandler<React.MouseEvent>;
7
7
  };
8
- export declare const Sidebar: (props: SidebarProps) => JSX.Element;
8
+ export declare const Sidebar: (props: SidebarProps) => import("react/jsx-runtime").JSX.Element;
9
9
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const tileMenuItemPropView: readonly ["card", "default"];
3
2
  export type TileMenuItemPropView = (typeof tileMenuItemPropView)[number];
4
3
  export type TileMenuItemProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TileMenuListDefaultItem, TileMenuListPropGetItemDescription, TileMenuListPropGetItemHref, TileMenuListPropGetItemImage, TileMenuListPropGetItemLabel, TileMenuListPropGetItemOnClick, TileMenuListProps } from './types';
3
2
  export declare const defaultGetItemImage: TileMenuListPropGetItemImage<TileMenuListDefaultItem>;
4
3
  export declare const defaultGetItemLabel: TileMenuListPropGetItemLabel<TileMenuListDefaultItem>;
@@ -6,7 +5,7 @@ export declare const defaultGetItemHref: TileMenuListPropGetItemHref<TileMenuLis
6
5
  export declare const defaultGetItemOnClick: TileMenuListPropGetItemOnClick<TileMenuListDefaultItem>;
7
6
  export declare const defaultGetItemDescription: TileMenuListPropGetItemDescription<TileMenuListDefaultItem>;
8
7
  export declare function withDefaultGetters<ITEM>(props: TileMenuListProps<ITEM>): import("./types").TileMenuListCommonProps<ITEM> & Omit<import("react").HTMLAttributes<HTMLDivElement>, "css" | keyof import("./types").TileMenuListCommonProps<ITEM_1>> & import("react").RefAttributes<HTMLDivElement> & (ITEM extends {
9
- label: string;
8
+ label: TileMenuListDefaultItem["label"];
10
9
  } ? {} : {
11
10
  getItemLabel: TileMenuListPropGetItemLabel<ITEM>;
12
11
  }) & {
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- import { PropsWithHTMLAttributesAndRef } from "../../../utils/types/PropsWithHTMLAttributes";
1
+ import { PropsWithHTMLAttributesAndRef } from '@consta/uikit/__internal__/src/utils/types/PropsWithHTMLAttributes';
3
2
  export declare const tileMenuListPropView: readonly ["lines", "twoLines", "cards"];
4
3
  export type TileMenuListPropView = (typeof tileMenuListPropView)[number];
5
4
  export declare const tileMenuListPropViewDefault: TileMenuListPropView;
@@ -37,4 +36,4 @@ export type TileMenuListProps<ITEM = TileMenuListDefaultItem> = PropsWithHTMLAtt
37
36
  } ? {} : {
38
37
  getItemLabel: TileMenuListPropGetItemLabel<ITEM>;
39
38
  });
40
- export type TileMenuListComponent = <ITEM = TileMenuListDefaultItem>(props: TileMenuListProps<ITEM>) => React.ReactElement | null;
39
+ export type TileMenuListComponent = <ITEM = TileMenuListDefaultItem>(props: TileMenuListProps<ITEM>) => React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["tileMenuListPropView","tileMenuListPropViewDefault"],"sources":["../../../../../../src/components/TileMenu/TileMenuList/types.ts"],"sourcesContent":["import { PropsWithHTMLAttributesAndRef } from '##/utils/types/PropsWithHTMLAttributes';\n\nexport const tileMenuListPropView = ['lines', 'twoLines', 'cards'] as const;\nexport type TileMenuListPropView = (typeof tileMenuListPropView)[number];\nexport const tileMenuListPropViewDefault: TileMenuListPropView =\n tileMenuListPropView[0];\n\nexport type TileMenuListDefaultItem = {\n label: string;\n description?: string;\n image?: string;\n} & (\n | {\n href: string;\n onClick?: React.MouseEventHandler<HTMLAnchorElement>;\n }\n | { href?: undefined; onClick?: React.MouseEventHandler<HTMLDivElement> }\n);\n\nexport type TileMenuListPropGetItemImage<ITEM> = (\n item: ITEM,\n) => string | React.FC | undefined;\nexport type TileMenuListPropGetItemLabel<ITEM> = (item: ITEM) => string;\nexport type TileMenuListPropGetItemDescription<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type TileMenuListPropGetItemHref<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type TileMenuListPropGetItemOnClick<ITEM> = (\n item: ITEM,\n) => React.MouseEventHandler | undefined;\nexport type TileMenuListPropOnItemClick<ITEM> = (\n item: ITEM,\n props: {\n e: React.MouseEvent;\n },\n) => void;\n\nexport type TileMenuListCommonProps<ITEM> = {\n view?: TileMenuListPropView;\n items: ITEM[];\n onItemClick?: TileMenuListPropOnItemClick<ITEM>;\n getItemImage?: TileMenuListPropGetItemImage<ITEM>;\n getItemLabel?: TileMenuListPropGetItemLabel<ITEM>;\n getItemDescription?: TileMenuListPropGetItemDescription<ITEM>;\n getItemHref?: TileMenuListPropGetItemHref<ITEM>;\n getItemOnClick?: TileMenuListPropGetItemOnClick<ITEM>;\n};\n\nexport type TileMenuListProps<ITEM = TileMenuListDefaultItem> =\n PropsWithHTMLAttributesAndRef<TileMenuListCommonProps<ITEM>, HTMLDivElement> &\n TileMenuListCommonProps<ITEM> &\n (ITEM extends { label: TileMenuListDefaultItem['label'] }\n ? {}\n : { getItemLabel: TileMenuListPropGetItemLabel<ITEM> });\n\nexport type TileMenuListComponent = <ITEM = TileMenuListDefaultItem>(\n props: TileMenuListProps<ITEM>,\n) => React.ReactElement | null;\n"],"mappings":"AAEA,MAAO,MAAM,CAAAA,oBAAoB,CAAG,CAAC,OAAO,CAAE,UAAU,CAAE,OAAO,CAAU,CAE3E,MAAO,MAAM,CAAAC,2BAAiD,CAC5DD,oBAAoB,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"types.js","names":["tileMenuListPropView","tileMenuListPropViewDefault"],"sources":["../../../../../../src/components/TileMenu/TileMenuList/types.ts"],"sourcesContent":["import { PropsWithHTMLAttributesAndRef } from '@consta/uikit/__internal__/src/utils/types/PropsWithHTMLAttributes';\n\nexport const tileMenuListPropView = ['lines', 'twoLines', 'cards'] as const;\nexport type TileMenuListPropView = (typeof tileMenuListPropView)[number];\nexport const tileMenuListPropViewDefault: TileMenuListPropView =\n tileMenuListPropView[0];\n\nexport type TileMenuListDefaultItem = {\n label: string;\n description?: string;\n image?: string;\n} & (\n | {\n href: string;\n onClick?: React.MouseEventHandler<HTMLAnchorElement>;\n }\n | { href?: undefined; onClick?: React.MouseEventHandler<HTMLDivElement> }\n);\n\nexport type TileMenuListPropGetItemImage<ITEM> = (\n item: ITEM,\n) => string | React.FC | undefined;\nexport type TileMenuListPropGetItemLabel<ITEM> = (item: ITEM) => string;\nexport type TileMenuListPropGetItemDescription<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type TileMenuListPropGetItemHref<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type TileMenuListPropGetItemOnClick<ITEM> = (\n item: ITEM,\n) => React.MouseEventHandler | undefined;\nexport type TileMenuListPropOnItemClick<ITEM> = (\n item: ITEM,\n props: {\n e: React.MouseEvent;\n },\n) => void;\n\nexport type TileMenuListCommonProps<ITEM> = {\n view?: TileMenuListPropView;\n items: ITEM[];\n onItemClick?: TileMenuListPropOnItemClick<ITEM>;\n getItemImage?: TileMenuListPropGetItemImage<ITEM>;\n getItemLabel?: TileMenuListPropGetItemLabel<ITEM>;\n getItemDescription?: TileMenuListPropGetItemDescription<ITEM>;\n getItemHref?: TileMenuListPropGetItemHref<ITEM>;\n getItemOnClick?: TileMenuListPropGetItemOnClick<ITEM>;\n};\n\nexport type TileMenuListProps<ITEM = TileMenuListDefaultItem> =\n PropsWithHTMLAttributesAndRef<TileMenuListCommonProps<ITEM>, HTMLDivElement> &\n TileMenuListCommonProps<ITEM> &\n (ITEM extends { label: TileMenuListDefaultItem['label'] }\n ? {}\n : { getItemLabel: TileMenuListPropGetItemLabel<ITEM> });\n\nexport type TileMenuListComponent = <ITEM = TileMenuListDefaultItem>(\n props: TileMenuListProps<ITEM>,\n) => React.ReactNode;\n"],"mappings":"AAEA,MAAO,MAAM,CAAAA,oBAAoB,CAAG,CAAC,OAAO,CAAE,UAAU,CAAE,OAAO,CAAU,CAE3E,MAAO,MAAM,CAAAC,2BAAiD,CAC5DD,oBAAoB,CAAC,CAAC,CAAC"}
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- import { PropsWithHTMLAttributesAndRef } from "../../utils/types/PropsWithHTMLAttributes";
1
+ import { PropsWithHTMLAttributesAndRef } from '@consta/uikit/__internal__/src/utils/types/PropsWithHTMLAttributes';
3
2
  import { TileMenuListCommonProps, TileMenuListDefaultItem, TileMenuListPropGetItemLabel } from './TileMenuList';
4
3
  export type TileMenuProps<ITEM = TileMenuListDefaultItem> = PropsWithHTMLAttributesAndRef<TileMenuListCommonProps<ITEM> & {
5
4
  listClassName?: string;
@@ -10,4 +9,4 @@ export type TileMenuProps<ITEM = TileMenuListDefaultItem> = PropsWithHTMLAttribu
10
9
  } ? {} : {
11
10
  getItemLabel: TileMenuListPropGetItemLabel<ITEM>;
12
11
  });
13
- export type TileMenuComponent = <ITEM = TileMenuListDefaultItem>(props: TileMenuProps<ITEM>) => React.ReactElement | null;
12
+ export type TileMenuComponent = <ITEM = TileMenuListDefaultItem>(props: TileMenuProps<ITEM>) => React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../../../../src/components/TileMenu/types.ts"],"sourcesContent":["import { PropsWithHTMLAttributesAndRef } from '##/utils/types/PropsWithHTMLAttributes';\n\nimport {\n TileMenuListCommonProps,\n TileMenuListDefaultItem,\n TileMenuListPropGetItemLabel,\n} from './TileMenuList';\n\nexport type TileMenuProps<ITEM = TileMenuListDefaultItem> =\n PropsWithHTMLAttributesAndRef<\n TileMenuListCommonProps<ITEM> & {\n listClassName?: string;\n title?: string;\n isMobile?: boolean;\n },\n HTMLButtonElement\n > &\n (ITEM extends { label: TileMenuListDefaultItem['label'] }\n ? {}\n : { getItemLabel: TileMenuListPropGetItemLabel<ITEM> });\n\nexport type TileMenuComponent = <ITEM = TileMenuListDefaultItem>(\n props: TileMenuProps<ITEM>,\n) => React.ReactElement | null;\n"],"mappings":""}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../../../../src/components/TileMenu/types.ts"],"sourcesContent":["import { PropsWithHTMLAttributesAndRef } from '@consta/uikit/__internal__/src/utils/types/PropsWithHTMLAttributes';\n\nimport {\n TileMenuListCommonProps,\n TileMenuListDefaultItem,\n TileMenuListPropGetItemLabel,\n} from './TileMenuList';\n\nexport type TileMenuProps<ITEM = TileMenuListDefaultItem> =\n PropsWithHTMLAttributesAndRef<\n TileMenuListCommonProps<ITEM> & {\n listClassName?: string;\n title?: string;\n isMobile?: boolean;\n },\n HTMLButtonElement\n > &\n (ITEM extends { label: TileMenuListDefaultItem['label'] }\n ? {}\n : { getItemLabel: TileMenuListPropGetItemLabel<ITEM> });\n\nexport type TileMenuComponent = <ITEM = TileMenuListDefaultItem>(\n props: TileMenuProps<ITEM>,\n) => React.ReactNode;\n"],"mappings":""}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { VerticalMenuDefaultItem, VerticalMenuPropGetItemActive, VerticalMenuPropGetItemGroup, VerticalMenuPropGetItemHref, VerticalMenuPropGetItemLabel, VerticalMenuPropGetItemOnClick, VerticalMenuPropGetItemSubMenu, VerticalMenuPropGetItemTarget, VerticalMenuProps } from './types';
3
2
  export declare const defaultGetItemLabel: VerticalMenuPropGetItemLabel<VerticalMenuDefaultItem>;
4
3
  export declare const defaultGetItemActive: VerticalMenuPropGetItemActive<VerticalMenuDefaultItem>;
@@ -17,10 +16,10 @@ export declare function withDefaultGetters<ITEM>(props: VerticalMenuProps<ITEM>)
17
16
  getItemSubMenu?: VerticalMenuPropGetItemSubMenu<ITEM> | undefined;
18
17
  onItemClick?: import("./types").VerticalMenuPropOnItemClick<ITEM> | undefined;
19
18
  getItemGroup?: VerticalMenuPropGetItemGroup<ITEM> | undefined;
20
- header?: import("react").ReactNode;
21
- footer?: import("react").ReactNode;
19
+ header?: React.ReactNode;
20
+ footer?: React.ReactNode;
22
21
  } & Omit<import("react").HTMLAttributes<HTMLDivElement>, "css" | "items" | "onItemClick" | "getItemHref" | "getItemLabel" | "getItemTarget" | "getItemOnClick" | "footer" | "header" | "getItemSubMenu" | "getItemActive" | "getItemGroup"> & (ITEM extends {
23
- label: string;
22
+ label: VerticalMenuDefaultItem["label"];
24
23
  } ? {} : {
25
24
  getItemLabel: VerticalMenuPropGetItemLabel<ITEM>;
26
25
  }) & {
@@ -1,5 +1,5 @@
1
+ import { PropsWithHTMLAttributes, PropsWithHTMLAttributesAndRef } from '@consta/uikit/__internal__/src/utils/types/PropsWithHTMLAttributes';
1
2
  import React from 'react';
2
- import { PropsWithHTMLAttributes, PropsWithHTMLAttributesAndRef } from "../../utils/types/PropsWithHTMLAttributes";
3
3
  export type VerticalMenuDefaultItem = {
4
4
  label: string;
5
5
  href?: string;
@@ -36,7 +36,7 @@ export type VerticalMenuProps<ITEM = VerticalMenuDefaultItem> = PropsWithHTMLAtt
36
36
  } ? {} : {
37
37
  getItemLabel: VerticalMenuPropGetItemLabel<ITEM>;
38
38
  });
39
- export type VerticalMenuComponent = <ITEM = VerticalMenuDefaultItem>(props: VerticalMenuProps<ITEM>) => React.ReactElement | null;
39
+ export type VerticalMenuComponent = <ITEM = VerticalMenuDefaultItem>(props: VerticalMenuProps<ITEM>) => React.ReactNode;
40
40
  export type VerticalMenuLevel<ITEM> = {
41
41
  items: ITEM[];
42
42
  id: string;
@@ -58,7 +58,7 @@ export type VerticalMenuLevelProps<ITEM = VerticalMenuDefaultItem> = PropsWithHT
58
58
  header?: React.ReactNode;
59
59
  footer?: React.ReactNode;
60
60
  }, HTMLDivElement>;
61
- export type VerticalMenuLevelComponent = <ITEM = VerticalMenuDefaultItem>(props: VerticalMenuLevelProps<ITEM>) => React.ReactElement | null;
61
+ export type VerticalMenuLevelComponent = <ITEM = VerticalMenuDefaultItem>(props: VerticalMenuLevelProps<ITEM>) => React.ReactNode;
62
62
  export type VerticalMenuItemProps = PropsWithHTMLAttributes<{
63
63
  label: string;
64
64
  href?: string;
@@ -67,4 +67,4 @@ export type VerticalMenuItemProps = PropsWithHTMLAttributes<{
67
67
  onClick?: React.EventHandler<React.MouseEvent>;
68
68
  withSubMenu?: boolean;
69
69
  }, HTMLSpanElement>;
70
- export type VerticalMenuItemComponent = (props: VerticalMenuItemProps) => React.ReactElement | null;
70
+ export type VerticalMenuItemComponent = (props: VerticalMenuItemProps) => React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../../../../src/components/VerticalMenu/types.ts"],"sourcesContent":["import React from 'react';\n\nimport {\n PropsWithHTMLAttributes,\n PropsWithHTMLAttributesAndRef,\n} from '##/utils/types/PropsWithHTMLAttributes';\n\nexport type VerticalMenuDefaultItem = {\n label: string;\n href?: string;\n target?: string;\n active?: boolean;\n onClick?: React.EventHandler<React.MouseEvent>;\n subMenu?: VerticalMenuDefaultItem[];\n groupId?: string;\n};\n\nexport type VerticalMenuPropGetItemLabel<ITEM> = (item: ITEM) => string;\nexport type VerticalMenuPropGetItemHref<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type VerticalMenuPropGetItemTarget<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type VerticalMenuPropGetItemActive<ITEM> = (\n item: ITEM,\n) => boolean | undefined;\nexport type VerticalMenuPropGetItemSubMenu<ITEM> = (\n item: ITEM,\n) => ITEM[] | undefined;\nexport type VerticalMenuPropGetItemOnClick<ITEM> = (\n item: ITEM,\n) => React.EventHandler<React.MouseEvent> | undefined;\nexport type VerticalMenuPropOnItemClick<ITEM> = (\n item: ITEM,\n props: {\n e: React.MouseEvent;\n },\n) => void;\nexport type VerticalMenuPropGetItemGroup<ITEM> = (\n item: ITEM,\n) => string | number | undefined;\n\nexport type VerticalMenuProps<ITEM = VerticalMenuDefaultItem> =\n PropsWithHTMLAttributes<\n {\n items: ITEM[];\n getItemHref?: VerticalMenuPropGetItemHref<ITEM>;\n getItemLabel?: VerticalMenuPropGetItemLabel<ITEM>;\n getItemTarget?: VerticalMenuPropGetItemTarget<ITEM>;\n getItemActive?: VerticalMenuPropGetItemActive<ITEM>;\n getItemOnClick?: VerticalMenuPropGetItemOnClick<ITEM>;\n getItemSubMenu?: VerticalMenuPropGetItemSubMenu<ITEM>;\n onItemClick?: VerticalMenuPropOnItemClick<ITEM>;\n getItemGroup?: VerticalMenuPropGetItemGroup<ITEM>;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n },\n HTMLDivElement\n > &\n (ITEM extends { label: VerticalMenuDefaultItem['label'] }\n ? {}\n : { getItemLabel: VerticalMenuPropGetItemLabel<ITEM> });\n\nexport type VerticalMenuComponent = <ITEM = VerticalMenuDefaultItem>(\n props: VerticalMenuProps<ITEM>,\n) => React.ReactElement | null;\n\nexport type VerticalMenuLevel<ITEM> = {\n items: ITEM[];\n id: string;\n label?: string;\n};\n\nexport type VerticalMenuLevelProps<ITEM = VerticalMenuDefaultItem> =\n PropsWithHTMLAttributesAndRef<\n {\n id: string;\n items: ITEM[];\n getItemHref: VerticalMenuPropGetItemHref<ITEM>;\n getItemLabel: VerticalMenuPropGetItemLabel<ITEM>;\n getItemTarget: VerticalMenuPropGetItemTarget<ITEM>;\n getItemActive: VerticalMenuPropGetItemActive<ITEM>;\n getItemOnClick: VerticalMenuPropGetItemOnClick<ITEM>;\n getItemSubMenu: VerticalMenuPropGetItemSubMenu<ITEM>;\n getItemGroup: VerticalMenuPropGetItemGroup<ITEM>;\n addLevel: (level: VerticalMenuLevel<ITEM>) => void;\n removeLevel: () => void;\n label?: string;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n },\n HTMLDivElement\n >;\n\nexport type VerticalMenuLevelComponent = <ITEM = VerticalMenuDefaultItem>(\n props: VerticalMenuLevelProps<ITEM>,\n) => React.ReactElement | null;\n\nexport type VerticalMenuItemProps = PropsWithHTMLAttributes<\n {\n label: string;\n href?: string;\n target?: string;\n active?: boolean;\n onClick?: React.EventHandler<React.MouseEvent>;\n withSubMenu?: boolean;\n },\n HTMLSpanElement\n>;\n\nexport type VerticalMenuItemComponent = (\n props: VerticalMenuItemProps,\n) => React.ReactElement | null;\n"],"mappings":""}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../../../../src/components/VerticalMenu/types.ts"],"sourcesContent":["import {\n PropsWithHTMLAttributes,\n PropsWithHTMLAttributesAndRef,\n} from '@consta/uikit/__internal__/src/utils/types/PropsWithHTMLAttributes';\nimport React from 'react';\n\nexport type VerticalMenuDefaultItem = {\n label: string;\n href?: string;\n target?: string;\n active?: boolean;\n onClick?: React.EventHandler<React.MouseEvent>;\n subMenu?: VerticalMenuDefaultItem[];\n groupId?: string;\n};\n\nexport type VerticalMenuPropGetItemLabel<ITEM> = (item: ITEM) => string;\nexport type VerticalMenuPropGetItemHref<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type VerticalMenuPropGetItemTarget<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type VerticalMenuPropGetItemActive<ITEM> = (\n item: ITEM,\n) => boolean | undefined;\nexport type VerticalMenuPropGetItemSubMenu<ITEM> = (\n item: ITEM,\n) => ITEM[] | undefined;\nexport type VerticalMenuPropGetItemOnClick<ITEM> = (\n item: ITEM,\n) => React.EventHandler<React.MouseEvent> | undefined;\nexport type VerticalMenuPropOnItemClick<ITEM> = (\n item: ITEM,\n props: {\n e: React.MouseEvent;\n },\n) => void;\nexport type VerticalMenuPropGetItemGroup<ITEM> = (\n item: ITEM,\n) => string | number | undefined;\n\nexport type VerticalMenuProps<ITEM = VerticalMenuDefaultItem> =\n PropsWithHTMLAttributes<\n {\n items: ITEM[];\n getItemHref?: VerticalMenuPropGetItemHref<ITEM>;\n getItemLabel?: VerticalMenuPropGetItemLabel<ITEM>;\n getItemTarget?: VerticalMenuPropGetItemTarget<ITEM>;\n getItemActive?: VerticalMenuPropGetItemActive<ITEM>;\n getItemOnClick?: VerticalMenuPropGetItemOnClick<ITEM>;\n getItemSubMenu?: VerticalMenuPropGetItemSubMenu<ITEM>;\n onItemClick?: VerticalMenuPropOnItemClick<ITEM>;\n getItemGroup?: VerticalMenuPropGetItemGroup<ITEM>;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n },\n HTMLDivElement\n > &\n (ITEM extends { label: VerticalMenuDefaultItem['label'] }\n ? {}\n : { getItemLabel: VerticalMenuPropGetItemLabel<ITEM> });\n\nexport type VerticalMenuComponent = <ITEM = VerticalMenuDefaultItem>(\n props: VerticalMenuProps<ITEM>,\n) => React.ReactNode;\n\nexport type VerticalMenuLevel<ITEM> = {\n items: ITEM[];\n id: string;\n label?: string;\n};\n\nexport type VerticalMenuLevelProps<ITEM = VerticalMenuDefaultItem> =\n PropsWithHTMLAttributesAndRef<\n {\n id: string;\n items: ITEM[];\n getItemHref: VerticalMenuPropGetItemHref<ITEM>;\n getItemLabel: VerticalMenuPropGetItemLabel<ITEM>;\n getItemTarget: VerticalMenuPropGetItemTarget<ITEM>;\n getItemActive: VerticalMenuPropGetItemActive<ITEM>;\n getItemOnClick: VerticalMenuPropGetItemOnClick<ITEM>;\n getItemSubMenu: VerticalMenuPropGetItemSubMenu<ITEM>;\n getItemGroup: VerticalMenuPropGetItemGroup<ITEM>;\n addLevel: (level: VerticalMenuLevel<ITEM>) => void;\n removeLevel: () => void;\n label?: string;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n },\n HTMLDivElement\n >;\n\nexport type VerticalMenuLevelComponent = <ITEM = VerticalMenuDefaultItem>(\n props: VerticalMenuLevelProps<ITEM>,\n) => React.ReactNode;\n\nexport type VerticalMenuItemProps = PropsWithHTMLAttributes<\n {\n label: string;\n href?: string;\n target?: string;\n active?: boolean;\n onClick?: React.EventHandler<React.MouseEvent>;\n withSubMenu?: boolean;\n },\n HTMLSpanElement\n>;\n\nexport type VerticalMenuItemComponent = (\n props: VerticalMenuItemProps,\n) => React.ReactNode;\n"],"mappings":""}
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export type GetItemOnClick<ITEM> = (item: ITEM) => React.EventHandler<React.MouseEvent> | undefined;
3
2
  export type OnItemClick<ITEM> = (item: ITEM, props: {
4
3
  e: React.MouseEvent;
5
4
  }) => void;
6
- export declare const getItemClick: <ITEM>(item: ITEM, getItemOnClick: GetItemOnClick<ITEM>, onItemClick?: OnItemClick<ITEM> | undefined) => React.MouseEventHandler;
5
+ export declare const getItemClick: <ITEM>(item: ITEM, getItemOnClick: GetItemOnClick<ITEM>, onItemClick?: OnItemClick<ITEM>) => React.MouseEventHandler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/header",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
4
  "files": [
5
5
  "*",
6
6
  "!**/__mocks__",
@@ -18,7 +18,10 @@
18
18
  "access": "public"
19
19
  },
20
20
  "peerDependencies": {
21
- "@consta/icons": "^1.0.1",
22
- "@consta/uikit": "^5.0.0"
21
+ "@bem-react/classname": "^1.6.0",
22
+ "@bem-react/classnames": "^1.3.10",
23
+ "@consta/icons": "^1.5.0",
24
+ "@consta/uikit": "^5.28.1",
25
+ "date-fns": "^2.30.0"
23
26
  }
24
27
  }
@@ -1,2 +0,0 @@
1
- import { NavbarComponent } from '../types';
2
- export declare const Navbar: NavbarComponent;
@@ -1,2 +0,0 @@
1
- import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";const _excluded=["items","onItemClick","groups","getItemLabel","getItemIcon","getItemRightSide","getItemAs","getItemAttributes","getItemGroupKey","getItemActive","getItemRef","getItemAdditionalClassName","getGroupKey","getGroupLabel","getGroupRightSide","getGroupAdditionalClassName","size","form","getItemSubMenu","sortGroup","className","getItemStatus"];import{getGroups}from"@consta/uikit/__internal__/src/utils/getGroups";import{renderHeader}from"@consta/uikit/ListCanary";import React,{forwardRef,useMemo}from"react";import{withDefaultGetters}from"../helpers";import{defaultNavbarPropForm,defaultNavbarPropSize}from"../types";import{NavbarItem}from".";const NavbarRender=(a,b)=>{const c=withDefaultGetters(a),{items:d,onItemClick:e,groups:f,getItemLabel:g,getItemIcon:h,getItemRightSide:i,getItemAs:j,getItemAttributes:k,getItemGroupKey:l,getItemActive:m,getItemRef:n,getItemAdditionalClassName:o,getGroupKey:p,getGroupLabel:q,getGroupRightSide:r,getGroupAdditionalClassName:s,size:x=defaultNavbarPropSize,form:y=defaultNavbarPropForm,getItemSubMenu:t,sortGroup:u,className:v,getItemStatus:w}=c,z=_objectWithoutProperties(c,_excluded),A=useMemo(()=>getGroups(d,l,f,p,u),[f,d]);return React.createElement("div",Object.assign({},z,{ref:b,className:v}),A.map((a,b)=>React.createElement(React.Fragment,{key:a.key},renderHeader(a.group&&q(a.group),0===b,x,a.group&&r(a.group),{pV:"xs",mH:"m",mB:"2xs"},void 0,s&&a.group&&s(a.group)),a.items.map((b,c)=>React.createElement(React.Fragment,{key:`${a.key}-${c}`},React.createElement(NavbarItem,{size:x,item:b,level:0,onItemClick:e,getItemLabel:g,getItemActive:m,getItemAdditionalClassName:o,getItemAs:j,getItemAttributes:k,getItemIcon:h,getItemRef:n,getItemRightSide:i,getItemSubMenu:t,form:y,getItemStatus:w}))))))};export const Navbar=forwardRef(NavbarRender);
2
- //# sourceMappingURL=NavbarDrawer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NavbarDrawer.js","names":["getGroups","renderHeader","React","forwardRef","useMemo","withDefaultGetters","defaultNavbarPropForm","defaultNavbarPropSize","NavbarItem","NavbarRender","props","ref","c","items","onItemClick","groups","groupsProp","getItemLabel","getItemIcon","getItemRightSide","getItemAs","getItemAttributes","getItemGroupKey","getItemActive","getItemRef","getItemAdditionalClassName","getGroupKey","getGroupLabel","getGroupRightSide","getGroupAdditionalClassName","size","form","getItemSubMenu","sortGroup","className","getItemStatus","otherProps","_objectWithoutProperties","_excluded","createElement","Object","assign","map","group","groupIndex","Fragment","key","pV","mH","mB","item","index","level","Navbar"],"sources":["../../../../../../src/components/Navbar/NavbarItem/NavbarDrawer.tsx"],"sourcesContent":["import { getGroups } from '@consta/uikit/__internal__/src/utils/getGroups';\nimport { renderHeader } from '@consta/uikit/ListCanary';\nimport React, { forwardRef, useMemo } from 'react';\n\nimport { withDefaultGetters } from '../helpers';\nimport {\n defaultNavbarPropForm,\n defaultNavbarPropSize,\n NavbarComponent,\n NavbarProps,\n} from '../types';\nimport { NavbarItem } from '.';\n\nconst NavbarRender = (props: NavbarProps, ref: React.Ref<HTMLDivElement>) => {\n const {\n items,\n onItemClick,\n groups: groupsProp,\n getItemLabel,\n getItemIcon,\n getItemRightSide,\n getItemAs,\n getItemAttributes,\n getItemGroupKey,\n getItemActive,\n getItemRef,\n getItemAdditionalClassName,\n getGroupKey,\n getGroupLabel,\n getGroupRightSide,\n getGroupAdditionalClassName,\n size = defaultNavbarPropSize,\n form = defaultNavbarPropForm,\n getItemSubMenu,\n sortGroup,\n className,\n getItemStatus,\n ...otherProps\n } = withDefaultGetters(props);\n\n const groups = useMemo(\n () => getGroups(items, getItemGroupKey, groupsProp, getGroupKey, sortGroup),\n [groupsProp, items],\n );\n\n return (\n <div {...otherProps} ref={ref} className={className}>\n {groups.map((group, groupIndex) => {\n return (\n <React.Fragment key={group.key}>\n {renderHeader(\n group.group && getGroupLabel(group.group),\n groupIndex === 0,\n size,\n group.group && getGroupRightSide(group.group),\n { pV: 'xs', mH: 'm', mB: '2xs' },\n undefined,\n getGroupAdditionalClassName &&\n group.group &&\n getGroupAdditionalClassName(group.group),\n )}\n {group.items.map((item, index) => {\n return (\n <React.Fragment key={`${group.key}-${index}`}>\n <NavbarItem\n size={size}\n item={item}\n level={0}\n onItemClick={onItemClick}\n getItemLabel={getItemLabel}\n getItemActive={getItemActive}\n getItemAdditionalClassName={getItemAdditionalClassName}\n getItemAs={getItemAs}\n getItemAttributes={getItemAttributes}\n getItemIcon={getItemIcon}\n getItemRef={getItemRef}\n getItemRightSide={getItemRightSide}\n getItemSubMenu={getItemSubMenu}\n form={form}\n getItemStatus={getItemStatus}\n />\n </React.Fragment>\n );\n })}\n </React.Fragment>\n );\n })}\n </div>\n );\n};\n\nexport const Navbar = forwardRef(NavbarRender) as NavbarComponent;\n"],"mappings":"ybAAA,OAASA,SAAS,KAAQ,gDAAgD,CAC1E,OAASC,YAAY,KAAQ,0BAA0B,CACvD,MAAO,CAAAC,KAAK,EAAIC,UAAU,CAAEC,OAAO,KAAQ,OAAO,CAElD,OAASC,kBAAkB,kBAC3B,OACEC,qBAAqB,CACrBC,qBAAqB,gBAIvB,OAASC,UAAU,KAAQ,GAAG,CAE9B,KAAM,CAAAC,YAAY,CAAGA,CAACC,CAAkB,CAAEC,CAA8B,GAAK,OAAAC,CAAA,CAyBvEP,kBAAkB,CAACK,CAAK,CAAC,CAxBvB,CACJG,KAAK,CAALA,CAAK,CACLC,WAAW,CAAXA,CAAW,CACXC,MAAM,CAAEC,CAAU,CAClBC,YAAY,CAAZA,CAAY,CACZC,WAAW,CAAXA,CAAW,CACXC,gBAAgB,CAAhBA,CAAgB,CAChBC,SAAS,CAATA,CAAS,CACTC,iBAAiB,CAAjBA,CAAiB,CACjBC,eAAe,CAAfA,CAAe,CACfC,aAAa,CAAbA,CAAa,CACbC,UAAU,CAAVA,CAAU,CACVC,0BAA0B,CAA1BA,CAA0B,CAC1BC,WAAW,CAAXA,CAAW,CACXC,aAAa,CAAbA,CAAa,CACbC,iBAAiB,CAAjBA,CAAiB,CACjBC,2BAA2B,CAA3BA,CAA2B,CAC3BC,IAAI,CAAJA,CAAI,CAAGvB,qBAAqB,CAC5BwB,IAAI,CAAJA,CAAI,CAAGzB,qBAAqB,CAC5B0B,cAAc,CAAdA,CAAc,CACdC,SAAS,CAATA,CAAS,CACTC,SAAS,CAATA,CAAS,CACTC,aAAa,CAAbA,CAEF,CAAC,CAAAvB,CAAA,CADIwB,CAAU,CAAAC,wBAAA,CAAAzB,CAAA,CAAA0B,SAAA,EAGTvB,CAAM,CAAGX,OAAO,CACpB,IAAMJ,SAAS,CAACa,CAAK,CAAES,CAAe,CAAEN,CAAU,CAAEU,CAAW,CAAEO,CAAS,CAAC,CAC3E,CAACjB,CAAU,CAAEH,CAAK,CACpB,CAAC,CAED,MACE,CAAAX,KAAA,CAAAqC,aAAA,OAAAC,MAAA,CAAAC,MAAA,IAASL,CAAU,EAAEzB,GAAG,CAAEA,CAAI,CAACuB,SAAS,CAAEA,CAAU,GACjDnB,CAAM,CAAC2B,GAAG,CAAC,CAACC,CAAK,CAAEC,CAAU,GAE1B1C,KAAA,CAAAqC,aAAA,CAACrC,KAAK,CAAC2C,QAAQ,EAACC,GAAG,CAAEH,CAAK,CAACG,GAAI,EAC5B7C,YAAY,CACX0C,CAAK,CAACA,KAAK,EAAIhB,CAAa,CAACgB,CAAK,CAACA,KAAK,CAAC,CAC1B,CAAC,GAAhBC,CAAgB,CAChBd,CAAI,CACJa,CAAK,CAACA,KAAK,EAAIf,CAAiB,CAACe,CAAK,CAACA,KAAK,CAAC,CAC7C,CAAEI,EAAE,CAAE,IAAI,CAAEC,EAAE,CAAE,GAAG,CAAEC,EAAE,CAAE,KAAM,CAAC,QAEhCpB,CAA2B,EACzBc,CAAK,CAACA,KAAK,EACXd,CAA2B,CAACc,CAAK,CAACA,KAAK,CAC3C,CAAC,CACAA,CAAK,CAAC9B,KAAK,CAAC6B,GAAG,CAAC,CAACQ,CAAI,CAAEC,CAAK,GAEzBjD,KAAA,CAAAqC,aAAA,CAACrC,KAAK,CAAC2C,QAAQ,EAACC,GAAG,CAAG,GAAEH,CAAK,CAACG,GAAI,IAAGK,CAAM,EAAE,EAC3CjD,KAAA,CAAAqC,aAAA,CAAC/B,UAAU,EACTsB,IAAI,CAAEA,CAAK,CACXoB,IAAI,CAAEA,CAAK,CACXE,KAAK,CAAE,CAAE,CACTtC,WAAW,CAAEA,CAAY,CACzBG,YAAY,CAAEA,CAAa,CAC3BM,aAAa,CAAEA,CAAc,CAC7BE,0BAA0B,CAAEA,CAA2B,CACvDL,SAAS,CAAEA,CAAU,CACrBC,iBAAiB,CAAEA,CAAkB,CACrCH,WAAW,CAAEA,CAAY,CACzBM,UAAU,CAAEA,CAAW,CACvBL,gBAAgB,CAAEA,CAAiB,CACnCa,cAAc,CAAEA,CAAe,CAC/BD,IAAI,CAAEA,CAAK,CACXI,aAAa,CAAEA,CAAc,CAC9B,CACa,CAEnB,CACa,CAEnB,CACE,CAET,CAAC,CAED,MAAO,MAAM,CAAAkB,MAAM,CAAGlD,UAAU,CAACM,YAAY,CAAoB"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export type PropsWithHTMLAttributes<Props, HTMLElement> = Props & Omit<React.HTMLAttributes<HTMLElement>, keyof Props | 'css'>;
3
- export type PropsWithHTMLAttributesAndRef<Props, HTMLElement> = PropsWithHTMLAttributes<Props, HTMLElement> & React.RefAttributes<HTMLElement>;
@@ -1,2 +0,0 @@
1
- export{};
2
- //# sourceMappingURL=PropsWithHTMLAttributes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PropsWithHTMLAttributes.js","names":[],"sources":["../../../../../src/utils/types/PropsWithHTMLAttributes.ts"],"sourcesContent":["export type PropsWithHTMLAttributes<Props, HTMLElement> = Props &\n Omit<React.HTMLAttributes<HTMLElement>, keyof Props | 'css'>;\n\nexport type PropsWithHTMLAttributesAndRef<Props, HTMLElement> =\n PropsWithHTMLAttributes<Props, HTMLElement> &\n React.RefAttributes<HTMLElement>;\n"],"mappings":""}