Skip to content

Commit

Permalink
ignore some props
Browse files Browse the repository at this point in the history
  • Loading branch information
mfal committed Jan 9, 2025
1 parent 909092a commit aec73a1
Show file tree
Hide file tree
Showing 234 changed files with 177 additions and 759 deletions.
2 changes: 0 additions & 2 deletions demos/remote-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"private": true,
"type": "module",
"scripts": {
"build": "run next build",
"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\"",
"dev": "run nx run-many --outputStyle=stream --projects=@mittwald/flow-demo-remote-dom --targets=start,build:deps:watch",
"start": "run next dev",
"test:compile": "run tsc --noEmit"
Expand Down
11 changes: 10 additions & 1 deletion packages/components/dev/remote-components-generator/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
export const config = {
ignoreProps: ["tunnelId", "ref", "key", "children"],
ignoreProps: [
"tunnelId",
"ref",
"key",
"children",
"className",
"style",
"dangerouslySetInnerHTML",
"wrapWith",
],
} as const;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { componentModulePathOf } from "../lib/componentModulePathOf";
import { isEvent, isProp, isSlot } from "../lib/propClassifiers";
import { remoteElementTagNameOf } from "../lib/remoteElementTagNameOf";
import { remoteComponentNameOf } from "../lib/remoteComponentNameOf";
import { remoteComponentBaseNameOf } from "../lib/remoteComponentBaseNameOf";

export function generateRemoteElementFile(c: ComponentDoc) {
const componentProps = c.props;
Expand Down Expand Up @@ -39,7 +38,6 @@ export function generateRemoteElementFile(c: ComponentDoc) {
import type { ${t.propsType} as ${t.propsAliasType} } from "@mittwald/flow-react-components/${t.exportPath}";
export type { ${t.propsType} as ${t.propsAliasType} } from "@mittwald/flow-react-components/${t.exportPath}";
export class ${t.element} extends FlowRemoteElement<${t.propsAliasType}> {
static get remoteProperties() {
return {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { format } from "../lib/format";

const header = `\
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
`;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FC, PropsWithChildren } from "react";
import type { FC, PropsWithChildren, ReactNode } from "react";
import React, { useId } from "react";
import type { TabPanelRenderProps } from "react-aria-components";
import * as Aria from "react-aria-components";
Expand All @@ -23,7 +23,7 @@ export const Tab: FC<TabProps> = (props) => {
const generatedId = useId();
const id = idFromProps ?? generatedId;

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

const propsContext: PropsContext = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { useForm } from "react-hook-form";
import {
Field,
Form,
} from "@mittwald/flow-react-components/react-hook-form";
import { Form } from "@mittwald/flow-react-components/react-hook-form/Form";
import { Field } from "@mittwald/flow-react-components/react-hook-form/Field";
import { TextField } from "@mittwald/flow-react-components/TextField";
import { Label } from "@mittwald/flow-react-components/Label";
import { FieldDescription } from "@mittwald/flow-react-components/FieldDescription";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { useForm } from "react-hook-form";
import {
Form,
typedField,
} from "@mittwald/flow-react-components/react-hook-form";
import { Form } from "@mittwald/flow-react-components/react-hook-form/Form";
import { typedField } from "@mittwald/flow-react-components/react-hook-form/Field";
import { TextField } from "@mittwald/flow-react-components/TextField";
import { Label } from "@mittwald/flow-react-components/Label";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { useForm } from "react-hook-form";
import {
Field,
Form,
} from "@mittwald/flow-react-components/react-hook-form";
import { Field } from "@mittwald/flow-react-components/react-hook-form/Field";
import { Form } from "@mittwald/flow-react-components/react-hook-form/Form";
import { TextField } from "@mittwald/flow-react-components/TextField";
import { Label } from "@mittwald/flow-react-components/Label";
import { ActionGroup } from "@mittwald/flow-react-components/ActionGroup";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ import Heading from "@mittwald/flow-react-components/Heading";
import Action from "@mittwald/flow-react-components/Action";
import { useOverlayController } from "@mittwald/flow-react-components/controller";
import { useForm } from "react-hook-form";
import {
Form,
typedField,
} from "@mittwald/flow-react-components/react-hook-form";
import { Form } from "@mittwald/flow-react-components/react-hook-form/Form";
import { typedField } from "@mittwald/flow-react-components/react-hook-form/Field";
import { TextField } from "@mittwald/flow-react-components/TextField";

export default () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand All @@ -17,7 +16,6 @@ export class RemoteAccordionElement extends FlowRemoteElement<RemoteAccordionEle
accessKey: {},
autoCapitalize: {},
autoFocus: {},
className: {},
contentEditable: {},
contextMenu: {},
dir: {},
Expand All @@ -29,7 +27,6 @@ export class RemoteAccordionElement extends FlowRemoteElement<RemoteAccordionEle
nonce: {},
slot: {},
spellCheck: {},
style: {},
tabIndex: {},
title: {},
translate: {},
Expand Down Expand Up @@ -116,7 +113,6 @@ export class RemoteAccordionElement extends FlowRemoteElement<RemoteAccordionEle
"aria-valuemin": {},
"aria-valuenow": {},
"aria-valuetext": {},
dangerouslySetInnerHTML: {},
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand All @@ -16,7 +15,6 @@ export class RemoteActionElement extends FlowRemoteElement<RemoteActionElementPr
break: {},
skip: {},
showFeedback: {},
wrapWith: {},
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand All @@ -10,8 +9,6 @@ export class RemoteActionGroupElement extends FlowRemoteElement<RemoteActionGrou
return {
ignoreBreakpoint: {},
spacing: {},
wrapWith: {},
className: {},
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand All @@ -9,8 +8,6 @@ export class RemoteAlertBadgeElement extends FlowRemoteElement<RemoteAlertBadgeE
static get remoteProperties() {
return {
status: {},
wrapWith: {},
className: {},
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand All @@ -15,7 +14,6 @@ export class RemoteAlertElement extends FlowRemoteElement<RemoteAlertElementProp
accessKey: {},
autoCapitalize: {},
autoFocus: {},
className: {},
contentEditable: {},
contextMenu: {},
dir: {},
Expand All @@ -27,7 +25,6 @@ export class RemoteAlertElement extends FlowRemoteElement<RemoteAlertElementProp
nonce: {},
slot: {},
spellCheck: {},
style: {},
tabIndex: {},
title: {},
translate: {},
Expand Down Expand Up @@ -114,9 +111,7 @@ export class RemoteAlertElement extends FlowRemoteElement<RemoteAlertElementProp
"aria-valuemin": {},
"aria-valuenow": {},
"aria-valuetext": {},
dangerouslySetInnerHTML: {},
status: {},
wrapWith: {},
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand All @@ -16,8 +15,6 @@ export class RemoteAlertIconElement extends FlowRemoteElement<RemoteAlertIconEle
"aria-labelledby": {},
"aria-describedby": {},
"aria-details": {},
className: {},
style: {},
end: {},
id: {},
width: {},
Expand Down Expand Up @@ -80,7 +77,6 @@ export class RemoteAlertIconElement extends FlowRemoteElement<RemoteAlertIconEle
"aria-valuemin": {},
"aria-valuenow": {},
"aria-valuetext": {},
dangerouslySetInnerHTML: {},
height: {},
max: {},
media: {},
Expand Down Expand Up @@ -323,7 +319,6 @@ export class RemoteAlertIconElement extends FlowRemoteElement<RemoteAlertIconEle
yChannelSelector: {},
z: {},
zoomAndPan: {},
wrapWith: {},
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand All @@ -7,10 +6,7 @@ export type { AlignProps as RemoteAlignElementProps } from "@mittwald/flow-react

export class RemoteAlignElement extends FlowRemoteElement<RemoteAlignElementProps> {
static get remoteProperties() {
return {
className: {},
wrapWith: {},
};
return {};
}

static get remoteEvents() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand All @@ -10,8 +9,6 @@ export class RemoteAvatarElement extends FlowRemoteElement<RemoteAvatarElementPr
return {
size: {},
color: {},
className: {},
wrapWith: {},
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand All @@ -10,8 +9,6 @@ export class RemoteBadgeElement extends FlowRemoteElement<RemoteBadgeElementProp
return {
color: {},
isDisabled: {},
wrapWith: {},
className: {},
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand All @@ -13,8 +12,6 @@ export class RemoteBreadcrumbElement extends FlowRemoteElement<RemoteBreadcrumbE
"aria-labelledby": {},
"aria-describedby": {},
"aria-details": {},
className: {},
style: {},
isDisabled: {},
id: {},
slot: {},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand Down Expand Up @@ -40,9 +39,6 @@ export class RemoteButtonElement extends FlowRemoteElement<RemoteButtonElementPr
type: {},
preventFocusOnPress: {},
excludeFromTabOrder: {},
className: {},
style: {},
wrapWith: {},
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand All @@ -12,8 +11,6 @@ export class RemoteCheckboxButtonElement extends FlowRemoteElement<RemoteCheckbo
"aria-labelledby": {},
"aria-describedby": {},
"aria-details": {},
className: {},
style: {},
validationBehavior: {},
isDisabled: {},
isReadOnly: {},
Expand All @@ -32,7 +29,6 @@ export class RemoteCheckboxButtonElement extends FlowRemoteElement<RemoteCheckbo
defaultSelected: {},
isSelected: {},
inputRef: {},
wrapWith: {},
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand All @@ -12,8 +11,6 @@ export class RemoteCheckboxElement extends FlowRemoteElement<RemoteCheckboxEleme
"aria-labelledby": {},
"aria-describedby": {},
"aria-details": {},
className: {},
style: {},
validationBehavior: {},
isDisabled: {},
isReadOnly: {},
Expand All @@ -32,7 +29,6 @@ export class RemoteCheckboxElement extends FlowRemoteElement<RemoteCheckboxEleme
defaultSelected: {},
isSelected: {},
inputRef: {},
wrapWith: {},
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand All @@ -12,8 +11,6 @@ export class RemoteCheckboxGroupElement extends FlowRemoteElement<RemoteCheckbox
"aria-labelledby": {},
"aria-describedby": {},
"aria-details": {},
className: {},
style: {},
validationBehavior: {},
isDisabled: {},
isReadOnly: {},
Expand All @@ -29,7 +26,6 @@ export class RemoteCheckboxGroupElement extends FlowRemoteElement<RemoteCheckbox
s: {},
m: {},
l: {},
wrapWith: {},
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* prettier-ignore */
/* This file is auto-generated with the remote-components-generator */
import { FlowRemoteElement } from "@/lib/FlowRemoteElement";
Expand All @@ -11,7 +10,6 @@ export class RemoteCodeBlockElement extends FlowRemoteElement<RemoteCodeBlockEle
copyable: {},
color: {},
code: {},
className: {},
};
}

Expand Down
Loading

0 comments on commit aec73a1

Please sign in to comment.