@warp-ds/elements 1.0.0-alpha.17 → 1.0.0-alpha.18

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.
@@ -1,3 +1,4 @@
1
- export function successSVG(options: any): import("lit").TemplateResult<1>;
2
- export function failureSVG(options: any): import("lit").TemplateResult<1>;
3
1
  export function closeSVG(): import("lit").TemplateResult<1>;
2
+ export function failureSVG(options: any): import("lit").TemplateResult<1>;
3
+ export function successSVG(options: any): import("lit").TemplateResult<1>;
4
+ export function warningSVG(options: any): import("lit").TemplateResult<1>;
@@ -2,7 +2,7 @@
2
2
  * Toast helper function options
3
3
  * @typedef {Object} ToastOptions
4
4
  * @property {(number|string)} [id] Custom identifier
5
- * @property {('success'|'error'|'warning'|'info')} [type] Type of alert
5
+ * @property {('success'|'error'|'warning')} [type] Type of alert
6
6
  * @property {String} [text] The toast message. Only needed when updating text on existing toast
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.
@@ -49,7 +49,7 @@ export type ToastOptions = {
49
49
  /**
50
50
  * Type of alert
51
51
  */
52
- type?: ('success' | 'error' | 'warning' | 'info');
52
+ type?: ('success' | 'error' | 'warning');
53
53
  /**
54
54
  * The toast message. Only needed when updating text on existing toast
55
55
  */
@@ -33,7 +33,6 @@ export class WarpToast extends LitElement {
33
33
  get _success(): boolean;
34
34
  get _warning(): boolean;
35
35
  get _error(): boolean;
36
- get _info(): boolean;
37
36
  get _role(): "alert" | "status";
38
37
  get _typeLabel(): "Vellykket" | "Feil" | "Varsel" | "Info";
39
38
  get _iconMarkup(): import("lit").TemplateResult<1>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@warp-ds/elements",
3
3
  "type": "module",
4
- "version": "1.0.0-alpha.17",
4
+ "version": "1.0.0-alpha.18",
5
5
  "description": "Custom elements for Warp",
6
6
  "exports": {
7
7
  ".": "./dist/index.js",
@@ -43,8 +43,8 @@
43
43
  "@eik/cli": "^2.0.22",
44
44
  "@semantic-release/changelog": "6.0.2",
45
45
  "@semantic-release/git": "10.0.1",
46
- "@warp-ds/uno": "^1.0.0-alpha.23",
47
- "@warp-ds/component-classes": "1.0.0-alpha.68",
46
+ "@warp-ds/uno": "^1.0.0-alpha.28",
47
+ "@warp-ds/component-classes": "1.0.0-alpha.83",
48
48
  "autoprefixer": "10.4.13",
49
49
  "cors": "2.8.5",
50
50
  "cssnano": "5.1.14",