@warp-ds/elements 2.2.0-next.2 → 2.2.0-next.3

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 (55) hide show
  1. package/dist/index.js +3426 -444
  2. package/dist/index.js.map +4 -4
  3. package/dist/packages/affix/index.d.ts +1 -1
  4. package/dist/packages/affix/index.js +6 -6
  5. package/dist/packages/affix/index.js.map +2 -2
  6. package/dist/packages/alert/index.d.ts +3 -4
  7. package/dist/packages/alert/index.js +8 -8
  8. package/dist/packages/alert/index.js.map +1 -1
  9. package/dist/packages/attention/index.d.ts +1 -1
  10. package/dist/packages/attention/index.js +4 -4
  11. package/dist/packages/attention/index.js.map +2 -2
  12. package/dist/packages/badge/index.d.ts +3 -2
  13. package/dist/packages/badge/index.js +1 -1
  14. package/dist/packages/badge/index.js.map +1 -1
  15. package/dist/packages/box/index.d.ts +5 -3
  16. package/dist/packages/box/index.js +1 -1
  17. package/dist/packages/box/index.js.map +1 -1
  18. package/dist/packages/breadcrumbs/index.d.ts +1 -1
  19. package/dist/packages/breadcrumbs/index.js +3 -3
  20. package/dist/packages/breadcrumbs/index.js.map +2 -2
  21. package/dist/packages/button/button.test.d.ts +1 -0
  22. package/dist/packages/button/index.d.ts +28 -52
  23. package/dist/packages/button/index.js +302 -6
  24. package/dist/packages/button/index.js.map +4 -4
  25. package/dist/packages/card/index.d.ts +3 -2
  26. package/dist/packages/card/index.js +3 -3
  27. package/dist/packages/card/index.js.map +1 -1
  28. package/dist/packages/expandable/index.d.ts +1 -1
  29. package/dist/packages/expandable/index.js +6 -6
  30. package/dist/packages/expandable/index.js.map +2 -2
  31. package/dist/packages/modal/index.d.ts +3 -3
  32. package/dist/packages/modal/index.js +299 -348
  33. package/dist/packages/modal/index.js.map +4 -4
  34. package/dist/packages/modal/modal-footer.d.ts +2 -2
  35. package/dist/packages/modal/modal-header.d.ts +12 -20
  36. package/dist/packages/modal/modal-main.d.ts +14 -24
  37. package/dist/packages/pill/index.d.ts +1 -1
  38. package/dist/packages/pill/index.js +5 -5
  39. package/dist/packages/pill/index.js.map +2 -2
  40. package/dist/packages/select/index.d.ts +12 -2
  41. package/dist/packages/select/index.js +304 -7
  42. package/dist/packages/select/index.js.map +4 -4
  43. package/dist/packages/styles.d.ts +2 -0
  44. package/dist/packages/textfield/index.d.ts +5 -5
  45. package/dist/packages/textfield/index.js +289 -3
  46. package/dist/packages/textfield/index.js.map +4 -4
  47. package/dist/packages/toast/index.d.ts +3 -0
  48. package/dist/packages/toast/index.js +7 -7
  49. package/dist/packages/toast/index.js.map +1 -1
  50. package/dist/packages/toast/toast-container.d.ts +3 -4
  51. package/dist/packages/toast/toast.d.ts +4 -6
  52. package/dist/packages/utils/expand-transition.d.ts +3 -2
  53. package/dist/packages/utils/index.d.ts +1 -1
  54. package/dist/packages/utils/unstyled-heading.d.ts +4 -3
  55. package/package.json +10 -7
@@ -7,8 +7,8 @@
7
7
  * @property {(number|string)} [duration] Duration of toast in milliseconds. Defaults to 5000. For accessibility reasons, toasts should never be interactive and therefore need to auto remove. If you must disable auto remove, set duration to Number.POSITIVE_INFINITY.
8
8
  * @property {Boolean} [canClose] Whether the toast can be dismissed. Defaults to false. WARNING! For accessibility reasons, toasts should not be interactive and canclose should always be false. If the toast absolutely must be dismissble, set this to true.
9
9
  */
10
- export class WarpToastContainer {
11
- static styles: any[];
10
+ export class WarpToastContainer extends WarpElement {
11
+ static styles: (import("lit").CSSResult | (import("lit").CSSResult | CSSStyleSheet | import("lit").CSSResultArray)[])[];
12
12
  static properties: {
13
13
  _toasts: {
14
14
  state: boolean;
@@ -16,9 +16,7 @@ export class WarpToastContainer {
16
16
  };
17
17
  static init(): Element;
18
18
  _toasts: Map<any, any>;
19
- connectedCallback(): void;
20
19
  _interval: NodeJS.Timeout;
21
- disconnectedCallback(): void;
22
20
  get _toastsArray(): any[];
23
21
  /**
24
22
  *
@@ -65,3 +63,4 @@ export type ToastOptions = {
65
63
  */
66
64
  canClose?: boolean;
67
65
  };
66
+ import WarpElement from '@warp-ds/elements-core';
@@ -1,5 +1,5 @@
1
- export class WarpToast {
2
- static styles: any[];
1
+ export class WarpToast extends WarpElement {
2
+ static styles: (import("lit").CSSResult | (import("lit").CSSResult | CSSStyleSheet | import("lit").CSSResultArray)[])[];
3
3
  static properties: {
4
4
  id: {
5
5
  type: StringConstructor;
@@ -22,15 +22,12 @@ export class WarpToast {
22
22
  reflect: boolean;
23
23
  };
24
24
  };
25
- id: string;
26
25
  type: string;
27
26
  text: string;
28
27
  canclose: boolean;
29
- connectedCallback(): void;
30
- disconnectedCallback(): void;
31
28
  updated(): void;
32
29
  _expanded: boolean;
33
- get _wrapper(): any;
30
+ get _wrapper(): HTMLElement;
34
31
  get _warning(): boolean;
35
32
  get _error(): boolean;
36
33
  get _role(): "alert" | "status";
@@ -41,3 +38,4 @@ export class WarpToast {
41
38
  render(): import("lit").TemplateResult<1>;
42
39
  #private;
43
40
  }
41
+ import WarpElement from '@warp-ds/elements-core';
@@ -1,4 +1,4 @@
1
- export class ExpandTransition {
1
+ export class ExpandTransition extends WarpElement {
2
2
  static properties: {
3
3
  show: {
4
4
  type: BooleanConstructor;
@@ -9,7 +9,7 @@ export class ExpandTransition {
9
9
  state: boolean;
10
10
  };
11
11
  };
12
- static styles: any[];
12
+ static styles: (import("lit").CSSResult | (import("lit").CSSResult | CSSStyleSheet | import("lit").CSSResultArray)[])[];
13
13
  show: boolean;
14
14
  _mounted: boolean;
15
15
  _removeElement: boolean;
@@ -18,3 +18,4 @@ export class ExpandTransition {
18
18
  get _wrapper(): this;
19
19
  render(): import("lit").TemplateResult<1>;
20
20
  }
21
+ import WarpElement from '@warp-ds/elements-core';
@@ -6,5 +6,5 @@ export function kebabCaseAttributes(constructor: any): {
6
6
  createProperty(name: any, options: any): void;
7
7
  };
8
8
  export function classes(defn: any): string;
9
- export function fclasses(definition: any): import(".pnpm/lit-html@3.2.0/node_modules/lit-html/directive").DirectiveResult<typeof import("lit/directives/class-map").ClassMapDirective>;
9
+ export function fclasses(definition: any): import(".pnpm/lit-html@3.2.0/node_modules/lit-html/directive.js").DirectiveResult<typeof import("lit/directives/class-map.js").ClassMapDirective>;
10
10
  export function generateRandomId(): string;
@@ -1,10 +1,11 @@
1
- export class UnstyledHeading {
1
+ export class UnstyledHeading extends WarpElement {
2
2
  static properties: {
3
3
  level: {
4
4
  type: NumberConstructor;
5
5
  };
6
6
  };
7
- static styles: any[];
7
+ static styles: (import("lit").CSSResult | CSSStyleSheet | import("lit").CSSResultArray)[][];
8
8
  get _markup(): string;
9
- render(): import(".pnpm/lit-html@3.2.0/node_modules/lit-html/directive").DirectiveResult<typeof import("lit/directives/unsafe-html").UnsafeHTMLDirective>;
9
+ render(): import(".pnpm/lit-html@3.2.0/node_modules/lit-html/directive.js").DirectiveResult<typeof import("lit/directives/unsafe-html.js").UnsafeHTMLDirective>;
10
10
  }
11
+ import WarpElement from '@warp-ds/elements-core';
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@warp-ds/elements",
3
3
  "type": "module",
4
- "version": "2.2.0-next.2",
4
+ "version": "2.2.0-next.3",
5
+ "packageManager": "pnpm@10.15.0",
5
6
  "description": "Custom elements for Warp",
6
7
  "exports": {
7
8
  ".": "./dist/index.js",
@@ -39,8 +40,7 @@
39
40
  "messages:extract": "lingui extract",
40
41
  "preview:docs": "vite preview",
41
42
  "semantic-release": "semantic-release",
42
- "test:snapshot": "TAP_SNAPSHOT=1 tap ./packages/**/test.js --no-check-coverage",
43
- "test": "tap ./packages/**/test.js --no-check-coverage",
43
+ "test": "vitest",
44
44
  "watch:npm": "npx esbuild ./index.js --outdir=dist/ --target=es2017 --bundle --sourcemap --format=esm --minify --watch"
45
45
  },
46
46
  "repository": {
@@ -66,29 +66,32 @@
66
66
  "@types/node": "20.14.10",
67
67
  "@warp-ds/eslint-config": "1.0.5",
68
68
  "@warp-ds/uno": "2.1.0",
69
- "cors": "2.8.5",
70
69
  "cz-conventional-changelog": "3.3.0",
71
70
  "element-collapse": "1.1.0",
72
71
  "esbuild": "0.23.0",
73
72
  "eslint": "8.57.0",
73
+ "eslint-plugin-import": "^2.32.0",
74
74
  "eslint-plugin-lit": "1.14.0",
75
+ "eslint-plugin-prettier": "^5.5.4",
75
76
  "express": "4.19.2",
76
77
  "glob": "11.0.0",
77
78
  "html-format": "1.1.7",
78
79
  "lit": "3.x",
79
- "playwright": "1.45.1",
80
+ "playwright": "^1.55.0",
80
81
  "prettier": "3.3.2",
81
82
  "rimraf": "6.0.1",
82
83
  "semantic-release": "24.0.0",
83
- "tap": "21.0.0",
84
84
  "typescript": "5.5.3",
85
85
  "unocss": "0.x",
86
86
  "vite": "5.3.3",
87
87
  "vite-plugin-html": "3.2.2",
88
- "vite-plugin-top-level-await": "1.4.1"
88
+ "vite-plugin-top-level-await": "1.4.1",
89
+ "vitest": "^3.2.4",
90
+ "vitest-browser-lit": "^0.1.0"
89
91
  },
90
92
  "dependencies": {
91
93
  "@lingui/core": "5.2.0",
94
+ "@open-wc/form-control": "^1.0.0",
92
95
  "@warp-ds/core": "1.1.8",
93
96
  "@warp-ds/css": "2.1.1",
94
97
  "@warp-ds/elements-core": "2.0.1",