@proximus/lavender-status 1.4.10-alpha.9 → 1.4.11-alpha.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 (2) hide show
  1. package/dist/index.es.js +10 -10
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import { PxElement as n, log as a } from "@proximus/lavender-common";
2
- const c = ':host,:host>*{display:block;box-sizing:border-box}.status{color:var(--px-color-text-brand-default)}.status ::slotted([slot="label"]){font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);font-weight:var(--px-font-weight-body);line-height:var(--px-line-height-ratio-l)}.status.success{color:var(--px-color-text-purpose-success-default)}.status.warning,.status.ongoing{color:var(--px-color-text-purpose-warning-default)}.status.error{color:var(--px-color-text-purpose-error-default)}.status.unlimited{color:var(--px-color-text-purpose-unlimited-default)}.status[disabled]{color:var(--px-color-text-state-disabled-default)}:host([inverted]) .status{color:var(--px-color-text-brand-inverted)}:host([inverted]) .status.success{color:var(--px-color-text-purpose-success-inverted)}:host([inverted]) .status.warning,:host([inverted]) .status.ongoing{color:var(--px-color-text-purpose-warning-inverted)}:host([inverted]) .status.error{color:var(--px-color-text-purpose-error-inverted)}:host([inverted]) .status.unlimited{color:var(--px-color-text-purpose-unlimited-inverted)}:host([inverted]) .status[disabled]{color:var(--px-color-text-state-disabled-inverted)}@media screen and (min-width: 48rem){.status ::slotted([slot="label"]){font-size:var(--px-text-size-label-m-tablet)}}@media screen and (min-width: 64.0625rem){.status ::slotted([slot="label"]){font-size:var(--px-text-size-label-m-laptop)}}', l = new CSSStyleSheet();
3
- l.replaceSync(c);
4
- const u = [
1
+ import { PxElement as a, log as c } from "@proximus/lavender-common";
2
+ const u = ':host,:host>*{display:block;box-sizing:border-box}.status{color:var(--px-color-text-brand-default)}.status ::slotted([slot="label"]){font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);font-weight:var(--px-font-weight-body);line-height:var(--px-line-height-ratio-l)}.status.success{color:var(--px-color-text-purpose-success-default)}.status.warning,.status.ongoing{color:var(--px-color-text-purpose-warning-default)}.status.error{color:var(--px-color-text-purpose-error-default)}.status.unlimited{color:var(--px-color-text-purpose-unlimited-default)}.status[disabled]{color:var(--px-color-text-state-disabled-default)}:host([inverted]) .status{color:var(--px-color-text-brand-inverted)}:host([inverted]) .status.success{color:var(--px-color-text-purpose-success-inverted)}:host([inverted]) .status.warning,:host([inverted]) .status.ongoing{color:var(--px-color-text-purpose-warning-inverted)}:host([inverted]) .status.error{color:var(--px-color-text-purpose-error-inverted)}:host([inverted]) .status.unlimited{color:var(--px-color-text-purpose-unlimited-inverted)}:host([inverted]) .status[disabled]{color:var(--px-color-text-state-disabled-inverted)}@media screen and (min-width: 48rem){.status ::slotted([slot="label"]){font-size:var(--px-text-size-label-m-tablet)}}@media screen and (min-width: 64.0625rem){.status ::slotted([slot="label"]){font-size:var(--px-text-size-label-m-laptop)}}', n = new CSSStyleSheet();
3
+ n.replaceSync(u);
4
+ const l = [
5
5
  "",
6
6
  "info",
7
7
  "success",
@@ -9,9 +9,9 @@ const u = [
9
9
  "error",
10
10
  "ongoing",
11
11
  "unlimited"
12
- ], r = class r extends n {
12
+ ], r = class r extends a {
13
13
  constructor() {
14
- super(l), this.template = () => `
14
+ super(n), this.template = () => `
15
15
  <div class="status">
16
16
  <px-hstack gap="2xs" align-items="flex-start">
17
17
  <px-icon name="information_fill" from="lavender" size="s" color="brand"></px-icon>
@@ -66,9 +66,9 @@ const u = [
66
66
  }
67
67
  }
68
68
  updateState(t) {
69
- if (!this.checkName(u, t)) {
70
- a(
71
- `${t} is not an allowed state value for ${this.tagName.toLowerCase()}`
69
+ if (!this.checkName(l, t)) {
70
+ c(
71
+ `"${t}" is not a valid state value for ${this.tagName.toLowerCase()}. Allowed values are: "${l.join('", "')}".`
72
72
  );
73
73
  return;
74
74
  }
@@ -153,5 +153,5 @@ let o = r;
153
153
  customElements.get("px-status") || customElements.define("px-status", o);
154
154
  export {
155
155
  o as Status,
156
- u as statusStateValues
156
+ l as statusStateValues
157
157
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-status",
3
- "version": "1.4.10-alpha.9",
3
+ "version": "1.4.11-alpha.1",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",