@cayuse-test/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 (103) hide show
  1. package/README.md +346 -0
  2. package/dist/chunk-2K3CWMLR.js +108 -0
  3. package/dist/chunk-2K3CWMLR.js.map +1 -0
  4. package/dist/chunk-B2Z63U4D.js +10398 -0
  5. package/dist/chunk-B2Z63U4D.js.map +1 -0
  6. package/dist/chunk-EPGO6B3U.js +3 -0
  7. package/dist/chunk-EPGO6B3U.js.map +1 -0
  8. package/dist/chunk-LFWPG3ND.js +97 -0
  9. package/dist/chunk-LFWPG3ND.js.map +1 -0
  10. package/dist/chunk-M2L7SQBQ.js +205 -0
  11. package/dist/chunk-M2L7SQBQ.js.map +1 -0
  12. package/dist/chunk-MJBMK4OG.js +143 -0
  13. package/dist/chunk-MJBMK4OG.js.map +1 -0
  14. package/dist/chunk-RG4GEORO.js +194 -0
  15. package/dist/chunk-RG4GEORO.js.map +1 -0
  16. package/dist/chunk-SZMEZFAR.js +193 -0
  17. package/dist/chunk-SZMEZFAR.js.map +1 -0
  18. package/dist/chunk-TYZPOXN5.js +243 -0
  19. package/dist/chunk-TYZPOXN5.js.map +1 -0
  20. package/dist/chunk-XRUFEGUC.js +225 -0
  21. package/dist/chunk-XRUFEGUC.js.map +1 -0
  22. package/dist/components/index.d.ts +1471 -0
  23. package/dist/components/index.js +144 -0
  24. package/dist/components/index.js.map +1 -0
  25. package/dist/context/tenant/index.d.ts +200 -0
  26. package/dist/context/tenant/index.js +14 -0
  27. package/dist/context/tenant/index.js.map +1 -0
  28. package/dist/globals/constants/index.d.ts +83 -0
  29. package/dist/globals/constants/index.js +31 -0
  30. package/dist/globals/constants/index.js.map +1 -0
  31. package/dist/globals/css/index.d.ts +2 -0
  32. package/dist/globals/css/index.js +2 -0
  33. package/dist/globals/css/index.js.map +1 -0
  34. package/dist/hooks/index.d.ts +125 -0
  35. package/dist/hooks/index.js +30 -0
  36. package/dist/hooks/index.js.map +1 -0
  37. package/dist/index-4NH7IW34.css +47 -0
  38. package/dist/index.d.ts +16 -0
  39. package/dist/index.js +302 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/modal-dialog-IH5SI4CF.css +93 -0
  42. package/dist/services/upload-s3/index.d.ts +35 -0
  43. package/dist/services/upload-s3/index.js +11 -0
  44. package/dist/services/upload-s3/index.js.map +1 -0
  45. package/dist/styles-2WZORUGA.css +106 -0
  46. package/dist/styles-32VHTPIA.css +20 -0
  47. package/dist/styles-3A5DZ5R7.css +70 -0
  48. package/dist/styles-3PFCZALV.css +60 -0
  49. package/dist/styles-3SNYRDO2.css +100 -0
  50. package/dist/styles-4FHUBUVF.css +150 -0
  51. package/dist/styles-4KAVAZFG.css +5 -0
  52. package/dist/styles-4OFM6DY5.css +22 -0
  53. package/dist/styles-5OXZHQGW.css +14 -0
  54. package/dist/styles-6XZTUN3B.css +68 -0
  55. package/dist/styles-73WOPK6M.css +6 -0
  56. package/dist/styles-7AV26IBF.css +35 -0
  57. package/dist/styles-7DWK55L2.css +71 -0
  58. package/dist/styles-7GWPZSR2.css +222 -0
  59. package/dist/styles-7QBPXFSY.css +6 -0
  60. package/dist/styles-7T6DSZIY.css +27 -0
  61. package/dist/styles-AUI7W2SW.css +408 -0
  62. package/dist/styles-AZSHBXJQ.css +85 -0
  63. package/dist/styles-BTXJVGNW.css +99 -0
  64. package/dist/styles-BUPIQG5C.css +74 -0
  65. package/dist/styles-CLK36LUK.css +27 -0
  66. package/dist/styles-CSKYCMD4.css +123 -0
  67. package/dist/styles-CWCX26BQ.css +13 -0
  68. package/dist/styles-GAIKDZU6.css +47 -0
  69. package/dist/styles-GB7S5BAZ.css +36 -0
  70. package/dist/styles-GVPT6A2Z.css +45 -0
  71. package/dist/styles-IUBOTHBR.css +581 -0
  72. package/dist/styles-IZPTZRKW.css +78 -0
  73. package/dist/styles-LS2YWO5W.css +39 -0
  74. package/dist/styles-M5BEFS4G.css +148 -0
  75. package/dist/styles-MHNICXOS.css +18 -0
  76. package/dist/styles-P6IOJDNI.css +47 -0
  77. package/dist/styles-Q7XE2QVU.css +55 -0
  78. package/dist/styles-R7IS5IGF.css +7 -0
  79. package/dist/styles-RDYYTTBU.css +218 -0
  80. package/dist/styles-RTHIZL5W.css +48 -0
  81. package/dist/styles-RUY4EKZW.css +9 -0
  82. package/dist/styles-T5QJAAUY.css +184 -0
  83. package/dist/styles-VBXWGFCK.css +96 -0
  84. package/dist/styles-VE76CGRO.css +6 -0
  85. package/dist/styles-VLCZ7JYV.css +140 -0
  86. package/dist/styles-W5HDD3YQ.css +71 -0
  87. package/dist/styles-X7BJCSFV.css +86 -0
  88. package/dist/styles-XVRR5GIG.css +42 -0
  89. package/dist/styles-YBC6BJBD.css +83 -0
  90. package/dist/styles-YXNJHPDZ.css +74 -0
  91. package/dist/styles-Z276IEVM.css +264 -0
  92. package/dist/utils/index.d.ts +145 -0
  93. package/dist/utils/index.js +98 -0
  94. package/dist/utils/index.js.map +1 -0
  95. package/package.json +113 -0
  96. package/packages/eslint-config/README.md +69 -0
  97. package/packages/eslint-config/base.js +25 -0
  98. package/packages/eslint-config/next.js +49 -0
  99. package/packages/eslint-config/react-internal.js +44 -0
  100. package/packages/typescript-config/README.md +70 -0
  101. package/packages/typescript-config/base.json +21 -0
  102. package/packages/typescript-config/nextjs.json +12 -0
  103. package/packages/typescript-config/react-library.json +7 -0
@@ -0,0 +1,69 @@
1
+ # ESLint Configurations
2
+
3
+ Shared ESLint configurations for Cayuse projects.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @cayuse-react-2/core
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ### Base Config
14
+
15
+ Basic ESLint setup with TypeScript support:
16
+
17
+ ```js
18
+ // eslint.config.js
19
+ import { config } from '@cayuse-react-2/core/eslint-config/base';
20
+
21
+ export default config;
22
+ ```
23
+
24
+ ### React Internal Config
25
+
26
+ For React libraries with hooks and accessibility rules:
27
+
28
+ ```js
29
+ // eslint.config.js
30
+ import { config } from '@cayuse-react-2/core/eslint-config/react-internal';
31
+
32
+ export default config;
33
+ ```
34
+
35
+ ### Next.js Config
36
+
37
+ For Next.js applications:
38
+
39
+ ```js
40
+ // eslint.config.js
41
+ import { config } from '@cayuse-react-2/core/eslint-config/next';
42
+
43
+ export default config;
44
+ ```
45
+
46
+ ## Features
47
+
48
+ - ✅ TypeScript support via typescript-eslint
49
+ - ✅ Prettier integration
50
+ - ✅ React rules (react-internal and next)
51
+ - ✅ React Hooks rules
52
+ - ✅ JSX A11y accessibility rules
53
+ - ✅ Only-warn plugin (converts errors to warnings)
54
+
55
+ ## Peer Dependencies
56
+
57
+ Make sure these are installed in your project:
58
+
59
+ - `@eslint/js` ^9.30.0
60
+ - `eslint` ^9.30.0
61
+ - `eslint-config-prettier` ^10.1.1
62
+ - `typescript-eslint` ^8.35.0
63
+
64
+ For React configs, also install:
65
+
66
+ - `eslint-plugin-react` ^7.37.5
67
+ - `eslint-plugin-react-hooks` ^5.2.0
68
+ - `eslint-plugin-jsx-a11y` ^6.10.2
69
+ - `globals` ^16.2.0
@@ -0,0 +1,25 @@
1
+ import js from '@eslint/js';
2
+ import eslintConfigPrettier from 'eslint-config-prettier';
3
+ import tseslint from 'typescript-eslint';
4
+ import onlyWarn from 'eslint-plugin-only-warn';
5
+
6
+ /**
7
+ * A shared ESLint configuration for the repository.
8
+ *
9
+ * @type {import("eslint").Linter.Config[]}
10
+ * */
11
+ export const config = [
12
+ js.configs.recommended,
13
+ eslintConfigPrettier,
14
+ ...tseslint.configs.recommended,
15
+ {
16
+ plugins: {
17
+ onlyWarn,
18
+ },
19
+ },
20
+ {
21
+ ignores: ['dist/**', 'postcss.config.cjs'],
22
+ },
23
+ ];
24
+
25
+ export default config;
@@ -0,0 +1,49 @@
1
+ import js from '@eslint/js';
2
+ import eslintConfigPrettier from 'eslint-config-prettier';
3
+ import tseslint from 'typescript-eslint';
4
+ import pluginReactHooks from 'eslint-plugin-react-hooks';
5
+ import pluginReact from 'eslint-plugin-react';
6
+ import globals from 'globals';
7
+ import pluginNext from '@next/eslint-plugin-next';
8
+ import { config as baseConfig } from './base.js';
9
+
10
+ /**
11
+ * A custom ESLint configuration for libraries that use Next.js.
12
+ *
13
+ * @type {import("eslint").Linter.Config[]}
14
+ * */
15
+ export const nextJsConfig = [
16
+ ...baseConfig,
17
+ js.configs.recommended,
18
+ eslintConfigPrettier,
19
+ ...tseslint.configs.recommended,
20
+ {
21
+ ...pluginReact.configs.flat.recommended,
22
+ languageOptions: {
23
+ ...pluginReact.configs.flat.recommended.languageOptions,
24
+ globals: {
25
+ ...globals.serviceworker,
26
+ },
27
+ },
28
+ },
29
+ {
30
+ plugins: {
31
+ '@next/next': pluginNext,
32
+ },
33
+ rules: {
34
+ ...pluginNext.configs.recommended.rules,
35
+ ...pluginNext.configs['core-web-vitals'].rules,
36
+ },
37
+ },
38
+ {
39
+ plugins: {
40
+ 'react-hooks': pluginReactHooks,
41
+ },
42
+ settings: { react: { version: 'detect' } },
43
+ rules: {
44
+ ...pluginReactHooks.configs.recommended.rules,
45
+ // React scope no longer necessary with new JSX transform.
46
+ 'react/react-in-jsx-scope': 'off',
47
+ },
48
+ },
49
+ ];
@@ -0,0 +1,44 @@
1
+ import js from '@eslint/js';
2
+ import eslintConfigPrettier from 'eslint-config-prettier';
3
+ import tseslint from 'typescript-eslint';
4
+ import pluginReactHooks from 'eslint-plugin-react-hooks';
5
+ import jsxA11y from 'eslint-plugin-jsx-a11y';
6
+ import pluginReact from 'eslint-plugin-react';
7
+ import globals from 'globals';
8
+ import { config as baseConfig } from './base.js';
9
+
10
+ /**
11
+ * A custom ESLint configuration for libraries that use React.
12
+ *
13
+ * @type {import("eslint").Linter.Config[]} */
14
+ export const config = [
15
+ ...baseConfig,
16
+ js.configs.recommended,
17
+ eslintConfigPrettier,
18
+ ...tseslint.configs.recommended,
19
+ pluginReact.configs.flat.recommended,
20
+ {
21
+ languageOptions: {
22
+ ...pluginReact.configs.flat.recommended.languageOptions,
23
+ globals: {
24
+ ...globals.serviceworker,
25
+ ...globals.browser,
26
+ },
27
+ },
28
+ },
29
+ {
30
+ plugins: {
31
+ 'jsx-a11y': jsxA11y,
32
+ 'react-hooks': pluginReactHooks,
33
+ },
34
+ settings: { react: { version: 'detect' } },
35
+ rules: {
36
+ ...pluginReactHooks.configs.recommended.rules,
37
+ // React scope no longer necessary with new JSX transform.
38
+ 'react/react-in-jsx-scope': 'off',
39
+ 'react/prop-types': 0, // Disable prop-types as we use TypeScript for type checking.
40
+ },
41
+ },
42
+ ];
43
+
44
+ export default config;
@@ -0,0 +1,70 @@
1
+ # TypeScript Configurations
2
+
3
+ Shared TypeScript configurations for Cayuse projects.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @cayuse-react-2/core
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ### Base Config
14
+
15
+ Strict TypeScript configuration with modern ES features:
16
+
17
+ ```json
18
+ {
19
+ "extends": "@cayuse-react-2/core/typescript-config/base.json",
20
+ "compilerOptions": {
21
+ "outDir": "./dist"
22
+ }
23
+ }
24
+ ```
25
+
26
+ ### React Library Config
27
+
28
+ Optimized for React libraries:
29
+
30
+ ```json
31
+ {
32
+ "extends": "@cayuse-react-2/core/typescript-config/react-library.json",
33
+ "compilerOptions": {
34
+ "outDir": "./dist",
35
+ "rootDir": "./src"
36
+ }
37
+ }
38
+ ```
39
+
40
+ ### Next.js Config
41
+
42
+ For Next.js applications:
43
+
44
+ ```json
45
+ {
46
+ "extends": "@cayuse-react-2/core/typescript-config/nextjs.json",
47
+ "compilerOptions": {
48
+ "baseUrl": ".",
49
+ "paths": {
50
+ "@/*": ["./src/*"]
51
+ }
52
+ }
53
+ }
54
+ ```
55
+
56
+ ## Features
57
+
58
+ All configs include:
59
+
60
+ - ✅ Strict type checking enabled
61
+ - ✅ ES2022 target
62
+ - ✅ Modern module resolution (Bundler for base, NodeNext for others)
63
+ - ✅ Declaration file generation
64
+ - ✅ Source maps
65
+ - ✅ JSON module support
66
+ - ✅ Isolated modules for faster builds
67
+
68
+ ## Peer Dependencies
69
+
70
+ - `typescript` ^5.8.2
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "declarationMap": true,
6
+ "esModuleInterop": true,
7
+ "incremental": false,
8
+ "isolatedModules": true,
9
+ "lib": ["es2022", "DOM", "DOM.Iterable"],
10
+ "module": "ESNext",
11
+ "moduleDetection": "force",
12
+ "moduleResolution": "Bundler",
13
+ "noUncheckedIndexedAccess": true,
14
+ "resolveJsonModule": true,
15
+ "skipLibCheck": true,
16
+ "strict": true,
17
+ "target": "ES2022",
18
+ "allowImportingTsExtensions": true,
19
+ "noEmit": true
20
+ }
21
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./base.json",
4
+ "compilerOptions": {
5
+ "plugins": [{ "name": "next" }],
6
+ "module": "ESNext",
7
+ "moduleResolution": "Bundler",
8
+ "allowJs": true,
9
+ "jsx": "preserve",
10
+ "noEmit": true
11
+ }
12
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./base.json",
4
+ "compilerOptions": {
5
+ "jsx": "react-jsx"
6
+ }
7
+ }