@exmg/exm-snackbar 1.0.1 → 1.0.3-alpha.12

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
+ import { CSSResult } from 'lit';
1
2
  import { SnackbarBase } from '@material/mwc-snackbar/mwc-snackbar-base.js';
2
3
  export declare class ExmSnackbar extends SnackbarBase {
3
4
  /**
@@ -7,7 +8,7 @@ export declare class ExmSnackbar extends SnackbarBase {
7
8
  variant: 'positive' | 'negative' | 'info' | null;
8
9
  xOffset: number;
9
10
  yOffset: number;
10
- static styles: import("lit").CSSResult[];
11
+ static styles: CSSResult[];
11
12
  protected render(): import("lit-html").TemplateResult<1>;
12
13
  }
13
14
  declare global {
@@ -4,7 +4,7 @@ import { customElement, property } from 'lit/decorators.js';
4
4
  import { classMap } from 'lit/directives/class-map.js';
5
5
  import { SnackbarBase } from '@material/mwc-snackbar/mwc-snackbar-base.js';
6
6
  import { accessibleSnackbarLabel } from '@material/mwc-snackbar/accessible-snackbar-label-directive.js';
7
- import { style as newStyles } from './styles/exm-snackbar-styles-css.js';
7
+ import { style as newStyles } from './styles/exm-snackbar-css.js';
8
8
  import { styles } from '@material/mwc-snackbar/mwc-snackbar.css.js';
9
9
  let ExmSnackbar = class ExmSnackbar extends SnackbarBase {
10
10
  constructor() {
@@ -53,6 +53,7 @@ __decorate([
53
53
  ], ExmSnackbar.prototype, "yOffset", void 0);
54
54
  ExmSnackbar = __decorate([
55
55
  customElement('exm-snackbar')
56
+ // @ts-ignore this due to a version conflict between the currently used lit and the version used bu mcw
56
57
  ], ExmSnackbar);
57
58
  export { ExmSnackbar };
58
59
  //# sourceMappingURL=exm-snackbar.js.map
@@ -0,0 +1,3 @@
1
+ export { ExmSnackbar } from './exm-snackbar.js';
2
+ export { SnackBarPayload } from './types.js';
3
+ export { style as snackbarStyles } from './styles/exm-snackbar-css.js';
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export { ExmSnackbar } from './exm-snackbar.js';
2
+ export { style as snackbarStyles } from './styles/exm-snackbar-css.js';
3
+ //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  export declare const style: import("lit").CSSResult;
2
- export default style;
@@ -0,0 +1,31 @@
1
+ import { css } from 'lit';
2
+ export const style = css `
3
+ :host {
4
+ --exm-snackbar-positive-background-color: #12805c;
5
+ --exm-snackbar-negative-background-color: #c9252d;
6
+ --exm-snackbar-info-background-color: #0d66d0;
7
+ --exm-snackbar-text-color: #fff;
8
+ }
9
+
10
+ .mdc-snackbar--positive .mdc-snackbar__surface {
11
+ background-color: var(--exm-snackbar-positive-background-color) !important;
12
+ }
13
+
14
+ .mdc-snackbar--negative .mdc-snackbar__surface {
15
+ background-color: var(--exm-snackbar-negative-background-color) !important;
16
+ }
17
+
18
+ .mdc-snackbar--info .mdc-snackbar__surface {
19
+ background-color: var(--exm-snackbar-info-background-color) !important;
20
+ }
21
+
22
+ .mdc-snackbar__surface {
23
+ color: var(--exm-snackbar-text-color);
24
+ }
25
+
26
+ slot[name='icon']::slotted(*) {
27
+ margin-left: 12px;
28
+ min-width: 24px;
29
+ }
30
+ `;
31
+ //# sourceMappingURL=exm-snackbar-css.js.map
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@exmg/exm-snackbar",
3
- "version": "1.0.1",
3
+ "version": "1.0.3-alpha.12+33e1367",
4
4
  "type": "module",
5
- "main": "index.js",
6
- "module": "index.js",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.js",
7
7
  "exports": {
8
- ".": "./index.js",
9
- "./exm-snackbar.js": "./src/exm-snackbar.js"
8
+ ".": "./dist/index.js",
9
+ "./exm-snackbar.js": "./dist/exm-snackbar.js"
10
10
  },
11
11
  "dependencies": {
12
12
  "@material/mwc-snackbar": "=0.27.0",
@@ -26,18 +26,16 @@
26
26
  "**/*.js",
27
27
  "**/*.d.ts"
28
28
  ],
29
- "homepage": "https://github.com/exmg/exmachina-web-components",
29
+ "homepage": "https://bitbucket.org/exmachina/exm-web-components",
30
30
  "repository": {
31
31
  "type": "git",
32
- "url": "git@github.com:exmg/exm-web-components.git",
32
+ "url": "git@bitbucket.org:exmachina/exm-web-components.git",
33
33
  "directory": "packages/exm-snackbar"
34
34
  },
35
35
  "license": "MIT",
36
- "scripts": {
37
- "build:styles": "exmg-lit-cli sass -f \"./**/*.scss\""
38
- },
36
+ "scripts": {},
39
37
  "publishConfig": {
40
38
  "access": "public"
41
39
  },
42
- "gitHead": "8e971cbad07fa6fab5a95aefd915937b752d2204"
40
+ "gitHead": "33e1367329dfae6f98f21c981edb7ada370fc0d5"
43
41
  }
package/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export { ExmSnackbar } from './src/exm-snackbar.js';
2
- export { SnackBarPayload } from './src/types.js';
3
- export { style as snackbarStyles } from './src/styles/exm-snackbar-styles-css.js';
package/index.js DELETED
@@ -1,3 +0,0 @@
1
- export { ExmSnackbar } from './src/exm-snackbar.js';
2
- export { style as snackbarStyles } from './src/styles/exm-snackbar-styles-css.js';
3
- //# sourceMappingURL=index.js.map
@@ -1,4 +0,0 @@
1
- import { css } from 'lit';
2
- export const style = css `:host{--exm-snackbar-positive-background-color: #12805c;--exm-snackbar-negative-background-color: #c9252d;--exm-snackbar-info-background-color: #0d66d0;--exm-snackbar-text-color: #fff}.mdc-snackbar--positive .mdc-snackbar__surface{background-color:var(--exm-snackbar-positive-background-color) !important}.mdc-snackbar--negative .mdc-snackbar__surface{background-color:var(--exm-snackbar-negative-background-color) !important}.mdc-snackbar--info .mdc-snackbar__surface{background-color:var(--exm-snackbar-info-background-color) !important}.mdc-snackbar__surface{color:var(--exm-snackbar-text-color)}slot[name=icon]::slotted(*){margin-left:12px;min-width:24px}`;
3
- export default style;
4
- //# sourceMappingURL=exm-snackbar-styles-css.js.map
@@ -1,31 +0,0 @@
1
- :host {
2
- --exm-snackbar-positive-background-color: #12805c;
3
- --exm-snackbar-negative-background-color: #c9252d;
4
- --exm-snackbar-info-background-color: #0d66d0;
5
- --exm-snackbar-text-color: #fff;
6
- }
7
-
8
- .mdc-snackbar--positive {
9
- .mdc-snackbar__surface {
10
- background-color: var(--exm-snackbar-positive-background-color) !important;
11
- }
12
- }
13
- .mdc-snackbar--negative {
14
- .mdc-snackbar__surface {
15
- background-color: var(--exm-snackbar-negative-background-color) !important;
16
- }
17
- }
18
- .mdc-snackbar--info {
19
- .mdc-snackbar__surface {
20
- background-color: var(--exm-snackbar-info-background-color) !important;
21
- }
22
- }
23
-
24
- .mdc-snackbar__surface {
25
- color: var(--exm-snackbar-text-color);
26
- }
27
-
28
- slot[name='icon']::slotted(*) {
29
- margin-left: 12px;
30
- min-width: 24px;
31
- }
File without changes
File without changes