@htmlbricks/hb-searchbar 0.70.1 → 0.71.0

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/manifest.json CHANGED
@@ -67,6 +67,13 @@
67
67
  ],
68
68
  "type": "string"
69
69
  },
70
+ "disabled": {
71
+ "enum": [
72
+ "yes",
73
+ "no"
74
+ ],
75
+ "type": "string"
76
+ },
70
77
  "id": {
71
78
  "type": "string"
72
79
  },
@@ -175,7 +182,7 @@
175
182
  }
176
183
  }
177
184
  },
178
- "description": "Search field with optional dropdown `searchlist` (id, text, icons, badges, tags, URLs). Configure `value`, `initial_value`, `searchlabel`, `textarea`, `minlength`, `disable_preview`, and CSS parts for the input and menu. Dispatches `search` and `clear`.",
185
+ "description": "Search field with optional dropdown `searchlist` (id, text, icons, badges, tags, URLs). Configure `value`, `initial_value`, `searchlabel`, `textarea`, `minlength`, `disable_preview`, `disabled`, and CSS parts for the input and menu. Dispatches `search` and `clear`.",
179
186
  "storybookArgs": {
180
187
  "initial_value": {
181
188
  "control": {
@@ -220,6 +227,15 @@
220
227
  "no"
221
228
  ]
222
229
  },
230
+ "disabled": {
231
+ "control": {
232
+ "type": "select"
233
+ },
234
+ "options": [
235
+ "yes",
236
+ "no"
237
+ ]
238
+ },
223
239
  "search": {
224
240
  "action": "search"
225
241
  },
@@ -338,6 +354,25 @@
338
354
  ]
339
355
  }
340
356
  },
357
+ {
358
+ "name": "disabled",
359
+ "description": "Searchbar with disabled state",
360
+ "data": {
361
+ "value": "cannot type here",
362
+ "searchlabel": "Search",
363
+ "disabled": "yes"
364
+ }
365
+ },
366
+ {
367
+ "name": "disabledTextarea",
368
+ "description": "Textarea searchbar with disabled state",
369
+ "data": {
370
+ "value": "cannot type here",
371
+ "searchlabel": "Search",
372
+ "textarea": "yes",
373
+ "disabled": "yes"
374
+ }
375
+ },
341
376
  {
342
377
  "name": "with20items",
343
378
  "data": {
@@ -785,7 +820,7 @@
785
820
  }
786
821
  }
787
822
  ],
788
- "iifeIntegrity": "sha384-ta/GXrCiX02bHz5vQ+wGwF+ib8ukyhk9iMp35ulAcGSY+jzHc2jscsduSJ7E88OG",
823
+ "iifeIntegrity": "sha384-0OomtXB26PoFvNVCrXxbJEjl+pZ5csabd6TkGPruqvuSghXUck5l7DB1lzKBeHqi",
789
824
  "dependencies": [],
790
825
  "screenshots": [],
791
826
  "licenses": [
@@ -806,5 +841,5 @@
806
841
  "size": {},
807
842
  "iifePath": "main.iife.js",
808
843
  "repoName": "@htmlbricks/hb-searchbar",
809
- "version": "0.70.1"
844
+ "version": "0.71.0"
810
845
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-searchbar",
3
- "version": "0.70.1",
3
+ "version": "0.71.0",
4
4
  "contributors": [],
5
- "description": "Search field with optional dropdown `searchlist` (id, text, icons, badges, tags, URLs). Configure `value`, `initial_value`, `searchlabel`, `textarea`, `minlength`, `disable_preview`, and CSS parts for the input and menu. Dispatches `search` and `clear`.",
5
+ "description": "Search field with optional dropdown `searchlist` (id, text, icons, badges, tags, URLs). Configure `value`, `initial_value`, `searchlabel`, `textarea`, `minlength`, `disable_preview`, `disabled`, and CSS parts for the input and menu. Dispatches `search` and `clear`.",
6
6
  "licenses": [
7
7
  {
8
8
  "type": "Apache-2.0",
@@ -16,6 +16,13 @@
16
16
  ],
17
17
  "type": "string"
18
18
  },
19
+ "disabled": {
20
+ "enum": [
21
+ "yes",
22
+ "no"
23
+ ],
24
+ "type": "string"
25
+ },
19
26
  "id": {
20
27
  "type": "string"
21
28
  },
@@ -21,6 +21,7 @@ export type Component = {
21
21
  searchlist?: TSearchListItem[];
22
22
  input_info?: TSearchListItem
23
23
  textarea?: "yes" | "true" | ""
24
+ disabled?: "yes" | "no"
24
25
  };
25
26
 
26
27
  export type Events = {