From 9a215a4ea4878d019f28e4ed163de789e37339cb Mon Sep 17 00:00:00 2001
From: Nicolas Merget <104347736+nmerget@users.noreply.github.com>
Date: Thu, 11 Apr 2024 15:29:27 +0200
Subject: [PATCH] docs: removed custom events from Readmes (#2498)
docs: refactored wrong description prop for textarea
---
output/angular/README.md | 33 -------------------
output/react/README.md | 27 ---------------
output/vue/vue3/README.md | 27 ---------------
.../src/components/textarea/docs/Angular.md | 2 +-
.../src/components/textarea/docs/React.md | 1 +
.../src/components/textarea/docs/Vue.md | 2 +-
6 files changed, 3 insertions(+), 89 deletions(-)
diff --git a/output/angular/README.md b/output/angular/README.md
index a5f63bc3a26c..b608a07c36bc 100644
--- a/output/angular/README.md
+++ b/output/angular/README.md
@@ -96,39 +96,6 @@ There are 3 ways to use Events in Angular:
>
```
-## Custom Events
-
-We do not provide every event on every component. If you are missing an event please [add an issue](https://github.com/db-ui/mono/issues).
-
-As a workaround you can use refs:
-
-### Ref on component
-
-```html
-Test
-```
-
-```ts
-import { Component, ViewChild, AfterViewInit } from "@angular/core";
-
-@Component({
- selector: "app-my-component",
- templateUrl: "./my-component.component.html"
-})
-export class MyComponent implements AfterViewInit {
- @ViewChild("buttonRef") buttonRef: any;
-
- ngAfterViewInit(): void {
- this.buttonRef?.component?.nativeElement?.addEventListener(
- "mouseenter",
- (ev: any) => {
- console.log(ev);
- }
- );
- }
-}
-```
-
## Deutsche Bahn brand
As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even when being used with the code that we're provide with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UI products free to use and release it under the Apache 2.0 license.
diff --git a/output/react/README.md b/output/react/README.md
index 431f7803d070..8b1cb7e6862a 100644
--- a/output/react/README.md
+++ b/output/react/README.md
@@ -47,33 +47,6 @@ import { DBButton } from '@db-ui/react-components';
...
```
-## Custom Events
-
-We do not provide every event on every component. If you are missing an event please [add an issue](https://github.com/db-ui/mono/issues).
-
-As a workaround you can use the forwardRef:
-
-### Ref on component
-
-```tsx
-import { DBButton } from "@db-ui/react-components";
-import { useEffect, useRef } from "react";
-
-const MyComponent = () => {
- const buttonRef = useRef(null);
-
- useEffect(() => {
- if (buttonRef.current) {
- buttonRef.current.onmouseenter = (ev) => {
- console.log(ev);
- };
- }
- }, [buttonRef]);
-
- return Test;
-};
-```
-
## Deutsche Bahn brand
As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even when being used with the code that we're provide with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UI products free to use and release it under the Apache 2.0 license.
diff --git a/output/vue/vue3/README.md b/output/vue/vue3/README.md
index 2fb6c41494c8..d8793c46f79b 100644
--- a/output/vue/vue3/README.md
+++ b/output/vue/vue3/README.md
@@ -80,33 +80,6 @@ Both Inputs in this example do the same:
```
-## Custom Events
-
-We do not provide every event on every component. If you are missing an event please [add an issue](https://github.com/db-ui/mono/issues).
-
-As a workaround you can use refs:
-
-### Ref on component
-
-```vue
-
-
-
- Test
-
-```
-
## Deutsche Bahn brand
As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even when being used with the code that we're provide with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UI products free to use and release it under the Apache 2.0 license.
diff --git a/packages/components/src/components/textarea/docs/Angular.md b/packages/components/src/components/textarea/docs/Angular.md
index f71070de3915..202e82117d3f 100644
--- a/packages/components/src/components/textarea/docs/Angular.md
+++ b/packages/components/src/components/textarea/docs/Angular.md
@@ -37,7 +37,7 @@ export class AppComponent {
name="textarea"
label="Textarea Controlled"
placeholder="Placeholder"
- description="Description"
+ message="Message"
icon="account"
[value]="textarea"
(change)="textarea = $event.target.value"
diff --git a/packages/components/src/components/textarea/docs/React.md b/packages/components/src/components/textarea/docs/React.md
index 7a93c33a2117..a612b19f1a3e 100644
--- a/packages/components/src/components/textarea/docs/React.md
+++ b/packages/components/src/components/textarea/docs/React.md
@@ -14,6 +14,7 @@ const App = () => {
return (
{
setTextarea(event.target.value);
diff --git a/packages/components/src/components/textarea/docs/Vue.md b/packages/components/src/components/textarea/docs/Vue.md
index fd51ce64c9ff..535a2b709413 100644
--- a/packages/components/src/components/textarea/docs/Vue.md
+++ b/packages/components/src/components/textarea/docs/Vue.md
@@ -22,7 +22,7 @@ const textarea = ref("default value");