@zuzjs/ui 0.3.3 → 0.3.5

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 (78) hide show
  1. package/README.md +0 -0
  2. package/dist/hooks.js +89 -0
  3. package/dist/styles.css +37 -62
  4. package/dist/ui.js +679 -0
  5. package/jest.config.js +0 -0
  6. package/package.json +17 -18
  7. package/rollup.config.js +30 -47
  8. package/tsconfig.json +0 -0
  9. package/tsconfig.lib.json +0 -0
  10. package/tsconfig.spec.json +0 -0
  11. package/dist/index.js +0 -1879
  12. package/src/actions/addForm.tsx +0 -0
  13. package/src/actions/index.tsx +0 -29
  14. package/src/actions/redo.tsx +0 -1
  15. package/src/actions/reset.tsx +0 -1
  16. package/src/actions/undo.tsx +0 -1
  17. package/src/comps/app.tsx +0 -34
  18. package/src/comps/box.tsx +0 -28
  19. package/src/comps/button.tsx +0 -47
  20. package/src/comps/checkbox.tsx +0 -74
  21. package/src/comps/component.tsx +0 -32
  22. package/src/comps/contextmenu.tsx +0 -60
  23. package/src/comps/cover.tsx +0 -34
  24. package/src/comps/form.tsx +0 -89
  25. package/src/comps/heading.tsx +0 -31
  26. package/src/comps/icon.tsx +0 -36
  27. package/src/comps/image.tsx +0 -34
  28. package/src/comps/input.tsx +0 -224
  29. package/src/comps/masonry.tsx +0 -192
  30. package/src/comps/mediaplayer.tsx +0 -12
  31. package/src/comps/placeholder.tsx +0 -58
  32. package/src/comps/root.tsx +0 -32
  33. package/src/comps/select.tsx +0 -63
  34. package/src/comps/spacer.tsx +0 -20
  35. package/src/comps/spinner.tsx +0 -36
  36. package/src/comps/text.tsx +0 -27
  37. package/src/comps/toaster.tsx +0 -123
  38. package/src/comps/tweet.tsx +0 -48
  39. package/src/context/AppContext.tsx +0 -3
  40. package/src/context/AppProvider.tsx +0 -106
  41. package/src/context/_AppProvider.tsx +0 -116
  42. package/src/context/combineReducers.tsx +0 -47
  43. package/src/context/combineState.tsx +0 -14
  44. package/src/context/createSlice.tsx +0 -40
  45. package/src/context/index.tsx +0 -6
  46. package/src/context/reduceReducers.tsx +0 -6
  47. package/src/context/store/appbase.tsx +0 -19
  48. package/src/context/store/lang.tsx +0 -26
  49. package/src/context/store/theme.tsx +0 -54
  50. package/src/core/extractCurrentDesignState.tsx +0 -0
  51. package/src/core/index.ts +0 -431
  52. package/src/core/router.ts +0 -86
  53. package/src/core/styles.ts +0 -372
  54. package/src/hooks/index.tsx +0 -10
  55. package/src/hooks/useAppReducer.tsx +0 -40
  56. package/src/hooks/useChooseEffect.tsx +0 -6
  57. package/src/hooks/useContextMenu.tsx +0 -123
  58. package/src/hooks/useDevice.tsx +0 -168
  59. package/src/hooks/useDispatch.tsx +0 -37
  60. package/src/hooks/useImage.tsx +0 -84
  61. package/src/hooks/useLang.tsx +0 -9
  62. package/src/hooks/useMediaPlayer.tsx +0 -27
  63. package/src/hooks/useNavigator.tsx +0 -6
  64. package/src/hooks/useRender.tsx +0 -29
  65. package/src/hooks/useResizeObserver.tsx +0 -84
  66. package/src/hooks/useRouter.tsx +0 -45
  67. package/src/hooks/useSelector.tsx +0 -9
  68. package/src/hooks/useStore.tsx +0 -27
  69. package/src/hooks/useTheme.tsx +0 -9
  70. package/src/hooks/useToast.tsx +0 -11
  71. package/src/index.tsx +0 -33
  72. package/src/kit/Builder.tsx +0 -18
  73. package/src/kit/Component.tsx +0 -32
  74. package/src/kit/Header.tsx +0 -21
  75. package/src/scss/constants.scss +0 -4
  76. package/src/scss/mixins.scss +0 -3
  77. package/src/scss/props.scss +0 -70
  78. package/src/scss/style.scss +0 -133
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@zuzjs/ui",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
- ".": "./dist/index.js",
7
+ ".": "./dist/ui.js",
8
+ "./core": "./dist/index.js",
9
+ "./hooks": "./dist/hooks.js",
8
10
  "./styles": "./dist/styles.css"
9
11
  },
10
12
  "scripts": {
@@ -13,35 +15,32 @@
13
15
  "test": "jest"
14
16
  },
15
17
  "dependencies": {
16
- "@emotion/react": "^11.10.6",
17
- "@emotion/styled": "^11.10.6",
18
18
  "@testing-library/react": "14.0.0",
19
19
  "@types/jest": "^29.5.0",
20
20
  "@types/react": "^18.0.31",
21
- "axios": "^1.3.4",
22
- "jest": "^29.5.0",
23
- "js-cookie": "^3.0.1",
24
- "nanoid": "^4.0.2",
21
+ "axios": "^1.6.2",
22
+ "hashids": "^2.3.0",
23
+ "jest": "^29.7.0",
24
+ "js-cookie": "^3.0.5",
25
+ "nanoid": "^5.0.4",
25
26
  "prop-types": "^15.8.1",
26
27
  "react": "18.2.0",
27
28
  "react-children-utilities": "^2.9.0",
28
29
  "react-dom": "18.2.0",
29
- "react-hot-toast": "^2.4.0",
30
- "ts-jest": "^29.0.5",
31
- "tslib": "^2.5.0",
32
- "typescript": "^5.0.2"
30
+ "ts-jest": "^29.1.1",
31
+ "tslib": "^2.6.2",
32
+ "typescript": "^5.3.3"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@rollup/plugin-commonjs": "^24.0.1",
36
36
  "postcss": "^8.4.21",
37
- "react-router-dom": "^6.14.2",
38
- "rimraf": "^4.4.1",
39
- "rollup": "^3.20.2",
37
+ "rimraf": "^5.0.5",
38
+ "rollup": "^4.8.0",
40
39
  "rollup-plugin-livereload": "^2.0.5",
41
40
  "rollup-plugin-scss": "^4.0.0",
42
- "rollup-plugin-typescript2": "^0.34.1",
41
+ "rollup-plugin-typescript2": "^0.36.0",
43
42
  "rollup-plugin-uglify": "^6.0.4",
44
- "sass": "^1.60.0",
45
- "vite-plugin-environment": "^1.1.3"
43
+ "sass": "^1.69.5",
44
+ "next": "14.0.4"
46
45
  }
47
46
  }
package/rollup.config.js CHANGED
@@ -6,63 +6,46 @@ import livereload from 'rollup-plugin-livereload'
6
6
  import { uglify } from 'rollup-plugin-uglify';
7
7
 
8
8
  const isWatching = process && process.argv.includes('-w') || process.argv.includes('--watch')
9
+ const plugins = [
10
+ typescript(),
11
+ commonjs(),
12
+ scss({
13
+ processor: () => postcss(),
14
+ fileName: 'styles.css',
15
+ failOnError: true
16
+ }),
17
+ !isWatching && uglify()
18
+ // livereload()
19
+ ]
20
+ const externals = [
21
+ "react","react-children-utilities","js-cookie","axios","nanoid","hashids","react/jsx-runtime","prop-types"
22
+ ]
9
23
 
10
24
  export default [
11
25
  {
12
- input: ["src/index.tsx"],
26
+ input: ["src/ui.tsx"],
13
27
  output: [
14
28
  {
15
29
  dir: "dist",
16
30
  entryFileNames: "[name].js",
17
31
  format: "es",
18
32
  exports: "named",
19
- // preserveModules: true,
20
- // preserveModulesRoot: 'src',
21
33
  }
22
34
  ],
23
- plugins: [
24
- typescript(),
25
- commonjs(),
26
- scss({
27
- processor: () => postcss(),
28
- fileName: 'styles.css',
29
- failOnError: true
30
- }),
31
- !isWatching && uglify()
32
- // livereload()
35
+ plugins: plugins,
36
+ externals: externals
37
+ },
38
+ {
39
+ input: ["src/hooks.tsx"],
40
+ output: [
41
+ {
42
+ dir: "dist",
43
+ entryFileNames: "[name].js",
44
+ format: "es",
45
+ exports: "named",
46
+ }
33
47
  ],
34
- external: [
35
- "react","react-children-utilities","js-cookie","axios","nanoid","@reduxjs/toolkit","react-redux","react/jsx-runtime",
36
- "@emotion/react","@emotion/styled","prop-types","react-hot-toast"
37
- ]
48
+ plugins: plugins,
49
+ externals: externals
38
50
  }
39
- // ,
40
- // {
41
- // input: ["src/kit/index.tsx"],
42
- // output: [
43
- // {
44
- // dir: "dist",
45
- // entryFileNames: "kit.js",
46
- // format: "es",
47
- // exports: "named",
48
- // // preserveModules: true,
49
- // // preserveModulesRoot: 'src',
50
- // }
51
- // ],
52
- // plugins: [
53
- // typescript(),
54
- // // commonjs(),
55
- // // scss({
56
- // // processor: () => postcss(),
57
- // // fileName: 'styles.css',
58
- // // failOnError: true
59
- // // }),
60
- // // !isWatching && uglify()
61
- // // livereload()
62
- // ],
63
- // // external: [
64
- // // "react","react-children-utilities","js-cookie","axios","nanoid","@reduxjs/toolkit","react-redux","react/jsx-runtime",
65
- // // "@emotion/react","@emotion/styled","prop-types","react-hot-toast"
66
- // // ]
67
- // }
68
- ];
51
+ ]
package/tsconfig.json CHANGED
File without changes
package/tsconfig.lib.json CHANGED
File without changes
File without changes