@i-dot-ai-npm/component-library-react 0.0.7 → 0.0.9
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 +11 -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/index.ts +4 -0
- 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/modal/Modal.tsx +53 -0
- package/src/modal/ModalBody.tsx +16 -0
- package/src/modal/ModalFooter.tsx +18 -0
- package/src/modal/ModalTitle.tsx +18 -0
- 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
|
@@ -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) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type WarningTextProps = {
|
|
3
|
+
type WarningTextProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
class?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
[key: string]: unknown;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default function WarningText({ class: className, children, ...rest }: WarningTextProps) {
|