-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Carbon v11 #1587
Comments
#1596 @jeffchew I wrapped cds-button and cds-text-input. Those work pretty well. I would still like to try and generate wrappers automatically so I'll keep exploring that. |
I didn't play too much with web components, the first thing that pops in my mind, is scoped slots, but i think we can workaround it with provide / inject.
Other than that i think its a good direction. I ran through your commits, i like the idea of using vite. For wrapper generation, lit labs have something like that, but i didn't tried it yet - gen-wrapper-vue |
Hey @davidnixon, i played a little with this lib, its not near an automated wrapper generator, but it can definitely can generate types for props and such. I checked out the carbon repository, and wired-in the lib. package.json ...
"scripts": {
"generate-vue-types": "custom-elements-manifest analyze && node generate-vue-types.js",
...
"devDependencies": {
"@custom-elements-manifest/analyzer": "^0.10.2",
"custom-element-vuejs-integration": "^1.2.0",
... generate-vue-types.js import { generateVuejsTypes } from 'custom-element-vuejs-integration';
import manifest from './custom-elements.json' assert { type: 'json' };
const options = {
outdir: './',
fileName: 'vue-types.d.ts',
componentTypePath: (name, tag) => `./src/components/${tag}/index.ts`,
};
generateVuejsTypes(manifest, options); Generated Generated Its not exporting its types, but i think for a starter its better than nothing. There are libs for VSCode and JetBrains custom html and css json generations too. And there is a lib for react component generation, maybe it can help to create a vue component generator? custom-element-react-wrappers |
Is your feature request related to a problem? Please describe.
We should keep up, with the design kit, react and angular components.
Describe the solution you'd like
On a separate branch, we should update the components incrementally, based on the react components.
Additional context
There are lot of basic features missing from v10 like readonly form fields, toasts that remove them selves after x ms, etc.
The text was updated successfully, but these errors were encountered: