@htmlbricks/hb-input-checkbox 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
  schemaentry: { control: { type: "object" } },
@@ -26,15 +27,26 @@ export const styleSetup: StyleSetup = {
26
27
  parts: cssParts,
27
28
  };
28
29
 
29
- export const componentSetup: ComponentSetup = {
30
+ const examples: Component[] = [
31
+ {
32
+ schemaentry: {
33
+ placeholder: "Insert your last name here...",
34
+ id: "lastName",
35
+ required: true,
36
+ label: "Last Name",
37
+ validationTip: "This field cannot be empty.",
38
+ },
39
+ },
40
+ ];
41
+ export const componentSetup: ComponentSetup & { examples: Component[] } = {
30
42
  definitions: null,
31
43
  storybookArgs,
32
44
  styleSetup,
33
45
  htmlSlots,
34
46
  i18n: i18nLanguages,
35
- examples: [],
36
- name: "",
37
- category: "",
38
- tags: [],
47
+ examples,
48
+ name: "hb-input-checkbox",
49
+ category: "input",
50
+ tags: ["input"],
39
51
  size: {},
40
52
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-input-checkbox",
3
3
  "displayName": "Svelte-Bootstrap Checkbox Input WebComponent",
4
4
  "description": "Svelte-Bootstrap Checkbox Input WebComponent",
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",
@@ -75,5 +75,5 @@
75
75
  "webcomponents"
76
76
  ],
77
77
  "contributors": [],
78
- "gitHead": "a771bab3b3337eaa36e3c3330545158c3ef927e6"
78
+ "gitHead": "cad34cdf98084f7b6d972812fbc05c783318f0ea"
79
79
  }
package/release/docs.js CHANGED
@@ -21,16 +21,27 @@ export var styleSetup = {
21
21
  vars: cssVars,
22
22
  parts: cssParts
23
23
  };
24
+ var examples = [
25
+ {
26
+ schemaentry: {
27
+ placeholder: "Insert your last name here...",
28
+ id: "lastName",
29
+ required: true,
30
+ label: "Last Name",
31
+ validationTip: "This field cannot be empty."
32
+ }
33
+ },
34
+ ];
24
35
  export var componentSetup = {
25
36
  definitions: null,
26
37
  storybookArgs: storybookArgs,
27
38
  styleSetup: styleSetup,
28
39
  htmlSlots: htmlSlots,
29
40
  i18n: i18nLanguages,
30
- examples: [],
31
- name: "",
32
- category: "",
33
- tags: [],
41
+ examples: examples,
42
+ name: "hb-input-checkbox",
43
+ category: "input",
44
+ tags: ["input"],
34
45
  size: {}
35
46
  };
36
47
  //# 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,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC5C,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAChD,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,MA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S,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE;CACxF,CAAC;AACF,MAAM,CAAC,IAAM,QAAQ,GAAc,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;AACnF,MAAM,CAAC,IAAM,SAAS,GAAe,EAAE,CAAC;AACxC,MAAM,CAAC,IAAM,aAAa,GAAe,EAAE,CAAC;AAE5C,MAAM,CAAC,IAAM,UAAU,GAAe;IACrC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;CACf,CAAC;AAEF,IAAM,QAAQ,GAAgB;IAC7B;QACC,WAAW,EAAE;YACZ,WAAW,EAAE,+BAA+B;YAC5C,EAAE,EAAE,UAAU;YACd,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,WAAW;YAClB,aAAa,EAAE,6BAA6B;SAC5C;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,mBAAmB;IACzB,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
  schemaentry: { control: { type: "object" } },
@@ -26,15 +27,26 @@ export const styleSetup: StyleSetup = {
26
27
  parts: cssParts,
27
28
  };
28
29
 
29
- export const componentSetup: ComponentSetup = {
30
+ const examples: Component[] = [
31
+ {
32
+ schemaentry: {
33
+ placeholder: "Insert your last name here...",
34
+ id: "lastName",
35
+ required: true,
36
+ label: "Last Name",
37
+ validationTip: "This field cannot be empty.",
38
+ },
39
+ },
40
+ ];
41
+ export const componentSetup: ComponentSetup & { examples: Component[] } = {
30
42
  definitions: null,
31
43
  storybookArgs,
32
44
  styleSetup,
33
45
  htmlSlots,
34
46
  i18n: i18nLanguages,
35
- examples: [],
36
- name: "",
37
- category: "",
38
- tags: [],
47
+ examples,
48
+ name: "hb-input-checkbox",
49
+ category: "input",
50
+ tags: ["input"],
39
51
  size: {},
40
52
  };
@@ -200,9 +200,21 @@
200
200
  },
201
201
  "htmlSlots": [],
202
202
  "i18n": [],
203
- "examples": [],
204
- "name": "",
205
- "category": "",
206
- "tags": [],
203
+ "examples": [
204
+ {
205
+ "schemaentry": {
206
+ "placeholder": "Insert your last name here...",
207
+ "id": "lastName",
208
+ "required": true,
209
+ "label": "Last Name",
210
+ "validationTip": "This field cannot be empty."
211
+ }
212
+ }
213
+ ],
214
+ "name": "hb-input-checkbox",
215
+ "category": "input",
216
+ "tags": [
217
+ "input"
218
+ ],
207
219
  "size": {}
208
220
  }
package/release/docs.mjs DELETED
@@ -1,36 +0,0 @@
1
- export var storybookArgs = {
2
- schemaentry: { control: { type: "object" } },
3
- showvalidation: { control: { type: "boolean" } },
4
- setvalid: { control: { type: "boolean" } },
5
- setvalue: { control: { type: "boolean" } },
6
- setValid: { action: "setValid" },
7
- setValue: { action: "setValue" }
8
- };
9
- var cssVars = [
10
- { name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
11
- { name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
12
- { name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
13
- { name: "--bs-info", valueType: "color", theme: "bootstrap", defaultValue: "#a2d5f2" },
14
- { name: "--bs-warning", valueType: "color", theme: "bootstrap", defaultValue: "#ffc107" },
15
- { name: "--bs-danger", valueType: "color", theme: "bootstrap", defaultValue: "#f67280" },
16
- ];
17
- export var cssParts = [{ name: "invalid-feedback", description: "" }];
18
- export var htmlSlots = [];
19
- export var i18nLanguages = [];
20
- export var styleSetup = {
21
- vars: cssVars,
22
- parts: cssParts
23
- };
24
- export var componentSetup = {
25
- definitions: null,
26
- storybookArgs: storybookArgs,
27
- styleSetup: styleSetup,
28
- htmlSlots: htmlSlots,
29
- i18n: i18nLanguages,
30
- examples: [],
31
- name: "",
32
- category: "",
33
- tags: [],
34
- size: {}
35
- };
36
- //# sourceMappingURL=docs.js.map
@@ -1,83 +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
- "schemaentry": {
12
- "$ref": "#/definitions/FormSchemaEntry"
13
- },
14
- "setvalid": {
15
- "type": "boolean"
16
- },
17
- "setvalue": {
18
- "type": "boolean"
19
- },
20
- "showvalidation": {
21
- "enum": [
22
- "yes",
23
- "no"
24
- ],
25
- "type": "string"
26
- },
27
- "style": {
28
- "type": "string"
29
- }
30
- },
31
- "required": [
32
- "schemaentry"
33
- ],
34
- "type": "object"
35
- },
36
- "FormSchemaEntry": {
37
- "additionalProperties": false,
38
- "properties": {
39
- "id": {
40
- "description": "This will be both the key of the object when submitting the form's data, and also the id in the DOM.",
41
- "type": "string"
42
- },
43
- "label": {
44
- "description": "The descriptive label that will show alongside the form control.",
45
- "type": "string"
46
- },
47
- "params": {
48
- "description": "Other parameters that may be specific to a certain kind of form control.",
49
- "type": "object"
50
- },
51
- "placeholder": {
52
- "type": "string"
53
- },
54
- "readonly": {
55
- "type": "boolean"
56
- },
57
- "required": {
58
- "description": "This doesn't matter if the dependencies requirements aren't met.",
59
- "type": "boolean"
60
- },
61
- "validationRegex": {
62
- "type": "string"
63
- },
64
- "validationTip": {
65
- "description": "Shows if value is not valid.",
66
- "type": "string"
67
- },
68
- "value": {
69
- "description": "Optional default value.",
70
- "type": [
71
- "string",
72
- "number",
73
- "boolean"
74
- ]
75
- }
76
- },
77
- "required": [
78
- "id"
79
- ],
80
- "type": "object"
81
- }
82
- }
83
- }
@@ -1,40 +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
- "setValid": {
9
- "additionalProperties": false,
10
- "properties": {
11
- "valid": {
12
- "type": "boolean"
13
- }
14
- },
15
- "required": [
16
- "valid"
17
- ],
18
- "type": "object"
19
- },
20
- "setValue": {
21
- "additionalProperties": false,
22
- "properties": {
23
- "value": {
24
- "type": "string"
25
- }
26
- },
27
- "required": [
28
- "value"
29
- ],
30
- "type": "object"
31
- }
32
- },
33
- "required": [
34
- "setValue",
35
- "setValid"
36
- ],
37
- "type": "object"
38
- }
39
- }
40
- }