@operato/context 2.0.0-alpha.61 → 2.0.0-alpha.63

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 (42) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/src/layouts/ox-context-page-toolbar.d.ts +1 -1
  3. package/dist/src/layouts/ox-context-page-toolbar.js +2 -2
  4. package/dist/src/layouts/ox-context-page-toolbar.js.map +1 -1
  5. package/dist/src/layouts/ox-context-toolbar.d.ts +1 -1
  6. package/dist/src/layouts/ox-context-toolbar.js +1 -1
  7. package/dist/src/layouts/ox-context-toolbar.js.map +1 -1
  8. package/dist/src/styles/ox-context-toolbar-overlay-style.js +2 -2
  9. package/dist/src/styles/ox-context-toolbar-overlay-style.js.map +1 -1
  10. package/dist/src/tools/ox-page-action-context-bar.d.ts +1 -2
  11. package/dist/src/tools/ox-page-action-context-bar.js +25 -20
  12. package/dist/src/tools/ox-page-action-context-bar.js.map +1 -1
  13. package/dist/src/tools/ox-page-action-overlay-template.d.ts +1 -1
  14. package/dist/src/tools/ox-page-action-overlay-template.js +24 -18
  15. package/dist/src/tools/ox-page-action-overlay-template.js.map +1 -1
  16. package/dist/src/tools/ox-page-title-bar.d.ts +1 -1
  17. package/dist/src/tools/ox-page-title-bar.js +5 -7
  18. package/dist/src/tools/ox-page-title-bar.js.map +1 -1
  19. package/dist/src/tools/ox-title-bar.d.ts +1 -1
  20. package/dist/src/tools/ox-title-bar.js +5 -7
  21. package/dist/src/tools/ox-title-bar.js.map +1 -1
  22. package/dist/stories/ox-context-page-toolbar-select-buttons.stories.d.ts +1 -1
  23. package/dist/stories/ox-context-page-toolbar-select-buttons.stories.js +17 -7
  24. package/dist/stories/ox-context-page-toolbar-select-buttons.stories.js.map +1 -1
  25. package/dist/stories/ox-context-page-toolbar-select.stories.d.ts +1 -1
  26. package/dist/stories/ox-context-page-toolbar-select.stories.js +8 -5
  27. package/dist/stories/ox-context-page-toolbar-select.stories.js.map +1 -1
  28. package/dist/stories/ox-context-page-toolbar.stories.d.ts +1 -1
  29. package/dist/stories/ox-context-page-toolbar.stories.js +9 -6
  30. package/dist/stories/ox-context-page-toolbar.stories.js.map +1 -1
  31. package/dist/tsconfig.tsbuildinfo +1 -1
  32. package/package.json +8 -8
  33. package/src/layouts/ox-context-page-toolbar.ts +2 -2
  34. package/src/layouts/ox-context-toolbar.ts +1 -1
  35. package/src/styles/ox-context-toolbar-overlay-style.ts +2 -2
  36. package/src/tools/ox-page-action-context-bar.ts +25 -20
  37. package/src/tools/ox-page-action-overlay-template.ts +44 -38
  38. package/src/tools/ox-page-title-bar.ts +5 -7
  39. package/src/tools/ox-title-bar.ts +5 -7
  40. package/stories/ox-context-page-toolbar-select-buttons.stories.ts +17 -7
  41. package/stories/ox-context-page-toolbar-select.stories.ts +8 -5
  42. package/stories/ox-context-page-toolbar.stories.ts +9 -6
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@operato/context",
3
3
  "description": "Webcomponent context following open-wc recommendations",
4
4
  "author": "heartyoh",
5
- "version": "2.0.0-alpha.61",
5
+ "version": "2.0.0-alpha.63",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.js",
8
8
  "exports": {
@@ -63,12 +63,12 @@
63
63
  "storybook:build": "tsc && npm run analyze -- --exclude dist && build-storybook"
64
64
  },
65
65
  "dependencies": {
66
- "@material/mwc-icon": "^0.27.0",
67
- "@operato/help": "^2.0.0-alpha.61",
68
- "@operato/input": "^2.0.0-alpha.59",
69
- "@operato/layout": "^2.0.0-alpha.57",
70
- "@operato/shell": "^2.0.0-alpha.57",
71
- "@operato/styles": "^2.0.0-alpha.57",
66
+ "@material/web": "^1.4.0",
67
+ "@operato/help": "^2.0.0-alpha.63",
68
+ "@operato/input": "^2.0.0-alpha.62",
69
+ "@operato/layout": "^2.0.0-alpha.63",
70
+ "@operato/shell": "^2.0.0-alpha.63",
71
+ "@operato/styles": "^2.0.0-alpha.62",
72
72
  "@operato/utils": "^2.0.0-alpha.57",
73
73
  "lit": "^3.1.2",
74
74
  "lodash-es": "^4.17.21",
@@ -106,5 +106,5 @@
106
106
  "prettier --write"
107
107
  ]
108
108
  },
109
- "gitHead": "6ba512f14bf258b7a2d81496af95d81e5247437f"
109
+ "gitHead": "a29b063ce8513cccc9d567d03d888d49dfa3a71a"
110
110
  }
@@ -1,4 +1,4 @@
1
- import '@material/mwc-icon'
1
+ import '@material/web/icon/icon.js'
2
2
 
3
3
  import { css, html, LitElement, TemplateResult, nothing } from 'lit'
4
4
  import { customElement, property, query, state } from 'lit/decorators.js'
@@ -39,7 +39,7 @@ export class ContextPageToolbar extends connect(store)(LitElement) {
39
39
  cursor: pointer;
40
40
  }
41
41
 
42
- mwc-icon {
42
+ md-icon {
43
43
  background-color: var(--theme-white-color);
44
44
  border: 1px solid rgba(var(--primary-color-rgb), 0.5);
45
45
  padding: 1px 2px;
@@ -1,4 +1,4 @@
1
- import '@material/mwc-icon'
1
+ import '@material/web/icon/icon.js'
2
2
 
3
3
  import { css, html, LitElement, nothing } from 'lit'
4
4
  import { customElement, property, query, state } from 'lit/decorators.js'
@@ -23,7 +23,7 @@ export const ContextToolbarOverlayStyle = css`
23
23
  padding: var(--context-ui-list-padding);
24
24
  }
25
25
 
26
- li > mwc-icon {
26
+ li > md-icon {
27
27
  font-size: 1em;
28
28
 
29
29
  padding: var(--context-ui-padding);
@@ -37,7 +37,7 @@ export const ContextToolbarOverlayStyle = css`
37
37
  color: var(--context-ui-list-color);
38
38
  }
39
39
 
40
- li:hover mwc-icon,
40
+ li:hover md-icon,
41
41
  li:hover span {
42
42
  color: #fff;
43
43
  }
@@ -1,5 +1,4 @@
1
- import '@material/mwc-button'
2
- import '@material/mwc-icon'
1
+ import '@material/web/icon/icon.js'
3
2
  import './ox-page-action-overlay-template.js'
4
3
 
5
4
  import { css, html, LitElement, PropertyValues } from 'lit'
@@ -26,15 +25,26 @@ export class PageActionContextBar extends connect(store)(LitElement) {
26
25
  outline: none;
27
26
  }
28
27
 
29
- mwc-button {
28
+ button {
30
29
  white-space: nowrap;
31
30
  margin: var(--context-action-bar-button-margin);
32
31
  border-radius: var(--context-action-bar-more-button-border-radius);
33
32
  }
34
33
 
34
+ md-icon {
35
+ background-color: var(--theme-white-color);
36
+ border: 1px solid rgba(var(--primary-color-rgb), 0.5);
37
+ padding: 1px 2px;
38
+ color: var(--primary-color);
39
+ }
40
+
41
+ [filled] {
42
+ font-variation-settings: 'FILL' 1;
43
+ }
44
+
35
45
  [danger] {
36
- --mdc-theme-primary: var(--mdc-danger-button-primary-color);
37
- --mdc-button-outline-color: var(--mdc-danger-button-outline-color);
46
+ color: var(--mdc-danger-button-primary-color);
47
+ border-color: var(--mdc-danger-button-outline-color);
38
48
  }
39
49
 
40
50
  [more] {
@@ -48,15 +58,8 @@ export class PageActionContextBar extends connect(store)(LitElement) {
48
58
  font-size: 2rem;
49
59
  }
50
60
 
51
- mwc-icon {
52
- background-color: var(--theme-white-color);
53
- border: 1px solid rgba(var(--primary-color-rgb), 0.5);
54
- padding: 1px 2px;
55
- color: var(--primary-color);
56
- }
57
-
58
61
  @media screen and (max-width: 460px) {
59
- mwc-button {
62
+ button {
60
63
  --mdc-button-horizontal-padding: var(--padding-default);
61
64
  --mdc-shape-small: var(--context-action-bar-more-button-border-radius);
62
65
  }
@@ -123,7 +126,7 @@ export class PageActionContextBar extends connect(store)(LitElement) {
123
126
  render() {
124
127
  return html`
125
128
  ${this.renderActions()}
126
- ${this.overflown ? html` <mwc-icon more @click=${this.showMore.bind(this)}>more_horiz</mwc-icon> ` : html``}
129
+ ${this.overflown ? html` <md-icon more @click=${this.showMore.bind(this)}>more_horiz</md-icon> ` : html``}
127
130
  `
128
131
  }
129
132
 
@@ -131,7 +134,7 @@ export class PageActionContextBar extends connect(store)(LitElement) {
131
134
  return html`
132
135
  ${this.actions.map(($action, idx) => {
133
136
  let { type, title, icon, action, select, href, emphasis } = $action as any
134
- let { outlined, raised, dense, danger } = emphasis || {}
137
+ let { outlined, raised, dense, danger, filled } = emphasis || {}
135
138
 
136
139
  return type == 'text'
137
140
  ? html` <span @click=${action}>${title}</span> `
@@ -144,15 +147,14 @@ export class PageActionContextBar extends connect(store)(LitElement) {
144
147
  : type == 'link'
145
148
  ? html` <a href=${href}>${title}</a> `
146
149
  : type == 'icon'
147
- ? html`<mwc-icon @click=${action}>${icon}</mwc-icon>`
150
+ ? html`<md-icon @click=${action}>${icon}</md-icon>`
148
151
  : html`
149
- <mwc-button
150
- label=${title}
151
- icon=${icon || 'done_all'}
152
+ <button
152
153
  ?dense=${dense}
153
154
  ?raised=${raised}
154
155
  ?outlined=${outlined}
155
156
  ?danger=${danger}
157
+ ?filled=${filled}
156
158
  @click=${async (e: MouseEvent) => {
157
159
  /* all actions should be bloked for a second */
158
160
  const button = e.currentTarget as any
@@ -170,7 +172,10 @@ export class PageActionContextBar extends connect(store)(LitElement) {
170
172
  button.removeAttribute('working')
171
173
  }
172
174
  }}
173
- ></mwc-button>
175
+ >
176
+ <md-icon>${icon || 'done_all'}</md-icon>
177
+ ${title}
178
+ </button>
174
179
  `
175
180
  })}
176
181
  `
@@ -1,4 +1,4 @@
1
- import '@material/mwc-icon'
1
+ import '@material/web/icon/icon.js'
2
2
 
3
3
  import { css, html, LitElement } from 'lit'
4
4
  import { customElement, property, query, state } from 'lit/decorators.js'
@@ -26,7 +26,7 @@ export class PageActionOverlayTemplate extends connect(store)(LitElement) {
26
26
  outline: none;
27
27
  }
28
28
 
29
- mwc-button {
29
+ button {
30
30
  background-color: var(--main-section-background-color);
31
31
  border-radius: var(--context-action-bar-more-button-border-radius);
32
32
  }
@@ -36,8 +36,12 @@ export class PageActionOverlayTemplate extends connect(store)(LitElement) {
36
36
  --mdc-button-outline-color: var(--mdc-danger-button-outline-color);
37
37
  }
38
38
 
39
+ [filled] {
40
+ font-variation-settings: 'FILL' 1;
41
+ }
42
+
39
43
  @media screen and (max-width: 460px) {
40
- mwc-button {
44
+ button {
41
45
  --mdc-button-horizontal-padding: var(--padding-default);
42
46
  border-radius: 4px;
43
47
  }
@@ -61,47 +65,49 @@ export class PageActionOverlayTemplate extends connect(store)(LitElement) {
61
65
  return html`
62
66
  ${this.actions.map(($action, idx) => {
63
67
  let { type, title, icon, action, select, href, emphasis } = $action as any
64
- let { outlined, raised, dense, danger } = emphasis || {}
68
+ let { outlined, raised, dense, danger, filled } = emphasis || {}
65
69
 
66
70
  return type == 'text'
67
71
  ? html` <span>${title}</span> `
68
72
  : type == 'select' || (select && select.length > 0)
69
- ? html`
70
- <select @change=${action}>
71
- ${select.map((option: any) => html` <option>${option}</option> `)}
72
- </select>
73
- `
74
- : type == 'link'
75
- ? html` <a href=${href}>${title}</a> `
76
- : html`
77
- <mwc-button
78
- label=${title}
79
- icon=${icon || 'done_all'}
80
- ?dense=${dense}
81
- ?raised=${raised}
82
- ?outlined=${outlined}
83
- ?danger=${danger}
84
- @click=${async (e: MouseEvent) => {
85
- /* all actions should be bloked for a second */
86
- const button = e.currentTarget as any
87
- button.icon = 'rotate_right'
88
- button.setAttribute('working', true)
89
- button.disabled = true
73
+ ? html`
74
+ <select @change=${action}>
75
+ ${select.map((option: any) => html` <option>${option}</option> `)}
76
+ </select>
77
+ `
78
+ : type == 'link'
79
+ ? html` <a href=${href}>${title}</a> `
80
+ : html`
81
+ <button
82
+ ?dense=${dense}
83
+ ?raised=${raised}
84
+ ?outlined=${outlined}
85
+ ?danger=${danger}
86
+ ?filled=${filled}
87
+ @click=${async (e: MouseEvent) => {
88
+ /* all actions should be bloked for a second */
89
+ const button = e.currentTarget as any
90
+ button.icon = 'rotate_right'
91
+ button.setAttribute('working', true)
92
+ button.disabled = true
90
93
 
91
- try {
92
- action()
93
- } finally {
94
- await sleep(1000)
95
- button.disabled = false
96
- /* because icon can be changed after sleep, don't use closure 'icon'. */
97
- button.icon = this.actions[idx]?.icon || 'done_all'
98
- button.removeAttribute('working')
94
+ try {
95
+ action()
96
+ } finally {
97
+ await sleep(1000)
98
+ button.disabled = false
99
+ /* because icon can be changed after sleep, don't use closure 'icon'. */
100
+ button.icon = this.actions[idx]?.icon || 'done_all'
101
+ button.removeAttribute('working')
99
102
 
100
- window.history.back()
101
- }
102
- }}
103
- ></mwc-button>
104
- `
103
+ window.history.back()
104
+ }
105
+ }}
106
+ >
107
+ <md-icon>${icon || 'done_all'}</md-icon>
108
+ ${title}
109
+ </button>
110
+ `
105
111
  })}
106
112
  `
107
113
  }
@@ -1,4 +1,4 @@
1
- import '@material/mwc-icon'
1
+ import '@material/web/icon/icon.js'
2
2
  import '@operato/input/ox-input-search.js'
3
3
 
4
4
  import { css, html, LitElement } from 'lit'
@@ -92,10 +92,8 @@ export class PageTitleBar extends connect(store)(LitElement) {
92
92
  }
93
93
 
94
94
  return html`
95
- ${title ? html` <div titler>${icon ? html`<mwc-icon>${icon}</mwc-icon>&nbsp;` : html``}${text}</div> ` : html``}
96
- ${help && title
97
- ? html` &nbsp;<mwc-icon @click=${(e: MouseEvent) => openHelp(help)} help>help</mwc-icon> `
98
- : html``}
95
+ ${title ? html` <div titler>${icon ? html`<md-icon>${icon}</md-icon>&nbsp;` : html``}${text}</div> ` : html``}
96
+ ${help && title ? html` &nbsp;<md-icon @click=${(e: MouseEvent) => openHelp(help)} help>help</md-icon> ` : html``}
99
97
  ${searchable || filterable
100
98
  ? html`
101
99
  <div search>
@@ -110,9 +108,9 @@ export class PageTitleBar extends connect(store)(LitElement) {
110
108
  ></ox-input-search>`
111
109
  : html``}
112
110
  ${!title && help && searchable
113
- ? html`<mwc-icon @click=${(e: MouseEvent) => openHelp(help)} help>help</mwc-icon>`
111
+ ? html`<md-icon @click=${(e: MouseEvent) => openHelp(help)} help>help</md-icon>`
114
112
  : html``}
115
- ${filterable ? html`<mwc-icon @click=${(e: MouseEvent) => filterHandler()}>unfold_more</mwc-icon>` : html``}
113
+ ${filterable ? html`<md-icon @click=${(e: MouseEvent) => filterHandler()}>unfold_more</md-icon>` : html``}
116
114
  </div>
117
115
  `
118
116
  : html``}
@@ -1,4 +1,4 @@
1
- import '@material/mwc-icon'
1
+ import '@material/web/icon/icon.js'
2
2
  import '@operato/input/ox-input-search.js'
3
3
 
4
4
  import { css, html, LitElement } from 'lit'
@@ -88,10 +88,8 @@ export class TitleBar extends connect(store)(LitElement) {
88
88
  }
89
89
 
90
90
  return html`
91
- ${title ? html` <div titler>${icon ? html`<mwc-icon>${icon}</mwc-icon>&nbsp;` : html``}${text}</div> ` : html``}
92
- ${help && title
93
- ? html` &nbsp;<mwc-icon @click=${(e: MouseEvent) => openHelp(help)} help>help</mwc-icon> `
94
- : html``}
91
+ ${title ? html` <div titler>${icon ? html`<md-icon>${icon}</md-icon>&nbsp;` : html``}${text}</div> ` : html``}
92
+ ${help && title ? html` &nbsp;<md-icon @click=${(e: MouseEvent) => openHelp(help)} help>help</md-icon> ` : html``}
95
93
  ${searchable || filterable
96
94
  ? html`
97
95
  <div search>
@@ -106,9 +104,9 @@ export class TitleBar extends connect(store)(LitElement) {
106
104
  ></ox-input-search>`
107
105
  : html``}
108
106
  ${!title && help && searchable
109
- ? html`<mwc-icon @click=${(e: MouseEvent) => openHelp(help)} help>help</mwc-icon>`
107
+ ? html`<md-icon @click=${(e: MouseEvent) => openHelp(help)} help>help</md-icon>`
110
108
  : html``}
111
- ${filterable ? html`<mwc-icon @click=${(e: MouseEvent) => filterHandler()}>tune</mwc-icon>` : html``}
109
+ ${filterable ? html`<md-icon @click=${(e: MouseEvent) => filterHandler()}>tune</md-icon>` : html``}
112
110
  </div>
113
111
  `
114
112
  : html``}
@@ -1,4 +1,4 @@
1
- import '@material/mwc-icon'
1
+ import '@material/web/icon/icon.js'
2
2
  import '../src/layouts/ox-context-page-toolbar.js'
3
3
  import '../src/tools/ox-page-action-context-bar.js'
4
4
  import '@operato/input/ox-input-select-buttons.js'
@@ -29,7 +29,10 @@ interface ArgTypes {
29
29
 
30
30
  const Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`
31
31
  <link href="/themes/app-theme.css" rel="stylesheet" />
32
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
32
+
33
+ <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1" rel="stylesheet">
34
+ <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1" rel="stylesheet">
35
+ <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1" rel="stylesheet">
33
36
 
34
37
  <style>
35
38
  body {
@@ -42,7 +45,7 @@ const Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`
42
45
  <div style="height:600px;">
43
46
  <div class="header">
44
47
  <div class="title">
45
- <mwc-icon>summarize</mwc-icon>
48
+ <md-icon>summarize</md-icon>
46
49
  ${label}
47
50
  </div>
48
51
 
@@ -67,12 +70,12 @@ const Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`
67
70
  .tools=${[
68
71
  {
69
72
  position: TOOL_POSITION.FRONT,
70
- template: html` <mwc-icon>download</mwc-icon> `,
73
+ template: html` <md-icon>download</md-icon> `,
71
74
  context: 'exportable'
72
75
  },
73
76
  {
74
77
  position: TOOL_POSITION.FRONT,
75
- template: html` <mwc-icon>upload</mwc-icon> `,
78
+ template: html` <md-icon>upload</md-icon> `,
76
79
  context: 'importable'
77
80
  },
78
81
  {
@@ -82,12 +85,19 @@ const Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`
82
85
  {
83
86
  title: 'save',
84
87
  action: () => {},
85
- icon: 'save'
88
+ icon: 'save',
89
+ emphasis: {
90
+ danger: true,
91
+ filled: true
92
+ }
86
93
  },
87
94
  {
88
95
  title: 'copy',
89
96
  action: () => {},
90
- icon: 'content_copy'
97
+ icon: 'content_copy',
98
+ emphasis: {
99
+ outlined: true
100
+ }
91
101
  },
92
102
  {
93
103
  title: 'delete',
@@ -1,4 +1,4 @@
1
- import '@material/mwc-icon'
1
+ import '@material/web/icon/icon.js'
2
2
  import '../src/layouts/ox-context-page-toolbar.js'
3
3
  import '../src/tools/ox-page-action-context-bar.js'
4
4
  import { CommonHeaderStyles } from '@operato/styles'
@@ -28,7 +28,10 @@ interface ArgTypes {
28
28
 
29
29
  const Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`
30
30
  <link href="/themes/app-theme.css" rel="stylesheet" />
31
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
31
+
32
+ <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1" rel="stylesheet">
33
+ <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1" rel="stylesheet">
34
+ <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1" rel="stylesheet">
32
35
 
33
36
  <style>
34
37
  body {
@@ -41,7 +44,7 @@ const Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`
41
44
  <div style="height:600px;">
42
45
  <div class="header">
43
46
  <div class="title">
44
- <mwc-icon>summarize</mwc-icon>
47
+ <md-icon>summarize</md-icon>
45
48
  ${label}
46
49
  </div>
47
50
 
@@ -53,12 +56,12 @@ const Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`
53
56
  .tools=${[
54
57
  {
55
58
  position: TOOL_POSITION.FRONT,
56
- template: html` <mwc-icon>download</mwc-icon> `,
59
+ template: html` <md-icon>download</md-icon> `,
57
60
  context: 'exportable'
58
61
  },
59
62
  {
60
63
  position: TOOL_POSITION.FRONT,
61
- template: html` <mwc-icon>upload</mwc-icon> `,
64
+ template: html` <md-icon>upload</md-icon> `,
62
65
  context: 'importable'
63
66
  },
64
67
  {
@@ -1,4 +1,4 @@
1
- import '@material/mwc-icon'
1
+ import '@material/web/icon/icon.js'
2
2
  import '../src/layouts/ox-context-page-toolbar.js'
3
3
  import '../src/tools/ox-page-action-context-bar.js'
4
4
  import { CommonHeaderStyles } from '@operato/styles'
@@ -28,8 +28,11 @@ interface ArgTypes {
28
28
 
29
29
  const Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`
30
30
  <link href="/themes/app-theme.css" rel="stylesheet" />
31
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
32
-
31
+
32
+ <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1" rel="stylesheet">
33
+ <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1" rel="stylesheet">
34
+ <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1" rel="stylesheet">
35
+
33
36
  <style>
34
37
  body {
35
38
  background-color: white;
@@ -41,7 +44,7 @@ const Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`
41
44
  <div style="height:600px;">
42
45
  <div class="header">
43
46
  <div class="title">
44
- <mwc-icon>summarize</mwc-icon>
47
+ <md-icon>summarize</md-icon>
45
48
  ${label}
46
49
  </div>
47
50
 
@@ -53,12 +56,12 @@ const Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`
53
56
  .tools=${[
54
57
  {
55
58
  position: TOOL_POSITION.FRONT,
56
- template: html` <mwc-icon>download</mwc-icon> `,
59
+ template: html` <md-icon>download</md-icon> `,
57
60
  context: 'exportable'
58
61
  },
59
62
  {
60
63
  position: TOOL_POSITION.FRONT,
61
- template: html` <mwc-icon>upload</mwc-icon> `,
64
+ template: html` <md-icon>upload</md-icon> `,
62
65
  context: 'importable'
63
66
  },
64
67
  {