@i-dot-ai-npm/component-library-react 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -3
- package/src/accordion/Accordion.tsx +2 -3
- package/src/accordion/AccordionSection.tsx +2 -3
- package/src/accordion/AccordionSectionContent.tsx +2 -3
- package/src/accordion/AccordionSectionHeader.tsx +2 -3
- package/src/accordion/AccordionSectionHeading.tsx +2 -3
- package/src/accordion/AccordionSectionSummary.tsx +2 -3
- package/src/back-link/BackLink.tsx +2 -3
- package/src/breadcrumbs/BreadcrumbItem.tsx +2 -3
- package/src/breadcrumbs/Breadcrumbs.tsx +2 -3
- package/src/button/Button.tsx +2 -3
- package/src/button-group/ButtonGroup.tsx +2 -3
- package/src/card/Card.tsx +2 -3
- package/src/card/CardContent.tsx +2 -3
- package/src/card/CardGroup.tsx +2 -3
- package/src/card/CardHeading.tsx +2 -3
- package/src/card/CardIcon.tsx +2 -3
- package/src/card/CardLink.tsx +2 -3
- package/src/character-count/CharacterCount.tsx +2 -3
- package/src/character-count/CharacterCountMessage.tsx +2 -3
- package/src/checkboxes/CheckboxConditional.tsx +2 -3
- package/src/checkboxes/CheckboxDivider.tsx +1 -2
- package/src/checkboxes/CheckboxInput.tsx +3 -2
- package/src/checkboxes/CheckboxItem.tsx +2 -3
- package/src/checkboxes/CheckboxLabel.tsx +2 -3
- package/src/checkboxes/Checkboxes.tsx +2 -3
- package/src/contents-panel/ContentsPanel.tsx +2 -3
- package/src/contents-panel/ContentsPanelItem.tsx +2 -3
- package/src/contents-panel/ContentsPanelList.tsx +2 -3
- package/src/contents-panel/ContentsPanelListHeading.tsx +2 -3
- package/src/cookie-banner/CookieBanner.tsx +2 -3
- package/src/cookie-banner/CookieBannerActions.tsx +2 -3
- package/src/cookie-banner/CookieBannerContent.tsx +2 -3
- package/src/cookie-banner/CookieBannerHeading.tsx +2 -3
- package/src/cookie-banner/CookieBannerMessage.tsx +2 -3
- package/src/date-input/DateInput.tsx +2 -3
- package/src/date-input/DateInputField.tsx +5 -4
- package/src/date-input/DateInputItem.tsx +2 -3
- package/src/details/Details.tsx +2 -3
- package/src/details/DetailsSummary.tsx +2 -3
- package/src/details/DetailsText.tsx +2 -3
- package/src/error-message/ErrorMessage.tsx +2 -3
- package/src/error-summary/ErrorSummary.tsx +2 -3
- package/src/error-summary/ErrorSummaryBody.tsx +2 -3
- package/src/error-summary/ErrorSummaryItem.tsx +2 -3
- package/src/error-summary/ErrorSummaryList.tsx +2 -3
- package/src/error-summary/ErrorSummaryTitle.tsx +2 -3
- package/src/exit-this-page/ExitThisPage.tsx +2 -3
- package/src/feedback/Feedback.tsx +2 -3
- package/src/fieldset/Fieldset.tsx +2 -3
- package/src/fieldset/FieldsetLegend.tsx +2 -3
- package/src/file-upload/FileUpload.tsx +3 -2
- package/src/footer/Footer.tsx +2 -3
- package/src/form-group/FormGroup.tsx +2 -3
- package/src/govuk-footer/GovukFooter.tsx +2 -3
- package/src/govuk-header/GovukHeader.tsx +3 -2
- package/src/header/Header.tsx +2 -3
- package/src/hint/Hint.tsx +2 -3
- package/src/input/Input.tsx +5 -4
- package/src/input-label/InputLabel.tsx +2 -3
- package/src/inset-text/InsetText.tsx +2 -3
- package/src/label/Label.tsx +2 -3
- package/src/language-navigation/LanguageNavigation.tsx +2 -3
- package/src/language-navigation/LanguageNavigationItem.tsx +2 -3
- package/src/link/Link.tsx +2 -3
- package/src/list/List.tsx +2 -3
- package/src/list/ListItem.tsx +2 -3
- package/src/notification-banner/NotificationBanner.tsx +2 -3
- package/src/notification-banner/NotificationBannerContent.tsx +2 -3
- package/src/notification-banner/NotificationBannerHeader.tsx +2 -3
- package/src/notification-banner/NotificationBannerHeading.tsx +2 -3
- package/src/notification-banner/NotificationBannerTitle.tsx +2 -3
- package/src/pagination/Pagination.tsx +2 -3
- package/src/pagination/PaginationItem.tsx +2 -3
- package/src/pagination/PaginationList.tsx +2 -3
- package/src/pagination/PaginationNext.tsx +2 -3
- package/src/pagination/PaginationPrev.tsx +2 -3
- package/src/panel/Panel.tsx +2 -3
- package/src/panel/PanelActions.tsx +2 -3
- package/src/panel/PanelBody.tsx +2 -3
- package/src/panel/PanelTitle.tsx +2 -3
- package/src/password-input/PasswordInput.tsx +2 -3
- package/src/phase-banner/PhaseBanner.tsx +2 -3
- package/src/phase-banner/PhaseBannerText.tsx +2 -3
- package/src/radios/RadioConditional.tsx +2 -3
- package/src/radios/RadioDivider.tsx +1 -2
- package/src/radios/RadioInput.tsx +3 -2
- package/src/radios/RadioItem.tsx +2 -3
- package/src/radios/RadioLabel.tsx +2 -3
- package/src/radios/Radios.tsx +2 -3
- package/src/select/Select.tsx +2 -3
- package/src/select/SelectOption.tsx +2 -3
- package/src/service-navigation/ServiceNavigation.tsx +2 -3
- package/src/service-navigation/ServiceNavigationItem.tsx +2 -3
- package/src/side-nav/SideNav.tsx +2 -3
- package/src/side-nav/SideNavItem.tsx +2 -3
- package/src/side-nav/SideNavList.tsx +2 -3
- package/src/side-nav/SideNavSubnavHeading.tsx +2 -3
- package/src/side-nav/SideNavSubnavList.tsx +2 -3
- package/src/side-nav/SideNavTitle.tsx +2 -3
- package/src/skip-link/SkipLink.tsx +2 -3
- package/src/summary-card/SummaryCard.tsx +2 -3
- package/src/summary-card/SummaryCardAction.tsx +2 -3
- package/src/summary-card/SummaryCardActions.tsx +2 -3
- package/src/summary-card/SummaryCardContent.tsx +2 -3
- package/src/summary-card/SummaryCardTitle.tsx +2 -3
- package/src/summary-card/SummaryCardTitleWrapper.tsx +2 -3
- package/src/summary-list/SummaryList.tsx +2 -3
- package/src/summary-list/SummaryListActions.tsx +2 -3
- package/src/summary-list/SummaryListKey.tsx +2 -3
- package/src/summary-list/SummaryListRow.tsx +2 -3
- package/src/summary-list/SummaryListValue.tsx +2 -3
- package/src/table/Table.tsx +2 -3
- package/src/table/TableBody.tsx +2 -3
- package/src/table/TableCaption.tsx +2 -3
- package/src/table/TableCell.tsx +2 -3
- package/src/table/TableHead.tsx +2 -3
- package/src/table/TableHeader.tsx +2 -3
- package/src/table/TableRow.tsx +2 -3
- package/src/tabs/Tab.tsx +2 -3
- package/src/tabs/TabPanel.tsx +2 -3
- package/src/tabs/Tabs.tsx +2 -3
- package/src/tabs/TabsList.tsx +2 -3
- package/src/tabs/TabsTitle.tsx +2 -3
- package/src/tag/Tag.tsx +2 -3
- package/src/task-list/TaskList.tsx +2 -3
- package/src/task-list/TaskListHint.tsx +2 -3
- package/src/task-list/TaskListItem.tsx +2 -3
- package/src/task-list/TaskListLink.tsx +2 -3
- package/src/task-list/TaskListNameAndHint.tsx +2 -3
- package/src/task-list/TaskListStatus.tsx +2 -3
- package/src/textarea/Textarea.tsx +3 -2
- package/src/toggle/Toggle.tsx +3 -2
- package/src/toggle/ToggleItem.tsx +2 -3
- package/src/toggle/ToggleLabel.tsx +2 -3
- package/src/warning-text/WarningText.tsx +2 -3
package/src/radios/Radios.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type RadiosProps = {
|
|
3
|
+
type RadiosProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
inline?: boolean;
|
|
5
5
|
small?: boolean;
|
|
6
6
|
class?: string;
|
|
7
7
|
children?: ReactNode;
|
|
8
|
-
[key: string]: unknown;
|
|
9
8
|
};
|
|
10
9
|
|
|
11
10
|
export default function Radios({ inline, small, class: className, children, ...rest }: RadiosProps) {
|
package/src/select/Select.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SelectProps = {
|
|
3
|
+
type SelectProps = ComponentPropsWithoutRef<'select'> & {
|
|
4
4
|
subtle?: boolean;
|
|
5
5
|
error?: boolean;
|
|
6
6
|
class?: string;
|
|
7
7
|
children?: ReactNode;
|
|
8
|
-
[key: string]: unknown;
|
|
9
8
|
};
|
|
10
9
|
|
|
11
10
|
export default function Select({ subtle, error, class: className, children, ...rest }: SelectProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SelectOptionProps = {
|
|
3
|
+
type SelectOptionProps = ComponentPropsWithoutRef<'option'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SelectOption({ class: className, children, ...rest }: SelectOptionProps) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type ServiceNavigationProps = {
|
|
3
|
+
type ServiceNavigationProps = ComponentPropsWithoutRef<'section'> & ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
sideNav?: boolean;
|
|
5
5
|
inverse?: boolean;
|
|
6
6
|
serviceName?: string;
|
|
@@ -18,7 +18,6 @@ type ServiceNavigationProps = {
|
|
|
18
18
|
endSlotInline?: boolean;
|
|
19
19
|
class?: string;
|
|
20
20
|
children?: ReactNode;
|
|
21
|
-
[key: string]: unknown;
|
|
22
21
|
};
|
|
23
22
|
|
|
24
23
|
export default function ServiceNavigation({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type ServiceNavigationItemProps = {
|
|
3
|
+
type ServiceNavigationItemProps = ComponentPropsWithoutRef<'a'> & ComponentPropsWithoutRef<'span'> & {
|
|
4
4
|
href?: string;
|
|
5
5
|
/** Current page — adds active styling + aria-current="page". */
|
|
6
6
|
current?: boolean;
|
|
@@ -8,7 +8,6 @@ type ServiceNavigationItemProps = {
|
|
|
8
8
|
active?: boolean;
|
|
9
9
|
class?: string;
|
|
10
10
|
children?: ReactNode;
|
|
11
|
-
[key: string]: unknown;
|
|
12
11
|
};
|
|
13
12
|
|
|
14
13
|
export default function ServiceNavigationItem({ href, current, active, class: className, children, ...rest }: ServiceNavigationItemProps) {
|
package/src/side-nav/SideNav.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SideNavProps = {
|
|
3
|
+
type SideNavProps = ComponentPropsWithoutRef<'nav'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SideNav({ class: className, children, ...rest }: SideNavProps) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SideNavItemProps = {
|
|
3
|
+
type SideNavItemProps = ComponentPropsWithoutRef<'li'> & {
|
|
4
4
|
href?: string;
|
|
5
5
|
class?: string;
|
|
6
6
|
children?: ReactNode;
|
|
7
|
-
[key: string]: unknown;
|
|
8
7
|
};
|
|
9
8
|
|
|
10
9
|
export default function SideNavItem({ href, class: className, children, ...rest }: SideNavItemProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SideNavListProps = {
|
|
3
|
+
type SideNavListProps = ComponentPropsWithoutRef<'ul'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SideNavList({ class: className, children, ...rest }: SideNavListProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SideNavSubnavHeadingProps = {
|
|
3
|
+
type SideNavSubnavHeadingProps = ComponentPropsWithoutRef<'h3'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SideNavSubnavHeading({ class: className, children, ...rest }: SideNavSubnavHeadingProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SideNavSubnavListProps = {
|
|
3
|
+
type SideNavSubnavListProps = ComponentPropsWithoutRef<'ul'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SideNavSubnavList({ class: className, children, ...rest }: SideNavSubnavListProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SideNavTitleProps = {
|
|
3
|
+
type SideNavTitleProps = ComponentPropsWithoutRef<'h2'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SideNavTitle({ class: className, children, ...rest }: SideNavTitleProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SkipLinkProps = {
|
|
3
|
+
type SkipLinkProps = ComponentPropsWithoutRef<'a'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SkipLink({ class: className, children, ...rest }: SkipLinkProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SummaryCardProps = {
|
|
3
|
+
type SummaryCardProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SummaryCard({ class: className, children, ...rest }: SummaryCardProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SummaryCardActionProps = {
|
|
3
|
+
type SummaryCardActionProps = ComponentPropsWithoutRef<'li'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SummaryCardAction({ class: className, children, ...rest }: SummaryCardActionProps) {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SummaryCardActionsProps = {
|
|
3
|
+
type SummaryCardActionsProps = ComponentPropsWithoutRef<'div'> & ComponentPropsWithoutRef<'ul'> & {
|
|
4
4
|
/** Render as a single-action wrapper (`<div>`) instead of a list (`<ul>`).
|
|
5
5
|
* govuk uses a div for exactly one action and a ul for multiple. */
|
|
6
6
|
single?: boolean;
|
|
7
7
|
class?: string;
|
|
8
8
|
children?: ReactNode;
|
|
9
|
-
[key: string]: unknown;
|
|
10
9
|
};
|
|
11
10
|
|
|
12
11
|
export default function SummaryCardActions({ single, class: className, children, ...rest }: SummaryCardActionsProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SummaryCardContentProps = {
|
|
3
|
+
type SummaryCardContentProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SummaryCardContent({ class: className, children, ...rest }: SummaryCardContentProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SummaryCardTitleProps = {
|
|
3
|
+
type SummaryCardTitleProps = ComponentPropsWithoutRef<'h2'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SummaryCardTitle({ class: className, children, ...rest }: SummaryCardTitleProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SummaryCardTitleWrapperProps = {
|
|
3
|
+
type SummaryCardTitleWrapperProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SummaryCardTitleWrapper({ class: className, children, ...rest }: SummaryCardTitleWrapperProps) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SummaryListProps = {
|
|
3
|
+
type SummaryListProps = ComponentPropsWithoutRef<'dl'> & {
|
|
4
4
|
noBorder?: boolean;
|
|
5
5
|
class?: string;
|
|
6
6
|
children?: ReactNode;
|
|
7
|
-
[key: string]: unknown;
|
|
8
7
|
};
|
|
9
8
|
|
|
10
9
|
export default function SummaryList({ noBorder, class: className, children, ...rest }: SummaryListProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SummaryListActionsProps = {
|
|
3
|
+
type SummaryListActionsProps = ComponentPropsWithoutRef<'dd'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SummaryListActions({ class: className, children, ...rest }: SummaryListActionsProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SummaryListKeyProps = {
|
|
3
|
+
type SummaryListKeyProps = ComponentPropsWithoutRef<'dt'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SummaryListKey({ class: className, children, ...rest }: SummaryListKeyProps) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SummaryListRowProps = {
|
|
3
|
+
type SummaryListRowProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
noActions?: boolean;
|
|
5
5
|
class?: string;
|
|
6
6
|
children?: ReactNode;
|
|
7
|
-
[key: string]: unknown;
|
|
8
7
|
};
|
|
9
8
|
|
|
10
9
|
export default function SummaryListRow({ noActions, class: className, children, ...rest }: SummaryListRowProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SummaryListValueProps = {
|
|
3
|
+
type SummaryListValueProps = ComponentPropsWithoutRef<'dd'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function SummaryListValue({ class: className, children, ...rest }: SummaryListValueProps) {
|
package/src/table/Table.tsx
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/** @jsxImportSource react */
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
3
3
|
|
|
4
|
-
type TableProps = {
|
|
4
|
+
type TableProps = ComponentPropsWithoutRef<'table'> & {
|
|
5
5
|
smallTextUntilTablet?: boolean;
|
|
6
6
|
subtle?: boolean;
|
|
7
7
|
summary?: boolean;
|
|
8
8
|
class?: string;
|
|
9
9
|
children?: ReactNode;
|
|
10
|
-
[key: string]: unknown;
|
|
11
10
|
};
|
|
12
11
|
|
|
13
12
|
export default function Table({ smallTextUntilTablet, subtle, summary, class: className, children, ...rest }: TableProps) {
|
package/src/table/TableBody.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/** @jsxImportSource react */
|
|
2
2
|
|
|
3
|
-
import { ReactNode } from 'react';
|
|
3
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
-
type TableBodyProps = {
|
|
5
|
+
type TableBodyProps = ComponentPropsWithoutRef<'tbody'> & {
|
|
6
6
|
class?: string;
|
|
7
7
|
children?: ReactNode;
|
|
8
|
-
[key: string]: unknown;
|
|
9
8
|
};
|
|
10
9
|
|
|
11
10
|
export default function TableBody({ class: className, children, ...rest }: TableBodyProps) {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/** @jsxImportSource react */
|
|
2
2
|
|
|
3
|
-
import { ReactNode } from 'react';
|
|
3
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
-
type TableCaptionProps = {
|
|
5
|
+
type TableCaptionProps = ComponentPropsWithoutRef<'caption'> & {
|
|
6
6
|
size?: "small" | "medium" | "large" | "xl";
|
|
7
7
|
class?: string;
|
|
8
8
|
children?: ReactNode;
|
|
9
|
-
[key: string]: unknown;
|
|
10
9
|
};
|
|
11
10
|
|
|
12
11
|
export default function TableCaption({ size, class: className, children, ...rest }: TableCaptionProps) {
|
package/src/table/TableCell.tsx
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/** @jsxImportSource react */
|
|
2
2
|
|
|
3
|
-
import { ReactNode } from 'react';
|
|
3
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
-
type TableCellProps = {
|
|
5
|
+
type TableCellProps = ComponentPropsWithoutRef<'td'> & {
|
|
6
6
|
numeric?: boolean;
|
|
7
7
|
stretch?: boolean;
|
|
8
8
|
noWrap?: boolean;
|
|
9
9
|
small?: boolean;
|
|
10
10
|
class?: string;
|
|
11
11
|
children?: ReactNode;
|
|
12
|
-
[key: string]: unknown;
|
|
13
12
|
};
|
|
14
13
|
|
|
15
14
|
export default function TableCell({ numeric, stretch, noWrap, small, class: className, children, ...rest }: TableCellProps) {
|
package/src/table/TableHead.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/** @jsxImportSource react */
|
|
2
2
|
|
|
3
|
-
import { ReactNode } from 'react';
|
|
3
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
-
type TableHeadProps = {
|
|
5
|
+
type TableHeadProps = ComponentPropsWithoutRef<'thead'> & {
|
|
6
6
|
class?: string;
|
|
7
7
|
children?: ReactNode;
|
|
8
|
-
[key: string]: unknown;
|
|
9
8
|
};
|
|
10
9
|
|
|
11
10
|
export default function TableHead({ class: className, children, ...rest }: TableHeadProps) {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/** @jsxImportSource react */
|
|
2
2
|
|
|
3
|
-
import { ReactNode } from 'react';
|
|
3
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
-
type TableHeaderProps = {
|
|
5
|
+
type TableHeaderProps = ComponentPropsWithoutRef<'th'> & {
|
|
6
6
|
numeric?: boolean;
|
|
7
7
|
scope?: "col" | "row" | "colgroup" | "rowgroup";
|
|
8
8
|
class?: string;
|
|
9
9
|
children?: ReactNode;
|
|
10
|
-
[key: string]: unknown;
|
|
11
10
|
};
|
|
12
11
|
|
|
13
12
|
export default function TableHeader({ numeric, scope = "col", class: className, children, ...rest }: TableHeaderProps) {
|
package/src/table/TableRow.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/** @jsxImportSource react */
|
|
2
2
|
|
|
3
|
-
import { ReactNode } from 'react';
|
|
3
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
-
type TableRowProps = {
|
|
5
|
+
type TableRowProps = ComponentPropsWithoutRef<'tr'> & {
|
|
6
6
|
class?: string;
|
|
7
7
|
children?: ReactNode;
|
|
8
|
-
[key: string]: unknown;
|
|
9
8
|
};
|
|
10
9
|
|
|
11
10
|
export default function TableRow({ class: className, children, ...rest }: TableRowProps) {
|
package/src/tabs/Tab.tsx
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type TabProps = {
|
|
3
|
+
type TabProps = ComponentPropsWithoutRef<'a'> & {
|
|
4
4
|
selected?: boolean;
|
|
5
5
|
class?: string;
|
|
6
6
|
children?: ReactNode;
|
|
7
|
-
[key: string]: unknown;
|
|
8
7
|
};
|
|
9
8
|
|
|
10
9
|
export default function Tab({ selected, class: className, children, ...rest }: TabProps) {
|
package/src/tabs/TabPanel.tsx
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type TabPanelProps = {
|
|
3
|
+
type TabPanelProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
hidden?: boolean;
|
|
5
5
|
class?: string;
|
|
6
6
|
children?: ReactNode;
|
|
7
|
-
[key: string]: unknown;
|
|
8
7
|
};
|
|
9
8
|
|
|
10
9
|
export default function TabPanel({ hidden, class: className, children, ...rest }: TabPanelProps) {
|
package/src/tabs/Tabs.tsx
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import { useEffect, useRef } from "react";
|
|
3
3
|
|
|
4
|
-
type TabsProps = {
|
|
4
|
+
type TabsProps = ComponentPropsWithoutRef<'div'> & {
|
|
5
5
|
class?: string;
|
|
6
6
|
children?: ReactNode;
|
|
7
|
-
[key: string]: unknown;
|
|
8
7
|
};
|
|
9
8
|
|
|
10
9
|
export default function Tabs({ class: className, children, ...rest }: TabsProps) {
|
package/src/tabs/TabsList.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type TabsListProps = {
|
|
3
|
+
type TabsListProps = ComponentPropsWithoutRef<'ul'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function TabsList({ class: className, children, ...rest }: TabsListProps) {
|
package/src/tabs/TabsTitle.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type TabsTitleProps = {
|
|
3
|
+
type TabsTitleProps = ComponentPropsWithoutRef<'h2'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function TabsTitle({ class: className, children, ...rest }: TabsTitleProps) {
|
package/src/tag/Tag.tsx
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type TagProps = {
|
|
3
|
+
type TagProps = ComponentPropsWithoutRef<'strong'> & {
|
|
4
4
|
colour?: "grey" | "green" | "teal" | "turquoise" | "blue" | "light-blue" | "purple" | "magenta" | "pink" | "red" | "orange" | "yellow";
|
|
5
5
|
class?: string;
|
|
6
6
|
children?: ReactNode;
|
|
7
|
-
[key: string]: unknown;
|
|
8
7
|
};
|
|
9
8
|
|
|
10
9
|
export default function Tag({ colour, class: className, children, ...rest }: TagProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type TaskListProps = {
|
|
3
|
+
type TaskListProps = ComponentPropsWithoutRef<'ul'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function TaskList({ class: className, children, ...rest }: TaskListProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type TaskListHintProps = {
|
|
3
|
+
type TaskListHintProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function TaskListHint({ class: className, children, ...rest }: TaskListHintProps) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type TaskListItemProps = {
|
|
3
|
+
type TaskListItemProps = ComponentPropsWithoutRef<'li'> & {
|
|
4
4
|
withLink?: boolean;
|
|
5
5
|
class?: string;
|
|
6
6
|
children?: ReactNode;
|
|
7
|
-
[key: string]: unknown;
|
|
8
7
|
};
|
|
9
8
|
|
|
10
9
|
export default function TaskListItem({ withLink, class: className, children, ...rest }: TaskListItemProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type TaskListLinkProps = {
|
|
3
|
+
type TaskListLinkProps = ComponentPropsWithoutRef<'a'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function TaskListLink({ class: className, children, ...rest }: TaskListLinkProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type TaskListNameAndHintProps = {
|
|
3
|
+
type TaskListNameAndHintProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function TaskListNameAndHint({ class: className, children, ...rest }: TaskListNameAndHintProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type TaskListStatusProps = {
|
|
3
|
+
type TaskListStatusProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function TaskListStatus({ class: className, children, ...rest }: TaskListStatusProps) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
type
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
|
|
3
|
+
type TextareaProps = Omit<ComponentPropsWithoutRef<'textarea'>, 'value'> & {
|
|
2
4
|
error?: boolean;
|
|
3
5
|
subtle?: boolean;
|
|
4
6
|
value?: string;
|
|
5
7
|
class?: string;
|
|
6
|
-
[key: string]: unknown;
|
|
7
8
|
};
|
|
8
9
|
|
|
9
10
|
export default function Textarea({ error, subtle, value, class: className, ...rest }: TextareaProps) {
|
package/src/toggle/Toggle.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
type
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
|
|
3
|
+
type ToggleProps = ComponentPropsWithoutRef<'input'> & {
|
|
2
4
|
class?: string;
|
|
3
|
-
[key: string]: unknown;
|
|
4
5
|
};
|
|
5
6
|
|
|
6
7
|
export default function Toggle({ class: className, ...rest }: ToggleProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type ToggleItemProps = {
|
|
3
|
+
type ToggleItemProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function ToggleItem({ class: className, children, ...rest }: ToggleItemProps) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type ToggleLabelProps = {
|
|
3
|
+
type ToggleLabelProps = ComponentPropsWithoutRef<'label'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function ToggleLabel({ class: className, children, ...rest }: ToggleLabelProps) {
|