@proximus/lavender-status 1.0.0-alpha.9 → 1.0.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.
@@ -0,0 +1,33 @@
1
+ import { Icon } from '@proximus/lavender-icon';
2
+ import { PxElement } from '@proximus/lavender-common';
3
+ export declare const statusStateValues: string[];
4
+ export declare class Status extends PxElement<HTMLDivElement> {
5
+ static nativeName: string;
6
+ private template;
7
+ constructor();
8
+ static get observedAttributes(): string[];
9
+ connectedCallback(): void;
10
+ attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
11
+ updateState(state: string): void;
12
+ setRole(statusValue: string): void;
13
+ updateIconOnly(breakpoint: string | null): void;
14
+ get $label(): HTMLSpanElement;
15
+ get $statusIcon(): Icon;
16
+ get $children(): NodeListOf<Element>;
17
+ get state(): string;
18
+ set state(value: string);
19
+ get iconAriaLabel(): string;
20
+ set iconAriaLabel(value: string);
21
+ get iconOnly(): boolean;
22
+ set iconOnly(value: boolean);
23
+ get iconOnlyMobile(): boolean;
24
+ set iconOnlyMobile(value: boolean);
25
+ get iconOnlyTablet(): boolean;
26
+ set iconOnlyTablet(value: boolean);
27
+ get iconOnlyLaptop(): boolean;
28
+ set iconOnlyLaptop(value: boolean);
29
+ get disabled(): boolean;
30
+ set disabled(value: boolean);
31
+ get inverted(): boolean;
32
+ set inverted(value: boolean);
33
+ }
@@ -0,0 +1 @@
1
+ export * from './Status';
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { PxElement as n } from "@proximus/lavender-common";
2
- const a = ":host,:host>*{display:block;box-sizing:border-box}.status{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-font-line-height-m);color:var(--px-color-text-brand-default)}.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 only screen and (min-width: 768px){.status{font-size:var(--px-text-size-label-m-desktop)}}@media only screen and (min-width: 1025px){.status{font-size:var(--px-text-size-label-m-desktop)}}", l = new CSSStyleSheet();
2
+ const a = ":host,:host>*{display:block;box-sizing:border-box}.status{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);color:var(--px-color-text-brand-default)}.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 only screen and (min-width: 768px){.status{font-size:var(--px-text-size-label-m-desktop)}}@media only screen and (min-width: 1025px){.status{font-size:var(--px-text-size-label-m-desktop)}}", l = new CSSStyleSheet();
3
3
  l.replaceSync(a);
4
4
  const c = [
5
5
  "",
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@proximus/lavender-status",
3
- "version": "1.0.0-alpha.9",
3
+ "version": "1.0.0",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
+ "types": "dist/index.d.ts",
6
7
  "files": [
7
8
  "dist"
8
9
  ],
@@ -10,10 +11,13 @@
10
11
  "scripts": {
11
12
  "transform-package-json": "node ../../../scripts/tranformPackageJson.js package.json dist/far/away",
12
13
  "clean": "rm -rf dist",
13
- "build": "npm run clean && tsc && NODE_ENV=development vite build && npm run transform-package-json",
14
- "test": "vitest run --coverage"
14
+ "build": "npm run clean && NODE_ENV=development vite build && tsc && npm run transform-package-json && npm run wc-manifest",
15
+ "test": "vitest run --coverage",
16
+ "wc-manifest": "cem analyze --globs \"src/*\" --config ../custom-elements-manifest.config.js --outdir dist"
15
17
  },
16
18
  "publishConfig": {
17
19
  "access": "public"
18
- }
20
+ },
21
+ "customElements": "dist/custom-elements.json",
22
+ "web-types": "./dist/web-types.json"
19
23
  }