mithril-materialized 3.3.8 → 3.4.1

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.
@@ -2225,6 +2225,7 @@ table span.badge {
2225
2225
  font-size: 16px;
2226
2226
  line-height: 32px;
2227
2227
  padding-left: 8px;
2228
+ min-height: 1lh;
2228
2229
  }
2229
2230
 
2230
2231
  .chips {
@@ -0,0 +1,16 @@
1
+ /*!
2
+ * Waves Effect for Mithril Materialized
3
+ * Based on Waves v0.6.4 by Alfiana E. Sibuea
4
+ * Adapted for TypeScript and Mithril integration
5
+ */
6
+ export declare class WavesEffect {
7
+ private static duration;
8
+ private static offset;
9
+ private static createRipple;
10
+ private static removeRipples;
11
+ static onMouseDown: (e: MouseEvent) => void;
12
+ static onMouseUp: (e: MouseEvent) => void;
13
+ static onMouseLeave: (e: MouseEvent) => void;
14
+ static onTouchStart: (e: TouchEvent) => void;
15
+ static onTouchEnd: (e: TouchEvent) => void;
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mithril-materialized",
3
- "version": "3.3.8",
3
+ "version": "3.4.1",
4
4
  "description": "A materialize library for mithril.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -325,3 +325,24 @@ button.btn-floating {
325
325
  .btn-block {
326
326
  display: block;
327
327
  }
328
+
329
+ // Icon button - compact flat button for icons only
330
+ .btn-flat.btn-icon {
331
+ min-width: auto;
332
+ padding: 0 8px;
333
+ width: auto;
334
+ line-height: variables.$button-height;
335
+ background-color: transparent !important;
336
+
337
+ i {
338
+ margin: 0;
339
+ }
340
+
341
+ // Ensure background stays transparent in all states
342
+ &:hover,
343
+ &:focus,
344
+ &:active,
345
+ &.active {
346
+ background-color: transparent !important;
347
+ }
348
+ }
@@ -33,6 +33,7 @@
33
33
  font-size: 16px;
34
34
  line-height: 32px;
35
35
  padding-left: 8px;
36
+ min-height: 1lh;
36
37
  }
37
38
  }
38
39
 
@@ -53,6 +53,12 @@
53
53
  .material-icons {
54
54
  font-size: 1rem;
55
55
  }
56
+
57
+ svg {
58
+ width: 1rem !important;
59
+ height: 1rem !important;
60
+ flex-shrink: 0;
61
+ }
56
62
 
57
63
  span {
58
64
  font-size: 0.75rem;
@@ -84,6 +90,10 @@
84
90
  .material-icons {
85
91
  font-size: 1.25rem;
86
92
  }
93
+
94
+ svg {
95
+ flex-shrink: 0;
96
+ }
87
97
  }
88
98
 
89
99
  // Navbar theme toggle specific styles
@@ -150,9 +150,9 @@ body.keyboard-focused {
150
150
  background-color: var(--mm-dropdown-hover, variables.$select-option-hover);
151
151
  }
152
152
 
153
- &.selected {
154
- background-color: var(--mm-dropdown-selected, variables.$select-option-selected);
155
- }
153
+ // &.selected {
154
+ // background-color: var(--mm-dropdown-selected, variables.$select-option-selected);
155
+ // }
156
156
  }
157
157
  }
158
158