From 0fe5f1ab84d3fb92dfefb92e060bfcfc702c9d1e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 06:24:54 +0000 Subject: [PATCH 1/2] fix: prepend declare to function declarations in .d.ts files Agent-Logs-Url: https://github.com/robigan/design-system-react/sessions/2ac66c8a-afca-4f9d-8e31-9b020ee6ea08 Co-authored-by: robigan <35210888+robigan@users.noreply.github.com> --- components/accordion.d.ts | 2 +- components/accordion/panel.d.ts | 2 +- components/alert.d.ts | 2 +- components/alert/container.d.ts | 2 +- components/app-launcher.d.ts | 2 +- components/app-launcher/expandable-section.d.ts | 2 +- components/app-launcher/link.d.ts | 2 +- components/app-launcher/section.d.ts | 2 +- components/app-launcher/tile.d.ts | 2 +- components/avatar.d.ts | 2 +- components/badge.d.ts | 2 +- components/brand-band.d.ts | 2 +- components/breadcrumb.d.ts | 2 +- components/builder-header.d.ts | 2 +- components/builder-header/misc.d.ts | 2 +- components/builder-header/nav-link.d.ts | 2 +- components/builder-header/nav.d.ts | 2 +- components/builder-header/toolbar.d.ts | 2 +- components/builder-header/utilities.d.ts | 2 +- components/button-group.d.ts | 2 +- components/button-stateful.d.ts | 2 +- components/button.d.ts | 2 +- components/card.d.ts | 2 +- components/card/empty.d.ts | 2 +- components/card/filter.d.ts | 2 +- components/card/private/body.d.ts | 2 +- components/card/private/footer.d.ts | 2 +- components/card/private/header.d.ts | 2 +- components/carousel.d.ts | 2 +- components/carousel/private/auto-play-button.d.ts | 2 +- components/carousel/private/carousel-indicators.d.ts | 2 +- components/carousel/private/carousel-item.d.ts | 2 +- .../carousel/private/previous-next-carousel-navigator.d.ts | 2 +- components/checkbox.d.ts | 2 +- components/color-picker.d.ts | 2 +- components/color-picker/private/swatch.d.ts | 2 +- components/combobox/combobox.d.ts | 2 +- components/combobox/private/menu.d.ts | 2 +- components/data-table.d.ts | 2 +- components/data-table/cell.d.ts | 2 +- components/data-table/column.d.ts | 2 +- components/data-table/highlight-cell.d.ts | 2 +- components/data-table/private/head.d.ts | 2 +- components/data-table/private/header-cell.d.ts | 2 +- components/data-table/private/row.d.ts | 2 +- components/data-table/row-actions.d.ts | 2 +- components/date-picker/date-picker.d.ts | 2 +- components/date-picker/private/calendar-wrapper.d.ts | 2 +- components/date-picker/private/calendar.d.ts | 2 +- components/date-picker/private/day.d.ts | 2 +- components/date-picker/private/navigation.d.ts | 2 +- components/date-picker/private/week.d.ts | 2 +- components/date-picker/private/year-picklist.d.ts | 2 +- components/dynamic-icon.d.ts | 2 +- components/expandable-section.d.ts | 2 +- components/expression.d.ts | 2 +- components/expression/condition.d.ts | 2 +- components/expression/formula.d.ts | 2 +- components/expression/group.d.ts | 2 +- components/files.d.ts | 2 +- components/files/file.d.ts | 2 +- components/files/more-files.d.ts | 2 +- components/files/private/file-actions.d.ts | 2 +- components/files/private/file-figure.d.ts | 2 +- components/filter.d.ts | 2 +- components/forms/input/inline.d.ts | 2 +- components/forms/private/label.d.ts | 2 +- components/global-header.d.ts | 2 +- components/global-header/dropdown.d.ts | 2 +- components/global-header/favorites.d.ts | 2 +- components/global-header/help.d.ts | 2 +- components/global-header/notifications.d.ts | 2 +- components/global-header/private/dropdown-trigger.d.ts | 2 +- components/global-header/profile.d.ts | 2 +- components/global-header/search.d.ts | 2 +- components/global-header/setup.d.ts | 2 +- components/global-header/task.d.ts | 2 +- components/global-navigation-bar.d.ts | 2 +- components/global-navigation-bar/button.d.ts | 2 +- components/global-navigation-bar/dropdown-trigger.d.ts | 2 +- components/global-navigation-bar/dropdown.d.ts | 2 +- components/global-navigation-bar/label.d.ts | 2 +- components/global-navigation-bar/link.d.ts | 2 +- components/global-navigation-bar/region.d.ts | 2 +- components/icon-settings.d.ts | 2 +- components/icon.d.ts | 2 +- components/icon/button-icon.d.ts | 2 +- components/icon/input-icon.d.ts | 2 +- components/illustration.d.ts | 2 +- components/input.d.ts | 2 +- components/input/private/inner-input.d.ts | 2 +- components/input/search.d.ts | 2 +- components/location-map.d.ts | 2 +- components/lookup/footer.d.ts | 2 +- components/lookup/header.d.ts | 2 +- components/lookup/lookup.d.ts | 2 +- components/lookup/private/item.d.ts | 2 +- components/lookup/private/menu.d.ts | 2 +- components/lookup/section-divider.d.ts | 2 +- components/media-object.d.ts | 2 +- components/menu-dropdown/button-trigger.d.ts | 2 +- components/menu-dropdown/menu-dropdown.d.ts | 2 +- components/menu-picklist.d.ts | 2 +- components/modal.d.ts | 2 +- components/notification.d.ts | 2 +- components/page-header.d.ts | 2 +- components/page-header/control.d.ts | 2 +- components/page-header/private/base.d.ts | 2 +- components/page-header/private/controls.d.ts | 2 +- components/page-header/private/detail-block.d.ts | 2 +- components/page-header/private/detail-row.d.ts | 2 +- components/page-header/private/info.d.ts | 2 +- components/page-header/private/label.d.ts | 2 +- components/page-header/private/object-home.d.ts | 2 +- components/page-header/private/record-home.d.ts | 2 +- components/page-header/private/related-list.d.ts | 2 +- components/page-header/private/title.d.ts | 2 +- components/panel.d.ts | 2 +- components/panel/filtering/group.d.ts | 2 +- components/panel/filtering/list-heading.d.ts | 2 +- components/panel/filtering/private/panel-footer.d.ts | 2 +- components/panel/filtering/private/panel-header.d.ts | 2 +- components/pill-container.d.ts | 2 +- components/pill-container/private/selected-listbox.d.ts | 2 +- components/pill.d.ts | 2 +- components/popover/edit-dialog.d.ts | 2 +- components/popover/popover.d.ts | 2 +- components/progress-bar.d.ts | 2 +- components/progress-indicator.d.ts | 2 +- components/progress-indicator/private/progress-bar.d.ts | 2 +- components/progress-indicator/private/progress.d.ts | 2 +- components/progress-indicator/private/step-vertical.d.ts | 2 +- components/progress-indicator/private/step.d.ts | 2 +- components/progress-ring.d.ts | 2 +- components/progress-ring/private/ring-shape.d.ts | 2 +- components/radio-button-group.d.ts | 2 +- components/radio-group.d.ts | 2 +- components/radio.d.ts | 2 +- components/scoped-notification.d.ts | 2 +- components/setup-assistant.d.ts | 2 +- components/setup-assistant/step.d.ts | 2 +- components/slider.d.ts | 2 +- components/spinner.d.ts | 2 +- components/split-view.d.ts | 2 +- components/split-view/header.d.ts | 2 +- components/split-view/listbox.d.ts | 2 +- components/split-view/private/list-item-content.d.ts | 2 +- components/tabs.d.ts | 2 +- components/tabs/panel.d.ts | 2 +- components/tabs/private/tab-panel.d.ts | 2 +- components/tabs/private/tab.d.ts | 2 +- components/tabs/private/tabs-list.d.ts | 2 +- components/textarea.d.ts | 2 +- components/time-picker.d.ts | 2 +- components/time-picker/private/dropdown-trigger.d.ts | 2 +- components/toast.d.ts | 2 +- components/toast/container.d.ts | 2 +- components/tooltip.d.ts | 2 +- components/tooltip/private/field-level-help-tooltip.d.ts | 2 +- components/tree.d.ts | 2 +- components/tree/private/branch.d.ts | 2 +- components/tree/private/item.d.ts | 2 +- components/tree/private/render-branch.d.ts | 2 +- components/tree/private/render-initial-branch.d.ts | 2 +- components/trial-bar.d.ts | 2 +- components/utilities/dialog.d.ts | 2 +- components/utilities/dialog/portal.d.ts | 2 +- components/utilities/highlighter.d.ts | 2 +- components/utilities/label.d.ts | 2 +- components/utilities/menu-list.d.ts | 2 +- components/utilities/menu-list/item-label.d.ts | 2 +- components/utilities/menu-list/item.d.ts | 2 +- components/utilities/pill.d.ts | 2 +- components/utilities/truncate.d.ts | 2 +- components/utilities/utility-icon.d.ts | 2 +- components/vertical-navigation.d.ts | 2 +- components/vertical-navigation/private/item.d.ts | 2 +- components/visual-picker.d.ts | 2 +- components/visual-picker/link.d.ts | 2 +- components/welcome-mat.d.ts | 2 +- components/welcome-mat/info-badge.d.ts | 2 +- components/welcome-mat/tile.d.ts | 2 +- 182 files changed, 182 insertions(+), 182 deletions(-) diff --git a/components/accordion.d.ts b/components/accordion.d.ts index 9048ead2b..0c03fcd6f 100644 --- a/components/accordion.d.ts +++ b/components/accordion.d.ts @@ -23,5 +23,5 @@ type Props = { children: React.ReactNode /*.isRequired*/; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/accordion/panel.d.ts b/components/accordion/panel.d.ts index e3b4ddfbe..267f08c2d 100644 --- a/components/accordion/panel.d.ts +++ b/components/accordion/panel.d.ts @@ -40,5 +40,5 @@ type Props = { title?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/alert.d.ts b/components/alert.d.ts index fc7a36047..fe3072105 100644 --- a/components/alert.d.ts +++ b/components/alert.d.ts @@ -61,5 +61,5 @@ type Props = { /** * Alert banners communicate a state that affects the entire system, not just a feature or page. It persists over a session and appears without the user initiating the action. View [banner guidelines](https://www.lightningdesignsystem.com/guidelines/messaging/components/banners/). */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/alert/container.d.ts b/components/alert/container.d.ts index 2136c06a8..d62862d8e 100644 --- a/components/alert/container.d.ts +++ b/components/alert/container.d.ts @@ -12,5 +12,5 @@ type Props = { /** * A fixed container for alert banners. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/app-launcher.d.ts b/components/app-launcher.d.ts index 9264e405e..0a2aaf123 100644 --- a/components/app-launcher.d.ts +++ b/components/app-launcher.d.ts @@ -82,5 +82,5 @@ type Props = { * settings.setAppElement('#mount'); * ``` */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/app-launcher/expandable-section.d.ts b/components/app-launcher/expandable-section.d.ts index 11a34b0ae..4faec9226 100644 --- a/components/app-launcher/expandable-section.d.ts +++ b/components/app-launcher/expandable-section.d.ts @@ -40,5 +40,5 @@ type Props = { * App Launcher Sections allow users to categorize App Tiles & Links as well as toggle their display. It is a superset of components/expandable-section with content formatting. * All Expandable Section props are compatible with props passed to this component. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/app-launcher/link.d.ts b/components/app-launcher/link.d.ts index ecff78d95..cabe3b202 100644 --- a/components/app-launcher/link.d.ts +++ b/components/app-launcher/link.d.ts @@ -28,5 +28,5 @@ type Props = { /** * App Launcher Link component creates simple links to be used in "All Items" sections */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/app-launcher/section.d.ts b/components/app-launcher/section.d.ts index f89fe232b..437de87eb 100644 --- a/components/app-launcher/section.d.ts +++ b/components/app-launcher/section.d.ts @@ -38,5 +38,5 @@ type Props = { /** * App Launcher Sections allow users to categorize App Tiles as well as toggle their display */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/app-launcher/tile.d.ts b/components/app-launcher/tile.d.ts index d7129680e..1e647990b 100644 --- a/components/app-launcher/tile.d.ts +++ b/components/app-launcher/tile.d.ts @@ -61,5 +61,5 @@ type Props = { /** * App Launcher Tiles provide information and links to a user's apps */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/avatar.d.ts b/components/avatar.d.ts index 8df69821b..1f20c7d04 100644 --- a/components/avatar.d.ts +++ b/components/avatar.d.ts @@ -50,5 +50,5 @@ type Props = { If `initials` or `label` are not available, the fallback avatar will render a standard icon. If `variant='user'`, a user icon will render. If `variant='entity'`, an account icon will render. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/badge.d.ts b/components/badge.d.ts index db9158615..f9367c529 100644 --- a/components/badge.d.ts +++ b/components/badge.d.ts @@ -33,5 +33,5 @@ type Props = { /** * Badges are labels which hold small amounts of information. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/brand-band.d.ts b/components/brand-band.d.ts index c8f635b82..459beefda 100644 --- a/components/brand-band.d.ts +++ b/components/brand-band.d.ts @@ -37,5 +37,5 @@ type Props = { /** * The brand band provides theming capability that adds personality and improves information density and contrast. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/breadcrumb.d.ts b/components/breadcrumb.d.ts index 33a703fe0..6487b3cd9 100644 --- a/components/breadcrumb.d.ts +++ b/components/breadcrumb.d.ts @@ -26,5 +26,5 @@ type Props = { trail: any[] /*.isRequired*/; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/builder-header.d.ts b/components/builder-header.d.ts index 14d029550..9f520db58 100644 --- a/components/builder-header.d.ts +++ b/components/builder-header.d.ts @@ -75,5 +75,5 @@ type Props = { style?: Record; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/builder-header/misc.d.ts b/components/builder-header/misc.d.ts index c8d3e7bf6..f7a4033c2 100644 --- a/components/builder-header/misc.d.ts +++ b/components/builder-header/misc.d.ts @@ -13,5 +13,5 @@ type Props = { children?: React.ReactNode; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/builder-header/nav-link.d.ts b/components/builder-header/nav-link.d.ts index b442b0d53..c19ba2045 100644 --- a/components/builder-header/nav-link.d.ts +++ b/components/builder-header/nav-link.d.ts @@ -31,5 +31,5 @@ type Props = { onClick?: (v: any) => any; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/builder-header/nav.d.ts b/components/builder-header/nav.d.ts index 353eb7a46..bd37d468f 100644 --- a/components/builder-header/nav.d.ts +++ b/components/builder-header/nav.d.ts @@ -14,5 +14,5 @@ type Props = { children?: React.ReactNode; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/builder-header/toolbar.d.ts b/components/builder-header/toolbar.d.ts index c6f5c1518..99786f972 100644 --- a/components/builder-header/toolbar.d.ts +++ b/components/builder-header/toolbar.d.ts @@ -27,5 +27,5 @@ type Props = { onRenderActions?: (v: any) => any; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/builder-header/utilities.d.ts b/components/builder-header/utilities.d.ts index e811efc3a..871deec15 100644 --- a/components/builder-header/utilities.d.ts +++ b/components/builder-header/utilities.d.ts @@ -14,5 +14,5 @@ type Props = { children?: React.ReactNode, }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/button-group.d.ts b/components/button-group.d.ts index bc70504cf..87e736c29 100644 --- a/components/button-group.d.ts +++ b/components/button-group.d.ts @@ -34,5 +34,5 @@ type Props = { /** * The ButtonGroup component wraps other components (ie. Button, MenuDropdown, PopoverTooltip, Checkboxes, etc). */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/button-stateful.d.ts b/components/button-stateful.d.ts index 5e5903eec..62bf26d08 100644 --- a/components/button-stateful.d.ts +++ b/components/button-stateful.d.ts @@ -90,5 +90,5 @@ type Props = { * If no `aria-*` props are passed in, aria-live='polite' is used for `icon` and `icon-filled` variants, * and aria-live='assertive' is used for the remaining variants. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/button.d.ts b/components/button.d.ts index 0038c5238..ca143552b 100644 --- a/components/button.d.ts +++ b/components/button.d.ts @@ -157,5 +157,5 @@ type Props = { * Either a label or assistiveText.icon is required; see the Prop Details table below. For buttons that maintain selected/unselected states, use the ButtonStateful component. * Although not listed in the prop table, all `aria-*` and `form*` props will be added to the `button` element if passed in. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/card.d.ts b/components/card.d.ts index 20c566485..a0e6906c9 100644 --- a/components/card.d.ts +++ b/components/card.d.ts @@ -54,5 +54,5 @@ type Props = { style?: Record; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/card/empty.d.ts b/components/card/empty.d.ts index 5ce57a96b..f7f03f0e0 100644 --- a/components/card/empty.d.ts +++ b/components/card/empty.d.ts @@ -10,5 +10,5 @@ type Props = { heading?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/card/filter.d.ts b/components/card/filter.d.ts index f0f673084..8ba037c8b 100644 --- a/components/card/filter.d.ts +++ b/components/card/filter.d.ts @@ -14,5 +14,5 @@ type Props = { placeholder: string /*.isRequired*/; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/card/private/body.d.ts b/components/card/private/body.d.ts index 2dda48c20..23a683cb8 100644 --- a/components/card/private/body.d.ts +++ b/components/card/private/body.d.ts @@ -14,5 +14,5 @@ type Props = { id?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/card/private/footer.d.ts b/components/card/private/footer.d.ts index d2f349e5c..8b299aac9 100644 --- a/components/card/private/footer.d.ts +++ b/components/card/private/footer.d.ts @@ -6,5 +6,5 @@ type Props = { children?: React.ReactNode; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/card/private/header.d.ts b/components/card/private/header.d.ts index 4a8923278..586e74f32 100644 --- a/components/card/private/header.d.ts +++ b/components/card/private/header.d.ts @@ -35,5 +35,5 @@ type Props = { icon?: React.ReactNode; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/carousel.d.ts b/components/carousel.d.ts index a889d247f..004ef546b 100644 --- a/components/carousel.d.ts +++ b/components/carousel.d.ts @@ -73,5 +73,5 @@ type Props = { * A carousel allows multiple pieces of featured content to occupy an allocated amount of space. * Currently panel index and auto play cannot be controlled by the app. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/carousel/private/auto-play-button.d.ts b/components/carousel/private/auto-play-button.d.ts index d1490bf29..1a213f549 100644 --- a/components/carousel/private/auto-play-button.d.ts +++ b/components/carousel/private/auto-play-button.d.ts @@ -14,5 +14,5 @@ type Props = { onClick?: (v: any) => any; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/carousel/private/carousel-indicators.d.ts b/components/carousel/private/carousel-indicators.d.ts index dfd6a7de0..50f24d5ff 100644 --- a/components/carousel/private/carousel-indicators.d.ts +++ b/components/carousel/private/carousel-indicators.d.ts @@ -45,5 +45,5 @@ type Props = { * CarouselIndicators is used to display the list of indicators associated to the number of panels * a carousel has */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/carousel/private/carousel-item.d.ts b/components/carousel/private/carousel-item.d.ts index 9a88dbb71..6ea4d5b4b 100644 --- a/components/carousel/private/carousel-item.d.ts +++ b/components/carousel/private/carousel-item.d.ts @@ -55,5 +55,5 @@ type Props = { src: string /*.isRequired*/; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/carousel/private/previous-next-carousel-navigator.d.ts b/components/carousel/private/previous-next-carousel-navigator.d.ts index de0d8995e..0c424860d 100644 --- a/components/carousel/private/previous-next-carousel-navigator.d.ts +++ b/components/carousel/private/previous-next-carousel-navigator.d.ts @@ -22,5 +22,5 @@ type Props = { onClick?: (v: any) => any; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/checkbox.d.ts b/components/checkbox.d.ts index cba5df0dc..7abdd26e6 100644 --- a/components/checkbox.d.ts +++ b/components/checkbox.d.ts @@ -150,5 +150,5 @@ type Props = { /** * The ability to style checkboxes with CSS varies across browsers. Using this component ensures checkboxes look the same everywhere. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/color-picker.d.ts b/components/color-picker.d.ts index 823d8d7f4..341801d3e 100644 --- a/components/color-picker.d.ts +++ b/components/color-picker.d.ts @@ -141,5 +141,5 @@ type Props = { /** * The Unified Color Picker component allows for a fully accessible and configurable color picker, allowing the user to pick from a set of predefined colors (swatches), or to pick a custom color using a HSB selection interface. It can be configured to show one or both of those color selection interfaces. View [component blueprint guidelines](https://lightningdesignsystem.com/components/color-picker/). */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/color-picker/private/swatch.d.ts b/components/color-picker/private/swatch.d.ts index 03ac1282f..c44e0f31b 100644 --- a/components/color-picker/private/swatch.d.ts +++ b/components/color-picker/private/swatch.d.ts @@ -3,5 +3,5 @@ type Props = { color: string /*.isRequired*/; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/combobox/combobox.d.ts b/components/combobox/combobox.d.ts index d9403b98b..4b16c6cf9 100644 --- a/components/combobox/combobox.d.ts +++ b/components/combobox/combobox.d.ts @@ -312,5 +312,5 @@ type Props = { /** * A widget that provides a user with an input field that is either an autocomplete or readonly, accompanied with a listbox of pre-definfined options. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/combobox/private/menu.d.ts b/components/combobox/private/menu.d.ts index c7a0eabeb..87e17f770 100644 --- a/components/combobox/private/menu.d.ts +++ b/components/combobox/private/menu.d.ts @@ -109,5 +109,5 @@ type Props = { assistiveText?: Record; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/data-table.d.ts b/components/data-table.d.ts index 6aa4d20df..fe716d460 100644 --- a/components/data-table.d.ts +++ b/components/data-table.d.ts @@ -163,5 +163,5 @@ type Props = { * * NOTE: for horizontal scrolling with `fixedHeader`-enabled DataTables, see the `style` property description */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/data-table/cell.d.ts b/components/data-table/cell.d.ts index aa9815690..373ac6458 100644 --- a/components/data-table/cell.d.ts +++ b/components/data-table/cell.d.ts @@ -34,5 +34,5 @@ type Props = { width?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/data-table/column.d.ts b/components/data-table/column.d.ts index d2b2df27c..b305b4416 100644 --- a/components/data-table/column.d.ts +++ b/components/data-table/column.d.ts @@ -67,5 +67,5 @@ type Props = { /** * Columns define the structure of the data displayed in the DataTable. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/data-table/highlight-cell.d.ts b/components/data-table/highlight-cell.d.ts index 170a60e2a..514669572 100644 --- a/components/data-table/highlight-cell.d.ts +++ b/components/data-table/highlight-cell.d.ts @@ -10,5 +10,5 @@ type Props = { search?: PropTypes.any; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/data-table/private/head.d.ts b/components/data-table/private/head.d.ts index 44c9e70dc..0e228e1bf 100644 --- a/components/data-table/private/head.d.ts +++ b/components/data-table/private/head.d.ts @@ -25,5 +25,5 @@ type Props = { /** * Used internally, provides header row rendering to the DataTable. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/data-table/private/header-cell.d.ts b/components/data-table/private/header-cell.d.ts index 85f42f62b..b1c939f4e 100644 --- a/components/data-table/private/header-cell.d.ts +++ b/components/data-table/private/header-cell.d.ts @@ -47,5 +47,5 @@ type Props = { /** * Used internally, renders each individual column heading. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/data-table/private/row.d.ts b/components/data-table/private/row.d.ts index 278e9f2e0..b15739e79 100644 --- a/components/data-table/private/row.d.ts +++ b/components/data-table/private/row.d.ts @@ -29,5 +29,5 @@ type Props = { /** * Used internally, provides row rendering to the DataTable. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/data-table/row-actions.d.ts b/components/data-table/row-actions.d.ts index 3a2d3b747..e6eab41a9 100644 --- a/components/data-table/row-actions.d.ts +++ b/components/data-table/row-actions.d.ts @@ -37,5 +37,5 @@ type Props = { /** * RowActions provide a mechanism for defining a menu to display alongside each row in the DataTable. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/date-picker/date-picker.d.ts b/components/date-picker/date-picker.d.ts index ee9f34f09..54826017e 100644 --- a/components/date-picker/date-picker.d.ts +++ b/components/date-picker/date-picker.d.ts @@ -150,5 +150,5 @@ type Props = { * * This component is wrapped in a [higher order component to listen for clicks outside itself](https://github.com/kentor/react-click-outside) and thus requires use of `ReactDOM`. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/date-picker/private/calendar-wrapper.d.ts b/components/date-picker/private/calendar-wrapper.d.ts index 72df34674..45e4fd45c 100644 --- a/components/date-picker/private/calendar-wrapper.d.ts +++ b/components/date-picker/private/calendar-wrapper.d.ts @@ -81,5 +81,5 @@ type Props = { weekDayLabels: any[] /*.isRequired*/; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/date-picker/private/calendar.d.ts b/components/date-picker/private/calendar.d.ts index 52d990c15..b5b2746d7 100644 --- a/components/date-picker/private/calendar.d.ts +++ b/components/date-picker/private/calendar.d.ts @@ -66,5 +66,5 @@ type Props = { weekDayLabels: any[] /*.isRequired*/; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/date-picker/private/day.d.ts b/components/date-picker/private/day.d.ts index f126fb85f..558036399 100644 --- a/components/date-picker/private/day.d.ts +++ b/components/date-picker/private/day.d.ts @@ -56,5 +56,5 @@ type Props = { onRequestInternalFocusDate?: (v: any) => any; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/date-picker/private/navigation.d.ts b/components/date-picker/private/navigation.d.ts index 72ff70a4d..c52a44185 100644 --- a/components/date-picker/private/navigation.d.ts +++ b/components/date-picker/private/navigation.d.ts @@ -46,5 +46,5 @@ type Props = { relativeYearTo?: number; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/date-picker/private/week.d.ts b/components/date-picker/private/week.d.ts index ba4d9d58f..bdca97a06 100644 --- a/components/date-picker/private/week.d.ts +++ b/components/date-picker/private/week.d.ts @@ -62,5 +62,5 @@ type Props = { todayLabel: string /*.isRequired*/; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/date-picker/private/year-picklist.d.ts b/components/date-picker/private/year-picklist.d.ts index aa100802c..61f70029f 100644 --- a/components/date-picker/private/year-picklist.d.ts +++ b/components/date-picker/private/year-picklist.d.ts @@ -26,5 +26,5 @@ type Props = { relativeYearTo?: number; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/dynamic-icon.d.ts b/components/dynamic-icon.d.ts index d111acdd1..3f61e62df 100644 --- a/components/dynamic-icon.d.ts +++ b/components/dynamic-icon.d.ts @@ -71,5 +71,5 @@ type Props = { /** * A set of delightful animated icons. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/expandable-section.d.ts b/components/expandable-section.d.ts index b0c36fe30..7a73fc0cb 100644 --- a/components/expandable-section.d.ts +++ b/components/expandable-section.d.ts @@ -39,5 +39,5 @@ type Props = { /** * Toggle visibility of section content with the Expandable Section */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/expression.d.ts b/components/expression.d.ts index 371d5682f..573ad1531 100644 --- a/components/expression.d.ts +++ b/components/expression.d.ts @@ -61,5 +61,5 @@ type Props = { * These expressions can be used when querying for a filtered set of records, * creating rules to control when something executes, or any other conditional logic. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/expression/condition.d.ts b/components/expression/condition.d.ts index 64c31678c..f16ff49d0 100644 --- a/components/expression/condition.d.ts +++ b/components/expression/condition.d.ts @@ -100,5 +100,5 @@ type Props = { /** * Expression Condition Component */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/expression/formula.d.ts b/components/expression/formula.d.ts index 6f76a3305..6ba10f01c 100644 --- a/components/expression/formula.d.ts +++ b/components/expression/formula.d.ts @@ -55,5 +55,5 @@ type Props = { /** * Expression Formula Component */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/expression/group.d.ts b/components/expression/group.d.ts index 8c782ca63..6229f6f2a 100644 --- a/components/expression/group.d.ts +++ b/components/expression/group.d.ts @@ -78,5 +78,5 @@ type Props = { /** * Expression Group Component */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/files.d.ts b/components/files.d.ts index 1329f578e..03fcf3584 100644 --- a/components/files.d.ts +++ b/components/files.d.ts @@ -20,5 +20,5 @@ type Props = { /** * Files is a component that wraps multiple file components that represent an attachment */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/files/file.d.ts b/components/files/file.d.ts index d94fc0504..01b99820c 100644 --- a/components/files/file.d.ts +++ b/components/files/file.d.ts @@ -74,5 +74,5 @@ type Props = { /** * File is a component that represents content uploaded as an attachment. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/files/more-files.d.ts b/components/files/more-files.d.ts index 58570b810..df4e88a49 100644 --- a/components/files/more-files.d.ts +++ b/components/files/more-files.d.ts @@ -39,5 +39,5 @@ type Props = { /** * MoreFiles is a component that represents a number of file contents uploaded as an attachment. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/files/private/file-actions.d.ts b/components/files/private/file-actions.d.ts index 5147338a8..a5a6e5393 100644 --- a/components/files/private/file-actions.d.ts +++ b/components/files/private/file-actions.d.ts @@ -14,5 +14,5 @@ type Props = { hasNoVisibleTitle?: boolean; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/files/private/file-figure.d.ts b/components/files/private/file-figure.d.ts index 0b47c90a2..da9f52121 100644 --- a/components/files/private/file-figure.d.ts +++ b/components/files/private/file-figure.d.ts @@ -19,5 +19,5 @@ type Props = { }>; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/filter.d.ts b/components/filter.d.ts index 99e56a731..a66962dc3 100644 --- a/components/filter.d.ts +++ b/components/filter.d.ts @@ -78,5 +78,5 @@ type Props = { /** * A Filter is a popover with custom trigger. It can be used by [Panel Filtering](/components/panels/). Menus within a Filter Popover will need to not have "portal mounts" and be inline. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/forms/input/inline.d.ts b/components/forms/input/inline.d.ts index a75cb19a9..68e88e993 100644 --- a/components/forms/input/inline.d.ts +++ b/components/forms/input/inline.d.ts @@ -58,5 +58,5 @@ type Props = { /** * An inline input is rendered as a label by default. When clicked (or tabbed in), it's rendered as an input. When the focus is lost, the current input value is saved and the input is rendered as a label again. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/forms/private/label.d.ts b/components/forms/private/label.d.ts index 713eb984c..a42598f3d 100644 --- a/components/forms/private/label.d.ts +++ b/components/forms/private/label.d.ts @@ -22,5 +22,5 @@ type Props = { variant?: 'base' | 'static'; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-header.d.ts b/components/global-header.d.ts index a4eed2fde..798f29ac8 100644 --- a/components/global-header.d.ts +++ b/components/global-header.d.ts @@ -45,5 +45,5 @@ type Props = { * * ``` */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-header/dropdown.d.ts b/components/global-header/dropdown.d.ts index be3071853..5674a33d5 100644 --- a/components/global-header/dropdown.d.ts +++ b/components/global-header/dropdown.d.ts @@ -58,5 +58,5 @@ type Props = { options: any[] /*.isRequired*/; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-header/favorites.d.ts b/components/global-header/favorites.d.ts index 5485a6082..b1540b50f 100644 --- a/components/global-header/favorites.d.ts +++ b/components/global-header/favorites.d.ts @@ -29,5 +29,5 @@ type Props = { /** * A GlobalHeaderFavorites component. The favorites action is used to "favorite" a commonly used page within a user's experience. When a user "favorites" a page by pressing the favorites action, the button icon changes color with a small animation to confirm your selection. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-header/help.d.ts b/components/global-header/help.d.ts index 09b7bc573..996738c50 100644 --- a/components/global-header/help.d.ts +++ b/components/global-header/help.d.ts @@ -15,5 +15,5 @@ type Props = { /** * A GlobalHeaderHelp component. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-header/notifications.d.ts b/components/global-header/notifications.d.ts index 0367552eb..7314b0aa8 100644 --- a/components/global-header/notifications.d.ts +++ b/components/global-header/notifications.d.ts @@ -23,5 +23,5 @@ type Props = { /** * A GlobalHeaderNotifications component. Notifications are a way to notify a user about a global change within the application. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-header/private/dropdown-trigger.d.ts b/components/global-header/private/dropdown-trigger.d.ts index 4e351f64a..a4d64c69f 100644 --- a/components/global-header/private/dropdown-trigger.d.ts +++ b/components/global-header/private/dropdown-trigger.d.ts @@ -68,5 +68,5 @@ type Props = { /** * The Dropdown Button Trigger renders the default trigger button for the dropdown menu. If this component has children, it does not render itself to the DOM. Instead, it renders its child element, `Button`, and all that child's properties. This component may be used as a template to create custom triggers that do not use `Button`. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-header/profile.d.ts b/components/global-header/profile.d.ts index b07ca1547..770544d35 100644 --- a/components/global-header/profile.d.ts +++ b/components/global-header/profile.d.ts @@ -28,5 +28,5 @@ type Props = { /** * This component is an `Avatar` component that opens a `Popover` component when clicked. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-header/search.d.ts b/components/global-header/search.d.ts index 48c9aff08..c4fa44f5a 100644 --- a/components/global-header/search.d.ts +++ b/components/global-header/search.d.ts @@ -6,5 +6,5 @@ type Props = { combobox: React.ReactNode /*.isRequired*/; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-header/setup.d.ts b/components/global-header/setup.d.ts index 34875015c..6ba14fb69 100644 --- a/components/global-header/setup.d.ts +++ b/components/global-header/setup.d.ts @@ -15,5 +15,5 @@ type Props = { /** * A GlobalHeaderSetup component. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-header/task.d.ts b/components/global-header/task.d.ts index 18aebcbd7..28069ea25 100644 --- a/components/global-header/task.d.ts +++ b/components/global-header/task.d.ts @@ -15,5 +15,5 @@ type Props = { /** * A GlobalHeaderTask component. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-navigation-bar.d.ts b/components/global-navigation-bar.d.ts index f9801f5a7..5ebaf5139 100644 --- a/components/global-navigation-bar.d.ts +++ b/components/global-navigation-bar.d.ts @@ -18,5 +18,5 @@ type Props = { theme?: 'light' | 'dark'; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-navigation-bar/button.d.ts b/components/global-navigation-bar/button.d.ts index cbead744d..9815b6caa 100644 --- a/components/global-navigation-bar/button.d.ts +++ b/components/global-navigation-bar/button.d.ts @@ -10,5 +10,5 @@ type Props = { dividerPosition?: 'left' | 'right'; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-navigation-bar/dropdown-trigger.d.ts b/components/global-navigation-bar/dropdown-trigger.d.ts index 0a94facf0..a08a9b2b7 100644 --- a/components/global-navigation-bar/dropdown-trigger.d.ts +++ b/components/global-navigation-bar/dropdown-trigger.d.ts @@ -76,5 +76,5 @@ type Props = { /** * The Dropdown Button Trigger renders the default trigger button for the dropdown menu. If this component has children, it does not render itself to the DOM. Instead, it renders its child element, `Button`, and all that child's properties. This component may be used as a template to create custom triggers that do not use `Button`. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-navigation-bar/dropdown.d.ts b/components/global-navigation-bar/dropdown.d.ts index e8d5f7fe5..e7957377f 100644 --- a/components/global-navigation-bar/dropdown.d.ts +++ b/components/global-navigation-bar/dropdown.d.ts @@ -54,5 +54,5 @@ type Props = { options: any[] /*.isRequired*/; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-navigation-bar/label.d.ts b/components/global-navigation-bar/label.d.ts index 3f4378b92..3952d4a66 100644 --- a/components/global-navigation-bar/label.d.ts +++ b/components/global-navigation-bar/label.d.ts @@ -18,5 +18,5 @@ type Props = { label?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-navigation-bar/link.d.ts b/components/global-navigation-bar/link.d.ts index e14f4e410..761c08c5e 100644 --- a/components/global-navigation-bar/link.d.ts +++ b/components/global-navigation-bar/link.d.ts @@ -73,5 +73,5 @@ type Props = { tabIndex?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/global-navigation-bar/region.d.ts b/components/global-navigation-bar/region.d.ts index 0f0364b82..4624cd26b 100644 --- a/components/global-navigation-bar/region.d.ts +++ b/components/global-navigation-bar/region.d.ts @@ -27,5 +27,5 @@ type Props = { /** * Regions make up a GlobalNavigation Bar and typically contain links and dropdowns. The Primary region contains the AppSwitcher, Application Name, and Object Switcher. The secondary region typically has navigation betweens sections of the application. The tertiary region is aligned to the right side of the screen and contains shortcuts or actions. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/icon-settings.d.ts b/components/icon-settings.d.ts index b00b76972..3aa2673d6 100644 --- a/components/icon-settings.d.ts +++ b/components/icon-settings.d.ts @@ -53,5 +53,5 @@ type Props = { * Otherwise use the iconPath to specify the root path to where the icon files will be located in you application * such as `/assets/icons`. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/icon.d.ts b/components/icon.d.ts index 75c5b1257..e780bf3d9 100644 --- a/components/icon.d.ts +++ b/components/icon.d.ts @@ -75,5 +75,5 @@ type Props = { title?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/icon/button-icon.d.ts b/components/icon/button-icon.d.ts index dfab87fd0..a145cbfae 100644 --- a/components/icon/button-icon.d.ts +++ b/components/icon/button-icon.d.ts @@ -43,5 +43,5 @@ type Props = { size?: 'x-small' | 'small' | 'medium' | 'large'; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/icon/input-icon.d.ts b/components/icon/input-icon.d.ts index 0504fe00e..6f536ec05 100644 --- a/components/icon/input-icon.d.ts +++ b/components/icon/input-icon.d.ts @@ -26,5 +26,5 @@ type Props = { variant?: 'base' | 'combobox'; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/illustration.d.ts b/components/illustration.d.ts index b40c2cb01..911fcf542 100644 --- a/components/illustration.d.ts +++ b/components/illustration.d.ts @@ -38,5 +38,5 @@ type Props = { style?: Record; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/input.d.ts b/components/input.d.ts index e3de81360..cf8ee1d2a 100644 --- a/components/input.d.ts +++ b/components/input.d.ts @@ -249,5 +249,5 @@ type Props = { /** * The HTML `input` with a label and error messaging. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/input/private/inner-input.d.ts b/components/input/private/inner-input.d.ts index 44cd62543..59ae7e1ef 100644 --- a/components/input/private/inner-input.d.ts +++ b/components/input/private/inner-input.d.ts @@ -184,5 +184,5 @@ type Props = { defaultValue?: number | string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/input/search.d.ts b/components/input/search.d.ts index a6048fed8..6dcb2951f 100644 --- a/components/input/search.d.ts +++ b/components/input/search.d.ts @@ -26,5 +26,5 @@ type Props = { placeholder?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/location-map.d.ts b/components/location-map.d.ts index 7b7b7a587..1e87f1823 100644 --- a/components/location-map.d.ts +++ b/components/location-map.d.ts @@ -65,5 +65,5 @@ type Props = { /** * A location map component is used to find and show locations */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/lookup/footer.d.ts b/components/lookup/footer.d.ts index 1aadade15..7115475cb 100644 --- a/components/lookup/footer.d.ts +++ b/components/lookup/footer.d.ts @@ -1,5 +1,5 @@ import React from 'react'; type Props = {}; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/lookup/header.d.ts b/components/lookup/header.d.ts index 1aadade15..7115475cb 100644 --- a/components/lookup/header.d.ts +++ b/components/lookup/header.d.ts @@ -1,5 +1,5 @@ import React from 'react'; type Props = {}; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/lookup/lookup.d.ts b/components/lookup/lookup.d.ts index d58bb4255..b70cfcc9d 100644 --- a/components/lookup/lookup.d.ts +++ b/components/lookup/lookup.d.ts @@ -138,5 +138,5 @@ type Props = { selectedItem?: number; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/lookup/private/item.d.ts b/components/lookup/private/item.d.ts index 36e328f77..758823600 100644 --- a/components/lookup/private/item.d.ts +++ b/components/lookup/private/item.d.ts @@ -14,5 +14,5 @@ type Props = { setFocus?: (v: any) => any; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/lookup/private/menu.d.ts b/components/lookup/private/menu.d.ts index 2095b553c..684a42fb2 100644 --- a/components/lookup/private/menu.d.ts +++ b/components/lookup/private/menu.d.ts @@ -13,5 +13,5 @@ type Props = { setFocus?: (v: any) => any; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/lookup/section-divider.d.ts b/components/lookup/section-divider.d.ts index f820f78a5..20195096f 100644 --- a/components/lookup/section-divider.d.ts +++ b/components/lookup/section-divider.d.ts @@ -3,5 +3,5 @@ type Props = { data?: Record; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/media-object.d.ts b/components/media-object.d.ts index c817d56f5..affd0fbd5 100644 --- a/components/media-object.d.ts +++ b/components/media-object.d.ts @@ -24,5 +24,5 @@ type Props = { /** * When you need text and a figure next to each other, use a media object. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/menu-dropdown/button-trigger.d.ts b/components/menu-dropdown/button-trigger.d.ts index 265aaaa8b..fe584f692 100644 --- a/components/menu-dropdown/button-trigger.d.ts +++ b/components/menu-dropdown/button-trigger.d.ts @@ -71,5 +71,5 @@ type Props = { /** * The Dropdown Button Trigger renders the default trigger button for the dropdown menu. If this component has children, it does not render itself to the DOM. Instead, it renders its child element, `Button`, and all that child's properties. This component may be used as a template to create custom triggers that do not use `Button`. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/menu-dropdown/menu-dropdown.d.ts b/components/menu-dropdown/menu-dropdown.d.ts index 1c257ed22..d25f6cffc 100644 --- a/components/menu-dropdown/menu-dropdown.d.ts +++ b/components/menu-dropdown/menu-dropdown.d.ts @@ -241,5 +241,5 @@ type Props = { * * This component is wrapped in a [higher order component to listen for clicks outside itself](https://github.com/kentor/react-click-outside) and thus requires use of `ReactDOM`. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/menu-picklist.d.ts b/components/menu-picklist.d.ts index 0c5dc3cec..d52ef6ee9 100644 --- a/components/menu-picklist.d.ts +++ b/components/menu-picklist.d.ts @@ -78,5 +78,5 @@ type Props = { * * @deprecated */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/modal.d.ts b/components/modal.d.ts index bff295b17..5f6fec93d 100644 --- a/components/modal.d.ts +++ b/components/modal.d.ts @@ -119,5 +119,5 @@ type Props = { * ``` * This component uses a portalMount (a disconnected React subtree mount) to create a modal as a child of `body`. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/notification.d.ts b/components/notification.d.ts index 27d7cce4b..d34589f17 100644 --- a/components/notification.d.ts +++ b/components/notification.d.ts @@ -37,5 +37,5 @@ type Props = { * The Notification component is the Alert and Toast variants of the Lightning Design System Notification component. For prompt notifications, use the Modal component with prompt={true}. * The Notification opens from a state change outside of the component itself (pass this state to the isOpen prop). */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/page-header.d.ts b/components/page-header.d.ts index e6beb4568..b6659d216 100644 --- a/components/page-header.d.ts +++ b/components/page-header.d.ts @@ -55,5 +55,5 @@ type Props = { variant?: 'base' | 'object-home' | 'record-home' | 'related-list'; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/page-header/control.d.ts b/components/page-header/control.d.ts index 645ca8b3c..d2e7badf7 100644 --- a/components/page-header/control.d.ts +++ b/components/page-header/control.d.ts @@ -6,5 +6,5 @@ type Props = { className?: any[] | Record | string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/page-header/private/base.d.ts b/components/page-header/private/base.d.ts index f335dca7a..821074a36 100644 --- a/components/page-header/private/base.d.ts +++ b/components/page-header/private/base.d.ts @@ -23,5 +23,5 @@ type Props = { variant?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/page-header/private/controls.d.ts b/components/page-header/private/controls.d.ts index 418dea1bc..f2c681b4e 100644 --- a/components/page-header/private/controls.d.ts +++ b/components/page-header/private/controls.d.ts @@ -10,5 +10,5 @@ type Props = { type?: 'actions' | 'controls'; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/page-header/private/detail-block.d.ts b/components/page-header/private/detail-block.d.ts index 64c560e36..b10fdfb23 100644 --- a/components/page-header/private/detail-block.d.ts +++ b/components/page-header/private/detail-block.d.ts @@ -22,5 +22,5 @@ type Props = { truncate?: boolean; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/page-header/private/detail-row.d.ts b/components/page-header/private/detail-row.d.ts index f841df348..133f1334d 100644 --- a/components/page-header/private/detail-row.d.ts +++ b/components/page-header/private/detail-row.d.ts @@ -11,5 +11,5 @@ type Props = { details?: any[]; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/page-header/private/info.d.ts b/components/page-header/private/info.d.ts index 951c4695a..a8f67997c 100644 --- a/components/page-header/private/info.d.ts +++ b/components/page-header/private/info.d.ts @@ -14,5 +14,5 @@ type Props = { variant?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/page-header/private/label.d.ts b/components/page-header/private/label.d.ts index de8a208bc..abb211b13 100644 --- a/components/page-header/private/label.d.ts +++ b/components/page-header/private/label.d.ts @@ -10,5 +10,5 @@ type Props = { trail?: any[]; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/page-header/private/object-home.d.ts b/components/page-header/private/object-home.d.ts index bd123a971..d8b8717da 100644 --- a/components/page-header/private/object-home.d.ts +++ b/components/page-header/private/object-home.d.ts @@ -41,5 +41,5 @@ type Props = { variant?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/page-header/private/record-home.d.ts b/components/page-header/private/record-home.d.ts index 6d5cdbe6d..ceb25b3ca 100644 --- a/components/page-header/private/record-home.d.ts +++ b/components/page-header/private/record-home.d.ts @@ -23,5 +23,5 @@ type Props = { title?: React.ReactNode; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/page-header/private/related-list.d.ts b/components/page-header/private/related-list.d.ts index b855b4c0c..2087c67c4 100644 --- a/components/page-header/private/related-list.d.ts +++ b/components/page-header/private/related-list.d.ts @@ -33,5 +33,5 @@ type Props = { variant?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/page-header/private/title.d.ts b/components/page-header/private/title.d.ts index d157cac51..cec7461a1 100644 --- a/components/page-header/private/title.d.ts +++ b/components/page-header/private/title.d.ts @@ -22,5 +22,5 @@ type Props = { truncate?: boolean; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/panel.d.ts b/components/panel.d.ts index a2618b1bd..2a81e7444 100644 --- a/components/panel.d.ts +++ b/components/panel.d.ts @@ -15,5 +15,5 @@ type Props = { }; /** * A panel provides detailed contextual information or contextual filtering options. [Filter](/components/filters/) component should be used as children. Menus within a Filter Popover will need to not have "portal mounts" and be inline. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/panel/filtering/group.d.ts b/components/panel/filtering/group.d.ts index 7206974bb..8ea947b6e 100644 --- a/components/panel/filtering/group.d.ts +++ b/components/panel/filtering/group.d.ts @@ -89,5 +89,5 @@ type Props = { variant?: 'panel'; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/panel/filtering/list-heading.d.ts b/components/panel/filtering/list-heading.d.ts index 8d608904f..2df862316 100644 --- a/components/panel/filtering/list-heading.d.ts +++ b/components/panel/filtering/list-heading.d.ts @@ -14,5 +14,5 @@ type Props = { lockedHeading?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/panel/filtering/private/panel-footer.d.ts b/components/panel/filtering/private/panel-footer.d.ts index f730b13cf..6242fda2c 100644 --- a/components/panel/filtering/private/panel-footer.d.ts +++ b/components/panel/filtering/private/panel-footer.d.ts @@ -18,5 +18,5 @@ type Props = { removeAllLabel: React.ReactNode /*.isRequired*/; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/panel/filtering/private/panel-header.d.ts b/components/panel/filtering/private/panel-header.d.ts index bf9993e03..86f0170f4 100644 --- a/components/panel/filtering/private/panel-header.d.ts +++ b/components/panel/filtering/private/panel-header.d.ts @@ -38,5 +38,5 @@ type Props = { saveLabel?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/pill-container.d.ts b/components/pill-container.d.ts index dcc731558..2d27b025d 100644 --- a/components/pill-container.d.ts +++ b/components/pill-container.d.ts @@ -82,5 +82,5 @@ type Props = { /** * A `PillContainer` is a container that holds one or more pills. Use it for a list of pills in a container that resembles an `input` form field. It is not intended for navigation. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/pill-container/private/selected-listbox.d.ts b/components/pill-container/private/selected-listbox.d.ts index 878aaac79..ba24a9d66 100644 --- a/components/pill-container/private/selected-listbox.d.ts +++ b/components/pill-container/private/selected-listbox.d.ts @@ -85,5 +85,5 @@ type Props = { variant?: 'base' | 'inline-listbox' | 'readonly'; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/pill.d.ts b/components/pill.d.ts index 0c65ec916..9e7bfc074 100644 --- a/components/pill.d.ts +++ b/components/pill.d.ts @@ -92,5 +92,5 @@ type Props = { /** * A pill displays a label that can contain links and can be removed from view. Use `PillContainer` for a list of pills in a container that resembles an `input` form field. A pill is useful for displaying read-only text that can be added and removed on demand. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/popover/edit-dialog.d.ts b/components/popover/edit-dialog.d.ts index ab20f78ba..994066939 100644 --- a/components/popover/edit-dialog.d.ts +++ b/components/popover/edit-dialog.d.ts @@ -38,5 +38,5 @@ type Props = { popover?: React.ReactNode; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/popover/popover.d.ts b/components/popover/popover.d.ts index f9da9f67a..3439302ed 100644 --- a/components/popover/popover.d.ts +++ b/components/popover/popover.d.ts @@ -157,5 +157,5 @@ type Props = { /** * The Popover component is a non-modal dialog. It should be paired with a clickable trigger such as a `Button`. It traps focus from the page and must be exited if focus needs to be outside the Popover. Use a `Tooltip` if there are no call to actions within the dialog. A `Tooltip` does not need to be clicked. Multiple popovers open at the same time, each with focus trap is not supported. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/progress-bar.d.ts b/components/progress-bar.d.ts index c4e0afb9b..7c31ea974 100644 --- a/components/progress-bar.d.ts +++ b/components/progress-bar.d.ts @@ -50,5 +50,5 @@ type Props = { /** * A progress bar component communicates to the user the progress of a particular process */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/progress-indicator.d.ts b/components/progress-indicator.d.ts index b3dd71f13..8f90fb656 100644 --- a/components/progress-indicator.d.ts +++ b/components/progress-indicator.d.ts @@ -111,5 +111,5 @@ type Props = { /** * Progress Indicator is a component that communicates to the user the progress of a particular process. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/progress-indicator/private/progress-bar.d.ts b/components/progress-indicator/private/progress-bar.d.ts index b857c08f1..29c22640d 100644 --- a/components/progress-indicator/private/progress-bar.d.ts +++ b/components/progress-indicator/private/progress-bar.d.ts @@ -14,5 +14,5 @@ type Props = { /** * ProgressBar renders the blue/gray progress bar and dynamically updates its completion percentage */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/progress-indicator/private/progress.d.ts b/components/progress-indicator/private/progress.d.ts index cfd81acdd..04da8b1d1 100644 --- a/components/progress-indicator/private/progress.d.ts +++ b/components/progress-indicator/private/progress.d.ts @@ -34,5 +34,5 @@ type Props = { /** * Progress renders all step buttons and a container wrapping these buttongs and a progress bar */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/progress-indicator/private/step-vertical.d.ts b/components/progress-indicator/private/step-vertical.d.ts index 5bb55085c..065587ffc 100644 --- a/components/progress-indicator/private/step-vertical.d.ts +++ b/components/progress-indicator/private/step-vertical.d.ts @@ -33,5 +33,5 @@ type Props = { /** * StepVertical renders a step icon and its step label if applied */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/progress-indicator/private/step.d.ts b/components/progress-indicator/private/step.d.ts index 1caf1d5b1..3849261e7 100644 --- a/components/progress-indicator/private/step.d.ts +++ b/components/progress-indicator/private/step.d.ts @@ -77,5 +77,5 @@ type Props = { * The button is applied with different css classes under different conditions. * Button icons have 4 types of status: completed (success), active (in progress), error (warning) and uncompleted (not approached) */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/progress-ring.d.ts b/components/progress-ring.d.ts index 4f9a0d06b..a6a4e38f7 100644 --- a/components/progress-ring.d.ts +++ b/components/progress-ring.d.ts @@ -36,5 +36,5 @@ type Props = { /** * Customizable and configurable progress ring. Will display progress in a circular progress bar factor, and is capable of displaying iconography inside of the ring structure. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/progress-ring/private/ring-shape.d.ts b/components/progress-ring/private/ring-shape.d.ts index 005c47705..55e95bdbe 100644 --- a/components/progress-ring/private/ring-shape.d.ts +++ b/components/progress-ring/private/ring-shape.d.ts @@ -22,5 +22,5 @@ type Props = { size?: 'medium' | 'large'; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/radio-button-group.d.ts b/components/radio-button-group.d.ts index 64cb77b03..6552d9207 100644 --- a/components/radio-button-group.d.ts +++ b/components/radio-button-group.d.ts @@ -47,5 +47,5 @@ type Props = { errorId?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/radio-group.d.ts b/components/radio-group.d.ts index 481b0115e..8633ad033 100644 --- a/components/radio-group.d.ts +++ b/components/radio-group.d.ts @@ -56,5 +56,5 @@ type Props = { * A styled select list that can have a single entry checked at any one time. * The RadioGroup component wraps [Radio](/components/radios) components, which should be used as children. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/radio.d.ts b/components/radio.d.ts index a6cfb0d6d..4cbf61b25 100644 --- a/components/radio.d.ts +++ b/components/radio.d.ts @@ -103,5 +103,5 @@ type Props = { * A radio input that can have a single input checked at any one time. Radios should be wrapped with * a [RadioGroup](/components/radio-group) or [RadioButtonGroup](/components/radio-button-group) */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/scoped-notification.d.ts b/components/scoped-notification.d.ts index 548d19b8b..b920d1fee 100644 --- a/components/scoped-notification.d.ts +++ b/components/scoped-notification.d.ts @@ -23,5 +23,5 @@ type Props = { /** * A Scoped Notification Component serve advisory information for the user that is not important enough to justify an alert. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/setup-assistant.d.ts b/components/setup-assistant.d.ts index 5742b8ed4..8ef03eb77 100644 --- a/components/setup-assistant.d.ts +++ b/components/setup-assistant.d.ts @@ -29,5 +29,5 @@ type Props = { * Setup Assistant provides Administrators with a centralized list of tasks for * onboarding organizations, clouds, or features within the Salesforce Platform. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/setup-assistant/step.d.ts b/components/setup-assistant/step.d.ts index 582c3e52a..9465e8728 100644 --- a/components/setup-assistant/step.d.ts +++ b/components/setup-assistant/step.d.ts @@ -70,5 +70,5 @@ type Props = { * Setup Assistant Step component is used to specify individual items within the Setup Assistant * filled with learning and task links along with a recommended sequence that may have progress tracking */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/slider.d.ts b/components/slider.d.ts index 23c85b6e0..1d475423e 100644 --- a/components/slider.d.ts +++ b/components/slider.d.ts @@ -87,5 +87,5 @@ type Props = { /** * The ability to style sliders with CSS varies across browsers. Using this component ensures sliders look the same everywhere. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/spinner.d.ts b/components/spinner.d.ts index f3cad22c9..3eb14eb98 100644 --- a/components/spinner.d.ts +++ b/components/spinner.d.ts @@ -46,5 +46,5 @@ type Props = { variant?: 'base' | 'brand' | 'inverse'; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/split-view.d.ts b/components/split-view.d.ts index c5e7204a4..eb2d3f65b 100644 --- a/components/split-view.d.ts +++ b/components/split-view.d.ts @@ -48,5 +48,5 @@ type Props = { /** * Split view is used to navigate between records in a list while staying on the same screen. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/split-view/header.d.ts b/components/split-view/header.d.ts index 1aadade15..7115475cb 100644 --- a/components/split-view/header.d.ts +++ b/components/split-view/header.d.ts @@ -1,5 +1,5 @@ import React from 'react'; type Props = {}; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/split-view/listbox.d.ts b/components/split-view/listbox.d.ts index d7dd528ff..5093dc2b2 100644 --- a/components/split-view/listbox.d.ts +++ b/components/split-view/listbox.d.ts @@ -78,5 +78,5 @@ type Props = { /** * The menu with the ARIA role of a listbox. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/split-view/private/list-item-content.d.ts b/components/split-view/private/list-item-content.d.ts index 0f37b81d2..45bca8c4c 100644 --- a/components/split-view/private/list-item-content.d.ts +++ b/components/split-view/private/list-item-content.d.ts @@ -15,5 +15,5 @@ type Props = { }>; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/tabs.d.ts b/components/tabs.d.ts index 4cc1a8de3..4aaf33e6f 100644 --- a/components/tabs.d.ts +++ b/components/tabs.d.ts @@ -62,5 +62,5 @@ type Props = { /** * A tab keeps related content in a single container that is shown and hidden through navigation. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/tabs/panel.d.ts b/components/tabs/panel.d.ts index 158c5ebde..13b0e822c 100644 --- a/components/tabs/panel.d.ts +++ b/components/tabs/panel.d.ts @@ -16,5 +16,5 @@ type Props = { | React.ReactElement /*.isRequired*/; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/tabs/private/tab-panel.d.ts b/components/tabs/private/tab-panel.d.ts index 4d1b37d56..f68398d52 100644 --- a/components/tabs/private/tab-panel.d.ts +++ b/components/tabs/private/tab-panel.d.ts @@ -51,5 +51,5 @@ type Props = { tabId?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/tabs/private/tab.d.ts b/components/tabs/private/tab.d.ts index 9a13ef27e..a3265d875 100644 --- a/components/tabs/private/tab.d.ts +++ b/components/tabs/private/tab.d.ts @@ -55,5 +55,5 @@ type Props = { */ // import '!style-loader!css-loader!../../../styles/tabs/tab.css'; // eslint-disable-line import/no-unresolved -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/tabs/private/tabs-list.d.ts b/components/tabs/private/tabs-list.d.ts index ce105b133..33b2eb569 100644 --- a/components/tabs/private/tabs-list.d.ts +++ b/components/tabs/private/tabs-list.d.ts @@ -21,5 +21,5 @@ type Props = { variant?: 'default' | 'scoped'; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/textarea.d.ts b/components/textarea.d.ts index d87ab196a..f7b0ebbdf 100644 --- a/components/textarea.d.ts +++ b/components/textarea.d.ts @@ -160,5 +160,5 @@ type Props = { /** * A multi-line plain-text editing control. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/time-picker.d.ts b/components/time-picker.d.ts index d751fcd63..1cf9a7c04 100644 --- a/components/time-picker.d.ts +++ b/components/time-picker.d.ts @@ -63,5 +63,5 @@ type Props = { /** * Component description. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/time-picker/private/dropdown-trigger.d.ts b/components/time-picker/private/dropdown-trigger.d.ts index b0343bc90..e7b33a48b 100644 --- a/components/time-picker/private/dropdown-trigger.d.ts +++ b/components/time-picker/private/dropdown-trigger.d.ts @@ -48,5 +48,5 @@ type Props = { /** * Component description. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/toast.d.ts b/components/toast.d.ts index 38d37829b..3c63225cc 100644 --- a/components/toast.d.ts +++ b/components/toast.d.ts @@ -66,5 +66,5 @@ type Props = { /** * Toast serves as a feedback & confirmation mechanism after the user takes an action. View [banner guidelines](https://www.lightningdesignsystem.com/guidelines/messaging/components/banners/). */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/toast/container.d.ts b/components/toast/container.d.ts index 0143c5527..8e3585589 100644 --- a/components/toast/container.d.ts +++ b/components/toast/container.d.ts @@ -12,5 +12,5 @@ type Props = { /** * A fixed container for toast banners. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/tooltip.d.ts b/components/tooltip.d.ts index 36157d7b5..668511984 100644 --- a/components/tooltip.d.ts +++ b/components/tooltip.d.ts @@ -103,5 +103,5 @@ type Props = { /** * The PopoverTooltip component is variant of the Lightning Design System Popover component. This component wraps an element that triggers it to open. It must be a focusable child element (either a button or an anchor), so that keyboard users can navigate to it. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/tooltip/private/field-level-help-tooltip.d.ts b/components/tooltip/private/field-level-help-tooltip.d.ts index 57425e618..770e2917b 100644 --- a/components/tooltip/private/field-level-help-tooltip.d.ts +++ b/components/tooltip/private/field-level-help-tooltip.d.ts @@ -12,5 +12,5 @@ type Props = { fieldLevelHelpTooltip: React.ReactNode /*.isRequired*/; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/tree.d.ts b/components/tree.d.ts index 25a2a125e..ba718aaac 100644 --- a/components/tree.d.ts +++ b/components/tree.d.ts @@ -77,5 +77,5 @@ type Props = { /** * A tree is visualization of a structure hierarchy. A branch can be expanded or collapsed. This is a controlled component, since visual state is present in the `nodes` data. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/tree/private/branch.d.ts b/components/tree/private/branch.d.ts index b7f09425d..2dbcd45ea 100644 --- a/components/tree/private/branch.d.ts +++ b/components/tree/private/branch.d.ts @@ -79,5 +79,5 @@ type Props = { parent?: Record; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/tree/private/item.d.ts b/components/tree/private/item.d.ts index 8d3da412d..6600b2ffa 100644 --- a/components/tree/private/item.d.ts +++ b/components/tree/private/item.d.ts @@ -62,5 +62,5 @@ type Props = { parent?: Record; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/tree/private/render-branch.d.ts b/components/tree/private/render-branch.d.ts index 6aeb3cb8b..f9ccd7771 100644 --- a/components/tree/private/render-branch.d.ts +++ b/components/tree/private/render-branch.d.ts @@ -58,5 +58,5 @@ type Props = { parent?: Record; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/tree/private/render-initial-branch.d.ts b/components/tree/private/render-initial-branch.d.ts index 385e2f6e0..49da6eca8 100644 --- a/components/tree/private/render-initial-branch.d.ts +++ b/components/tree/private/render-initial-branch.d.ts @@ -14,5 +14,5 @@ type Props = { initialStyle?: Record; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/trial-bar.d.ts b/components/trial-bar.d.ts index c7ddb0619..ad7dc9e8a 100644 --- a/components/trial-bar.d.ts +++ b/components/trial-bar.d.ts @@ -37,5 +37,5 @@ type Props = { style?: Record; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/utilities/dialog.d.ts b/components/utilities/dialog.d.ts index d5b720819..0664f63d3 100644 --- a/components/utilities/dialog.d.ts +++ b/components/utilities/dialog.d.ts @@ -145,5 +145,5 @@ type Props = { * * This component is private. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/utilities/dialog/portal.d.ts b/components/utilities/dialog/portal.d.ts index d7c1fea6f..85872ec51 100644 --- a/components/utilities/dialog/portal.d.ts +++ b/components/utilities/dialog/portal.d.ts @@ -55,5 +55,5 @@ type Props = { portalMount?: (v: any) => any; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/utilities/highlighter.d.ts b/components/utilities/highlighter.d.ts index 4624b7001..75a4b6b09 100644 --- a/components/utilities/highlighter.d.ts +++ b/components/utilities/highlighter.d.ts @@ -11,5 +11,5 @@ type Props = { search?: PropTypes.any; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/utilities/label.d.ts b/components/utilities/label.d.ts index 3dfa7c7a4..f16814412 100644 --- a/components/utilities/label.d.ts +++ b/components/utilities/label.d.ts @@ -26,5 +26,5 @@ type Props = { variant?: 'base' | 'static'; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/utilities/menu-list.d.ts b/components/utilities/menu-list.d.ts index c7b3fa047..cc8b98c3e 100644 --- a/components/utilities/menu-list.d.ts +++ b/components/utilities/menu-list.d.ts @@ -48,5 +48,5 @@ type Props = { /** * Component description. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/utilities/menu-list/item-label.d.ts b/components/utilities/menu-list/item-label.d.ts index 3e590dfd8..694c37490 100644 --- a/components/utilities/menu-list/item-label.d.ts +++ b/components/utilities/menu-list/item-label.d.ts @@ -9,5 +9,5 @@ type Props = { value?: PropTypes.any; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/utilities/menu-list/item.d.ts b/components/utilities/menu-list/item.d.ts index 59f042ac1..2d919ad9c 100644 --- a/components/utilities/menu-list/item.d.ts +++ b/components/utilities/menu-list/item.d.ts @@ -30,5 +30,5 @@ type Props = { /** * Component description. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/utilities/pill.d.ts b/components/utilities/pill.d.ts index b3b4d9dc6..757fd558e 100644 --- a/components/utilities/pill.d.ts +++ b/components/utilities/pill.d.ts @@ -67,5 +67,5 @@ type Props = { tabIndex?: number; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/utilities/truncate.d.ts b/components/utilities/truncate.d.ts index a9d052027..ef634a9f9 100644 --- a/components/utilities/truncate.d.ts +++ b/components/utilities/truncate.d.ts @@ -10,5 +10,5 @@ type Props = { wrapper?: (v: any) => any; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/utilities/utility-icon.d.ts b/components/utilities/utility-icon.d.ts index 7c6480ef1..861c6dc6b 100644 --- a/components/utilities/utility-icon.d.ts +++ b/components/utilities/utility-icon.d.ts @@ -16,5 +16,5 @@ type Props = { path?: string; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/vertical-navigation.d.ts b/components/vertical-navigation.d.ts index 86ca40019..8ff8943f1 100644 --- a/components/vertical-navigation.d.ts +++ b/components/vertical-navigation.d.ts @@ -24,5 +24,5 @@ type Props = { /** * Vertical Navigation represents a list of links that either take the user to another page or parts of the page the user is in. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/vertical-navigation/private/item.d.ts b/components/vertical-navigation/private/item.d.ts index ee8066d3e..3dca2172c 100644 --- a/components/vertical-navigation/private/item.d.ts +++ b/components/vertical-navigation/private/item.d.ts @@ -24,5 +24,5 @@ type Props = { onSelect?: (v: any) => any; }; -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/visual-picker.d.ts b/components/visual-picker.d.ts index 8f661f733..f1e8da900 100644 --- a/components/visual-picker.d.ts +++ b/components/visual-picker.d.ts @@ -36,5 +36,5 @@ type Props = { /** * Visual Picker Component */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/visual-picker/link.d.ts b/components/visual-picker/link.d.ts index 038dea423..8b1d4a3f2 100644 --- a/components/visual-picker/link.d.ts +++ b/components/visual-picker/link.d.ts @@ -28,5 +28,5 @@ type Props = { /** * Visual Picker Link Component */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/welcome-mat.d.ts b/components/welcome-mat.d.ts index 90a4548c7..f18ad3359 100644 --- a/components/welcome-mat.d.ts +++ b/components/welcome-mat.d.ts @@ -48,5 +48,5 @@ type Props = { /** * A Welcome Mat provides a series of unordered items a user can click to learn about a thematic topic. */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/welcome-mat/info-badge.d.ts b/components/welcome-mat/info-badge.d.ts index 87a113667..3e200e1c2 100644 --- a/components/welcome-mat/info-badge.d.ts +++ b/components/welcome-mat/info-badge.d.ts @@ -31,5 +31,5 @@ type Props = { /** * InfoBadge component item represents a tile in a Welcome Mat */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; diff --git a/components/welcome-mat/tile.d.ts b/components/welcome-mat/tile.d.ts index 9f52feaa1..f03d5823e 100644 --- a/components/welcome-mat/tile.d.ts +++ b/components/welcome-mat/tile.d.ts @@ -44,5 +44,5 @@ type Props = { /** * Tile component item represents a tile in a Welcome Mat */ -function Component(props: Props): JSX.Element; +declare function Component(props: Props): JSX.Element; export default Component; From 4bf28176864ef2b5d8c86ab2d2bd5d85f4d4080d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 07:05:44 +0000 Subject: [PATCH 2/2] fix: add declare to const settings in settings.d.ts Agent-Logs-Url: https://github.com/robigan/design-system-react/sessions/09accf4f-0490-4f9f-be53-799dcd9f74c2 Co-authored-by: robigan <35210888+robigan@users.noreply.github.com> --- components/settings.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/settings.d.ts b/components/settings.d.ts index dff9cd23a..809494017 100644 --- a/components/settings.d.ts +++ b/components/settings.d.ts @@ -4,5 +4,5 @@ type Props = { setAppElement: (arg0: string) => void; getAppElement: () => string; }; -const settings: Props; +declare const settings: Props; export default settings; \ No newline at end of file