@zero-bits/taro-components 1.0.0

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 (52) hide show
  1. package/README.md +413 -0
  2. package/es/components/Permission/PermissionProvider.d.ts +23 -0
  3. package/es/components/Permission/PermissionProvider.js +1 -0
  4. package/es/components/Permission/index.d.ts +5 -0
  5. package/es/components/Permission/index.js +1 -0
  6. package/es/components/Permission/store.d.ts +40 -0
  7. package/es/components/Permission/store.js +1 -0
  8. package/es/components/Text/index.d.ts +54 -0
  9. package/es/components/Text/index.js +1 -0
  10. package/es/components/View/index.d.ts +111 -0
  11. package/es/components/View/index.js +1 -0
  12. package/es/components/index.d.ts +3 -0
  13. package/es/components/index.js +1 -0
  14. package/es/context/index.d.ts +6 -0
  15. package/es/context/index.js +1 -0
  16. package/es/hooks/index.d.ts +2 -0
  17. package/es/hooks/index.js +1 -0
  18. package/es/hooks/usePermission.d.ts +11 -0
  19. package/es/hooks/usePermission.js +1 -0
  20. package/es/hooks/useWeappUpdate.d.ts +4 -0
  21. package/es/hooks/useWeappUpdate.js +1 -0
  22. package/es/index.d.ts +2 -0
  23. package/es/index.js +1 -0
  24. package/es/styles/index.css +120 -0
  25. package/es/types/index.d.ts +84 -0
  26. package/es/types/index.js +1 -0
  27. package/lib/components/Permission/PermissionProvider.d.ts +23 -0
  28. package/lib/components/Permission/PermissionProvider.js +1 -0
  29. package/lib/components/Permission/index.d.ts +5 -0
  30. package/lib/components/Permission/index.js +1 -0
  31. package/lib/components/Permission/store.d.ts +40 -0
  32. package/lib/components/Permission/store.js +1 -0
  33. package/lib/components/Text/index.d.ts +54 -0
  34. package/lib/components/Text/index.js +1 -0
  35. package/lib/components/View/index.d.ts +111 -0
  36. package/lib/components/View/index.js +1 -0
  37. package/lib/components/index.d.ts +3 -0
  38. package/lib/components/index.js +1 -0
  39. package/lib/context/index.d.ts +6 -0
  40. package/lib/context/index.js +1 -0
  41. package/lib/hooks/index.d.ts +2 -0
  42. package/lib/hooks/index.js +1 -0
  43. package/lib/hooks/usePermission.d.ts +11 -0
  44. package/lib/hooks/usePermission.js +1 -0
  45. package/lib/hooks/useWeappUpdate.d.ts +4 -0
  46. package/lib/hooks/useWeappUpdate.js +1 -0
  47. package/lib/index.d.ts +2 -0
  48. package/lib/index.js +1 -0
  49. package/lib/styles/index.css +120 -0
  50. package/lib/types/index.d.ts +84 -0
  51. package/lib/types/index.js +1 -0
  52. package/package.json +68 -0
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@zero-bits/taro-components",
3
+ "version": "1.0.0",
4
+ "description": "Taro components and utilities",
5
+ "main": "lib/index.js",
6
+ "module": "es/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "sideEffects": [
9
+ "*.css",
10
+ "**/*.css"
11
+ ],
12
+ "files": [
13
+ "lib",
14
+ "es"
15
+ ],
16
+ "publishConfig": {
17
+ "access": "public",
18
+ "registry": "https://registry.npmjs.org/"
19
+ },
20
+ "exports": {
21
+ ".": {
22
+ "import": {
23
+ "types": "./es/index.d.ts",
24
+ "default": "./es/index.js"
25
+ },
26
+ "require": {
27
+ "types": "./lib/index.d.ts",
28
+ "default": "./lib/index.js"
29
+ }
30
+ },
31
+ "./index.css": {
32
+ "import": "./es/styles/index.css",
33
+ "require": "./lib/styles/index.css"
34
+ },
35
+ "./components": {
36
+ "import": {
37
+ "types": "./es/components/index.d.ts",
38
+ "default": "./es/components/index.js"
39
+ },
40
+ "require": {
41
+ "types": "./lib/components/index.d.ts",
42
+ "default": "./lib/components/index.js"
43
+ }
44
+ },
45
+ "./hooks": {
46
+ "import": {
47
+ "types": "./es/hooks/index.d.ts",
48
+ "default": "./es/hooks/index.js"
49
+ },
50
+ "require": {
51
+ "types": "./lib/hooks/index.d.ts",
52
+ "default": "./lib/hooks/index.js"
53
+ }
54
+ }
55
+ },
56
+ "keywords": [],
57
+ "author": "",
58
+ "license": "ISC",
59
+ "peerDependencies": {
60
+ "react": ">=18.0.0",
61
+ "react-dom": ">=18.0.0",
62
+ "@tarojs/components": ">=4.2.1",
63
+ "@tarojs/taro": ">=4.2.1"
64
+ },
65
+ "dependencies": {
66
+ "classnames": "^2.3.0"
67
+ }
68
+ }