@uzum-tech/ui 1.11.1 → 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.
- package/dist/index.js +10830 -6653
- package/dist/index.prod.js +4 -4
- package/es/_internal/icons/BurgerMenuIcon.d.ts +2 -0
- package/es/_internal/icons/BurgerMenuIcon.js +4 -0
- package/es/_internal/icons/Logout.d.ts +2 -0
- package/es/_internal/icons/Logout.js +4 -0
- package/es/_internal/icons/OzbekFlag.d.ts +2 -0
- package/es/_internal/icons/OzbekFlag.js +15 -0
- package/es/_internal/icons/RussiaFlag.d.ts +2 -0
- package/es/_internal/icons/RussiaFlag.js +11 -0
- package/es/_internal/icons/SendFilled.d.ts +2 -0
- package/es/_internal/icons/SendFilled.js +9 -0
- package/es/_internal/icons/index.d.ts +5 -0
- package/es/_internal/icons/index.js +5 -0
- package/es/_styles/common/dark.js +1 -1
- package/es/_styles/common/light.d.ts +1 -0
- package/es/_styles/common/light.js +1 -1
- package/es/chat/src/Chat.d.ts +464 -83
- package/es/chat/src/Chat.js +17 -2
- package/es/chat/src/ChatListItems.d.ts +497 -94
- package/es/chat/src/ChatListItems.js +1 -1
- package/es/chat/src/ChatMessages.d.ts +501 -94
- package/es/chat/src/ChatMessages.js +115 -22
- package/es/chat/src/ChatParts/MainArea.d.ts +7 -3
- package/es/chat/src/ChatParts/MainArea.js +110 -14
- package/es/chat/src/ChatParts/Sidebar.d.ts +64 -11
- package/es/chat/src/interface.d.ts +18 -0
- package/es/chat/src/interface.js +6 -0
- package/es/chat/src/styles/index.cssr.js +22 -1
- package/es/chat/styles/dark.d.ts +41 -8
- package/es/chat/styles/dark.js +6 -2
- package/es/chat/styles/light.d.ts +42 -8
- package/es/chat/styles/light.js +7 -2
- package/es/components.d.ts +3 -0
- package/es/components.js +3 -0
- package/es/config-provider/src/internal-interface.d.ts +17 -0
- package/es/dialog/src/DialogProvider.d.ts +2 -0
- package/es/form/src/FormItemCol.d.ts +2 -2
- package/es/form/src/FormItemGridItem.d.ts +2 -2
- package/es/form/src/FormItemRow.d.ts +1 -1
- package/es/grid/src/Grid.d.ts +1 -1
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/header/demos/mock.d.ts +2 -0
- package/es/header/demos/mock.js +235 -0
- package/es/header/index.d.ts +12 -0
- package/es/header/index.js +10 -0
- package/es/header/src/Header.d.ts +604 -0
- package/es/header/src/Header.js +320 -0
- package/es/header/src/HeaderActions.d.ts +120 -0
- package/es/header/src/HeaderActions.js +166 -0
- package/es/header/src/HeaderDesktopLayout.d.ts +25 -0
- package/es/header/src/HeaderDesktopLayout.js +24 -0
- package/es/header/src/HeaderMobileLayout.d.ts +25 -0
- package/es/header/src/HeaderMobileLayout.js +21 -0
- package/es/header/src/HeaderNavigation.d.ts +128 -0
- package/es/header/src/HeaderNavigation.js +172 -0
- package/es/header/src/HeaderSearchDesktop.d.ts +79 -0
- package/es/header/src/HeaderSearchDesktop.js +77 -0
- package/es/header/src/HeaderSearchMobile.d.ts +73 -0
- package/es/header/src/HeaderSearchMobile.js +126 -0
- package/es/header/src/HeaderSearchResults.d.ts +81 -0
- package/es/header/src/HeaderSearchResults.js +74 -0
- package/es/header/src/constants.d.ts +1 -0
- package/es/header/src/constants.js +1 -0
- package/es/header/src/interface.d.ts +58 -0
- package/es/header/src/interface.js +1 -0
- package/es/header/src/mobile/HeaderMobile.d.ts +218 -0
- package/es/header/src/mobile/HeaderMobile.js +241 -0
- package/es/header/src/styles/index.cssr.d.ts +6 -0
- package/es/header/src/styles/index.cssr.js +519 -0
- package/es/header/src/utils.d.ts +12 -0
- package/es/header/src/utils.js +47 -0
- package/es/header/styles/dark.d.ts +36 -0
- package/es/header/styles/dark.js +9 -0
- package/es/header/styles/index.d.ts +3 -0
- package/es/header/styles/index.js +2 -0
- package/es/header/styles/light.d.ts +72 -0
- package/es/header/styles/light.js +45 -0
- package/es/icon/src/Icon.d.ts +3 -0
- package/es/icon/src/Icon.js +3 -2
- package/es/icon-bar/index.d.ts +4 -0
- package/es/icon-bar/index.js +2 -0
- package/es/icon-bar/src/IconBar.d.ts +175 -0
- package/es/icon-bar/src/IconBar.js +57 -0
- package/es/icon-bar/src/IconBarItem.d.ts +163 -0
- package/es/icon-bar/src/IconBarItem.js +50 -0
- package/es/icon-bar/src/styles/index.cssr.d.ts +2 -0
- package/es/icon-bar/src/styles/index.cssr.js +62 -0
- package/es/icon-bar/styles/dark.d.ts +3 -0
- package/es/icon-bar/styles/dark.js +8 -0
- package/es/icon-bar/styles/index.d.ts +3 -0
- package/es/icon-bar/styles/index.js +2 -0
- package/es/icon-bar/styles/light.d.ts +19 -0
- package/es/icon-bar/styles/light.js +23 -0
- package/es/locales/common/arDZ.js +11 -1
- package/es/locales/common/deDE.js +11 -1
- package/es/locales/common/enGB.js +11 -1
- package/es/locales/common/enUS.d.ts +10 -0
- package/es/locales/common/enUS.js +11 -1
- package/es/locales/common/eo.js +11 -1
- package/es/locales/common/esAR.js +11 -1
- package/es/locales/common/faIR.js +11 -1
- package/es/locales/common/frFR.js +11 -1
- package/es/locales/common/idID.js +11 -1
- package/es/locales/common/itIT.js +11 -1
- package/es/locales/common/jaJP.js +11 -1
- package/es/locales/common/koKR.js +11 -1
- package/es/locales/common/nbNO.js +11 -1
- package/es/locales/common/nlNL.js +11 -1
- package/es/locales/common/plPL.js +11 -1
- package/es/locales/common/ptBR.js +11 -1
- package/es/locales/common/ruRU.js +11 -1
- package/es/locales/common/skSK.js +11 -1
- package/es/locales/common/svSE.js +11 -1
- package/es/locales/common/thTH.js +11 -1
- package/es/locales/common/trTR.js +11 -1
- package/es/locales/common/ukUA.js +11 -1
- package/es/locales/common/viVN.js +11 -1
- package/es/locales/common/zhCN.js +11 -1
- package/es/locales/common/zhTW.js +11 -1
- package/es/modal-fullscreen/src/ModalFull.js +1 -1
- package/es/qr-code/index.d.ts +2 -0
- package/es/qr-code/index.js +1 -0
- package/es/qr-code/src/QrCode.d.ts +171 -0
- package/es/qr-code/src/QrCode.js +229 -0
- package/es/qr-code/src/qrcodegen.d.ts +95 -0
- package/es/qr-code/src/qrcodegen.js +949 -0
- package/es/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/es/qr-code/src/styles/index.cssr.js +8 -0
- package/es/qr-code/styles/dark.d.ts +3 -0
- package/es/qr-code/styles/dark.js +11 -0
- package/es/qr-code/styles/index.d.ts +3 -0
- package/es/qr-code/styles/index.js +2 -0
- package/es/qr-code/styles/light.d.ts +9 -0
- package/es/qr-code/styles/light.js +12 -0
- package/es/theme-editor/src/ThemeEditor.d.ts +1 -0
- package/es/themes/dark.js +7 -1
- package/es/themes/light.js +7 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/icons/BurgerMenuIcon.d.ts +2 -0
- package/lib/_internal/icons/BurgerMenuIcon.js +6 -0
- package/lib/_internal/icons/Logout.d.ts +2 -0
- package/lib/_internal/icons/Logout.js +6 -0
- package/lib/_internal/icons/OzbekFlag.d.ts +2 -0
- package/lib/_internal/icons/OzbekFlag.js +17 -0
- package/lib/_internal/icons/RussiaFlag.d.ts +2 -0
- package/lib/_internal/icons/RussiaFlag.js +13 -0
- package/lib/_internal/icons/SendFilled.d.ts +2 -0
- package/lib/_internal/icons/SendFilled.js +11 -0
- package/lib/_internal/icons/index.d.ts +5 -0
- package/lib/_internal/icons/index.js +11 -1
- package/lib/_styles/common/dark.js +1 -1
- package/lib/_styles/common/light.d.ts +1 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/chat/src/Chat.d.ts +464 -83
- package/lib/chat/src/Chat.js +17 -2
- package/lib/chat/src/ChatListItems.d.ts +497 -94
- package/lib/chat/src/ChatListItems.js +1 -1
- package/lib/chat/src/ChatMessages.d.ts +501 -94
- package/lib/chat/src/ChatMessages.js +113 -20
- package/lib/chat/src/ChatParts/MainArea.d.ts +7 -3
- package/lib/chat/src/ChatParts/MainArea.js +108 -12
- package/lib/chat/src/ChatParts/Sidebar.d.ts +64 -11
- package/lib/chat/src/interface.d.ts +18 -0
- package/lib/chat/src/interface.js +7 -1
- package/lib/chat/src/styles/index.cssr.js +22 -1
- package/lib/chat/styles/dark.d.ts +41 -8
- package/lib/chat/styles/dark.js +6 -2
- package/lib/chat/styles/light.d.ts +42 -8
- package/lib/chat/styles/light.js +7 -2
- package/lib/components.d.ts +3 -0
- package/lib/components.js +3 -0
- package/lib/config-provider/src/internal-interface.d.ts +17 -0
- package/lib/dialog/src/DialogProvider.d.ts +2 -0
- package/lib/form/src/FormItemCol.d.ts +2 -2
- package/lib/form/src/FormItemGridItem.d.ts +2 -2
- package/lib/form/src/FormItemRow.d.ts +1 -1
- package/lib/grid/src/Grid.d.ts +1 -1
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/header/demos/mock.d.ts +2 -0
- package/lib/header/demos/mock.js +238 -0
- package/lib/header/index.d.ts +12 -0
- package/lib/header/index.js +48 -0
- package/lib/header/src/Header.d.ts +604 -0
- package/lib/header/src/Header.js +349 -0
- package/lib/header/src/HeaderActions.d.ts +120 -0
- package/lib/header/src/HeaderActions.js +172 -0
- package/lib/header/src/HeaderDesktopLayout.d.ts +25 -0
- package/lib/header/src/HeaderDesktopLayout.js +27 -0
- package/lib/header/src/HeaderMobileLayout.d.ts +25 -0
- package/lib/header/src/HeaderMobileLayout.js +24 -0
- package/lib/header/src/HeaderNavigation.d.ts +128 -0
- package/lib/header/src/HeaderNavigation.js +175 -0
- package/lib/header/src/HeaderSearchDesktop.d.ts +79 -0
- package/lib/header/src/HeaderSearchDesktop.js +83 -0
- package/lib/header/src/HeaderSearchMobile.d.ts +73 -0
- package/lib/header/src/HeaderSearchMobile.js +132 -0
- package/lib/header/src/HeaderSearchResults.d.ts +81 -0
- package/lib/header/src/HeaderSearchResults.js +77 -0
- package/lib/header/src/constants.d.ts +1 -0
- package/lib/header/src/constants.js +4 -0
- package/lib/header/src/interface.d.ts +58 -0
- package/lib/header/src/interface.js +2 -0
- package/lib/header/src/mobile/HeaderMobile.d.ts +218 -0
- package/lib/header/src/mobile/HeaderMobile.js +244 -0
- package/lib/header/src/styles/index.cssr.d.ts +6 -0
- package/lib/header/src/styles/index.cssr.js +525 -0
- package/lib/header/src/utils.d.ts +12 -0
- package/lib/header/src/utils.js +58 -0
- package/lib/header/styles/dark.d.ts +36 -0
- package/lib/header/styles/dark.js +11 -0
- package/lib/header/styles/index.d.ts +3 -0
- package/lib/header/styles/index.js +10 -0
- package/lib/header/styles/light.d.ts +72 -0
- package/lib/header/styles/light.js +49 -0
- package/lib/icon/src/Icon.d.ts +3 -0
- package/lib/icon/src/Icon.js +3 -2
- package/lib/icon-bar/index.d.ts +4 -0
- package/lib/icon-bar/index.js +12 -0
- package/lib/icon-bar/src/IconBar.d.ts +175 -0
- package/lib/icon-bar/src/IconBar.js +63 -0
- package/lib/icon-bar/src/IconBarItem.d.ts +163 -0
- package/lib/icon-bar/src/IconBarItem.js +56 -0
- package/lib/icon-bar/src/styles/index.cssr.d.ts +2 -0
- package/lib/icon-bar/src/styles/index.cssr.js +67 -0
- package/lib/icon-bar/styles/dark.d.ts +3 -0
- package/lib/icon-bar/styles/dark.js +10 -0
- package/lib/icon-bar/styles/index.d.ts +3 -0
- package/lib/icon-bar/styles/index.js +10 -0
- package/lib/icon-bar/styles/light.d.ts +19 -0
- package/lib/icon-bar/styles/light.js +27 -0
- package/lib/locales/common/arDZ.js +11 -1
- package/lib/locales/common/deDE.js +11 -1
- package/lib/locales/common/enGB.js +11 -1
- package/lib/locales/common/enUS.d.ts +10 -0
- package/lib/locales/common/enUS.js +11 -1
- package/lib/locales/common/eo.js +11 -1
- package/lib/locales/common/esAR.js +11 -1
- package/lib/locales/common/faIR.js +11 -1
- package/lib/locales/common/frFR.js +11 -1
- package/lib/locales/common/idID.js +11 -1
- package/lib/locales/common/itIT.js +11 -1
- package/lib/locales/common/jaJP.js +11 -1
- package/lib/locales/common/koKR.js +11 -1
- package/lib/locales/common/nbNO.js +11 -1
- package/lib/locales/common/nlNL.js +11 -1
- package/lib/locales/common/plPL.js +11 -1
- package/lib/locales/common/ptBR.js +11 -1
- package/lib/locales/common/ruRU.js +11 -1
- package/lib/locales/common/skSK.js +11 -1
- package/lib/locales/common/svSE.js +11 -1
- package/lib/locales/common/thTH.js +11 -1
- package/lib/locales/common/trTR.js +11 -1
- package/lib/locales/common/ukUA.js +11 -1
- package/lib/locales/common/viVN.js +11 -1
- package/lib/locales/common/zhCN.js +11 -1
- package/lib/locales/common/zhTW.js +11 -1
- package/lib/modal-fullscreen/src/ModalFull.js +1 -1
- package/lib/qr-code/index.d.ts +2 -0
- package/lib/qr-code/index.js +9 -0
- package/lib/qr-code/src/QrCode.d.ts +171 -0
- package/lib/qr-code/src/QrCode.js +235 -0
- package/lib/qr-code/src/qrcodegen.d.ts +95 -0
- package/lib/qr-code/src/qrcodegen.js +950 -0
- package/lib/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/lib/qr-code/src/styles/index.cssr.js +13 -0
- package/lib/qr-code/styles/dark.d.ts +3 -0
- package/lib/qr-code/styles/dark.js +13 -0
- package/lib/qr-code/styles/index.d.ts +3 -0
- package/lib/qr-code/styles/index.js +10 -0
- package/lib/qr-code/styles/light.d.ts +9 -0
- package/lib/qr-code/styles/light.js +14 -0
- package/lib/theme-editor/src/ThemeEditor.d.ts +1 -0
- package/lib/themes/dark.js +7 -1
- package/lib/themes/light.js +7 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +12 -0
- package/web-types.json +854 -2
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { ThemeCommonVars } from '../../_styles/common';
|
|
2
|
+
export declare const self: (vars: ThemeCommonVars) => {
|
|
3
|
+
fontSize: string;
|
|
4
|
+
fontBodyLarge: string;
|
|
5
|
+
fontTitleSmall: string;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
textColor: string;
|
|
8
|
+
mutedTextColor: string;
|
|
9
|
+
borderRadius: string;
|
|
10
|
+
shadow: string;
|
|
11
|
+
navigationGap: string;
|
|
12
|
+
actionGap: string;
|
|
13
|
+
tabTextColor: string;
|
|
14
|
+
tabTextColorHover: string;
|
|
15
|
+
tabTextColorActive: string;
|
|
16
|
+
tabIndicatorColor: string;
|
|
17
|
+
cardBackgroundColor: string;
|
|
18
|
+
cardShadow: string;
|
|
19
|
+
cardBorderRadius: string;
|
|
20
|
+
cardTitleColor: string;
|
|
21
|
+
cardItemColor: string;
|
|
22
|
+
cardItemHoverColor: string;
|
|
23
|
+
cardDividerColor: string;
|
|
24
|
+
cardGap: string;
|
|
25
|
+
cardPadding: string;
|
|
26
|
+
badgeBackgroundColor: string;
|
|
27
|
+
badgeTextColor: string;
|
|
28
|
+
actionIconColor: string;
|
|
29
|
+
actionIconColorHover: string;
|
|
30
|
+
mobileBorderColor: string;
|
|
31
|
+
mobileItemHoverColor: string;
|
|
32
|
+
mobileItemPressedColor: string;
|
|
33
|
+
mobileItemActiveColor: string;
|
|
34
|
+
mobileGroupItemColor: string;
|
|
35
|
+
};
|
|
36
|
+
declare const headerLight: import("../../_mixins").Theme<"Header", {
|
|
37
|
+
fontSize: string;
|
|
38
|
+
fontBodyLarge: string;
|
|
39
|
+
fontTitleSmall: string;
|
|
40
|
+
backgroundColor: string;
|
|
41
|
+
textColor: string;
|
|
42
|
+
mutedTextColor: string;
|
|
43
|
+
borderRadius: string;
|
|
44
|
+
shadow: string;
|
|
45
|
+
navigationGap: string;
|
|
46
|
+
actionGap: string;
|
|
47
|
+
tabTextColor: string;
|
|
48
|
+
tabTextColorHover: string;
|
|
49
|
+
tabTextColorActive: string;
|
|
50
|
+
tabIndicatorColor: string;
|
|
51
|
+
cardBackgroundColor: string;
|
|
52
|
+
cardShadow: string;
|
|
53
|
+
cardBorderRadius: string;
|
|
54
|
+
cardTitleColor: string;
|
|
55
|
+
cardItemColor: string;
|
|
56
|
+
cardItemHoverColor: string;
|
|
57
|
+
cardDividerColor: string;
|
|
58
|
+
cardGap: string;
|
|
59
|
+
cardPadding: string;
|
|
60
|
+
badgeBackgroundColor: string;
|
|
61
|
+
badgeTextColor: string;
|
|
62
|
+
actionIconColor: string;
|
|
63
|
+
actionIconColorHover: string;
|
|
64
|
+
mobileBorderColor: string;
|
|
65
|
+
mobileItemHoverColor: string;
|
|
66
|
+
mobileItemPressedColor: string;
|
|
67
|
+
mobileItemActiveColor: string;
|
|
68
|
+
mobileGroupItemColor: string;
|
|
69
|
+
}, unknown>;
|
|
70
|
+
export default headerLight;
|
|
71
|
+
export type HeaderThemeVars = ReturnType<typeof self>;
|
|
72
|
+
export type HeaderTheme = typeof headerLight;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.self = void 0;
|
|
4
|
+
const common_1 = require("../../_styles/common");
|
|
5
|
+
const _mixins_1 = require("../../_mixins");
|
|
6
|
+
const self = (vars) => {
|
|
7
|
+
const { containerPrimary, textPrimary, textSecondary, textTertiary, textQuaternary, borderRadiusLarge, shadowDepth2, fontBodyMedium, fontBodyLarge, fontTitleSmall, brandPrimary500, elementsPrimary, elementsTertiary, elementsQuaternary } = vars;
|
|
8
|
+
return {
|
|
9
|
+
fontSize: fontBodyMedium,
|
|
10
|
+
fontBodyLarge,
|
|
11
|
+
fontTitleSmall,
|
|
12
|
+
backgroundColor: containerPrimary,
|
|
13
|
+
textColor: textPrimary,
|
|
14
|
+
mutedTextColor: textSecondary,
|
|
15
|
+
borderRadius: borderRadiusLarge,
|
|
16
|
+
shadow: shadowDepth2,
|
|
17
|
+
navigationGap: '48px',
|
|
18
|
+
actionGap: '32px',
|
|
19
|
+
tabTextColor: textSecondary,
|
|
20
|
+
tabTextColorHover: textPrimary,
|
|
21
|
+
tabTextColorActive: textPrimary,
|
|
22
|
+
tabIndicatorColor: brandPrimary500,
|
|
23
|
+
cardBackgroundColor: containerPrimary,
|
|
24
|
+
cardShadow: shadowDepth2,
|
|
25
|
+
cardBorderRadius: borderRadiusLarge,
|
|
26
|
+
cardTitleColor: textPrimary,
|
|
27
|
+
cardItemColor: textSecondary,
|
|
28
|
+
cardItemHoverColor: textPrimary,
|
|
29
|
+
cardDividerColor: elementsQuaternary,
|
|
30
|
+
cardGap: '32px',
|
|
31
|
+
cardPadding: '32px 48px',
|
|
32
|
+
badgeBackgroundColor: elementsPrimary,
|
|
33
|
+
badgeTextColor: textQuaternary,
|
|
34
|
+
actionIconColor: textPrimary,
|
|
35
|
+
actionIconColorHover: textPrimary,
|
|
36
|
+
mobileBorderColor: elementsTertiary,
|
|
37
|
+
mobileItemHoverColor: 'rgba(0, 0, 0, 0.03)',
|
|
38
|
+
mobileItemPressedColor: 'rgba(0, 0, 0, 0.05)',
|
|
39
|
+
mobileItemActiveColor: 'rgba(99, 226, 183, 0.08)',
|
|
40
|
+
mobileGroupItemColor: textTertiary
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
exports.self = self;
|
|
44
|
+
const headerLight = (0, _mixins_1.createTheme)({
|
|
45
|
+
name: 'Header',
|
|
46
|
+
common: common_1.commonLight,
|
|
47
|
+
self: exports.self
|
|
48
|
+
});
|
|
49
|
+
exports.default = headerLight;
|
package/lib/icon/src/Icon.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare const iconProps: {
|
|
|
6
6
|
readonly size: PropType<number | string>;
|
|
7
7
|
readonly color: StringConstructor;
|
|
8
8
|
readonly component: PropType<Component>;
|
|
9
|
+
readonly onClick: PropType<(e: MouseEvent) => void>;
|
|
9
10
|
readonly theme: PropType<import("../../_mixins").Theme<"Icon", {
|
|
10
11
|
color: string;
|
|
11
12
|
opacity1Depth: string;
|
|
@@ -37,6 +38,7 @@ export declare const UIcon: import("vue").DefineComponent<{
|
|
|
37
38
|
readonly size: PropType<number | string>;
|
|
38
39
|
readonly color: StringConstructor;
|
|
39
40
|
readonly component: PropType<Component>;
|
|
41
|
+
readonly onClick: PropType<(e: MouseEvent) => void>;
|
|
40
42
|
readonly theme: PropType<import("../../_mixins").Theme<"Icon", {
|
|
41
43
|
color: string;
|
|
42
44
|
opacity1Depth: string;
|
|
@@ -79,6 +81,7 @@ export declare const UIcon: import("vue").DefineComponent<{
|
|
|
79
81
|
readonly size: PropType<number | string>;
|
|
80
82
|
readonly color: StringConstructor;
|
|
81
83
|
readonly component: PropType<Component>;
|
|
84
|
+
readonly onClick: PropType<(e: MouseEvent) => void>;
|
|
82
85
|
readonly theme: PropType<import("../../_mixins").Theme<"Icon", {
|
|
83
86
|
color: string;
|
|
84
87
|
opacity1Depth: string;
|
package/lib/icon/src/Icon.js
CHANGED
|
@@ -9,7 +9,7 @@ const _mixins_1 = require("../../_mixins");
|
|
|
9
9
|
const _utils_1 = require("../../_utils");
|
|
10
10
|
const styles_1 = require("../styles");
|
|
11
11
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
12
|
-
exports.iconProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { depth: [String, Number], size: [Number, String], color: String, component: Object });
|
|
12
|
+
exports.iconProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { depth: [String, Number], size: [Number, String], color: String, component: Object, onClick: Function });
|
|
13
13
|
exports.UIcon = (0, vue_1.defineComponent)({
|
|
14
14
|
_n_icon__: true,
|
|
15
15
|
name: 'Icon',
|
|
@@ -69,7 +69,8 @@ exports.UIcon = (0, vue_1.defineComponent)({
|
|
|
69
69
|
[`${mergedClsPrefix}-icon--color-transition`]: depth !== undefined
|
|
70
70
|
}
|
|
71
71
|
],
|
|
72
|
-
style: [this.cssVars, this.mergedStyle]
|
|
72
|
+
style: [this.cssVars, this.mergedStyle],
|
|
73
|
+
onClick: this.onClick
|
|
73
74
|
}), component ? (0, vue_1.h)(component) : this.$slots);
|
|
74
75
|
}
|
|
75
76
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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.iconBarItemProps = exports.UIconBarItem = exports.iconBarProps = exports.UIconBar = void 0;
|
|
7
|
+
var IconBar_1 = require("./src/IconBar");
|
|
8
|
+
Object.defineProperty(exports, "UIconBar", { enumerable: true, get: function () { return __importDefault(IconBar_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "iconBarProps", { enumerable: true, get: function () { return IconBar_1.iconBarProps; } });
|
|
10
|
+
var IconBarItem_1 = require("./src/IconBarItem");
|
|
11
|
+
Object.defineProperty(exports, "UIconBarItem", { enumerable: true, get: function () { return __importDefault(IconBarItem_1).default; } });
|
|
12
|
+
Object.defineProperty(exports, "iconBarItemProps", { enumerable: true, get: function () { return IconBarItem_1.iconBarItemProps; } });
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
|
+
import { IconBarItemProps } from './IconBarItem';
|
|
3
|
+
import { GridProps } from '../../grid';
|
|
4
|
+
export declare const iconBarProps: {
|
|
5
|
+
readonly items: {
|
|
6
|
+
readonly type: PropType<IconBarItemProps[]>;
|
|
7
|
+
readonly default: () => never[];
|
|
8
|
+
};
|
|
9
|
+
readonly cols: {
|
|
10
|
+
readonly type: NumberConstructor;
|
|
11
|
+
readonly default: 6;
|
|
12
|
+
};
|
|
13
|
+
readonly gridProps: {
|
|
14
|
+
readonly type: PropType<Partial<GridProps>>;
|
|
15
|
+
};
|
|
16
|
+
readonly itemSize: PropType<number | string>;
|
|
17
|
+
readonly theme: PropType<import("../../_mixins").Theme<"IconBar", {
|
|
18
|
+
itemSize: string;
|
|
19
|
+
color: string;
|
|
20
|
+
colorHover: string;
|
|
21
|
+
itemGap: string;
|
|
22
|
+
iconSize: string;
|
|
23
|
+
labelColor: string;
|
|
24
|
+
labelSizeHover: string;
|
|
25
|
+
labelColorHover: string;
|
|
26
|
+
boxShadow: string;
|
|
27
|
+
span: number;
|
|
28
|
+
cols: number;
|
|
29
|
+
}, any>>;
|
|
30
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
31
|
+
itemSize: string;
|
|
32
|
+
color: string;
|
|
33
|
+
colorHover: string;
|
|
34
|
+
itemGap: string;
|
|
35
|
+
iconSize: string;
|
|
36
|
+
labelColor: string;
|
|
37
|
+
labelSizeHover: string;
|
|
38
|
+
labelColorHover: string;
|
|
39
|
+
boxShadow: string;
|
|
40
|
+
span: number;
|
|
41
|
+
cols: number;
|
|
42
|
+
}, any>>>;
|
|
43
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
44
|
+
itemSize: string;
|
|
45
|
+
color: string;
|
|
46
|
+
colorHover: string;
|
|
47
|
+
itemGap: string;
|
|
48
|
+
iconSize: string;
|
|
49
|
+
labelColor: string;
|
|
50
|
+
labelSizeHover: string;
|
|
51
|
+
labelColorHover: string;
|
|
52
|
+
boxShadow: string;
|
|
53
|
+
span: number;
|
|
54
|
+
cols: number;
|
|
55
|
+
}, any>>>;
|
|
56
|
+
};
|
|
57
|
+
export type IconBarProps = ExtractPublicPropTypes<typeof iconBarProps>;
|
|
58
|
+
declare const _default: import("vue").DefineComponent<{
|
|
59
|
+
readonly items: {
|
|
60
|
+
readonly type: PropType<IconBarItemProps[]>;
|
|
61
|
+
readonly default: () => never[];
|
|
62
|
+
};
|
|
63
|
+
readonly cols: {
|
|
64
|
+
readonly type: NumberConstructor;
|
|
65
|
+
readonly default: 6;
|
|
66
|
+
};
|
|
67
|
+
readonly gridProps: {
|
|
68
|
+
readonly type: PropType<Partial<GridProps>>;
|
|
69
|
+
};
|
|
70
|
+
readonly itemSize: PropType<number | string>;
|
|
71
|
+
readonly theme: PropType<import("../../_mixins").Theme<"IconBar", {
|
|
72
|
+
itemSize: string;
|
|
73
|
+
color: string;
|
|
74
|
+
colorHover: string;
|
|
75
|
+
itemGap: string;
|
|
76
|
+
iconSize: string;
|
|
77
|
+
labelColor: string;
|
|
78
|
+
labelSizeHover: string;
|
|
79
|
+
labelColorHover: string;
|
|
80
|
+
boxShadow: string;
|
|
81
|
+
span: number;
|
|
82
|
+
cols: number;
|
|
83
|
+
}, any>>;
|
|
84
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
85
|
+
itemSize: string;
|
|
86
|
+
color: string;
|
|
87
|
+
colorHover: string;
|
|
88
|
+
itemGap: string;
|
|
89
|
+
iconSize: string;
|
|
90
|
+
labelColor: string;
|
|
91
|
+
labelSizeHover: string;
|
|
92
|
+
labelColorHover: string;
|
|
93
|
+
boxShadow: string;
|
|
94
|
+
span: number;
|
|
95
|
+
cols: number;
|
|
96
|
+
}, any>>>;
|
|
97
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
98
|
+
itemSize: string;
|
|
99
|
+
color: string;
|
|
100
|
+
colorHover: string;
|
|
101
|
+
itemGap: string;
|
|
102
|
+
iconSize: string;
|
|
103
|
+
labelColor: string;
|
|
104
|
+
labelSizeHover: string;
|
|
105
|
+
labelColorHover: string;
|
|
106
|
+
boxShadow: string;
|
|
107
|
+
span: number;
|
|
108
|
+
cols: number;
|
|
109
|
+
}, any>>>;
|
|
110
|
+
}, {
|
|
111
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
112
|
+
cssVars: import("vue").ComputedRef<{
|
|
113
|
+
'--u-icon-bar-cols': string;
|
|
114
|
+
'--u-icon-bar-item-size': string;
|
|
115
|
+
}> | undefined;
|
|
116
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
117
|
+
renderIconBarItems: (items: IconBarItemProps[]) => JSX.Element[];
|
|
118
|
+
onRender: (() => void) | undefined;
|
|
119
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
120
|
+
readonly items: {
|
|
121
|
+
readonly type: PropType<IconBarItemProps[]>;
|
|
122
|
+
readonly default: () => never[];
|
|
123
|
+
};
|
|
124
|
+
readonly cols: {
|
|
125
|
+
readonly type: NumberConstructor;
|
|
126
|
+
readonly default: 6;
|
|
127
|
+
};
|
|
128
|
+
readonly gridProps: {
|
|
129
|
+
readonly type: PropType<Partial<GridProps>>;
|
|
130
|
+
};
|
|
131
|
+
readonly itemSize: PropType<number | string>;
|
|
132
|
+
readonly theme: PropType<import("../../_mixins").Theme<"IconBar", {
|
|
133
|
+
itemSize: string;
|
|
134
|
+
color: string;
|
|
135
|
+
colorHover: string;
|
|
136
|
+
itemGap: string;
|
|
137
|
+
iconSize: string;
|
|
138
|
+
labelColor: string;
|
|
139
|
+
labelSizeHover: string;
|
|
140
|
+
labelColorHover: string;
|
|
141
|
+
boxShadow: string;
|
|
142
|
+
span: number;
|
|
143
|
+
cols: number;
|
|
144
|
+
}, any>>;
|
|
145
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
146
|
+
itemSize: string;
|
|
147
|
+
color: string;
|
|
148
|
+
colorHover: string;
|
|
149
|
+
itemGap: string;
|
|
150
|
+
iconSize: string;
|
|
151
|
+
labelColor: string;
|
|
152
|
+
labelSizeHover: string;
|
|
153
|
+
labelColorHover: string;
|
|
154
|
+
boxShadow: string;
|
|
155
|
+
span: number;
|
|
156
|
+
cols: number;
|
|
157
|
+
}, any>>>;
|
|
158
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
159
|
+
itemSize: string;
|
|
160
|
+
color: string;
|
|
161
|
+
colorHover: string;
|
|
162
|
+
itemGap: string;
|
|
163
|
+
iconSize: string;
|
|
164
|
+
labelColor: string;
|
|
165
|
+
labelSizeHover: string;
|
|
166
|
+
labelColorHover: string;
|
|
167
|
+
boxShadow: string;
|
|
168
|
+
span: number;
|
|
169
|
+
cols: number;
|
|
170
|
+
}, any>>>;
|
|
171
|
+
}>>, {
|
|
172
|
+
readonly cols: number;
|
|
173
|
+
readonly items: IconBarItemProps[];
|
|
174
|
+
}, {}>;
|
|
175
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.iconBarProps = void 0;
|
|
7
|
+
const vue_1 = require("vue");
|
|
8
|
+
const _mixins_1 = require("../../_mixins");
|
|
9
|
+
const styles_1 = require("../styles");
|
|
10
|
+
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
11
|
+
const IconBarItem_1 = __importDefault(require("./IconBarItem"));
|
|
12
|
+
const grid_1 = require("../../grid");
|
|
13
|
+
const _utils_1 = require("../../_utils");
|
|
14
|
+
exports.iconBarProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { items: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: () => []
|
|
17
|
+
}, cols: {
|
|
18
|
+
type: Number,
|
|
19
|
+
default: 6
|
|
20
|
+
}, gridProps: {
|
|
21
|
+
type: Object
|
|
22
|
+
}, itemSize: [Number, String] });
|
|
23
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
24
|
+
name: 'IconBar',
|
|
25
|
+
props: exports.iconBarProps,
|
|
26
|
+
setup(props, { slots }) {
|
|
27
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
28
|
+
const themeRef = (0, _mixins_1.useTheme)('IconBar', '-icon-bar', index_cssr_1.default, styles_1.iconBarLight, props, mergedClsPrefixRef);
|
|
29
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
30
|
+
const { self: { itemSize } } = themeRef.value;
|
|
31
|
+
return {
|
|
32
|
+
'--u-icon-bar-cols': String(props.cols),
|
|
33
|
+
'--u-icon-bar-item-size': (0, _utils_1.resolveSize)(props.itemSize, itemSize)
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
const renderIconBarItems = (items) => {
|
|
37
|
+
if (slots.default) {
|
|
38
|
+
return slots
|
|
39
|
+
.default()
|
|
40
|
+
.map((vnode, index) => (0, vue_1.h)(grid_1.UGridItem, { key: index }, vnode));
|
|
41
|
+
}
|
|
42
|
+
return items.map((item, index) => ((0, vue_1.h)(grid_1.UGridItem, { key: index, span: item.span },
|
|
43
|
+
(0, vue_1.h)(IconBarItem_1.default, Object.assign({}, item)))));
|
|
44
|
+
};
|
|
45
|
+
const themeClassHandle = inlineThemeDisabled
|
|
46
|
+
? (0, _mixins_1.useThemeClass)('icon-bar', undefined, cssVarsRef, props)
|
|
47
|
+
: undefined;
|
|
48
|
+
return {
|
|
49
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
50
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
51
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
52
|
+
renderIconBarItems,
|
|
53
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
render() {
|
|
57
|
+
const { mergedClsPrefix, themeClass, cssVars, items, onRender } = this;
|
|
58
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
59
|
+
return ((0, vue_1.h)(grid_1.UGrid, Object.assign({ class: [`${mergedClsPrefix}-icon-bar`, themeClass], style: cssVars, cols: this.cols, xGap: 20, yGap: 32 }, this.gridProps), {
|
|
60
|
+
default: () => this.renderIconBarItems(items)
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { ExtractPublicPropTypes, PropType, VNodeChild } from 'vue';
|
|
2
|
+
import { TextProps } from '../../typography';
|
|
3
|
+
export declare const iconBarItemProps: {
|
|
4
|
+
readonly label: StringConstructor;
|
|
5
|
+
readonly icon: PropType<() => VNodeChild>;
|
|
6
|
+
readonly iconSize: PropType<number | string>;
|
|
7
|
+
readonly span: PropType<number | string>;
|
|
8
|
+
readonly typographyProps: {
|
|
9
|
+
readonly type: PropType<Partial<TextProps>>;
|
|
10
|
+
};
|
|
11
|
+
readonly theme: PropType<import("../../_mixins").Theme<"IconBar", {
|
|
12
|
+
itemSize: string;
|
|
13
|
+
color: string;
|
|
14
|
+
colorHover: string;
|
|
15
|
+
itemGap: string;
|
|
16
|
+
iconSize: string;
|
|
17
|
+
labelColor: string;
|
|
18
|
+
labelSizeHover: string;
|
|
19
|
+
labelColorHover: string;
|
|
20
|
+
boxShadow: string;
|
|
21
|
+
span: number;
|
|
22
|
+
cols: number;
|
|
23
|
+
}, any>>;
|
|
24
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
25
|
+
itemSize: string;
|
|
26
|
+
color: string;
|
|
27
|
+
colorHover: string;
|
|
28
|
+
itemGap: string;
|
|
29
|
+
iconSize: string;
|
|
30
|
+
labelColor: string;
|
|
31
|
+
labelSizeHover: string;
|
|
32
|
+
labelColorHover: string;
|
|
33
|
+
boxShadow: string;
|
|
34
|
+
span: number;
|
|
35
|
+
cols: number;
|
|
36
|
+
}, any>>>;
|
|
37
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
38
|
+
itemSize: string;
|
|
39
|
+
color: string;
|
|
40
|
+
colorHover: string;
|
|
41
|
+
itemGap: string;
|
|
42
|
+
iconSize: string;
|
|
43
|
+
labelColor: string;
|
|
44
|
+
labelSizeHover: string;
|
|
45
|
+
labelColorHover: string;
|
|
46
|
+
boxShadow: string;
|
|
47
|
+
span: number;
|
|
48
|
+
cols: number;
|
|
49
|
+
}, any>>>;
|
|
50
|
+
};
|
|
51
|
+
export type IconBarItemProps = ExtractPublicPropTypes<typeof iconBarItemProps>;
|
|
52
|
+
declare const _default: import("vue").DefineComponent<{
|
|
53
|
+
readonly label: StringConstructor;
|
|
54
|
+
readonly icon: PropType<() => VNodeChild>;
|
|
55
|
+
readonly iconSize: PropType<number | string>;
|
|
56
|
+
readonly span: PropType<number | string>;
|
|
57
|
+
readonly typographyProps: {
|
|
58
|
+
readonly type: PropType<Partial<TextProps>>;
|
|
59
|
+
};
|
|
60
|
+
readonly theme: PropType<import("../../_mixins").Theme<"IconBar", {
|
|
61
|
+
itemSize: string;
|
|
62
|
+
color: string;
|
|
63
|
+
colorHover: string;
|
|
64
|
+
itemGap: string;
|
|
65
|
+
iconSize: string;
|
|
66
|
+
labelColor: string;
|
|
67
|
+
labelSizeHover: string;
|
|
68
|
+
labelColorHover: string;
|
|
69
|
+
boxShadow: string;
|
|
70
|
+
span: number;
|
|
71
|
+
cols: number;
|
|
72
|
+
}, any>>;
|
|
73
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
74
|
+
itemSize: string;
|
|
75
|
+
color: string;
|
|
76
|
+
colorHover: string;
|
|
77
|
+
itemGap: string;
|
|
78
|
+
iconSize: string;
|
|
79
|
+
labelColor: string;
|
|
80
|
+
labelSizeHover: string;
|
|
81
|
+
labelColorHover: string;
|
|
82
|
+
boxShadow: string;
|
|
83
|
+
span: number;
|
|
84
|
+
cols: number;
|
|
85
|
+
}, any>>>;
|
|
86
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
87
|
+
itemSize: string;
|
|
88
|
+
color: string;
|
|
89
|
+
colorHover: string;
|
|
90
|
+
itemGap: string;
|
|
91
|
+
iconSize: string;
|
|
92
|
+
labelColor: string;
|
|
93
|
+
labelSizeHover: string;
|
|
94
|
+
labelColorHover: string;
|
|
95
|
+
boxShadow: string;
|
|
96
|
+
span: number;
|
|
97
|
+
cols: number;
|
|
98
|
+
}, any>>>;
|
|
99
|
+
}, {
|
|
100
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
101
|
+
cssVars: import("vue").ComputedRef<{
|
|
102
|
+
'--u-bezier': string;
|
|
103
|
+
'--u-icon-bar-item-color': string;
|
|
104
|
+
'--u-icon-bar-item-icon-size': string;
|
|
105
|
+
'--u-icon-bar-item-label-color': string;
|
|
106
|
+
'--u-icon-bar-item-label-size-hover': string;
|
|
107
|
+
'--u-icon-bar-item-label-color-hover': string;
|
|
108
|
+
'--u-icon-bar-item-color-hover': string;
|
|
109
|
+
'--u-icon-bar-item-box-shadow': string;
|
|
110
|
+
'--u-icon-bar-item-gap': string;
|
|
111
|
+
'--u-icon-bar-item-span': string;
|
|
112
|
+
}> | undefined;
|
|
113
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
114
|
+
onRender: (() => void) | undefined;
|
|
115
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
116
|
+
readonly label: StringConstructor;
|
|
117
|
+
readonly icon: PropType<() => VNodeChild>;
|
|
118
|
+
readonly iconSize: PropType<number | string>;
|
|
119
|
+
readonly span: PropType<number | string>;
|
|
120
|
+
readonly typographyProps: {
|
|
121
|
+
readonly type: PropType<Partial<TextProps>>;
|
|
122
|
+
};
|
|
123
|
+
readonly theme: PropType<import("../../_mixins").Theme<"IconBar", {
|
|
124
|
+
itemSize: string;
|
|
125
|
+
color: string;
|
|
126
|
+
colorHover: string;
|
|
127
|
+
itemGap: string;
|
|
128
|
+
iconSize: string;
|
|
129
|
+
labelColor: string;
|
|
130
|
+
labelSizeHover: string;
|
|
131
|
+
labelColorHover: string;
|
|
132
|
+
boxShadow: string;
|
|
133
|
+
span: number;
|
|
134
|
+
cols: number;
|
|
135
|
+
}, any>>;
|
|
136
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
137
|
+
itemSize: string;
|
|
138
|
+
color: string;
|
|
139
|
+
colorHover: string;
|
|
140
|
+
itemGap: string;
|
|
141
|
+
iconSize: string;
|
|
142
|
+
labelColor: string;
|
|
143
|
+
labelSizeHover: string;
|
|
144
|
+
labelColorHover: string;
|
|
145
|
+
boxShadow: string;
|
|
146
|
+
span: number;
|
|
147
|
+
cols: number;
|
|
148
|
+
}, any>>>;
|
|
149
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
150
|
+
itemSize: string;
|
|
151
|
+
color: string;
|
|
152
|
+
colorHover: string;
|
|
153
|
+
itemGap: string;
|
|
154
|
+
iconSize: string;
|
|
155
|
+
labelColor: string;
|
|
156
|
+
labelSizeHover: string;
|
|
157
|
+
labelColorHover: string;
|
|
158
|
+
boxShadow: string;
|
|
159
|
+
span: number;
|
|
160
|
+
cols: number;
|
|
161
|
+
}, any>>>;
|
|
162
|
+
}>>, {}, {}>;
|
|
163
|
+
export default _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.iconBarItemProps = void 0;
|
|
7
|
+
const vue_1 = require("vue");
|
|
8
|
+
const _mixins_1 = require("../../_mixins");
|
|
9
|
+
const styles_1 = require("../styles");
|
|
10
|
+
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
11
|
+
const typography_1 = require("../../typography");
|
|
12
|
+
const _utils_1 = require("../../_utils");
|
|
13
|
+
exports.iconBarItemProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { label: String, icon: Function, iconSize: [Number, String], span: [Number, String], typographyProps: {
|
|
14
|
+
type: Object
|
|
15
|
+
} });
|
|
16
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
17
|
+
name: 'IconBarItem',
|
|
18
|
+
props: exports.iconBarItemProps,
|
|
19
|
+
setup(props) {
|
|
20
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
21
|
+
const themeRef = (0, _mixins_1.useTheme)('IconBar', '-icon-bar-item', index_cssr_1.default, styles_1.iconBarLight, props, mergedClsPrefixRef);
|
|
22
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
23
|
+
const { self: { iconSize, labelColor, labelSizeHover, labelColorHover, color, colorHover, boxShadow, itemGap, span }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
24
|
+
return {
|
|
25
|
+
'--u-bezier': cubicBezierEaseInOut,
|
|
26
|
+
'--u-icon-bar-item-color': color,
|
|
27
|
+
'--u-icon-bar-item-icon-size': (0, _utils_1.resolveSize)(props.iconSize, iconSize),
|
|
28
|
+
'--u-icon-bar-item-label-color': labelColor,
|
|
29
|
+
'--u-icon-bar-item-label-size-hover': labelSizeHover,
|
|
30
|
+
'--u-icon-bar-item-label-color-hover': labelColorHover,
|
|
31
|
+
'--u-icon-bar-item-color-hover': colorHover,
|
|
32
|
+
'--u-icon-bar-item-box-shadow': boxShadow,
|
|
33
|
+
'--u-icon-bar-item-gap': itemGap,
|
|
34
|
+
'--u-icon-bar-item-span': String(props.span || span)
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
const themeClassHandle = inlineThemeDisabled
|
|
38
|
+
? (0, _mixins_1.useThemeClass)('icon-bar-item', undefined, cssVarsRef, props)
|
|
39
|
+
: undefined;
|
|
40
|
+
return {
|
|
41
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
42
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
43
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
44
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
render() {
|
|
48
|
+
var _a, _b, _c, _d, _e;
|
|
49
|
+
const { mergedClsPrefix, onRender } = this;
|
|
50
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
51
|
+
return ((0, vue_1.h)("div", { class: [`${mergedClsPrefix}-icon-bar-item-wrapper`, this.themeClass], style: this.cssVars },
|
|
52
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-icon-bar-item`, style: this.cssVars },
|
|
53
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-icon-bar-item__icon` }, ((_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a)) || ((_c = this.icon) === null || _c === void 0 ? void 0 : _c.call(this)))),
|
|
54
|
+
(this.$slots.label || this.label) && ((0, vue_1.h)(typography_1.UText, Object.assign({ class: `${mergedClsPrefix}-icon-bar-item-wrapper__label`, variant: "heading-s-bold" }, this.typographyProps), ((_e = (_d = this.$slots).label) === null || _e === void 0 ? void 0 : _e.call(_d)) || this.label))));
|
|
55
|
+
}
|
|
56
|
+
});
|