Skip to content

Commit

Permalink
chore: update type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
SiTaggart committed Oct 18, 2023
1 parent a8b8e45 commit 9e67061
Show file tree
Hide file tree
Showing 19 changed files with 6,408 additions and 185 deletions.
1,573 changes: 1,570 additions & 3 deletions packages/paste-core/components/code-block/type-docs.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion packages/paste-core/components/tabs/src/TabList.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { Box } from "@twilio-paste/box";
import type { BoxProps } from "@twilio-paste/box";
import { TabPrimitiveList } from "@twilio-paste/tabs-primitive";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

import { TabsContext } from "./TabsContext";
import type { Variants } from "./types";
import { getElementName } from "./utils";

export interface TabListProps {
export interface TabListProps extends HTMLPasteProps<"div"> {
/**
* Required label for this Tabs component. Titles the entire Tabbing context for screen readers.
*
Expand Down
3 changes: 2 additions & 1 deletion packages/paste-core/components/tabs/src/TabPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import { Box } from "@twilio-paste/box";
import type { BoxProps } from "@twilio-paste/box";
import { TabPrimitivePanel } from "@twilio-paste/tabs-primitive";
import type { TabPrimitivePanelProps } from "@twilio-paste/tabs-primitive";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

import { TabsContext } from "./TabsContext";
import { getElementName } from "./utils";

export interface TabPanelProps {
export interface TabPanelProps extends HTMLPasteProps<"div"> {
/**
* Same as the HTML attribute.
*
Expand Down
3 changes: 2 additions & 1 deletion packages/paste-core/components/tabs/src/TabPanels.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Box, safelySpreadBoxProps } from "@twilio-paste/box";
import type { BoxProps } from "@twilio-paste/box";
import type { HTMLPasteProps } from "@twilio-paste/types";
import * as React from "react";

import { TabsContext } from "./TabsContext";
import { getElementName } from "./utils";

export interface TabPanelsProps {
export interface TabPanelsProps extends HTMLPasteProps<"div"> {
children: React.ReactNode;
/**
* Overrides the default element name to apply unique styles with the Customization Provider.
Expand Down
Loading

0 comments on commit 9e67061

Please sign in to comment.