kmaterialize 2.0.0 → 2.3.3-1.0.0

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 (150) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +55 -91
  3. package/components/appbar/_navbar.old.scss +223 -0
  4. package/components/appbar/appbar.css +235 -0
  5. package/components/appbar/appbar.mjs +54 -0
  6. package/components/appbar/appbar.test.mjs +9 -0
  7. package/components/atomic/atomic.mjs +19 -0
  8. package/components/atomic/component.mjs +67 -0
  9. package/components/badge/_badges.scss +75 -0
  10. package/components/badge/badge.mjs +11 -0
  11. package/components/breadcrumb/_breadcrumb.scss +27 -0
  12. package/components/button/_buttons.scss +352 -0
  13. package/components/button/button.mjs +11 -0
  14. package/components/button/buttons.stories.ts +150 -0
  15. package/components/button/buttons.ts +282 -0
  16. package/components/button/examples.iso.js +18 -0
  17. package/components/button/fabSpec.js +65 -0
  18. package/components/button/test-button.mjs +16 -0
  19. package/components/card/_cards.scss +229 -0
  20. package/components/card/card.mjs +10 -0
  21. package/components/card/cards.ts +185 -0
  22. package/components/card/cardsSpec.js +269 -0
  23. package/components/carousel/_carousel.scss +93 -0
  24. package/components/carousel/_slider.scss +119 -0
  25. package/components/carousel/carousel.ts +693 -0
  26. package/components/carousel/carouselSpec.js +61 -0
  27. package/components/carousel/slider.ts +431 -0
  28. package/components/carousel/sliderSpec.js +99 -0
  29. package/components/checkbox/_checkboxes.scss +281 -0
  30. package/components/checkbox/checkbox.mdx +24 -0
  31. package/components/checkbox/checkbox.stories.ts +120 -0
  32. package/components/chip/chip.mjs +37 -0
  33. package/components/chip/chip.test.mjs +10 -0
  34. package/components/chip/chips.css +126 -0
  35. package/components/chip/chips.mdx +33 -0
  36. package/components/chip/chips.ts +440 -0
  37. package/components/chip/chipsSpec.js +165 -0
  38. package/components/chip/readme.md +323 -0
  39. package/components/collapsible/_collapsible.scss +82 -0
  40. package/components/collapsible/collapsible.ts +230 -0
  41. package/components/collapsible/collapsibleSpec.js +240 -0
  42. package/components/datepicker/_datepicker.scss +268 -0
  43. package/components/datepicker/datepicker.ts +1450 -0
  44. package/components/datepicker/datepickerSpec.js +162 -0
  45. package/components/dialog/_materialbox.scss +42 -0
  46. package/components/dialog/_modal.scss +79 -0
  47. package/components/dialog/materialbox.ts +446 -0
  48. package/components/dialog/materialboxSpec.js +37 -0
  49. package/components/dialog/modal.ts +111 -0
  50. package/components/dialog/modalSpec.js +83 -0
  51. package/components/dialog/readme.md +5 -0
  52. package/components/divider/readme.md +15 -0
  53. package/components/dropdown/_dropdown.scss +83 -0
  54. package/components/dropdown/dropdown.ts +653 -0
  55. package/components/dropdown/dropdownSpec.js +108 -0
  56. package/components/list/_collection.scss +114 -0
  57. package/components/list/_list.scss +6 -0
  58. package/components/list/list.mjs +58 -0
  59. package/components/list/list.test.mjs +16 -0
  60. package/components/loading/loading.mjs +26 -0
  61. package/components/loading/loading.test.mjs +10 -0
  62. package/components/navigation-bar/_old +582 -0
  63. package/components/navigation-bar/navigation-bar.mdx +20 -0
  64. package/components/navigation-bar/navigation-bar.stories.ts +39 -0
  65. package/components/navigation-drawer/_sidenav.scss +247 -0
  66. package/components/navigation-drawer/sidenav.ts +546 -0
  67. package/components/navigation-drawer/sidenavSpec.js +124 -0
  68. package/components/pagination/_pagination.scss +47 -0
  69. package/components/progress/_preloader.scss +416 -0
  70. package/components/radio-button/_radio-buttons.scss +112 -0
  71. package/components/radio-button/radio-buttons.mdx +28 -0
  72. package/components/radio-button/radio-buttons.stories.ts +51 -0
  73. package/components/search/autocomplete.ts +620 -0
  74. package/components/search/autocompleteSpec.js +321 -0
  75. package/components/slider/_range.scss +157 -0
  76. package/components/slider/range.ts +216 -0
  77. package/components/snackbar/_toast.scss +68 -0
  78. package/components/snackbar/toastSpec.js +132 -0
  79. package/components/snackbar/toasts.ts +312 -0
  80. package/components/switch/_switches.scss +121 -0
  81. package/components/tabs/_tabs.scss +171 -0
  82. package/components/tabs/tabs.mjs +31 -0
  83. package/components/tabs/tabs.ts +358 -0
  84. package/components/tabs/tabsSpec.js +180 -0
  85. package/components/textfield/_file-input.scss +41 -0
  86. package/components/textfield/_input-fields.scss +368 -0
  87. package/components/textfield/_select.scss +104 -0
  88. package/components/textfield/formfields.css +311 -0
  89. package/components/textfield/forms.ts +182 -0
  90. package/components/textfield/formsSpec.js +142 -0
  91. package/components/textfield/select.ts +472 -0
  92. package/components/textfield/selectSpec.js +390 -0
  93. package/components/textfield/textfield.mjs +29 -0
  94. package/components/textfield/textfield.test.mjs +10 -0
  95. package/components/timepicker/_timepicker.scss +362 -0
  96. package/components/timepicker/timepicker.ts +905 -0
  97. package/components/tooltip/_tooltip.scss +40 -0
  98. package/components/tooltip/tooltip.ts +380 -0
  99. package/components/tooltip/tooltipSpec.js +145 -0
  100. package/dist/css/materialize.colors.min.css +6 -0
  101. package/dist/css/materialize.css +7578 -6326
  102. package/dist/css/materialize.min.css +6 -13
  103. package/dist/css/materialize.min.css.map +1 -0
  104. package/dist/js/materialize.cjs.js +8410 -0
  105. package/dist/js/materialize.d.ts +2625 -0
  106. package/dist/js/materialize.js +8415 -12374
  107. package/dist/js/materialize.min.js +6 -6
  108. package/dist/js/materialize.mjs +8382 -0
  109. package/package.json +82 -47
  110. package/sass/_colors.scss +417 -0
  111. package/sass/_global.scss +490 -0
  112. package/sass/_grid.scss +172 -0
  113. package/sass/_table_of_contents.scss +28 -0
  114. package/sass/_tapTarget.scss +102 -0
  115. package/sass/_typography.scss +58 -0
  116. package/sass/_variables.scss +56 -0
  117. package/sass/materialize.scss +51 -0
  118. package/sass/mixins.module.scss +168 -0
  119. package/extras/noUiSlider/nouislider.css +0 -406
  120. package/extras/noUiSlider/nouislider.js +0 -2147
  121. package/extras/noUiSlider/nouislider.min.js +0 -1
  122. package/js/anime.min.js +0 -34
  123. package/js/autocomplete.js +0 -448
  124. package/js/buttons.js +0 -354
  125. package/js/cards.js +0 -40
  126. package/js/carousel.js +0 -717
  127. package/js/cash.js +0 -960
  128. package/js/characterCounter.js +0 -136
  129. package/js/chips.js +0 -481
  130. package/js/collapsible.js +0 -275
  131. package/js/component.js +0 -44
  132. package/js/datepicker.js +0 -975
  133. package/js/dropdown.js +0 -635
  134. package/js/forms.js +0 -275
  135. package/js/global.js +0 -444
  136. package/js/materialbox.js +0 -453
  137. package/js/modal.js +0 -382
  138. package/js/parallax.js +0 -138
  139. package/js/pushpin.js +0 -148
  140. package/js/range.js +0 -263
  141. package/js/scrollspy.js +0 -295
  142. package/js/select.js +0 -450
  143. package/js/sidenav.js +0 -580
  144. package/js/slider.js +0 -359
  145. package/js/tabs.js +0 -402
  146. package/js/tapTarget.js +0 -314
  147. package/js/timepicker.js +0 -647
  148. package/js/toasts.js +0 -310
  149. package/js/tooltip.js +0 -303
  150. package/js/waves.js +0 -335
@@ -0,0 +1,93 @@
1
+ .carousel {
2
+ --carousel-height: 400px;
3
+
4
+ overflow: hidden;
5
+ position: relative;
6
+ width: 100%;
7
+ height: var(--carousel-height);
8
+ perspective: 500px;
9
+ transform-style: preserve-3d;
10
+ transform-origin: 0% 50%;
11
+
12
+ &.carousel-slider {
13
+ top: 0;
14
+ left: 0;
15
+
16
+ .carousel-fixed-item {
17
+ position: absolute;
18
+ left: 0;
19
+ right: 0;
20
+ bottom: 20px;
21
+ z-index: 1;
22
+
23
+ &.with-indicators {
24
+ bottom: 68px;
25
+ }
26
+ }
27
+
28
+ .carousel-item {
29
+ width: 100%;
30
+ height: 100%;
31
+ min-height: var(--carousel-height);
32
+ position: absolute;
33
+ top: 0;
34
+ left: 0;
35
+
36
+ h2 {
37
+ font-size: 24px;
38
+ font-weight: 500;
39
+ line-height: 32px;
40
+ }
41
+
42
+ p {
43
+ font-size: 15px;
44
+ }
45
+ }
46
+ }
47
+
48
+ .carousel-item {
49
+ visibility: hidden;
50
+ width: calc(var(--carousel-height) * 0.5);
51
+ height: calc(var(--carousel-height) * 0.5);
52
+ position: absolute;
53
+ top: 0;
54
+ left: 0;
55
+
56
+ & > img {
57
+ width: 100%;
58
+ }
59
+ }
60
+
61
+ .indicators {
62
+ padding-left: 0;
63
+ list-style-type: none;
64
+ position: absolute;
65
+ text-align: center;
66
+ left: 0;
67
+ right: 0;
68
+ bottom: 0;
69
+ margin: 0;
70
+
71
+ .indicator-item {
72
+ display: inline-block;
73
+ position: relative;
74
+ cursor: pointer;
75
+ height: 8px;
76
+ width: 8px;
77
+ margin: 24px 4px;
78
+ background-color: rgba(255, 255, 255, 0.45);
79
+ transition: background-color .3s;
80
+ border-radius: 50%;
81
+
82
+ &.active {
83
+ background-color: var(--md-ref-palette-primary100);
84
+ }
85
+ }
86
+ }
87
+
88
+ // Materialbox compatibility
89
+ &.scrolling .carousel-item .materialboxed,
90
+ .carousel-item:not(.active) .materialboxed {
91
+ pointer-events: none;
92
+ }
93
+ }
@@ -0,0 +1,119 @@
1
+ .slider {
2
+ position: relative;
3
+ height: 400px;
4
+ width: 100%;
5
+
6
+ // Fullscreen slider
7
+ &.fullscreen {
8
+ height: 100%;
9
+ width: 100%;
10
+ position: absolute;
11
+ top: 0;
12
+ left: 0;
13
+ right: 0;
14
+ bottom: 0;
15
+
16
+ ul.slides {
17
+ padding-left: 0;
18
+ list-style-type: none;
19
+ height: 100%;
20
+ }
21
+
22
+ ul.indicators {
23
+ padding-left: 0;
24
+ list-style-type: none;
25
+ z-index: 2;
26
+ bottom: 30px;
27
+
28
+ .indicator-item {
29
+ background-color: rgba(255, 255, 255, 0.45);
30
+
31
+ &.active {
32
+ background-color: var(--md-ref-palette-primary100);
33
+ }
34
+ }
35
+
36
+ }
37
+ }
38
+
39
+ .slides {
40
+ background-color: var(--md-sys-color-surface);
41
+ margin: 0;
42
+ height: 400px;
43
+ padding-left: 0;
44
+ list-style-type: none;
45
+
46
+ li {
47
+ padding-left: 0;
48
+ list-style-type: none;
49
+ opacity: 0;
50
+ position: absolute;
51
+ top: 0;
52
+ left: 0;
53
+ z-index: 1;
54
+ width: 100%;
55
+ height: inherit;
56
+ overflow: hidden;
57
+
58
+ img {
59
+ height: 100%;
60
+ width: 100%;
61
+ background-size: cover;
62
+ background-position: center;
63
+ }
64
+
65
+ .caption {
66
+ color: #fff;
67
+ position: absolute;
68
+ top: 15%;
69
+ left: 15%;
70
+ width: 70%;
71
+ opacity: 0;
72
+
73
+ p {
74
+ color: rgba(255, 255, 255, 0.75);
75
+ }
76
+ }
77
+
78
+ &.active {
79
+ z-index: 2;
80
+ }
81
+ }
82
+ }
83
+
84
+ .indicators {
85
+ padding-left: 0;
86
+ list-style-type: none;
87
+ position: absolute;
88
+ text-align: center;
89
+ left: 0;
90
+ right: 0;
91
+ bottom: 0;
92
+ margin: 0;
93
+
94
+ .indicator-item {
95
+ display: inline-block;
96
+ position: relative;
97
+ height: 16px;
98
+ width: 16px;
99
+ margin: 0 12px;
100
+ }
101
+
102
+ .indicator-item-btn {
103
+ position: absolute;
104
+ top: 0;
105
+ left: 0;
106
+ width: 100%;
107
+ height: 100%;
108
+ cursor: pointer;
109
+ background-color: var(--md-sys-color-shadow-light);
110
+ transition: background-color .3s;
111
+ border-radius: 50%;
112
+ border-width: 0;
113
+
114
+ &.active {
115
+ background-color: var(--md-sys-color-primary);
116
+ }
117
+ }
118
+ }
119
+ }