@beautinique/frontend-components 0.0.0-stage → 1.0.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.
Files changed (75) hide show
  1. package/README.md +100 -2
  2. package/dist/index.cjs +4 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +2 -0
  5. package/dist/index.d.cts.map +1 -0
  6. package/dist/index.d.ts +2 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +3 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/lib/button.d.cts +3 -0
  11. package/dist/lib/button.d.cts.map +1 -0
  12. package/dist/lib/button.d.ts +3 -0
  13. package/dist/lib/button.d.ts.map +1 -0
  14. package/dist/lib/constants.d.cts +5 -0
  15. package/dist/lib/constants.d.cts.map +1 -0
  16. package/dist/lib/constants.d.ts +5 -0
  17. package/dist/lib/constants.d.ts.map +1 -0
  18. package/dist/lib/tooltip.d.cts +6 -0
  19. package/dist/lib/tooltip.d.cts.map +1 -0
  20. package/dist/lib/tooltip.d.ts +6 -0
  21. package/dist/lib/tooltip.d.ts.map +1 -0
  22. package/dist/toast/ToastContainer.d.cts +5 -0
  23. package/dist/toast/ToastContainer.d.cts.map +1 -0
  24. package/dist/toast/ToastContainer.d.ts +5 -0
  25. package/dist/toast/ToastContainer.d.ts.map +1 -0
  26. package/dist/toast/index.cjs +621 -0
  27. package/dist/toast/index.cjs.map +1 -0
  28. package/dist/toast/index.d.cts +8 -0
  29. package/dist/toast/index.d.cts.map +1 -0
  30. package/dist/toast/index.d.ts +8 -0
  31. package/dist/toast/index.d.ts.map +1 -0
  32. package/dist/toast/index.js +606 -0
  33. package/dist/toast/index.js.map +1 -0
  34. package/dist/toast/toast-icons.d.cts +10 -0
  35. package/dist/toast/toast-icons.d.cts.map +1 -0
  36. package/dist/toast/toast-icons.d.ts +10 -0
  37. package/dist/toast/toast-icons.d.ts.map +1 -0
  38. package/dist/toast/toast.store.d.cts +4 -0
  39. package/dist/toast/toast.store.d.cts.map +1 -0
  40. package/dist/toast/toast.store.d.ts +4 -0
  41. package/dist/toast/toast.store.d.ts.map +1 -0
  42. package/dist/toast/toaster.d.cts +21 -0
  43. package/dist/toast/toaster.d.cts.map +1 -0
  44. package/dist/toast/toaster.d.ts +21 -0
  45. package/dist/toast/toaster.d.ts.map +1 -0
  46. package/dist/toast/types.d.cts +92 -0
  47. package/dist/toast/types.d.cts.map +1 -0
  48. package/dist/toast/types.d.ts +92 -0
  49. package/dist/toast/types.d.ts.map +1 -0
  50. package/dist/toast/uploads.d.cts +63 -0
  51. package/dist/toast/uploads.d.cts.map +1 -0
  52. package/dist/toast/uploads.d.ts +63 -0
  53. package/dist/toast/uploads.d.ts.map +1 -0
  54. package/dist/types/component.d.cts +27 -0
  55. package/dist/types/component.d.cts.map +1 -0
  56. package/dist/types/component.d.ts +27 -0
  57. package/dist/types/component.d.ts.map +1 -0
  58. package/dist/ui/Button.d.cts +3 -0
  59. package/dist/ui/Button.d.cts.map +1 -0
  60. package/dist/ui/Button.d.ts +3 -0
  61. package/dist/ui/Button.d.ts.map +1 -0
  62. package/dist/ui/Tooltip.d.cts +3 -0
  63. package/dist/ui/Tooltip.d.cts.map +1 -0
  64. package/dist/ui/Tooltip.d.ts +3 -0
  65. package/dist/ui/Tooltip.d.ts.map +1 -0
  66. package/dist/ui/index.cjs +205 -0
  67. package/dist/ui/index.cjs.map +1 -0
  68. package/dist/ui/index.d.cts +3 -0
  69. package/dist/ui/index.d.cts.map +1 -0
  70. package/dist/ui/index.d.ts +3 -0
  71. package/dist/ui/index.d.ts.map +1 -0
  72. package/dist/ui/index.js +202 -0
  73. package/dist/ui/index.js.map +1 -0
  74. package/package.json +100 -4
  75. package/source.css +11 -0
package/package.json CHANGED
@@ -1,6 +1,102 @@
1
1
  {
2
2
  "name": "@beautinique/frontend-components",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.1",
4
+ "description": "Shared React UI components for the Beautinique frontends.",
5
+ "keywords": [
6
+ "frontend",
7
+ "react",
8
+ "components",
9
+ "ui",
10
+ "tailwind",
11
+ "beautinique"
12
+ ],
13
+ "author": "Nageshwar Pawar",
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/Nageshwar1997/BQ-Packages.git",
18
+ "directory": "packages/frontend/components"
19
+ },
20
+ "bugs": {
21
+ "url": "https://github.com/Nageshwar1997/BQ-Packages/issues"
22
+ },
23
+ "homepage": "https://github.com/Nageshwar1997/BQ-Packages/tree/main/packages/frontend/components#readme",
24
+ "type": "module",
25
+ "main": "./dist/index.cjs",
26
+ "module": "./dist/index.js",
27
+ "types": "./dist/index.d.ts",
28
+ "files": [
29
+ "dist",
30
+ "source.css"
31
+ ],
32
+ "sideEffects": [
33
+ "**/*.css",
34
+ "./dist/toast/*"
35
+ ],
36
+ "exports": {
37
+ ".": {
38
+ "types": "./dist/index.d.ts",
39
+ "import": "./dist/index.js",
40
+ "require": "./dist/index.cjs",
41
+ "default": "./dist/index.js"
42
+ },
43
+ "./ui": {
44
+ "types": "./dist/ui/index.d.ts",
45
+ "import": "./dist/ui/index.js",
46
+ "require": "./dist/ui/index.cjs",
47
+ "default": "./dist/ui/index.js"
48
+ },
49
+ "./toast": {
50
+ "types": "./dist/toast/index.d.ts",
51
+ "import": "./dist/toast/index.js",
52
+ "require": "./dist/toast/index.cjs",
53
+ "default": "./dist/toast/index.js"
54
+ },
55
+ "./source.css": "./source.css",
56
+ "./package.json": "./package.json"
57
+ },
58
+ "scripts": {
59
+ "build": "tsup",
60
+ "postbuild": "node ../../../scripts/build-types/index.mjs",
61
+ "dev": "tsup --watch",
62
+ "playground": "vite --config playground/vite.config.ts",
63
+ "lint": "eslint .",
64
+ "test": "vitest run --environment jsdom",
65
+ "test:watch": "vitest --environment jsdom",
66
+ "typecheck": "tsc --noEmit"
67
+ },
68
+ "publishConfig": {
69
+ "access": "public"
70
+ },
71
+ "engines": {
72
+ "node": ">=24"
73
+ },
74
+ "peerDependencies": {
75
+ "@beautinique/frontend-styles": "^1.1.0",
76
+ "@iconify/react": "^6.0.2",
77
+ "react": "^19.0.0",
78
+ "react-dom": "^19.0.0"
79
+ },
80
+ "dependencies": {
81
+ "nanoid": "^6.0.1",
82
+ "zustand": "^5.0.15"
83
+ },
84
+ "devDependencies": {
85
+ "@beautinique/frontend-styles": "^1.1.0",
86
+ "@iconify/react": "^6.0.2",
87
+ "@tailwindcss/typography": "^0.5.20",
88
+ "@tailwindcss/vite": "^4.3.3",
89
+ "@testing-library/dom": "^10.4.2",
90
+ "@testing-library/react": "^16.3.3",
91
+ "@types/react": "^19.3.0",
92
+ "@types/react-dom": "^19.3.0",
93
+ "@vitejs/plugin-react": "^6.1.2",
94
+ "eslint-plugin-react-hooks": "^7.1.1",
95
+ "jsdom": "^30.1.2",
96
+ "react": "^19.3.0",
97
+ "react-dom": "^19.3.0",
98
+ "tailwindcss": "^4.3.3",
99
+ "vite": "^8.3.2",
100
+ "vitest": "^5.0.3"
101
+ }
102
+ }
package/source.css ADDED
@@ -0,0 +1,11 @@
1
+ /* @beautinique/frontend-components - tells Tailwind where the components' class names are.
2
+ *
3
+ * Tailwind v4 does not look inside node_modules for class names, so without this the classes the
4
+ * components use (e.g. `rounded-lg`, `shadow-primary-btn`) would not be generated and the
5
+ * components would look unstyled. Import it in the app's own css, after the styles package:
6
+ *
7
+ * @import '@beautinique/frontend-styles';
8
+ * @import '@beautinique/frontend-components/source.css';
9
+ * @import './app.css';
10
+ */
11
+ @source './dist';