@htmlbricks/hb-layout-mobile 0.10.39
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/LICENSE.md +68 -0
- package/README.md +2 -0
- package/extra/docs.ts +181 -0
- package/package.json +89 -0
- package/release/docs.js +177 -0
- package/release/docs.js.map +1 -0
- package/release/docs.ts +181 -0
- package/release/manifest.json +777 -0
- package/release/release.js +2 -0
- package/release/release.js.map +1 -0
- package/release/webcomponent.type.d.ts +29 -0
package/release/docs.ts
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
|
|
2
|
+
import type { Component } from "../app/types/webcomponent.type";
|
|
3
|
+
|
|
4
|
+
export const storybookArgs = {
|
|
5
|
+
pageChange: { action: "pageChange" },
|
|
6
|
+
offcanvasswitch: { action: "offcanvasswitchEvent" },
|
|
7
|
+
layoutStatus: { action: "layoutStatus" },
|
|
8
|
+
contacts: { control: { type: "object" } },
|
|
9
|
+
columns: { control: { type: "object" } },
|
|
10
|
+
sidebar: { control: { type: "object" } },
|
|
11
|
+
socials: { control: { type: "object" } },
|
|
12
|
+
usermenu: { control: { type: "object" } },
|
|
13
|
+
company: { control: { type: "object" } },
|
|
14
|
+
navlinks: { control: { type: "array" } },
|
|
15
|
+
pagename: { control: { type: "string" } },
|
|
16
|
+
cookielawuri4more: { control: { type: "string" } },
|
|
17
|
+
cookielawallowdecline: { control: { type: "boolean" } },
|
|
18
|
+
cookielawlanguage: { control: { type: "string" } },
|
|
19
|
+
cookielaw: { control: { type: "boolean" } },
|
|
20
|
+
onescreen: { control: { type: "boolean" } },
|
|
21
|
+
};
|
|
22
|
+
const cssVars: CssVar[] = [
|
|
23
|
+
{ name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
|
|
24
|
+
{ name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
|
|
25
|
+
{ name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
|
|
26
|
+
{ name: "--bs-info", valueType: "color", theme: "bootstrap", defaultValue: "#a2d5f2" },
|
|
27
|
+
{ name: "--bs-warning", valueType: "color", theme: "bootstrap", defaultValue: "#ffc107" },
|
|
28
|
+
{ name: "--bs-danger", valueType: "color", theme: "bootstrap", defaultValue: "#f67280" },
|
|
29
|
+
];
|
|
30
|
+
export const cssParts: CssPart[] = [
|
|
31
|
+
{ name: "footer", description: "" },
|
|
32
|
+
{ name: "container", description: "" },
|
|
33
|
+
{ name: "navbar", description: "" },
|
|
34
|
+
{ name: "page", description: "" },
|
|
35
|
+
];
|
|
36
|
+
export const htmlSlots: HtmlSlot[] = [
|
|
37
|
+
{ name: "nav-left-slot", description: "" },
|
|
38
|
+
{ name: "nav-center-slot", description: "" },
|
|
39
|
+
{ name: "nav-right-slot", description: "" },
|
|
40
|
+
{ name: "page", description: "" },
|
|
41
|
+
{ name: "nav-header-slot", description: "" },
|
|
42
|
+
];
|
|
43
|
+
export const i18nLanguages: i18nLang[] = [
|
|
44
|
+
{ lang: "it", language: "italian" },
|
|
45
|
+
{ lang: "en", language: "english" },
|
|
46
|
+
];
|
|
47
|
+
export const styleSetup: StyleSetup = {
|
|
48
|
+
vars: cssVars,
|
|
49
|
+
parts: cssParts,
|
|
50
|
+
};
|
|
51
|
+
const company: Component["company"] = {
|
|
52
|
+
logoUri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg",
|
|
53
|
+
siteName: "testsite",
|
|
54
|
+
companyName: "testcompany S.R.L.",
|
|
55
|
+
registration: { text: "copyright" },
|
|
56
|
+
description: `testo e descrizione di esempio dell applicazione`,
|
|
57
|
+
vatNumber: "aa - ffffff",
|
|
58
|
+
fiscalCode: "f4f5f6fff",
|
|
59
|
+
};
|
|
60
|
+
const navlinks: Component["navlinks"] = [
|
|
61
|
+
{
|
|
62
|
+
label: "Home",
|
|
63
|
+
key: "home",
|
|
64
|
+
icon: "house-door",
|
|
65
|
+
badge: {
|
|
66
|
+
text: "bbb",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: "Dashboard",
|
|
71
|
+
key: "dashboard",
|
|
72
|
+
icon: "speedometer",
|
|
73
|
+
badge: {
|
|
74
|
+
text: "bbb",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: "Settings",
|
|
79
|
+
key: "settings",
|
|
80
|
+
icon: "gear",
|
|
81
|
+
group: "admin",
|
|
82
|
+
badge: {
|
|
83
|
+
text: "bbb",
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: "Users",
|
|
88
|
+
key: "users",
|
|
89
|
+
icon: "people-fill",
|
|
90
|
+
group: "admin",
|
|
91
|
+
badge: {
|
|
92
|
+
text: "uuuuu",
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: "Stats",
|
|
97
|
+
key: "stats",
|
|
98
|
+
icon: "graph-up",
|
|
99
|
+
group: "stats",
|
|
100
|
+
badge: {
|
|
101
|
+
text: "bbb",
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
];
|
|
105
|
+
|
|
106
|
+
const contacts: Component["contacts"] = {
|
|
107
|
+
sites: [
|
|
108
|
+
{
|
|
109
|
+
label: "dariocaruso.info",
|
|
110
|
+
uri: "https://dariocaruso.info",
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
phones: [
|
|
114
|
+
{
|
|
115
|
+
number: "6666666666666",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
addresses: [],
|
|
119
|
+
emails: [],
|
|
120
|
+
};
|
|
121
|
+
const usermenu: Component["usermenu"] = {
|
|
122
|
+
list: [
|
|
123
|
+
{
|
|
124
|
+
key: "list1",
|
|
125
|
+
label: "list1",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
key: "list2",
|
|
129
|
+
label: "list2",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
key: "list3",
|
|
133
|
+
label: "list3",
|
|
134
|
+
group: "list1",
|
|
135
|
+
badge: 3,
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
key: "list4",
|
|
139
|
+
label: "list4",
|
|
140
|
+
badge: 555,
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
imgUri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg",
|
|
144
|
+
};
|
|
145
|
+
const socials: Component["socials"] = {
|
|
146
|
+
facebook: "fbbb",
|
|
147
|
+
youtube: "yttttttt",
|
|
148
|
+
};
|
|
149
|
+
const sidebar: Component["sidebar"] = { title: "ciao" };
|
|
150
|
+
|
|
151
|
+
const examples: Component[] = [
|
|
152
|
+
{
|
|
153
|
+
company,
|
|
154
|
+
contacts,
|
|
155
|
+
socials,
|
|
156
|
+
navlinks,
|
|
157
|
+
usermenu,
|
|
158
|
+
sidebar,
|
|
159
|
+
},
|
|
160
|
+
];
|
|
161
|
+
export const componentSetup: ComponentSetup & { examples: Component[] } = {
|
|
162
|
+
definitions: null,
|
|
163
|
+
storybookArgs,
|
|
164
|
+
styleSetup,
|
|
165
|
+
author: null,
|
|
166
|
+
contributors: [],
|
|
167
|
+
owner: null,
|
|
168
|
+
htmlSlots,
|
|
169
|
+
i18n: i18nLanguages,
|
|
170
|
+
examples,
|
|
171
|
+
screenshots: [],
|
|
172
|
+
licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
|
|
173
|
+
readmePath: "README.md",
|
|
174
|
+
name: "hb-layout-mobile",
|
|
175
|
+
category: "layout",
|
|
176
|
+
tags: ["layout"],
|
|
177
|
+
size: {},
|
|
178
|
+
iifePath: "release/release.js",
|
|
179
|
+
repoName: "@htmlbricks/hb-layout-mobile",
|
|
180
|
+
version: null,
|
|
181
|
+
};
|