@compsych-ui-components/shared 3.2.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.
package/.gitkeep ADDED
File without changes
package/.swcrc ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "jsc": {
3
+ "target": "es2022",
4
+ "parser": {
5
+ "syntax": "typescript",
6
+ "tsx": false,
7
+ "decorators": true,
8
+ "dynamicImport": true
9
+ },
10
+ "transform": {
11
+ "decoratorMetadata": true
12
+ }
13
+ },
14
+ "module": {
15
+ "type": "nodenext"
16
+ },
17
+ "sourceMaps": true,
18
+ "exclude": [".*\\.spec\\.tsx?$"]
19
+ }
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@compsych-ui-components/shared",
3
+ "version": "3.2.5",
4
+ "description": "Shared types, design tokens, utilities, and assets for compsych UI components",
5
+ "main": "./src/index.js",
6
+ "types": "./src/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./src/index.d.ts",
10
+ "default": "./src/index.js"
11
+ }
12
+ },
13
+ "publishConfig": {
14
+ "access": "public",
15
+ "registry": "https://registry.npmjs.org/"
16
+ }
17
+ }
package/project.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "shared",
3
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
+ "sourceRoot": "packages/shared/src",
5
+ "projectType": "library",
6
+ "targets": {
7
+ "build": {
8
+ "executor": "@nx/js:swc",
9
+ "outputs": ["{options.outputPath}"],
10
+ "options": {
11
+ "outputPath": "dist/packages/shared",
12
+ "main": "packages/shared/src/index.ts",
13
+ "tsConfig": "packages/shared/tsconfig.lib.json",
14
+ "assets": [
15
+ {
16
+ "input": "packages/shared/src/assets",
17
+ "glob": "**/*",
18
+ "output": "assets"
19
+ }
20
+ ]
21
+ }
22
+ }
23
+ }
24
+ }
package/src/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from './types';
2
+ export * from './tokens';
3
+ export * from './utils';
@@ -0,0 +1,2 @@
1
+ // Design tokens: colors, spacing, typography
2
+ export {};
@@ -0,0 +1,2 @@
1
+ // Shared TypeScript types and interfaces
2
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Displays a browser alert dialog with the provided message.
3
+ */
4
+ export function showAlert(message: string): void {
5
+ alert(message);
6
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../dist/out-tsc",
5
+ "declarationDir": "../../dist/out-tsc"
6
+ },
7
+ "include": ["src/**/*.ts"]
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "types": []
6
+ },
7
+ "exclude": ["**/*.spec.ts"]
8
+ }