@operato/input 2.0.0-alpha.59 → 2.0.0-alpha.62

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 (160) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/src/ox-input-barcode.js +2 -2
  3. package/dist/src/ox-input-barcode.js.map +1 -1
  4. package/dist/src/ox-input-container.d.ts +1 -1
  5. package/dist/src/ox-input-container.js +2 -2
  6. package/dist/src/ox-input-container.js.map +1 -1
  7. package/dist/src/ox-input-crontab.d.ts +0 -1
  8. package/dist/src/ox-input-crontab.js +4 -7
  9. package/dist/src/ox-input-crontab.js.map +1 -1
  10. package/dist/src/ox-input-data.js +2 -2
  11. package/dist/src/ox-input-data.js.map +1 -1
  12. package/dist/src/ox-input-duration.d.ts +0 -1
  13. package/dist/src/ox-input-duration.js +3 -5
  14. package/dist/src/ox-input-duration.js.map +1 -1
  15. package/dist/src/ox-input-file.d.ts +1 -1
  16. package/dist/src/ox-input-file.js +9 -9
  17. package/dist/src/ox-input-file.js.map +1 -1
  18. package/dist/src/ox-input-i18n-label.d.ts +1 -1
  19. package/dist/src/ox-input-i18n-label.js +1 -1
  20. package/dist/src/ox-input-i18n-label.js.map +1 -1
  21. package/dist/src/ox-input-image.d.ts +1 -1
  22. package/dist/src/ox-input-image.js +4 -4
  23. package/dist/src/ox-input-image.js.map +1 -1
  24. package/dist/src/ox-input-key-values.d.ts +1 -1
  25. package/dist/src/ox-input-key-values.js +8 -8
  26. package/dist/src/ox-input-key-values.js.map +1 -1
  27. package/dist/src/ox-input-mass-fraction.d.ts +1 -1
  28. package/dist/src/ox-input-mass-fraction.js +18 -10
  29. package/dist/src/ox-input-mass-fraction.js.map +1 -1
  30. package/dist/src/ox-input-multiple-colors.d.ts +1 -1
  31. package/dist/src/ox-input-multiple-colors.js +4 -7
  32. package/dist/src/ox-input-multiple-colors.js.map +1 -1
  33. package/dist/src/ox-input-options.d.ts +1 -1
  34. package/dist/src/ox-input-options.js +3 -7
  35. package/dist/src/ox-input-options.js.map +1 -1
  36. package/dist/src/ox-input-partition-keys.d.ts +1 -1
  37. package/dist/src/ox-input-partition-keys.js +8 -10
  38. package/dist/src/ox-input-partition-keys.js.map +1 -1
  39. package/dist/src/ox-input-privilege.d.ts +0 -1
  40. package/dist/src/ox-input-privilege.js +0 -1
  41. package/dist/src/ox-input-privilege.js.map +1 -1
  42. package/dist/src/ox-input-search.d.ts +1 -1
  43. package/dist/src/ox-input-search.js +4 -4
  44. package/dist/src/ox-input-search.js.map +1 -1
  45. package/dist/src/ox-input-table.d.ts +1 -1
  46. package/dist/src/ox-input-table.js +12 -12
  47. package/dist/src/ox-input-table.js.map +1 -1
  48. package/dist/src/ox-input-unit-number.d.ts +1 -1
  49. package/dist/src/ox-input-unit-number.js +3 -3
  50. package/dist/src/ox-input-unit-number.js.map +1 -1
  51. package/dist/src/ox-input-value-map.js +13 -15
  52. package/dist/src/ox-input-value-map.js.map +1 -1
  53. package/dist/src/ox-input-value-ranges.js +13 -15
  54. package/dist/src/ox-input-value-ranges.js.map +1 -1
  55. package/dist/src/ox-input-work-shift.js +2 -5
  56. package/dist/src/ox-input-work-shift.js.map +1 -1
  57. package/dist/src/ox-select.d.ts +1 -1
  58. package/dist/src/ox-select.js +4 -4
  59. package/dist/src/ox-select.js.map +1 -1
  60. package/dist/stories/ox-input-3axis.stories.js +14 -1
  61. package/dist/stories/ox-input-3axis.stories.js.map +1 -1
  62. package/dist/stories/ox-input-3dish.stories.js +14 -1
  63. package/dist/stories/ox-input-3dish.stories.js.map +1 -1
  64. package/dist/stories/ox-input-angle.stories.js +13 -1
  65. package/dist/stories/ox-input-angle.stories.js.map +1 -1
  66. package/dist/stories/ox-input-barcode.stories.js +13 -1
  67. package/dist/stories/ox-input-barcode.stories.js.map +1 -1
  68. package/dist/stories/ox-input-code.stories.js +13 -1
  69. package/dist/stories/ox-input-code.stories.js.map +1 -1
  70. package/dist/stories/ox-input-crontab.stories.js +13 -1
  71. package/dist/stories/ox-input-crontab.stories.js.map +1 -1
  72. package/dist/stories/ox-input-data.stories.js +13 -1
  73. package/dist/stories/ox-input-data.stories.js.map +1 -1
  74. package/dist/stories/ox-input-duration.stories.js +13 -1
  75. package/dist/stories/ox-input-duration.stories.js.map +1 -1
  76. package/dist/stories/ox-input-file.stories.js +13 -1
  77. package/dist/stories/ox-input-file.stories.js.map +1 -1
  78. package/dist/stories/ox-input-hashtags.stories.js +13 -1
  79. package/dist/stories/ox-input-hashtags.stories.js.map +1 -1
  80. package/dist/stories/ox-input-i18n-label.stories.js +13 -1
  81. package/dist/stories/ox-input-i18n-label.stories.js.map +1 -1
  82. package/dist/stories/ox-input-key-values.stories.js +13 -1
  83. package/dist/stories/ox-input-key-values.stories.js.map +1 -1
  84. package/dist/stories/ox-input-mass-fraction.stories.js +13 -1
  85. package/dist/stories/ox-input-mass-fraction.stories.js.map +1 -1
  86. package/dist/stories/ox-input-multiple-colors.stories.js +21 -10
  87. package/dist/stories/ox-input-multiple-colors.stories.js.map +1 -1
  88. package/dist/stories/ox-input-options.stories.js +13 -1
  89. package/dist/stories/ox-input-options.stories.js.map +1 -1
  90. package/dist/stories/ox-input-partition-keys.stories.js +13 -1
  91. package/dist/stories/ox-input-partition-keys.stories.js.map +1 -1
  92. package/dist/stories/ox-input-privilege.stories.js +13 -1
  93. package/dist/stories/ox-input-privilege.stories.js.map +1 -1
  94. package/dist/stories/ox-input-quantifier.stories.js +13 -1
  95. package/dist/stories/ox-input-quantifier.stories.js.map +1 -1
  96. package/dist/stories/ox-input-range.stories.js +13 -1
  97. package/dist/stories/ox-input-range.stories.js.map +1 -1
  98. package/dist/stories/ox-input-search.stories.js +13 -1
  99. package/dist/stories/ox-input-search.stories.js.map +1 -1
  100. package/dist/stories/ox-input-select-buttons.stories.js +13 -1
  101. package/dist/stories/ox-input-select-buttons.stories.js.map +1 -1
  102. package/dist/stories/ox-input-unit.stories.js +14 -1
  103. package/dist/stories/ox-input-unit.stories.js.map +1 -1
  104. package/dist/stories/ox-input-value-map.stories.js +13 -1
  105. package/dist/stories/ox-input-value-map.stories.js.map +1 -1
  106. package/dist/stories/ox-input-value-ranges.stories.js +13 -1
  107. package/dist/stories/ox-input-value-ranges.stories.js.map +1 -1
  108. package/dist/stories/ox-input-work-shift.stories.js +13 -1
  109. package/dist/stories/ox-input-work-shift.stories.js.map +1 -1
  110. package/dist/stories/ox-select.stories.js +13 -1
  111. package/dist/stories/ox-select.stories.js.map +1 -1
  112. package/dist/tsconfig.tsbuildinfo +1 -1
  113. package/package.json +5 -5
  114. package/src/ox-input-barcode.ts +2 -2
  115. package/src/ox-input-container.ts +2 -2
  116. package/src/ox-input-crontab.ts +4 -8
  117. package/src/ox-input-data.ts +2 -2
  118. package/src/ox-input-duration.ts +3 -6
  119. package/src/ox-input-file.ts +9 -9
  120. package/src/ox-input-i18n-label.ts +1 -1
  121. package/src/ox-input-image.ts +4 -4
  122. package/src/ox-input-key-values.ts +26 -20
  123. package/src/ox-input-mass-fraction.ts +18 -10
  124. package/src/ox-input-multiple-colors.ts +4 -7
  125. package/src/ox-input-options.ts +3 -7
  126. package/src/ox-input-partition-keys.ts +26 -22
  127. package/src/ox-input-privilege.ts +0 -2
  128. package/src/ox-input-search.ts +4 -4
  129. package/src/ox-input-table.ts +12 -12
  130. package/src/ox-input-unit-number.ts +3 -3
  131. package/src/ox-input-value-map.ts +15 -17
  132. package/src/ox-input-value-ranges.ts +15 -17
  133. package/src/ox-input-work-shift.ts +2 -5
  134. package/src/ox-select.ts +4 -4
  135. package/stories/ox-input-3axis.stories.ts +14 -1
  136. package/stories/ox-input-3dish.stories.ts +14 -1
  137. package/stories/ox-input-angle.stories.ts +13 -1
  138. package/stories/ox-input-barcode.stories.ts +13 -1
  139. package/stories/ox-input-code.stories.ts +13 -1
  140. package/stories/ox-input-crontab.stories.ts +13 -1
  141. package/stories/ox-input-data.stories.ts +13 -1
  142. package/stories/ox-input-duration.stories.ts +13 -1
  143. package/stories/ox-input-file.stories.ts +13 -1
  144. package/stories/ox-input-hashtags.stories.ts +13 -1
  145. package/stories/ox-input-i18n-label.stories.ts +13 -1
  146. package/stories/ox-input-key-values.stories.ts +13 -1
  147. package/stories/ox-input-mass-fraction.stories.ts +13 -1
  148. package/stories/ox-input-multiple-colors.stories.ts +21 -10
  149. package/stories/ox-input-options.stories.ts +13 -1
  150. package/stories/ox-input-partition-keys.stories.ts +13 -1
  151. package/stories/ox-input-privilege.stories.ts +13 -1
  152. package/stories/ox-input-quantifier.stories.ts +13 -1
  153. package/stories/ox-input-range.stories.ts +13 -1
  154. package/stories/ox-input-search.stories.ts +13 -1
  155. package/stories/ox-input-select-buttons.stories.ts +13 -1
  156. package/stories/ox-input-unit.stories.ts +14 -1
  157. package/stories/ox-input-value-map.stories.ts +13 -1
  158. package/stories/ox-input-value-ranges.stories.ts +13 -1
  159. package/stories/ox-input-work-shift.stories.ts +13 -1
  160. package/stories/ox-select.stories.ts +13 -1
@@ -2,7 +2,7 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@material/mwc-icon'
5
+ import '@material/web/icon/icon.js'
6
6
 
7
7
  import debounce from 'lodash-es/debounce'
8
8
  import { css, html } from 'lit'
@@ -19,7 +19,7 @@ export class OxInputSearch extends OxFormField {
19
19
  position: relative;
20
20
  align-items: center;
21
21
 
22
- --mdc-icon-size: 20px;
22
+ --md-icon-size: 20px;
23
23
  }
24
24
 
25
25
  [type='text'] {
@@ -38,7 +38,7 @@ export class OxInputSearch extends OxFormField {
38
38
  border-bottom: var(--input-search-focus-border-bottom, 1px solid var(--primary-color));
39
39
  }
40
40
 
41
- mwc-icon {
41
+ md-icon {
42
42
  position: absolute;
43
43
  color: var(--secondary-color);
44
44
  }
@@ -54,7 +54,7 @@ export class OxInputSearch extends OxFormField {
54
54
 
55
55
  render() {
56
56
  return html`
57
- <mwc-icon @click=${(e: Event) => !this.disabled && this._onClickSearch(e)}>search</mwc-icon>
57
+ <md-icon @click=${(e: Event) => !this.disabled && this._onClickSearch(e)}>search</md-icon>
58
58
  <input
59
59
  type="text"
60
60
  .value=${this.value || ''}
@@ -2,7 +2,7 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@material/mwc-icon'
5
+ import '@material/web/icon/icon.js'
6
6
  import '@polymer/paper-dropdown-menu/paper-dropdown-menu'
7
7
  import '@polymer/paper-item/paper-item'
8
8
  import '@operato/i18n/ox-i18n.js'
@@ -74,7 +74,7 @@ class OxInputTable extends OxFormField {
74
74
  line-height: 1.5;
75
75
  }
76
76
 
77
- #border-set > mwc-icon {
77
+ #border-set > md-icon {
78
78
  grid-column: span 2;
79
79
  margin: 0 0 0 8px;
80
80
  width: 32px;
@@ -216,16 +216,16 @@ class OxInputTable extends OxFormField {
216
216
  border-style-btn"
217
217
  @click=${(e: Event) => this._onClickType(e)}
218
218
  >
219
- <mwc-icon data-value="out">border_outer</mwc-icon>
220
- <mwc-icon data-value="in">border_inner</mwc-icon>
221
- <mwc-icon data-value="all">border_all</mwc-icon>
222
- <mwc-icon data-value="left">border_left</mwc-icon>
223
- <mwc-icon data-value="center">border_vertical</mwc-icon>
224
- <mwc-icon data-value="right">border_right</mwc-icon>
225
- <mwc-icon data-value="top">border_top</mwc-icon>
226
- <mwc-icon data-value="middle">border_horizontal</mwc-icon>
227
- <mwc-icon data-value="bottom">border_bottom</mwc-icon>
228
- <mwc-icon data-value="clear">border_clear</mwc-icon>
219
+ <md-icon data-value="out">border_outer</md-icon>
220
+ <md-icon data-value="in">border_inner</md-icon>
221
+ <md-icon data-value="all">border_all</md-icon>
222
+ <md-icon data-value="left">border_left</md-icon>
223
+ <md-icon data-value="center">border_vertical</md-icon>
224
+ <md-icon data-value="right">border_right</md-icon>
225
+ <md-icon data-value="top">border_top</md-icon>
226
+ <md-icon data-value="middle">border_horizontal</md-icon>
227
+ <md-icon data-value="bottom">border_bottom</md-icon>
228
+ <md-icon data-value="clear">border_clear</md-icon>
229
229
  </div>
230
230
 
231
231
  <div class="property-grid">
@@ -2,7 +2,7 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@material/mwc-icon'
5
+ import '@material/web/icon/icon.js'
6
6
 
7
7
  import { css, html, PropertyValues } from 'lit'
8
8
  import { customElement, property, query } from 'lit/decorators.js'
@@ -217,7 +217,7 @@ export class OxInputUnitNumber extends OxFormField {
217
217
  min-width: 24px;
218
218
  }
219
219
 
220
- mwc-icon {
220
+ md-icon {
221
221
  font-size: 18px;
222
222
  color: var(--primary-color, #3c3938);
223
223
  margin-left: auto;
@@ -272,7 +272,7 @@ export class OxInputUnitNumber extends OxFormField {
272
272
  <div option value=${this.stdUnit}>${this.stdUnit}</div>
273
273
  ${units.map(unit => html`<div option value=${unit}>${unit}</div>`)}
274
274
  </ox-popup-list>
275
- <mwc-icon>expand_more</mwc-icon>
275
+ <md-icon>expand_more</md-icon>
276
276
  </div>
277
277
  `
278
278
  }
@@ -63,9 +63,7 @@ export class OxInputValueMap extends OxFormField {
63
63
  button + button {
64
64
  margin-left: -5px;
65
65
  }
66
- button mwc-icon {
67
- font-size: var(--fontsize-default);
68
- }
66
+
69
67
  button:focus,
70
68
  button:hover,
71
69
  button:active {
@@ -144,17 +142,17 @@ export class OxInputValueMap extends OxFormField {
144
142
  />
145
143
  `
146
144
  : this.valuetype == 'color'
147
- ? html` <ox-input-color data-value value=${ifDefined(value)} ?disabled=${this.disabled}> </ox-input-color> `
148
- : html`
149
- <input
150
- type="text"
151
- data-value
152
- placeholder="value"
153
- value=${ifDefined(value)}
154
- data-value-type=${this.valuetype}
155
- ?disabled=${this.disabled}
156
- />
157
- `
145
+ ? html` <ox-input-color data-value value=${ifDefined(value)} ?disabled=${this.disabled}> </ox-input-color> `
146
+ : html`
147
+ <input
148
+ type="text"
149
+ data-value
150
+ placeholder="value"
151
+ value=${ifDefined(value)}
152
+ data-value-type=${this.valuetype}
153
+ ?disabled=${this.disabled}
154
+ />
155
+ `
158
156
  }
159
157
 
160
158
  render() {
@@ -170,7 +168,7 @@ export class OxInputValueMap extends OxFormField {
170
168
  tabindex="-1"
171
169
  ?disabled=${this.disabled}
172
170
  >
173
- <mwc-icon>remove</mwc-icon>
171
+ <md-icon>remove</md-icon>
174
172
  </button>
175
173
  </div>
176
174
  `
@@ -185,7 +183,7 @@ export class OxInputValueMap extends OxFormField {
185
183
 
186
184
  ${this.valueInputTemplate()}
187
185
  <button class="record-action" @click=${(e: MouseEvent) => this._add()} tabindex="-1">
188
- <mwc-icon>add</mwc-icon>
186
+ <md-icon>add</md-icon>
189
187
  </button>
190
188
  </div>
191
189
  `
@@ -196,7 +194,7 @@ export class OxInputValueMap extends OxFormField {
196
194
 
197
195
  ${this.valueInputTemplate((this.value && this.value.default) || this._defaultValue())}
198
196
  <button class="record-action" @click=${() => this._sort()} tabindex="-1">
199
- <mwc-icon>chevron_right</mwc-icon>
197
+ <md-icon>chevron_right</md-icon>
200
198
  </button>
201
199
  </div>
202
200
  `
@@ -63,9 +63,7 @@ export class OxInputValueRange extends OxFormField {
63
63
  button + button {
64
64
  margin-left: -5px;
65
65
  }
66
- button mwc-icon {
67
- font-size: var(--fontsize-default);
68
- }
66
+
69
67
  button:focus,
70
68
  button:hover,
71
69
  button:active {
@@ -153,17 +151,17 @@ export class OxInputValueRange extends OxFormField {
153
151
  />
154
152
  `
155
153
  : this.valuetype == 'color'
156
- ? html` <ox-input-color data-value value=${ifDefined(value)} ?disabled=${this.disabled}> </ox-input-color> `
157
- : html`
158
- <input
159
- type="text"
160
- data-value
161
- placeholder="value"
162
- value=${ifDefined(value)}
163
- data-value-type=${this.valuetype}
164
- ?disabled=${this.disabled}
165
- />
166
- `
154
+ ? html` <ox-input-color data-value value=${ifDefined(value)} ?disabled=${this.disabled}> </ox-input-color> `
155
+ : html`
156
+ <input
157
+ type="text"
158
+ data-value
159
+ placeholder="value"
160
+ value=${ifDefined(value)}
161
+ data-value-type=${this.valuetype}
162
+ ?disabled=${this.disabled}
163
+ />
164
+ `
167
165
  }
168
166
 
169
167
  render() {
@@ -181,7 +179,7 @@ export class OxInputValueRange extends OxFormField {
181
179
  tabindex="-1"
182
180
  ?disabled=${this.disabled}
183
181
  >
184
- <mwc-icon>remove</mwc-icon>
182
+ <md-icon>remove</md-icon>
185
183
  </button>
186
184
  </div>
187
185
  `
@@ -197,7 +195,7 @@ export class OxInputValueRange extends OxFormField {
197
195
 
198
196
  ${this.valueInputTemplate()}
199
197
  <button class="record-action" @click=${(e: Event) => this._add()} tabindex="-1">
200
- <mwc-icon>add</mwc-icon>
198
+ <md-icon>add</md-icon>
201
199
  </button>
202
200
  </div>
203
201
  `
@@ -209,7 +207,7 @@ export class OxInputValueRange extends OxFormField {
209
207
 
210
208
  ${this.valueInputTemplate((this.value && this.value.default) || this._defaultValue())}
211
209
  <button class="record-action" @click=${(e: Event) => this._sort()} ?disabled=${this.disabled}>
212
- <mwc-icon>chevron_right</mwc-icon>
210
+ <md-icon>chevron_right</md-icon>
213
211
  </button>
214
212
  </div>
215
213
  `
@@ -94,9 +94,6 @@ export class OxInputWorkShift extends OxFormField {
94
94
  color: var(--button-color);
95
95
  cursor: pointer;
96
96
  }
97
- button mwc-icon {
98
- font-size: var(--fontsize-default);
99
- }
100
97
  button:focus,
101
98
  button:hover,
102
99
  button:active {
@@ -156,7 +153,7 @@ export class OxInputWorkShift extends OxFormField {
156
153
  tabindex="-1"
157
154
  ?disabled=${this.disabled}
158
155
  >
159
- <mwc-icon>remove</mwc-icon>
156
+ <md-icon>remove</md-icon>
160
157
  </button>
161
158
  </div>
162
159
  `
@@ -182,7 +179,7 @@ export class OxInputWorkShift extends OxFormField {
182
179
  <input type="time" data-to-time step="1800" />
183
180
 
184
181
  <button class="record-action" @click=${(e: Event) => this._add()} tabindex="-1">
185
- <mwc-icon>add</mwc-icon>
182
+ <md-icon>add</md-icon>
186
183
  </button>
187
184
  </div>
188
185
  `}
package/src/ox-select.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import '@material/mwc-icon'
5
+ import '@material/web/icon/icon.js'
6
6
  import '@operato/popup/ox-popup-list.js'
7
7
 
8
8
  import { css, html, PropertyValues } from 'lit'
@@ -58,7 +58,7 @@ export class Select extends OxFormField {
58
58
  white-space: nowrap;
59
59
  }
60
60
 
61
- mwc-icon {
61
+ md-icon {
62
62
  display: block;
63
63
  width: 24px;
64
64
  text-align: right;
@@ -67,7 +67,7 @@ export class Select extends OxFormField {
67
67
  opacity: 0.7;
68
68
  }
69
69
 
70
- div:hover mwc-icon {
70
+ div:hover md-icon {
71
71
  color: var(--primary-color);
72
72
  }
73
73
 
@@ -92,7 +92,7 @@ export class Select extends OxFormField {
92
92
  return html`
93
93
  <div @click=${this.expand}>
94
94
  <span @mouseover=${onmouseover} @mouseout=${onmouseout}>${label}</span>
95
- <mwc-icon>expand_more</mwc-icon>
95
+ <md-icon>expand_more</md-icon>
96
96
  </div>
97
97
 
98
98
  <slot></slot>
@@ -25,7 +25,20 @@ interface ArgTypes {
25
25
 
26
26
  const Template: Story<ArgTypes> = ({ value = {}, disabled }: ArgTypes) => html`
27
27
  <link href="/themes/app-theme.css" rel="stylesheet" />
28
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
28
+
29
+ <link
30
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
31
+ rel="stylesheet"
32
+ />
33
+ <link
34
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
35
+ rel="stylesheet"
36
+ />
37
+ <link
38
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
39
+ rel="stylesheet"
40
+ />
41
+
29
42
  <style>
30
43
  body {
31
44
  }
@@ -27,7 +27,20 @@ interface ArgTypes {
27
27
 
28
28
  const Template: Story<ArgTypes> = ({ name = '3dish', value = [], disabled }: ArgTypes) => html`
29
29
  <link href="/themes/app-theme.css" rel="stylesheet" />
30
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
30
+
31
+ <link
32
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
33
+ rel="stylesheet"
34
+ />
35
+ <link
36
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
37
+ rel="stylesheet"
38
+ />
39
+ <link
40
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
41
+ rel="stylesheet"
42
+ />
43
+
31
44
  <style>
32
45
  body {
33
46
  }
@@ -27,7 +27,19 @@ interface ArgTypes {
27
27
 
28
28
  const Template: Story<ArgTypes> = ({ name = '3dish', value = 0, disabled }: ArgTypes) => html`
29
29
  <link href="/themes/app-theme.css" rel="stylesheet" />
30
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
30
+
31
+ <link
32
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
33
+ rel="stylesheet"
34
+ />
35
+ <link
36
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
37
+ rel="stylesheet"
38
+ />
39
+ <link
40
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
41
+ rel="stylesheet"
42
+ />
31
43
  <style>
32
44
  body {
33
45
  }
@@ -41,7 +41,19 @@ const Template: Story<ArgTypes> = ({
41
41
  disabled
42
42
  }: ArgTypes) => html`
43
43
  <link href="/themes/app-theme.css" rel="stylesheet" />
44
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
44
+
45
+ <link
46
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
47
+ rel="stylesheet"
48
+ />
49
+ <link
50
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
51
+ rel="stylesheet"
52
+ />
53
+ <link
54
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
55
+ rel="stylesheet"
56
+ />
45
57
  <style>
46
58
  #root {
47
59
  height: 500px;
@@ -36,7 +36,19 @@ const Template: Story<ArgTypes> = ({
36
36
  disabled
37
37
  }: ArgTypes) => html`
38
38
  <link href="/themes/app-theme.css" rel="stylesheet" />
39
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
39
+
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
42
+ rel="stylesheet"
43
+ />
44
+ <link
45
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
46
+ rel="stylesheet"
47
+ />
48
+ <link
49
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
50
+ rel="stylesheet"
51
+ />
40
52
  <style>
41
53
  body {
42
54
  }
@@ -26,7 +26,19 @@ interface ArgTypes {
26
26
 
27
27
  const Template: Story<ArgTypes> = ({ name = 'crontab', value = '* * * * * *', disabled }: ArgTypes) => html`
28
28
  <link href="/themes/app-theme.css" rel="stylesheet" />
29
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
29
+
30
+ <link
31
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
32
+ rel="stylesheet"
33
+ />
34
+ <link
35
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
36
+ rel="stylesheet"
37
+ />
38
+ <link
39
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
40
+ rel="stylesheet"
41
+ />
30
42
  <style>
31
43
  body {
32
44
  }
@@ -26,7 +26,19 @@ interface ArgTypes {
26
26
 
27
27
  const Template: Story<ArgTypes> = ({ name = 'code', value = '', disabled }: ArgTypes) => html`
28
28
  <link href="/themes/app-theme.css" rel="stylesheet" />
29
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
29
+
30
+ <link
31
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
32
+ rel="stylesheet"
33
+ />
34
+ <link
35
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
36
+ rel="stylesheet"
37
+ />
38
+ <link
39
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
40
+ rel="stylesheet"
41
+ />
30
42
  <style>
31
43
  body {
32
44
  }
@@ -27,7 +27,19 @@ interface ArgTypes {
27
27
 
28
28
  const Template: Story<ArgTypes> = ({ name = 'duration', value = 3601, disabled }: ArgTypes) => html`
29
29
  <link href="/themes/app-theme.css" rel="stylesheet" />
30
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
30
+
31
+ <link
32
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
33
+ rel="stylesheet"
34
+ />
35
+ <link
36
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
37
+ rel="stylesheet"
38
+ />
39
+ <link
40
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
41
+ rel="stylesheet"
42
+ />
31
43
  <style>
32
44
  body {
33
45
  }
@@ -48,7 +48,19 @@ const Template: Story<ArgTypes> = ({
48
48
  disabled
49
49
  }: ArgTypes) => html`
50
50
  <link href="/themes/app-theme.css" rel="stylesheet" />
51
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
51
+
52
+ <link
53
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
54
+ rel="stylesheet"
55
+ />
56
+ <link
57
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
58
+ rel="stylesheet"
59
+ />
60
+ <link
61
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
62
+ rel="stylesheet"
63
+ />
52
64
  <style>
53
65
  body {
54
66
  }
@@ -28,7 +28,19 @@ interface ArgTypes {
28
28
 
29
29
  const Template: Story<ArgTypes> = ({ placeholder = 'hashtag', name = 'hello', value = [], disabled }: 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
33
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
34
+ rel="stylesheet"
35
+ />
36
+ <link
37
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
38
+ rel="stylesheet"
39
+ />
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
42
+ rel="stylesheet"
43
+ />
32
44
  <style>
33
45
  body {
34
46
  }
@@ -26,7 +26,19 @@ interface ArgTypes {
26
26
 
27
27
  const Template: Story<ArgTypes> = ({ name = 'values', value, disabled }: ArgTypes) => html`
28
28
  <link href="/themes/app-theme.css" rel="stylesheet" />
29
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
29
+
30
+ <link
31
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
32
+ rel="stylesheet"
33
+ />
34
+ <link
35
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
36
+ rel="stylesheet"
37
+ />
38
+ <link
39
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
40
+ rel="stylesheet"
41
+ />
30
42
  <style>
31
43
  body {
32
44
  }
@@ -28,7 +28,19 @@ interface ArgTypes {
28
28
 
29
29
  const Template: Story<ArgTypes> = ({ name = 'key-values', value = {}, options = [], disabled }: 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
33
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
34
+ rel="stylesheet"
35
+ />
36
+ <link
37
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
38
+ rel="stylesheet"
39
+ />
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
42
+ rel="stylesheet"
43
+ />
32
44
  <style>
33
45
  body {
34
46
  }
@@ -36,7 +36,19 @@ const Template: Story<ArgTypes> = ({
36
36
  disabled
37
37
  }: ArgTypes) => html`
38
38
  <link href="/themes/app-theme.css" rel="stylesheet" />
39
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
39
+
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
42
+ rel="stylesheet"
43
+ />
44
+ <link
45
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
46
+ rel="stylesheet"
47
+ />
48
+ <link
49
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
50
+ rel="stylesheet"
51
+ />
40
52
  <style>
41
53
  body {
42
54
  }
@@ -22,7 +22,18 @@ interface ArgTypes {
22
22
  }
23
23
 
24
24
  const Template: Story<ArgTypes> = ({ disabled }: ArgTypes) => html`
25
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
25
+ <link
26
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
27
+ rel="stylesheet"
28
+ />
29
+ <link
30
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
31
+ rel="stylesheet"
32
+ />
33
+ <link
34
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
35
+ rel="stylesheet"
36
+ />
26
37
 
27
38
  <style>
28
39
  body {
@@ -99,15 +110,15 @@ const Template: Story<ArgTypes> = ({ disabled }: ArgTypes) => html`
99
110
  --icon-default-color: var(--theme-white-color);
100
111
 
101
112
  /* material design component themes */
102
- --mdc-theme-on-primary: var(--theme-white-color);
103
- --mdc-theme-primary: var(--secondary-text-color);
104
- --mdc-theme-on-secondary: var(--theme-white-color);
105
- --mdc-theme-secondary: var(--primary-color);
106
- --mdc-button-outline-color: var(--primary-color);
107
- --mdc-danger-button-primary-color: var(--status-danger-color);
108
- --mdc-danger-button-outline-color: var(--status-danger-color);
109
- --mdc-button-outline-width: 1px;
110
- --mdc-button-horizontal-padding: 16px;
113
+ --md-theme-on-primary: var(--theme-white-color);
114
+ --md-theme-primary: var(--secondary-text-color);
115
+ --md-theme-on-secondary: var(--theme-white-color);
116
+ --md-theme-secondary: var(--primary-color);
117
+ --md-button-outline-color: var(--primary-color);
118
+ --md-danger-button-primary-color: var(--status-danger-color);
119
+ --md-danger-button-outline-color: var(--status-danger-color);
120
+ --md-button-outline-width: 1px;
121
+ --md-button-horizontal-padding: 16px;
111
122
 
112
123
  /* button style */
113
124
  --button-background-color: #fafbfc;
@@ -26,7 +26,19 @@ interface ArgTypes {
26
26
 
27
27
  const Template: Story<ArgTypes> = ({ name = 'options', value = {}, disabled }: ArgTypes) => html`
28
28
  <link href="/themes/app-theme.css" rel="stylesheet" />
29
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
29
+
30
+ <link
31
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
32
+ rel="stylesheet"
33
+ />
34
+ <link
35
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
36
+ rel="stylesheet"
37
+ />
38
+ <link
39
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
40
+ rel="stylesheet"
41
+ />
30
42
  <style>
31
43
  body {
32
44
  }