@htmlbricks/hb-sidenav-link 0.8.39 → 0.8.45

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 CHANGED
@@ -1,4 +1,5 @@
1
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
  navpage: { control: { type: "text" } },
@@ -15,15 +16,28 @@ export const styleSetup: StyleSetup = {
15
16
  parts: cssParts,
16
17
  };
17
18
 
18
- export const componentSetup: ComponentSetup = {
19
+ const examples: Component[] = [
20
+ {
21
+ navpage: "home",
22
+ navlink: {
23
+ label: "Home",
24
+ key: "home",
25
+ icon: "house-door",
26
+ badge: {
27
+ text: "bbb",
28
+ },
29
+ },
30
+ },
31
+ ];
32
+ export const componentSetup: ComponentSetup & { examples: Component[] } = {
19
33
  definitions: null,
20
34
  storybookArgs,
21
35
  styleSetup,
22
36
  htmlSlots,
23
37
  i18n: i18nLanguages,
24
- examples: [],
25
- name: "",
26
- category: "",
27
- tags: [],
38
+ examples,
39
+ name: "hb-sidenav-link",
40
+ category: "basic",
41
+ tags: ["basic"],
28
42
  size: {},
29
43
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-sidenav-link",
3
3
  "displayName": "Svelte Boostrap sidenavlink",
4
4
  "description": "Svelte Boostrap sidenavlink",
5
- "version": "0.8.39",
5
+ "version": "0.8.45",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -30,8 +30,8 @@
30
30
  "prepublish": "npm run build:release"
31
31
  },
32
32
  "devDependencies": {
33
- "@htmlbricks/hb-jsutils": "^0.8.39",
34
- "@htmlbricks/manifester": "^0.0.5",
33
+ "@htmlbricks/hb-jsutils": "^0.8.45",
34
+ "@htmlbricks/manifester": "^0.0.9",
35
35
  "@rollup/plugin-alias": "^3.1.2",
36
36
  "@rollup/plugin-commonjs": "^18.0.0",
37
37
  "@rollup/plugin-json": "^4.1.0",
@@ -76,5 +76,5 @@
76
76
  "html5-webcomponents"
77
77
  ],
78
78
  "contributors": [],
79
- "gitHead": "a771bab3b3337eaa36e3c3330545158c3ef927e6"
79
+ "gitHead": "cad34cdf98084f7b6d972812fbc05c783318f0ea"
80
80
  }
package/release/docs.js CHANGED
@@ -10,16 +10,29 @@ export var styleSetup = {
10
10
  vars: cssVars,
11
11
  parts: cssParts
12
12
  };
13
+ var examples = [
14
+ {
15
+ navpage: "home",
16
+ navlink: {
17
+ label: "Home",
18
+ key: "home",
19
+ icon: "house-door",
20
+ badge: {
21
+ text: "bbb"
22
+ }
23
+ }
24
+ },
25
+ ];
13
26
  export var componentSetup = {
14
27
  definitions: null,
15
28
  storybookArgs: storybookArgs,
16
29
  styleSetup: styleSetup,
17
30
  htmlSlots: htmlSlots,
18
31
  i18n: i18nLanguages,
19
- examples: [],
20
- name: "",
21
- category: "",
22
- tags: [],
32
+ examples: examples,
33
+ name: "hb-sidenav-link",
34
+ category: "basic",
35
+ tags: ["basic"],
23
36
  size: {}
24
37
  };
25
38
  //# sourceMappingURL=docs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACtC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CACxC,CAAC;AAEF,IAAM,OAAO,GAAa,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC;AACtH,MAAM,CAAC,IAAM,QAAQ,GAAc,CAAC,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AC;AAEF,IAAM,QAAQ,GAAgB;IAC7B;QACC,OAAO,EAAE,MAAM;QACf,OAAO,EAAE;YACR,KAAK,EAAE,MAAM;YACb,GAAG,EAAE,MAAM;YACX,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE;gBACN,IAAI,EAAE,KAAK;aACX;SACD;KACD;CACD,CAAC;AACF,MAAM,CAAC,IAAM,cAAc,GAA+C;IACzE,WAAW,EAAE,IAAI;IACjB,aAAa,eAAA;IACb,UAAU,YAAA;IACV,SAAS,WAAA;IACT,IAAI,EAAE,aAAa;IACnB,QAAQ,UAAA;IACR,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,IAAI,EAAE,EAAE;CACR,CAAC"}
package/release/docs.ts CHANGED
@@ -1,4 +1,5 @@
1
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
  navpage: { control: { type: "text" } },
@@ -15,15 +16,28 @@ export const styleSetup: StyleSetup = {
15
16
  parts: cssParts,
16
17
  };
17
18
 
18
- export const componentSetup: ComponentSetup = {
19
+ const examples: Component[] = [
20
+ {
21
+ navpage: "home",
22
+ navlink: {
23
+ label: "Home",
24
+ key: "home",
25
+ icon: "house-door",
26
+ badge: {
27
+ text: "bbb",
28
+ },
29
+ },
30
+ },
31
+ ];
32
+ export const componentSetup: ComponentSetup & { examples: Component[] } = {
19
33
  definitions: null,
20
34
  storybookArgs,
21
35
  styleSetup,
22
36
  htmlSlots,
23
37
  i18n: i18nLanguages,
24
- examples: [],
25
- name: "",
26
- category: "",
27
- tags: [],
38
+ examples,
39
+ name: "hb-sidenav-link",
40
+ category: "basic",
41
+ tags: ["basic"],
28
42
  size: {},
29
43
  };
@@ -137,9 +137,23 @@
137
137
  },
138
138
  "htmlSlots": [],
139
139
  "i18n": [],
140
- "examples": [],
141
- "name": "",
142
- "category": "",
143
- "tags": [],
140
+ "examples": [
141
+ {
142
+ "navpage": "home",
143
+ "navlink": {
144
+ "label": "Home",
145
+ "key": "home",
146
+ "icon": "house-door",
147
+ "badge": {
148
+ "text": "bbb"
149
+ }
150
+ }
151
+ }
152
+ ],
153
+ "name": "hb-sidenav-link",
154
+ "category": "basic",
155
+ "tags": [
156
+ "basic"
157
+ ],
144
158
  "size": {}
145
159
  }
package/release/docs.mjs DELETED
@@ -1,25 +0,0 @@
1
- export var storybookArgs = {
2
- navpage: { control: { type: "text" } },
3
- navlink: { control: { type: "object" } }
4
- };
5
- var cssVars = [{ name: "--bs-primary", defaultValue: "#07689f", valueType: "color", theme: "bootstrap" }];
6
- export var cssParts = [{ name: "li", description: "list element" }];
7
- export var htmlSlots = [];
8
- export var i18nLanguages = [];
9
- export var styleSetup = {
10
- vars: cssVars,
11
- parts: cssParts
12
- };
13
- export var componentSetup = {
14
- definitions: null,
15
- storybookArgs: storybookArgs,
16
- styleSetup: styleSetup,
17
- htmlSlots: htmlSlots,
18
- i18n: i18nLanguages,
19
- examples: [],
20
- name: "",
21
- category: "",
22
- tags: [],
23
- size: {}
24
- };
25
- //# sourceMappingURL=docs.js.map
@@ -1,79 +0,0 @@
1
- {
2
- "$ref": "#/definitions/Component",
3
- "$schema": "http://json-schema.org/draft-07/schema#",
4
- "definitions": {
5
- "Component": {
6
- "additionalProperties": false,
7
- "properties": {
8
- "id": {
9
- "type": "string"
10
- },
11
- "navlink": {
12
- "$ref": "#/definitions/INavLink"
13
- },
14
- "navpage": {
15
- "type": "string"
16
- },
17
- "style": {
18
- "type": "string"
19
- }
20
- },
21
- "required": [
22
- "navlink"
23
- ],
24
- "type": "object"
25
- },
26
- "INavLink": {
27
- "additionalProperties": false,
28
- "properties": {
29
- "active": {
30
- "type": "boolean"
31
- },
32
- "badge": {
33
- "additionalProperties": false,
34
- "properties": {
35
- "class": {
36
- "type": "string"
37
- },
38
- "classcolor": {
39
- "type": "string"
40
- },
41
- "text": {
42
- "type": "string"
43
- }
44
- },
45
- "required": [
46
- "text"
47
- ],
48
- "type": "object"
49
- },
50
- "group": {
51
- "type": "string"
52
- },
53
- "icon": {
54
- "type": "string"
55
- },
56
- "key": {
57
- "type": "string"
58
- },
59
- "label": {
60
- "type": "string"
61
- },
62
- "open": {
63
- "type": "boolean"
64
- },
65
- "subLinks": {
66
- "items": {
67
- "$ref": "#/definitions/INavLink"
68
- },
69
- "type": "array"
70
- }
71
- },
72
- "required": [
73
- "key",
74
- "label"
75
- ],
76
- "type": "object"
77
- }
78
- }
79
- }
@@ -1,27 +0,0 @@
1
- {
2
- "$ref": "#/definitions/Events",
3
- "$schema": "http://json-schema.org/draft-07/schema#",
4
- "definitions": {
5
- "Events": {
6
- "additionalProperties": false,
7
- "properties": {
8
- "pagechange": {
9
- "additionalProperties": false,
10
- "properties": {
11
- "page": {
12
- "type": "string"
13
- }
14
- },
15
- "required": [
16
- "page"
17
- ],
18
- "type": "object"
19
- }
20
- },
21
- "required": [
22
- "pagechange"
23
- ],
24
- "type": "object"
25
- }
26
- }
27
- }