mithril-materialized 0.19.7 → 1.0.0-beta.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.
Files changed (84) hide show
  1. package/README.md +6 -2
  2. package/dist/autocomplete.d.ts +14 -7
  3. package/dist/button.d.ts +40 -40
  4. package/dist/carousel.d.ts +38 -18
  5. package/dist/chip.d.ts +31 -11
  6. package/dist/code-block.d.ts +8 -9
  7. package/dist/collapsible.d.ts +26 -22
  8. package/dist/collection.d.ts +49 -49
  9. package/dist/dropdown.d.ts +45 -46
  10. package/dist/floating-action-button.d.ts +37 -34
  11. package/dist/icon.d.ts +11 -11
  12. package/dist/index.css +7968 -2
  13. package/dist/index.d.ts +26 -28
  14. package/dist/index.esm.js +4211 -2
  15. package/dist/index.js +4265 -2
  16. package/dist/index.umd.js +4269 -2
  17. package/dist/input-options.d.ts +85 -81
  18. package/dist/input.d.ts +47 -42
  19. package/dist/label.d.ts +21 -22
  20. package/dist/material-box.d.ts +38 -21
  21. package/dist/material-icon.d.ts +14 -0
  22. package/dist/modal.d.ts +41 -26
  23. package/dist/option.d.ts +61 -52
  24. package/dist/pagination.d.ts +16 -20
  25. package/dist/parallax.d.ts +14 -13
  26. package/dist/pickers.d.ts +130 -8
  27. package/dist/radio.d.ts +41 -37
  28. package/dist/search-select.d.ts +41 -0
  29. package/dist/select.d.ts +46 -45
  30. package/dist/switch.d.ts +12 -13
  31. package/dist/tabs.d.ts +57 -45
  32. package/dist/utils.d.ts +43 -70
  33. package/package.json +55 -16
  34. package/sass/components/_badges.scss +59 -0
  35. package/sass/components/_buttons.scss +327 -0
  36. package/sass/components/_cards.scss +197 -0
  37. package/sass/components/_carousel.scss +92 -0
  38. package/sass/components/_chips.scss +92 -0
  39. package/sass/components/_collapsible.scss +94 -0
  40. package/sass/components/_color-classes.scss +34 -0
  41. package/sass/components/_color-variables.scss +371 -0
  42. package/sass/components/_datepicker.scss +251 -0
  43. package/sass/components/_dropdown.scss +90 -0
  44. package/sass/components/_global.scss +775 -0
  45. package/sass/components/_grid.scss +160 -0
  46. package/sass/components/_icons-material-design.scss +5 -0
  47. package/sass/components/_materialbox.scss +43 -0
  48. package/sass/components/_modal.scss +97 -0
  49. package/sass/components/_navbar.scss +211 -0
  50. package/sass/components/_normalize.scss +447 -0
  51. package/sass/components/_preloader.scss +336 -0
  52. package/sass/components/_pulse.scss +34 -0
  53. package/sass/components/_sidenav.scss +213 -0
  54. package/sass/components/_slider.scss +94 -0
  55. package/sass/components/_table_of_contents.scss +36 -0
  56. package/sass/components/_tabs.scss +102 -0
  57. package/sass/components/_tapTarget.scss +105 -0
  58. package/sass/components/_timepicker.scss +170 -0
  59. package/sass/components/_toast.scss +61 -0
  60. package/sass/components/_tooltip.scss +32 -0
  61. package/sass/components/_transitions.scss +13 -0
  62. package/sass/components/_typography.scss +61 -0
  63. package/sass/components/_variables.scss +352 -0
  64. package/sass/components/_waves.scss +114 -0
  65. package/sass/components/forms/_checkboxes.scss +203 -0
  66. package/sass/components/forms/_file-input.scss +50 -0
  67. package/sass/components/forms/_form-groups.scss +28 -0
  68. package/sass/components/forms/_forms.scss +24 -0
  69. package/sass/components/forms/_input-fields.scss +361 -0
  70. package/sass/components/forms/_radio-buttons.scss +118 -0
  71. package/sass/components/forms/_range.scss +164 -0
  72. package/sass/components/forms/_select.scss +193 -0
  73. package/sass/components/forms/_switches.scss +92 -0
  74. package/sass/materialize.scss +41 -0
  75. package/dist/index.css.map +0 -1
  76. package/dist/index.esm.js.map +0 -1
  77. package/dist/index.js.map +0 -1
  78. package/dist/index.modern.js +0 -2
  79. package/dist/index.modern.js.map +0 -1
  80. package/dist/index.umd.js.map +0 -1
  81. package/dist/kanban.d.ts +0 -47
  82. package/dist/layout-form-generator.d.ts +0 -75
  83. package/dist/map-editor.d.ts +0 -63
  84. package/dist/timeline.d.ts +0 -24
@@ -0,0 +1,102 @@
1
+ @use "sass:color";
2
+ @use "variables";
3
+
4
+ .tabs {
5
+ &.tabs-transparent {
6
+ background-color: transparent;
7
+
8
+ .tab a,
9
+ .tab.disabled a,
10
+ .tab.disabled a:hover {
11
+ color: rgba(255,255,255,0.7);
12
+ }
13
+
14
+ .tab a:hover,
15
+ .tab a.active {
16
+ color: #fff;
17
+ }
18
+
19
+ .indicator {
20
+ background-color: #fff;
21
+ }
22
+ }
23
+
24
+ &.tabs-fixed-width {
25
+ display: flex;
26
+
27
+ .tab {
28
+ flex-grow: 1;
29
+ }
30
+ }
31
+
32
+ position: relative;
33
+ overflow-x: auto;
34
+ overflow-y: hidden;
35
+ height: 48px;
36
+ width: 100%;
37
+ background-color: variables.$tabs-bg-color;
38
+ margin: 0 auto;
39
+ white-space: nowrap;
40
+
41
+ .tab {
42
+ display: inline-block;
43
+ text-align: center;
44
+ line-height: 48px;
45
+ height: 48px;
46
+ padding: 0;
47
+ margin: 0;
48
+ text-transform: uppercase;
49
+
50
+ a {
51
+ &:focus,
52
+ &:focus.active {
53
+ background-color: color.adjust(variables.$tabs-underline-color, $alpha: -.8);
54
+ outline: none;
55
+ }
56
+
57
+ &:hover,
58
+ &.active {
59
+ background-color: transparent;
60
+ color: variables.$tabs-text-color;
61
+ }
62
+
63
+ color: rgba(variables.$tabs-text-color, .7);
64
+ display: block;
65
+ width: 100%;
66
+ height: 100%;
67
+ padding: 0 24px;
68
+ font-size: 14px;
69
+ text-overflow: ellipsis;
70
+ overflow: hidden;
71
+ transition: color .28s ease, background-color .28s ease;
72
+ }
73
+
74
+ &.disabled a,
75
+ &.disabled a:hover {
76
+ color: rgba(variables.$tabs-text-color, .4);
77
+ cursor: default;
78
+ }
79
+ }
80
+ .indicator {
81
+ position: absolute;
82
+ bottom: 0;
83
+ height: 2px;
84
+ background-color: variables.$tabs-underline-color;
85
+ will-change: left, right;
86
+ }
87
+ }
88
+
89
+ // Fixed Sidenav hide on smaller
90
+ @media #{variables.$medium-and-down} {
91
+ .tabs {
92
+ display: flex;
93
+
94
+ .tab {
95
+ flex-grow: 1;
96
+
97
+ a {
98
+ padding: 0 12px;
99
+ }
100
+ }
101
+ }
102
+ }
@@ -0,0 +1,105 @@
1
+ @use "variables";
2
+
3
+ .tap-target-wrapper {
4
+ width: 800px;
5
+ height: 800px;
6
+ position: fixed;
7
+ z-index: 1000;
8
+ visibility: hidden;
9
+ transition: visibility 0s .3s;
10
+ }
11
+
12
+ .tap-target-wrapper.open {
13
+ visibility: visible;
14
+ transition: visibility 0s;
15
+
16
+ .tap-target {
17
+ transform: scale(1);
18
+ opacity: .95;
19
+ transition:
20
+ transform .3s cubic-bezier(.42,0,.58,1),
21
+ opacity .3s cubic-bezier(.42,0,.58,1);
22
+ }
23
+
24
+ .tap-target-wave::before {
25
+ transform: scale(1);
26
+ }
27
+ .tap-target-wave::after {
28
+ visibility: visible;
29
+ animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;
30
+ transition:
31
+ opacity .3s,
32
+ transform .3s,
33
+ visibility 0s 1s;
34
+ }
35
+ }
36
+
37
+ .tap-target {
38
+ position: absolute;
39
+ font-size: 1rem;
40
+ border-radius: 50%;
41
+ background-color: variables.$primary-color;
42
+ box-shadow: 0 20px 20px 0 rgba(0,0,0,0.14), 0 10px 50px 0 rgba(0,0,0,0.12), 0 30px 10px -20px rgba(0,0,0,0.2);
43
+ width: 100%;
44
+ height: 100%;
45
+ opacity: 0;
46
+ transform: scale(0);
47
+ transition:
48
+ transform .3s cubic-bezier(.42,0,.58,1),
49
+ opacity .3s cubic-bezier(.42,0,.58,1);
50
+ }
51
+
52
+ .tap-target-content {
53
+ position: relative;
54
+ display: table-cell;
55
+ }
56
+
57
+ .tap-target-wave {
58
+ &::before,
59
+ &::after {
60
+ content: '';
61
+ display: block;
62
+ position: absolute;
63
+ width: 100%;
64
+ height: 100%;
65
+ border-radius: 50%;
66
+ background-color: #ffffff;
67
+ }
68
+ &::before {
69
+ transform: scale(0);
70
+ transition: transform .3s;
71
+ }
72
+ &::after {
73
+ visibility: hidden;
74
+ transition:
75
+ opacity .3s,
76
+ transform .3s,
77
+ visibility 0s;
78
+ z-index: -1;
79
+ }
80
+
81
+ position: absolute;
82
+ border-radius: 50%;
83
+ z-index: 10001;
84
+ }
85
+
86
+ .tap-target-origin {
87
+ &:not(.btn),
88
+ &:not(.btn):hover {
89
+ background: none;
90
+ }
91
+
92
+ top: 50%;
93
+ left: 50%;
94
+ transform: translate(-50%,-50%);
95
+
96
+ z-index: 10002;
97
+ position: absolute !important;
98
+ }
99
+
100
+ @media only screen and (max-width: 600px) {
101
+ .tap-target, .tap-target-wrapper {
102
+ width: 600px;
103
+ height: 600px;
104
+ }
105
+ }
@@ -0,0 +1,170 @@
1
+ @use "sass:color";
2
+ @use "variables";
3
+
4
+ /* Enhanced TimePicker Styles */
5
+ .input-field.timepicker {
6
+ input[disabled] {
7
+ cursor: not-allowed;
8
+ }
9
+ }
10
+
11
+ .timepicker-actions {
12
+ display: flex;
13
+ gap: 8px;
14
+ margin-top: 4px;
15
+ font-size: 12px;
16
+
17
+ .btn-flat {
18
+ padding: 2px 8px;
19
+ min-width: auto;
20
+ height: 24px;
21
+ line-height: 20px;
22
+ font-size: 11px;
23
+ text-transform: none;
24
+
25
+ i.material-icons {
26
+ font-size: 14px;
27
+ margin-right: 4px;
28
+ }
29
+ }
30
+ }
31
+
32
+ .inline-time-controls {
33
+ display: flex;
34
+ align-items: center;
35
+ gap: 8px;
36
+ margin-top: 8px;
37
+ padding: 12px;
38
+ background-color: #f5f5f5;
39
+ border-radius: 4px;
40
+ font-size: 14px;
41
+
42
+ .time-controls-12h {
43
+ display: flex;
44
+ align-items: center;
45
+ gap: 4px;
46
+
47
+ input[type="number"] {
48
+ width: 50px;
49
+ text-align: center;
50
+ padding: 4px;
51
+ border: 1px solid #ccc;
52
+ border-radius: 4px;
53
+ }
54
+
55
+ select {
56
+ padding: 4px;
57
+ border: 1px solid #ccc;
58
+ border-radius: 4px;
59
+ margin-left: 4px;
60
+ }
61
+ }
62
+
63
+ input[type="time"] {
64
+ font-size: 16px;
65
+ padding: 4px 8px;
66
+ border: 1px solid #ccc;
67
+ border-radius: 4px;
68
+ min-width: 120px;
69
+ }
70
+
71
+ .btn-flat {
72
+ padding: 4px 8px;
73
+ font-size: 11px;
74
+ background-color: #e0e0e0;
75
+ border-radius: 4px;
76
+ min-width: auto;
77
+ }
78
+ }
79
+
80
+ .timepicker-modal {
81
+ position: fixed;
82
+ top: 0;
83
+ left: 0;
84
+ width: 100%;
85
+ height: 100%;
86
+ background-color: rgba(0, 0, 0, 0.5);
87
+ display: flex;
88
+ align-items: center;
89
+ justify-content: center;
90
+ z-index: 1000;
91
+
92
+ .timepicker-content {
93
+ background: white;
94
+ border-radius: 8px;
95
+ padding: 24px;
96
+ min-width: 320px;
97
+ max-width: 400px;
98
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
99
+
100
+ .modal-header {
101
+ display: flex;
102
+ justify-content: space-between;
103
+ align-items: center;
104
+ margin-bottom: 20px;
105
+
106
+ h5 {
107
+ margin: 0;
108
+ }
109
+
110
+ .btn-flat {
111
+ padding: 4px 8px;
112
+ font-size: 11px;
113
+ min-width: auto;
114
+
115
+ i.material-icons {
116
+ font-size: 14px;
117
+ margin-right: 4px;
118
+ }
119
+ }
120
+ }
121
+
122
+ .time-display {
123
+ display: flex;
124
+ align-items: center;
125
+ justify-content: center;
126
+ gap: 8px;
127
+ margin-bottom: 24px;
128
+ font-size: 2.5rem;
129
+ font-weight: 300;
130
+
131
+ input[type="number"] {
132
+ width: 80px;
133
+ text-align: center;
134
+ font-size: 2.5rem;
135
+ border: 1px solid #ddd;
136
+ border-radius: 4px;
137
+ padding: 8px;
138
+ }
139
+
140
+ .ampm-selector {
141
+ display: flex;
142
+ flex-direction: column;
143
+ gap: 4px;
144
+
145
+ button {
146
+ min-width: 60px;
147
+ padding: 4px 8px;
148
+ }
149
+ }
150
+ }
151
+
152
+ .timepicker-actions {
153
+ display: flex;
154
+ justify-content: space-between;
155
+ gap: 8px;
156
+ margin-top: 24px;
157
+
158
+ > div {
159
+ display: flex;
160
+ gap: 8px;
161
+ }
162
+
163
+ .btn-flat {
164
+ padding: 0 20px;
165
+ }
166
+ }
167
+ }
168
+ }
169
+
170
+ /* Legacy styles kept for applications using old Materialize TimePicker */
@@ -0,0 +1,61 @@
1
+ @use "variables";
2
+ @use "global";
3
+
4
+ #toast-container {
5
+ display:block;
6
+ position: fixed;
7
+ z-index: 10000;
8
+
9
+ @media #{variables.$small-and-down} {
10
+ min-width: 100%;
11
+ bottom: 0%;
12
+ }
13
+ @media #{variables.$medium-only} {
14
+ left: 5%;
15
+ bottom: 7%;
16
+ max-width: 90%;
17
+ }
18
+ @media #{variables.$large-and-up} {
19
+ top: 10%;
20
+ right: 7%;
21
+ max-width: 86%;
22
+ }
23
+ }
24
+
25
+ .toast {
26
+ @extend .z-depth-1 !optional;
27
+ border-radius: 2px;
28
+ top: 35px;
29
+ width: auto;
30
+ margin-top: 10px;
31
+ position: relative;
32
+ max-width:100%;
33
+ height: auto;
34
+ min-height: variables.$toast-height;
35
+ line-height: 1.5em;
36
+ background-color: variables.$toast-color;
37
+ padding: 10px 25px;
38
+ font-size: 1.1rem;
39
+ font-weight: 300;
40
+ color: variables.$toast-text-color;
41
+ display: flex;
42
+ align-items: center;
43
+ justify-content: space-between;
44
+ cursor: default;
45
+
46
+ .toast-action {
47
+ color: variables.$toast-action-color;
48
+ font-weight: 500;
49
+ margin-right: -25px;
50
+ margin-left: 3rem;
51
+ }
52
+
53
+ &.rounded{
54
+ border-radius: 24px;
55
+ }
56
+
57
+ @media #{variables.$small-and-down} {
58
+ width: 100%;
59
+ border-radius: 0;
60
+ }
61
+ }
@@ -0,0 +1,32 @@
1
+ .material-tooltip {
2
+ padding: 10px 8px;
3
+ font-size: 1rem;
4
+ z-index: 2000;
5
+ background-color: transparent;
6
+ border-radius: 2px;
7
+ color: #fff;
8
+ min-height: 36px;
9
+ line-height: 120%;
10
+ opacity: 0;
11
+ position: absolute;
12
+ text-align: center;
13
+ max-width: calc(100% - 4px);
14
+ overflow: hidden;
15
+ left: 0;
16
+ top: 0;
17
+ pointer-events: none;
18
+ visibility: hidden;
19
+ background-color: #323232;
20
+ }
21
+
22
+ .backdrop {
23
+ position: absolute;
24
+ opacity: 0;
25
+ height: 7px;
26
+ width: 14px;
27
+ border-radius: 0 0 50% 50%;
28
+ background-color: #323232;
29
+ z-index: -1;
30
+ transform-origin: 50% 0%;
31
+ visibility: hidden;
32
+ }
@@ -0,0 +1,13 @@
1
+ // Scale transition
2
+ .scale-transition {
3
+ &.scale-out {
4
+ transform: scale(0);
5
+ transition: transform .2s !important;
6
+ }
7
+
8
+ &.scale-in {
9
+ transform: scale(1);
10
+ }
11
+
12
+ transition: transform .3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;
13
+ }
@@ -0,0 +1,61 @@
1
+ @use 'sass:math';
2
+ @use "variables";
3
+
4
+ a {
5
+ text-decoration: none;
6
+ }
7
+
8
+ html{
9
+ line-height: 1.5;
10
+ font-family: variables.$font-stack;
11
+ font-weight: normal;
12
+ color: variables.$off-black;
13
+
14
+ @media only screen and (min-width: 0) {
15
+ font-size: 14px;
16
+ }
17
+
18
+ @media only screen and (min-width: variables.$medium-screen) {
19
+ font-size: 14.5px;
20
+ }
21
+
22
+ @media only screen and (min-width: variables.$large-screen) {
23
+ font-size: 15px;
24
+ }
25
+ }
26
+ h1, h2, h3, h4, h5, h6 {
27
+ font-weight: 400;
28
+ line-height: 1.3;
29
+ }
30
+
31
+ // Header Styles
32
+ h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
33
+ h1 { font-size: variables.$h1-fontsize; line-height: 110%; margin: math.div(variables.$h1-fontsize, 1.5) 0 math.div(variables.$h1-fontsize, 2.5) 0;}
34
+ h2 { font-size: variables.$h2-fontsize; line-height: 110%; margin: math.div(variables.$h2-fontsize, 1.5) 0 math.div(variables.$h2-fontsize, 2.5) 0;}
35
+ h3 { font-size: variables.$h3-fontsize; line-height: 110%; margin: math.div(variables.$h3-fontsize, 1.5) 0 math.div(variables.$h3-fontsize, 2.5) 0;}
36
+ h4 { font-size: variables.$h4-fontsize; line-height: 110%; margin: math.div(variables.$h4-fontsize, 1.5) 0 math.div(variables.$h4-fontsize, 2.5) 0;}
37
+ h5 { font-size: variables.$h5-fontsize; line-height: 110%; margin: math.div(variables.$h5-fontsize, 1.5) 0 math.div(variables.$h5-fontsize, 2.5) 0;}
38
+ h6 { font-size: variables.$h6-fontsize; line-height: 110%; margin: math.div(variables.$h6-fontsize, 1.5) 0 math.div(variables.$h6-fontsize, 2.5) 0;}
39
+
40
+ // Text Styles
41
+ em { font-style: italic; }
42
+ strong { font-weight: 500; }
43
+ small { font-size: 75%; }
44
+ .light { font-weight: 300; }
45
+ .thin { font-weight: 200; }
46
+
47
+
48
+ .flow-text{
49
+ $i: 0;
50
+ @while $i <= variables.$intervals {
51
+ @media only screen and (min-width : 360 + ($i * variables.$interval-size)) {
52
+ font-size: 1.2rem * (1 + (.02 * $i));
53
+ }
54
+ $i: $i + 1;
55
+ }
56
+
57
+ // Handle below 360px screen
58
+ @media only screen and (max-width: 360px) {
59
+ font-size: 1.2rem;
60
+ }
61
+ }