@warp-ds/elements 1.0.1 → 1.1.0-next.2

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,15 @@
1
+ export class WarpBadge extends LitElement {
2
+ static properties: {
3
+ variant: {
4
+ type: number;
5
+ };
6
+ position: {
7
+ type: number;
8
+ };
9
+ };
10
+ static styles: import("lit").CSSResult;
11
+ variant: string;
12
+ get _class(): string;
13
+ render(): import("lit").TemplateResult<1>;
14
+ }
15
+ import { LitElement } from 'lit';
@@ -0,0 +1 @@
1
+ export const messages: any;
@@ -0,0 +1 @@
1
+ export const messages: any;
@@ -0,0 +1 @@
1
+ export const messages: any;
@@ -59,6 +59,7 @@ export class WarpButton extends WarpButton_base {
59
59
  };
60
60
  static styles: import("lit").CSSResult;
61
61
  variant: string;
62
+ ariaValueTextLoading: string;
62
63
  connectedCallback(): void;
63
64
  firstUpdated(): void;
64
65
  get _classes(): string;
@@ -0,0 +1 @@
1
+ export const messages: any;
@@ -0,0 +1 @@
1
+ export const messages: any;
@@ -0,0 +1 @@
1
+ export const messages: any;
@@ -0,0 +1,9 @@
1
+ import { Messages } from '@lingui/core';
2
+ export declare const supportedLocales: readonly ["en", "nb", "fi"];
3
+ type SupportedLocale = (typeof supportedLocales)[number];
4
+ export declare const defaultLocale = "en";
5
+ export declare const getSupportedLocale: (usedLocale: string) => "en" | "nb" | "fi";
6
+ export declare function detectLocale(): SupportedLocale;
7
+ export declare const getMessages: (locale: SupportedLocale, enMsg: Messages, nbMsg: Messages, fiMsg: Messages) => Messages;
8
+ export declare const activateI18n: (enMessages: Messages, nbMessages: Messages, fiMessages: Messages) => void;
9
+ export {};
@@ -0,0 +1 @@
1
+ export const messages: any;
@@ -0,0 +1 @@
1
+ export const messages: any;
@@ -0,0 +1 @@
1
+ export const messages: any;
@@ -15,9 +15,9 @@ export class WarpToastContainer extends LitElement {
15
15
  };
16
16
  };
17
17
  static init(): Element;
18
- _toasts: any;
19
- _interval: number;
20
- get _toastsArray(): any;
18
+ _toasts: Map<any, any>;
19
+ _interval: NodeJS.Timeout;
20
+ get _toastsArray(): any[];
21
21
  /**
22
22
  *
23
23
  * @param {String|Number} id
@@ -6,6 +6,6 @@ export class UnstyledHeading extends LitElement {
6
6
  };
7
7
  static styles: import("lit").CSSResult[];
8
8
  get _markup(): string;
9
- render(): import(".pnpm/lit-html@2.7.5/node_modules/lit-html/directive.js").DirectiveResult<typeof import("lit/directives/unsafe-html.js").UnsafeHTMLDirective>;
9
+ render(): import(".pnpm/lit-html@2.7.5/node_modules/lit-html/directive").DirectiveResult<typeof import("lit/directives/unsafe-html").UnsafeHTMLDirective>;
10
10
  }
11
11
  import { LitElement } from 'lit';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@warp-ds/elements",
3
3
  "type": "module",
4
- "version": "1.0.1",
4
+ "version": "1.1.0-next.2",
5
5
  "description": "Custom elements for Warp",
6
6
  "exports": {
7
7
  ".": "./dist/index.js",
@@ -23,13 +23,16 @@
23
23
  "lint:format": "prettier --check . --ignore-path .gitignore",
24
24
  "lint:eslint": "eslint . --ext js,cjs,mjs --ignore-path .gitignore",
25
25
  "dev": "vite",
26
- "build:docs": "vite build && cp CNAME site",
26
+ "build:docs": "vite build",
27
+ "preview:docs": "vite preview",
27
28
  "test:mock-backend": "node ./tests/utils/broadcast-backend.js",
28
29
  "test:mock-backend:ci": "node ./tests/utils/broadcast-backend.js &",
29
30
  "test": "tap ./packages/**/test.js --no-check-coverage",
30
31
  "test:snapshot": "TAP_SNAPSHOT=1 tap ./packages/**/test.js --no-check-coverage",
31
32
  "semantic-release": "semantic-release",
32
- "build:elements": "node build-elements.js"
33
+ "build:elements": "node build-elements.js",
34
+ "messages:extract": "lingui extract",
35
+ "messages:compile": "lingui compile --strict"
33
36
  },
34
37
  "repository": {
35
38
  "type": "git",
@@ -41,8 +44,11 @@
41
44
  "@babel/eslint-parser": "7.22.5",
42
45
  "@chbphone55/classnames": "2.0.0",
43
46
  "@eik/cli": "^2.0.22",
47
+ "@lingui/cli": "^4.5.0",
48
+ "@lingui/conf": "^4.5.0",
44
49
  "@semantic-release/changelog": "^6.0.3",
45
50
  "@semantic-release/git": "^10.0.1",
51
+ "@types/node": "^20.7.1",
46
52
  "autoprefixer": "10.4.14",
47
53
  "cors": "2.8.5",
48
54
  "cz-conventional-changelog": "3.3.0",
@@ -69,11 +75,12 @@
69
75
  "vite-plugin-html": "3.2.0"
70
76
  },
71
77
  "dependencies": {
78
+ "@lingui/core": "^4.5.0",
72
79
  "@warp-ds/icons": "1.0.0",
73
80
  "@open-wc/testing": "3.2.0",
74
81
  "@warp-ds/core": "1.0.0",
75
- "@warp-ds/uno": "^1.1.0",
76
82
  "@warp-ds/css": "^1.1.0",
83
+ "@warp-ds/uno": "^1.1.0",
77
84
  "glob": "8.1.0",
78
85
  "html-format": "1.1.2",
79
86
  "lit": "2.7.5"
@@ -1 +0,0 @@
1
- export const styles: import("lit").CSSResult;