material-inspired-component-library 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 (174) hide show
  1. package/.editorconfig +12 -0
  2. package/.gitattributes +9 -0
  3. package/.github/ISSUE_TEMPLATE/bug_report.md +35 -0
  4. package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  5. package/LICENSE +21 -0
  6. package/README.md +99 -0
  7. package/components/README.md +12 -0
  8. package/components/accordion/README.md +94 -0
  9. package/components/bottomsheet/README.md +77 -0
  10. package/components/bottomsheet/bottomsheet.scss +134 -0
  11. package/components/bottomsheet/index.ts +152 -0
  12. package/components/button/README.md +92 -0
  13. package/components/button/button.scss +515 -0
  14. package/components/button/index.ts +73 -0
  15. package/components/card/README.md +125 -0
  16. package/components/card/card.scss +261 -0
  17. package/components/checkbox/README.md +62 -0
  18. package/components/checkbox/checkbox.scss +275 -0
  19. package/components/checkbox/index.ts +48 -0
  20. package/components/dialog/README.md +133 -0
  21. package/components/dialog/dialog.scss +262 -0
  22. package/components/divider/README.md +52 -0
  23. package/components/divider/divider.scss +74 -0
  24. package/components/iconbutton/README.md +86 -0
  25. package/components/iconbutton/iconbutton.scss +461 -0
  26. package/components/iconbutton/index.ts +73 -0
  27. package/components/list/README.md +176 -0
  28. package/components/list/index.ts +108 -0
  29. package/components/list/list.scss +295 -0
  30. package/components/menu/README.md +96 -0
  31. package/components/menu/index.ts +77 -0
  32. package/components/menu/menu.scss +124 -0
  33. package/components/radio/README.md +53 -0
  34. package/components/radio/radio.scss +138 -0
  35. package/components/select/README.md +84 -0
  36. package/components/select/select.scss +122 -0
  37. package/components/sidesheet/README.md +99 -0
  38. package/components/sidesheet/sidesheet.scss +162 -0
  39. package/components/slider/README.md +69 -0
  40. package/components/slider/index.ts +114 -0
  41. package/components/slider/slider.scss +258 -0
  42. package/components/switch/README.md +49 -0
  43. package/components/switch/switch.scss +176 -0
  44. package/components/textfield/README.md +75 -0
  45. package/components/textfield/index.ts +81 -0
  46. package/components/textfield/textfield.scss +387 -0
  47. package/components.ts +169 -0
  48. package/dist/bottomsheet.css +1 -0
  49. package/dist/bottomsheet.js +0 -0
  50. package/dist/button.css +1 -0
  51. package/dist/button.js +0 -0
  52. package/dist/card.css +1 -0
  53. package/dist/card.js +0 -0
  54. package/dist/checkbox.css +1 -0
  55. package/dist/checkbox.js +0 -0
  56. package/dist/dialog.css +1 -0
  57. package/dist/dialog.js +0 -0
  58. package/dist/divider.css +1 -0
  59. package/dist/divider.js +0 -0
  60. package/dist/iconbutton.css +1 -0
  61. package/dist/iconbutton.js +0 -0
  62. package/dist/list.css +1 -0
  63. package/dist/list.js +0 -0
  64. package/dist/menu.css +1 -0
  65. package/dist/menu.js +0 -0
  66. package/dist/micl.css +1 -0
  67. package/dist/micl.js +1 -0
  68. package/dist/radio.css +1 -0
  69. package/dist/radio.js +0 -0
  70. package/dist/select.css +1 -0
  71. package/dist/select.js +0 -0
  72. package/dist/sidesheet.css +1 -0
  73. package/dist/sidesheet.js +0 -0
  74. package/dist/slider.css +1 -0
  75. package/dist/slider.js +0 -0
  76. package/dist/switch.css +1 -0
  77. package/dist/switch.js +0 -0
  78. package/dist/textfield.css +1 -0
  79. package/dist/textfield.js +0 -0
  80. package/docs/accordion.html +285 -0
  81. package/docs/bottomsheet.html +162 -0
  82. package/docs/button.html +206 -0
  83. package/docs/card-awards.webp +0 -0
  84. package/docs/card-cabinet.webp +0 -0
  85. package/docs/card-city.webp +0 -0
  86. package/docs/card-fingerprint.webp +0 -0
  87. package/docs/card-holiday.webp +0 -0
  88. package/docs/card-names.webp +0 -0
  89. package/docs/card.html +91 -0
  90. package/docs/checkbox.html +99 -0
  91. package/docs/dialog.html +153 -0
  92. package/docs/divider.html +103 -0
  93. package/docs/docs.css +34 -0
  94. package/docs/docs.js +69 -0
  95. package/docs/iconbutton.html +197 -0
  96. package/docs/index.html +319 -0
  97. package/docs/list.html +224 -0
  98. package/docs/menu.html +143 -0
  99. package/docs/micl.css +1 -0
  100. package/docs/micl.js +1 -0
  101. package/docs/radio.html +101 -0
  102. package/docs/select.html +205 -0
  103. package/docs/sidesheet.html +115 -0
  104. package/docs/slider.html +72 -0
  105. package/docs/switch.html +151 -0
  106. package/docs/textfield.html +151 -0
  107. package/docs/themes/airblue/dark-hc.css +51 -0
  108. package/docs/themes/airblue/dark-mc.css +51 -0
  109. package/docs/themes/airblue/dark.css +51 -0
  110. package/docs/themes/airblue/light-hc.css +51 -0
  111. package/docs/themes/airblue/light-mc.css +51 -0
  112. package/docs/themes/airblue/light.css +51 -0
  113. package/docs/themes/airblue/theme.css +306 -0
  114. package/docs/themes/barnred/dark-hc.css +51 -0
  115. package/docs/themes/barnred/dark-mc.css +51 -0
  116. package/docs/themes/barnred/dark.css +51 -0
  117. package/docs/themes/barnred/light-hc.css +51 -0
  118. package/docs/themes/barnred/light-mc.css +51 -0
  119. package/docs/themes/barnred/light.css +51 -0
  120. package/docs/themes/barnred/theme.css +306 -0
  121. package/docs/themes/citrine/dark-hc.css +51 -0
  122. package/docs/themes/citrine/dark-mc.css +51 -0
  123. package/docs/themes/citrine/dark.css +51 -0
  124. package/docs/themes/citrine/light-hc.css +51 -0
  125. package/docs/themes/citrine/light-mc.css +51 -0
  126. package/docs/themes/citrine/light.css +51 -0
  127. package/docs/themes/citrine/theme.css +306 -0
  128. package/docs/themes/olivegreen/dark-hc.css +51 -0
  129. package/docs/themes/olivegreen/dark-mc.css +51 -0
  130. package/docs/themes/olivegreen/dark.css +51 -0
  131. package/docs/themes/olivegreen/light-hc.css +51 -0
  132. package/docs/themes/olivegreen/light-mc.css +51 -0
  133. package/docs/themes/olivegreen/light.css +51 -0
  134. package/docs/themes/olivegreen/theme.css +306 -0
  135. package/package.json +62 -0
  136. package/styles/README.md +99 -0
  137. package/styles/elevation.scss +36 -0
  138. package/styles/motion.scss +124 -0
  139. package/styles/ripple.scss +50 -0
  140. package/styles/shapes.scss +46 -0
  141. package/styles/statelayer.scss +42 -0
  142. package/styles/typography.scss +568 -0
  143. package/styles.scss +43 -0
  144. package/themes/README.md +57 -0
  145. package/themes/airblue/dark-hc.css +51 -0
  146. package/themes/airblue/dark-mc.css +51 -0
  147. package/themes/airblue/dark.css +51 -0
  148. package/themes/airblue/light-hc.css +51 -0
  149. package/themes/airblue/light-mc.css +51 -0
  150. package/themes/airblue/light.css +51 -0
  151. package/themes/airblue/theme.css +306 -0
  152. package/themes/barnred/dark-hc.css +51 -0
  153. package/themes/barnred/dark-mc.css +51 -0
  154. package/themes/barnred/dark.css +51 -0
  155. package/themes/barnred/light-hc.css +51 -0
  156. package/themes/barnred/light-mc.css +51 -0
  157. package/themes/barnred/light.css +51 -0
  158. package/themes/barnred/theme.css +306 -0
  159. package/themes/citrine/dark-hc.css +51 -0
  160. package/themes/citrine/dark-mc.css +51 -0
  161. package/themes/citrine/dark.css +51 -0
  162. package/themes/citrine/light-hc.css +51 -0
  163. package/themes/citrine/light-mc.css +51 -0
  164. package/themes/citrine/light.css +51 -0
  165. package/themes/citrine/theme.css +306 -0
  166. package/themes/olivegreen/dark-hc.css +51 -0
  167. package/themes/olivegreen/dark-mc.css +51 -0
  168. package/themes/olivegreen/dark.css +51 -0
  169. package/themes/olivegreen/light-hc.css +51 -0
  170. package/themes/olivegreen/light-mc.css +51 -0
  171. package/themes/olivegreen/light.css +51 -0
  172. package/themes/olivegreen/theme.css +306 -0
  173. package/tsconfig.json +110 -0
  174. package/webpack.config.js +49 -0
@@ -0,0 +1,51 @@
1
+ .light-high-contrast {
2
+ --md-sys-color-primary: rgb(41 47 0);
3
+ --md-sys-color-surface-tint: rgb(90 99 30);
4
+ --md-sys-color-on-primary: rgb(255 255 255);
5
+ --md-sys-color-primary-container: rgb(69 78 8);
6
+ --md-sys-color-on-primary-container: rgb(255 255 255);
7
+ --md-sys-color-secondary: rgb(43 46 22);
8
+ --md-sys-color-on-secondary: rgb(255 255 255);
9
+ --md-sys-color-secondary-container: rgb(72 75 49);
10
+ --md-sys-color-on-secondary-container: rgb(255 255 255);
11
+ --md-sys-color-tertiary: rgb(0 51 41);
12
+ --md-sys-color-on-tertiary: rgb(255 255 255);
13
+ --md-sys-color-tertiary-container: rgb(37 81 70);
14
+ --md-sys-color-on-tertiary-container: rgb(255 255 255);
15
+ --md-sys-color-error: rgb(96 0 4);
16
+ --md-sys-color-on-error: rgb(255 255 255);
17
+ --md-sys-color-error-container: rgb(152 0 10);
18
+ --md-sys-color-on-error-container: rgb(255 255 255);
19
+ --md-sys-color-background: rgb(252 250 237);
20
+ --md-sys-color-on-background: rgb(27 28 20);
21
+ --md-sys-color-surface: rgb(252 250 237);
22
+ --md-sys-color-on-surface: rgb(0 0 0);
23
+ --md-sys-color-surface-variant: rgb(228 227 210);
24
+ --md-sys-color-on-surface-variant: rgb(0 0 0);
25
+ --md-sys-color-outline: rgb(44 45 34);
26
+ --md-sys-color-outline-variant: rgb(73 74 61);
27
+ --md-sys-color-shadow: rgb(0 0 0);
28
+ --md-sys-color-scrim: rgb(0 0 0);
29
+ --md-sys-color-inverse-surface: rgb(48 49 40);
30
+ --md-sys-color-inverse-on-surface: rgb(255 255 255);
31
+ --md-sys-color-inverse-primary: rgb(194 205 124);
32
+ --md-sys-color-primary-fixed: rgb(69 78 8);
33
+ --md-sys-color-on-primary-fixed: rgb(255 255 255);
34
+ --md-sys-color-primary-fixed-dim: rgb(47 54 0);
35
+ --md-sys-color-on-primary-fixed-variant: rgb(255 255 255);
36
+ --md-sys-color-secondary-fixed: rgb(72 75 49);
37
+ --md-sys-color-on-secondary-fixed: rgb(255 255 255);
38
+ --md-sys-color-secondary-fixed-dim: rgb(49 53 28);
39
+ --md-sys-color-on-secondary-fixed-variant: rgb(255 255 255);
40
+ --md-sys-color-tertiary-fixed: rgb(37 81 70);
41
+ --md-sys-color-on-tertiary-fixed: rgb(255 255 255);
42
+ --md-sys-color-tertiary-fixed-dim: rgb(9 58 48);
43
+ --md-sys-color-on-tertiary-fixed-variant: rgb(255 255 255);
44
+ --md-sys-color-surface-dim: rgb(186 185 173);
45
+ --md-sys-color-surface-bright: rgb(252 250 237);
46
+ --md-sys-color-surface-container-lowest: rgb(255 255 255);
47
+ --md-sys-color-surface-container-low: rgb(243 241 228);
48
+ --md-sys-color-surface-container: rgb(228 227 214);
49
+ --md-sys-color-surface-container-high: rgb(214 213 200);
50
+ --md-sys-color-surface-container-highest: rgb(200 199 187);
51
+ }
@@ -0,0 +1,51 @@
1
+ .light-medium-contrast {
2
+ --md-sys-color-primary: rgb(51 58 0);
3
+ --md-sys-color-surface-tint: rgb(90 99 30);
4
+ --md-sys-color-on-primary: rgb(255 255 255);
5
+ --md-sys-color-primary-container: rgb(105 114 44);
6
+ --md-sys-color-on-primary-container: rgb(255 255 255);
7
+ --md-sys-color-secondary: rgb(53 56 31);
8
+ --md-sys-color-on-secondary: rgb(255 255 255);
9
+ --md-sys-color-secondary-container: rgb(108 111 82);
10
+ --md-sys-color-on-secondary-container: rgb(255 255 255);
11
+ --md-sys-color-tertiary: rgb(14 61 51);
12
+ --md-sys-color-on-tertiary: rgb(255 255 255);
13
+ --md-sys-color-tertiary-container: rgb(74 117 105);
14
+ --md-sys-color-on-tertiary-container: rgb(255 255 255);
15
+ --md-sys-color-error: rgb(116 0 6);
16
+ --md-sys-color-on-error: rgb(255 255 255);
17
+ --md-sys-color-error-container: rgb(207 44 39);
18
+ --md-sys-color-on-error-container: rgb(255 255 255);
19
+ --md-sys-color-background: rgb(252 250 237);
20
+ --md-sys-color-on-background: rgb(27 28 20);
21
+ --md-sys-color-surface: rgb(252 250 237);
22
+ --md-sys-color-on-surface: rgb(17 18 11);
23
+ --md-sys-color-surface-variant: rgb(228 227 210);
24
+ --md-sys-color-on-surface-variant: rgb(54 55 43);
25
+ --md-sys-color-outline: rgb(83 83 70);
26
+ --md-sys-color-outline-variant: rgb(109 110 96);
27
+ --md-sys-color-shadow: rgb(0 0 0);
28
+ --md-sys-color-scrim: rgb(0 0 0);
29
+ --md-sys-color-inverse-surface: rgb(48 49 40);
30
+ --md-sys-color-inverse-on-surface: rgb(243 241 228);
31
+ --md-sys-color-inverse-primary: rgb(194 205 124);
32
+ --md-sys-color-primary-fixed: rgb(105 114 44);
33
+ --md-sys-color-on-primary-fixed: rgb(255 255 255);
34
+ --md-sys-color-primary-fixed-dim: rgb(81 89 21);
35
+ --md-sys-color-on-primary-fixed-variant: rgb(255 255 255);
36
+ --md-sys-color-secondary-fixed: rgb(108 111 82);
37
+ --md-sys-color-on-secondary-fixed: rgb(255 255 255);
38
+ --md-sys-color-secondary-fixed-dim: rgb(84 87 60);
39
+ --md-sys-color-on-secondary-fixed-variant: rgb(255 255 255);
40
+ --md-sys-color-tertiary-fixed: rgb(74 117 105);
41
+ --md-sys-color-on-tertiary-fixed: rgb(255 255 255);
42
+ --md-sys-color-tertiary-fixed-dim: rgb(49 93 81);
43
+ --md-sys-color-on-tertiary-fixed-variant: rgb(255 255 255);
44
+ --md-sys-color-surface-dim: rgb(200 199 187);
45
+ --md-sys-color-surface-bright: rgb(252 250 237);
46
+ --md-sys-color-surface-container-lowest: rgb(255 255 255);
47
+ --md-sys-color-surface-container-low: rgb(246 244 231);
48
+ --md-sys-color-surface-container: rgb(234 233 220);
49
+ --md-sys-color-surface-container-high: rgb(223 221 209);
50
+ --md-sys-color-surface-container-highest: rgb(211 210 198);
51
+ }
@@ -0,0 +1,51 @@
1
+ .light {
2
+ --md-sys-color-primary: rgb(90 99 30);
3
+ --md-sys-color-surface-tint: rgb(90 99 30);
4
+ --md-sys-color-on-primary: rgb(255 255 255);
5
+ --md-sys-color-primary-container: rgb(223 233 149);
6
+ --md-sys-color-on-primary-container: rgb(67 75 6);
7
+ --md-sys-color-secondary: rgb(93 97 69);
8
+ --md-sys-color-on-secondary: rgb(255 255 255);
9
+ --md-sys-color-secondary-container: rgb(227 229 194);
10
+ --md-sys-color-on-secondary-container: rgb(70 73 47);
11
+ --md-sys-color-tertiary: rgb(59 102 91);
12
+ --md-sys-color-on-tertiary: rgb(255 255 255);
13
+ --md-sys-color-tertiary-container: rgb(189 236 222);
14
+ --md-sys-color-on-tertiary-container: rgb(34 78 68);
15
+ --md-sys-color-error: rgb(186 26 26);
16
+ --md-sys-color-on-error: rgb(255 255 255);
17
+ --md-sys-color-error-container: rgb(255 218 214);
18
+ --md-sys-color-on-error-container: rgb(147 0 10);
19
+ --md-sys-color-background: rgb(252 250 237);
20
+ --md-sys-color-on-background: rgb(27 28 20);
21
+ --md-sys-color-surface: rgb(252 250 237);
22
+ --md-sys-color-on-surface: rgb(27 28 20);
23
+ --md-sys-color-surface-variant: rgb(228 227 210);
24
+ --md-sys-color-on-surface-variant: rgb(71 72 59);
25
+ --md-sys-color-outline: rgb(120 120 106);
26
+ --md-sys-color-outline-variant: rgb(200 199 183);
27
+ --md-sys-color-shadow: rgb(0 0 0);
28
+ --md-sys-color-scrim: rgb(0 0 0);
29
+ --md-sys-color-inverse-surface: rgb(48 49 40);
30
+ --md-sys-color-inverse-on-surface: rgb(243 241 228);
31
+ --md-sys-color-inverse-primary: rgb(194 205 124);
32
+ --md-sys-color-primary-fixed: rgb(223 233 149);
33
+ --md-sys-color-on-primary-fixed: rgb(25 30 0);
34
+ --md-sys-color-primary-fixed-dim: rgb(194 205 124);
35
+ --md-sys-color-on-primary-fixed-variant: rgb(67 75 6);
36
+ --md-sys-color-secondary-fixed: rgb(227 229 194);
37
+ --md-sys-color-on-secondary-fixed: rgb(26 29 7);
38
+ --md-sys-color-secondary-fixed-dim: rgb(198 201 167);
39
+ --md-sys-color-on-secondary-fixed-variant: rgb(70 73 47);
40
+ --md-sys-color-tertiary-fixed: rgb(189 236 222);
41
+ --md-sys-color-on-tertiary-fixed: rgb(0 32 26);
42
+ --md-sys-color-tertiary-fixed-dim: rgb(162 208 194);
43
+ --md-sys-color-on-tertiary-fixed-variant: rgb(34 78 68);
44
+ --md-sys-color-surface-dim: rgb(220 218 206);
45
+ --md-sys-color-surface-bright: rgb(252 250 237);
46
+ --md-sys-color-surface-container-lowest: rgb(255 255 255);
47
+ --md-sys-color-surface-container-low: rgb(246 244 231);
48
+ --md-sys-color-surface-container: rgb(240 238 225);
49
+ --md-sys-color-surface-container-high: rgb(234 233 220);
50
+ --md-sys-color-surface-container-highest: rgb(228 227 214);
51
+ }
@@ -0,0 +1,306 @@
1
+ .light {
2
+ --md-sys-color-primary: rgb(90 99 30);
3
+ --md-sys-color-surface-tint: rgb(90 99 30);
4
+ --md-sys-color-on-primary: rgb(255 255 255);
5
+ --md-sys-color-primary-container: rgb(223 233 149);
6
+ --md-sys-color-on-primary-container: rgb(67 75 6);
7
+ --md-sys-color-secondary: rgb(93 97 69);
8
+ --md-sys-color-on-secondary: rgb(255 255 255);
9
+ --md-sys-color-secondary-container: rgb(227 229 194);
10
+ --md-sys-color-on-secondary-container: rgb(70 73 47);
11
+ --md-sys-color-tertiary: rgb(59 102 91);
12
+ --md-sys-color-on-tertiary: rgb(255 255 255);
13
+ --md-sys-color-tertiary-container: rgb(189 236 222);
14
+ --md-sys-color-on-tertiary-container: rgb(34 78 68);
15
+ --md-sys-color-error: rgb(186 26 26);
16
+ --md-sys-color-on-error: rgb(255 255 255);
17
+ --md-sys-color-error-container: rgb(255 218 214);
18
+ --md-sys-color-on-error-container: rgb(147 0 10);
19
+ --md-sys-color-background: rgb(252 250 237);
20
+ --md-sys-color-on-background: rgb(27 28 20);
21
+ --md-sys-color-surface: rgb(252 250 237);
22
+ --md-sys-color-on-surface: rgb(27 28 20);
23
+ --md-sys-color-surface-variant: rgb(228 227 210);
24
+ --md-sys-color-on-surface-variant: rgb(71 72 59);
25
+ --md-sys-color-outline: rgb(120 120 106);
26
+ --md-sys-color-outline-variant: rgb(200 199 183);
27
+ --md-sys-color-shadow: rgb(0 0 0);
28
+ --md-sys-color-scrim: rgb(0 0 0);
29
+ --md-sys-color-inverse-surface: rgb(48 49 40);
30
+ --md-sys-color-inverse-on-surface: rgb(243 241 228);
31
+ --md-sys-color-inverse-primary: rgb(194 205 124);
32
+ --md-sys-color-primary-fixed: rgb(223 233 149);
33
+ --md-sys-color-on-primary-fixed: rgb(25 30 0);
34
+ --md-sys-color-primary-fixed-dim: rgb(194 205 124);
35
+ --md-sys-color-on-primary-fixed-variant: rgb(67 75 6);
36
+ --md-sys-color-secondary-fixed: rgb(227 229 194);
37
+ --md-sys-color-on-secondary-fixed: rgb(26 29 7);
38
+ --md-sys-color-secondary-fixed-dim: rgb(198 201 167);
39
+ --md-sys-color-on-secondary-fixed-variant: rgb(70 73 47);
40
+ --md-sys-color-tertiary-fixed: rgb(189 236 222);
41
+ --md-sys-color-on-tertiary-fixed: rgb(0 32 26);
42
+ --md-sys-color-tertiary-fixed-dim: rgb(162 208 194);
43
+ --md-sys-color-on-tertiary-fixed-variant: rgb(34 78 68);
44
+ --md-sys-color-surface-dim: rgb(220 218 206);
45
+ --md-sys-color-surface-bright: rgb(252 250 237);
46
+ --md-sys-color-surface-container-lowest: rgb(255 255 255);
47
+ --md-sys-color-surface-container-low: rgb(246 244 231);
48
+ --md-sys-color-surface-container: rgb(240 238 225);
49
+ --md-sys-color-surface-container-high: rgb(234 233 220);
50
+ --md-sys-color-surface-container-highest: rgb(228 227 214);
51
+ }
52
+ .light-medium-contrast {
53
+ --md-sys-color-primary: rgb(51 58 0);
54
+ --md-sys-color-surface-tint: rgb(90 99 30);
55
+ --md-sys-color-on-primary: rgb(255 255 255);
56
+ --md-sys-color-primary-container: rgb(105 114 44);
57
+ --md-sys-color-on-primary-container: rgb(255 255 255);
58
+ --md-sys-color-secondary: rgb(53 56 31);
59
+ --md-sys-color-on-secondary: rgb(255 255 255);
60
+ --md-sys-color-secondary-container: rgb(108 111 82);
61
+ --md-sys-color-on-secondary-container: rgb(255 255 255);
62
+ --md-sys-color-tertiary: rgb(14 61 51);
63
+ --md-sys-color-on-tertiary: rgb(255 255 255);
64
+ --md-sys-color-tertiary-container: rgb(74 117 105);
65
+ --md-sys-color-on-tertiary-container: rgb(255 255 255);
66
+ --md-sys-color-error: rgb(116 0 6);
67
+ --md-sys-color-on-error: rgb(255 255 255);
68
+ --md-sys-color-error-container: rgb(207 44 39);
69
+ --md-sys-color-on-error-container: rgb(255 255 255);
70
+ --md-sys-color-background: rgb(252 250 237);
71
+ --md-sys-color-on-background: rgb(27 28 20);
72
+ --md-sys-color-surface: rgb(252 250 237);
73
+ --md-sys-color-on-surface: rgb(17 18 11);
74
+ --md-sys-color-surface-variant: rgb(228 227 210);
75
+ --md-sys-color-on-surface-variant: rgb(54 55 43);
76
+ --md-sys-color-outline: rgb(83 83 70);
77
+ --md-sys-color-outline-variant: rgb(109 110 96);
78
+ --md-sys-color-shadow: rgb(0 0 0);
79
+ --md-sys-color-scrim: rgb(0 0 0);
80
+ --md-sys-color-inverse-surface: rgb(48 49 40);
81
+ --md-sys-color-inverse-on-surface: rgb(243 241 228);
82
+ --md-sys-color-inverse-primary: rgb(194 205 124);
83
+ --md-sys-color-primary-fixed: rgb(105 114 44);
84
+ --md-sys-color-on-primary-fixed: rgb(255 255 255);
85
+ --md-sys-color-primary-fixed-dim: rgb(81 89 21);
86
+ --md-sys-color-on-primary-fixed-variant: rgb(255 255 255);
87
+ --md-sys-color-secondary-fixed: rgb(108 111 82);
88
+ --md-sys-color-on-secondary-fixed: rgb(255 255 255);
89
+ --md-sys-color-secondary-fixed-dim: rgb(84 87 60);
90
+ --md-sys-color-on-secondary-fixed-variant: rgb(255 255 255);
91
+ --md-sys-color-tertiary-fixed: rgb(74 117 105);
92
+ --md-sys-color-on-tertiary-fixed: rgb(255 255 255);
93
+ --md-sys-color-tertiary-fixed-dim: rgb(49 93 81);
94
+ --md-sys-color-on-tertiary-fixed-variant: rgb(255 255 255);
95
+ --md-sys-color-surface-dim: rgb(200 199 187);
96
+ --md-sys-color-surface-bright: rgb(252 250 237);
97
+ --md-sys-color-surface-container-lowest: rgb(255 255 255);
98
+ --md-sys-color-surface-container-low: rgb(246 244 231);
99
+ --md-sys-color-surface-container: rgb(234 233 220);
100
+ --md-sys-color-surface-container-high: rgb(223 221 209);
101
+ --md-sys-color-surface-container-highest: rgb(211 210 198);
102
+ }
103
+ .light-high-contrast {
104
+ --md-sys-color-primary: rgb(41 47 0);
105
+ --md-sys-color-surface-tint: rgb(90 99 30);
106
+ --md-sys-color-on-primary: rgb(255 255 255);
107
+ --md-sys-color-primary-container: rgb(69 78 8);
108
+ --md-sys-color-on-primary-container: rgb(255 255 255);
109
+ --md-sys-color-secondary: rgb(43 46 22);
110
+ --md-sys-color-on-secondary: rgb(255 255 255);
111
+ --md-sys-color-secondary-container: rgb(72 75 49);
112
+ --md-sys-color-on-secondary-container: rgb(255 255 255);
113
+ --md-sys-color-tertiary: rgb(0 51 41);
114
+ --md-sys-color-on-tertiary: rgb(255 255 255);
115
+ --md-sys-color-tertiary-container: rgb(37 81 70);
116
+ --md-sys-color-on-tertiary-container: rgb(255 255 255);
117
+ --md-sys-color-error: rgb(96 0 4);
118
+ --md-sys-color-on-error: rgb(255 255 255);
119
+ --md-sys-color-error-container: rgb(152 0 10);
120
+ --md-sys-color-on-error-container: rgb(255 255 255);
121
+ --md-sys-color-background: rgb(252 250 237);
122
+ --md-sys-color-on-background: rgb(27 28 20);
123
+ --md-sys-color-surface: rgb(252 250 237);
124
+ --md-sys-color-on-surface: rgb(0 0 0);
125
+ --md-sys-color-surface-variant: rgb(228 227 210);
126
+ --md-sys-color-on-surface-variant: rgb(0 0 0);
127
+ --md-sys-color-outline: rgb(44 45 34);
128
+ --md-sys-color-outline-variant: rgb(73 74 61);
129
+ --md-sys-color-shadow: rgb(0 0 0);
130
+ --md-sys-color-scrim: rgb(0 0 0);
131
+ --md-sys-color-inverse-surface: rgb(48 49 40);
132
+ --md-sys-color-inverse-on-surface: rgb(255 255 255);
133
+ --md-sys-color-inverse-primary: rgb(194 205 124);
134
+ --md-sys-color-primary-fixed: rgb(69 78 8);
135
+ --md-sys-color-on-primary-fixed: rgb(255 255 255);
136
+ --md-sys-color-primary-fixed-dim: rgb(47 54 0);
137
+ --md-sys-color-on-primary-fixed-variant: rgb(255 255 255);
138
+ --md-sys-color-secondary-fixed: rgb(72 75 49);
139
+ --md-sys-color-on-secondary-fixed: rgb(255 255 255);
140
+ --md-sys-color-secondary-fixed-dim: rgb(49 53 28);
141
+ --md-sys-color-on-secondary-fixed-variant: rgb(255 255 255);
142
+ --md-sys-color-tertiary-fixed: rgb(37 81 70);
143
+ --md-sys-color-on-tertiary-fixed: rgb(255 255 255);
144
+ --md-sys-color-tertiary-fixed-dim: rgb(9 58 48);
145
+ --md-sys-color-on-tertiary-fixed-variant: rgb(255 255 255);
146
+ --md-sys-color-surface-dim: rgb(186 185 173);
147
+ --md-sys-color-surface-bright: rgb(252 250 237);
148
+ --md-sys-color-surface-container-lowest: rgb(255 255 255);
149
+ --md-sys-color-surface-container-low: rgb(243 241 228);
150
+ --md-sys-color-surface-container: rgb(228 227 214);
151
+ --md-sys-color-surface-container-high: rgb(214 213 200);
152
+ --md-sys-color-surface-container-highest: rgb(200 199 187);
153
+ }
154
+ .dark {
155
+ --md-sys-color-primary: rgb(194 205 124);
156
+ --md-sys-color-surface-tint: rgb(194 205 124);
157
+ --md-sys-color-on-primary: rgb(45 52 0);
158
+ --md-sys-color-primary-container: rgb(67 75 6);
159
+ --md-sys-color-on-primary-container: rgb(223 233 149);
160
+ --md-sys-color-secondary: rgb(198 201 167);
161
+ --md-sys-color-on-secondary: rgb(47 50 26);
162
+ --md-sys-color-secondary-container: rgb(70 73 47);
163
+ --md-sys-color-on-secondary-container: rgb(227 229 194);
164
+ --md-sys-color-tertiary: rgb(162 208 194);
165
+ --md-sys-color-on-tertiary: rgb(6 55 46);
166
+ --md-sys-color-tertiary-container: rgb(34 78 68);
167
+ --md-sys-color-on-tertiary-container: rgb(189 236 222);
168
+ --md-sys-color-error: rgb(255 180 171);
169
+ --md-sys-color-on-error: rgb(105 0 5);
170
+ --md-sys-color-error-container: rgb(147 0 10);
171
+ --md-sys-color-on-error-container: rgb(255 218 214);
172
+ --md-sys-color-background: rgb(19 20 13);
173
+ --md-sys-color-on-background: rgb(228 227 214);
174
+ --md-sys-color-surface: rgb(19 20 13);
175
+ --md-sys-color-on-surface: rgb(228 227 214);
176
+ --md-sys-color-surface-variant: rgb(71 72 59);
177
+ --md-sys-color-on-surface-variant: rgb(200 199 183);
178
+ --md-sys-color-outline: rgb(145 146 131);
179
+ --md-sys-color-outline-variant: rgb(71 72 59);
180
+ --md-sys-color-shadow: rgb(0 0 0);
181
+ --md-sys-color-scrim: rgb(0 0 0);
182
+ --md-sys-color-inverse-surface: rgb(228 227 214);
183
+ --md-sys-color-inverse-on-surface: rgb(48 49 40);
184
+ --md-sys-color-inverse-primary: rgb(90 99 30);
185
+ --md-sys-color-primary-fixed: rgb(223 233 149);
186
+ --md-sys-color-on-primary-fixed: rgb(25 30 0);
187
+ --md-sys-color-primary-fixed-dim: rgb(194 205 124);
188
+ --md-sys-color-on-primary-fixed-variant: rgb(67 75 6);
189
+ --md-sys-color-secondary-fixed: rgb(227 229 194);
190
+ --md-sys-color-on-secondary-fixed: rgb(26 29 7);
191
+ --md-sys-color-secondary-fixed-dim: rgb(198 201 167);
192
+ --md-sys-color-on-secondary-fixed-variant: rgb(70 73 47);
193
+ --md-sys-color-tertiary-fixed: rgb(189 236 222);
194
+ --md-sys-color-on-tertiary-fixed: rgb(0 32 26);
195
+ --md-sys-color-tertiary-fixed-dim: rgb(162 208 194);
196
+ --md-sys-color-on-tertiary-fixed-variant: rgb(34 78 68);
197
+ --md-sys-color-surface-dim: rgb(19 20 13);
198
+ --md-sys-color-surface-bright: rgb(57 58 49);
199
+ --md-sys-color-surface-container-lowest: rgb(14 15 8);
200
+ --md-sys-color-surface-container-low: rgb(27 28 20);
201
+ --md-sys-color-surface-container: rgb(31 32 24);
202
+ --md-sys-color-surface-container-high: rgb(42 43 34);
203
+ --md-sys-color-surface-container-highest: rgb(53 53 45);
204
+ }
205
+ .dark-medium-contrast {
206
+ --md-sys-color-primary: rgb(216 227 144);
207
+ --md-sys-color-surface-tint: rgb(194 205 124);
208
+ --md-sys-color-on-primary: rgb(35 40 0);
209
+ --md-sys-color-primary-container: rgb(141 151 76);
210
+ --md-sys-color-on-primary-container: rgb(0 0 0);
211
+ --md-sys-color-secondary: rgb(220 223 188);
212
+ --md-sys-color-on-secondary: rgb(36 39 16);
213
+ --md-sys-color-secondary-container: rgb(144 147 116);
214
+ --md-sys-color-on-secondary-container: rgb(0 0 0);
215
+ --md-sys-color-tertiary: rgb(183 230 216);
216
+ --md-sys-color-on-tertiary: rgb(0 44 35);
217
+ --md-sys-color-tertiary-container: rgb(109 154 141);
218
+ --md-sys-color-on-tertiary-container: rgb(0 0 0);
219
+ --md-sys-color-error: rgb(255 210 204);
220
+ --md-sys-color-on-error: rgb(84 0 3);
221
+ --md-sys-color-error-container: rgb(255 84 73);
222
+ --md-sys-color-on-error-container: rgb(0 0 0);
223
+ --md-sys-color-background: rgb(19 20 13);
224
+ --md-sys-color-on-background: rgb(228 227 214);
225
+ --md-sys-color-surface: rgb(19 20 13);
226
+ --md-sys-color-on-surface: rgb(255 255 255);
227
+ --md-sys-color-surface-variant: rgb(71 72 59);
228
+ --md-sys-color-on-surface-variant: rgb(222 221 204);
229
+ --md-sys-color-outline: rgb(179 179 163);
230
+ --md-sys-color-outline-variant: rgb(145 145 130);
231
+ --md-sys-color-shadow: rgb(0 0 0);
232
+ --md-sys-color-scrim: rgb(0 0 0);
233
+ --md-sys-color-inverse-surface: rgb(228 227 214);
234
+ --md-sys-color-inverse-on-surface: rgb(42 43 34);
235
+ --md-sys-color-inverse-primary: rgb(68 76 7);
236
+ --md-sys-color-primary-fixed: rgb(223 233 149);
237
+ --md-sys-color-on-primary-fixed: rgb(16 19 0);
238
+ --md-sys-color-primary-fixed-dim: rgb(194 205 124);
239
+ --md-sys-color-on-primary-fixed-variant: rgb(51 58 0);
240
+ --md-sys-color-secondary-fixed: rgb(227 229 194);
241
+ --md-sys-color-on-secondary-fixed: rgb(16 19 1);
242
+ --md-sys-color-secondary-fixed-dim: rgb(198 201 167);
243
+ --md-sys-color-on-secondary-fixed-variant: rgb(53 56 31);
244
+ --md-sys-color-tertiary-fixed: rgb(189 236 222);
245
+ --md-sys-color-on-tertiary-fixed: rgb(0 21 16);
246
+ --md-sys-color-tertiary-fixed-dim: rgb(162 208 194);
247
+ --md-sys-color-on-tertiary-fixed-variant: rgb(14 61 51);
248
+ --md-sys-color-surface-dim: rgb(19 20 13);
249
+ --md-sys-color-surface-bright: rgb(69 69 60);
250
+ --md-sys-color-surface-container-lowest: rgb(7 8 3);
251
+ --md-sys-color-surface-container-low: rgb(29 30 22);
252
+ --md-sys-color-surface-container: rgb(40 40 32);
253
+ --md-sys-color-surface-container-high: rgb(51 51 43);
254
+ --md-sys-color-surface-container-highest: rgb(62 62 53);
255
+ }
256
+ .dark-high-contrast {
257
+ --md-sys-color-primary: rgb(236 247 161);
258
+ --md-sys-color-surface-tint: rgb(194 205 124);
259
+ --md-sys-color-on-primary: rgb(0 0 0);
260
+ --md-sys-color-primary-container: rgb(191 201 120);
261
+ --md-sys-color-on-primary-container: rgb(10 13 0);
262
+ --md-sys-color-secondary: rgb(240 243 207);
263
+ --md-sys-color-on-secondary: rgb(0 0 0);
264
+ --md-sys-color-secondary-container: rgb(194 197 163);
265
+ --md-sys-color-on-secondary-container: rgb(10 13 0);
266
+ --md-sys-color-tertiary: rgb(203 250 235);
267
+ --md-sys-color-on-tertiary: rgb(0 0 0);
268
+ --md-sys-color-tertiary-container: rgb(158 204 190);
269
+ --md-sys-color-on-tertiary-container: rgb(0 14 10);
270
+ --md-sys-color-error: rgb(255 236 233);
271
+ --md-sys-color-on-error: rgb(0 0 0);
272
+ --md-sys-color-error-container: rgb(255 174 164);
273
+ --md-sys-color-on-error-container: rgb(34 0 1);
274
+ --md-sys-color-background: rgb(19 20 13);
275
+ --md-sys-color-on-background: rgb(228 227 214);
276
+ --md-sys-color-surface: rgb(19 20 13);
277
+ --md-sys-color-on-surface: rgb(255 255 255);
278
+ --md-sys-color-surface-variant: rgb(71 72 59);
279
+ --md-sys-color-on-surface-variant: rgb(255 255 255);
280
+ --md-sys-color-outline: rgb(242 241 223);
281
+ --md-sys-color-outline-variant: rgb(196 195 179);
282
+ --md-sys-color-shadow: rgb(0 0 0);
283
+ --md-sys-color-scrim: rgb(0 0 0);
284
+ --md-sys-color-inverse-surface: rgb(228 227 214);
285
+ --md-sys-color-inverse-on-surface: rgb(0 0 0);
286
+ --md-sys-color-inverse-primary: rgb(68 76 7);
287
+ --md-sys-color-primary-fixed: rgb(223 233 149);
288
+ --md-sys-color-on-primary-fixed: rgb(0 0 0);
289
+ --md-sys-color-primary-fixed-dim: rgb(194 205 124);
290
+ --md-sys-color-on-primary-fixed-variant: rgb(16 19 0);
291
+ --md-sys-color-secondary-fixed: rgb(227 229 194);
292
+ --md-sys-color-on-secondary-fixed: rgb(0 0 0);
293
+ --md-sys-color-secondary-fixed-dim: rgb(198 201 167);
294
+ --md-sys-color-on-secondary-fixed-variant: rgb(16 19 1);
295
+ --md-sys-color-tertiary-fixed: rgb(189 236 222);
296
+ --md-sys-color-on-tertiary-fixed: rgb(0 0 0);
297
+ --md-sys-color-tertiary-fixed-dim: rgb(162 208 194);
298
+ --md-sys-color-on-tertiary-fixed-variant: rgb(0 21 16);
299
+ --md-sys-color-surface-dim: rgb(19 20 13);
300
+ --md-sys-color-surface-bright: rgb(80 81 71);
301
+ --md-sys-color-surface-container-lowest: rgb(0 0 0);
302
+ --md-sys-color-surface-container-low: rgb(31 32 24);
303
+ --md-sys-color-surface-container: rgb(48 49 40);
304
+ --md-sys-color-surface-container-high: rgb(60 60 51);
305
+ --md-sys-color-surface-container-highest: rgb(71 71 62);
306
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,110 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig to read more about this file */
4
+
5
+ /* Projects */
6
+ // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7
+ // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
+ // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9
+ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
10
+ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
+ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
+
13
+ /* Language and Environment */
14
+ "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
+ // "jsx": "preserve", /* Specify what JSX code is generated. */
17
+ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
18
+ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
+ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
20
+ // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21
+ // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
22
+ // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
23
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24
+ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
+
27
+ /* Modules */
28
+ "module": "es2022", /* Specify what module code is generated. */
29
+ // "rootDir": "./", /* Specify the root folder within your source files. */
30
+ "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
31
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
34
+ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
35
+ // "types": [], /* Specify type package names to be included without being referenced in a source file. */
36
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
37
+ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
38
+ // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39
+ // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
40
+ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
41
+ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
42
+ // "noUncheckedSideEffectImports": true, /* Check side effect imports. */
43
+ // "resolveJsonModule": true, /* Enable importing .json files. */
44
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
45
+ // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
46
+
47
+ /* JavaScript Support */
48
+ // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
49
+ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
50
+ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
51
+
52
+ /* Emit */
53
+ // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
54
+ // "declarationMap": true, /* Create sourcemaps for d.ts files. */
55
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
56
+ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
57
+ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
58
+ // "noEmit": true, /* Disable emitting files from a compilation. */
59
+ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
60
+ // "outDir": "./", /* Specify an output folder for all emitted files. */
61
+ // "removeComments": true, /* Disable emitting comments. */
62
+ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
63
+ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
64
+ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
65
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
66
+ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
67
+ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
68
+ // "newLine": "crlf", /* Set the newline character for emitting files. */
69
+ // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
70
+ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
71
+ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
72
+ // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
73
+ // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
74
+
75
+ /* Interop Constraints */
76
+ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
77
+ // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
78
+ // "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */
79
+ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
80
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
81
+ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
82
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
83
+
84
+ /* Type Checking */
85
+ "strict": true, /* Enable all strict type-checking options. */
86
+ "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
87
+ "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
88
+ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
89
+ // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
90
+ // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
91
+ // "strictBuiltinIteratorReturn": true, /* Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'. */
92
+ // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
93
+ // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
94
+ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
95
+ // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
96
+ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
97
+ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
98
+ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
99
+ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
100
+ // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
101
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
102
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
103
+ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
104
+ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
105
+
106
+ /* Completeness */
107
+ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
108
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
109
+ }
110
+ }
@@ -0,0 +1,49 @@
1
+ const path = require('path');
2
+ const glob = require('glob');
3
+ const webpack = require('webpack');
4
+ const miniCss = require('mini-css-extract-plugin');
5
+ const distDir = path.resolve(__dirname, 'dist');
6
+
7
+ const scssFiles = glob.sync('./components/**/*.scss');
8
+ const scssEntries = scssFiles.reduce((entries, filePath) => {
9
+ const componentName = path.basename(filePath, '.scss');
10
+ entries[componentName] = './' + filePath;
11
+ return entries;
12
+ }, {});
13
+
14
+ module.exports = [{
15
+ mode: 'production',
16
+ entry: {
17
+ ...scssEntries,
18
+ micl: ['./styles.scss', './components.ts']
19
+ },
20
+ resolve: {
21
+ extensions: ['.ts', '.tsx', '.js']
22
+ },
23
+ output: {
24
+ path: distDir,
25
+ filename: '[name].js',
26
+ clean: true
27
+ },
28
+ module: {
29
+ rules: [{
30
+ test: /\.scss$/,
31
+ use : [
32
+ miniCss.loader,
33
+ 'css-loader',
34
+ 'postcss-loader',
35
+ 'sass-loader'
36
+ ]
37
+ },
38
+ {
39
+ test: /\.tsx?$/,
40
+ use: 'ts-loader',
41
+ exclude: /node_modules/
42
+ }]
43
+ },
44
+ plugins: [
45
+ new miniCss({
46
+ filename: '[name].css'
47
+ })
48
+ ]
49
+ }];