@tetrascience-npm/tetrascience-react-ui 0.3.0 → 0.4.0-beta.10.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tetrascience-npm/tetrascience-react-ui",
3
- "version": "0.3.0",
3
+ "version": "0.4.0-beta.10.1",
4
4
  "description": "TetraScience React UI",
5
5
  "type": "module",
6
6
  "author": "TetraScience",
@@ -34,26 +34,72 @@
34
34
  "default": "./dist/cjs/server.js"
35
35
  }
36
36
  },
37
+ "./server/providers/athena": {
38
+ "import": {
39
+ "types": "./dist/providers/athena.d.ts",
40
+ "default": "./dist/esm/providers/athena.js"
41
+ },
42
+ "require": {
43
+ "types": "./dist/providers/athena.d.ts",
44
+ "default": "./dist/cjs/providers/athena.js"
45
+ }
46
+ },
47
+ "./server/providers/snowflake": {
48
+ "import": {
49
+ "types": "./dist/providers/snowflake.d.ts",
50
+ "default": "./dist/esm/providers/snowflake.js"
51
+ },
52
+ "require": {
53
+ "types": "./dist/providers/snowflake.d.ts",
54
+ "default": "./dist/cjs/providers/snowflake.js"
55
+ }
56
+ },
57
+ "./server/providers/databricks": {
58
+ "import": {
59
+ "types": "./dist/providers/databricks.d.ts",
60
+ "default": "./dist/esm/providers/databricks.js"
61
+ },
62
+ "require": {
63
+ "types": "./dist/providers/databricks.d.ts",
64
+ "default": "./dist/cjs/providers/databricks.js"
65
+ }
66
+ },
37
67
  "./index.css": "./dist/index.css",
38
68
  "./package.json": "./package.json"
39
69
  },
40
70
  "scripts": {
41
- "test": "vitest run",
42
- "test:watch": "vitest",
43
- "test:coverage": "vitest run --coverage",
71
+ "test": "vitest run --project=unit",
72
+ "test:watch": "vitest --project=unit",
73
+ "test:coverage": "vitest run --project=unit --coverage",
74
+ "test:storybook": "vitest run --project=storybook",
75
+ "test:storybook:watch": "vitest --project=storybook",
76
+ "test:storybook:coverage": "vitest run --project=storybook --coverage",
77
+ "test:storybook:ci": "vitest run --project=storybook --reporter=junit --outputFile=test-results/storybook-junit.xml",
78
+ "test:all": "vitest run",
79
+ "test:all:coverage": "vitest run --coverage",
44
80
  "build": "rm -rf dist && rollup -c --bundleConfigAsCjs",
45
81
  "storybook": "pms build && storybook dev -p 6006",
46
82
  "build-storybook": "pms build && storybook build",
47
83
  "prepare": "husky",
48
- "prepublishOnly": "pms run build"
84
+ "prepublishOnly": "pms run build",
85
+ "lint": "eslint . --max-warnings 0",
86
+ "lint:fix": "eslint . --fix --max-warnings 0",
87
+ "typecheck": "tsc --noEmit",
88
+ "format": "prettier --write .",
89
+ "format:check": "prettier --check ."
49
90
  },
50
91
  "dependencies": {
92
+ "@aws-sdk/client-cloudwatch-logs": ">=3.0.0 <4.0.0",
93
+ "@aws-sdk/client-sqs": ">=3.0.0 <4.0.0",
94
+ "@aws-sdk/client-ssm": ">=3.0.0 <4.0.0",
95
+ "@aws-sdk/lib-storage": ">=3.0.0 <4.0.0",
51
96
  "@dagrejs/dagre": "^1.1.4",
52
97
  "@monaco-editor/react": "^4.7.0",
53
- "@tetrascience-npm/ts-connectors-sdk": "^3.1.1",
98
+ "@tetrascience-npm/ts-connectors-sdk": "^3.2.0",
54
99
  "@types/plotly.js": "^3.0.0",
55
100
  "@types/react-plotly.js": "^2.6.3",
56
101
  "@xyflow/react": "^12.6.4",
102
+ "apache-arrow": "^21.1.0",
57
103
  "axios": "^1.9.0",
58
104
  "elkjs": "^0.10.0",
59
105
  "immer": "^10.1.1",
@@ -61,8 +107,6 @@
61
107
  "monaco-themes": "0.4.7",
62
108
  "plotly.js": "^3.0.1",
63
109
  "plotly.js-dist": "^2.35.2",
64
- "react": "^18.3.0",
65
- "react-dom": "^18.3.0",
66
110
  "react-markdown": "^10.1.0",
67
111
  "react-plotly.js": "^2.6.0",
68
112
  "react-syntax-highlighter": "^15.6.1",
@@ -72,37 +116,67 @@
72
116
  "use-immer": "^0.11.0"
73
117
  },
74
118
  "peerDependencies": {
75
- "react": "^18.3.0",
76
- "react-dom": "^18.3.0"
119
+ "@aws-sdk/client-athena": "^3.0.0",
120
+ "@databricks/sql": "^1.0.0",
121
+ "react": "^19.0.0",
122
+ "react-dom": "^19.0.0",
123
+ "snowflake-sdk": "^2.0.0"
124
+ },
125
+ "peerDependenciesMeta": {
126
+ "@aws-sdk/client-athena": {
127
+ "optional": true
128
+ },
129
+ "@databricks/sql": {
130
+ "optional": true
131
+ },
132
+ "snowflake-sdk": {
133
+ "optional": true
134
+ }
77
135
  },
78
136
  "devDependencies": {
137
+ "@aws-sdk/client-athena": "^3.975.0",
138
+ "@aws-sdk/client-s3": "^3.985.0",
139
+ "@aws-sdk/s3-request-presigner": "^3.985.0",
140
+ "@databricks/sql": "^1.12.0",
79
141
  "@eslint/js": "^9.9.0",
80
142
  "@rollup/plugin-commonjs": "^28.0.3",
81
143
  "@rollup/plugin-json": "^6.1.0",
82
144
  "@rollup/plugin-node-resolve": "^16.0.1",
83
- "@storybook/addon-essentials": "^8.5.6",
84
- "@storybook/addon-interactions": "^8.5.6",
85
- "@storybook/addon-links": "^8.5.6",
86
- "@storybook/blocks": "^8.5.6",
87
- "@storybook/react": "^8.5.6",
88
- "@storybook/react-vite": "^8.5.6",
89
- "@storybook/test": "^8.5.6",
90
- "@types/react": "^18.3.3",
91
- "@types/react-dom": "^18.3.0",
145
+ "@storybook/addon-docs": "^10.2.10",
146
+ "@storybook/addon-links": "^10.2.10",
147
+ "@storybook/addon-vitest": "^10.2.10",
148
+ "@storybook/react": "^10.2.10",
149
+ "@storybook/react-vite": "^10.2.10",
150
+ "@types/cookie-parser": "^1",
151
+ "@types/eslint-plugin-jsx-a11y": "^6",
152
+ "@types/jsdom": "^27",
153
+ "@types/react": "^19.0.0",
154
+ "@types/react-dom": "^19.0.0",
92
155
  "@types/react-syntax-highlighter": "^15",
93
156
  "@types/rollup-plugin-peer-deps-external": "^2",
94
157
  "@vitejs/plugin-react": "^4.3.1",
95
- "@vitest/coverage-v8": "^2.1.0",
158
+ "@vitest/browser": "^3",
159
+ "@vitest/coverage-v8": "^3",
160
+ "cookie-parser": "^1.4.7",
96
161
  "eslint": "^9.9.0",
97
162
  "eslint-plugin-import": "^2.31.0",
163
+ "eslint-plugin-jsx-a11y": "^6.10.2",
98
164
  "eslint-plugin-react": "^7.34.1",
99
165
  "eslint-plugin-react-hooks": "^5.1.0-rc.0",
100
166
  "eslint-plugin-react-refresh": "^0.4.9",
101
- "eslint-plugin-storybook": "^0.11.2",
167
+ "eslint-plugin-sonarjs": "^3.0.7",
168
+ "eslint-plugin-storybook": "^10.2.8",
169
+ "eslint-plugin-unicorn": "^63.0.0",
170
+ "fast-xml-parser": "^5.3.4",
102
171
  "globals": "^15.9.0",
103
172
  "husky": "^9.1.7",
173
+ "jsdom": "^27.4.0",
104
174
  "lint-staged": "^15.2.0",
175
+ "playwright": "^1.58.1",
105
176
  "pmswitch": "^1.0.8",
177
+ "prettier": "^3.8.1",
178
+ "react": "^19.0.0",
179
+ "react-dom": "^19.0.0",
106
180
  "rollup": "^4.41.0",
107
181
  "rollup-plugin-dts": "^6.2.1",
108
182
  "rollup-plugin-peer-deps-external": "^2.2.4",
@@ -110,11 +184,14 @@
110
184
  "rollup-plugin-terser": "^7.0.2",
111
185
  "rollup-plugin-typescript2": "^0.36.0",
112
186
  "sass": "^1.89.0",
113
- "storybook": "^8.5.6",
187
+ "snowflake-sdk": "^2.3.3",
188
+ "storybook": "^10.2.10",
189
+ "ts-morph": "^27.0.2",
190
+ "tsx": "^4.21.0",
114
191
  "typescript": "^5.5.3",
115
192
  "typescript-eslint": "^8.0.1",
116
193
  "vite": "^5.4.1",
117
- "vitest": "^2.1.0"
194
+ "vitest": "^3"
118
195
  },
119
196
  "resolutions": {
120
197
  "jackspeak": "2.1.1",
@@ -148,4 +225,4 @@
148
225
  "url": "https://github.com/tetrascience/ts-lib-ui-kit/issues"
149
226
  },
150
227
  "homepage": "https://github.com/tetrascience/ts-lib-ui-kit#readme"
151
- }
228
+ }
@@ -1,56 +0,0 @@
1
- # SCSS System Guide
2
-
3
- This document explains how to use the centralized SCSS system in TetraScience UI components.
4
-
5
- ## Architecture Overview
6
-
7
- Our SCSS system provides:
8
- - **Centralized colors** via CSS custom properties + SCSS variables
9
- - **Reusable mixins** for common patterns
10
- - **Design tokens** for consistent spacing, typography, etc.
11
- - **Single source of truth** for all styling values
12
-
13
- ## File Structure
14
-
15
- ```
16
- src/
17
- ├── colors.scss # Color definitions (CSS vars + SCSS vars)
18
- ├── index.scss # Main entry point
19
- ├── styles/
20
- │ ├── variables.scss # Shared SCSS utilities
21
- │ └── README.md # This file
22
- └── components/
23
- └── atoms/
24
- └── Button/
25
- ├── Button.tsx
26
- └── Button.scss # Component-specific styles
27
- ```
28
-
29
- ## Available Design Tokens
30
-
31
- ### Spacing
32
- ```scss
33
- $spacing-0: 0;
34
- $spacing-1: 0.25rem; // 4px
35
- $spacing-2: 0.5rem; // 8px
36
- $spacing-3: 0.75rem; // 12px
37
- $spacing-4: 1rem; // 16px
38
- ```
39
-
40
- ### Typography
41
- ```scss
42
- $text-xs: 0.75rem; // 12px
43
- $text-sm: 0.875rem; // 14px
44
- $text-base: 1rem; // 16px
45
- $text-lg: 1.125rem; // 18px
46
- ```
47
-
48
- ### Colors
49
- All CSS custom properties are available as SCSS variables:
50
- ```scss
51
- $color-black-900, $color-white-900, $color-blue-500, etc.
52
- ```
53
-
54
- For the complete color palette and usage examples, see the **Color System** section in the [main README](../../README.md#color-system).
55
-
56
- See `src/components/atoms/Button/Button.scss` for implementation examples.