@statistikzh/leu 0.17.0 → 0.18.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.
Files changed (76) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +11 -0
  3. package/dist/Accordion.js +1 -1
  4. package/dist/Button.js +1 -1
  5. package/dist/ButtonGroup.js +1 -1
  6. package/dist/ChartWrapper.js +1 -1
  7. package/dist/Checkbox.js +1 -1
  8. package/dist/CheckboxGroup.js +1 -1
  9. package/dist/Chip.js +1 -1
  10. package/dist/ChipGroup.js +1 -1
  11. package/dist/ChipLink.js +1 -1
  12. package/dist/ChipRemovable.js +3 -1
  13. package/dist/ChipSelectable.js +1 -1
  14. package/dist/Dialog.js +3 -1
  15. package/dist/Dropdown.js +1 -1
  16. package/dist/Icon.d.ts +130 -2
  17. package/dist/Icon.js +96 -69
  18. package/dist/Input.js +3 -1
  19. package/dist/{LeuElement-BRZYxDjR.js → LeuElement-DlQXnrk8.js} +1 -1
  20. package/dist/Menu.js +3 -1
  21. package/dist/MenuItem.js +3 -1
  22. package/dist/Message.js +1 -1
  23. package/dist/Pagination.js +1 -1
  24. package/dist/Placeholder.js +1 -1
  25. package/dist/Popup.js +1 -1
  26. package/dist/Radio.js +1 -1
  27. package/dist/RadioGroup.js +1 -1
  28. package/dist/Range.js +1 -1
  29. package/dist/ScrollTop.js +1 -1
  30. package/dist/Select.js +1 -1
  31. package/dist/Spinner.js +1 -1
  32. package/dist/Table.js +2 -2
  33. package/dist/Tag.js +1 -1
  34. package/dist/VisuallyHidden.js +1 -1
  35. package/dist/components/icon/Icon.d.ts +5 -2
  36. package/dist/components/icon/Icon.d.ts.map +1 -1
  37. package/dist/components/icon/paths.d.ts +48 -23
  38. package/dist/components/icon/paths.d.ts.map +1 -1
  39. package/dist/components/icon/stories/icon.stories.d.ts.map +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/leu-accordion.js +1 -1
  42. package/dist/leu-button-group.js +1 -1
  43. package/dist/leu-button.js +1 -1
  44. package/dist/leu-chart-wrapper.js +1 -1
  45. package/dist/leu-checkbox-group.js +1 -1
  46. package/dist/leu-checkbox.js +1 -1
  47. package/dist/leu-chip-group.js +1 -1
  48. package/dist/leu-chip-link.js +1 -1
  49. package/dist/leu-chip-removable.js +3 -1
  50. package/dist/leu-chip-selectable.js +1 -1
  51. package/dist/leu-dialog.js +3 -1
  52. package/dist/leu-dropdown.js +1 -1
  53. package/dist/leu-icon.js +3 -1
  54. package/dist/leu-input.js +3 -1
  55. package/dist/leu-menu-item.js +3 -1
  56. package/dist/leu-menu.js +3 -1
  57. package/dist/leu-message.js +1 -1
  58. package/dist/leu-pagination.js +1 -1
  59. package/dist/leu-placeholder.js +1 -1
  60. package/dist/leu-popup.js +1 -1
  61. package/dist/leu-radio-group.js +1 -1
  62. package/dist/leu-radio.js +1 -1
  63. package/dist/leu-range.js +1 -1
  64. package/dist/leu-scroll-top.js +1 -1
  65. package/dist/leu-select.js +1 -1
  66. package/dist/leu-spinner.js +1 -1
  67. package/dist/leu-table.js +3 -3
  68. package/dist/leu-tag.js +1 -1
  69. package/dist/leu-visually-hidden.js +1 -1
  70. package/dist/vscode.html-custom-data.json +1 -1
  71. package/dist/web-types.json +2 -2
  72. package/package.json +1 -1
  73. package/src/components/icon/Icon.ts +7 -10
  74. package/src/components/icon/paths.ts +126 -77
  75. package/src/components/icon/stories/icon.stories.ts +5 -0
  76. package/src/components/icon/test/icon.test.ts +5 -4
package/dist/leu-table.js CHANGED
@@ -3,12 +3,12 @@ import 'lit';
3
3
  import 'lit/directives/class-map.js';
4
4
  import 'lit/directives/style-map.js';
5
5
  import 'lit/directives/ref.js';
6
- import './LeuElement-BRZYxDjR.js';
6
+ import './LeuElement-DlQXnrk8.js';
7
7
  import './Icon.js';
8
- import './Pagination.js';
9
8
  import './_tslib-CNEFicEt.js';
10
- import 'lit/directives/live.js';
11
9
  import 'lit/decorators.js';
10
+ import './Pagination.js';
11
+ import 'lit/directives/live.js';
12
12
  import './Button.js';
13
13
  import 'lit/directives/if-defined.js';
14
14
  import './hasSlotController-Bm2tipvG.js';
package/dist/leu-tag.js CHANGED
@@ -2,7 +2,7 @@ import { LeuTag } from './Tag.js';
2
2
  import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
- import './LeuElement-BRZYxDjR.js';
5
+ import './LeuElement-DlQXnrk8.js';
6
6
 
7
7
  LeuTag.define("leu-tag");
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { LeuVisuallyHidden } from './VisuallyHidden.js';
2
2
  import 'lit';
3
- import './LeuElement-BRZYxDjR.js';
3
+ import './LeuElement-DlQXnrk8.js';
4
4
 
5
5
  LeuVisuallyHidden.define("leu-visually-hidden");
6
6
 
@@ -304,7 +304,7 @@
304
304
  {
305
305
  "name": "name",
306
306
  "description": "The name of the icon to display.",
307
- "values": [{ "name": "IconPathName" }]
307
+ "values": [{ "name": "IconPathName" }, { "name": "\"\"" }]
308
308
  }
309
309
  ],
310
310
  "references": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@statistikzh/leu",
4
- "version": "0.17.0",
4
+ "version": "0.18.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -603,7 +603,7 @@
603
603
  {
604
604
  "name": "name",
605
605
  "description": "The name of the icon to display.",
606
- "value": { "type": "IconPathName", "default": "\"\"" }
606
+ "value": { "type": "IconPathName | \"\"", "default": "\"\"" }
607
607
  }
608
608
  ],
609
609
  "events": [],
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "UI component library of the canton of zurich",
4
4
  "license": "MIT",
5
5
  "author": "statistikzh",
6
- "version": "0.17.0",
6
+ "version": "0.18.0",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.js",
@@ -1,9 +1,10 @@
1
1
  import { html, svg } from "lit"
2
+ import { property } from "lit/decorators.js"
2
3
 
3
4
  import { LeuElement } from "../../lib/LeuElement.js"
4
5
 
5
6
  import styles from "./icon.css"
6
- import { paths } from "./paths.js"
7
+ import { paths, IconPathName } from "./paths.js"
7
8
 
8
9
  /**
9
10
  * A component to render all defined zhWeb icons.
@@ -12,7 +13,6 @@ import { paths } from "./paths.js"
12
13
  * If the icon name is not found, a placeholder will be displayed.
13
14
  *
14
15
  * @tagname leu-icon
15
- * @prop {import("./paths").IconPathName} name - The name of the icon to display.
16
16
  * @cssprop --leu-icon-size - The size of the icon.
17
17
  */
18
18
  export class LeuIcon extends LeuElement {
@@ -22,14 +22,11 @@ export class LeuIcon extends LeuElement {
22
22
  name: { type: String, reflect: true },
23
23
  }
24
24
 
25
- constructor() {
26
- super()
27
-
28
- /**
29
- * @type {import("./paths").IconPathName | ""}
30
- */
31
- this.name = ""
32
- }
25
+ /**
26
+ * The name of the icon to display.
27
+ */
28
+ @property({ type: String, reflect: true })
29
+ name: IconPathName | "" = ""
33
30
 
34
31
  render() {
35
32
  if (!paths[this.name]) {