381 Commits

Author SHA1 Message Date
a751336b84 feat(cli): add 'add' command
This commit introduces a new command 'add' to the CLI. The 'add' command allows users to add a component to the project with options for custom configurations, and it performs validation checks to ensure the component exists in the registry before installing.
2024-06-07 00:11:25 +09:00
be28704cb1 feat(cli): add logging to config validation
The validateConfig function in the cli module has been updated to include logging. The logs show the locations where the component and shared module will be installed, as well as the import path for the shared module.
2024-06-07 00:11:12 +09:00
acca348e1e feat(cli): handle registry fetching errors
This commit adds error handling for fetching operations from the registry in the CLI 'list' command. Now, any failure in retrieving the registry results in a failed spinner with a clear descriptive message, thus making the failure more apparent to the user.
2024-06-07 00:11:01 +09:00
36c5def5a6 feat(cli): add shared field to Registry interface
A new field "shared" has been added to the Registry interface within the const.ts file located in the cli package. This extends the existing interface to hold more diverse data.
2024-06-06 23:55:43 +09:00
b6d32e980a fix(react): change shared file extension in registry.json
This commit updates the extension of the 'shared' file from .ts to .tsx in the registry.json file. The update ensures that the 'shared' file correctly points to a TypeScript JSX file within the React package.
2024-06-06 23:55:27 +09:00
d2ed474c9d style(cli): update list command description
The format of the list command description has been updated for consistency. A period has been added at the end of the description.
2024-06-06 23:17:22 +09:00
4afa28d07b refactor(cli): remove plugin from package.json
The commit removes the unnecessary "@oclif/plugin-plugins" from the plugin list within the cli's package.json file. This refactor enhances the code cleanliness, and potentially improves the cli performance by reducing the number of plugins loaded at runtime.
2024-06-06 23:16:51 +09:00
d8825a0c10 feat(react): add shared module URL to registry.json
A new attribute "shared" has been added to the 'registry.json' file in the React package. This attribute contains the URL to the shared TypeScript module for components.
2024-06-06 22:46:04 +09:00
7e5759f8a2 feat(cli): add list command
This adds a new 'list' command in the CLI package to print all available components in the registry as well as components installed in the project. This command includes additional options to include component file URL and specify a custom path to the config file.
2024-06-06 22:09:26 +09:00
812cbb6efc refactor(cli): remove and update dependencies
This commit removes deprecated dependencies from the CLI and updates the yarn.lock file to reflect these changes. It also adds new dependencies that are needed for the project. The dependencies removed are "@types/mocha", "ansi-colors", "browser-stdout", "camelcase", "chokidar", "cliui", "debug", "decamelize", "diff", "find-up", "flat", "glob", "he", and "is-plain-obj". The dependencies added include "@types/treeify", "cli-cursor", "emoji-regex", "is-interactive", "is-unicode-supported",
2024-06-06 22:09:13 +09:00
c59c80007a feat(cli): add configuration and path management functionality
This commit introduces configuration and path management functionality in the CLI by adding the helper functions to load and validate configuration. It also provides the logic to retrieve available components from a given registry. Additionally, it exposes these functionalities in public API.
2024-06-06 22:07:19 +09:00
6fd099dc69 refactor: Moved vercel.json file to root directory
We have moved the vercel.json file to the root directory to standardize the project structure and improve the efficiency of referencing the file in our code.
2024-06-06 20:13:23 +09:00
426297796e feat: add components in registry.json
A new file called registry.json has been created in the public react package. This file maps each component to its specific TypeScript file, acting as a repository for components like Button, Checkbox, Dialog, Input and others.
2024-06-06 19:27:18 +09:00
550e942162 feat: remove commands
This commit deletes all template commands and related tests from the CLI package. The template command implementation and its associated tests have been fully removed to make way for new feature implementation.
2024-06-06 19:05:41 +09:00
09a53e7d05 feat: add oclif template 2024-06-06 19:00:53 +09:00
673702947d refactor: adjust types and formatting in shared.tsx
Improved the format and type handling in the react/shared.tsx file. This includes adjustments to how variants are handled and formatted, enhancing type consistency and declarations. Also, ordinary parameters are given trailing commas as per the enhanced coding standards.
2024-06-06 00:16:22 +09:00
92b64405a4 feat: upgrade typescript version
The typescript version was upgraded from 5.3.2 to 5.4.5 in the react package.json and yarn.lock files. This update will introduce any new features and fixes from the latest typescript version.
2024-06-06 00:16:07 +09:00
fdb4d0d70f feat: add Popover docs 2024-06-05 21:31:50 +09:00
ffe49ff90f fix: ensure delta value is absolute in Drawer component
The fix ensures that the calculation of the 'movement' value in the Drawer component doesn't result in a negative number. The division by 'dragState.delta' is now divided by the absolute value to prevent faulty calculations.
2024-06-05 19:16:42 +09:00
7b17e6df9b fix: rollback unknown to any 2024-06-05 19:08:02 +09:00
8cb43b3c1f fix: add unknown index signature in VariantProps 2024-06-05 18:45:10 +09:00
9c996f564a fix: reformat table 2024-06-04 23:14:50 +09:00
b69f886e9e fix: reformat table 2024-06-04 23:11:32 +09:00
c2a1f583a9 fix: remove unused imports 2024-06-04 23:11:03 +09:00
f99d32025f fix: use const instead of let 2024-06-04 23:01:28 +09:00
f7ce1e8a1f fix: add void to explicitly ignore promise 2024-06-04 22:58:16 +09:00
08ff0ee8e2 fix: use falsy check instead of typeof 2024-06-04 22:57:47 +09:00
5f2e5b4ae8 fix: fix docs and types 2024-06-04 22:52:05 +09:00
f6f957866a feat: apply Code into pre 2024-06-04 22:41:49 +09:00
3d546e6675 feat: add Code 2024-06-04 22:41:23 +09:00
6d1732d049 feat: add SyntaxHighlighter instead of deprecated Highlight 2024-06-04 22:40:11 +09:00
b17b5ad0f9 refactor: remove highlightjs style 2024-06-04 22:36:05 +09:00
3750de01e2 refactor: remove rehype-highlight plugin 2024-06-04 22:35:27 +09:00
a4b7978110 feat: add react-syntax-highlighter instead 2024-06-04 11:50:25 +09:00
65b27a8f15 fix: drop react-highlight due to deprecated 2024-06-04 11:49:53 +09:00
9f7f7a3a8f fix: simpler route build 2024-06-04 11:46:26 +09:00
10c17bb51e fix: fix route 2024-06-04 11:43:20 +09:00
0c67ee5c62 fix: add WebkitBackdropFilter to fi x backdrop not working in safari 2024-06-04 11:35:57 +09:00
c7be14429b feat: add offset in PopoverContent 2024-06-03 23:21:05 +09:00
21fadb8c10 feat: add child w-full in PopoverContent 2024-06-03 23:16:46 +09:00
0e5fd863b0 feat: apply react-highlight in LoadedCode 2024-06-03 23:12:26 +09:00
5201dbeda9 feat: make automatic docs routing 2024-06-03 22:56:47 +09:00
146b43cffb feat: add vite-env 2024-06-03 22:56:31 +09:00
95ec9ef6d0 feat: add vite-plugin-dynamic-import 2024-06-03 22:56:24 +09:00
859a6c23fc chore: remove all stories 2024-06-03 22:09:37 +09:00
55c9959384 docs: fix Tab docs 2024-06-03 22:09:16 +09:00
fc4e11f5f9 fix: make Tab return null instead of using hidden class 2024-06-03 22:08:42 +09:00
84a6536383 fix: make Story margin y 2024-06-03 22:08:28 +09:00
86bf518f2f docs: add input docs 2024-06-03 22:05:31 +09:00
a8cdcf92eb chore: remove switch story 2024-06-03 21:45:08 +09:00