mithril-materialized 2.0.0-beta.7 → 2.0.0-beta.8

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.
@@ -1063,7 +1063,7 @@ button.btn-floating {
1063
1063
  }
1064
1064
 
1065
1065
  .dropdown-content {
1066
- background-color: #fff;
1066
+ background-color: var(--mm-surface-color, #fff);
1067
1067
  margin: 0;
1068
1068
  display: none;
1069
1069
  min-width: 100px;
@@ -1080,7 +1080,7 @@ button.btn-floating {
1080
1080
  }
1081
1081
  .dropdown-content li {
1082
1082
  clear: both;
1083
- color: rgba(0, 0, 0, 0.87);
1083
+ color: var(--mm-text-primary, rgba(0, 0, 0, 0.87));
1084
1084
  cursor: pointer;
1085
1085
  min-height: 50px;
1086
1086
  line-height: 1.5rem;
@@ -1088,7 +1088,7 @@ button.btn-floating {
1088
1088
  text-align: left;
1089
1089
  }
1090
1090
  .dropdown-content li:hover, .dropdown-content li.active {
1091
- background-color: #eee;
1091
+ background-color: var(--mm-dropdown-hover, #eee);
1092
1092
  }
1093
1093
  .dropdown-content li:focus {
1094
1094
  outline: none;
@@ -1099,7 +1099,7 @@ button.btn-floating {
1099
1099
  }
1100
1100
  .dropdown-content li > a, .dropdown-content li > span {
1101
1101
  font-size: 16px;
1102
- color: #26a69a;
1102
+ color: var(--mm-text-primary, #26a69a);
1103
1103
  display: block;
1104
1104
  line-height: 22px;
1105
1105
  padding: 14px 16px;
@@ -1118,7 +1118,7 @@ button.btn-floating {
1118
1118
  }
1119
1119
 
1120
1120
  body.keyboard-focused .dropdown-content li:focus {
1121
- background-color: rgb(217.6, 217.6, 217.6);
1121
+ background-color: var(--mm-dropdown-focus, rgb(217.6, 217.6, 217.6));
1122
1122
  }
1123
1123
 
1124
1124
  .input-field.col .dropdown-content [type=checkbox] + label {
package/dist/core.css CHANGED
@@ -3088,7 +3088,7 @@ select {
3088
3088
  bottom: 0;
3089
3089
  margin: auto 0;
3090
3090
  z-index: 0;
3091
- fill: rgba(0, 0, 0, 0.87);
3091
+ fill: var(--mm-text-primary, rgba(0, 0, 0, 0.87));
3092
3092
  }
3093
3093
  .select-wrapper + label {
3094
3094
  position: absolute;
@@ -3128,19 +3128,19 @@ select:disabled {
3128
3128
  .select-dropdown li.disabled,
3129
3129
  .select-dropdown li.disabled > span,
3130
3130
  .select-dropdown li.optgroup {
3131
- color: rgba(0, 0, 0, 0.3);
3131
+ color: var(--mm-text-disabled, rgba(0, 0, 0, 0.3));
3132
3132
  background-color: transparent;
3133
3133
  }
3134
3134
 
3135
3135
  body.keyboard-focused .select-dropdown.dropdown-content li:focus {
3136
- background-color: rgba(0, 0, 0, 0.08);
3136
+ background-color: var(--mm-dropdown-focus, rgba(0, 0, 0, 0.08));
3137
3137
  }
3138
3138
 
3139
3139
  .select-dropdown.dropdown-content li:hover {
3140
- background-color: rgba(0, 0, 0, 0.08);
3140
+ background-color: var(--mm-dropdown-hover, rgba(0, 0, 0, 0.08));
3141
3141
  }
3142
3142
  .select-dropdown.dropdown-content li.selected {
3143
- background-color: rgba(0, 0, 0, 0.03);
3143
+ background-color: var(--mm-dropdown-selected, rgba(0, 0, 0, 0.03));
3144
3144
  }
3145
3145
 
3146
3146
  .prefix ~ .select-wrapper {
@@ -3161,13 +3161,13 @@ body.keyboard-focused .select-dropdown.dropdown-content li:focus {
3161
3161
  }
3162
3162
 
3163
3163
  .select-dropdown li.optgroup {
3164
- border-top: 1px solid #eee;
3164
+ border-top: 1px solid var(--mm-border-color, #eee);
3165
3165
  }
3166
3166
  .select-dropdown li.optgroup.selected > span {
3167
- color: rgba(0, 0, 0, 0.7);
3167
+ color: var(--mm-text-secondary, rgba(0, 0, 0, 0.7));
3168
3168
  }
3169
3169
  .select-dropdown li.optgroup > span {
3170
- color: rgba(0, 0, 0, 0.4);
3170
+ color: var(--mm-text-hint, rgba(0, 0, 0, 0.4));
3171
3171
  }
3172
3172
  .select-dropdown li.optgroup ~ li.optgroup-option {
3173
3173
  padding-left: 1rem;
package/dist/forms.css CHANGED
@@ -1338,7 +1338,7 @@ select {
1338
1338
  bottom: 0;
1339
1339
  margin: auto 0;
1340
1340
  z-index: 0;
1341
- fill: rgba(0, 0, 0, 0.87);
1341
+ fill: var(--mm-text-primary, rgba(0, 0, 0, 0.87));
1342
1342
  }
1343
1343
  .select-wrapper + label {
1344
1344
  position: absolute;
@@ -1378,19 +1378,19 @@ select:disabled {
1378
1378
  .select-dropdown li.disabled,
1379
1379
  .select-dropdown li.disabled > span,
1380
1380
  .select-dropdown li.optgroup {
1381
- color: rgba(0, 0, 0, 0.3);
1381
+ color: var(--mm-text-disabled, rgba(0, 0, 0, 0.3));
1382
1382
  background-color: transparent;
1383
1383
  }
1384
1384
 
1385
1385
  body.keyboard-focused .select-dropdown.dropdown-content li:focus {
1386
- background-color: rgba(0, 0, 0, 0.08);
1386
+ background-color: var(--mm-dropdown-focus, rgba(0, 0, 0, 0.08));
1387
1387
  }
1388
1388
 
1389
1389
  .select-dropdown.dropdown-content li:hover {
1390
- background-color: rgba(0, 0, 0, 0.08);
1390
+ background-color: var(--mm-dropdown-hover, rgba(0, 0, 0, 0.08));
1391
1391
  }
1392
1392
  .select-dropdown.dropdown-content li.selected {
1393
- background-color: rgba(0, 0, 0, 0.03);
1393
+ background-color: var(--mm-dropdown-selected, rgba(0, 0, 0, 0.03));
1394
1394
  }
1395
1395
 
1396
1396
  .prefix ~ .select-wrapper {
@@ -1411,13 +1411,13 @@ body.keyboard-focused .select-dropdown.dropdown-content li:focus {
1411
1411
  }
1412
1412
 
1413
1413
  .select-dropdown li.optgroup {
1414
- border-top: 1px solid #eee;
1414
+ border-top: 1px solid var(--mm-border-color, #eee);
1415
1415
  }
1416
1416
  .select-dropdown li.optgroup.selected > span {
1417
- color: rgba(0, 0, 0, 0.7);
1417
+ color: var(--mm-text-secondary, rgba(0, 0, 0, 0.7));
1418
1418
  }
1419
1419
  .select-dropdown li.optgroup > span {
1420
- color: rgba(0, 0, 0, 0.4);
1420
+ color: var(--mm-text-hint, rgba(0, 0, 0, 0.4));
1421
1421
  }
1422
1422
  .select-dropdown li.optgroup ~ li.optgroup-option {
1423
1423
  padding-left: 1rem;
package/dist/index.css CHANGED
@@ -28,6 +28,11 @@
28
28
  --mm-modal-background: #ffffff;
29
29
  --mm-overlay-background: rgba(0, 0, 0, 0.5);
30
30
  --mm-shadow-color: rgba(0, 0, 0, 0.16);
31
+ --mm-chip-bg: #e4e4e4;
32
+ --mm-chip-text: var(--mm-text-secondary);
33
+ --mm-dropdown-hover: #eee;
34
+ --mm-dropdown-focus: #ddd;
35
+ --mm-dropdown-selected: #e3f2fd;
31
36
  --mm-shadow-umbra: rgba(0, 0, 0, 0.2);
32
37
  --mm-shadow-penumbra: rgba(0, 0, 0, 0.14);
33
38
  --mm-shadow-ambient: rgba(0, 0, 0, 0.12);
@@ -81,6 +86,11 @@ body {
81
86
  --mm-shadow-umbra: rgba(0, 0, 0, 0.5);
82
87
  --mm-shadow-penumbra: rgba(0, 0, 0, 0.36);
83
88
  --mm-shadow-ambient: rgba(0, 0, 0, 0.3);
89
+ --mm-chip-bg: #424242;
90
+ --mm-chip-text: var(--mm-text-secondary);
91
+ --mm-dropdown-hover: #444;
92
+ --mm-dropdown-focus: #555;
93
+ --mm-dropdown-selected: #1e3a8a;
84
94
  --mm-switch-checked-track: rgba(128, 203, 196, 0.3);
85
95
  --mm-switch-checked-thumb: #80cbc4;
86
96
  --mm-switch-unchecked-track: rgba(255, 255, 255, 0.6);
@@ -5214,7 +5224,7 @@ button.btn-floating {
5214
5224
  }
5215
5225
 
5216
5226
  .dropdown-content {
5217
- background-color: #fff;
5227
+ background-color: var(--mm-surface-color, #fff);
5218
5228
  margin: 0;
5219
5229
  display: none;
5220
5230
  min-width: 100px;
@@ -5231,7 +5241,7 @@ button.btn-floating {
5231
5241
  }
5232
5242
  .dropdown-content li {
5233
5243
  clear: both;
5234
- color: rgba(0, 0, 0, 0.87);
5244
+ color: var(--mm-text-primary, rgba(0, 0, 0, 0.87));
5235
5245
  cursor: pointer;
5236
5246
  min-height: 50px;
5237
5247
  line-height: 1.5rem;
@@ -5239,7 +5249,7 @@ button.btn-floating {
5239
5249
  text-align: left;
5240
5250
  }
5241
5251
  .dropdown-content li:hover, .dropdown-content li.active {
5242
- background-color: #eee;
5252
+ background-color: var(--mm-dropdown-hover, #eee);
5243
5253
  }
5244
5254
  .dropdown-content li:focus {
5245
5255
  outline: none;
@@ -5250,7 +5260,7 @@ button.btn-floating {
5250
5260
  }
5251
5261
  .dropdown-content li > a, .dropdown-content li > span {
5252
5262
  font-size: 16px;
5253
- color: #26a69a;
5263
+ color: var(--mm-text-primary, #26a69a);
5254
5264
  display: block;
5255
5265
  line-height: 22px;
5256
5266
  padding: 14px 16px;
@@ -5269,7 +5279,7 @@ button.btn-floating {
5269
5279
  }
5270
5280
 
5271
5281
  body.keyboard-focused .dropdown-content li:focus {
5272
- background-color: rgb(217.6, 217.6, 217.6);
5282
+ background-color: var(--mm-dropdown-focus, rgb(217.6, 217.6, 217.6));
5273
5283
  }
5274
5284
 
5275
5285
  .input-field.col .dropdown-content [type=checkbox] + label {
@@ -5568,18 +5578,18 @@ body.keyboard-focused .dropdown-content li:focus {
5568
5578
  height: 32px;
5569
5579
  font-size: 13px;
5570
5580
  font-weight: 500;
5571
- color: rgba(0, 0, 0, 0.6);
5581
+ color: var(--mm-text-secondary, rgba(0, 0, 0, 0.6));
5572
5582
  line-height: 32px;
5573
5583
  padding: 0 12px;
5574
5584
  border-radius: 16px;
5575
- background-color: #e4e4e4;
5585
+ background-color: var(--mm-chip-bg, #e4e4e4);
5576
5586
  margin-bottom: 5px;
5577
5587
  margin-right: 5px;
5578
5588
  }
5579
5589
  .chip:focus {
5580
5590
  outline: none;
5581
- background-color: #26a69a;
5582
- color: #fff;
5591
+ background-color: var(--mm-primary-color, #26a69a);
5592
+ color: var(--mm-button-text, #fff);
5583
5593
  }
5584
5594
  .chip > img {
5585
5595
  float: left;
@@ -5598,7 +5608,7 @@ body.keyboard-focused .dropdown-content li:focus {
5598
5608
 
5599
5609
  .chips {
5600
5610
  border: none;
5601
- border-bottom: 1px solid #9e9e9e;
5611
+ border-bottom: 1px solid var(--mm-input-border, #9e9e9e);
5602
5612
  box-shadow: none;
5603
5613
  margin: 0 0 8px 0;
5604
5614
  min-height: 45px;
@@ -5606,8 +5616,8 @@ body.keyboard-focused .dropdown-content li:focus {
5606
5616
  transition: all 0.3s;
5607
5617
  }
5608
5618
  .chips.focus {
5609
- border-bottom: 1px solid #26a69a;
5610
- box-shadow: 0 1px 0 0 #26a69a;
5619
+ border-bottom: 1px solid var(--mm-primary-color, #26a69a);
5620
+ box-shadow: 0 1px 0 0 var(--mm-primary-color, #26a69a);
5611
5621
  }
5612
5622
  .chips:hover {
5613
5623
  cursor: text;
@@ -5615,7 +5625,7 @@ body.keyboard-focused .dropdown-content li:focus {
5615
5625
  .chips .input {
5616
5626
  background: none;
5617
5627
  border: 0;
5618
- color: rgba(0, 0, 0, 0.6);
5628
+ color: var(--mm-text-primary, rgba(0, 0, 0, 0.6));
5619
5629
  display: inline-block;
5620
5630
  font-size: 16px;
5621
5631
  height: 3rem;
@@ -6729,7 +6739,7 @@ select {
6729
6739
  bottom: 0;
6730
6740
  margin: auto 0;
6731
6741
  z-index: 0;
6732
- fill: rgba(0, 0, 0, 0.87);
6742
+ fill: var(--mm-text-primary, rgba(0, 0, 0, 0.87));
6733
6743
  }
6734
6744
  .select-wrapper + label {
6735
6745
  position: absolute;
@@ -6771,19 +6781,19 @@ select:disabled {
6771
6781
  .select-dropdown li.disabled,
6772
6782
  .select-dropdown li.disabled > span,
6773
6783
  .select-dropdown li.optgroup {
6774
- color: rgba(0, 0, 0, 0.3);
6784
+ color: var(--mm-text-disabled, rgba(0, 0, 0, 0.3));
6775
6785
  background-color: transparent;
6776
6786
  }
6777
6787
 
6778
6788
  body.keyboard-focused .select-dropdown.dropdown-content li:focus {
6779
- background-color: rgba(0, 0, 0, 0.08);
6789
+ background-color: var(--mm-dropdown-focus, rgba(0, 0, 0, 0.08));
6780
6790
  }
6781
6791
 
6782
6792
  .select-dropdown.dropdown-content li:hover {
6783
- background-color: rgba(0, 0, 0, 0.08);
6793
+ background-color: var(--mm-dropdown-hover, rgba(0, 0, 0, 0.08));
6784
6794
  }
6785
6795
  .select-dropdown.dropdown-content li.selected {
6786
- background-color: rgba(0, 0, 0, 0.03);
6796
+ background-color: var(--mm-dropdown-selected, rgba(0, 0, 0, 0.03));
6787
6797
  }
6788
6798
 
6789
6799
  .prefix ~ .select-wrapper {
@@ -6804,13 +6814,13 @@ body.keyboard-focused .select-dropdown.dropdown-content li:focus {
6804
6814
  }
6805
6815
 
6806
6816
  .select-dropdown li.optgroup {
6807
- border-top: 1px solid #eee;
6817
+ border-top: 1px solid var(--mm-border-color, #eee);
6808
6818
  }
6809
6819
  .select-dropdown li.optgroup.selected > span {
6810
- color: rgba(0, 0, 0, 0.7);
6820
+ color: var(--mm-text-secondary, rgba(0, 0, 0, 0.7));
6811
6821
  }
6812
6822
  .select-dropdown li.optgroup > span {
6813
- color: rgba(0, 0, 0, 0.4);
6823
+ color: var(--mm-text-hint, rgba(0, 0, 0, 0.4));
6814
6824
  }
6815
6825
  .select-dropdown li.optgroup ~ li.optgroup-option {
6816
6826
  padding-left: 1rem;
package/dist/index.esm.js CHANGED
@@ -1090,8 +1090,8 @@ const Chips = () => {
1090
1090
  maxHeight: '200px',
1091
1091
  overflow: 'auto',
1092
1092
  zIndex: 1000,
1093
- backgroundColor: '#fff',
1094
- boxShadow: '0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)',
1093
+ backgroundColor: 'var(--mm-surface-color, #fff)',
1094
+ boxShadow: '0 2px 2px 0 var(--mm-shadow-penumbra, rgba(0,0,0,0.14)), 0 3px 1px -2px var(--mm-shadow-umbra, rgba(0,0,0,0.12)), 0 1px 5px 0 var(--mm-shadow-ambient, rgba(0,0,0,0.2))',
1095
1095
  },
1096
1096
  }, state.autocompleteItems.map((item, index) => m('li.autocomplete-item', {
1097
1097
  key: item.tag,
@@ -1099,7 +1099,8 @@ const Chips = () => {
1099
1099
  style: {
1100
1100
  padding: '12px 16px',
1101
1101
  cursor: 'pointer',
1102
- backgroundColor: state.selectedAutocompleteIndex === index ? '#eee' : 'transparent',
1102
+ backgroundColor: state.selectedAutocompleteIndex === index ? 'var(--mm-border-color, #eee)' : 'transparent',
1103
+ color: 'var(--mm-text-primary, inherit)',
1103
1104
  },
1104
1105
  onmousedown: (e) => {
1105
1106
  e.preventDefault();
@@ -2320,7 +2321,7 @@ const TextArea = () => {
2320
2321
  }, oncreate: ({ dom }) => {
2321
2322
  const textarea = (state.textarea = dom);
2322
2323
  // Set initial value and height if provided
2323
- if (initialValue !== undefined) {
2324
+ if (initialValue) {
2324
2325
  textarea.value = String(initialValue);
2325
2326
  updateHeight(textarea);
2326
2327
  // } else {
@@ -2363,7 +2364,7 @@ const TextArea = () => {
2363
2364
  if (onchange && state.textarea) {
2364
2365
  onchange(state.textarea.value);
2365
2366
  }
2366
- }, value: initialValue, onkeyup: onkeyup
2367
+ }, onkeyup: onkeyup
2367
2368
  ? (ev) => {
2368
2369
  onkeyup(ev, ev.target.value);
2369
2370
  }
@@ -2380,7 +2381,7 @@ const TextArea = () => {
2380
2381
  label,
2381
2382
  id,
2382
2383
  isMandatory,
2383
- isActive: ((_a = state.textarea) === null || _a === void 0 ? void 0 : _a.value) || initialValue || placeholder || state.active,
2384
+ isActive: ((_a = state.textarea) === null || _a === void 0 ? void 0 : _a.value) || placeholder || state.active,
2384
2385
  }),
2385
2386
  m(HelperText, {
2386
2387
  helperText,
@@ -2448,7 +2449,7 @@ const InputField = (type, defaultClass = '') => () => {
2448
2449
  input.focus();
2449
2450
  }
2450
2451
  // Set initial value if provided
2451
- if (initialValue !== undefined) {
2452
+ if (initialValue) {
2452
2453
  input.value = String(initialValue);
2453
2454
  }
2454
2455
  // Update character count state for counter component
@@ -2552,14 +2553,13 @@ const InputField = (type, defaultClass = '') => () => {
2552
2553
  if (onchange && state.inputElement) {
2553
2554
  onchange(getValue(state.inputElement));
2554
2555
  }
2555
- }, value: initialValue })),
2556
+ } })),
2556
2557
  m(Label, {
2557
2558
  label,
2558
2559
  id,
2559
2560
  isMandatory,
2560
2561
  isActive: state.active ||
2561
2562
  ((_a = state.inputElement) === null || _a === void 0 ? void 0 : _a.value) ||
2562
- initialValue ||
2563
2563
  placeholder ||
2564
2564
  type === 'number' ||
2565
2565
  type === 'color' ||
@@ -2638,7 +2638,7 @@ const FileInput = () => {
2638
2638
  i.value = initialValue;
2639
2639
  },
2640
2640
  })),
2641
- (canClear || initialValue) &&
2641
+ (canClear || (i === null || i === void 0 ? void 0 : i.value)) &&
2642
2642
  m('a.waves-effect.waves-teal.btn-flat', {
2643
2643
  style: {
2644
2644
  float: 'right',
@@ -4714,7 +4714,7 @@ const SearchSelect = () => {
4714
4714
  placeholder &&
4715
4715
  m('span.placeholder', {
4716
4716
  style: {
4717
- color: '#9e9e9e',
4717
+ color: 'var(--mm-text-hint, #9e9e9e)',
4718
4718
  flexGrow: 1,
4719
4719
  padding: '8px 0',
4720
4720
  },
@@ -4776,7 +4776,9 @@ const SearchSelect = () => {
4776
4776
  fontSize: '0.875rem',
4777
4777
  border: 'none',
4778
4778
  padding: '8px 0',
4779
- borderBottom: '1px solid #9e9e9e',
4779
+ borderBottom: '1px solid var(--mm-input-border, #9e9e9e)',
4780
+ backgroundColor: 'transparent',
4781
+ color: 'var(--mm-text-primary, inherit)',
4780
4782
  },
4781
4783
  }),
4782
4784
  ]),
package/dist/index.js CHANGED
@@ -1092,8 +1092,8 @@ const Chips = () => {
1092
1092
  maxHeight: '200px',
1093
1093
  overflow: 'auto',
1094
1094
  zIndex: 1000,
1095
- backgroundColor: '#fff',
1096
- boxShadow: '0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)',
1095
+ backgroundColor: 'var(--mm-surface-color, #fff)',
1096
+ boxShadow: '0 2px 2px 0 var(--mm-shadow-penumbra, rgba(0,0,0,0.14)), 0 3px 1px -2px var(--mm-shadow-umbra, rgba(0,0,0,0.12)), 0 1px 5px 0 var(--mm-shadow-ambient, rgba(0,0,0,0.2))',
1097
1097
  },
1098
1098
  }, state.autocompleteItems.map((item, index) => m('li.autocomplete-item', {
1099
1099
  key: item.tag,
@@ -1101,7 +1101,8 @@ const Chips = () => {
1101
1101
  style: {
1102
1102
  padding: '12px 16px',
1103
1103
  cursor: 'pointer',
1104
- backgroundColor: state.selectedAutocompleteIndex === index ? '#eee' : 'transparent',
1104
+ backgroundColor: state.selectedAutocompleteIndex === index ? 'var(--mm-border-color, #eee)' : 'transparent',
1105
+ color: 'var(--mm-text-primary, inherit)',
1105
1106
  },
1106
1107
  onmousedown: (e) => {
1107
1108
  e.preventDefault();
@@ -2322,7 +2323,7 @@ const TextArea = () => {
2322
2323
  }, oncreate: ({ dom }) => {
2323
2324
  const textarea = (state.textarea = dom);
2324
2325
  // Set initial value and height if provided
2325
- if (initialValue !== undefined) {
2326
+ if (initialValue) {
2326
2327
  textarea.value = String(initialValue);
2327
2328
  updateHeight(textarea);
2328
2329
  // } else {
@@ -2365,7 +2366,7 @@ const TextArea = () => {
2365
2366
  if (onchange && state.textarea) {
2366
2367
  onchange(state.textarea.value);
2367
2368
  }
2368
- }, value: initialValue, onkeyup: onkeyup
2369
+ }, onkeyup: onkeyup
2369
2370
  ? (ev) => {
2370
2371
  onkeyup(ev, ev.target.value);
2371
2372
  }
@@ -2382,7 +2383,7 @@ const TextArea = () => {
2382
2383
  label,
2383
2384
  id,
2384
2385
  isMandatory,
2385
- isActive: ((_a = state.textarea) === null || _a === void 0 ? void 0 : _a.value) || initialValue || placeholder || state.active,
2386
+ isActive: ((_a = state.textarea) === null || _a === void 0 ? void 0 : _a.value) || placeholder || state.active,
2386
2387
  }),
2387
2388
  m(HelperText, {
2388
2389
  helperText,
@@ -2450,7 +2451,7 @@ const InputField = (type, defaultClass = '') => () => {
2450
2451
  input.focus();
2451
2452
  }
2452
2453
  // Set initial value if provided
2453
- if (initialValue !== undefined) {
2454
+ if (initialValue) {
2454
2455
  input.value = String(initialValue);
2455
2456
  }
2456
2457
  // Update character count state for counter component
@@ -2554,14 +2555,13 @@ const InputField = (type, defaultClass = '') => () => {
2554
2555
  if (onchange && state.inputElement) {
2555
2556
  onchange(getValue(state.inputElement));
2556
2557
  }
2557
- }, value: initialValue })),
2558
+ } })),
2558
2559
  m(Label, {
2559
2560
  label,
2560
2561
  id,
2561
2562
  isMandatory,
2562
2563
  isActive: state.active ||
2563
2564
  ((_a = state.inputElement) === null || _a === void 0 ? void 0 : _a.value) ||
2564
- initialValue ||
2565
2565
  placeholder ||
2566
2566
  type === 'number' ||
2567
2567
  type === 'color' ||
@@ -2640,7 +2640,7 @@ const FileInput = () => {
2640
2640
  i.value = initialValue;
2641
2641
  },
2642
2642
  })),
2643
- (canClear || initialValue) &&
2643
+ (canClear || (i === null || i === void 0 ? void 0 : i.value)) &&
2644
2644
  m('a.waves-effect.waves-teal.btn-flat', {
2645
2645
  style: {
2646
2646
  float: 'right',
@@ -4716,7 +4716,7 @@ const SearchSelect = () => {
4716
4716
  placeholder &&
4717
4717
  m('span.placeholder', {
4718
4718
  style: {
4719
- color: '#9e9e9e',
4719
+ color: 'var(--mm-text-hint, #9e9e9e)',
4720
4720
  flexGrow: 1,
4721
4721
  padding: '8px 0',
4722
4722
  },
@@ -4778,7 +4778,9 @@ const SearchSelect = () => {
4778
4778
  fontSize: '0.875rem',
4779
4779
  border: 'none',
4780
4780
  padding: '8px 0',
4781
- borderBottom: '1px solid #9e9e9e',
4781
+ borderBottom: '1px solid var(--mm-input-border, #9e9e9e)',
4782
+ backgroundColor: 'transparent',
4783
+ color: 'var(--mm-text-primary, inherit)',
4782
4784
  },
4783
4785
  }),
4784
4786
  ]),