@assembly-js/design-system 3.0.0 → 3.0.1-alpha.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 (41) hide show
  1. package/dist/esm/components/Avatar/Avatar.js +2 -0
  2. package/dist/esm/components/CheckboxGroup/CheckboxGroup.js +2 -0
  3. package/dist/esm/components/RadioGroup/RadioGroup.js +2 -0
  4. package/dist/esm/components/Search/Search.js +2 -0
  5. package/dist/esm/components/Toolbar/SlashMenu.js +2 -0
  6. package/dist/esm/components/Toolbar/ToolbarContext.js +2 -0
  7. package/dist/esm/components/Tooltip/Tooltip.js +2 -0
  8. package/dist/esm/components/UserCompanySelector/UserCompanySelector.js +2 -0
  9. package/dist/esm/types/tsconfig.tsbuildinfo +1 -1
  10. package/dist/types/tsconfig.tsbuildinfo +1 -1
  11. package/dist/umd/components/Avatar/Avatar.js +1 -0
  12. package/dist/umd/components/CheckboxGroup/CheckboxGroup.js +1 -0
  13. package/dist/umd/components/RadioGroup/RadioGroup.js +1 -0
  14. package/dist/umd/components/Search/Search.js +1 -0
  15. package/dist/umd/components/Toolbar/SlashMenu.js +1 -0
  16. package/dist/umd/components/Toolbar/ToolbarContext.js +1 -0
  17. package/dist/umd/components/Tooltip/Tooltip.js +1 -0
  18. package/dist/umd/components/UserCompanySelector/UserCompanySelector.js +1 -0
  19. package/dist/umd/types/tsconfig.tsbuildinfo +1 -1
  20. package/package.json +14 -6
  21. package/.eslintrc.cjs +0 -45
  22. package/.github/workflows/chromatic.yml +0 -21
  23. package/.github/workflows/npm-publish.yml +0 -52
  24. package/.github/workflows/tsc.yml +0 -32
  25. package/.nvmrc +0 -1
  26. package/.prettierignore +0 -2
  27. package/.prettierrc.js +0 -7
  28. package/.storybook/main.ts +0 -40
  29. package/.storybook/preview.ts +0 -11
  30. package/.vscode/css_custom_data.json +0 -9
  31. package/.vscode/extensions.json +0 -11
  32. package/.vscode/launch.json +0 -27
  33. package/.vscode/settings.json +0 -13
  34. package/.yarn/install-state.gz +0 -0
  35. package/.yarn/releases/yarn-4.1.0.cjs +0 -893
  36. package/declarations.d.ts +0 -1
  37. package/docs/ENV_SETUP.md +0 -72
  38. package/next.config.cjs +0 -8
  39. package/pull_request_template.md +0 -17
  40. package/tsconfig.json +0 -49
  41. package/vercel.json +0 -8
package/declarations.d.ts DELETED
@@ -1 +0,0 @@
1
- type Prettify<T> = T extends infer Tb ? { [K in keyof Tb]: Tb[K] } : never;
package/docs/ENV_SETUP.md DELETED
@@ -1,72 +0,0 @@
1
- # Environment Variables Setup
2
-
3
- This project uses AWS Secrets Manager to manage environment variables securely.
4
-
5
- ## Prerequisites
6
-
7
- 1. **AWS CLI installed**: Download and install from [AWS CLI documentation](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)
8
-
9
- 2. **AWS SSO Profile**: Make sure the `portal1` profile is configured in your AWS config
10
-
11
- 3. **Access to the secret**: Ensure your AWS account has permission to read the `design-system/env` secret in AWS Secrets Manager
12
-
13
- ## Fetching Environment Variables
14
-
15
- Run the following command to fetch all environment variables from AWS Secrets Manager and create a local `.env` file:
16
-
17
- ```bash
18
- yarn fetch-env
19
- ```
20
-
21
- This command will:
22
- - Check if your AWS credentials are valid
23
- - Automatically refresh expired SSO tokens using `ssocreds`
24
- - Connect to AWS Secrets Manager using the `portal1` profile
25
- - Fetch the secret named `design-system/env` from `us-east-1`
26
- - Create a `.env` file in the project root with all the environment variables
27
-
28
- ## Automatic SSO Token Management
29
-
30
- The script includes automatic handling of AWS SSO tokens:
31
- - If your SSO token has expired, it will automatically attempt to refresh it using `ssocreds`
32
- - If `ssocreds` is not installed, it will attempt to install it globally
33
- - If automatic refresh fails, it will provide manual instructions
34
-
35
- ## Troubleshooting
36
-
37
- ### AWS CLI not found
38
- If you get an error about AWS CLI not being found, install it following the [official guide](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html).
39
-
40
- ### Portal1 profile not found
41
- If you get an error about the portal1 profile not being found, configure it by running:
42
- ```bash
43
- aws configure sso --profile portal1
44
- ```
45
-
46
- ### Access denied
47
- If you get an access denied error, contact your AWS administrator to grant you read access to the `design-system/env` secret.
48
-
49
- ## Security Notes
50
-
51
- - The `.env` file is automatically ignored by git (included in `.gitignore`)
52
- - Never commit the `.env` file to version control
53
- - Environment variables are stored securely in AWS Secrets Manager
54
- - Access to secrets is managed through AWS IAM policies
55
-
56
- ## Adding/Updating Environment Variables
57
-
58
- To add or update environment variables:
59
- 1. Update the `design-system/env` secret in AWS Secrets Manager (via AWS Console or CLI)
60
- 2. Run `yarn fetch-env` to fetch the updated variables
61
-
62
- ## Example Secret Format in AWS
63
-
64
- The secret in AWS Secrets Manager should be stored as a JSON object:
65
-
66
- ```json
67
- {
68
- "API_KEY": "your-api-key",
69
- "DATABASE_URL": "your-database-url",
70
- "FIGMA_TOKEN": "your-figma-token"
71
- }
72
- ```
package/next.config.cjs DELETED
@@ -1,8 +0,0 @@
1
- // @ts-check
2
-
3
- /** @type {import('next').NextConfig} */
4
- const nextConfig = {
5
- /* config options here */
6
- };
7
-
8
- module.exports = nextConfig;
@@ -1,17 +0,0 @@
1
- ### What this does
2
-
3
- Please explain what functionality this PR adds or fixes. E.g.
4
- Shows the close icon on top of modal based on prop
5
-
6
- ### Implementation
7
-
8
- In `Modal` component, passed on `showCloseIcon` prop.
9
-
10
- ### Testing
11
-
12
- <!-- Include information here about what tests were added. (Unit/Integration) as well as any manual test paths followed. -->
13
-
14
- ### Screenshots / Loom Video / GIF
15
-
16
- <!-- Share any content to indicate the nature of your changes. -->
17
-
package/tsconfig.json DELETED
@@ -1,49 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "skipLibCheck": true,
4
- "target": "ESNext",
5
- "allowJs": true,
6
- "moduleDetection": "force",
7
- "isolatedModules": true,
8
- "strict": true,
9
- "noUncheckedIndexedAccess": true,
10
- "checkJs": true,
11
- "lib": [
12
- "dom",
13
- "dom.iterable",
14
- "ES2022"
15
- ],
16
- "types": ["react", "react-dom"],
17
- "noEmit": false,
18
- "jsx": "preserve",
19
- "plugins": [
20
- {
21
- "name": "next"
22
- }
23
- ],
24
- "incremental": true,
25
- "baseUrl": ".",
26
- "paths": {
27
- "~/*": [
28
- "./src/*"
29
- ]
30
- },
31
- "declaration": true,
32
- "outDir": "dist/types",
33
- "esModuleInterop": true,
34
- "module": "NodeNext",
35
- "moduleResolution": "NodeNext"
36
- },
37
- "include": [
38
- "src/**/*",
39
- "src/assets/*",
40
- "declarations.d.ts",
41
- ],
42
- "exclude": [
43
- "node_modules",
44
- "dist",
45
- "tailwind.config.ts",
46
- "svgo.config.cjs",
47
- ".eslintrc.cjs"
48
- ]
49
- }
package/vercel.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "$schema": "https://openapi.vercel.sh/vercel.json",
3
- "buildCommand": "npm run build-storybook",
4
- "devCommand": "npm run storybook",
5
- "installCommand": "npm install",
6
- "framework": null,
7
- "outputDirectory": "./storybook-static"
8
- }