Skip to content

Commit aec73a1

Browse files
committed
ignore some props
1 parent 909092a commit aec73a1

File tree

234 files changed

+177
-759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+177
-759
lines changed

demos/remote-dom/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"build": "run next build",
7-
"build:deps:watch": "nx watch -d -p \"@mittwald/flow-demo-remote-dom\" -- nx run-many -t build -p \\$NX_PROJECT_NAME --exclude=\"@mittwald/flow-demo-remote-dom\"",
86
"dev": "run nx run-many --outputStyle=stream --projects=@mittwald/flow-demo-remote-dom --targets=start,build:deps:watch",
97
"start": "run next dev",
108
"test:compile": "run tsc --noEmit"
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
export const config = {
2-
ignoreProps: ["tunnelId", "ref", "key", "children"],
2+
ignoreProps: [
3+
"tunnelId",
4+
"ref",
5+
"key",
6+
"children",
7+
"className",
8+
"style",
9+
"dangerouslySetInnerHTML",
10+
"wrapWith",
11+
],
312
} as const;

packages/components/dev/remote-components-generator/generation/generateRemoteElementFile.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { componentModulePathOf } from "../lib/componentModulePathOf";
33
import { isEvent, isProp, isSlot } from "../lib/propClassifiers";
44
import { remoteElementTagNameOf } from "../lib/remoteElementTagNameOf";
55
import { remoteComponentNameOf } from "../lib/remoteComponentNameOf";
6-
import { remoteComponentBaseNameOf } from "../lib/remoteComponentBaseNameOf";
76

87
export function generateRemoteElementFile(c: ComponentDoc) {
98
const componentProps = c.props;
@@ -39,7 +38,6 @@ export function generateRemoteElementFile(c: ComponentDoc) {
3938
import type { ${t.propsType} as ${t.propsAliasType} } from "@mittwald/flow-react-components/${t.exportPath}";
4039
export type { ${t.propsType} as ${t.propsAliasType} } from "@mittwald/flow-react-components/${t.exportPath}";
4140
42-
4341
export class ${t.element} extends FlowRemoteElement<${t.propsAliasType}> {
4442
static get remoteProperties() {
4543
return {

packages/components/dev/remote-components-generator/generation/prepareTypeScriptOutput.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { format } from "../lib/format";
22

33
const header = `\
4-
/* eslint-disable */
54
/* prettier-ignore */
65
/* This file is auto-generated with the remote-components-generator */
76
`;

packages/components/src/components/Tabs/components/Tab/Tab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { FC, PropsWithChildren } from "react";
1+
import type { FC, PropsWithChildren, ReactNode } from "react";
22
import React, { useId } from "react";
33
import type { TabPanelRenderProps } from "react-aria-components";
44
import * as Aria from "react-aria-components";
@@ -23,7 +23,7 @@ export const Tab: FC<TabProps> = (props) => {
2323
const generatedId = useId();
2424
const id = idFromProps ?? generatedId;
2525

26-
const TabPanelRenderer: FC<TabPanelRenderProps> = (props) => {
26+
const TabPanelRenderer = (props: TabPanelRenderProps): Awaited<ReactNode> => {
2727
const isSelected = props.state.selectedKey === id;
2828

2929
const propsContext: PropsContext = {

packages/docs/src/content/03-components/form-controls/field-react-hook-form/examples/default.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { useForm } from "react-hook-form";
2-
import {
3-
Field,
4-
Form,
5-
} from "@mittwald/flow-react-components/react-hook-form";
2+
import { Form } from "@mittwald/flow-react-components/react-hook-form/Form";
3+
import { Field } from "@mittwald/flow-react-components/react-hook-form/Field";
64
import { TextField } from "@mittwald/flow-react-components/TextField";
75
import { Label } from "@mittwald/flow-react-components/Label";
86
import { FieldDescription } from "@mittwald/flow-react-components/FieldDescription";

packages/docs/src/content/03-components/form-controls/field-react-hook-form/examples/typed-field.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { useForm } from "react-hook-form";
2-
import {
3-
Form,
4-
typedField,
5-
} from "@mittwald/flow-react-components/react-hook-form";
2+
import { Form } from "@mittwald/flow-react-components/react-hook-form/Form";
3+
import { typedField } from "@mittwald/flow-react-components/react-hook-form/Field";
64
import { TextField } from "@mittwald/flow-react-components/TextField";
75
import { Label } from "@mittwald/flow-react-components/Label";
86

packages/docs/src/content/03-components/form-controls/form-react-hook-form/examples/default.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { useForm } from "react-hook-form";
2-
import {
3-
Field,
4-
Form,
5-
} from "@mittwald/flow-react-components/react-hook-form";
2+
import { Field } from "@mittwald/flow-react-components/react-hook-form/Field";
3+
import { Form } from "@mittwald/flow-react-components/react-hook-form/Form";
64
import { TextField } from "@mittwald/flow-react-components/TextField";
75
import { Label } from "@mittwald/flow-react-components/Label";
86
import { ActionGroup } from "@mittwald/flow-react-components/ActionGroup";

packages/docs/src/content/03-components/overlays/modal/examples/form.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ import Heading from "@mittwald/flow-react-components/Heading";
77
import Action from "@mittwald/flow-react-components/Action";
88
import { useOverlayController } from "@mittwald/flow-react-components/controller";
99
import { useForm } from "react-hook-form";
10-
import {
11-
Form,
12-
typedField,
13-
} from "@mittwald/flow-react-components/react-hook-form";
10+
import { Form } from "@mittwald/flow-react-components/react-hook-form/Form";
11+
import { typedField } from "@mittwald/flow-react-components/react-hook-form/Field";
1412
import { TextField } from "@mittwald/flow-react-components/TextField";
1513

1614
export default () => {

packages/remote-elements/src/auto-generated/RemoteAccordionElement.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable */
21
/* prettier-ignore */
32
/* This file is auto-generated with the remote-components-generator */
43
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
@@ -17,7 +16,6 @@ export class RemoteAccordionElement extends FlowRemoteElement<RemoteAccordionEle
1716
accessKey: {},
1817
autoCapitalize: {},
1918
autoFocus: {},
20-
className: {},
2119
contentEditable: {},
2220
contextMenu: {},
2321
dir: {},
@@ -29,7 +27,6 @@ export class RemoteAccordionElement extends FlowRemoteElement<RemoteAccordionEle
2927
nonce: {},
3028
slot: {},
3129
spellCheck: {},
32-
style: {},
3330
tabIndex: {},
3431
title: {},
3532
translate: {},
@@ -116,7 +113,6 @@ export class RemoteAccordionElement extends FlowRemoteElement<RemoteAccordionEle
116113
"aria-valuemin": {},
117114
"aria-valuenow": {},
118115
"aria-valuetext": {},
119-
dangerouslySetInnerHTML: {},
120116
};
121117
}
122118

0 commit comments

Comments
 (0)