diff --git a/core/package-lock.json b/core/package-lock.json index 7481aa6a53..d981e9bd63 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -18,7 +18,7 @@ "@jest/core": "^26.6.3", "@rollup/plugin-node-resolve": "^8.4.0", "@rollup/plugin-virtual": "^2.0.3", - "@stencil/react-output-target": "^0.1.0-2", + "@stencil/react-output-target": "^0.1.0", "@stencil/sass": "1.3.2", "@stencil/vue-output-target": "^0.5.1", "@types/jest": "^26.0.20", @@ -1369,9 +1369,9 @@ } }, "node_modules/@stencil/react-output-target": { - "version": "0.1.0-2", - "resolved": "https://registry.npmjs.org/@stencil/react-output-target/-/react-output-target-0.1.0-2.tgz", - "integrity": "sha512-kIxhK+NVaBinS//s/Z4Ylz3q0ZXpu1jIHIcYi7af/tuOirCxHX2EUOja3VRxl37UGRvwv+r4eds9tgUzPLX7rA==", + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@stencil/react-output-target/-/react-output-target-0.1.0.tgz", + "integrity": "sha512-NWeN2S43dwWDIousfojzGXIMkJJhfcdS1JxpwgE7IOqy4tZ+nqlDLPhM6tXvZ3eq4rJm8bkF+3/WbPJNR9xR7Q==", "dev": true, "peerDependencies": { "@stencil/core": ">=1.8.0" @@ -15021,9 +15021,9 @@ "integrity": "sha512-QsxWayZyusnqSZrlCl81R71rA3KqFjVVQSH4E0rGN15F1GdQaFonKlHLyCOLKLig1zzC+DQkLLiUuocexuvdeQ==" }, "@stencil/react-output-target": { - "version": "0.1.0-2", - "resolved": "https://registry.npmjs.org/@stencil/react-output-target/-/react-output-target-0.1.0-2.tgz", - "integrity": "sha512-kIxhK+NVaBinS//s/Z4Ylz3q0ZXpu1jIHIcYi7af/tuOirCxHX2EUOja3VRxl37UGRvwv+r4eds9tgUzPLX7rA==", + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@stencil/react-output-target/-/react-output-target-0.1.0.tgz", + "integrity": "sha512-NWeN2S43dwWDIousfojzGXIMkJJhfcdS1JxpwgE7IOqy4tZ+nqlDLPhM6tXvZ3eq4rJm8bkF+3/WbPJNR9xR7Q==", "dev": true }, "@stencil/sass": { diff --git a/core/package.json b/core/package.json index 5b20e01cc0..f6cd634c08 100644 --- a/core/package.json +++ b/core/package.json @@ -40,7 +40,7 @@ "@jest/core": "^26.6.3", "@rollup/plugin-node-resolve": "^8.4.0", "@rollup/plugin-virtual": "^2.0.3", - "@stencil/react-output-target": "^0.1.0-2", + "@stencil/react-output-target": "^0.1.0", "@stencil/sass": "1.3.2", "@stencil/vue-output-target": "^0.5.1", "@types/jest": "^26.0.20", diff --git a/packages/react/src/components/inner-proxies.ts b/packages/react/src/components/inner-proxies.ts index 549a225674..3688c0b993 100644 --- a/packages/react/src/components/inner-proxies.ts +++ b/packages/react/src/components/inner-proxies.ts @@ -11,25 +11,25 @@ import { /*@__PURE__*/ createReactComponent } from './react-component-lib'; export const IonTabButtonInner = /*@__PURE__*/ createReactComponent< JSX.IonTabButton & { onIonTabButtonClick?: (e: CustomEvent) => void }, HTMLIonTabButtonElement ->('ion-tab-button', IonTabButtonCmp); +>('ion-tab-button', undefined, undefined, IonTabButtonCmp); export const IonTabBarInner = /*@__PURE__*/ createReactComponent< JSX.IonTabBar, HTMLIonTabBarElement ->('ion-tab-bar', IonTabBarCmp); +>('ion-tab-bar', undefined, undefined, IonTabBarCmp); export const IonBackButtonInner = /*@__PURE__*/ createReactComponent< Omit, HTMLIonBackButtonElement ->('ion-back-button', IonBackButtonCmp); +>('ion-back-button', undefined, undefined, IonBackButtonCmp); export const IonRouterOutletInner = /*@__PURE__*/ createReactComponent< JSX.IonRouterOutlet & { setRef?: (val: HTMLIonRouterOutletElement) => void; forwardedRef?: React.ForwardedRef; }, HTMLIonRouterOutletElement ->('ion-router-outlet', IonRouterOutletCmp); +>('ion-router-outlet', undefined, undefined, IonRouterOutletCmp); // ionicons export const IonIconInner = /*@__PURE__*/ createReactComponent< IoniconsJSX.IonIcon, HTMLIonIconElement ->('ion-icon', IonIconCmp); +>('ion-icon', undefined, undefined, IonIconCmp); diff --git a/packages/react/src/components/proxies.ts b/packages/react/src/components/proxies.ts index 5dd93e340b..a172899187 100644 --- a/packages/react/src/components/proxies.ts +++ b/packages/react/src/components/proxies.ts @@ -74,71 +74,71 @@ import { IonToggle as IonToggleCmp } from '@ionic/core/components/ion-toggle.js' import { IonToolbar as IonToolbarCmp } from '@ionic/core/components/ion-toolbar.js'; import { IonVirtualScroll as IonVirtualScrollCmp } from '@ionic/core/components/ion-virtual-scroll.js'; -export const IonAccordion = /*@__PURE__*/createReactComponent('ion-accordion', IonAccordionCmp); -export const IonAccordionGroup = /*@__PURE__*/createReactComponent('ion-accordion-group', IonAccordionGroupCmp); -export const IonApp = /*@__PURE__*/createReactComponent('ion-app', IonAppCmp); -export const IonAvatar = /*@__PURE__*/createReactComponent('ion-avatar', IonAvatarCmp); -export const IonBackdrop = /*@__PURE__*/createReactComponent('ion-backdrop', IonBackdropCmp); -export const IonBadge = /*@__PURE__*/createReactComponent('ion-badge', IonBadgeCmp); -export const IonBreadcrumb = /*@__PURE__*/createReactComponent('ion-breadcrumb', IonBreadcrumbCmp); -export const IonBreadcrumbs = /*@__PURE__*/createReactComponent('ion-breadcrumbs', IonBreadcrumbsCmp); -export const IonButtons = /*@__PURE__*/createReactComponent('ion-buttons', IonButtonsCmp); -export const IonCardContent = /*@__PURE__*/createReactComponent('ion-card-content', IonCardContentCmp); -export const IonCardHeader = /*@__PURE__*/createReactComponent('ion-card-header', IonCardHeaderCmp); -export const IonCardSubtitle = /*@__PURE__*/createReactComponent('ion-card-subtitle', IonCardSubtitleCmp); -export const IonCardTitle = /*@__PURE__*/createReactComponent('ion-card-title', IonCardTitleCmp); -export const IonCheckbox = /*@__PURE__*/createReactComponent('ion-checkbox', IonCheckboxCmp); -export const IonChip = /*@__PURE__*/createReactComponent('ion-chip', IonChipCmp); -export const IonCol = /*@__PURE__*/createReactComponent('ion-col', IonColCmp); -export const IonContent = /*@__PURE__*/createReactComponent('ion-content', IonContentCmp); -export const IonDatetime = /*@__PURE__*/createReactComponent('ion-datetime', IonDatetimeCmp); -export const IonFab = /*@__PURE__*/createReactComponent('ion-fab', IonFabCmp); -export const IonFabList = /*@__PURE__*/createReactComponent('ion-fab-list', IonFabListCmp); -export const IonFooter = /*@__PURE__*/createReactComponent('ion-footer', IonFooterCmp); -export const IonGrid = /*@__PURE__*/createReactComponent('ion-grid', IonGridCmp); -export const IonHeader = /*@__PURE__*/createReactComponent('ion-header', IonHeaderCmp); -export const IonImg = /*@__PURE__*/createReactComponent('ion-img', IonImgCmp); -export const IonInfiniteScroll = /*@__PURE__*/createReactComponent('ion-infinite-scroll', IonInfiniteScrollCmp); -export const IonInfiniteScrollContent = /*@__PURE__*/createReactComponent('ion-infinite-scroll-content', IonInfiniteScrollContentCmp); -export const IonInput = /*@__PURE__*/createReactComponent('ion-input', IonInputCmp); -export const IonItemDivider = /*@__PURE__*/createReactComponent('ion-item-divider', IonItemDividerCmp); -export const IonItemGroup = /*@__PURE__*/createReactComponent('ion-item-group', IonItemGroupCmp); -export const IonItemOptions = /*@__PURE__*/createReactComponent('ion-item-options', IonItemOptionsCmp); -export const IonItemSliding = /*@__PURE__*/createReactComponent('ion-item-sliding', IonItemSlidingCmp); -export const IonLabel = /*@__PURE__*/createReactComponent('ion-label', IonLabelCmp); -export const IonList = /*@__PURE__*/createReactComponent('ion-list', IonListCmp); -export const IonListHeader = /*@__PURE__*/createReactComponent('ion-list-header', IonListHeaderCmp); -export const IonMenu = /*@__PURE__*/createReactComponent('ion-menu', IonMenuCmp); -export const IonMenuButton = /*@__PURE__*/createReactComponent('ion-menu-button', IonMenuButtonCmp); -export const IonMenuToggle = /*@__PURE__*/createReactComponent('ion-menu-toggle', IonMenuToggleCmp); -export const IonNav = /*@__PURE__*/createReactComponent('ion-nav', IonNavCmp); -export const IonNavLink = /*@__PURE__*/createReactComponent('ion-nav-link', IonNavLinkCmp); -export const IonNote = /*@__PURE__*/createReactComponent('ion-note', IonNoteCmp); -export const IonProgressBar = /*@__PURE__*/createReactComponent('ion-progress-bar', IonProgressBarCmp); -export const IonRadio = /*@__PURE__*/createReactComponent('ion-radio', IonRadioCmp); -export const IonRadioGroup = /*@__PURE__*/createReactComponent('ion-radio-group', IonRadioGroupCmp); -export const IonRange = /*@__PURE__*/createReactComponent('ion-range', IonRangeCmp); -export const IonRefresher = /*@__PURE__*/createReactComponent('ion-refresher', IonRefresherCmp); -export const IonRefresherContent = /*@__PURE__*/createReactComponent('ion-refresher-content', IonRefresherContentCmp); -export const IonReorder = /*@__PURE__*/createReactComponent('ion-reorder', IonReorderCmp); -export const IonReorderGroup = /*@__PURE__*/createReactComponent('ion-reorder-group', IonReorderGroupCmp); -export const IonRippleEffect = /*@__PURE__*/createReactComponent('ion-ripple-effect', IonRippleEffectCmp); -export const IonRow = /*@__PURE__*/createReactComponent('ion-row', IonRowCmp); -export const IonSearchbar = /*@__PURE__*/createReactComponent('ion-searchbar', IonSearchbarCmp); -export const IonSegment = /*@__PURE__*/createReactComponent('ion-segment', IonSegmentCmp); -export const IonSegmentButton = /*@__PURE__*/createReactComponent('ion-segment-button', IonSegmentButtonCmp); -export const IonSelect = /*@__PURE__*/createReactComponent('ion-select', IonSelectCmp); -export const IonSelectOption = /*@__PURE__*/createReactComponent('ion-select-option', IonSelectOptionCmp); -export const IonSkeletonText = /*@__PURE__*/createReactComponent('ion-skeleton-text', IonSkeletonTextCmp); -export const IonSlide = /*@__PURE__*/createReactComponent('ion-slide', IonSlideCmp); -export const IonSlides = /*@__PURE__*/createReactComponent('ion-slides', IonSlidesCmp); -export const IonSpinner = /*@__PURE__*/createReactComponent('ion-spinner', IonSpinnerCmp); -export const IonSplitPane = /*@__PURE__*/createReactComponent('ion-split-pane', IonSplitPaneCmp); -export const IonTab = /*@__PURE__*/createReactComponent('ion-tab', IonTabCmp); -export const IonText = /*@__PURE__*/createReactComponent('ion-text', IonTextCmp); -export const IonTextarea = /*@__PURE__*/createReactComponent('ion-textarea', IonTextareaCmp); -export const IonThumbnail = /*@__PURE__*/createReactComponent('ion-thumbnail', IonThumbnailCmp); -export const IonTitle = /*@__PURE__*/createReactComponent('ion-title', IonTitleCmp); -export const IonToggle = /*@__PURE__*/createReactComponent('ion-toggle', IonToggleCmp); -export const IonToolbar = /*@__PURE__*/createReactComponent('ion-toolbar', IonToolbarCmp); -export const IonVirtualScroll = /*@__PURE__*/createReactComponent('ion-virtual-scroll', IonVirtualScrollCmp); +export const IonAccordion = /*@__PURE__*/createReactComponent('ion-accordion', undefined, undefined, IonAccordionCmp); +export const IonAccordionGroup = /*@__PURE__*/createReactComponent('ion-accordion-group', undefined, undefined, IonAccordionGroupCmp); +export const IonApp = /*@__PURE__*/createReactComponent('ion-app', undefined, undefined, IonAppCmp); +export const IonAvatar = /*@__PURE__*/createReactComponent('ion-avatar', undefined, undefined, IonAvatarCmp); +export const IonBackdrop = /*@__PURE__*/createReactComponent('ion-backdrop', undefined, undefined, IonBackdropCmp); +export const IonBadge = /*@__PURE__*/createReactComponent('ion-badge', undefined, undefined, IonBadgeCmp); +export const IonBreadcrumb = /*@__PURE__*/createReactComponent('ion-breadcrumb', undefined, undefined, IonBreadcrumbCmp); +export const IonBreadcrumbs = /*@__PURE__*/createReactComponent('ion-breadcrumbs', undefined, undefined, IonBreadcrumbsCmp); +export const IonButtons = /*@__PURE__*/createReactComponent('ion-buttons', undefined, undefined, IonButtonsCmp); +export const IonCardContent = /*@__PURE__*/createReactComponent('ion-card-content', undefined, undefined, IonCardContentCmp); +export const IonCardHeader = /*@__PURE__*/createReactComponent('ion-card-header', undefined, undefined, IonCardHeaderCmp); +export const IonCardSubtitle = /*@__PURE__*/createReactComponent('ion-card-subtitle', undefined, undefined, IonCardSubtitleCmp); +export const IonCardTitle = /*@__PURE__*/createReactComponent('ion-card-title', undefined, undefined, IonCardTitleCmp); +export const IonCheckbox = /*@__PURE__*/createReactComponent('ion-checkbox', undefined, undefined, IonCheckboxCmp); +export const IonChip = /*@__PURE__*/createReactComponent('ion-chip', undefined, undefined, IonChipCmp); +export const IonCol = /*@__PURE__*/createReactComponent('ion-col', undefined, undefined, IonColCmp); +export const IonContent = /*@__PURE__*/createReactComponent('ion-content', undefined, undefined, IonContentCmp); +export const IonDatetime = /*@__PURE__*/createReactComponent('ion-datetime', undefined, undefined, IonDatetimeCmp); +export const IonFab = /*@__PURE__*/createReactComponent('ion-fab', undefined, undefined, IonFabCmp); +export const IonFabList = /*@__PURE__*/createReactComponent('ion-fab-list', undefined, undefined, IonFabListCmp); +export const IonFooter = /*@__PURE__*/createReactComponent('ion-footer', undefined, undefined, IonFooterCmp); +export const IonGrid = /*@__PURE__*/createReactComponent('ion-grid', undefined, undefined, IonGridCmp); +export const IonHeader = /*@__PURE__*/createReactComponent('ion-header', undefined, undefined, IonHeaderCmp); +export const IonImg = /*@__PURE__*/createReactComponent('ion-img', undefined, undefined, IonImgCmp); +export const IonInfiniteScroll = /*@__PURE__*/createReactComponent('ion-infinite-scroll', undefined, undefined, IonInfiniteScrollCmp); +export const IonInfiniteScrollContent = /*@__PURE__*/createReactComponent('ion-infinite-scroll-content', undefined, undefined, IonInfiniteScrollContentCmp); +export const IonInput = /*@__PURE__*/createReactComponent('ion-input', undefined, undefined, IonInputCmp); +export const IonItemDivider = /*@__PURE__*/createReactComponent('ion-item-divider', undefined, undefined, IonItemDividerCmp); +export const IonItemGroup = /*@__PURE__*/createReactComponent('ion-item-group', undefined, undefined, IonItemGroupCmp); +export const IonItemOptions = /*@__PURE__*/createReactComponent('ion-item-options', undefined, undefined, IonItemOptionsCmp); +export const IonItemSliding = /*@__PURE__*/createReactComponent('ion-item-sliding', undefined, undefined, IonItemSlidingCmp); +export const IonLabel = /*@__PURE__*/createReactComponent('ion-label', undefined, undefined, IonLabelCmp); +export const IonList = /*@__PURE__*/createReactComponent('ion-list', undefined, undefined, IonListCmp); +export const IonListHeader = /*@__PURE__*/createReactComponent('ion-list-header', undefined, undefined, IonListHeaderCmp); +export const IonMenu = /*@__PURE__*/createReactComponent('ion-menu', undefined, undefined, IonMenuCmp); +export const IonMenuButton = /*@__PURE__*/createReactComponent('ion-menu-button', undefined, undefined, IonMenuButtonCmp); +export const IonMenuToggle = /*@__PURE__*/createReactComponent('ion-menu-toggle', undefined, undefined, IonMenuToggleCmp); +export const IonNav = /*@__PURE__*/createReactComponent('ion-nav', undefined, undefined, IonNavCmp); +export const IonNavLink = /*@__PURE__*/createReactComponent('ion-nav-link', undefined, undefined, IonNavLinkCmp); +export const IonNote = /*@__PURE__*/createReactComponent('ion-note', undefined, undefined, IonNoteCmp); +export const IonProgressBar = /*@__PURE__*/createReactComponent('ion-progress-bar', undefined, undefined, IonProgressBarCmp); +export const IonRadio = /*@__PURE__*/createReactComponent('ion-radio', undefined, undefined, IonRadioCmp); +export const IonRadioGroup = /*@__PURE__*/createReactComponent('ion-radio-group', undefined, undefined, IonRadioGroupCmp); +export const IonRange = /*@__PURE__*/createReactComponent('ion-range', undefined, undefined, IonRangeCmp); +export const IonRefresher = /*@__PURE__*/createReactComponent('ion-refresher', undefined, undefined, IonRefresherCmp); +export const IonRefresherContent = /*@__PURE__*/createReactComponent('ion-refresher-content', undefined, undefined, IonRefresherContentCmp); +export const IonReorder = /*@__PURE__*/createReactComponent('ion-reorder', undefined, undefined, IonReorderCmp); +export const IonReorderGroup = /*@__PURE__*/createReactComponent('ion-reorder-group', undefined, undefined, IonReorderGroupCmp); +export const IonRippleEffect = /*@__PURE__*/createReactComponent('ion-ripple-effect', undefined, undefined, IonRippleEffectCmp); +export const IonRow = /*@__PURE__*/createReactComponent('ion-row', undefined, undefined, IonRowCmp); +export const IonSearchbar = /*@__PURE__*/createReactComponent('ion-searchbar', undefined, undefined, IonSearchbarCmp); +export const IonSegment = /*@__PURE__*/createReactComponent('ion-segment', undefined, undefined, IonSegmentCmp); +export const IonSegmentButton = /*@__PURE__*/createReactComponent('ion-segment-button', undefined, undefined, IonSegmentButtonCmp); +export const IonSelect = /*@__PURE__*/createReactComponent('ion-select', undefined, undefined, IonSelectCmp); +export const IonSelectOption = /*@__PURE__*/createReactComponent('ion-select-option', undefined, undefined, IonSelectOptionCmp); +export const IonSkeletonText = /*@__PURE__*/createReactComponent('ion-skeleton-text', undefined, undefined, IonSkeletonTextCmp); +export const IonSlide = /*@__PURE__*/createReactComponent('ion-slide', undefined, undefined, IonSlideCmp); +export const IonSlides = /*@__PURE__*/createReactComponent('ion-slides', undefined, undefined, IonSlidesCmp); +export const IonSpinner = /*@__PURE__*/createReactComponent('ion-spinner', undefined, undefined, IonSpinnerCmp); +export const IonSplitPane = /*@__PURE__*/createReactComponent('ion-split-pane', undefined, undefined, IonSplitPaneCmp); +export const IonTab = /*@__PURE__*/createReactComponent('ion-tab', undefined, undefined, IonTabCmp); +export const IonText = /*@__PURE__*/createReactComponent('ion-text', undefined, undefined, IonTextCmp); +export const IonTextarea = /*@__PURE__*/createReactComponent('ion-textarea', undefined, undefined, IonTextareaCmp); +export const IonThumbnail = /*@__PURE__*/createReactComponent('ion-thumbnail', undefined, undefined, IonThumbnailCmp); +export const IonTitle = /*@__PURE__*/createReactComponent('ion-title', undefined, undefined, IonTitleCmp); +export const IonToggle = /*@__PURE__*/createReactComponent('ion-toggle', undefined, undefined, IonToggleCmp); +export const IonToolbar = /*@__PURE__*/createReactComponent('ion-toolbar', undefined, undefined, IonToolbarCmp); +export const IonVirtualScroll = /*@__PURE__*/createReactComponent('ion-virtual-scroll', undefined, undefined, IonVirtualScrollCmp); diff --git a/packages/react/src/components/react-component-lib/createComponent.tsx b/packages/react/src/components/react-component-lib/createComponent.tsx index 91177adfc1..c3be0b1d32 100644 --- a/packages/react/src/components/react-component-lib/createComponent.tsx +++ b/packages/react/src/components/react-component-lib/createComponent.tsx @@ -25,12 +25,12 @@ export const createReactComponent = < ExpandedPropsTypes = {} >( tagName: string, - customElement?: any, ReactComponentContext?: React.Context, manipulatePropsFunction?: ( originalProps: StencilReactInternalProps, propsToPass: any, ) => ExpandedPropsTypes, + customElement?: any, ) => { defineCustomElement(tagName, customElement);