material-inspired-component-library 4.0.2 → 5.0.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.
- package/README.md +14 -0
- package/components/alert/index.scss +4 -4
- package/components/appbar/index.scss +3 -2
- package/components/badge/index.scss +2 -2
- package/components/bottomsheet/index.scss +6 -5
- package/components/button/index.scss +21 -20
- package/components/card/index.scss +10 -9
- package/components/checkbox/index.scss +11 -11
- package/components/datepicker/index.scss +435 -0
- package/components/datepicker/index.ts +600 -0
- package/components/dialog/README.md +14 -12
- package/components/dialog/index.scss +79 -62
- package/components/divider/index.scss +2 -0
- package/components/iconbutton/index.scss +18 -17
- package/components/list/index.scss +10 -10
- package/components/menu/index.scss +2 -1
- package/components/navigationrail/index.scss +10 -9
- package/components/radio/README.md +0 -1
- package/components/radio/index.scss +11 -11
- package/components/select/index.scss +2 -1
- package/components/sidesheet/index.scss +3 -1
- package/components/slider/index.scss +7 -7
- package/components/stepper/index.scss +5 -4
- package/components/switch/README.md +0 -1
- package/components/switch/index.scss +21 -21
- package/components/textfield/index.scss +6 -5
- package/components/textfield/index.ts +7 -6
- package/components/timepicker/README.md +135 -0
- package/components/timepicker/index.scss +245 -122
- package/components/timepicker/index.ts +348 -45
- package/dist/alert.css +1 -1
- package/dist/appbar.css +1 -1
- package/dist/badge.css +1 -1
- package/dist/bottomsheet.css +1 -1
- package/dist/button.css +1 -1
- package/dist/card.css +1 -1
- package/dist/checkbox.css +1 -1
- package/dist/components/datepicker/index.d.ts +6 -0
- package/dist/datepicker.css +1 -0
- package/dist/datepicker.js +1 -0
- package/dist/dialog.css +1 -1
- package/dist/divider.css +1 -1
- package/dist/foundations.css +1 -0
- package/dist/foundations.js +1 -0
- package/dist/iconbutton.css +1 -1
- package/dist/layout.css +1 -1
- package/dist/list.css +1 -1
- package/dist/menu.css +1 -1
- package/dist/micl.css +1 -1
- package/dist/micl.js +1 -1
- package/dist/navigationrail.css +1 -1
- package/dist/radio.css +1 -1
- package/dist/scrollbar.css +1 -0
- package/dist/scrollbar.js +1 -0
- package/dist/select.css +1 -1
- package/dist/sidesheet.css +1 -1
- package/dist/slider.css +1 -1
- package/dist/stepper.css +1 -1
- package/dist/switch.css +1 -1
- package/dist/textfield.css +1 -1
- package/dist/timepicker.css +1 -1
- package/docs/accordion.html +3 -1
- package/docs/alert.html +3 -1
- package/docs/bottomsheet.html +4 -2
- package/docs/button.html +3 -1
- package/docs/card.html +3 -1
- package/docs/checkbox.html +3 -1
- package/docs/datepicker.html +151 -0
- package/docs/dialog.html +33 -19
- package/docs/divider.html +3 -1
- package/docs/docs.js +43 -0
- package/docs/iconbutton.html +1 -1
- package/docs/index.html +34 -8
- package/docs/list.html +3 -1
- package/docs/menu.html +3 -1
- package/docs/micl.css +1 -1
- package/docs/micl.js +1 -1
- package/docs/navigationrail.html +3 -1
- package/docs/radio.html +3 -1
- package/docs/select.html +3 -1
- package/docs/sidesheet.html +3 -1
- package/docs/slider.html +1 -1
- package/docs/stepper.html +3 -1
- package/docs/switch.html +3 -1
- package/docs/textfield.html +3 -1
- package/docs/timepicker.html +66 -27
- package/foundations/index.scss +102 -0
- package/foundations/layout/index.scss +0 -52
- package/foundations/scrollbar/index.scss +46 -0
- package/intl.d.ts +9 -0
- package/micl.ts +18 -8
- package/package.json +17 -15
- package/styles/README.md +17 -8
- package/styles/motion.scss +3 -0
- package/styles/shapes.scss +23 -18
- package/styles/statelayer.scss +4 -0
- package/styles/typography.scss +2 -2
- package/styles.scss +3 -26
- package/tsconfig.json +2 -2
package/micl.ts
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
import _bottomsheet, { bottomsheetSelector } from './components/bottomsheet';
|
|
23
23
|
import _button, { buttonSelector } from './components/button';
|
|
24
24
|
import _checkboxgroup, { checkboxGroupSelector } from './components/checkbox';
|
|
25
|
+
import _datepicker, { datepickerSelector } from './components/datepicker';
|
|
25
26
|
import _list, { listSelector } from './components/list';
|
|
26
27
|
import _menu, { menuSelector } from './components/menu';
|
|
27
28
|
import _navigationrail, { navigationrailSelector } from './components/navigationrail';
|
|
@@ -47,6 +48,7 @@ export default (() =>
|
|
|
47
48
|
[bottomsheetSelector] : { component: _bottomsheet, type: HTMLDialogElement },
|
|
48
49
|
[buttonSelector] : { component: _button, type: HTMLButtonElement },
|
|
49
50
|
[checkboxGroupSelector] : { component: _checkboxgroup, type: HTMLElement },
|
|
51
|
+
[datepickerSelector] : { component: _datepicker, type: HTMLDialogElement },
|
|
50
52
|
[listSelector] : { component: _list, type: HTMLElement },
|
|
51
53
|
[menuSelector] : { component: _menu, type: HTMLElement },
|
|
52
54
|
[navigationrailSelector]: { component: _navigationrail, type: HTMLLabelElement },
|
|
@@ -60,6 +62,14 @@ export default (() =>
|
|
|
60
62
|
|
|
61
63
|
const selector = Object.keys(componentMap).join(',');
|
|
62
64
|
|
|
65
|
+
const initializeScrollbars = (): void =>
|
|
66
|
+
{
|
|
67
|
+
document.documentElement.style.setProperty(
|
|
68
|
+
'--md-sys-scrollbar-thumb-color',
|
|
69
|
+
window.getComputedStyle(document.body).getPropertyValue('--md-sys-color-outline').trim()
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
|
|
63
73
|
const initializeComponent = (element: HTMLElement): void =>
|
|
64
74
|
{
|
|
65
75
|
for (const [selector, { component, type }] of Object.entries(componentMap)) {
|
|
@@ -94,6 +104,8 @@ export default (() =>
|
|
|
94
104
|
});
|
|
95
105
|
}
|
|
96
106
|
});
|
|
107
|
+
|
|
108
|
+
initializeScrollbars();
|
|
97
109
|
};
|
|
98
110
|
|
|
99
111
|
const cleanupComponent = (element: HTMLElement): void =>
|
|
@@ -118,14 +130,12 @@ export default (() =>
|
|
|
118
130
|
const handleEvent = (event: Event): void =>
|
|
119
131
|
{
|
|
120
132
|
for (const [selector, { component, type }] of Object.entries(componentMap)) {
|
|
121
|
-
if (
|
|
122
|
-
(event.target as Element).
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
component[event.type as ComponentKey]?.(event);
|
|
128
|
-
return;
|
|
133
|
+
if (typeof component[event.type as ComponentKey] === 'function') {
|
|
134
|
+
const e = (event.target as Element).closest(selector);
|
|
135
|
+
if (e instanceof type) {
|
|
136
|
+
component[event.type as ComponentKey]?.(event);
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
129
139
|
}
|
|
130
140
|
}
|
|
131
141
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "material-inspired-component-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "The Material-Inspired Component Library (MICL) offers a collection of beautifully crafted components leveraging native HTML markup, designed to align with the Material Design 3 guidelines.",
|
|
5
5
|
"author": "MICL Hermana <micl.hermana@proton.me> (https://github.com/henkpb/micl)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"button",
|
|
22
22
|
"card",
|
|
23
23
|
"checkbox",
|
|
24
|
+
"date picker",
|
|
24
25
|
"dialog",
|
|
25
26
|
"divider",
|
|
26
27
|
"iconbutton",
|
|
@@ -34,7 +35,8 @@
|
|
|
34
35
|
"slider",
|
|
35
36
|
"stepper",
|
|
36
37
|
"switch",
|
|
37
|
-
"textfield"
|
|
38
|
+
"textfield",
|
|
39
|
+
"time picker"
|
|
38
40
|
],
|
|
39
41
|
"repository": {
|
|
40
42
|
"type": "git",
|
|
@@ -51,18 +53,18 @@
|
|
|
51
53
|
},
|
|
52
54
|
"sideEffects": false,
|
|
53
55
|
"devDependencies": {
|
|
54
|
-
"autoprefixer": "^10.4
|
|
55
|
-
"css-loader": "^7.1
|
|
56
|
-
"extract-loader": "^5.1
|
|
57
|
-
"file-loader": "^6.2
|
|
58
|
-
"glob": "^
|
|
59
|
-
"mini-css-extract-plugin": "^2.9
|
|
60
|
-
"postcss-loader": "^8.
|
|
61
|
-
"sass": "^1.
|
|
62
|
-
"sass-loader": "^16.0
|
|
63
|
-
"ts-loader": "^9.5
|
|
64
|
-
"typescript": "^5.9
|
|
65
|
-
"webpack": "^5.
|
|
66
|
-
"webpack-cli": "^6.0
|
|
56
|
+
"autoprefixer": "^10.4",
|
|
57
|
+
"css-loader": "^7.1",
|
|
58
|
+
"extract-loader": "^5.1",
|
|
59
|
+
"file-loader": "^6.2",
|
|
60
|
+
"glob": "^13.0",
|
|
61
|
+
"mini-css-extract-plugin": "^2.9",
|
|
62
|
+
"postcss-loader": "^8.2",
|
|
63
|
+
"sass": "^1.94",
|
|
64
|
+
"sass-loader": "^16.0",
|
|
65
|
+
"ts-loader": "^9.5",
|
|
66
|
+
"typescript": "^5.9",
|
|
67
|
+
"webpack": "^5.103",
|
|
68
|
+
"webpack-cli": "^6.0"
|
|
67
69
|
}
|
|
68
70
|
}
|
package/styles/README.md
CHANGED
|
@@ -23,7 +23,7 @@ You can customize elevation levels by overriding their global CSS variables.
|
|
|
23
23
|
</div>
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
## Motion
|
|
28
28
|
Motion brings your UI to life, making it expressive and intuitive to use. The motion styles are based on the [Material Design 3 Motion](https://m3.material.io/styles/motion/overview/how-it-works) guidelines.
|
|
29
29
|
|
|
@@ -34,7 +34,7 @@ Import the motion styles into your project:
|
|
|
34
34
|
@use "material-inspired-component-library/styles/motion";
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
|
|
38
38
|
## Shapes
|
|
39
39
|
Shapes add decorative flair and help emphasize elements. These styles adhere to the [Material Design 3 Shape](https://m3.material.io/styles/shape/overview-principles) principles.
|
|
40
40
|
|
|
@@ -57,7 +57,7 @@ You can customize a component's shape by overriding its global CSS variables, su
|
|
|
57
57
|
</div>
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
|
|
61
61
|
## State layers
|
|
62
62
|
State layers are visual overlays that communicate the interaction status of a component, such as when it's hovered over or pressed. These are based on [Material Design 3 States](https://m3.material.io/foundations/interaction/states/overview).
|
|
63
63
|
|
|
@@ -78,7 +78,7 @@ Customize the appearance of state layers by overriding their global CSS variable
|
|
|
78
78
|
</div>
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
|
|
82
82
|
## Typography
|
|
83
83
|
Typography is the foundation of text styling. The typography styles in this library are based on the [Material Design 3 Typography](https://m3.material.io/styles/typography/overview) specifications.
|
|
84
84
|
|
|
@@ -90,10 +90,19 @@ Import the typography styles into your project:
|
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
### Customizations
|
|
93
|
-
You can customize font settings by overriding their global CSS variables.
|
|
93
|
+
You can customize font settings by overriding their global CSS variables on the **:root** CSS pseudo-class.
|
|
94
|
+
|
|
95
|
+
**Changing both the plain and brand style font:**
|
|
94
96
|
|
|
95
|
-
|
|
97
|
+
```CSS
|
|
98
|
+
:root {
|
|
99
|
+
--md-ref-typeface-plain: Roboto, system-ui, sans-serif;
|
|
100
|
+
--md-ref-typeface-brand: Roboto, system-ui, sans-serif;
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
And include a reference to the font in your application.
|
|
96
105
|
|
|
97
106
|
```HTML
|
|
98
|
-
<
|
|
99
|
-
|
|
107
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap">
|
|
108
|
+
```
|
package/styles/motion.scss
CHANGED
|
@@ -104,6 +104,8 @@ $md-sys-motion-duration-extra-long2: 800ms;
|
|
|
104
104
|
$md-sys-motion-duration-extra-long3: 900ms;
|
|
105
105
|
$md-sys-motion-duration-extra-long4: 1000ms;
|
|
106
106
|
|
|
107
|
+
$md-sys-motion-path: linear;
|
|
108
|
+
|
|
107
109
|
:root {
|
|
108
110
|
--md-sys-motion-duration-short1: #{$md-sys-motion-duration-short1};
|
|
109
111
|
--md-sys-motion-duration-short2: #{$md-sys-motion-duration-short2};
|
|
@@ -121,4 +123,5 @@ $md-sys-motion-duration-extra-long4: 1000ms;
|
|
|
121
123
|
--md-sys-motion-duration-extra-long2: #{$md-sys-motion-duration-extra-long2};
|
|
122
124
|
--md-sys-motion-duration-extra-long3: #{$md-sys-motion-duration-extra-long3};
|
|
123
125
|
--md-sys-motion-duration-extra-long4: #{$md-sys-motion-duration-extra-long4};
|
|
126
|
+
--md-sys-motion-path: #{$md-sys-motion-path};
|
|
124
127
|
}
|
package/styles/shapes.scss
CHANGED
|
@@ -19,26 +19,31 @@
|
|
|
19
19
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
20
|
// SOFTWARE.
|
|
21
21
|
|
|
22
|
-
$md-sys-shape-corner-none: 0px;
|
|
23
|
-
$md-sys-shape-corner-extra-small: 4px;
|
|
24
|
-
$md-sys-shape-corner-small: 8px;
|
|
25
|
-
$md-sys-shape-corner-medium: 12px;
|
|
26
|
-
$md-sys-shape-corner-large: 16px;
|
|
27
|
-
$md-sys-shape-corner-large-increased: 20px;
|
|
28
|
-
$md-sys-shape-corner-extra-large: 28px;
|
|
29
|
-
$md-sys-shape-corner-extra-large-increased: 32px;
|
|
30
|
-
$md-sys-shape-corner-extra-extra-large: 48px;
|
|
22
|
+
$md-sys-shape-corner-value-none: 0px;
|
|
23
|
+
$md-sys-shape-corner-value-extra-small: 4px;
|
|
24
|
+
$md-sys-shape-corner-value-small: 8px;
|
|
25
|
+
$md-sys-shape-corner-value-medium: 12px;
|
|
26
|
+
$md-sys-shape-corner-value-large: 16px;
|
|
27
|
+
$md-sys-shape-corner-value-large-increased: 20px;
|
|
28
|
+
$md-sys-shape-corner-value-extra-large: 28px;
|
|
29
|
+
$md-sys-shape-corner-value-extra-large-increased: 32px;
|
|
30
|
+
$md-sys-shape-corner-value-extra-extra-large: 48px;
|
|
31
31
|
$md-sys-shape-corner-full: 50%;
|
|
32
32
|
|
|
33
33
|
:root {
|
|
34
|
-
--md-sys-shape-corner-none: #{$md-sys-shape-corner-none};
|
|
35
|
-
--md-sys-shape-corner-extra-small: #{$md-sys-shape-corner-extra-small};
|
|
36
|
-
--md-sys-shape-corner-small: #{$md-sys-shape-corner-small};
|
|
37
|
-
--md-sys-shape-corner-
|
|
38
|
-
--md-sys-shape-corner-
|
|
39
|
-
--md-sys-shape-corner-large
|
|
40
|
-
--md-sys-shape-corner-
|
|
41
|
-
--md-sys-shape-corner-
|
|
42
|
-
--md-sys-shape-corner-
|
|
34
|
+
--md-sys-shape-corner-none: #{$md-sys-shape-corner-value-none};
|
|
35
|
+
--md-sys-shape-corner-extra-small: #{$md-sys-shape-corner-value-extra-small};
|
|
36
|
+
--md-sys-shape-corner-extra-small-top: #{$md-sys-shape-corner-value-extra-small} #{$md-sys-shape-corner-value-extra-small} 0 0;
|
|
37
|
+
--md-sys-shape-corner-small: #{$md-sys-shape-corner-value-small};
|
|
38
|
+
--md-sys-shape-corner-medium: #{$md-sys-shape-corner-value-medium};
|
|
39
|
+
--md-sys-shape-corner-large: #{$md-sys-shape-corner-value-large};
|
|
40
|
+
--md-sys-shape-corner-large-end: 0 #{$md-sys-shape-corner-value-large} #{$md-sys-shape-corner-value-large} 0;
|
|
41
|
+
--md-sys-shape-corner-large-start: #{$md-sys-shape-corner-value-large} 0 0 #{$md-sys-shape-corner-value-large};
|
|
42
|
+
--md-sys-shape-corner-large-top: #{$md-sys-shape-corner-value-large} #{$md-sys-shape-corner-value-large} 0 0;
|
|
43
|
+
--md-sys-shape-corner-large-increased: #{$md-sys-shape-corner-value-large-increased};
|
|
44
|
+
--md-sys-shape-corner-extra-large: #{$md-sys-shape-corner-value-extra-large};
|
|
45
|
+
--md-sys-shape-corner-extra-large-top: #{$md-sys-shape-corner-value-extra-large} #{$md-sys-shape-corner-value-extra-large} 0 0;
|
|
46
|
+
--md-sys-shape-corner-extra-large-increased: #{$md-sys-shape-corner-value-extra-large-increased};
|
|
47
|
+
--md-sys-shape-corner-extra-extra-large: #{$md-sys-shape-corner-value-extra-extra-large};
|
|
43
48
|
--md-sys-shape-corner-full: #{$md-sys-shape-corner-full};
|
|
44
49
|
}
|
package/styles/statelayer.scss
CHANGED
|
@@ -26,6 +26,8 @@ $md-sys-state-hover-state-layer-opacity: 8%;
|
|
|
26
26
|
$md-sys-state-focus-state-layer-opacity: 10%;
|
|
27
27
|
$md-sys-state-pressed-state-layer-opacity: 10%;
|
|
28
28
|
$md-sys-state-dragged-state-layer-opacity: 16%;
|
|
29
|
+
$md-sys-state-disabled-state-layer-opacity: 38%;
|
|
30
|
+
$md-sys-state-backdrop-opacity: 32%;
|
|
29
31
|
|
|
30
32
|
$md-sys-state-focus-indicator-inner-offset: -3px;
|
|
31
33
|
$md-sys-state-focus-indicator-outer-offset: 2px;
|
|
@@ -39,6 +41,8 @@ $md-sys-state-focus-indicator-thickness: 3px;
|
|
|
39
41
|
--md-sys-state-focus-state-layer-opacity: #{$md-sys-state-focus-state-layer-opacity};
|
|
40
42
|
--md-sys-state-pressed-state-layer-opacity: #{$md-sys-state-pressed-state-layer-opacity};
|
|
41
43
|
--md-sys-state-dragged-state-layer-opacity: #{$md-sys-state-dragged-state-layer-opacity};
|
|
44
|
+
--md-sys-state-disabled-state-layer-opacity: #{$md-sys-state-disabled-state-layer-opacity};
|
|
45
|
+
--md-sys-state-backdrop-opacity: #{$md-sys-state-backdrop-opacity};
|
|
42
46
|
|
|
43
47
|
--md-sys-state-focus-indicator-inner-offset: #{$md-sys-state-focus-indicator-inner-offset};
|
|
44
48
|
--md-sys-state-focus-indicator-outer-offset: #{$md-sys-state-focus-indicator-outer-offset};
|
package/styles/typography.scss
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
// SOFTWARE.
|
|
21
21
|
|
|
22
22
|
:root {
|
|
23
|
-
--md-ref-typeface-plain:
|
|
24
|
-
--md-ref-typeface-brand:
|
|
23
|
+
--md-ref-typeface-plain: Google Sans, system-ui, sans-serif;
|
|
24
|
+
--md-ref-typeface-brand: Google Sans, system-ui, sans-serif;
|
|
25
25
|
--md-ref-typeface-weight-regular: 400;
|
|
26
26
|
--md-ref-typeface-weight-medium: 500;
|
|
27
27
|
--md-ref-typeface-weight-bold: 700;
|
package/styles.scss
CHANGED
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
20
|
// SOFTWARE.
|
|
21
21
|
|
|
22
|
+
@use 'foundations';
|
|
22
23
|
@use 'foundations/layout';
|
|
24
|
+
@use 'foundations/scrollbar';
|
|
23
25
|
|
|
24
26
|
@use 'styles/typography';
|
|
25
27
|
@use 'styles/shapes';
|
|
@@ -47,30 +49,5 @@
|
|
|
47
49
|
@use 'components/bottomsheet';
|
|
48
50
|
@use 'components/navigationrail';
|
|
49
51
|
@use 'components/stepper';
|
|
52
|
+
@use 'components/datepicker';
|
|
50
53
|
@use 'components/timepicker';
|
|
51
|
-
|
|
52
|
-
@property --micl-ripple {
|
|
53
|
-
syntax: '<integer>';
|
|
54
|
-
inherits: false;
|
|
55
|
-
initial-value: 0;
|
|
56
|
-
}
|
|
57
|
-
@property --micl-x {
|
|
58
|
-
syntax: '<length>';
|
|
59
|
-
inherits: false;
|
|
60
|
-
initial-value: -100000px;
|
|
61
|
-
}
|
|
62
|
-
@property --micl-y {
|
|
63
|
-
syntax: '<length>';
|
|
64
|
-
inherits: false;
|
|
65
|
-
initial-value: -100000px;
|
|
66
|
-
}
|
|
67
|
-
@property --micl-width {
|
|
68
|
-
syntax: '<length>';
|
|
69
|
-
inherits: true;
|
|
70
|
-
initial-value: 0px;
|
|
71
|
-
}
|
|
72
|
-
@property --micl-height {
|
|
73
|
-
syntax: '<length>';
|
|
74
|
-
inherits: true;
|
|
75
|
-
initial-value: 0px;
|
|
76
|
-
}
|
package/tsconfig.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
/* Language and Environment */
|
|
14
14
|
"target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
15
|
-
|
|
15
|
+
"lib": ["DOM", "es2022"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
16
16
|
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
17
17
|
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
|
18
18
|
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
/* Modules */
|
|
28
28
|
"module": "es2022", /* Specify what module code is generated. */
|
|
29
29
|
"rootDir": "./", /* Specify the root folder within your source files. */
|
|
30
|
-
"moduleResolution": "
|
|
30
|
+
"moduleResolution": "bundler", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
31
31
|
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
32
32
|
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
33
33
|
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|