@jungherz-de/glasskit-elements 1.17.0 → 1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jungherz-de/glasskit-elements",
3
- "version": "1.17.0",
3
+ "version": "1.18.0",
4
4
  "description": "Vanilla JavaScript Web Components wrapping the GlassKit CSS glassmorphism library",
5
5
  "license": "MIT",
6
6
  "homepage": "https://glasskit-elements.jungherz.com",
@@ -45,10 +45,10 @@
45
45
  "vanilla-js"
46
46
  ],
47
47
  "peerDependencies": {
48
- "@jungherz-de/glasskit": ">=1.17.0"
48
+ "@jungherz-de/glasskit": ">=1.18.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@jungherz-de/glasskit": "^1.17.0",
51
+ "@jungherz-de/glasskit": "^1.18.0",
52
52
  "@rollup/plugin-node-resolve": "^15.0.0",
53
53
  "@rollup/plugin-terser": "^0.4.0",
54
54
  "rollup": "^4.0.0"
@@ -1,6 +1,8 @@
1
1
  import { GlkElement } from '../../base.js';
2
2
 
3
- const VARIANTS = ['primary', 'success', 'error'];
3
+ // warning since 1.18.0 (needs GlassKit 1.18.0). Any other value falls back to
4
+ // the neutral badge, as an unknown value of an enumerated attribute does.
5
+ const VARIANTS = ['primary', 'success', 'warning', 'error'];
4
6
 
5
7
  class GlkBadge extends GlkElement {
6
8
  static get displayInline() { return true; }