material-inspired-component-library 1.1.0 → 1.1.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 +18 -21
- package/components/accordion/README.md +7 -9
- package/components/bottomsheet/README.md +7 -9
- package/components/bottomsheet/index.scss +3 -0
- package/components/button/README.md +7 -9
- package/components/button/index.scss +3 -0
- package/components/card/README.md +3 -3
- package/components/card/index.scss +3 -0
- package/components/checkbox/README.md +7 -9
- package/components/checkbox/index.scss +2 -0
- package/components/dialog/README.md +3 -3
- package/components/dialog/index.scss +3 -0
- package/components/divider/README.md +3 -3
- package/components/iconbutton/README.md +7 -9
- package/components/iconbutton/index.scss +3 -0
- package/components/list/README.md +7 -9
- package/components/list/index.scss +2 -0
- package/components/menu/README.md +8 -10
- package/components/menu/index.scss +3 -0
- package/components/radio/README.md +3 -3
- package/components/radio/index.scss +2 -0
- package/components/select/README.md +9 -11
- package/components/select/index.scss +2 -0
- package/components/sidesheet/README.md +3 -3
- package/components/sidesheet/index.scss +2 -0
- package/components/slider/README.md +7 -9
- package/components/slider/index.scss +2 -0
- package/components/switch/README.md +3 -3
- package/components/switch/index.scss +3 -0
- package/components/textfield/README.md +7 -11
- package/components/textfield/index.scss +2 -0
- package/dist/bottomsheet.css +1 -1
- package/dist/bottomsheet.js +1 -0
- package/dist/button.css +1 -1
- package/dist/button.js +1 -0
- package/dist/card.css +1 -1
- package/dist/card.js +1 -0
- package/dist/checkbox.css +1 -1
- package/dist/checkbox.js +1 -0
- package/dist/components/bottomsheet/index.d.ts +6 -0
- package/dist/components/button/index.d.ts +6 -0
- package/dist/components/checkbox/index.d.ts +5 -0
- package/dist/components/iconbutton/index.d.ts +6 -0
- package/dist/components/list/index.d.ts +5 -0
- package/dist/components/menu/index.d.ts +16 -0
- package/dist/components/slider/index.d.ts +6 -0
- package/dist/components/textfield/index.d.ts +8 -0
- package/dist/dialog.css +1 -1
- package/dist/dialog.js +1 -0
- package/dist/divider.js +1 -0
- package/dist/iconbutton.css +1 -1
- package/dist/iconbutton.js +1 -0
- package/dist/list.css +1 -1
- package/dist/list.js +1 -0
- package/dist/menu.css +1 -1
- package/dist/menu.js +1 -0
- package/dist/micl.d.ts +5 -0
- package/dist/micl.js +1 -1
- package/dist/radio.css +1 -1
- package/dist/radio.js +1 -0
- package/dist/select.css +1 -1
- package/dist/select.js +1 -0
- package/dist/sidesheet.css +1 -1
- package/dist/sidesheet.js +1 -0
- package/dist/slider.css +1 -1
- package/dist/slider.js +1 -0
- package/dist/switch.css +1 -1
- package/dist/switch.js +1 -0
- package/dist/textfield.css +1 -1
- package/dist/textfield.js +1 -0
- package/{components.ts → micl.ts} +73 -52
- package/package.json +4 -2
- package/tsconfig.json +11 -5
- package/webpack.config.js +7 -4
package/tsconfig.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
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
30
|
"moduleResolution": "node10", /* 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. */
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
51
51
|
|
|
52
52
|
/* Emit */
|
|
53
|
-
|
|
53
|
+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
54
54
|
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
55
55
|
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
56
56
|
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
57
57
|
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
58
58
|
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
59
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
|
-
|
|
60
|
+
"outDir": "./dist", /* Specify an output folder for all emitted files. */
|
|
61
61
|
// "removeComments": true, /* Disable emitting comments. */
|
|
62
62
|
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
63
63
|
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
71
71
|
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
72
72
|
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
73
|
-
|
|
73
|
+
"declarationDir": "./dist", /* Specify the output directory for generated declaration files. */
|
|
74
74
|
|
|
75
75
|
/* Interop Constraints */
|
|
76
76
|
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
@@ -106,5 +106,11 @@
|
|
|
106
106
|
/* Completeness */
|
|
107
107
|
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
108
108
|
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
109
|
-
}
|
|
109
|
+
},
|
|
110
|
+
"include": [
|
|
111
|
+
"./**/*"
|
|
112
|
+
],
|
|
113
|
+
"exclude": [
|
|
114
|
+
"node_modules"
|
|
115
|
+
]
|
|
110
116
|
}
|
package/webpack.config.js
CHANGED
|
@@ -15,7 +15,7 @@ module.exports = [{
|
|
|
15
15
|
mode: 'production',
|
|
16
16
|
entry: {
|
|
17
17
|
...scssEntries,
|
|
18
|
-
micl: ['./styles.scss', './
|
|
18
|
+
micl: ['./styles.scss', './micl.ts']
|
|
19
19
|
},
|
|
20
20
|
resolve: {
|
|
21
21
|
extensions: ['.ts', '.tsx', '.js']
|
|
@@ -23,7 +23,11 @@ module.exports = [{
|
|
|
23
23
|
output: {
|
|
24
24
|
path: distDir,
|
|
25
25
|
filename: '[name].js',
|
|
26
|
-
clean: true
|
|
26
|
+
clean: true,
|
|
27
|
+
library: {
|
|
28
|
+
name: 'micl',
|
|
29
|
+
type: 'umd'
|
|
30
|
+
}
|
|
27
31
|
},
|
|
28
32
|
module: {
|
|
29
33
|
rules: [{
|
|
@@ -34,8 +38,7 @@ module.exports = [{
|
|
|
34
38
|
'postcss-loader',
|
|
35
39
|
'sass-loader'
|
|
36
40
|
]
|
|
37
|
-
},
|
|
38
|
-
{
|
|
41
|
+
}, {
|
|
39
42
|
test: /\.tsx?$/,
|
|
40
43
|
use: 'ts-loader',
|
|
41
44
|
exclude: /node_modules/
|