@htmlbricks/hb-footer 0.8.35 → 0.8.42
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/extra/docs.ts +84 -4
- package/package.json +10 -8
- package/release/docs.js +81 -1
- package/release/docs.js.map +1 -1
- package/release/docs.mjs +115 -0
- package/release/docs.ts +84 -4
- package/release/manifest.json +503 -0
- package/release/release.js +1 -1
- package/release/release.js.map +1 -1
- package/release/webcomponent.type.d.json +1 -21
- package/release/webcomponent_events.type.d.json +27 -0
- package/release/docs.type.d.json +0 -91
package/extra/docs.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup } from "@htmlbricks/hb-jsutils/main";
|
|
1
|
+
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
|
|
2
|
+
import type { Component } from "../app/types/webcomponent.type";
|
|
2
3
|
|
|
3
4
|
export const storybookArgs = {
|
|
4
5
|
smallrow: { control: { type: "object" } },
|
|
@@ -30,11 +31,90 @@ export const styleSetup: StyleSetup = {
|
|
|
30
31
|
vars: cssVars,
|
|
31
32
|
parts: cssParts,
|
|
32
33
|
};
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
const company: Component["company"] = {
|
|
35
|
+
logoUri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg",
|
|
36
|
+
siteName: "testsite",
|
|
37
|
+
companyName: "testcompany S.R.L.",
|
|
38
|
+
registration: { text: "copyright" },
|
|
39
|
+
description: `testo e descrizione di esempio dell applicazione`,
|
|
40
|
+
vatNumber: "aa - ffffff",
|
|
41
|
+
fiscalCode: "f4f5f6fff",
|
|
42
|
+
};
|
|
43
|
+
const contacts: Component["contacts"] = {
|
|
44
|
+
sites: [
|
|
45
|
+
{
|
|
46
|
+
label: "dariocaruso.info",
|
|
47
|
+
uri: "https://dariocaruso.info",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
phones: [
|
|
51
|
+
{
|
|
52
|
+
number: "6666666666666",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
addresses: [],
|
|
56
|
+
emails: [],
|
|
57
|
+
};
|
|
58
|
+
const socials: Component["socials"] = {
|
|
59
|
+
facebook: "fbbb",
|
|
60
|
+
youtube: "yttttttt",
|
|
61
|
+
};
|
|
62
|
+
const columns: Component["columns"] = [
|
|
63
|
+
{
|
|
64
|
+
cells: [
|
|
65
|
+
{
|
|
66
|
+
label: "test",
|
|
67
|
+
_id: "test",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: "test2",
|
|
71
|
+
_id: "test2",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: "test3",
|
|
75
|
+
_id: "test3",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
title: "stringtitle",
|
|
79
|
+
},
|
|
80
|
+
];
|
|
81
|
+
const brandandcontacts: Component["brandandcontacts"] = {
|
|
82
|
+
companyName: "bella",
|
|
83
|
+
companyLogoUri: "",
|
|
84
|
+
};
|
|
85
|
+
const policies: Component["policies"] = [
|
|
86
|
+
{
|
|
87
|
+
label: "Privacy Policy",
|
|
88
|
+
key: "privacypolicy",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: "Condizioni Generali",
|
|
92
|
+
key: "generalcondition",
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: "Cookie Policy",
|
|
96
|
+
key: "cookiepolicy",
|
|
97
|
+
},
|
|
98
|
+
];
|
|
99
|
+
const examples: Component[] = [
|
|
100
|
+
{
|
|
101
|
+
company,
|
|
102
|
+
brandandcontacts,
|
|
103
|
+
columns,
|
|
104
|
+
policies,
|
|
105
|
+
contacts,
|
|
106
|
+
socials,
|
|
107
|
+
},
|
|
108
|
+
];
|
|
109
|
+
export const componentSetup: ComponentSetup & { examples: Component[] } = {
|
|
110
|
+
definitions: null,
|
|
35
111
|
storybookArgs,
|
|
36
112
|
styleSetup,
|
|
37
113
|
htmlSlots,
|
|
38
114
|
i18n: i18nLanguages,
|
|
39
|
-
examples
|
|
115
|
+
examples,
|
|
116
|
+
name: "hb-footer",
|
|
117
|
+
category: "layout",
|
|
118
|
+
tags: ["layout"],
|
|
119
|
+
size: {},
|
|
40
120
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-footer",
|
|
3
3
|
"displayName": "Svelte Bootstrap Footer WebComponent",
|
|
4
4
|
"description": "Svelte Bootstrap Footer WebComponent",
|
|
5
|
-
"version": "0.8.
|
|
5
|
+
"version": "0.8.42",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -20,15 +20,18 @@
|
|
|
20
20
|
"start": "sirv dist",
|
|
21
21
|
"dev": "rm -rf ./dist && rollup -c -w",
|
|
22
22
|
"build": "rm -rf ./dist && rollup -c",
|
|
23
|
-
"generate-
|
|
24
|
-
"generate-schema": "ts-json-schema-generator --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
|
|
23
|
+
"generate-manifest": "npm run generate-schemes && manifester --dir $PWD",
|
|
24
|
+
"generate-component-schema": "ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
|
|
25
|
+
"generate-events-schema": "ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json",
|
|
26
|
+
"generate-schemes": "npm run generate-events-schema && npm run generate-component-schema",
|
|
25
27
|
"copydest": "rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/",
|
|
26
28
|
"build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
|
|
27
|
-
"build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-
|
|
29
|
+
"build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",
|
|
28
30
|
"prepublish": "npm run build:release"
|
|
29
31
|
},
|
|
30
32
|
"devDependencies": {
|
|
31
|
-
"@htmlbricks/hb-jsutils": "^0.8.
|
|
33
|
+
"@htmlbricks/hb-jsutils": "^0.8.42",
|
|
34
|
+
"@htmlbricks/manifester": "^0.0.5",
|
|
32
35
|
"@rollup/plugin-alias": "^3.1.2",
|
|
33
36
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
34
37
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -42,7 +45,6 @@
|
|
|
42
45
|
"eslint": "^7.25.0",
|
|
43
46
|
"eslint-plugin-jsdoc": "^33.0.0",
|
|
44
47
|
"eslint-plugin-svelte3": "^3.2.0",
|
|
45
|
-
"generate-json-from-js-object": "^0.0.17",
|
|
46
48
|
"node-sass": "^6.0.1",
|
|
47
49
|
"postcss": "^8.2.13",
|
|
48
50
|
"postcss-load-config": "^3.0.1",
|
|
@@ -68,7 +70,7 @@
|
|
|
68
70
|
"typescript-transform-paths": "^2.2.3"
|
|
69
71
|
},
|
|
70
72
|
"dependencies": {
|
|
71
|
-
"@htmlbricks/hb-contact-item": "^0.8.
|
|
73
|
+
"@htmlbricks/hb-contact-item": "^0.8.42"
|
|
72
74
|
},
|
|
73
75
|
"keywords": [
|
|
74
76
|
"svelte",
|
|
@@ -76,5 +78,5 @@
|
|
|
76
78
|
"webcomponents"
|
|
77
79
|
],
|
|
78
80
|
"contributors": [],
|
|
79
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "d6919a86b5627d502a37fe2a28830a32724d0a52"
|
|
80
82
|
}
|
package/release/docs.js
CHANGED
|
@@ -25,11 +25,91 @@ export var styleSetup = {
|
|
|
25
25
|
vars: cssVars,
|
|
26
26
|
parts: cssParts
|
|
27
27
|
};
|
|
28
|
+
var company = {
|
|
29
|
+
logoUri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg",
|
|
30
|
+
siteName: "testsite",
|
|
31
|
+
companyName: "testcompany S.R.L.",
|
|
32
|
+
registration: { text: "copyright" },
|
|
33
|
+
description: "testo e descrizione di esempio dell applicazione",
|
|
34
|
+
vatNumber: "aa - ffffff",
|
|
35
|
+
fiscalCode: "f4f5f6fff"
|
|
36
|
+
};
|
|
37
|
+
var contacts = {
|
|
38
|
+
sites: [
|
|
39
|
+
{
|
|
40
|
+
label: "dariocaruso.info",
|
|
41
|
+
uri: "https://dariocaruso.info"
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
phones: [
|
|
45
|
+
{
|
|
46
|
+
number: "6666666666666"
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
addresses: [],
|
|
50
|
+
emails: []
|
|
51
|
+
};
|
|
52
|
+
var socials = {
|
|
53
|
+
facebook: "fbbb",
|
|
54
|
+
youtube: "yttttttt"
|
|
55
|
+
};
|
|
56
|
+
var columns = [
|
|
57
|
+
{
|
|
58
|
+
cells: [
|
|
59
|
+
{
|
|
60
|
+
label: "test",
|
|
61
|
+
_id: "test"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: "test2",
|
|
65
|
+
_id: "test2"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: "test3",
|
|
69
|
+
_id: "test3"
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
title: "stringtitle"
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
var brandandcontacts = {
|
|
76
|
+
companyName: "bella",
|
|
77
|
+
companyLogoUri: ""
|
|
78
|
+
};
|
|
79
|
+
var policies = [
|
|
80
|
+
{
|
|
81
|
+
label: "Privacy Policy",
|
|
82
|
+
key: "privacypolicy"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
label: "Condizioni Generali",
|
|
86
|
+
key: "generalcondition"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
label: "Cookie Policy",
|
|
90
|
+
key: "cookiepolicy"
|
|
91
|
+
},
|
|
92
|
+
];
|
|
93
|
+
var examples = [
|
|
94
|
+
{
|
|
95
|
+
company: company,
|
|
96
|
+
brandandcontacts: brandandcontacts,
|
|
97
|
+
columns: columns,
|
|
98
|
+
policies: policies,
|
|
99
|
+
contacts: contacts,
|
|
100
|
+
socials: socials
|
|
101
|
+
},
|
|
102
|
+
];
|
|
28
103
|
export var componentSetup = {
|
|
104
|
+
definitions: null,
|
|
29
105
|
storybookArgs: storybookArgs,
|
|
30
106
|
styleSetup: styleSetup,
|
|
31
107
|
htmlSlots: htmlSlots,
|
|
32
108
|
i18n: i18nLanguages,
|
|
33
|
-
examples:
|
|
109
|
+
examples: examples,
|
|
110
|
+
name: "hb-footer",
|
|
111
|
+
category: "layout",
|
|
112
|
+
tags: ["layout"],
|
|
113
|
+
size: {}
|
|
34
114
|
};
|
|
35
115
|
//# sourceMappingURL=docs.js.map
|
package/release/docs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACzC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACvC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACxC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC1C,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC7C,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE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AE,WAAW;IACjB,QAAQ,EAAE,QAAQ;IAClB,IAAI,EAAE,CAAC,QAAQ,CAAC;IAChB,IAAI,EAAE,EAAE;CACR,CAAC"}
|
package/release/docs.mjs
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
export var storybookArgs = {
|
|
2
|
+
smallrow: { control: { type: "object" } },
|
|
3
|
+
columns: { control: { type: "array" } },
|
|
4
|
+
policies: { control: { type: "array" } },
|
|
5
|
+
companyname: { control: { type: "text" } },
|
|
6
|
+
companylogouri: { control: { type: "text" } },
|
|
7
|
+
brandandcontacts: { control: { type: "object" } },
|
|
8
|
+
footerbottom: { control: { type: "object" } },
|
|
9
|
+
copyrighttext: { control: { type: "object" } },
|
|
10
|
+
socials: { control: { type: "object" } },
|
|
11
|
+
contacts: { control: { type: "object" } },
|
|
12
|
+
company: { control: { type: "object" } },
|
|
13
|
+
footerClick: { action: "footerClickEvent" }
|
|
14
|
+
};
|
|
15
|
+
var cssVars = [];
|
|
16
|
+
export var cssParts = [{ name: "column-cell-button-content", description: "" }];
|
|
17
|
+
export var htmlSlots = [
|
|
18
|
+
{ name: "footerpolicy", description: "" },
|
|
19
|
+
{ description: "", name: "footerheader" },
|
|
20
|
+
{ description: "", name: "footercontent" },
|
|
21
|
+
{ description: "", name: "footerbottom" },
|
|
22
|
+
];
|
|
23
|
+
export var i18nLanguages = [];
|
|
24
|
+
export var styleSetup = {
|
|
25
|
+
vars: cssVars,
|
|
26
|
+
parts: cssParts
|
|
27
|
+
};
|
|
28
|
+
var company = {
|
|
29
|
+
logoUri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg",
|
|
30
|
+
siteName: "testsite",
|
|
31
|
+
companyName: "testcompany S.R.L.",
|
|
32
|
+
registration: { text: "copyright" },
|
|
33
|
+
description: "testo e descrizione di esempio dell applicazione",
|
|
34
|
+
vatNumber: "aa - ffffff",
|
|
35
|
+
fiscalCode: "f4f5f6fff"
|
|
36
|
+
};
|
|
37
|
+
var contacts = {
|
|
38
|
+
sites: [
|
|
39
|
+
{
|
|
40
|
+
label: "dariocaruso.info",
|
|
41
|
+
uri: "https://dariocaruso.info"
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
phones: [
|
|
45
|
+
{
|
|
46
|
+
number: "6666666666666"
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
addresses: [],
|
|
50
|
+
emails: []
|
|
51
|
+
};
|
|
52
|
+
var socials = {
|
|
53
|
+
facebook: "fbbb",
|
|
54
|
+
youtube: "yttttttt"
|
|
55
|
+
};
|
|
56
|
+
var columns = [
|
|
57
|
+
{
|
|
58
|
+
cells: [
|
|
59
|
+
{
|
|
60
|
+
label: "test",
|
|
61
|
+
_id: "test"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: "test2",
|
|
65
|
+
_id: "test2"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: "test3",
|
|
69
|
+
_id: "test3"
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
title: "stringtitle"
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
var brandandcontacts = {
|
|
76
|
+
companyName: "bella",
|
|
77
|
+
companyLogoUri: ""
|
|
78
|
+
};
|
|
79
|
+
var policies = [
|
|
80
|
+
{
|
|
81
|
+
label: "Privacy Policy",
|
|
82
|
+
key: "privacypolicy"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
label: "Condizioni Generali",
|
|
86
|
+
key: "generalcondition"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
label: "Cookie Policy",
|
|
90
|
+
key: "cookiepolicy"
|
|
91
|
+
},
|
|
92
|
+
];
|
|
93
|
+
var examples = [
|
|
94
|
+
{
|
|
95
|
+
company: company,
|
|
96
|
+
brandandcontacts: brandandcontacts,
|
|
97
|
+
columns: columns,
|
|
98
|
+
policies: policies,
|
|
99
|
+
contacts: contacts,
|
|
100
|
+
socials: socials
|
|
101
|
+
},
|
|
102
|
+
];
|
|
103
|
+
export var componentSetup = {
|
|
104
|
+
definitions: null,
|
|
105
|
+
storybookArgs: storybookArgs,
|
|
106
|
+
styleSetup: styleSetup,
|
|
107
|
+
htmlSlots: htmlSlots,
|
|
108
|
+
i18n: i18nLanguages,
|
|
109
|
+
examples: examples,
|
|
110
|
+
name: "hb-footer",
|
|
111
|
+
category: "layout",
|
|
112
|
+
tags: ["layout"],
|
|
113
|
+
size: {}
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=docs.js.map
|
package/release/docs.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup } from "@htmlbricks/hb-jsutils/main";
|
|
1
|
+
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
|
|
2
|
+
import type { Component } from "../app/types/webcomponent.type";
|
|
2
3
|
|
|
3
4
|
export const storybookArgs = {
|
|
4
5
|
smallrow: { control: { type: "object" } },
|
|
@@ -30,11 +31,90 @@ export const styleSetup: StyleSetup = {
|
|
|
30
31
|
vars: cssVars,
|
|
31
32
|
parts: cssParts,
|
|
32
33
|
};
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
const company: Component["company"] = {
|
|
35
|
+
logoUri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg",
|
|
36
|
+
siteName: "testsite",
|
|
37
|
+
companyName: "testcompany S.R.L.",
|
|
38
|
+
registration: { text: "copyright" },
|
|
39
|
+
description: `testo e descrizione di esempio dell applicazione`,
|
|
40
|
+
vatNumber: "aa - ffffff",
|
|
41
|
+
fiscalCode: "f4f5f6fff",
|
|
42
|
+
};
|
|
43
|
+
const contacts: Component["contacts"] = {
|
|
44
|
+
sites: [
|
|
45
|
+
{
|
|
46
|
+
label: "dariocaruso.info",
|
|
47
|
+
uri: "https://dariocaruso.info",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
phones: [
|
|
51
|
+
{
|
|
52
|
+
number: "6666666666666",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
addresses: [],
|
|
56
|
+
emails: [],
|
|
57
|
+
};
|
|
58
|
+
const socials: Component["socials"] = {
|
|
59
|
+
facebook: "fbbb",
|
|
60
|
+
youtube: "yttttttt",
|
|
61
|
+
};
|
|
62
|
+
const columns: Component["columns"] = [
|
|
63
|
+
{
|
|
64
|
+
cells: [
|
|
65
|
+
{
|
|
66
|
+
label: "test",
|
|
67
|
+
_id: "test",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: "test2",
|
|
71
|
+
_id: "test2",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: "test3",
|
|
75
|
+
_id: "test3",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
title: "stringtitle",
|
|
79
|
+
},
|
|
80
|
+
];
|
|
81
|
+
const brandandcontacts: Component["brandandcontacts"] = {
|
|
82
|
+
companyName: "bella",
|
|
83
|
+
companyLogoUri: "",
|
|
84
|
+
};
|
|
85
|
+
const policies: Component["policies"] = [
|
|
86
|
+
{
|
|
87
|
+
label: "Privacy Policy",
|
|
88
|
+
key: "privacypolicy",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: "Condizioni Generali",
|
|
92
|
+
key: "generalcondition",
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: "Cookie Policy",
|
|
96
|
+
key: "cookiepolicy",
|
|
97
|
+
},
|
|
98
|
+
];
|
|
99
|
+
const examples: Component[] = [
|
|
100
|
+
{
|
|
101
|
+
company,
|
|
102
|
+
brandandcontacts,
|
|
103
|
+
columns,
|
|
104
|
+
policies,
|
|
105
|
+
contacts,
|
|
106
|
+
socials,
|
|
107
|
+
},
|
|
108
|
+
];
|
|
109
|
+
export const componentSetup: ComponentSetup & { examples: Component[] } = {
|
|
110
|
+
definitions: null,
|
|
35
111
|
storybookArgs,
|
|
36
112
|
styleSetup,
|
|
37
113
|
htmlSlots,
|
|
38
114
|
i18n: i18nLanguages,
|
|
39
|
-
examples
|
|
115
|
+
examples,
|
|
116
|
+
name: "hb-footer",
|
|
117
|
+
category: "layout",
|
|
118
|
+
tags: ["layout"],
|
|
119
|
+
size: {},
|
|
40
120
|
};
|