@uzum-tech/ui 1.11.2 → 1.12.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 (279) hide show
  1. package/dist/index.js +10829 -6652
  2. package/dist/index.prod.js +4 -4
  3. package/es/_internal/icons/BurgerMenuIcon.d.ts +2 -0
  4. package/es/_internal/icons/BurgerMenuIcon.js +4 -0
  5. package/es/_internal/icons/Logout.d.ts +2 -0
  6. package/es/_internal/icons/Logout.js +4 -0
  7. package/es/_internal/icons/OzbekFlag.d.ts +2 -0
  8. package/es/_internal/icons/OzbekFlag.js +15 -0
  9. package/es/_internal/icons/RussiaFlag.d.ts +2 -0
  10. package/es/_internal/icons/RussiaFlag.js +11 -0
  11. package/es/_internal/icons/SendFilled.d.ts +2 -0
  12. package/es/_internal/icons/SendFilled.js +9 -0
  13. package/es/_internal/icons/index.d.ts +5 -0
  14. package/es/_internal/icons/index.js +5 -0
  15. package/es/_styles/common/dark.js +1 -1
  16. package/es/_styles/common/light.d.ts +1 -0
  17. package/es/_styles/common/light.js +1 -1
  18. package/es/chat/src/Chat.d.ts +464 -83
  19. package/es/chat/src/Chat.js +17 -2
  20. package/es/chat/src/ChatListItems.d.ts +497 -94
  21. package/es/chat/src/ChatListItems.js +1 -1
  22. package/es/chat/src/ChatMessages.d.ts +501 -94
  23. package/es/chat/src/ChatMessages.js +115 -22
  24. package/es/chat/src/ChatParts/MainArea.d.ts +7 -3
  25. package/es/chat/src/ChatParts/MainArea.js +110 -14
  26. package/es/chat/src/ChatParts/Sidebar.d.ts +64 -11
  27. package/es/chat/src/interface.d.ts +18 -0
  28. package/es/chat/src/interface.js +6 -0
  29. package/es/chat/src/styles/index.cssr.js +22 -1
  30. package/es/chat/styles/dark.d.ts +41 -8
  31. package/es/chat/styles/dark.js +6 -2
  32. package/es/chat/styles/light.d.ts +42 -8
  33. package/es/chat/styles/light.js +7 -2
  34. package/es/components.d.ts +3 -0
  35. package/es/components.js +3 -0
  36. package/es/config-provider/src/internal-interface.d.ts +17 -0
  37. package/es/dialog/src/DialogProvider.d.ts +2 -0
  38. package/es/form/src/FormItemCol.d.ts +2 -2
  39. package/es/form/src/FormItemGridItem.d.ts +2 -2
  40. package/es/form/src/FormItemRow.d.ts +1 -1
  41. package/es/grid/src/Grid.d.ts +1 -1
  42. package/es/grid/src/GridItem.d.ts +2 -2
  43. package/es/header/demos/mock.d.ts +2 -0
  44. package/es/header/demos/mock.js +235 -0
  45. package/es/header/index.d.ts +12 -0
  46. package/es/header/index.js +10 -0
  47. package/es/header/src/Header.d.ts +604 -0
  48. package/es/header/src/Header.js +320 -0
  49. package/es/header/src/HeaderActions.d.ts +120 -0
  50. package/es/header/src/HeaderActions.js +166 -0
  51. package/es/header/src/HeaderDesktopLayout.d.ts +25 -0
  52. package/es/header/src/HeaderDesktopLayout.js +24 -0
  53. package/es/header/src/HeaderMobileLayout.d.ts +25 -0
  54. package/es/header/src/HeaderMobileLayout.js +21 -0
  55. package/es/header/src/HeaderNavigation.d.ts +128 -0
  56. package/es/header/src/HeaderNavigation.js +172 -0
  57. package/es/header/src/HeaderSearchDesktop.d.ts +79 -0
  58. package/es/header/src/HeaderSearchDesktop.js +77 -0
  59. package/es/header/src/HeaderSearchMobile.d.ts +73 -0
  60. package/es/header/src/HeaderSearchMobile.js +126 -0
  61. package/es/header/src/HeaderSearchResults.d.ts +81 -0
  62. package/es/header/src/HeaderSearchResults.js +74 -0
  63. package/es/header/src/constants.d.ts +1 -0
  64. package/es/header/src/constants.js +1 -0
  65. package/es/header/src/interface.d.ts +58 -0
  66. package/es/header/src/interface.js +1 -0
  67. package/es/header/src/mobile/HeaderMobile.d.ts +218 -0
  68. package/es/header/src/mobile/HeaderMobile.js +241 -0
  69. package/es/header/src/styles/index.cssr.d.ts +6 -0
  70. package/es/header/src/styles/index.cssr.js +519 -0
  71. package/es/header/src/utils.d.ts +12 -0
  72. package/es/header/src/utils.js +47 -0
  73. package/es/header/styles/dark.d.ts +36 -0
  74. package/es/header/styles/dark.js +9 -0
  75. package/es/header/styles/index.d.ts +3 -0
  76. package/es/header/styles/index.js +2 -0
  77. package/es/header/styles/light.d.ts +72 -0
  78. package/es/header/styles/light.js +45 -0
  79. package/es/icon/src/Icon.d.ts +3 -0
  80. package/es/icon/src/Icon.js +3 -2
  81. package/es/icon-bar/index.d.ts +4 -0
  82. package/es/icon-bar/index.js +2 -0
  83. package/es/icon-bar/src/IconBar.d.ts +175 -0
  84. package/es/icon-bar/src/IconBar.js +57 -0
  85. package/es/icon-bar/src/IconBarItem.d.ts +163 -0
  86. package/es/icon-bar/src/IconBarItem.js +50 -0
  87. package/es/icon-bar/src/styles/index.cssr.d.ts +2 -0
  88. package/es/icon-bar/src/styles/index.cssr.js +62 -0
  89. package/es/icon-bar/styles/dark.d.ts +3 -0
  90. package/es/icon-bar/styles/dark.js +8 -0
  91. package/es/icon-bar/styles/index.d.ts +3 -0
  92. package/es/icon-bar/styles/index.js +2 -0
  93. package/es/icon-bar/styles/light.d.ts +19 -0
  94. package/es/icon-bar/styles/light.js +23 -0
  95. package/es/locales/common/arDZ.js +11 -1
  96. package/es/locales/common/deDE.js +11 -1
  97. package/es/locales/common/enGB.js +11 -1
  98. package/es/locales/common/enUS.d.ts +10 -0
  99. package/es/locales/common/enUS.js +11 -1
  100. package/es/locales/common/eo.js +11 -1
  101. package/es/locales/common/esAR.js +11 -1
  102. package/es/locales/common/faIR.js +11 -1
  103. package/es/locales/common/frFR.js +11 -1
  104. package/es/locales/common/idID.js +11 -1
  105. package/es/locales/common/itIT.js +11 -1
  106. package/es/locales/common/jaJP.js +11 -1
  107. package/es/locales/common/koKR.js +11 -1
  108. package/es/locales/common/nbNO.js +11 -1
  109. package/es/locales/common/nlNL.js +11 -1
  110. package/es/locales/common/plPL.js +11 -1
  111. package/es/locales/common/ptBR.js +11 -1
  112. package/es/locales/common/ruRU.js +11 -1
  113. package/es/locales/common/skSK.js +11 -1
  114. package/es/locales/common/svSE.js +11 -1
  115. package/es/locales/common/thTH.js +11 -1
  116. package/es/locales/common/trTR.js +11 -1
  117. package/es/locales/common/ukUA.js +11 -1
  118. package/es/locales/common/viVN.js +11 -1
  119. package/es/locales/common/zhCN.js +11 -1
  120. package/es/locales/common/zhTW.js +11 -1
  121. package/es/qr-code/index.d.ts +2 -0
  122. package/es/qr-code/index.js +1 -0
  123. package/es/qr-code/src/QrCode.d.ts +171 -0
  124. package/es/qr-code/src/QrCode.js +229 -0
  125. package/es/qr-code/src/qrcodegen.d.ts +95 -0
  126. package/es/qr-code/src/qrcodegen.js +949 -0
  127. package/es/qr-code/src/styles/index.cssr.d.ts +2 -0
  128. package/es/qr-code/src/styles/index.cssr.js +8 -0
  129. package/es/qr-code/styles/dark.d.ts +3 -0
  130. package/es/qr-code/styles/dark.js +11 -0
  131. package/es/qr-code/styles/index.d.ts +3 -0
  132. package/es/qr-code/styles/index.js +2 -0
  133. package/es/qr-code/styles/light.d.ts +9 -0
  134. package/es/qr-code/styles/light.js +12 -0
  135. package/es/theme-editor/src/ThemeEditor.d.ts +1 -0
  136. package/es/themes/dark.js +7 -1
  137. package/es/themes/light.js +7 -1
  138. package/es/version.d.ts +1 -1
  139. package/es/version.js +1 -1
  140. package/lib/_internal/icons/BurgerMenuIcon.d.ts +2 -0
  141. package/lib/_internal/icons/BurgerMenuIcon.js +6 -0
  142. package/lib/_internal/icons/Logout.d.ts +2 -0
  143. package/lib/_internal/icons/Logout.js +6 -0
  144. package/lib/_internal/icons/OzbekFlag.d.ts +2 -0
  145. package/lib/_internal/icons/OzbekFlag.js +17 -0
  146. package/lib/_internal/icons/RussiaFlag.d.ts +2 -0
  147. package/lib/_internal/icons/RussiaFlag.js +13 -0
  148. package/lib/_internal/icons/SendFilled.d.ts +2 -0
  149. package/lib/_internal/icons/SendFilled.js +11 -0
  150. package/lib/_internal/icons/index.d.ts +5 -0
  151. package/lib/_internal/icons/index.js +11 -1
  152. package/lib/_styles/common/dark.js +1 -1
  153. package/lib/_styles/common/light.d.ts +1 -0
  154. package/lib/_styles/common/light.js +1 -1
  155. package/lib/chat/src/Chat.d.ts +464 -83
  156. package/lib/chat/src/Chat.js +17 -2
  157. package/lib/chat/src/ChatListItems.d.ts +497 -94
  158. package/lib/chat/src/ChatListItems.js +1 -1
  159. package/lib/chat/src/ChatMessages.d.ts +501 -94
  160. package/lib/chat/src/ChatMessages.js +113 -20
  161. package/lib/chat/src/ChatParts/MainArea.d.ts +7 -3
  162. package/lib/chat/src/ChatParts/MainArea.js +108 -12
  163. package/lib/chat/src/ChatParts/Sidebar.d.ts +64 -11
  164. package/lib/chat/src/interface.d.ts +18 -0
  165. package/lib/chat/src/interface.js +7 -1
  166. package/lib/chat/src/styles/index.cssr.js +22 -1
  167. package/lib/chat/styles/dark.d.ts +41 -8
  168. package/lib/chat/styles/dark.js +6 -2
  169. package/lib/chat/styles/light.d.ts +42 -8
  170. package/lib/chat/styles/light.js +7 -2
  171. package/lib/components.d.ts +3 -0
  172. package/lib/components.js +3 -0
  173. package/lib/config-provider/src/internal-interface.d.ts +17 -0
  174. package/lib/dialog/src/DialogProvider.d.ts +2 -0
  175. package/lib/form/src/FormItemCol.d.ts +2 -2
  176. package/lib/form/src/FormItemGridItem.d.ts +2 -2
  177. package/lib/form/src/FormItemRow.d.ts +1 -1
  178. package/lib/grid/src/Grid.d.ts +1 -1
  179. package/lib/grid/src/GridItem.d.ts +2 -2
  180. package/lib/header/demos/mock.d.ts +2 -0
  181. package/lib/header/demos/mock.js +238 -0
  182. package/lib/header/index.d.ts +12 -0
  183. package/lib/header/index.js +48 -0
  184. package/lib/header/src/Header.d.ts +604 -0
  185. package/lib/header/src/Header.js +349 -0
  186. package/lib/header/src/HeaderActions.d.ts +120 -0
  187. package/lib/header/src/HeaderActions.js +172 -0
  188. package/lib/header/src/HeaderDesktopLayout.d.ts +25 -0
  189. package/lib/header/src/HeaderDesktopLayout.js +27 -0
  190. package/lib/header/src/HeaderMobileLayout.d.ts +25 -0
  191. package/lib/header/src/HeaderMobileLayout.js +24 -0
  192. package/lib/header/src/HeaderNavigation.d.ts +128 -0
  193. package/lib/header/src/HeaderNavigation.js +175 -0
  194. package/lib/header/src/HeaderSearchDesktop.d.ts +79 -0
  195. package/lib/header/src/HeaderSearchDesktop.js +83 -0
  196. package/lib/header/src/HeaderSearchMobile.d.ts +73 -0
  197. package/lib/header/src/HeaderSearchMobile.js +132 -0
  198. package/lib/header/src/HeaderSearchResults.d.ts +81 -0
  199. package/lib/header/src/HeaderSearchResults.js +77 -0
  200. package/lib/header/src/constants.d.ts +1 -0
  201. package/lib/header/src/constants.js +4 -0
  202. package/lib/header/src/interface.d.ts +58 -0
  203. package/lib/header/src/interface.js +2 -0
  204. package/lib/header/src/mobile/HeaderMobile.d.ts +218 -0
  205. package/lib/header/src/mobile/HeaderMobile.js +244 -0
  206. package/lib/header/src/styles/index.cssr.d.ts +6 -0
  207. package/lib/header/src/styles/index.cssr.js +525 -0
  208. package/lib/header/src/utils.d.ts +12 -0
  209. package/lib/header/src/utils.js +58 -0
  210. package/lib/header/styles/dark.d.ts +36 -0
  211. package/lib/header/styles/dark.js +11 -0
  212. package/lib/header/styles/index.d.ts +3 -0
  213. package/lib/header/styles/index.js +10 -0
  214. package/lib/header/styles/light.d.ts +72 -0
  215. package/lib/header/styles/light.js +49 -0
  216. package/lib/icon/src/Icon.d.ts +3 -0
  217. package/lib/icon/src/Icon.js +3 -2
  218. package/lib/icon-bar/index.d.ts +4 -0
  219. package/lib/icon-bar/index.js +12 -0
  220. package/lib/icon-bar/src/IconBar.d.ts +175 -0
  221. package/lib/icon-bar/src/IconBar.js +63 -0
  222. package/lib/icon-bar/src/IconBarItem.d.ts +163 -0
  223. package/lib/icon-bar/src/IconBarItem.js +56 -0
  224. package/lib/icon-bar/src/styles/index.cssr.d.ts +2 -0
  225. package/lib/icon-bar/src/styles/index.cssr.js +67 -0
  226. package/lib/icon-bar/styles/dark.d.ts +3 -0
  227. package/lib/icon-bar/styles/dark.js +10 -0
  228. package/lib/icon-bar/styles/index.d.ts +3 -0
  229. package/lib/icon-bar/styles/index.js +10 -0
  230. package/lib/icon-bar/styles/light.d.ts +19 -0
  231. package/lib/icon-bar/styles/light.js +27 -0
  232. package/lib/locales/common/arDZ.js +11 -1
  233. package/lib/locales/common/deDE.js +11 -1
  234. package/lib/locales/common/enGB.js +11 -1
  235. package/lib/locales/common/enUS.d.ts +10 -0
  236. package/lib/locales/common/enUS.js +11 -1
  237. package/lib/locales/common/eo.js +11 -1
  238. package/lib/locales/common/esAR.js +11 -1
  239. package/lib/locales/common/faIR.js +11 -1
  240. package/lib/locales/common/frFR.js +11 -1
  241. package/lib/locales/common/idID.js +11 -1
  242. package/lib/locales/common/itIT.js +11 -1
  243. package/lib/locales/common/jaJP.js +11 -1
  244. package/lib/locales/common/koKR.js +11 -1
  245. package/lib/locales/common/nbNO.js +11 -1
  246. package/lib/locales/common/nlNL.js +11 -1
  247. package/lib/locales/common/plPL.js +11 -1
  248. package/lib/locales/common/ptBR.js +11 -1
  249. package/lib/locales/common/ruRU.js +11 -1
  250. package/lib/locales/common/skSK.js +11 -1
  251. package/lib/locales/common/svSE.js +11 -1
  252. package/lib/locales/common/thTH.js +11 -1
  253. package/lib/locales/common/trTR.js +11 -1
  254. package/lib/locales/common/ukUA.js +11 -1
  255. package/lib/locales/common/viVN.js +11 -1
  256. package/lib/locales/common/zhCN.js +11 -1
  257. package/lib/locales/common/zhTW.js +11 -1
  258. package/lib/qr-code/index.d.ts +2 -0
  259. package/lib/qr-code/index.js +9 -0
  260. package/lib/qr-code/src/QrCode.d.ts +171 -0
  261. package/lib/qr-code/src/QrCode.js +235 -0
  262. package/lib/qr-code/src/qrcodegen.d.ts +95 -0
  263. package/lib/qr-code/src/qrcodegen.js +950 -0
  264. package/lib/qr-code/src/styles/index.cssr.d.ts +2 -0
  265. package/lib/qr-code/src/styles/index.cssr.js +13 -0
  266. package/lib/qr-code/styles/dark.d.ts +3 -0
  267. package/lib/qr-code/styles/dark.js +13 -0
  268. package/lib/qr-code/styles/index.d.ts +3 -0
  269. package/lib/qr-code/styles/index.js +10 -0
  270. package/lib/qr-code/styles/light.d.ts +9 -0
  271. package/lib/qr-code/styles/light.js +14 -0
  272. package/lib/theme-editor/src/ThemeEditor.d.ts +1 -0
  273. package/lib/themes/dark.js +7 -1
  274. package/lib/themes/light.js +7 -1
  275. package/lib/version.d.ts +1 -1
  276. package/lib/version.js +1 -1
  277. package/package.json +1 -1
  278. package/volar.d.ts +166 -153
  279. package/web-types.json +854 -2
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.headerDesktopLayoutProps = void 0;
4
+ const vue_1 = require("vue");
5
+ exports.headerDesktopLayoutProps = {
6
+ mergedClsPrefix: {
7
+ type: String,
8
+ required: true
9
+ },
10
+ themeClass: String,
11
+ cssVars: Object
12
+ };
13
+ exports.default = (0, vue_1.defineComponent)({
14
+ name: 'HeaderDesktopLayout',
15
+ props: exports.headerDesktopLayoutProps,
16
+ render() {
17
+ var _a, _b, _c, _d, _e, _f;
18
+ const blockClass = `${this.mergedClsPrefix}-header`;
19
+ return ((0, vue_1.h)("div", { class: [blockClass, `${blockClass}--desktop`, this.themeClass], style: this.cssVars },
20
+ (0, vue_1.h)("div", { class: `${blockClass}__inner` },
21
+ (0, vue_1.h)("div", { class: `${blockClass}__inner-wrapper` },
22
+ (0, vue_1.h)("div", { class: `${blockClass}__inner-left` }, (_b = (_a = this.$slots).logo) === null || _b === void 0 ? void 0 :
23
+ _b.call(_a),
24
+ (0, vue_1.h)("div", { class: `${blockClass}__navigation` }, (_d = (_c = this.$slots).navigation) === null || _d === void 0 ? void 0 : _d.call(_c))), (_f = (_e = this.$slots).actions) === null || _f === void 0 ? void 0 :
25
+ _f.call(_e)))));
26
+ }
27
+ });
@@ -0,0 +1,25 @@
1
+ import { type PropType, type CSSProperties } from 'vue';
2
+ export declare const headerMobileLayoutProps: {
3
+ readonly mergedClsPrefix: {
4
+ readonly type: PropType<string>;
5
+ readonly required: true;
6
+ };
7
+ readonly themeClass: StringConstructor;
8
+ readonly cssVars: PropType<CSSProperties>;
9
+ };
10
+ declare const _default: import("vue").DefineComponent<{
11
+ readonly mergedClsPrefix: {
12
+ readonly type: PropType<string>;
13
+ readonly required: true;
14
+ };
15
+ readonly themeClass: StringConstructor;
16
+ readonly cssVars: PropType<CSSProperties>;
17
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ readonly mergedClsPrefix: {
19
+ readonly type: PropType<string>;
20
+ readonly required: true;
21
+ };
22
+ readonly themeClass: StringConstructor;
23
+ readonly cssVars: PropType<CSSProperties>;
24
+ }>>, {}, {}>;
25
+ export default _default;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.headerMobileLayoutProps = void 0;
4
+ const vue_1 = require("vue");
5
+ exports.headerMobileLayoutProps = {
6
+ mergedClsPrefix: {
7
+ type: String,
8
+ required: true
9
+ },
10
+ themeClass: String,
11
+ cssVars: Object
12
+ };
13
+ exports.default = (0, vue_1.defineComponent)({
14
+ name: 'HeaderMobileLayout',
15
+ props: exports.headerMobileLayoutProps,
16
+ render() {
17
+ var _a, _b, _c, _d;
18
+ const blockClass = `${this.mergedClsPrefix}-header`;
19
+ return ((0, vue_1.h)("div", { class: [blockClass, `${blockClass}--mobile`, this.themeClass], style: this.cssVars },
20
+ (0, vue_1.h)("div", { class: `${blockClass}__inner` }, (_b = (_a = this.$slots).logo) === null || _b === void 0 ? void 0 :
21
+ _b.call(_a), (_d = (_c = this.$slots).actions) === null || _d === void 0 ? void 0 :
22
+ _d.call(_c))));
23
+ }
24
+ });
@@ -0,0 +1,128 @@
1
+ import { type PropType } from 'vue';
2
+ import { type MaybeArray } from '../../_utils';
3
+ import type { HeaderMenuOption, HeaderMenuPlacement, HeaderMenuTabsProps } from './interface';
4
+ interface InternalMenuItem {
5
+ key: string | number;
6
+ option: HeaderMenuOption;
7
+ }
8
+ export declare const headerNavigationProps: {
9
+ readonly menuOptions: {
10
+ readonly type: PropType<HeaderMenuOption[]>;
11
+ readonly default: () => never[];
12
+ };
13
+ readonly menuPlacement: {
14
+ readonly type: PropType<HeaderMenuPlacement>;
15
+ readonly default: "horizontal";
16
+ };
17
+ readonly menuTrigger: {
18
+ readonly type: PropType<"click" | "hover">;
19
+ readonly default: "hover";
20
+ };
21
+ readonly menuValue: PropType<string | number | null>;
22
+ readonly menuTabsProps: {
23
+ readonly type: PropType<HeaderMenuTabsProps>;
24
+ readonly default: () => {};
25
+ };
26
+ readonly menuCardMinColumnWidth: {
27
+ readonly type: PropType<string | number>;
28
+ readonly default: 220;
29
+ };
30
+ readonly mergedClsPrefix: {
31
+ readonly type: PropType<string>;
32
+ readonly required: true;
33
+ };
34
+ readonly menuPaneClass: {
35
+ readonly type: StringConstructor;
36
+ readonly required: true;
37
+ };
38
+ readonly menuPaneWrapperClass: {
39
+ readonly type: StringConstructor;
40
+ readonly required: true;
41
+ };
42
+ readonly 'onUpdate:menuValue': PropType<MaybeArray<(value: string | number | null) => void>>;
43
+ readonly onUpdateMenuValue: PropType<MaybeArray<(value: string | number | null) => void>>;
44
+ };
45
+ declare const _default: import("vue").DefineComponent<{
46
+ readonly menuOptions: {
47
+ readonly type: PropType<HeaderMenuOption[]>;
48
+ readonly default: () => never[];
49
+ };
50
+ readonly menuPlacement: {
51
+ readonly type: PropType<HeaderMenuPlacement>;
52
+ readonly default: "horizontal";
53
+ };
54
+ readonly menuTrigger: {
55
+ readonly type: PropType<"click" | "hover">;
56
+ readonly default: "hover";
57
+ };
58
+ readonly menuValue: PropType<string | number | null>;
59
+ readonly menuTabsProps: {
60
+ readonly type: PropType<HeaderMenuTabsProps>;
61
+ readonly default: () => {};
62
+ };
63
+ readonly menuCardMinColumnWidth: {
64
+ readonly type: PropType<string | number>;
65
+ readonly default: 220;
66
+ };
67
+ readonly mergedClsPrefix: {
68
+ readonly type: PropType<string>;
69
+ readonly required: true;
70
+ };
71
+ readonly menuPaneClass: {
72
+ readonly type: StringConstructor;
73
+ readonly required: true;
74
+ };
75
+ readonly menuPaneWrapperClass: {
76
+ readonly type: StringConstructor;
77
+ readonly required: true;
78
+ };
79
+ readonly 'onUpdate:menuValue': PropType<MaybeArray<(value: string | number | null) => void>>;
80
+ readonly onUpdateMenuValue: PropType<MaybeArray<(value: string | number | null) => void>>;
81
+ }, {
82
+ normalizedMenuItems: import("vue").ComputedRef<InternalMenuItem[]>;
83
+ resolvedMenuPlacement: import("vue").ComputedRef<"left" | "right" | "top" | "bottom" | undefined>;
84
+ handleMenuValueUpdate: (value: string | number) => void;
85
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
86
+ readonly menuOptions: {
87
+ readonly type: PropType<HeaderMenuOption[]>;
88
+ readonly default: () => never[];
89
+ };
90
+ readonly menuPlacement: {
91
+ readonly type: PropType<HeaderMenuPlacement>;
92
+ readonly default: "horizontal";
93
+ };
94
+ readonly menuTrigger: {
95
+ readonly type: PropType<"click" | "hover">;
96
+ readonly default: "hover";
97
+ };
98
+ readonly menuValue: PropType<string | number | null>;
99
+ readonly menuTabsProps: {
100
+ readonly type: PropType<HeaderMenuTabsProps>;
101
+ readonly default: () => {};
102
+ };
103
+ readonly menuCardMinColumnWidth: {
104
+ readonly type: PropType<string | number>;
105
+ readonly default: 220;
106
+ };
107
+ readonly mergedClsPrefix: {
108
+ readonly type: PropType<string>;
109
+ readonly required: true;
110
+ };
111
+ readonly menuPaneClass: {
112
+ readonly type: StringConstructor;
113
+ readonly required: true;
114
+ };
115
+ readonly menuPaneWrapperClass: {
116
+ readonly type: StringConstructor;
117
+ readonly required: true;
118
+ };
119
+ readonly 'onUpdate:menuValue': PropType<MaybeArray<(value: string | number | null) => void>>;
120
+ readonly onUpdateMenuValue: PropType<MaybeArray<(value: string | number | null) => void>>;
121
+ }>>, {
122
+ readonly menuOptions: HeaderMenuOption[];
123
+ readonly menuPlacement: HeaderMenuPlacement;
124
+ readonly menuTrigger: "hover" | "click";
125
+ readonly menuTabsProps: Partial<import("../../tabs").TabsProps>;
126
+ readonly menuCardMinColumnWidth: string | number;
127
+ }, {}>;
128
+ export default _default;
@@ -0,0 +1,175 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.headerNavigationProps = void 0;
15
+ const vue_1 = require("vue");
16
+ const _utils_1 = require("../../_utils");
17
+ const tabs_1 = require("../../tabs");
18
+ const utils_1 = require("./utils");
19
+ exports.headerNavigationProps = {
20
+ menuOptions: {
21
+ type: Array,
22
+ default: () => []
23
+ },
24
+ menuPlacement: {
25
+ type: String,
26
+ default: 'horizontal'
27
+ },
28
+ menuTrigger: {
29
+ type: String,
30
+ default: 'hover'
31
+ },
32
+ menuValue: [String, Number],
33
+ menuTabsProps: {
34
+ type: Object,
35
+ default: () => ({})
36
+ },
37
+ menuCardMinColumnWidth: {
38
+ type: [Number, String],
39
+ default: 220
40
+ },
41
+ mergedClsPrefix: {
42
+ type: String,
43
+ required: true
44
+ },
45
+ menuPaneClass: {
46
+ type: String,
47
+ required: true
48
+ },
49
+ menuPaneWrapperClass: {
50
+ type: String,
51
+ required: true
52
+ },
53
+ 'onUpdate:menuValue': [Function, Array],
54
+ onUpdateMenuValue: [Function, Array]
55
+ };
56
+ exports.default = (0, vue_1.defineComponent)({
57
+ name: 'HeaderNavigation',
58
+ props: exports.headerNavigationProps,
59
+ setup(props) {
60
+ const normalizedMenuItemsRef = (0, vue_1.computed)(() => {
61
+ return props.menuOptions.map((option, index) => ({
62
+ option,
63
+ key: (0, utils_1.getMenuItemKey)(option, index)
64
+ }));
65
+ });
66
+ const resolvedMenuPlacementRef = (0, vue_1.computed)(() => (0, utils_1.resolvePlacement)(props.menuPlacement));
67
+ function handleMenuValueUpdate(value) {
68
+ const { onUpdateMenuValue } = props;
69
+ const { 'onUpdate:menuValue': _onUpdateMenuValue } = props;
70
+ if (onUpdateMenuValue)
71
+ (0, _utils_1.call)(onUpdateMenuValue, value);
72
+ if (_onUpdateMenuValue)
73
+ (0, _utils_1.call)(_onUpdateMenuValue, value);
74
+ }
75
+ return {
76
+ normalizedMenuItems: normalizedMenuItemsRef,
77
+ resolvedMenuPlacement: resolvedMenuPlacementRef,
78
+ handleMenuValueUpdate
79
+ };
80
+ },
81
+ render() {
82
+ var _a, _b, _c, _d, _e, _f, _g;
83
+ const mergedClsPrefix = this.mergedClsPrefix;
84
+ const blockClass = `${mergedClsPrefix}-header`;
85
+ const { $props } = this;
86
+ const renderMenuItem = (option, key) => {
87
+ if ((0, utils_1.isDividerOption)(option)) {
88
+ return ((0, vue_1.h)("div", { key: key, class: `${blockClass}__menu-divider`, role: "separator" }));
89
+ }
90
+ if ((0, utils_1.isGroupOption)(option)) {
91
+ return renderMenuColumn(option, key);
92
+ }
93
+ const icon = typeof option.icon === 'function' ? option.icon() : null;
94
+ return ((0, vue_1.h)("div", Object.assign({ key: key, class: [
95
+ `${blockClass}__menu-item`,
96
+ option.disabled && `${blockClass}__menu-item--disabled`
97
+ ], role: "button", tabindex: option.disabled ? undefined : 0, onClick: option.onClick }, $props),
98
+ (0, vue_1.h)("span", { class: `${blockClass}__menu-item-main` },
99
+ icon ? ((0, vue_1.h)("span", { class: `${blockClass}__menu-item-icon` }, icon)) : null,
100
+ (0, vue_1.h)("span", { class: `${blockClass}__menu-item-label` }, (0, utils_1.renderOptionLabel)(option))),
101
+ (0, utils_1.renderBadge)(option, `${blockClass}__badge`)));
102
+ };
103
+ const renderMenuColumn = (option, key, asSection = false) => {
104
+ var _a, _b, _c, _d;
105
+ if ((0, utils_1.isDividerOption)(option)) {
106
+ return asSection ? ((0, vue_1.h)("div", { key: key, class: `${blockClass}__menu-divider`, role: "separator" })) : ((0, vue_1.h)("div", { key: key, class: `${blockClass}__menu-divider`, role: "separator" }));
107
+ }
108
+ if ((0, utils_1.isColumnOption)(option)) {
109
+ const sections = (_b = (_a = option.children) === null || _a === void 0 ? void 0 : _a.map((child, index) => renderMenuColumn(child, `${key}-section-${index}`, true))) !== null && _b !== void 0 ? _b : [];
110
+ const content = sections.filter(utils_1.isNotNull);
111
+ if (!content.length)
112
+ return null;
113
+ return ((0, vue_1.h)("div", { key: key, class: `${blockClass}__menu-column` }, content));
114
+ }
115
+ if ((0, utils_1.isGroupOption)(option)) {
116
+ const children = (_d = (_c = option.children) === null || _c === void 0 ? void 0 : _c.map((child, index) => renderMenuItem(child, `${key}-item-${index}`))) !== null && _d !== void 0 ? _d : [];
117
+ const content = children.filter(utils_1.isNotNull);
118
+ if (!content.length)
119
+ return null;
120
+ if (asSection) {
121
+ return ((0, vue_1.h)("div", { key: key, class: `${blockClass}__menu-column-section` },
122
+ (0, vue_1.h)("div", { class: `${blockClass}__menu-column-title` }, (0, utils_1.renderOptionLabel)(option)),
123
+ (0, vue_1.h)("div", { class: `${blockClass}__menu-column-list` }, content)));
124
+ }
125
+ return ((0, vue_1.h)("div", { key: key, class: `${blockClass}__menu-column` },
126
+ (0, vue_1.h)("div", { class: `${blockClass}__menu-column-title` }, (0, utils_1.renderOptionLabel)(option)),
127
+ (0, vue_1.h)("div", { class: `${blockClass}__menu-column-list` }, content)));
128
+ }
129
+ return ((0, vue_1.h)("div", { key: key, class: [
130
+ asSection
131
+ ? `${blockClass}__menu-column-section ${blockClass}__menu-column-section--single`
132
+ : `${blockClass}__menu-column ${blockClass}__menu-column--single`
133
+ ] },
134
+ (0, vue_1.h)("div", { class: `${blockClass}__menu-column-list` }, renderMenuItem(option, `${key}-single`))));
135
+ };
136
+ const renderMenuCard = (item) => {
137
+ var _a, _b, _c;
138
+ const option = item.option;
139
+ if (!((_a = option.children) === null || _a === void 0 ? void 0 : _a.length))
140
+ return null;
141
+ const columns = (_c = (_b = option.children) === null || _b === void 0 ? void 0 : _b.map((child, index) => renderMenuColumn(child, `${item.key}-column-${index}`)).filter(utils_1.isNotNull)) !== null && _c !== void 0 ? _c : [];
142
+ if (!columns.length)
143
+ return null;
144
+ // Подсчитываем количество колонок (children с type: 'column')
145
+ const columnCount = option.children.filter((child) => (0, utils_1.isColumnOption)(child) || !(0, utils_1.isDividerOption)(child)).length;
146
+ return ((0, vue_1.h)("div", { class: `${blockClass}__menu-card` },
147
+ (0, vue_1.h)("div", { class: `${blockClass}__menu-grid`, style: {
148
+ gridTemplateColumns: `repeat(${columnCount}, minmax(var(--u-header-card-min-col-width), 1fr))`
149
+ } }, columns)));
150
+ };
151
+ const menuItems = this.normalizedMenuItems;
152
+ const activeValue = (_a = this.menuValue) !== null && _a !== void 0 ? _a : undefined;
153
+ const menuTabsProps = this.menuTabsProps;
154
+ const _h = menuTabsProps || {}, { class: tabsClass, paneClass, paneWrapperClass, 'onUpdate:value': userOnUpdateValue, onUpdateValue: userOnUpdateValueCompat } = _h, restTabsProps = __rest(_h, ["class", "paneClass", "paneWrapperClass", 'onUpdate:value', "onUpdateValue"]);
155
+ const tabsNode = menuItems.length > 0 ? ((0, vue_1.h)(tabs_1.UTabs, Object.assign({}, restTabsProps, { value: activeValue !== null && activeValue !== void 0 ? activeValue : undefined, type: (_b = restTabsProps.type) !== null && _b !== void 0 ? _b : 'bar', animated: (_c = restTabsProps.animated) !== null && _c !== void 0 ? _c : true, trigger: (_d = restTabsProps.trigger) !== null && _d !== void 0 ? _d : this.menuTrigger, placement: (_e = restTabsProps.placement) !== null && _e !== void 0 ? _e : this.resolvedMenuPlacement, tabsPadding: (_f = restTabsProps.tabsPadding) !== null && _f !== void 0 ? _f : 0, justifyContent: (_g = restTabsProps.justifyContent) !== null && _g !== void 0 ? _g : 'center', paneClass: [this.menuPaneClass, paneClass].filter(Boolean).join(' ') ||
156
+ undefined, paneWrapperClass: [this.menuPaneWrapperClass, paneWrapperClass]
157
+ .filter(Boolean)
158
+ .join(' ') || undefined, class: [`${blockClass}__tabs`, tabsClass], "onUpdate:value": (value) => {
159
+ this.handleMenuValueUpdate(value);
160
+ if (userOnUpdateValue)
161
+ (0, _utils_1.call)(userOnUpdateValue, value);
162
+ if (userOnUpdateValueCompat) {
163
+ (0, _utils_1.call)(userOnUpdateValueCompat, value);
164
+ }
165
+ } }), {
166
+ default: () => menuItems.map((item) => ((0, vue_1.h)(tabs_1.UTabPane, { key: item.key, name: item.key, disabled: !!item.option.disabled, "display-directive": "show", tab: (0, vue_1.h)("div", { class: `${blockClass}__tab` },
167
+ item.option.icon ? ((0, vue_1.h)("span", { class: `${blockClass}__tab-icon` }, typeof item.option.icon === 'function'
168
+ ? item.option.icon()
169
+ : item.option.icon)) : null,
170
+ (0, vue_1.h)("span", { class: `${blockClass}__tab-label` }, (0, utils_1.renderOptionLabel)(item.option)),
171
+ (0, utils_1.renderBadge)(item.option, `${blockClass}__badge`)) }, { default: () => renderMenuCard(item) })))
172
+ })) : null;
173
+ return tabsNode;
174
+ }
175
+ });
@@ -0,0 +1,79 @@
1
+ import { type PropType, type CSSProperties } from 'vue';
2
+ import type { HeaderSearchResult } from './interface';
3
+ export declare const headerSearchDesktopProps: {
4
+ readonly searchValue: {
5
+ readonly type: StringConstructor;
6
+ readonly default: "";
7
+ };
8
+ readonly searchResults: {
9
+ readonly type: PropType<HeaderSearchResult[]>;
10
+ readonly default: () => never[];
11
+ };
12
+ readonly searchLoading: {
13
+ readonly type: BooleanConstructor;
14
+ readonly default: false;
15
+ };
16
+ readonly mergedClsPrefix: {
17
+ readonly type: PropType<string>;
18
+ readonly required: true;
19
+ };
20
+ readonly cssVars: PropType<CSSProperties>;
21
+ readonly onSearchInput: PropType<(value: string) => void>;
22
+ readonly onSearchClose: PropType<() => void>;
23
+ readonly onSearchSubmit: PropType<() => void>;
24
+ readonly onResultSelect: PropType<(result: HeaderSearchResult) => void>;
25
+ };
26
+ declare const _default: import("vue").DefineComponent<{
27
+ readonly searchValue: {
28
+ readonly type: StringConstructor;
29
+ readonly default: "";
30
+ };
31
+ readonly searchResults: {
32
+ readonly type: PropType<HeaderSearchResult[]>;
33
+ readonly default: () => never[];
34
+ };
35
+ readonly searchLoading: {
36
+ readonly type: BooleanConstructor;
37
+ readonly default: false;
38
+ };
39
+ readonly mergedClsPrefix: {
40
+ readonly type: PropType<string>;
41
+ readonly required: true;
42
+ };
43
+ readonly cssVars: PropType<CSSProperties>;
44
+ readonly onSearchInput: PropType<(value: string) => void>;
45
+ readonly onSearchClose: PropType<() => void>;
46
+ readonly onSearchSubmit: PropType<() => void>;
47
+ readonly onResultSelect: PropType<(result: HeaderSearchResult) => void>;
48
+ }, {
49
+ search: import("vue").Ref<string>;
50
+ searchText: import("vue").ComputedRef<string>;
51
+ placeholder: import("vue").ComputedRef<string>;
52
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
53
+ readonly searchValue: {
54
+ readonly type: StringConstructor;
55
+ readonly default: "";
56
+ };
57
+ readonly searchResults: {
58
+ readonly type: PropType<HeaderSearchResult[]>;
59
+ readonly default: () => never[];
60
+ };
61
+ readonly searchLoading: {
62
+ readonly type: BooleanConstructor;
63
+ readonly default: false;
64
+ };
65
+ readonly mergedClsPrefix: {
66
+ readonly type: PropType<string>;
67
+ readonly required: true;
68
+ };
69
+ readonly cssVars: PropType<CSSProperties>;
70
+ readonly onSearchInput: PropType<(value: string) => void>;
71
+ readonly onSearchClose: PropType<() => void>;
72
+ readonly onSearchSubmit: PropType<() => void>;
73
+ readonly onResultSelect: PropType<(result: HeaderSearchResult) => void>;
74
+ }>>, {
75
+ readonly searchValue: string;
76
+ readonly searchResults: HeaderSearchResult[];
77
+ readonly searchLoading: boolean;
78
+ }, {}>;
79
+ export default _default;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.headerSearchDesktopProps = void 0;
7
+ const vue_1 = require("vue");
8
+ const button_1 = require("../../button");
9
+ const icon_1 = require("../../icon");
10
+ const input_1 = require("../../input");
11
+ const flex_1 = require("../../flex");
12
+ const HeaderSearchResults_1 = __importDefault(require("./HeaderSearchResults"));
13
+ const _mixins_1 = require("../../_mixins");
14
+ const typography_1 = require("../../typography");
15
+ const icons_1 = require("../../_internal/icons");
16
+ exports.headerSearchDesktopProps = {
17
+ searchValue: {
18
+ type: String,
19
+ default: ''
20
+ },
21
+ searchResults: {
22
+ type: Array,
23
+ default: () => []
24
+ },
25
+ searchLoading: {
26
+ type: Boolean,
27
+ default: false
28
+ },
29
+ mergedClsPrefix: {
30
+ type: String,
31
+ required: true
32
+ },
33
+ cssVars: Object,
34
+ onSearchInput: Function,
35
+ onSearchClose: Function,
36
+ onSearchSubmit: Function,
37
+ onResultSelect: Function
38
+ };
39
+ exports.default = (0, vue_1.defineComponent)({
40
+ name: 'HeaderSearchDesktop',
41
+ props: exports.headerSearchDesktopProps,
42
+ setup() {
43
+ const { localeRef } = (0, _mixins_1.useLocale)('Header');
44
+ const search = (0, vue_1.ref)('');
45
+ const searchText = (0, vue_1.computed)(() => localeRef.value.desktopSearchTitle);
46
+ const placeholder = (0, vue_1.computed)(() => localeRef.value.searchPlaceholder);
47
+ return {
48
+ search,
49
+ searchText,
50
+ placeholder
51
+ };
52
+ },
53
+ render() {
54
+ const blockClass = `${this.mergedClsPrefix}-header-search-desktop`;
55
+ return ((0, vue_1.h)("div", { class: blockClass, style: this.cssVars },
56
+ (0, vue_1.h)(button_1.UButton, { text: true, class: `${blockClass}__close`, onClick: this.onSearchClose }, {
57
+ default: () => ((0, vue_1.h)(icon_1.UIcon, { size: 24, color: "#C5C7CA" }, { default: () => (0, vue_1.h)(icons_1.CloseIcon, null) }))
58
+ }),
59
+ (0, vue_1.h)(flex_1.UFlex, { class: `${blockClass}__title`, justify: "space-between" },
60
+ (0, vue_1.h)(typography_1.UText, { variant: "title-l-medium", text: this.searchText })),
61
+ (0, vue_1.h)("div", { class: `${blockClass}__content` },
62
+ (0, vue_1.h)("div", { class: `${blockClass}__input-wrapper` },
63
+ (0, vue_1.h)(input_1.UInput, { value: this.searchValue, class: `${blockClass}__input`, placeholder: this.placeholder, autofocus: true, onKeyup: (e) => {
64
+ var _a, _b;
65
+ if (e.key === 'Enter') {
66
+ (_a = this.onSearchSubmit) === null || _a === void 0 ? void 0 : _a.call(this);
67
+ }
68
+ else if (e.key === 'Escape') {
69
+ (_b = this.onSearchClose) === null || _b === void 0 ? void 0 : _b.call(this);
70
+ }
71
+ }, onUpdateValue: this.onSearchInput }, {
72
+ prefix: () => ((0, vue_1.h)(icon_1.UIcon, { size: 20 }, { default: () => (0, vue_1.h)(icons_1.SearchIcon, null) }))
73
+ }))),
74
+ (0, vue_1.h)(HeaderSearchResults_1.default, {
75
+ results: this.searchResults,
76
+ loading: this.searchLoading,
77
+ query: this.searchValue,
78
+ mergedClsPrefix: this.mergedClsPrefix,
79
+ cssVars: this.cssVars,
80
+ onSelect: this.onResultSelect
81
+ })));
82
+ }
83
+ });
@@ -0,0 +1,73 @@
1
+ import { type PropType, CSSProperties } from 'vue';
2
+ import type { HeaderSearchResult, HeaderSearchHandler } from './interface';
3
+ export declare const headerSearchMobileProps: {
4
+ readonly show: {
5
+ readonly type: BooleanConstructor;
6
+ readonly default: false;
7
+ };
8
+ readonly cssVars: {
9
+ readonly type: PropType<CSSProperties>;
10
+ readonly default: () => {};
11
+ };
12
+ readonly mergedClsPrefix: {
13
+ readonly type: PropType<string>;
14
+ readonly required: true;
15
+ };
16
+ readonly onClose: PropType<() => void>;
17
+ readonly onSearch: PropType<HeaderSearchHandler>;
18
+ readonly onSearchResultSelect: PropType<(result: HeaderSearchResult) => void>;
19
+ };
20
+ declare const _default: import("vue").DefineComponent<{
21
+ readonly show: {
22
+ readonly type: BooleanConstructor;
23
+ readonly default: false;
24
+ };
25
+ readonly cssVars: {
26
+ readonly type: PropType<CSSProperties>;
27
+ readonly default: () => {};
28
+ };
29
+ readonly mergedClsPrefix: {
30
+ readonly type: PropType<string>;
31
+ readonly required: true;
32
+ };
33
+ readonly onClose: PropType<() => void>;
34
+ readonly onSearch: PropType<HeaderSearchHandler>;
35
+ readonly onSearchResultSelect: PropType<(result: HeaderSearchResult) => void>;
36
+ }, {
37
+ placeholder: import("vue").ComputedRef<string>;
38
+ searchValue: import("vue").Ref<string>;
39
+ searchResults: import("vue").Ref<{
40
+ key: string | number;
41
+ label: string;
42
+ description?: string | undefined;
43
+ icon?: (() => import("vue").VNodeChild) | undefined;
44
+ extra?: string | undefined;
45
+ onClick?: (() => void) | undefined;
46
+ disabled?: boolean | undefined;
47
+ }[]>;
48
+ searchLoading: import("vue").Ref<boolean>;
49
+ handleSearchInput: (value: string) => void;
50
+ handleSearch: () => Promise<void>;
51
+ handleClose: () => void;
52
+ handleResultSelect: (result: HeaderSearchResult) => void;
53
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
54
+ readonly show: {
55
+ readonly type: BooleanConstructor;
56
+ readonly default: false;
57
+ };
58
+ readonly cssVars: {
59
+ readonly type: PropType<CSSProperties>;
60
+ readonly default: () => {};
61
+ };
62
+ readonly mergedClsPrefix: {
63
+ readonly type: PropType<string>;
64
+ readonly required: true;
65
+ };
66
+ readonly onClose: PropType<() => void>;
67
+ readonly onSearch: PropType<HeaderSearchHandler>;
68
+ readonly onSearchResultSelect: PropType<(result: HeaderSearchResult) => void>;
69
+ }>>, {
70
+ readonly show: boolean;
71
+ readonly cssVars: CSSProperties;
72
+ }, {}>;
73
+ export default _default;