diff --git a/packages/components/docs/Validation.md b/packages/components/docs/Validation.md index 3527129af39..150846e43d0 100644 --- a/packages/components/docs/Validation.md +++ b/packages/components/docs/Validation.md @@ -11,6 +11,8 @@ If you use some framework you can pass the props `invalidMessage` and `validMessage` to the component. If you use plain html you need to add 2 `.db-infotext` with `[data-semantic="successful"]` &`[data-semantic="critical"]` inside your form-element. -## Force valid/invalid +## Handle validation by your self -You can use `invalid="true/false"` or `data-invalid="true/false"` to overwrite the default behaviour of [`:user-valid`](https://developer.mozilla.org/en-US/docs/Web/CSS/:user-valid). +You can use `data-custom-validity|customValidity="'invalid' | 'valid' | 'no-validation'"` to disable [`:user-valid`](https://developer.mozilla.org/en-US/docs/Web/CSS/:user-valid). + +> **Note:** This may lead to problems and inconsistency, only use it if you know what you do! diff --git a/packages/components/scripts/post-build/react.js b/packages/components/scripts/post-build/react.js index b0bbb3e5fe3..47537a0de88 100644 --- a/packages/components/scripts/post-build/react.js +++ b/packages/components/scripts/post-build/react.js @@ -48,15 +48,15 @@ module.exports = (tmp) => { }, { from: ` } from "react"`, - to: `, forwardRef, HTMLProps } from "react"` + to: `, forwardRef, HTMLAttributes } from "react"` }, { from: `function DB${upperComponentName}(props: DB${upperComponentName}Props) {`, - to: `function DB${upperComponentName}Fn(props: Omit, keyof DB${upperComponentName}Props> & DB${upperComponentName}Props, component: any) {` + to: `function DB${upperComponentName}Fn(props: Omit, keyof DB${upperComponentName}Props> & DB${upperComponentName}Props, component: any) {` }, { from: `export default DB${upperComponentName};`, - to: `const DB${upperComponentName} = forwardRef<${htmlElement}, Omit, keyof DB${upperComponentName}Props> & DB${upperComponentName}Props>(DB${upperComponentName}Fn);\nexport default DB${upperComponentName};` + to: `const DB${upperComponentName} = forwardRef<${htmlElement}, Omit, keyof DB${upperComponentName}Props> & DB${upperComponentName}Props>(DB${upperComponentName}Fn);\nexport default DB${upperComponentName};` }, { from: 'if (ref.current)', diff --git a/packages/components/src/components/accordion-item/docs/Angular.md b/packages/components/src/components/accordion-item/docs/Angular.md index bc2c654a735..f7f8a664318 100644 --- a/packages/components/src/components/accordion-item/docs/Angular.md +++ b/packages/components/src/components/accordion-item/docs/Angular.md @@ -23,7 +23,7 @@ import { DBAccordionItem } from '@db-ui/ngx-components'; ```html app.component.html - Title + Title Content ``` @@ -32,5 +32,5 @@ import { DBAccordionItem } from '@db-ui/ngx-components'; ```html app.component.html - + ``` diff --git a/packages/components/src/components/accordion-item/docs/Migration.md b/packages/components/src/components/accordion-item/docs/Migration.md index 409e5bfa671..3faf9f15818 100644 --- a/packages/components/src/components/accordion-item/docs/Migration.md +++ b/packages/components/src/components/accordion-item/docs/Migration.md @@ -15,7 +15,7 @@ | Before | Status | After | Description | | ---------- | :----: | ---------- | ----------------------------------------------------------- | -| `summary` | 🔁 | `title` | The title/summary of the details element. | +| `summary` | 🔁 | `headline` | The title/summary of the details element. | | `emphasis` | ❌ | ❌ | There is no emphasis anymore. | | `size` | ❌ | ❌ | Controlled by the density. | | | 🆕 | `disabled` | Disable the component. | diff --git a/packages/components/src/components/accordion-item/docs/React.md b/packages/components/src/components/accordion-item/docs/React.md index a9881822b9a..fb8a0eef923 100644 --- a/packages/components/src/components/accordion-item/docs/React.md +++ b/packages/components/src/components/accordion-item/docs/React.md @@ -10,7 +10,7 @@ For general installation and configuration look at the [react-components](https: // App.tsx import { DBAccordionItem } from "@db-ui/react-components"; -const App = () => Content; +const App = () => Content; export default App; ``` @@ -20,6 +20,6 @@ export default App; // App.tsx import { DBAccordionItem } from "@db-ui/react-components"; -const App = () => ; +const App = () => ; export default App; ``` diff --git a/packages/components/src/components/accordion-item/docs/Vue.md b/packages/components/src/components/accordion-item/docs/Vue.md index 43153a32457..237f03468e2 100644 --- a/packages/components/src/components/accordion-item/docs/Vue.md +++ b/packages/components/src/components/accordion-item/docs/Vue.md @@ -14,7 +14,7 @@ import { DBAccordionItem } from "@db-ui/v-components"; @@ -29,6 +29,6 @@ import { DBAccordionItem } from "@db-ui/v-components"; ``` diff --git a/packages/components/src/components/accordion/docs/Angular.md b/packages/components/src/components/accordion/docs/Angular.md index c06e029be22..537c227301f 100644 --- a/packages/components/src/components/accordion/docs/Angular.md +++ b/packages/components/src/components/accordion/docs/Angular.md @@ -21,8 +21,17 @@ import { DBAccordion, DBAccordionItem } from '@db-ui/ngx-components'; ```html app.component.html - - - + + + ``` diff --git a/packages/components/src/components/accordion/docs/React.md b/packages/components/src/components/accordion/docs/React.md index 081317a348c..eb5b9549a12 100644 --- a/packages/components/src/components/accordion/docs/React.md +++ b/packages/components/src/components/accordion/docs/React.md @@ -10,9 +10,9 @@ import { DBAccordion, DBAccordionItem } from "@db-ui/react-components"; const App = () => ( - - - + + + ); export default App; diff --git a/packages/components/src/components/accordion/docs/Vue.md b/packages/components/src/components/accordion/docs/Vue.md index 64149be8e82..242f1193ea9 100644 --- a/packages/components/src/components/accordion/docs/Vue.md +++ b/packages/components/src/components/accordion/docs/Vue.md @@ -12,9 +12,9 @@ import { DBAccordion, DBAccordionItem } from "@db-ui/v-components"; ``` diff --git a/packages/components/src/components/button/button.lite.tsx b/packages/components/src/components/button/button.lite.tsx index 44574d6b567..88731fea359 100644 --- a/packages/components/src/components/button/button.lite.tsx +++ b/packages/components/src/components/button/button.lite.tsx @@ -26,7 +26,6 @@ export default function DBButton(props: DBButtonProps) { id={props.id} class={cls('db-button', props.className)} type={props.type} - title={props.title} disabled={props.disabled} aria-label={props.label} data-icon={props.icon} diff --git a/packages/components/src/components/checkbox/checkbox.lite.tsx b/packages/components/src/components/checkbox/checkbox.lite.tsx index 25f659304a6..4042d0223a0 100644 --- a/packages/components/src/components/checkbox/checkbox.lite.tsx +++ b/packages/components/src/components/checkbox/checkbox.lite.tsx @@ -121,6 +121,8 @@ export default function DBCheckbox(props: DBCheckboxProps) { data-variant={props.variant}>