@vnejs/contracts.views.screens.mainmenu.socials 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/const.d.ts +13 -0
- package/dist/const.js +6 -0
- package/dist/events.d.ts +4 -0
- package/dist/events.js +3 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +8 -0
- package/dist/params.d.ts +36 -0
- package/dist/params.js +9 -0
- package/package.json +35 -0
- package/src/const.ts +8 -0
- package/src/events.ts +5 -0
- package/src/index.ts +19 -0
- package/src/params.ts +21 -0
- package/tsconfig.json +9 -0
package/dist/const.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const TYPES: {
|
|
2
|
+
readonly VKONTAKTE: "vk";
|
|
3
|
+
readonly TELEGRAMM: "tg";
|
|
4
|
+
readonly YOUTUBE: "yt";
|
|
5
|
+
};
|
|
6
|
+
export declare const CONSTANTS: {
|
|
7
|
+
readonly TYPES: {
|
|
8
|
+
readonly VKONTAKTE: "vk";
|
|
9
|
+
readonly TELEGRAMM: "tg";
|
|
10
|
+
readonly YOUTUBE: "yt";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type Constants = typeof CONSTANTS;
|
package/dist/const.js
ADDED
package/dist/events.d.ts
ADDED
package/dist/events.js
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "@vnejs/shared";
|
|
2
|
+
import { CONSTANTS } from "./const.js";
|
|
3
|
+
import { SUBSCRIBE_EVENTS } from "./events.js";
|
|
4
|
+
import { PARAMS } from "./params.js";
|
|
5
|
+
export declare const PLUGIN_NAME: "MAINMENU_SOCIALS_VIEW";
|
|
6
|
+
export type PluginName = typeof PLUGIN_NAME;
|
|
7
|
+
export { CONSTANTS };
|
|
8
|
+
export type { Constants } from "./const.js";
|
|
9
|
+
export { SUBSCRIBE_EVENTS };
|
|
10
|
+
export type { SubscribeEvents } from "./events.js";
|
|
11
|
+
export { PARAMS };
|
|
12
|
+
export type { Params, ViewProps } from "./params.js";
|
|
13
|
+
declare module "@vnejs/shared" {
|
|
14
|
+
interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {
|
|
15
|
+
}
|
|
16
|
+
interface VnePluginConstantsMap extends Record<typeof PLUGIN_NAME, typeof CONSTANTS> {
|
|
17
|
+
}
|
|
18
|
+
interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {
|
|
19
|
+
}
|
|
20
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "@vnejs/shared";
|
|
2
|
+
import { CONSTANTS } from "./const.js";
|
|
3
|
+
import { SUBSCRIBE_EVENTS } from "./events.js";
|
|
4
|
+
import { PARAMS } from "./params.js";
|
|
5
|
+
export const PLUGIN_NAME = "MAINMENU_SOCIALS_VIEW";
|
|
6
|
+
export { CONSTANTS };
|
|
7
|
+
export { SUBSCRIBE_EVENTS };
|
|
8
|
+
export { PARAMS };
|
package/dist/params.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ViewProps as UIViewProps, WidenViewComponentProps } from "@vnejs/uis.react.view";
|
|
2
|
+
export type MainMenuSocialsItem = {
|
|
3
|
+
href: string;
|
|
4
|
+
media: string;
|
|
5
|
+
};
|
|
6
|
+
declare const VIEW_PROPS_DEFAULT: {
|
|
7
|
+
readonly position: UIViewProps;
|
|
8
|
+
readonly icon: {
|
|
9
|
+
readonly width: 120;
|
|
10
|
+
readonly height: 120;
|
|
11
|
+
readonly isOpacityOnHover: true;
|
|
12
|
+
};
|
|
13
|
+
readonly flex: {
|
|
14
|
+
readonly gap: 60;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type ViewProps = WidenViewComponentProps<typeof VIEW_PROPS_DEFAULT>;
|
|
18
|
+
export declare const VIEW_PROPS: ViewProps;
|
|
19
|
+
export declare const ITEMS: MainMenuSocialsItem[];
|
|
20
|
+
declare const PARAMS_DEFAULT: {
|
|
21
|
+
VIEW_PROPS: {
|
|
22
|
+
position: UIViewProps<unknown>;
|
|
23
|
+
icon: {
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
isOpacityOnHover: boolean;
|
|
27
|
+
};
|
|
28
|
+
flex: {
|
|
29
|
+
gap: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
ITEMS: MainMenuSocialsItem[];
|
|
33
|
+
};
|
|
34
|
+
export type Params = WidenViewComponentProps<typeof PARAMS_DEFAULT>;
|
|
35
|
+
export declare const PARAMS: Params;
|
|
36
|
+
export {};
|
package/dist/params.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const VIEW_PROPS_DEFAULT = {
|
|
2
|
+
position: { bottom: 240, right: 240 },
|
|
3
|
+
icon: { width: 120, height: 120, isOpacityOnHover: true },
|
|
4
|
+
flex: { gap: 60 },
|
|
5
|
+
};
|
|
6
|
+
export const VIEW_PROPS = VIEW_PROPS_DEFAULT;
|
|
7
|
+
export const ITEMS = [];
|
|
8
|
+
const PARAMS_DEFAULT = { VIEW_PROPS, ITEMS };
|
|
9
|
+
export const PARAMS = PARAMS_DEFAULT;
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vnejs/contracts.views.screens.mainmenu.socials",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Contracts for @vnejs/plugins.views.screens.mainmenu.socials",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"src",
|
|
18
|
+
"tsconfig.json"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "npx @vnejs/monorepo package",
|
|
22
|
+
"publish:major": "npx @vnejs/monorepo publish major --access public",
|
|
23
|
+
"publish:minor": "npx @vnejs/monorepo publish minor --access public",
|
|
24
|
+
"publish:patch": "npx @vnejs/monorepo publish patch --access public"
|
|
25
|
+
},
|
|
26
|
+
"author": "",
|
|
27
|
+
"license": "ISC",
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@vnejs/shared": "~0.1.0",
|
|
30
|
+
"@vnejs/uis.react.view": "~0.1.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@vnejs/configs.ts-common": "~0.1.0"
|
|
34
|
+
}
|
|
35
|
+
}
|
package/src/const.ts
ADDED
package/src/events.ts
ADDED
package/src/index.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "@vnejs/shared";
|
|
2
|
+
import { CONSTANTS } from "./const.js";
|
|
3
|
+
import { SUBSCRIBE_EVENTS } from "./events.js";
|
|
4
|
+
import { PARAMS } from "./params.js";
|
|
5
|
+
|
|
6
|
+
export const PLUGIN_NAME = "MAINMENU_SOCIALS_VIEW" as const;
|
|
7
|
+
export type PluginName = typeof PLUGIN_NAME;
|
|
8
|
+
export { CONSTANTS };
|
|
9
|
+
export type { Constants } from "./const.js";
|
|
10
|
+
export { SUBSCRIBE_EVENTS };
|
|
11
|
+
export type { SubscribeEvents } from "./events.js";
|
|
12
|
+
export { PARAMS };
|
|
13
|
+
export type { Params, ViewProps } from "./params.js";
|
|
14
|
+
|
|
15
|
+
declare module "@vnejs/shared" {
|
|
16
|
+
interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {}
|
|
17
|
+
interface VnePluginConstantsMap extends Record<typeof PLUGIN_NAME, typeof CONSTANTS> {}
|
|
18
|
+
interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {}
|
|
19
|
+
}
|
package/src/params.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ViewProps as UIViewProps, WidenViewComponentProps } from "@vnejs/uis.react.view";
|
|
2
|
+
|
|
3
|
+
export type MainMenuSocialsItem = {
|
|
4
|
+
href: string;
|
|
5
|
+
media: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const VIEW_PROPS_DEFAULT = {
|
|
9
|
+
position: { bottom: 240, right: 240 } as UIViewProps,
|
|
10
|
+
icon: { width: 120, height: 120, isOpacityOnHover: true },
|
|
11
|
+
flex: { gap: 60 },
|
|
12
|
+
} as const;
|
|
13
|
+
|
|
14
|
+
export type ViewProps = WidenViewComponentProps<typeof VIEW_PROPS_DEFAULT>;
|
|
15
|
+
export const VIEW_PROPS: ViewProps = VIEW_PROPS_DEFAULT;
|
|
16
|
+
|
|
17
|
+
export const ITEMS: MainMenuSocialsItem[] = [];
|
|
18
|
+
|
|
19
|
+
const PARAMS_DEFAULT = { VIEW_PROPS, ITEMS };
|
|
20
|
+
export type Params = WidenViewComponentProps<typeof PARAMS_DEFAULT>;
|
|
21
|
+
export const PARAMS: Params = PARAMS_DEFAULT;
|