Skip to content

Commit

Permalink
feat: update major
Browse files Browse the repository at this point in the history
  • Loading branch information
Borai committed Jan 6, 2025
1 parent a81beb6 commit f54b5de
Show file tree
Hide file tree
Showing 74 changed files with 3,800 additions and 5,171 deletions.
4 changes: 1 addition & 3 deletions .ncurc.major.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
const minorConfig = require('./.ncurc.minor');

// Prettier v3 breaks storybook: https://github.com/whitespace-se/storybook-addon-html/issues/104

module.exports = {
...minorConfig,
reject: [...minorConfig.reject],
reject: [...minorConfig.reject, '@utrecht/component-library-react'],
target: 'latest',
};
2 changes: 1 addition & 1 deletion .ncurc.minor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ const patchConfig = require('./.ncurc.patch');

module.exports = {
...patchConfig,
reject: [...patchConfig.reject],
reject: [...patchConfig.reject, '@nl-design-system-unstable/theme-toolkit'],
target: 'minor',
};
2 changes: 1 addition & 1 deletion components/Action/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"@gemeente-denhaag/icons": "workspace:*",
"@gemeente-denhaag/link": "workspace:*",
"@gemeente-denhaag/utils": "workspace:*",
"date-fns": "3.6.0"
"date-fns": "4.1.0"
}
}
2 changes: 1 addition & 1 deletion components/Action/src/Time.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { TimeHTMLAttributes } from 'react';

interface Props extends TimeHTMLAttributes<HTMLTimeElement> {}
type Props = TimeHTMLAttributes<HTMLTimeElement>;

export const Time = ({ children, ...rest }: Props) => <time {...rest}>{children}</time>;
4 changes: 2 additions & 2 deletions components/BadgeCounter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"watch:components": "chokidar --silent --follow-symlinks \"src/**/*\" -c \"pnpm run build\""
},
"dependencies": {
"@utrecht/component-library-react": "7.0.0",
"@utrecht/components": "7.3.0"
"@utrecht/component-library-react": "4.2.0",
"@utrecht/components": "7.4.0"
},
"peerDependencies": {
"react": "^18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion components/Breadcrumb/src/BreadcrumbListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { LiHTMLAttributes } from 'react';
import clsx from 'clsx';
import './index.scss';

export interface BreadcrumbListItemProps extends LiHTMLAttributes<HTMLLIElement> {}
export type BreadcrumbListItemProps = LiHTMLAttributes<HTMLLIElement>;

export const BreadcrumbListItem: React.FC<BreadcrumbListItemProps> = ({
hidden,
Expand Down
2 changes: 1 addition & 1 deletion components/ButtonLink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@utrecht/component-library-react": "4.2.0",
"@utrecht/components": "6.1.0"
"@utrecht/components": "7.4.0"
},
"peerDependencies": {
"react": "^18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion components/Card/src/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { HTMLAttributes } from 'react';
import '../index.scss';
import clsx from 'clsx';

export interface CardProps extends HTMLAttributes<HTMLDivElement> {}
export type CardProps = HTMLAttributes<HTMLDivElement>;

export const Card = ({ className, ...props }: CardProps) => {
const classNames = clsx('denhaag-card', className);
Expand Down
2 changes: 1 addition & 1 deletion components/Card/src/Card/CardActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { HTMLAttributes } from 'react';
import '../index.scss';
import clsx from 'clsx';

export interface CardActionsProps extends HTMLAttributes<HTMLDivElement> {}
export type CardActionsProps = HTMLAttributes<HTMLDivElement>;

export const CardActions = ({ className, ...props }: CardActionsProps) => {
const classNames = clsx('denhaag-card__actions', className);
Expand Down
2 changes: 1 addition & 1 deletion components/Card/src/Card/CardBackground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { HTMLAttributes } from 'react';
import '../index.scss';
import clsx from 'clsx';

export interface CardBackgroundProps extends HTMLAttributes<HTMLDivElement> {}
export type CardBackgroundProps = HTMLAttributes<HTMLDivElement>;

export const CardBackground = ({ className, ...props }: CardBackgroundProps) => {
const classNames = clsx('denhaag-card__background', className);
Expand Down
2 changes: 1 addition & 1 deletion components/Card/src/Card/CardContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { HTMLAttributes } from 'react';
import '../index.scss';
import clsx from 'clsx';

export interface CardContentProps extends HTMLAttributes<HTMLDivElement> {}
export type CardContentProps = HTMLAttributes<HTMLDivElement>;

export const CardContent = ({ className, ...props }: CardContentProps) => {
const classNames = clsx('denhaag-card__content', className);
Expand Down
2 changes: 1 addition & 1 deletion components/Card/src/Card/CardDate.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { TimeHTMLAttributes } from 'react';
import '../index.scss';

export interface CardDateProps extends TimeHTMLAttributes<HTMLTimeElement> {}
export type CardDateProps = TimeHTMLAttributes<HTMLTimeElement>;

export const CardDate = ({ ...props }: CardDateProps) => {
return <time {...props}></time>;
Expand Down
2 changes: 1 addition & 1 deletion components/Card/src/Card/CardDateWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { HTMLAttributes } from 'react';
import '../index.scss';
import clsx from 'clsx';

export interface CardDateWrapperProps extends HTMLAttributes<HTMLDivElement> {}
export type CardDateWrapperProps = HTMLAttributes<HTMLDivElement>;

export const CardDateWrapper = ({ className, ...props }: CardDateWrapperProps) => {
const classNames = clsx('denhaag-card__date-wrapper', className);
Expand Down
2 changes: 1 addition & 1 deletion components/Card/src/Card/CardTextWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { HTMLAttributes } from 'react';
import '../index.scss';
import clsx from 'clsx';

export interface CardTextWrapperProps extends HTMLAttributes<HTMLDivElement> {}
export type CardTextWrapperProps = HTMLAttributes<HTMLDivElement>;

export const CardTextWrapper = ({ className, ...props }: CardTextWrapperProps) => {
const classNames = clsx('denhaag-card__text-wrapper', className);
Expand Down
2 changes: 1 addition & 1 deletion components/Card/src/Card/CardWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { HTMLAttributes } from 'react';
import '../index.scss';
import clsx from 'clsx';

export interface CardWrapperProps extends HTMLAttributes<HTMLDivElement> {}
export type CardWrapperProps = HTMLAttributes<HTMLDivElement>;

export const CardWrapper = ({ className, ...props }: CardWrapperProps) => {
const classNames = clsx('denhaag-card__wrapper', className);
Expand Down
2 changes: 1 addition & 1 deletion components/Checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@utrecht/component-library-react": "4.2.0",
"@utrecht/components": "6.1.0"
"@utrecht/components": "7.4.0"
},
"peerDependencies": {
"react": "^18.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from 'clsx';
import React, { HTMLAttributes } from 'react';

interface ContactTimelineHeaderChannelProps extends HTMLAttributes<HTMLDivElement> {}
type ContactTimelineHeaderChannelProps = HTMLAttributes<HTMLDivElement>;

export const ContactTimelineHeaderChannel: React.FC<ContactTimelineHeaderChannelProps> = ({ children }) => {
return <div className={clsx('denhaag-contact-timeline__step-header__channel')}>{children}</div>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from 'clsx';
import React, { HTMLAttributes } from 'react';

interface ContactTimelineHeaderContentProps extends HTMLAttributes<HTMLDivElement> {}
type ContactTimelineHeaderContentProps = HTMLAttributes<HTMLDivElement>;

export const ContactTimelineHeaderContent: React.FC<ContactTimelineHeaderContentProps> = ({ children }) => {
return <div className={clsx('denhaag-contact-timeline__step-header__content')}>{children}</div>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from 'clsx';
import React, { HTMLAttributes } from 'react';

interface ContactTimelineHeaderDateProps extends HTMLAttributes<HTMLDivElement> {}
type ContactTimelineHeaderDateProps = HTMLAttributes<HTMLDivElement>;

export const ContactTimelineHeaderDate: React.FC<ContactTimelineHeaderDateProps> = ({ children }) => {
return <div className={clsx('denhaag-contact-timeline__step-header__date')}>{children}</div>;
Expand Down
2 changes: 1 addition & 1 deletion components/ContactTimeline/src/ContactTimelineItemFile.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from 'clsx';
import React, { HTMLAttributes } from 'react';

interface ContactTimelineItemFileProps extends HTMLAttributes<HTMLDivElement> {}
type ContactTimelineItemFileProps = HTMLAttributes<HTMLDivElement>;

export const ContactTimelineItemFile: React.FC<ContactTimelineItemFileProps> = ({ children }) => {
return <div className={clsx('denhaag-contact-timeline__step-item-file')}>{children}</div>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from 'clsx';
import React, { HTMLAttributes } from 'react';

interface ContactTimelineItemSenderProps extends HTMLAttributes<HTMLDivElement> {}
type ContactTimelineItemSenderProps = HTMLAttributes<HTMLDivElement>;

export const ContactTimelineItemSender: React.FC<ContactTimelineItemSenderProps> = ({ children }) => {
return <div className={clsx('denhaag-contact-timeline__step-item-sender')}>{children}</div>;
Expand Down
2 changes: 1 addition & 1 deletion components/ContactTimeline/src/ContactTimelineList.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from 'clsx';
import React, { OlHTMLAttributes } from 'react';

export interface ContactTimelineListProps extends OlHTMLAttributes<HTMLOListElement> {}
export type ContactTimelineListProps = OlHTMLAttributes<HTMLOListElement>;

export const ContactTimelineList: React.FC<ContactTimelineListProps> = ({
className,
Expand Down
2 changes: 1 addition & 1 deletion components/ContactTimeline/src/ContactTimelineMeta.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from 'clsx';
import React, { HTMLAttributes } from 'react';

interface ContactTimelineMetaProps extends HTMLAttributes<HTMLDivElement> {}
type ContactTimelineMetaProps = HTMLAttributes<HTMLDivElement>;

export const ContactTimelineMeta: React.FC<ContactTimelineMetaProps> = ({ children }) => {
return <div className={clsx('denhaag-contact-timeline__meta')}>{children}</div>;
Expand Down
2 changes: 1 addition & 1 deletion components/ContactTimeline/src/ContactTimelineMetaItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from 'clsx';
import React, { HTMLAttributes } from 'react';

interface ContactTimelineMetaItemProps extends HTMLAttributes<HTMLDivElement> {}
type ContactTimelineMetaItemProps = HTMLAttributes<HTMLDivElement>;

export const ContactTimelineMetaItem: React.FC<ContactTimelineMetaItemProps> = ({ children }) => {
return <div className={clsx('denhaag-contact-timeline__meta-item')}>{children}</div>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from 'clsx';
import React, { HTMLAttributes } from 'react';

interface ContactTimelineMetaSeparatorProps extends HTMLAttributes<HTMLDivElement> {}
type ContactTimelineMetaSeparatorProps = HTMLAttributes<HTMLDivElement>;

export const ContactTimelineMetaSeparator: React.FC<ContactTimelineMetaSeparatorProps> = ({ children }) => {
return <div className={clsx('denhaag-contact-timeline__meta-separator')}>{children}</div>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from 'clsx';
import React, { TimeHTMLAttributes } from 'react';

interface ContactTimelineMetaTimeItemProps extends TimeHTMLAttributes<HTMLTimeElement> {}
type ContactTimelineMetaTimeItemProps = TimeHTMLAttributes<HTMLTimeElement>;

export const ContactTimelineMetaTimeItem: React.FC<ContactTimelineMetaTimeItemProps> = ({
children,
Expand Down
2 changes: 1 addition & 1 deletion components/DescriptionList/src/DescriptionListItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { HTMLAttributes } from 'react';
import clsx from 'clsx';

export interface DescriptionListItemProps extends HTMLAttributes<HTMLDivElement> {}
export type DescriptionListItemProps = HTMLAttributes<HTMLDivElement>;

export const DescriptionListItem = ({ className, children, ...props }: DescriptionListItemProps) => {
const classNames = clsx('denhaag-description-list-item', className);
Expand Down
2 changes: 1 addition & 1 deletion components/Footer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@gemeente-denhaag/link-group": "workspace:*",
"@gemeente-denhaag/list": "workspace:*",
"@gemeente-denhaag/responsive-content": "workspace:*",
"@utrecht/component-library-css": "4.1.0",
"@utrecht/component-library-css": "7.0.0",
"@utrecht/component-library-react": "4.2.0"
}
}
2 changes: 1 addition & 1 deletion components/FormField/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@utrecht/component-library-react": "4.2.0",
"@utrecht/components": "6.1.0"
"@utrecht/components": "7.4.0"
},
"peerDependencies": {
"react": "^18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion components/FormFieldDescription/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@utrecht/component-library-react": "4.2.0",
"@utrecht/components": "6.1.0"
"@utrecht/components": "7.4.0"
},
"peerDependencies": {
"react": "^18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion components/FormFieldErrorMessage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"devDependencies": {
"@utrecht/component-library-react": "4.2.0",
"@utrecht/components": "6.1.0"
"@utrecht/components": "7.4.0"
},
"peerDependencies": {
"react": "^18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion components/FormFieldSet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@utrecht/component-library-react": "4.2.0",
"@utrecht/components": "6.1.0"
"@utrecht/components": "7.4.0"
},
"peerDependencies": {
"react": "^18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion components/FormLabel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@utrecht/component-library-react": "4.2.0",
"@utrecht/components": "6.1.0"
"@utrecht/components": "7.4.0"
},
"peerDependencies": {
"react": "^18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion components/HeaderLogo/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

export const HeaderLogo: React.VoidFunctionComponent = () => {
export const HeaderLogo = () => {
return (
<svg
className="denhaag-header__logo"
Expand Down
9 changes: 6 additions & 3 deletions components/Hero/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
var(--denhaag-hero-columns, 12) -
(var(--denhaag-hero-content-column-end, 12) + var(--denhaag-hero-content-column-offset, 0))
)
) + var(--denhaag-hero-image-path, 0)
) +
var(--denhaag-hero-image-path, 0)
);

background-color: var(--denhaag-hero-background-color);
Expand Down Expand Up @@ -58,7 +59,8 @@
(
(var(--denhaag-hero-container-max-width) / var(--denhaag-hero-columns, 12)) *
var(--denhaag-hero-theme-page-image-start)
) + var(--denhaag-hero-image-path, 0)
) +
var(--denhaag-hero-image-path, 0)
);
--denhaag-hero-theme-page-content-padding-inline: calc(
(var(--denhaag-hero-container-max-width) / var(--denhaag-hero-columns, 12)) * 1
Expand Down Expand Up @@ -252,7 +254,8 @@
(
(var(--denhaag-hero-container-max-width) / var(--denhaag-hero-columns, 12)) *
var(--denhaag-hero-routing-shape-start, 1)
) + var(--denhaag-hero-container-gutter)
) +
var(--denhaag-hero-container-gutter)
);
--denhaag-hero-theme-page-image-start: var(--denhaag-hero-theme-page-image-start-m);

Expand Down
4 changes: 2 additions & 2 deletions components/Icons/src/@types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
declare module '*.svg' {
import React = require('react');
import React from 'react';
export const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>;
const src: string;
const src: React.ElementType;
export default src;
}

Expand Down
4 changes: 1 addition & 3 deletions components/Icons/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ import TwitterSvg from './svg/social/twitter.svg';
import WhatsAppSvg from './svg/social/whatsapp.svg';
import YouTubeSvg from './svg/social/youtube.svg';

const buildIcon: React.ElementType = (svg: React.ElementType, props: SvgIconProps) => (
<SvgIcon component={svg} {...props} />
);
const buildIcon = (svg: React.ElementType, props: SvgIconProps) => <SvgIcon component={svg} {...props} />;
type F = React.FunctionComponent<SvgIconProps>; // less typing

// Arrows
Expand Down
2 changes: 1 addition & 1 deletion components/LanguageSwitcher/src/LanguageSwitcherLink.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { AnchorHTMLAttributes } from 'react';
import './index.scss';

export type Link = (props: AnchorHTMLAttributes<HTMLAnchorElement>) => JSX.Element;
export type Link = (props: AnchorHTMLAttributes<HTMLAnchorElement>) => React.ReactNode;

export interface LanguageSwitcherLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
Link?: Link;
Expand Down
2 changes: 1 addition & 1 deletion components/LinkButton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@utrecht/component-library-react": "4.2.0",
"@utrecht/components": "6.1.0"
"@utrecht/components": "7.4.0"
},
"peerDependencies": {
"react": "^18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion components/LinkList/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@utrecht/component-library-react": "4.2.0",
"@utrecht/components": "6.1.0"
"@utrecht/components": "7.4.0"
},
"peerDependencies": {
"react": "^18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion components/LinkList/src/LinkList.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import clsx from 'clsx';

export interface LinkListProps extends React.HTMLAttributes<HTMLUListElement> {}
export type LinkListProps = React.HTMLAttributes<HTMLUListElement>;

export const LinkList = ({ className, ...props }: LinkListProps) => {
const classNames = clsx('utrecht-link-list--html-ul', 'utrecht-link-list', className);
Expand Down
Loading

0 comments on commit f54b5de

Please sign in to comment.