@xaypay/tui 0.2.0 → 0.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaypay/tui",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -18,6 +18,7 @@
18
18
  "@babel/core": "^7.24.5",
19
19
  "@babel/preset-react": "^7.24.1",
20
20
  "@rollup/plugin-babel": "^6.0.4",
21
+ "@rollup/plugin-dynamic-import-vars": "^2.1.2",
21
22
  "@rollup/plugin-image": "^3.0.3",
22
23
  "@rollup/plugin-node-resolve": "^15.2.3",
23
24
  "@storybook/addon-actions": "^8.0.10",
@@ -52,6 +53,7 @@
52
53
  "react": "^18.3.1",
53
54
  "react-dom": "^18.3.1",
54
55
  "rollup": "^2.79.0",
56
+ "rollup-plugin-import-meta-glob": "^1.0.2",
55
57
  "rollup-plugin-peer-deps-external": "^2.2.4",
56
58
  "rollup-plugin-postcss": "^4.0.2",
57
59
  "sass": "^1.77.1",
package/rollup.config.mjs CHANGED
@@ -3,6 +3,8 @@ import image from '@rollup/plugin-image';
3
3
  import resolve from '@rollup/plugin-node-resolve'
4
4
  import external from 'rollup-plugin-peer-deps-external'
5
5
  import postcss from 'rollup-plugin-postcss'
6
+ import dynamicImportVars from '@rollup/plugin-dynamic-import-vars';
7
+
6
8
 
7
9
  export default [
8
10
  {
@@ -20,6 +22,7 @@ export default [
20
22
  ],
21
23
  external: ['prop-types', 'classnames', 'lodash','styled-components'],
22
24
  plugins: [
25
+ // dynamicImportVars(),
23
26
  postcss({
24
27
  plugins: [],
25
28
  minimize: true,
package/tui.config.js CHANGED
@@ -813,4 +813,8 @@ export default {
813
813
  font: {...fontObject}
814
814
  }
815
815
  },
816
+ // default properties for <Form /> component
817
+ FORM: {
818
+ className: ''
819
+ }
816
820
  }
package/vite.config.mjs CHANGED
@@ -3,6 +3,8 @@ import fsPromises from 'fs/promises'
3
3
  import { defineConfig } from 'vite'
4
4
  import react from '@vitejs/plugin-react'
5
5
  import svgr from 'vite-plugin-svgr'
6
+ import glob from 'rollup-plugin-import-meta-glob';
7
+
6
8
 
7
9
  const folders = fs.readdirSync('./src', { withFileTypes: true })
8
10
  const fileNames = folders.filter((dirent) => dirent.isDirectory()).map((dirent) => dirent.name)
@@ -18,47 +20,13 @@ const filePaths = fileNames.reduce(
18
20
 
19
21
  // https://vitejs.dev/config/
20
22
  export default defineConfig({
21
- plugins: [react(),svgr()],
23
+ plugins: [react(), svgr(), glob({
24
+ include: ['**/*.js']
25
+ })],
22
26
  resolve: {
23
27
  // @ts-ignore
24
28
  alias: { ...filePaths },
25
29
  },
26
- // TODO: remove if unnecessary
27
- // build: {
28
- // // Output directory for the production build.
29
- // outDir: 'dist',
30
- // // Directory relative to outDir where built files will be served.
31
- // assetsDir: '',
32
- // // Inline the index.html's assets. If false, the assets folder will be created.
33
- // assetsInlineLimit: 4096,
34
- // // Whether to generate sourcemaps for production builds.
35
- // sourcemap: false,
36
- // // Minify the production build using terser.
37
- // minify: false, // 'terser' or 'esbuild' or false
38
- // // Specify additional rollup plugins.
39
- // rollupOptions: {
40
- // // Externalize certain dependencies, preventing them from being bundled.
41
- // external: [],
42
- // input: 'src/index.js',
43
- // fileName: (format) => {
44
-
45
- // }
46
- // // output: {
47
- // // entryFileNames: `[name].js`,
48
- // // chunkFileNames: `[name].js`,
49
- // // assetFileNames: `[name].[ext]`,
50
- // // }
51
- // },
52
- // // lib: {
53
- // // entry: './src/index.js',
54
- // // name: 'TUI', // Adjust as needed for library name
55
- // // fileName: (format) => {
56
- // // return format === 'cjs' ? `index.js` : `index.${format}.js`
57
- // // },
58
- // // formats: ['cjs', 'es'],
59
- // // }
60
- // },
61
- // external: ['prop-types', 'classnames'],
62
30
  esbuild: {
63
31
  loader: 'jsx',
64
32
  include: /src\/.*\.jsx?$/,