@statistikzh/leu 0.22.0 → 0.22.1

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.
Files changed (190) hide show
  1. package/.github/workflows/release-please.yml +1 -2
  2. package/.nvmrc +1 -1
  3. package/.release-please-manifest.json +1 -1
  4. package/CHANGELOG.md +9 -0
  5. package/README.md +15 -10
  6. package/dist/Accordion.js +1 -1
  7. package/dist/Button.d.ts +1 -1
  8. package/dist/Button.js +1 -1
  9. package/dist/ButtonGroup.js +1 -1
  10. package/dist/ChartWrapper.js +1 -1
  11. package/dist/Checkbox.d.ts +1 -1
  12. package/dist/Checkbox.js +1 -1
  13. package/dist/CheckboxGroup.js +1 -1
  14. package/dist/Chip.d.ts +1 -7
  15. package/dist/Chip.js +7 -5
  16. package/dist/ChipGroup.d.ts +17 -36
  17. package/dist/ChipGroup.js +35 -33
  18. package/dist/ChipLink.d.ts +5 -21
  19. package/dist/ChipLink.js +14 -15
  20. package/dist/ChipRemovable.d.ts +4 -15
  21. package/dist/ChipRemovable.js +7 -9
  22. package/dist/ChipSelectable.d.ts +14 -37
  23. package/dist/ChipSelectable.js +24 -28
  24. package/dist/Dialog.d.ts +7 -18
  25. package/dist/Dialog.js +15 -18
  26. package/dist/Dropdown.d.ts +16 -28
  27. package/dist/Dropdown.js +22 -23
  28. package/dist/FileInput.d.ts +2 -1
  29. package/dist/FileInput.js +19 -5
  30. package/dist/Icon.d-itcQ94ym.d.ts +151 -0
  31. package/dist/Icon.d.ts +4 -156
  32. package/dist/Icon.js +1 -4
  33. package/dist/Input.d.ts +73 -141
  34. package/dist/Input.js +91 -88
  35. package/dist/{LeuElement-BooZrClI.js → LeuElement-DfsEye-A.js} +1 -1
  36. package/dist/Menu.d.ts +2 -8
  37. package/dist/Menu.js +7 -9
  38. package/dist/MenuItem.d.ts +31 -59
  39. package/dist/MenuItem.js +30 -33
  40. package/dist/Message.d.ts +1 -1
  41. package/dist/Message.js +1 -1
  42. package/dist/Pagination.d.ts +1 -1
  43. package/dist/Pagination.js +1 -1
  44. package/dist/Placeholder.js +1 -1
  45. package/dist/Popup.js +1 -1
  46. package/dist/ProgressBar.js +1 -1
  47. package/dist/Radio.js +1 -1
  48. package/dist/RadioGroup.js +1 -1
  49. package/dist/Range.d.ts +22 -65
  50. package/dist/Range.js +36 -37
  51. package/dist/ScrollTop.d.ts +5 -7
  52. package/dist/ScrollTop.js +10 -15
  53. package/dist/Select.d.ts +2 -1
  54. package/dist/Select.js +1 -1
  55. package/dist/Spinner.js +1 -1
  56. package/dist/Table.d.ts +1 -1
  57. package/dist/Table.js +1 -1
  58. package/dist/Tag.js +1 -1
  59. package/dist/VisuallyHidden.js +1 -1
  60. package/dist/components/chart-wrapper/leu-chart-wrapper.d.ts +5 -0
  61. package/dist/components/chart-wrapper/leu-chart-wrapper.d.ts.map +1 -1
  62. package/dist/components/chip/Chip.d.ts +1 -7
  63. package/dist/components/chip/Chip.d.ts.map +1 -1
  64. package/dist/components/chip/ChipGroup.d.ts +15 -35
  65. package/dist/components/chip/ChipGroup.d.ts.map +1 -1
  66. package/dist/components/chip/ChipLink.d.ts +4 -20
  67. package/dist/components/chip/ChipLink.d.ts.map +1 -1
  68. package/dist/components/chip/ChipRemovable.d.ts +3 -14
  69. package/dist/components/chip/ChipRemovable.d.ts.map +1 -1
  70. package/dist/components/chip/ChipSelectable.d.ts +13 -36
  71. package/dist/components/chip/ChipSelectable.d.ts.map +1 -1
  72. package/dist/components/chip/stories/chip-group.stories.d.ts +1 -1
  73. package/dist/components/chip/stories/chip-group.stories.d.ts.map +1 -1
  74. package/dist/components/chip/stories/chip-link.stories.d.ts.map +1 -1
  75. package/dist/components/chip/stories/chip-selectable.stories.d.ts.map +1 -1
  76. package/dist/components/dialog/Dialog.d.ts +5 -17
  77. package/dist/components/dialog/Dialog.d.ts.map +1 -1
  78. package/dist/components/dropdown/Dropdown.d.ts +14 -27
  79. package/dist/components/dropdown/Dropdown.d.ts.map +1 -1
  80. package/dist/components/file-input/FileInput.d.ts +1 -0
  81. package/dist/components/file-input/FileInput.d.ts.map +1 -1
  82. package/dist/components/file-input/leu-file-input.d.ts +5 -0
  83. package/dist/components/file-input/leu-file-input.d.ts.map +1 -1
  84. package/dist/components/file-input/stories/file-input.stories.d.ts +4 -0
  85. package/dist/components/file-input/stories/file-input.stories.d.ts.map +1 -1
  86. package/dist/components/icon/Icon.d.ts +0 -6
  87. package/dist/components/icon/Icon.d.ts.map +1 -1
  88. package/dist/components/input/Input.d.ts +73 -140
  89. package/dist/components/input/Input.d.ts.map +1 -1
  90. package/dist/components/menu/Menu.d.ts +1 -7
  91. package/dist/components/menu/Menu.d.ts.map +1 -1
  92. package/dist/components/menu/MenuItem.d.ts +30 -57
  93. package/dist/components/menu/MenuItem.d.ts.map +1 -1
  94. package/dist/components/message/leu-message.d.ts +5 -0
  95. package/dist/components/message/leu-message.d.ts.map +1 -1
  96. package/dist/components/placeholder/leu-placeholder.d.ts +5 -0
  97. package/dist/components/placeholder/leu-placeholder.d.ts.map +1 -1
  98. package/dist/components/progress-bar/leu-progress-bar.d.ts +5 -0
  99. package/dist/components/progress-bar/leu-progress-bar.d.ts.map +1 -1
  100. package/dist/components/range/Range.d.ts +22 -65
  101. package/dist/components/range/Range.d.ts.map +1 -1
  102. package/dist/components/scroll-top/ScrollTop.d.ts +4 -6
  103. package/dist/components/scroll-top/ScrollTop.d.ts.map +1 -1
  104. package/dist/components/tag/leu-tag.d.ts +5 -0
  105. package/dist/components/tag/leu-tag.d.ts.map +1 -1
  106. package/dist/index.d.ts +11 -0
  107. package/dist/index.d.ts.map +1 -1
  108. package/dist/index.js +13 -4
  109. package/dist/leu-accordion.js +1 -1
  110. package/dist/leu-button-group.js +1 -1
  111. package/dist/leu-button.d.ts +1 -1
  112. package/dist/leu-button.js +1 -1
  113. package/dist/leu-chart-wrapper.d.ts +10 -1
  114. package/dist/leu-chart-wrapper.js +1 -1
  115. package/dist/leu-checkbox-group.js +1 -1
  116. package/dist/leu-checkbox.d.ts +1 -1
  117. package/dist/leu-checkbox.js +1 -1
  118. package/dist/leu-chip-group.d.ts +2 -0
  119. package/dist/leu-chip-group.js +5 -1
  120. package/dist/leu-chip-link.js +3 -1
  121. package/dist/leu-chip-removable.d.ts +1 -1
  122. package/dist/leu-chip-removable.js +3 -3
  123. package/dist/leu-chip-selectable.js +3 -1
  124. package/dist/leu-dialog.d.ts +2 -1
  125. package/dist/leu-dialog.js +3 -3
  126. package/dist/leu-dropdown.d.ts +2 -1
  127. package/dist/leu-dropdown.js +3 -3
  128. package/dist/leu-file-input.d.ts +11 -2
  129. package/dist/leu-file-input.js +11 -4
  130. package/dist/leu-icon.d.ts +1 -1
  131. package/dist/leu-icon.js +1 -1
  132. package/dist/leu-input.d.ts +2 -1
  133. package/dist/leu-input.js +3 -3
  134. package/dist/leu-menu-item.d.ts +2 -2
  135. package/dist/leu-menu-item.js +3 -3
  136. package/dist/leu-menu.d.ts +1 -1
  137. package/dist/leu-menu.js +3 -3
  138. package/dist/leu-message.d.ts +11 -2
  139. package/dist/leu-message.js +1 -1
  140. package/dist/leu-pagination.d.ts +1 -1
  141. package/dist/leu-pagination.js +1 -1
  142. package/dist/leu-placeholder.d.ts +10 -1
  143. package/dist/leu-placeholder.js +1 -1
  144. package/dist/leu-popup.js +1 -1
  145. package/dist/leu-progress-bar.d.ts +10 -1
  146. package/dist/leu-progress-bar.js +1 -1
  147. package/dist/leu-radio-group.js +1 -1
  148. package/dist/leu-radio.js +1 -1
  149. package/dist/leu-range.js +3 -1
  150. package/dist/leu-scroll-top.d.ts +1 -1
  151. package/dist/leu-scroll-top.js +3 -3
  152. package/dist/leu-select.d.ts +2 -1
  153. package/dist/leu-select.js +1 -1
  154. package/dist/leu-spinner.js +1 -1
  155. package/dist/leu-table.d.ts +1 -1
  156. package/dist/leu-table.js +1 -1
  157. package/dist/leu-tag.d.ts +10 -1
  158. package/dist/leu-tag.js +1 -1
  159. package/dist/leu-visually-hidden.js +1 -1
  160. package/dist/vscode.html-custom-data.json +126 -123
  161. package/dist/vue/index.d.ts +129 -146
  162. package/dist/web-types.json +340 -345
  163. package/package.json +1 -1
  164. package/scripts/generate-component/templates/[namespace]-[name].ts +6 -0
  165. package/src/components/chart-wrapper/leu-chart-wrapper.ts +6 -0
  166. package/src/components/chip/Chip.ts +3 -9
  167. package/src/components/chip/ChipGroup.ts +26 -39
  168. package/src/components/chip/ChipLink.ts +7 -18
  169. package/src/components/chip/ChipRemovable.ts +4 -11
  170. package/src/components/chip/ChipSelectable.ts +21 -35
  171. package/src/components/chip/stories/chip-group.stories.ts +4 -7
  172. package/src/components/chip/stories/chip-link.stories.ts +2 -4
  173. package/src/components/chip/stories/chip-selectable.stories.ts +4 -6
  174. package/src/components/chip/test/chip-group.test.ts +34 -31
  175. package/src/components/dialog/Dialog.ts +9 -22
  176. package/src/components/dropdown/Dropdown.ts +19 -26
  177. package/src/components/file-input/FileInput.ts +12 -1
  178. package/src/components/file-input/leu-file-input.ts +6 -0
  179. package/src/components/file-input/stories/file-input.stories.ts +7 -0
  180. package/src/components/icon/Icon.ts +0 -4
  181. package/src/components/input/Input.ts +108 -105
  182. package/src/components/menu/Menu.ts +3 -12
  183. package/src/components/menu/MenuItem.ts +37 -41
  184. package/src/components/message/leu-message.ts +6 -0
  185. package/src/components/placeholder/leu-placeholder.ts +6 -0
  186. package/src/components/progress-bar/leu-progress-bar.ts +6 -0
  187. package/src/components/range/Range.ts +51 -59
  188. package/src/components/scroll-top/ScrollTop.ts +8 -15
  189. package/src/components/tag/leu-tag.ts +6 -0
  190. package/src/index.ts +11 -0
@@ -34,17 +34,6 @@
34
34
  }
35
35
  ]
36
36
  },
37
- {
38
- "name": "leu-button-group",
39
- "description": "A radio input-like button group component.\nIt allows only one button to be active at a time.\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
40
- "attributes": [],
41
- "references": [
42
- {
43
- "name": "Documentation",
44
- "url": "https://statistikzh.github.io/leu/?path=/story/button-group"
45
- }
46
- ]
47
- },
48
37
  {
49
38
  "name": "leu-button",
50
39
  "description": "\n---\n\n\n### **Slots:**\n - **before** - The icon to display before the label\n- **after** - The icon to display after the label\n- _default_ - The label of the button or the icon if no label is set",
@@ -120,23 +109,6 @@
120
109
  }
121
110
  ]
122
111
  },
123
- {
124
- "name": "leu-chart-wrapper",
125
- "description": "A wrapper element for charts.\n---\n\n\n### **Slots:**\n - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.\n- **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.\n- **chart** - The actual chart\n- **caption** - A caption for the chart, e.g. a source or explanation of the data.\n- **download** - A download button or dropdown to export the chart in different formats.",
126
- "attributes": [
127
- {
128
- "name": "pending",
129
- "description": "Whether the chart is currently loading or not.\nWhen set to `true`, a spinner will be shown in the chart container.",
130
- "values": []
131
- }
132
- ],
133
- "references": [
134
- {
135
- "name": "Documentation",
136
- "url": "https://statistikzh.github.io/leu/?path=/story/chart-wrapper"
137
- }
138
- ]
139
- },
140
112
  {
141
113
  "name": "leu-checkbox",
142
114
  "description": "\n---\n",
@@ -176,163 +148,195 @@
176
148
  ]
177
149
  },
178
150
  {
179
- "name": "leu-chip-group",
180
- "description": "\n---\n\n\n### **Slots:**\n - _default_ - Place leu-chip-* elements inside this slot\n\n### **CSS Properties:**\n - **--leu-chip-group-gap** - The gap between the chips _(default: undefined)_",
151
+ "name": "leu-button-group",
152
+ "description": "A radio input-like button group component.\nIt allows only one button to be active at a time.\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
153
+ "attributes": [],
154
+ "references": [
155
+ {
156
+ "name": "Documentation",
157
+ "url": "https://statistikzh.github.io/leu/?path=/story/button-group"
158
+ }
159
+ ]
160
+ },
161
+ {
162
+ "name": "leu-chart-wrapper",
163
+ "description": "A wrapper element for charts.\n---\n\n\n### **Slots:**\n - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.\n- **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.\n- **chart** - The actual chart\n- **caption** - A caption for the chart, e.g. a source or explanation of the data.\n- **download** - A download button or dropdown to export the chart in different formats.",
181
164
  "attributes": [
182
- { "name": "inverted", "values": [] },
183
165
  {
184
- "name": "selection-mode",
185
- "values": [
186
- { "name": "single" },
187
- { "name": "multiple" },
188
- { "name": "none" }
189
- ]
190
- },
191
- { "name": "heading-level", "values": [] },
192
- { "name": "label", "values": [] }
166
+ "name": "pending",
167
+ "description": "Whether the chart is currently loading or not.\nWhen set to `true`, a spinner will be shown in the chart container.",
168
+ "values": []
169
+ }
193
170
  ],
194
171
  "references": [
195
172
  {
196
173
  "name": "Documentation",
197
- "url": "https://statistikzh.github.io/leu/?path=/story/chip-group"
174
+ "url": "https://statistikzh.github.io/leu/?path=/story/chart-wrapper"
198
175
  }
199
176
  ]
200
177
  },
201
178
  {
202
- "name": "leu-chip-link",
203
- "description": "\n---\n\n\n### **Slots:**\n - _default_ - The content of the chip",
179
+ "name": "leu-dropdown",
180
+ "description": "\n---\n",
204
181
  "attributes": [
205
- {
206
- "name": "size",
207
- "description": "The size of the chip",
208
- "values": [{ "name": "keyof typeof SIZES" }]
209
- },
210
- { "name": "href", "values": [] },
182
+ { "name": "label", "values": [] },
183
+ { "name": "expanded", "values": [] },
211
184
  { "name": "inverted", "values": [] }
212
185
  ],
213
186
  "references": [
214
187
  {
215
188
  "name": "Documentation",
216
- "url": "https://statistikzh.github.io/leu/?path=/story/chip-link"
189
+ "url": "https://statistikzh.github.io/leu/?path=/story/dropdown"
217
190
  }
218
191
  ]
219
192
  },
220
193
  {
221
- "name": "leu-chip-removable",
222
- "description": "\n---\n\n\n### **Events:**\n - **remove** - Dispatched when the user clicks on the chip\n\n### **Methods:**\n - **getValue(): _string_** - Returns the value of the chip. If `value` is not set, it will return the text content\n\n### **Slots:**\n - _default_ - The content of the chip",
194
+ "name": "leu-dialog",
195
+ "description": "\n---\n",
223
196
  "attributes": [
224
- {
225
- "name": "value",
226
- "description": "The value of the chip.",
227
- "values": []
228
- },
229
- { "name": "inverted", "values": [] }
197
+ { "name": "label", "values": [] },
198
+ { "name": "sublabel", "values": [] },
199
+ { "name": "open", "values": [] }
230
200
  ],
231
201
  "references": [
232
202
  {
233
203
  "name": "Documentation",
234
- "url": "https://statistikzh.github.io/leu/?path=/story/chip-removable"
204
+ "url": "https://statistikzh.github.io/leu/?path=/story/dialog"
235
205
  }
236
206
  ]
237
207
  },
238
208
  {
239
- "name": "leu-chip-selectable",
240
- "description": "A chip component that can be selected.\n---\n\n\n### **Events:**\n - **input**\n\n### **Methods:**\n - **getValue(): _string_** - Returns the value of the chip. If `value` is not set, it will return the text content\n\n### **Slots:**\n - _default_ - The content of the chip",
209
+ "name": "leu-file-input",
210
+ "description": "\n---\n\n\n### **Events:**\n - **input**\n- **change**",
241
211
  "attributes": [
212
+ { "name": "label", "values": [] },
242
213
  {
243
- "name": "size",
244
- "description": "The size of the chip. Not supported for radio variant.",
245
- "values": [{ "name": "keyof typeof SIZES" }]
214
+ "name": "accept",
215
+ "description": "A list of acceptable file types. Must be a comma-separated list of [unique file type specifiers](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers).",
216
+ "values": []
246
217
  },
247
218
  {
248
- "name": "variant",
249
- "description": "`toggle` or `radio`. Determines if only one or multiple chips can be selected.",
250
- "values": [{ "name": "keyof typeof VARIANTS" }]
219
+ "name": "disabled",
220
+ "description": "Whether the file input is disabled.",
221
+ "values": []
251
222
  },
252
223
  {
253
- "name": "checked",
254
- "description": "Whether the chip is selected.",
224
+ "name": "multiple",
225
+ "description": "Whether the file input allows multiple files.",
255
226
  "values": []
256
227
  },
257
228
  {
258
- "name": "value",
259
- "description": "The value of the chip.",
229
+ "name": "required",
230
+ "description": "Whether the file input is required.",
260
231
  "values": []
261
232
  },
262
- { "name": "inverted", "values": [] }
233
+ {
234
+ "name": "variant",
235
+ "description": "The variant of the file list item. `filled` renders a gray background.",
236
+ "values": [{ "name": "filled" }, { "name": "transparent" }]
237
+ }
263
238
  ],
264
239
  "references": [
265
240
  {
266
241
  "name": "Documentation",
267
- "url": "https://statistikzh.github.io/leu/?path=/story/chip-selectable"
242
+ "url": "https://statistikzh.github.io/leu/?path=/story/file-input"
268
243
  }
269
244
  ]
270
245
  },
271
246
  {
272
- "name": "leu-dialog",
273
- "description": "\n---\n",
247
+ "name": "leu-chip-group",
248
+ "description": "\n---\n\n\n### **Slots:**\n - _default_ - Place leu-chip-* elements inside this slot\n\n### **CSS Properties:**\n - **--leu-chip-group-gap** - The gap between the chips _(default: undefined)_",
274
249
  "attributes": [
275
- { "name": "label", "values": [] },
276
- { "name": "sublabel", "values": [] },
277
- { "name": "open", "values": [] }
250
+ { "name": "inverted", "values": [] },
251
+ {
252
+ "name": "selection-mode",
253
+ "values": [
254
+ { "name": "single" },
255
+ { "name": "multiple" },
256
+ { "name": "none" }
257
+ ]
258
+ },
259
+ { "name": "heading-level", "values": [] },
260
+ { "name": "label", "values": [] }
278
261
  ],
279
262
  "references": [
280
263
  {
281
264
  "name": "Documentation",
282
- "url": "https://statistikzh.github.io/leu/?path=/story/dialog"
265
+ "url": "https://statistikzh.github.io/leu/?path=/story/chip-group"
283
266
  }
284
267
  ]
285
268
  },
286
269
  {
287
- "name": "leu-dropdown",
288
- "description": "\n---\n",
270
+ "name": "leu-chip-link",
271
+ "description": "\n---\n\n\n### **Slots:**\n - _default_ - The content of the chip",
289
272
  "attributes": [
290
- { "name": "label", "values": [] },
291
- { "name": "expanded", "values": [] },
273
+ {
274
+ "name": "size",
275
+ "description": "The size of the chip",
276
+ "values": [{ "name": "regular" }, { "name": "large" }]
277
+ },
278
+ {
279
+ "name": "href",
280
+ "description": "The URL that the chip links to",
281
+ "values": []
282
+ },
292
283
  { "name": "inverted", "values": [] }
293
284
  ],
294
285
  "references": [
295
286
  {
296
287
  "name": "Documentation",
297
- "url": "https://statistikzh.github.io/leu/?path=/story/dropdown"
288
+ "url": "https://statistikzh.github.io/leu/?path=/story/chip-link"
298
289
  }
299
290
  ]
300
291
  },
301
292
  {
302
- "name": "leu-file-input",
303
- "description": "\n---\n\n\n### **Events:**\n - **input**\n- **change**",
293
+ "name": "leu-chip-removable",
294
+ "description": "\n---\n\n\n### **Events:**\n - **remove** - Dispatched when the user clicks on the chip\n\n### **Methods:**\n - **getValue()** - Returns the value of the chip. If `value` is not set, it will return the text content\n\n### **Slots:**\n - _default_ - The content of the chip",
304
295
  "attributes": [
305
- { "name": "label", "values": [] },
306
296
  {
307
- "name": "accept",
308
- "description": "A list of acceptable file types. Must be a comma-separated list of [unique file type specifiers](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers).",
297
+ "name": "value",
298
+ "description": "The value of the chip.",
309
299
  "values": []
310
300
  },
301
+ { "name": "inverted", "values": [] }
302
+ ],
303
+ "references": [
311
304
  {
312
- "name": "disabled",
313
- "description": "Whether the file input is disabled.",
314
- "values": []
305
+ "name": "Documentation",
306
+ "url": "https://statistikzh.github.io/leu/?path=/story/chip-removable"
307
+ }
308
+ ]
309
+ },
310
+ {
311
+ "name": "leu-chip-selectable",
312
+ "description": "A chip component that can be selected.\n---\n\n\n### **Events:**\n - **input**\n\n### **Methods:**\n - **getValue(): _string_** - Returns the value of the chip. If `value` is not set, it will return the text content\n\n### **Slots:**\n - _default_ - The content of the chip",
313
+ "attributes": [
314
+ {
315
+ "name": "size",
316
+ "description": "The size of the chip. Has no effect when variant is \"radio\"",
317
+ "values": [{ "name": "small" }, { "name": "regular" }]
315
318
  },
316
319
  {
317
- "name": "multiple",
318
- "description": "Whether the file input allows multiple files.",
319
- "values": []
320
+ "name": "variant",
321
+ "description": "The variant of the chip. Determines if only one or multiple chips can be selected.",
322
+ "values": [{ "name": "toggle" }, { "name": "radio" }]
320
323
  },
321
324
  {
322
- "name": "required",
323
- "description": "Whether the file input is required.",
325
+ "name": "checked",
326
+ "description": "Whether the chip is selected",
324
327
  "values": []
325
328
  },
326
329
  {
327
- "name": "variant",
328
- "description": "The variant of the file list item. `filled` renders a gray background.",
329
- "values": [{ "name": "filled" }, { "name": "transparent" }]
330
- }
330
+ "name": "value",
331
+ "description": "The value of the chip",
332
+ "values": []
333
+ },
334
+ { "name": "inverted", "values": [] }
331
335
  ],
332
336
  "references": [
333
337
  {
334
338
  "name": "Documentation",
335
- "url": "https://statistikzh.github.io/leu/?path=/story/file-input"
339
+ "url": "https://statistikzh.github.io/leu/?path=/story/chip-selectable"
336
340
  }
337
341
  ]
338
342
  },
@@ -355,7 +359,7 @@
355
359
  },
356
360
  {
357
361
  "name": "leu-input",
358
- "description": "A text input element.\n---\n\n\n### **Events:**\n - **input** - Dispatched when the value of the input element changes.\n- **change** - Dispatched when the value of the input element changes and the input element loses focus.\n\n### **Methods:**\n - **getValidationMessages(): _Object_** - Merge custom and default validation messages.\nA validation message can be a function or a string.\nIf it s a function, the function is called with the corresponding\nattribute value as argument.\ne.g.\n`tooLong(this.maxlength)`\nThis way the framework user can create reasonable validation messages\n- **checkValidity(): _boolean_** - Check input validation\n- **renderErrorMessages(): _TemplateResult | nothing_** - Creates an error list with an item for the given validity state.",
362
+ "description": "A text input element.\n---\n\n\n### **Events:**\n - **input** - Dispatched when the value of the input element changes.\n- **change** - Dispatched when the value of the input element changes and the input element loses focus.\n\n### **Methods:**\n \n\n\n\n\n\n\n- **checkValidity()** - Check input validation\n\n",
359
363
  "attributes": [
360
364
  {
361
365
  "name": "disabled",
@@ -364,12 +368,12 @@
364
368
  },
365
369
  {
366
370
  "name": "required",
367
- "description": "Marks the input element as required.",
371
+ "description": "Marks the input element as required",
368
372
  "values": []
369
373
  },
370
374
  {
371
375
  "name": "clearable",
372
- "description": "Adds a button to clear the input element.",
376
+ "description": "Adds a button to clear the input element",
373
377
  "values": []
374
378
  },
375
379
  {
@@ -389,12 +393,12 @@
389
393
  },
390
394
  {
391
395
  "name": "label",
392
- "description": "The label of the input element.",
396
+ "description": "The label of the input element",
393
397
  "values": []
394
398
  },
395
399
  {
396
400
  "name": "prefix",
397
- "description": "A prefix that relates to the value of the input (e.g. CHF).",
401
+ "description": "A prefix that relates to the value of the input (e.g. CHF)",
398
402
  "values": []
399
403
  },
400
404
  {
@@ -404,13 +408,13 @@
404
408
  },
405
409
  {
406
410
  "name": "size",
407
- "description": "The size of the input element.",
408
- "values": []
411
+ "description": "The size of the input element",
412
+ "values": [{ "name": "small" }, { "name": "regular" }]
409
413
  },
410
414
  {
411
415
  "name": "icon",
412
- "description": "The icon that is displayed at the end of the input element.",
413
- "values": []
416
+ "description": "The icon that is displayed at the end of the input element",
417
+ "values": [{ "name": "IconPathName" }]
414
418
  },
415
419
  {
416
420
  "name": "pattern",
@@ -420,7 +424,7 @@
420
424
  {
421
425
  "name": "type",
422
426
  "description": "The type of the input element.",
423
- "values": []
427
+ "values": [{ "name": "InputType" }]
424
428
  },
425
429
  {
426
430
  "name": "min",
@@ -432,6 +436,11 @@
432
436
  "description": "The maximum value of the input element.",
433
437
  "values": []
434
438
  },
439
+ {
440
+ "name": "step",
441
+ "description": "The step value of the input element.",
442
+ "values": []
443
+ },
435
444
  {
436
445
  "name": "maxlength",
437
446
  "description": "The maximum length of the input element.",
@@ -445,19 +454,13 @@
445
454
  {
446
455
  "name": "validationMessages",
447
456
  "description": "Custom validation messages. The key is the name of the validity state and the value is the message.",
448
- "values": [{ "name": "object" }]
457
+ "values": [{ "name": "Record<string" }, { "name": "string>" }]
449
458
  },
450
459
  {
451
460
  "name": "novalidate",
452
461
  "description": "Disables the browser's validation.",
453
462
  "values": []
454
- },
455
- {
456
- "name": "step",
457
- "description": "The step value of the input element.",
458
- "values": []
459
- },
460
- { "name": "_validity", "values": [] }
463
+ }
461
464
  ],
462
465
  "references": [
463
466
  {
@@ -485,7 +488,7 @@
485
488
  },
486
489
  {
487
490
  "name": "leu-menu-item",
488
- "description": "\n---\n\n\n### **Methods:**\n - **getValue(): _string_** - Returns the value of the item. If `value` is not set, it will return the inner text\n\n### **Slots:**\n - _default_ - The label of the menu item",
491
+ "description": "\n---\n\n\n### **Methods:**\n - **getValue()** - Returns the value of the item. If `value` is not set, it will return the inner text\n\n### **Slots:**\n - _default_ - The label of the menu item",
489
492
  "attributes": [
490
493
  {
491
494
  "name": "active",
@@ -707,7 +710,7 @@
707
710
  },
708
711
  {
709
712
  "name": "leu-range",
710
- "description": "\n---\n\n\n### **Methods:**\n - **_handlePointerDown(e: _PointerEvent & {target: HTMLInputElement}_)** - Determine if the \"click\" (pointer event) is closer the\nthe value of the other input element. Swap the values if this is the case.",
713
+ "description": "\n---\n\n\n### **Methods:**\n ",
711
714
  "attributes": [
712
715
  { "name": "value", "values": [{ "name": "array" }] },
713
716
  { "name": "min", "values": [] },
@@ -728,7 +731,7 @@
728
731
  {
729
732
  "name": "leu-scroll-top",
730
733
  "description": "\n---\n",
731
- "attributes": [{ "name": "_showButton", "values": [] }],
734
+ "attributes": [],
732
735
  "references": [
733
736
  {
734
737
  "name": "Documentation",