@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/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@assembly-js/design-system",
3
- "version": "3.0.0",
3
+ "version": "3.0.1-alpha.1",
4
+ "main": "./dist/umd/index.js",
5
+ "module": "./dist/esm/index.js",
4
6
  "types": "dist/types/index.d.ts",
7
+ "files": ["dist"],
8
+ "sideEffects": ["./dist/styles/main.css"],
5
9
  "repository": {
6
10
  "type": "git",
7
11
  "url": "https://github.com/copilot-platforms/design-system.git"
@@ -11,11 +15,15 @@
11
15
  },
12
16
  "exports": {
13
17
  ".": {
18
+ "types": "./dist/types/index.d.ts",
14
19
  "import": "./dist/esm/index.js",
15
20
  "require": "./dist/umd/index.js",
16
- "types": "./dist/types/index.d.ts"
21
+ "default": "./dist/esm/index.js"
17
22
  },
18
- "./dist/styles/main.css": "./dist/styles/main.css"
23
+ "./dist/styles/main.css": {
24
+ "import": "./dist/styles/main.css",
25
+ "default": "./dist/styles/main.css"
26
+ }
19
27
  },
20
28
  "scripts": {
21
29
  "build": "rm -rf dist && yarn build-css && node scripts/build.cjs && tsc --emitDeclarationOnly && tsc-alias -p tsconfig.json && cp -r dist/types dist/esm/types && cp -r dist/types dist/umd/types",
@@ -28,8 +36,8 @@
28
36
  "fetch-env": "node scripts/fetch-env.js"
29
37
  },
30
38
  "peerDependencies": {
31
- "react": "^17.0.0 || ^18.0.0",
32
- "react-dom": "^17.0.0 || ^18.0.0"
39
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
40
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
33
41
  },
34
42
  "dependencies": {
35
43
  "@radix-ui/react-avatar": "^1.0.4",
@@ -95,4 +103,4 @@
95
103
  "initVersion": "7.26.0"
96
104
  },
97
105
  "packageManager": "yarn@4.1.0"
98
- }
106
+ }
package/.eslintrc.cjs DELETED
@@ -1,45 +0,0 @@
1
- /** @type {import("eslint").Linter.Config} */
2
- const config = {
3
- parser: '@typescript-eslint/parser',
4
- parserOptions: {
5
- project: true,
6
- },
7
- ignorePatterns: [
8
- '*.config.js',
9
- '*.config.ts',
10
- '*.config.cjs',
11
- 'dist/**/*',
12
- 'scripts',
13
- ],
14
- plugins: ['@typescript-eslint'],
15
- extends: [
16
- 'next/core-web-vitals',
17
- 'plugin:@typescript-eslint/recommended-type-checked',
18
- 'plugin:@typescript-eslint/stylistic-type-checked',
19
- 'plugin:storybook/recommended',
20
- ],
21
- rules: {
22
- // These opinionated rules are enabled in stylistic-type-checked above.
23
- // Feel free to reconfigure them to your own preference.
24
- '@typescript-eslint/array-type': 'off',
25
- '@typescript-eslint/consistent-type-definitions': 'off',
26
-
27
- '@typescript-eslint/consistent-type-imports': [
28
- 'warn',
29
- {
30
- prefer: 'type-imports',
31
- fixStyle: 'inline-type-imports',
32
- },
33
- ],
34
- '@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
35
- '@typescript-eslint/require-await': 'off',
36
- '@typescript-eslint/no-misused-promises': [
37
- 'error',
38
- {
39
- checksVoidReturn: { attributes: false },
40
- },
41
- ],
42
- },
43
- };
44
-
45
- module.exports = config;
@@ -1,21 +0,0 @@
1
- name: "Chromatic"
2
-
3
- on: push
4
-
5
-
6
- jobs:
7
- chromatic:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - name: Checkout code
11
- uses: actions/checkout@v4
12
- with:
13
- fetch-depth: 0
14
-
15
- - name: Install dependencies
16
- run: yarn install
17
-
18
- - name: Run Chromatic
19
- uses: chromaui/action@latest
20
- with:
21
- projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
@@ -1,52 +0,0 @@
1
- name: NPM Publish
2
-
3
- on:
4
- workflow_dispatch:
5
-
6
- permissions:
7
- contents: read
8
- id-token: write
9
-
10
- jobs:
11
- publish:
12
- runs-on: ubuntu-latest
13
-
14
- steps:
15
- - name: Checkout repository
16
- uses: actions/checkout@v4
17
-
18
- - name: Setup Node.js
19
- uses: actions/setup-node@v4
20
- with:
21
- node-version: '22'
22
-
23
- - name: Upgrade npm for OIDC support
24
- run: npm install -g npm@latest
25
-
26
- - name: Install dependencies
27
- run: yarn install --immutable
28
-
29
- - name: Build
30
- run: yarn build
31
-
32
- # Publish to @assembly-js/design-system
33
- - name: Publish @assembly-js/design-system
34
- run: |
35
- node -e "
36
- const pkg = require('./package.json');
37
- pkg.name = '@assembly-js/design-system';
38
- delete pkg.deprecated;
39
- require('fs').writeFileSync('./package.json', JSON.stringify(pkg, null, 2));
40
- "
41
- npm publish --access public
42
-
43
- # Publish to copilot-design-system (legacy)
44
- - name: Publish copilot-design-system (legacy)
45
- run: |
46
- node -e "
47
- const pkg = require('./package.json');
48
- pkg.name = 'copilot-design-system';
49
- pkg.deprecated = 'This package has been renamed to @assembly-js/design-system';
50
- require('fs').writeFileSync('./package.json', JSON.stringify(pkg, null, 2));
51
- "
52
- npm publish --access public
@@ -1,32 +0,0 @@
1
- name: TypeScript Compilation
2
-
3
- on:
4
- # Trigger the workflow on push and pull requests to main branch
5
- push:
6
- branches: ['main']
7
- pull_request:
8
- branches: ['main']
9
-
10
- jobs:
11
- build:
12
- # Using the latest Ubuntu runner
13
- runs-on: ubuntu-latest
14
-
15
- steps:
16
- # Checkout the repository code
17
- - uses: actions/checkout@v4
18
-
19
- # Set up Node.js with specific version
20
- - name: Use Node.js 20.13.1
21
- uses: actions/setup-node@v4
22
- with:
23
- node-version: 20.13.1
24
- cache: 'yarn'
25
-
26
- # Install dependencies using Yarn
27
- - name: Install dependencies
28
- run: yarn install --frozen-lockfile
29
-
30
- # Run TypeScript compiler
31
- - name: Run TypeScript Compilation
32
- run: yarn tsc --noEmit
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- v20.13.1
package/.prettierignore DELETED
@@ -1,2 +0,0 @@
1
- build
2
- dist
package/.prettierrc.js DELETED
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- plugins: ['prettier-plugin-tailwindcss'],
3
- singleQuote: true,
4
- trailingComma: 'all',
5
- printWidth: 80,
6
- endOfLine: 'auto',
7
- };
@@ -1,40 +0,0 @@
1
- import type { StorybookConfig } from '@storybook/nextjs';
2
-
3
- const config: StorybookConfig = {
4
- stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
5
- addons: [
6
- '@storybook/addon-links',
7
- '@storybook/addon-essentials',
8
- '@storybook/addon-onboarding',
9
- '@storybook/addon-interactions',
10
- '@storybook/addon-styling-webpack',
11
- '@storybook/addon-webpack5-compiler-swc',
12
- 'storybook-addon-pseudo-states',
13
- ],
14
- framework: {
15
- name: '@storybook/nextjs',
16
- options: {
17
- builder: {
18
- useSWC: true,
19
- },
20
- },
21
- },
22
- swc: () => ({
23
- jsc: {
24
- transform: {
25
- react: {
26
- runtime: 'automatic',
27
- },
28
- },
29
- },
30
- }),
31
-
32
- docs: {
33
- autodocs: 'tag',
34
- },
35
- typescript: {
36
- reactDocgen: 'react-docgen-typescript',
37
- },
38
- };
39
-
40
- export default config;
@@ -1,11 +0,0 @@
1
- import type { Preview } from "@storybook/react";
2
- import "../src/styles/main.css";
3
-
4
- const preview: Preview = {
5
- parameters: {
6
- actions: {},
7
- controls: {},
8
- },
9
- };
10
-
11
- export default preview;
@@ -1,9 +0,0 @@
1
- {
2
- "version": 1.1,
3
- "atDirectives": [
4
- {
5
- "name": "@tailwind",
6
- "description": "Use the @tailwind directive to insert Tailwind's `base`, `components`, `utilities`, and `screens` styles into your CSS."
7
- }
8
- ]
9
- }
@@ -1,11 +0,0 @@
1
- {
2
- "recommendations": [
3
- "waderyan.gitblame",
4
- "esbenp.prettier-vscode",
5
- "dbaeumer.vscode-eslint",
6
- "bradlc.vscode-tailwindcss",
7
- ],
8
- "unwantedRecommendations": [
9
-
10
- ]
11
- }
@@ -1,27 +0,0 @@
1
- {
2
- // Use IntelliSense to learn about possible attributes.
3
- // Hover to view descriptions of existing attributes.
4
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
- "version": "0.2.0",
6
- "configurations": [
7
- {
8
- "type": "node",
9
- "request": "launch",
10
- "name": "build",
11
- "cwd": "${workspaceRoot}",
12
- "runtimeExecutable": "yarn",
13
- "runtimeArgs": ["build"],
14
- "stopOnEntry": false,
15
- },
16
- {
17
- "type": "node",
18
- "request": "launch",
19
- "name": "export-icons",
20
- "cwd": "${workspaceRoot}",
21
- "runtimeExecutable": "yarn",
22
- "runtimeArgs": ["export-icons"],
23
- "stopOnEntry": false,
24
- }
25
- ]
26
- }
27
-
@@ -1,13 +0,0 @@
1
- {
2
- "editor.formatOnSave": true,
3
- "css.customData": [".vscode/css_custom_data.json"],
4
- "[javascript]": {
5
- "editor.defaultFormatter": "esbenp.prettier-vscode"
6
- },
7
- "[typescript]": {
8
- "editor.defaultFormatter": "esbenp.prettier-vscode"
9
- },
10
- "[typescriptreact]": {
11
- "editor.defaultFormatter": "esbenp.prettier-vscode"
12
- }
13
- }
Binary file