@processhub-lib/react 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 (43) hide show
  1. package/README.md +6 -0
  2. package/dist/context/ThemeContext.d.ts +22 -0
  3. package/dist/index-B6iFW4Kz.js +1171 -0
  4. package/dist/index-fvSAulfO.cjs +30 -0
  5. package/dist/index.cjs.js +1 -0
  6. package/dist/index.d.ts +4 -0
  7. package/dist/index.es.js +10 -0
  8. package/dist/style.css +1 -0
  9. package/dist/ui/Button/colors.d.ts +162 -0
  10. package/dist/ui/Button/index.d.ts +3 -0
  11. package/dist/ui/Button/types/button.d.ts +16 -0
  12. package/dist/ui/Input/index.d.ts +3 -0
  13. package/dist/ui/Input/types/input.d.ts +10 -0
  14. package/dist/ui/Select/index.d.ts +3 -0
  15. package/dist/ui/Select/types/select.d.ts +16 -0
  16. package/dist/ui/index.d.ts +3 -0
  17. package/dist/ui.cjs.js +1 -0
  18. package/dist/ui.d.ts +1 -0
  19. package/dist/ui.es.js +6 -0
  20. package/dist/utils/classnames.d.ts +16 -0
  21. package/dist/utils/index.d.ts +1 -0
  22. package/dist/utils.cjs.js +1 -0
  23. package/dist/utils.d.ts +1 -0
  24. package/dist/utils.es.js +29 -0
  25. package/package.json +56 -0
  26. package/postcss.config.js +5 -0
  27. package/src/context/ThemeContext.tsx +45 -0
  28. package/src/index.ts +4 -0
  29. package/src/style.css +1 -0
  30. package/src/ui/Button/colors.tsx +163 -0
  31. package/src/ui/Button/index.tsx +46 -0
  32. package/src/ui/Button/types/button.ts +17 -0
  33. package/src/ui/Input/index.tsx +74 -0
  34. package/src/ui/Input/types/input.ts +11 -0
  35. package/src/ui/Select/index.tsx +149 -0
  36. package/src/ui/Select/types/select.ts +16 -0
  37. package/src/ui/index.ts +3 -0
  38. package/src/utils/classnames.tsx +89 -0
  39. package/src/utils/index.ts +1 -0
  40. package/tailwind.config.js +13 -0
  41. package/tsconfig.json +26 -0
  42. package/tsconfig.node.json +10 -0
  43. package/vite.config.ts +31 -0
package/README.md ADDED
@@ -0,0 +1,6 @@
1
+ npm version patch
2
+
3
+ npm publish --access public --tag beta
4
+ npm publish --access public --tag latest
5
+
6
+ npm config set //registry.npmjs.org/:\_authToken=TOKEN
@@ -0,0 +1,22 @@
1
+ import { default as React, ReactNode } from 'react';
2
+
3
+ export interface ColorSet {
4
+ bg: string;
5
+ hover: string;
6
+ text: string;
7
+ border: string;
8
+ }
9
+ export interface Theme {
10
+ [key: string]: {
11
+ solid: ColorSet;
12
+ outline: ColorSet;
13
+ ghost: ColorSet;
14
+ };
15
+ }
16
+ export declare const useTheme: () => Theme;
17
+ interface ProcessHubProviderProps {
18
+ children: ReactNode;
19
+ theme?: Partial<Theme>;
20
+ }
21
+ export declare const ProcessHubProvider: React.FC<ProcessHubProviderProps>;
22
+ export {};