Skip to content

Commit

Permalink
Revert "feat: update major"
Browse files Browse the repository at this point in the history
This reverts commit f54b5de.
  • Loading branch information
Borai committed Jan 6, 2025
1 parent 642914e commit 5dd8bad
Show file tree
Hide file tree
Showing 74 changed files with 5,169 additions and 3,798 deletions.
4 changes: 3 additions & 1 deletion .ncurc.major.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
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, '@utrecht/component-library-react'],
reject: [...minorConfig.reject],
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, '@nl-design-system-unstable/theme-toolkit'],
reject: [...patchConfig.reject],
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": "4.1.0"
"date-fns": "3.6.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';

type Props = TimeHTMLAttributes<HTMLTimeElement>;
interface Props extends 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": "4.2.0",
"@utrecht/components": "7.4.0"
"@utrecht/component-library-react": "7.0.0",
"@utrecht/components": "7.3.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 type BreadcrumbListItemProps = LiHTMLAttributes<HTMLLIElement>;
export interface BreadcrumbListItemProps extends 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": "7.4.0"
"@utrecht/components": "6.1.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 type CardProps = HTMLAttributes<HTMLDivElement>;
export interface CardProps extends 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 type CardActionsProps = HTMLAttributes<HTMLDivElement>;
export interface CardActionsProps extends 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 type CardBackgroundProps = HTMLAttributes<HTMLDivElement>;
export interface CardBackgroundProps extends 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 type CardContentProps = HTMLAttributes<HTMLDivElement>;
export interface CardContentProps extends 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 type CardDateProps = TimeHTMLAttributes<HTMLTimeElement>;
export interface CardDateProps extends 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 type CardDateWrapperProps = HTMLAttributes<HTMLDivElement>;
export interface CardDateWrapperProps extends 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 type CardTextWrapperProps = HTMLAttributes<HTMLDivElement>;
export interface CardTextWrapperProps extends 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 type CardWrapperProps = HTMLAttributes<HTMLDivElement>;
export interface CardWrapperProps extends 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": "7.4.0"
"@utrecht/components": "6.1.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';

type ContactTimelineHeaderChannelProps = HTMLAttributes<HTMLDivElement>;
interface ContactTimelineHeaderChannelProps extends 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';

type ContactTimelineHeaderContentProps = HTMLAttributes<HTMLDivElement>;
interface ContactTimelineHeaderContentProps extends 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';

type ContactTimelineHeaderDateProps = HTMLAttributes<HTMLDivElement>;
interface ContactTimelineHeaderDateProps extends 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';

type ContactTimelineItemFileProps = HTMLAttributes<HTMLDivElement>;
interface ContactTimelineItemFileProps extends 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';

type ContactTimelineItemSenderProps = HTMLAttributes<HTMLDivElement>;
interface ContactTimelineItemSenderProps extends 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 type ContactTimelineListProps = OlHTMLAttributes<HTMLOListElement>;
export interface ContactTimelineListProps extends 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';

type ContactTimelineMetaProps = HTMLAttributes<HTMLDivElement>;
interface ContactTimelineMetaProps extends 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';

type ContactTimelineMetaItemProps = HTMLAttributes<HTMLDivElement>;
interface ContactTimelineMetaItemProps extends 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';

type ContactTimelineMetaSeparatorProps = HTMLAttributes<HTMLDivElement>;
interface ContactTimelineMetaSeparatorProps extends 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';

type ContactTimelineMetaTimeItemProps = TimeHTMLAttributes<HTMLTimeElement>;
interface ContactTimelineMetaTimeItemProps extends 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 type DescriptionListItemProps = HTMLAttributes<HTMLDivElement>;
export interface DescriptionListItemProps extends 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": "7.0.0",
"@utrecht/component-library-css": "4.1.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": "7.4.0"
"@utrecht/components": "6.1.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": "7.4.0"
"@utrecht/components": "6.1.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": "7.4.0"
"@utrecht/components": "6.1.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": "7.4.0"
"@utrecht/components": "6.1.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": "7.4.0"
"@utrecht/components": "6.1.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 = () => {
export const HeaderLogo: React.VoidFunctionComponent = () => {
return (
<svg
className="denhaag-header__logo"
Expand Down
9 changes: 3 additions & 6 deletions components/Hero/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
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 @@ -59,8 +58,7 @@
(
(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 @@ -254,8 +252,7 @@
(
(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 from 'react';
import React = require('react');
export const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>;
const src: React.ElementType;
const src: string;
export default src;
}

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

const buildIcon = (svg: React.ElementType, props: SvgIconProps) => <SvgIcon component={svg} {...props} />;
const buildIcon: React.ElementType = (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>) => React.ReactNode;
export type Link = (props: AnchorHTMLAttributes<HTMLAnchorElement>) => JSX.Element;

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": "7.4.0"
"@utrecht/components": "6.1.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": "7.4.0"
"@utrecht/components": "6.1.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 type LinkListProps = React.HTMLAttributes<HTMLUListElement>;
export interface LinkListProps extends 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 5dd8bad

Please sign in to comment.