@xaypay/tui 0.0.54 → 0.0.56
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/.storybook/main.js +27 -20
- package/cli-command.js +3 -0
- package/dist/index.es.js +250 -99
- package/dist/index.js +251 -99
- package/package.json +8 -5
- package/rollup.config.js +2 -0
- package/src/components/autocomplate/index.js +22 -17
- package/src/components/button/index.js +27 -18
- package/src/components/input/index.js +136 -40
- package/src/components/input/input.module.css +17 -15
- package/src/components/table/index.js +1 -1
- package/src/components/tooltip/index.js +37 -34
- package/src/components/tooltip/tooltip.module.css +2 -2
- package/src/components/tooltip/tooltip.stories.js +3 -2
- package/src/components/typography/index.js +65 -6
- package/src/components/typography/typography.stories.js +8 -2
- package/src/stories/Introduction.stories.mdx +92 -93
- package/src/stories/changelog.stories.mdx +118 -0
- package/src/stories/configuration.stories.mdx +334 -0
- package/src/stories/documentation.stories.mdx +118 -0
- package/src/stories/static/button-usage.png +0 -0
- package/src/stories/usage.stories.mdx +128 -0
- package/src/utils/index.js +1 -0
- package/tui.config.js +190 -52
- package/storybook-static/favicon.ico +0 -0
package/.storybook/main.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
+
core: {
|
|
3
|
+
builder: 'webpack5',
|
|
4
|
+
},
|
|
2
5
|
"stories": [
|
|
3
6
|
"../src/**/*.stories.mdx",
|
|
4
7
|
"../src/**/*.stories.@(js|jsx|ts|tsx)"
|
|
@@ -7,6 +10,7 @@ module.exports = {
|
|
|
7
10
|
"@storybook/addon-links",
|
|
8
11
|
"@storybook/addon-essentials",
|
|
9
12
|
"@storybook/addon-interactions",
|
|
13
|
+
"@storybook/preset-create-react-app",
|
|
10
14
|
{
|
|
11
15
|
name: '@storybook/preset-scss',
|
|
12
16
|
options: {
|
|
@@ -18,27 +22,30 @@ module.exports = {
|
|
|
18
22
|
}
|
|
19
23
|
],
|
|
20
24
|
"framework": "@storybook/react",
|
|
21
|
-
webpackFinal: async (config, { configType }) => {
|
|
22
|
-
// get index of css rule
|
|
23
|
-
const ruleCssIndex = config.module.rules.findIndex(
|
|
24
|
-
(rule) => rule.test.toString() === "/\\.css$/"
|
|
25
|
-
);
|
|
25
|
+
// webpackFinal: async (config, { configType }) => {
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
configType === "PRODUCTION"
|
|
34
|
-
? "[local]__[hash:base64:5]"
|
|
35
|
-
: "[name]__[local]__[hash:base64:5]",
|
|
36
|
-
};
|
|
37
|
-
}
|
|
27
|
+
// console.log(config.module.rules);
|
|
28
|
+
// console.log(configType);
|
|
29
|
+
// // get index of css rule
|
|
30
|
+
// const ruleCssIndex = config.module.rules.findIndex(
|
|
31
|
+
// (rule) => rule.test.toString() === "/\\.css$/"
|
|
32
|
+
// );
|
|
38
33
|
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
// // map over the 'use' array of the css rule and set the 'module' option to true
|
|
35
|
+
// config.module.rules[ruleCssIndex].use.map((item) => {
|
|
36
|
+
// if (item.loader && (item.loader.includes("/css-loader/") || item.loader.includes("\\css-loader\\"))) {
|
|
37
|
+
// item.options.modules = {
|
|
38
|
+
// mode: "local",
|
|
39
|
+
// localIdentName:
|
|
40
|
+
// configType === "PRODUCTION"
|
|
41
|
+
// ? "[local]__[hash:base64:5]"
|
|
42
|
+
// : "[name]__[local]__[hash:base64:5]",
|
|
43
|
+
// };
|
|
44
|
+
// }
|
|
41
45
|
|
|
42
|
-
|
|
43
|
-
}
|
|
46
|
+
// return item;
|
|
47
|
+
// });
|
|
48
|
+
|
|
49
|
+
// return config;
|
|
50
|
+
// },
|
|
44
51
|
}
|
package/cli-command.js
ADDED