@warp-ds/elements 2.0.0-next.2 → 2.0.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 (45) hide show
  1. package/dist/api.js +3 -6
  2. package/dist/api.js.map +1 -1
  3. package/dist/index.js +205 -255
  4. package/dist/index.js.map +4 -4
  5. package/dist/packages/affix/index.d.ts +1 -1
  6. package/dist/packages/affix/index.js +35 -49
  7. package/dist/packages/affix/index.js.map +3 -3
  8. package/dist/packages/alert/index.js +39 -55
  9. package/dist/packages/alert/index.js.map +3 -3
  10. package/dist/packages/attention/index.js +118 -109
  11. package/dist/packages/attention/index.js.map +4 -4
  12. package/dist/packages/badge/index.js +3 -7
  13. package/dist/packages/badge/index.js.map +2 -2
  14. package/dist/packages/box/index.d.ts +1 -1
  15. package/dist/packages/box/index.js +2 -5
  16. package/dist/packages/box/index.js.map +2 -2
  17. package/dist/packages/breadcrumbs/index.js +36 -53
  18. package/dist/packages/breadcrumbs/index.js.map +3 -3
  19. package/dist/packages/broadcast/index.js +2 -6
  20. package/dist/packages/broadcast/index.js.map +1 -1
  21. package/dist/packages/button/index.js +36 -54
  22. package/dist/packages/button/index.js.map +3 -3
  23. package/dist/packages/card/index.d.ts +2 -2
  24. package/dist/packages/card/index.js +3 -7
  25. package/dist/packages/card/index.js.map +2 -2
  26. package/dist/packages/expandable/index.d.ts +2 -2
  27. package/dist/packages/expandable/index.js +52 -68
  28. package/dist/packages/expandable/index.js.map +4 -4
  29. package/dist/packages/modal/index.js +45 -69
  30. package/dist/packages/modal/index.js.map +3 -3
  31. package/dist/packages/modal/modal-header.d.ts +1 -1
  32. package/dist/packages/modal/modal-main.d.ts +3 -3
  33. package/dist/packages/pill/index.js +38 -56
  34. package/dist/packages/pill/index.js.map +3 -3
  35. package/dist/packages/select/index.js +54 -87
  36. package/dist/packages/select/index.js.map +3 -3
  37. package/dist/packages/textfield/index.js +7 -15
  38. package/dist/packages/textfield/index.js.map +2 -2
  39. package/dist/packages/toast/api.d.ts +1 -1
  40. package/dist/packages/toast/index.js +68 -110
  41. package/dist/packages/toast/index.js.map +3 -3
  42. package/dist/packages/toast/toast-container.d.ts +1 -1
  43. package/dist/packages/toast/toast.d.ts +2 -2
  44. package/dist/packages/utils/index.d.ts +1 -1
  45. package/package.json +27 -28
@@ -51,7 +51,7 @@ export type ToastOptions = {
51
51
  /**
52
52
  * Type of alert
53
53
  */
54
- type?: ('success' | 'error' | 'warning');
54
+ type?: ("success" | "error" | "warning");
55
55
  /**
56
56
  * The toast message. Only needed when updating text on existing toast
57
57
  */
@@ -30,8 +30,8 @@ export class WarpToast {
30
30
  disconnectedCallback(): void;
31
31
  updated(): void;
32
32
  _expanded: boolean;
33
- get _primaryClasses(): import(".pnpm/lit-html@3.1.4/node_modules/lit-html/directive").DirectiveResult<typeof import(".pnpm/lit-html@3.1.4/node_modules/lit-html/directives/class-map").ClassMapDirective>;
34
- get _iconClasses(): import(".pnpm/lit-html@3.1.4/node_modules/lit-html/directive").DirectiveResult<typeof import(".pnpm/lit-html@3.1.4/node_modules/lit-html/directives/class-map").ClassMapDirective>;
33
+ get _primaryClasses(): import(".pnpm/lit-html@3.1.4/node_modules/lit-html/directive").DirectiveResult<typeof import("lit/directives/class-map").ClassMapDirective>;
34
+ get _iconClasses(): import(".pnpm/lit-html@3.1.4/node_modules/lit-html/directive").DirectiveResult<typeof import("lit/directives/class-map").ClassMapDirective>;
35
35
  get _wrapper(): any;
36
36
  get _warning(): boolean;
37
37
  get _error(): boolean;
@@ -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.1.4/node_modules/lit-html/directive").DirectiveResult<typeof import(".pnpm/lit-html@3.1.4/node_modules/lit-html/directives/class-map").ClassMapDirective>;
9
+ export function fclasses(definition: any): import(".pnpm/lit-html@3.1.4/node_modules/lit-html/directive").DirectiveResult<typeof import("lit/directives/class-map").ClassMapDirective>;
10
10
  export function generateRandomId(): string;
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@warp-ds/elements",
3
3
  "type": "module",
4
- "version": "2.0.0-next.2",
4
+ "version": "2.0.0-next.3",
5
5
  "description": "Custom elements for Warp",
6
6
  "exports": {
7
7
  ".": "./dist/index.js",
8
- "./toast": "./dist/api.js",
9
8
  "./components/affix": "./dist/packages/affix/index.js",
10
9
  "./components/alert": "./dist/packages/alert/index.js",
11
10
  "./components/attention": "./dist/packages/attention/index.js",
@@ -18,7 +17,8 @@
18
17
  "./components/modal": "./dist/packages/modal/index.js",
19
18
  "./components/select": "./dist/packages/select/index.js",
20
19
  "./components/textfield": "./dist/packages/textfield/index.js",
21
- "./components/toast": "./dist/packages/toast/index.js"
20
+ "./components/toast": "./dist/packages/toast/index.js",
21
+ "./toast": "./dist/api.js"
22
22
  },
23
23
  "module": "dist/index.js",
24
24
  "files": [
@@ -56,55 +56,54 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "@chbphone55/classnames": "2.0.0",
59
+ "@eik/cli": "2.0.38",
60
+ "@eik/esbuild-plugin": "1.1.47",
59
61
  "@itsy/animate": "0.0.9",
60
- "@eik/cli": "2.0.33",
61
- "@eik/esbuild-plugin": "1.1.46",
62
- "@lingui/cli": "4.7.1",
63
- "@lingui/conf": "4.7.1",
62
+ "@lingui/cli": "4.11.2",
63
+ "@lingui/conf": "4.11.2",
64
64
  "@semantic-release/changelog": "6.0.3",
65
65
  "@semantic-release/git": "10.0.1",
66
- "@types/node": "20.11.19",
66
+ "@types/node": "20.14.10",
67
+ "@warp-ds/eslint-config": "1.0.5",
67
68
  "@warp-ds/uno": "2.x",
68
69
  "cors": "2.8.5",
69
70
  "cz-conventional-changelog": "3.3.0",
70
71
  "element-collapse": "1.1.0",
71
- "esbuild": "0.20.1",
72
- "eslint": "8.57.0",
73
- "@warp-ds/eslint-config": "1.0.5",
74
- "eslint-plugin-lit": "1.12.0",
75
- "express": "4.18.2",
76
- "glob": "10.3.10",
77
- "html-format": "1.1.6",
72
+ "esbuild": "0.23.0",
73
+ "eslint-plugin-lit": "1.14.0",
74
+ "express": "4.19.2",
75
+ "glob": "11.0.0",
76
+ "html-format": "1.1.7",
78
77
  "lit": "3.x",
79
- "playwright": "1.41.2",
80
- "prettier": "3.2.5",
81
- "rimraf": "5.0.5",
82
- "semantic-release": "23.0.2",
83
- "tap": "16.3.10",
84
- "typescript": "5.3.3",
78
+ "playwright": "1.45.1",
79
+ "prettier": "3.3.2",
80
+ "rimraf": "6.0.0",
81
+ "semantic-release": "24.0.0",
82
+ "tap": "21.0.0",
83
+ "typescript": "5.5.3",
85
84
  "unocss": "0.x",
86
- "vite": "5.1.4",
85
+ "vite": "5.3.3",
87
86
  "vite-plugin-html": "3.2.2",
88
87
  "vite-plugin-top-level-await": "1.4.1"
89
88
  },
90
89
  "dependencies": {
91
- "@lingui/core": "4.7.1",
92
- "@warp-ds/core": "1.1.2",
90
+ "@lingui/core": "4.11.2",
91
+ "@warp-ds/core": "1.1.5",
93
92
  "@warp-ds/css": "2.0.0-next.4",
94
93
  "@warp-ds/elements-core": "2.x",
95
- "@warp-ds/icons": "2.0.1",
94
+ "@warp-ds/icons": "2.0.2",
96
95
  "scroll-doctor": "2.0.2"
97
96
  },
98
97
  "publishConfig": {
99
98
  "access": "public"
100
99
  },
101
100
  "eik": {
102
- "server": "https://assets.finn.no",
103
- "type": "package",
104
101
  "files": "eik",
105
102
  "import-map": [
106
103
  "https://assets.finn.no/map/custom-elements/v3"
107
- ]
104
+ ],
105
+ "server": "https://assets.finn.no",
106
+ "type": "package"
108
107
  },
109
108
  "config": {
110
109
  "commitizen": {